hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(89,91,82)

statement ok
INSERT INTO tab0 VALUES(35,97,1)

statement ok
INSERT INTO tab0 VALUES(24,86,33)

statement ok
INSERT INTO tab1 VALUES(64,10,57)

statement ok
INSERT INTO tab1 VALUES(3,26,54)

statement ok
INSERT INTO tab1 VALUES(80,13,96)

statement ok
INSERT INTO tab2 VALUES(7,31,27)

statement ok
INSERT INTO tab2 VALUES(79,17,38)

statement ok
INSERT INTO tab2 VALUES(78,59,26)

query I rowsort
SELECT + + ( - col0 ) * + 83 + - col0 * + cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
-120633
-5684
-59202

query I rowsort
SELECT - 59 * col1 AS col2 FROM tab2
----
-1003
-1829
-3481

query I rowsort
SELECT col2 + - cor0.col1 * + 16 AS col0 FROM tab0 AS cor0
----
-1343
-1374
-1551

query I rowsort
SELECT cor0.col1 - - cor0.col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - + col2 + + col0 - - cor0.col0 FROM tab0 AS cor0
----
15
69
96

query I rowsort
SELECT + col0 + col0 - col1 * col2 FROM tab2 AS cor0
----
-1378
-488
-823

query I rowsort
SELECT DISTINCT ( tab1.col1 * + col1 + tab1.col1 * - col0 ) FROM tab1
----
-540
-871
598

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to d95cefa45985203e212af5af5dd9be5b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8
SELECT ALL col0 * + CAST( - col2 AS SIGNED ) + - col1 * + col2 AS col0 FROM tab1 cor0
----
-1566
-4218
-8928

skipif mysql # not compatible
query I rowsort label-8
SELECT ALL col0 * + CAST ( - col2 AS INTEGER ) + - col1 * + col2 AS col0 FROM tab1 cor0
----
-1566
-4218
-8928

query I rowsort
SELECT - 75 FROM tab2, tab0 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT ALL + 69 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2
----
81 values hashing to dfada1ee7a4e3e5c74a063a1282769f9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 * cor1.col2 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ba3aa7b8153a044666cc7888d328070

query I rowsort
SELECT cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4

query I rowsort
SELECT + 92 + + cor0.col2 AS col2 FROM tab0 cor0
----
125
174
93

query I rowsort
SELECT - ( - col2 * tab2.col1 ) FROM tab2
----
1534
646
837

query I rowsort
SELECT 41 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 + - col2 col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + col0 * - ( + cor0.col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + + col2 * + col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT ALL - + col1 * + col1 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
-7310
-8190
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 + - 72 col2 FROM tab0 AS cor0
----
-37
720
7226

query I rowsort
SELECT ALL + + col1 + + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - - cor0.col2 * - col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT cor0.col0 + 42 FROM tab1 AS cor0
----
106
122
45

query I rowsort
SELECT DISTINCT - + cor0.col0 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 88 + col0 col1 FROM tab0 AS cor0
----
-2088
-3045
-7743

query I rowsort
SELECT ALL + - col0 * - cor0.col1 AS col2 FROM tab1 cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-27
SELECT + + cor0.col0 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-27
SELECT + + cor0.col0 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-28
SELECT DISTINCT col2 DIV + 51 + + col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT col2 / + 51 + + col0 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 col2 FROM tab1 AS cor0
----
-41
-41
-41

query I rowsort
SELECT + 5 * + col2 AS col2 FROM tab1 AS cor0
----
270
285
480

query I rowsort
SELECT ALL col1 * + col1 * col1 AS col1 FROM tab2 AS cor0
----
205379
29791
4913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 + - ( col0 ) col0 FROM tab1 AS cor0
----
-45
-61
16

query I rowsort
SELECT 62 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 0bc652564a158b9c0f7952026f90b60a

query I rowsort
SELECT 60 * ( col2 ) AS col1 FROM tab2 AS cor0
----
1560
1620
2280

skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 + + CAST ( - col1 AS REAL ) * col0 + col2 FROM tab0
----
-1998
-3393
-7935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - cor0.col1 col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + cor0.col1 + + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT - + ( col2 ) * - ( + ( - col2 ) + + col1 ) FROM tab0 AS cor0
----
1749
738
96

query I rowsort
SELECT + col1 - + cor0.col0 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + 0 * + 45 FROM tab2, tab2 cor0
----
0

query I rowsort
SELECT + col1 * col1 + - col0 * + col0 FROM tab1 AS cor0
----
-3996
-6231
667

query I rowsort
SELECT + col2 * + col0 - + ( - col0 ) FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - - col1 - cor0.col2 AS col0 FROM tab0 AS cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 + 52 col1 FROM tab1 AS cor0
----
126
145
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * ( + col1 ) col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col1 + col0 * + ( col2 ) FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + - col1 * 65 + 91 AS col0 FROM tab0 cor0
----
-5499
-5824
-6214

query I rowsort
SELECT ALL + cor0.col0 * + col2 AS col1 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-49
SELECT DISTINCT cor0.col2 DIV - 89 FROM tab1, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT cor0.col2 / - 89 FROM tab1, tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 + - tab2.col0 * col1 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT col1 + + col2 * - col0 + 22 AS col0 FROM tab2
----
-136
-1947
-2963

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - col2 * - ( + 37 * col0 ) col2 FROM tab1
----
-134986
-284173
-6020

onlyif mysql # use DIV operator for integer division
query I rowsort label-53
SELECT col2 DIV col1 - + col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-53
SELECT col2 / col1 - + col0 FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + ( + ( col2 ) ) col1 FROM tab2 cor0
----
0

query I rowsort
SELECT - - col2 - + 28 AS col0 FROM tab0 AS cor0
----
-27
5
54

query I rowsort
SELECT DISTINCT 3 + - cor0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab0 cor2
----
-30
-79
2

query I rowsort
SELECT DISTINCT col1 + - col2 * - 66 FROM tab0 AS cor0
----
163
2264
5503

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-58
SELECT col1 * + CAST( NULL AS SIGNED ) + 30 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-58
SELECT col1 * + CAST ( NULL AS INTEGER ) + 30 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 6 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
6

query I rowsort
SELECT DISTINCT + tab0.col2 * + 30 FROM tab0, tab2 AS cor0
----
2460
30
990

query I rowsort
SELECT + cor1.col0 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-62
SELECT col2 DIV - col0 + - 44 * + col1 + + tab1.col2 * + col0 FROM tab1
----
-1000
3208
7107

skipif mysql # not compatible
query I rowsort label-62
SELECT col2 / - col0 + - 44 * + col1 + + tab1.col2 * + col0 FROM tab1
----
-1000
3208
7107

query I rowsort
SELECT DISTINCT - col1 + ( col1 ) * - col1 AS col0 FROM tab2
----
-306
-3540
-992

query I rowsort
SELECT ALL 28 + + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to bc14041e7c53f13606998843492eae61

query I rowsort
SELECT DISTINCT col2 + 46 * col1 FROM tab1
----
1250
517
694

query I rowsort
SELECT col1 - col1 * + 29 FROM tab0 AS cor0
----
-2408
-2548
-2716

query I rowsort
SELECT DISTINCT - col2 * - 6 AS col1 FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT DISTINCT - 91 FROM tab2, tab2 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 + col0 col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT ALL - + col1 * + col2 + ( col0 ) + + ( col0 ) FROM tab0 cor0
----
-27
-2790
-7284

query I rowsort
SELECT + 14 + - 77 * - col0 FROM tab1
----
245
4942
6174

onlyif mysql # use DIV operator for integer division
query I rowsort label-72
SELECT col2 * - 90 + - col0 DIV col0 FROM tab2
----
-2341
-2431
-3421

skipif mysql # not compatible
query I rowsort label-72
SELECT col2 * - 90 + - col0 / col0 FROM tab2
----
-2341
-2431
-3421

query I rowsort
SELECT DISTINCT - + ( + cor0.col0 ) AS col1 FROM tab2, tab1, tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + cor1.col0 FROM tab0, tab2, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT ALL tab2.col2 * + col2 AS col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL 39 * + tab1.col0 FROM tab1
----
117
2496
3120

query I rowsort
SELECT col0 - col2 * + col2 FROM tab2 cor0
----
-1365
-598
-722

query I rowsort
SELECT col2 * col2 * 87 + - ( col0 ) FROM tab1 AS cor0
----
253689
282599
801712

query I rowsort
SELECT ALL - ( + col0 ) + col1 * col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT col1 * col1 * - col1 AS col2 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT ALL + col1 + col2 * 88 AS col2 FROM tab2
----
2347
2407
3361

query I rowsort
SELECT ALL 33 * - col2 AS col2 FROM tab0 AS cor0
----
-1089
-2706
-33

query I rowsort
SELECT DISTINCT 61 * col2 + - col2 FROM tab0 AS cor0
----
1980
4920
60

query I rowsort
SELECT DISTINCT - ( + col1 ) + 4 * ( col1 * + 9 ) FROM tab1 cor0
----
350
455
910

query I rowsort
SELECT + col0 + col1 * 50 FROM tab2 cor0
----
1557
3028
929

query I rowsort
SELECT + 35 * - cor0.col0 FROM tab2 AS cor0
----
-245
-2730
-2765

query I rowsort
SELECT DISTINCT - col0 * col1 * cor0.col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL col2 + - col1 * - col0 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + - col1 * cor0.col0 - + col2 AS col2 FROM tab2 cor0
----
-1381
-244
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-90
SELECT DISTINCT - ( cor0.col2 ) DIV + col1 AS col0 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-90
SELECT DISTINCT - ( cor0.col2 ) / + col1 AS col0 FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT + 89 * col2 AS col0 FROM tab2 cor0
----
2314
2403
3382

query I rowsort
SELECT ALL + 68 * + col2 AS col1 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT DISTINCT - + 34 AS col1 FROM tab2 AS cor0
----
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-94
SELECT ALL CAST( - col0 AS SIGNED ) + cor0.col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-94
SELECT ALL CAST ( - col0 AS INTEGER ) + cor0.col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 - col0 * cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-96
SELECT + CAST( NULL AS SIGNED ) - - 54 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-96
SELECT + CAST ( NULL AS INTEGER ) - - 54 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

onlyif mysql # use DIV operator for integer division
query I rowsort label-98
SELECT ALL - ( 33 + + col2 ) DIV 80 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL - ( 33 + + col2 ) / 80 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL + 25 * tab1.col1 AS col1 FROM tab1
----
250
325
650

query I rowsort
SELECT + cor0.col0 FROM tab2, tab2 cor0, tab0 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - + col2 + - col1 + cor0.col0 FROM tab0 AS cor0
----
-63
-84
-95

query I rowsort
SELECT - 49 * + 91 + - col0 - col2 * col0 FROM tab1 AS cor0
----
-12219
-4624
-8171

query I rowsort
SELECT + 45 * col2 * col2 + col2 FROM tab1 AS cor0
----
131274
146262
414816

query I rowsort
SELECT - ( col1 ) - col2 * ( - ( - col2 ) * + col2 ) AS col2 FROM tab1 AS cor0
----
-157490
-185203
-884749

query I rowsort
SELECT 29 - + 73 * + col1 FROM tab0 AS cor0
----
-6249
-6614
-7052

query I rowsort
SELECT - - ( - col2 ) * ( col0 ) + - col1 - col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-266
-4298
-8733

onlyif mysql # use DIV operator for integer division
query I rowsort label-107
SELECT 57 * col1 + - 89 DIV + ( col0 ) FROM tab1 AS cor0
----
1453
569
740

skipif mysql # not compatible
query I rowsort label-107
SELECT 57 * col1 + - 89 / + ( col0 ) FROM tab1 AS cor0
----
1453
569
740

query I rowsort
SELECT 1 * + tab2.col2 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT col0 * 3 FROM tab0
----
105
267
72

query I rowsort
SELECT cor0.col2 + cor0.col2 * - col0 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + + col1 + cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 + col0 + - col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL cor0.col2 * col1 + - col2 AS col2 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT + col0 * 42 FROM tab2 AS cor0
----
294
3276
3318

query I rowsort
SELECT DISTINCT - ( - col0 + tab1.col2 ) AS col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL - 82 * col0 FROM tab0
----
-1968
-2870
-7298

query I rowsort
SELECT + ( 60 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT col2 + - 36 * + 85 AS col1 FROM tab1
----
-2964
-3003
-3006

query I rowsort
SELECT DISTINCT - 73 AS col1 FROM tab0, tab2 AS cor0
----
-73

query I rowsort
SELECT DISTINCT + cor0.col2 * ( col0 ) + - col1 * - col1 AS col2 FROM tab2 AS cor0
----
1150
3291
5509

query I rowsort
SELECT DISTINCT + col2 * col2 + col1 AS col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL - col2 * - 1 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col2 * col0 + cor0.col2 * 47 AS col0 FROM tab0 AS cor0
----
11152
2343
82

query I rowsort
SELECT DISTINCT - + 23 AS col1 FROM tab1 cor0
----
-23

query I rowsort
SELECT - 68 + + 94 AS col1 FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT DISTINCT - + col2 + col0 * col2 AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL - cor0.col0 * col0 + col2 - + col1 FROM tab0 AS cor0
----
-1321
-629
-7930

query I rowsort
SELECT DISTINCT 81 AS col1 FROM tab0, tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT col1 * + ( col0 ) AS col2 FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-130
SELECT CAST( NULL AS SIGNED ) - - col1 * - col1 * col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-130
SELECT CAST ( NULL AS INTEGER ) - - col1 * - col1 * col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * ( - cor0.col1 ) col2 FROM tab2 AS cor0
----
-170
-310
-590

query I rowsort
SELECT 28 * tab1.col1 FROM tab1
----
280
364
728

query I rowsort
SELECT + 28 * - cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 04d1b095c4d70a07da0afafdac5e9099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-134
SELECT + cor0.col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-134
SELECT + cor0.col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * + 7 AS col1 FROM tab2 AS cor0
----
119
217
413

onlyif mysql # use DIV operator for integer division
query I rowsort label-136
SELECT - col2 DIV - ( col1 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-136
SELECT - col2 / - ( col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * col1 + - col0 FROM tab2
----
1456
567
830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-138
SELECT + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-138
SELECT + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col2 ) + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 13 * - col2 + - cor0.col1 * + col1 FROM tab2 AS cor0
----
-1312
-3819
-783

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-141
SELECT - CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-141
SELECT - CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 85 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT ALL ( col1 ) + + tab1.col0 + - col2 * - col2 FROM tab1
----
2945
3323
9309

query I rowsort
SELECT DISTINCT - 60 * + col0 FROM tab1 AS cor0
----
-180
-3840
-4800

query I rowsort
SELECT ALL cor0.col0 + - 41 FROM tab1, tab1 AS cor0
----
9 values hashing to 94a2d96e9cdaa2dec928ac762592b2c9

onlyif mysql # use DIV operator for integer division
query I rowsort label-146
SELECT + tab1.col1 DIV col2 + - 17 AS col2 FROM tab1
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-146
SELECT + tab1.col1 / col2 + - 17 AS col2 FROM tab1
----
-17
-17
-17

query I rowsort
SELECT DISTINCT + + 76 + col2 FROM tab1 cor0
----
130
133
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( - 82 ) col2 FROM tab1 AS cor0
----
-25
-28
14

query I rowsort
SELECT ALL - col2 * 72 AS col0 FROM tab2
----
-1872
-1944
-2736

query I rowsort
SELECT DISTINCT + 47 FROM tab2, tab0 cor0
----
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-151
SELECT col1 DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-151
SELECT col1 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col2 + - ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-153
SELECT + CAST( col1 AS SIGNED ) - col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-153
SELECT + CAST ( col1 AS INTEGER ) - col2 / - col1 AS col1 FROM tab1 AS cor0
----
15
20
28

query I rowsort
SELECT col1 + - 37 * col0 + - ( + ( - col0 ) ) * - col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1163
25334
595234

query I rowsort
SELECT ALL + 58 AS col0 FROM tab1 cor0
----
58
58
58

query I rowsort
SELECT - - ( 5 ) * + col0 FROM tab0 cor0
----
120
175
445

query I rowsort
SELECT DISTINCT + + cor0.col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + + 12 * + col1 FROM tab0 AS cor0
----
1032
1092
1164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-159
SELECT DISTINCT CAST( + col1 AS SIGNED ) * col1 + ( 96 ) * + cor0.col1 + + col0 AS col2 FROM tab0 AS cor0
----
15676
17106
18756

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * col1 + ( 96 ) * + cor0.col1 + + col0 AS col2 FROM tab0 AS cor0
----
15676
17106
18756

query I rowsort
SELECT ALL + 18 * - 87 AS col0 FROM tab1 AS cor0
----
-1566
-1566
-1566

query I rowsort
SELECT ALL - - col1 * col1 AS col0 FROM tab1 cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-162
SELECT DISTINCT ( - col2 ) DIV + col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT ( - col2 ) / + col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT + col0 * col0 * tab0.col0 AS col0 FROM tab0
----
13824
42875
704969

onlyif mysql # use DIV operator for integer division
query I rowsort label-164
SELECT col1 DIV - ( - tab0.col1 ) AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-164
SELECT col1 / - ( - tab0.col1 ) AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT - tab1.col2 * - 89 AS col2 FROM tab1
----
4806
5073
8544

onlyif mysql # use DIV operator for integer division
query I rowsort label-166
SELECT ALL + cor0.col0 * col0 + col2 + cor0.col0 DIV - col1 AS col1 FROM tab1 cor0
----
4147
63
6490

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + cor0.col0 * col0 + col2 + cor0.col0 / - col1 AS col1 FROM tab1 cor0
----
4147
63
6490

query I rowsort
SELECT ALL - col1 * cor0.col0 + - col0 * col0 FROM tab0 AS cor0
----
-16020
-2640
-4620

query I rowsort
SELECT - ( col1 ) + + cor0.col2 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + - 22 + 17 FROM tab1 cor0
----
-5
-5
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-170
SELECT + - CAST( NULL AS SIGNED ) + 26 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-170
SELECT + - CAST ( NULL AS INTEGER ) + 26 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col0 AS REAL ) + + col1 * col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT 14 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT DISTINCT col0 + - col1 + - col0 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-174
SELECT DISTINCT + + 26 * 13 + col0 - - col0 DIV + col1 FROM tab0 AS cor0
----
362
373
427

skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT + + 26 * 13 + col0 - - col0 / + col1 FROM tab0 AS cor0
----
362
373
427

onlyif mysql # use DIV operator for integer division
query I rowsort label-175
SELECT DISTINCT ( cor0.col1 ) + + col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT ( cor0.col1 ) + + col2 / + col1 AS col0 FROM tab2 AS cor0
----
19
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-176
SELECT ALL col1 DIV - col0 - - col2 col0 FROM tab2 AS cor0
----
23
26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-176
SELECT ALL col1 / - col0 - - col2 col0 FROM tab2 AS cor0
----
23
26
38

query I rowsort
SELECT + - cor0.col1 * 58 FROM tab1 AS cor0
----
-1508
-580
-754

query I rowsort
SELECT ALL + ( - tab2.col0 ) + + col2 * - col1 * col1 FROM tab2
----
-11061
-25954
-90584

query I rowsort
SELECT DISTINCT ( 77 ) * + col1 + tab0.col2 FROM tab0
----
6655
7089
7470

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-180
SELECT ALL CAST( NULL AS SIGNED ) / - 43 + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL CAST ( NULL AS INTEGER ) / - 43 + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 40 + col1 + tab1.col0 * - col0 * + col0 FROM tab1
----
-262094
-511947
39

query I rowsort
SELECT 38 * + 8 FROM tab0
----
304
304
304

onlyif mysql # use DIV operator for integer division
query I rowsort label-183
SELECT + col1 * col2 DIV tab0.col0 FROM tab0
----
118
2
83

skipif mysql # not compatible
query I rowsort label-183
SELECT + col1 * col2 / tab0.col0 FROM tab0
----
118
2
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-184
SELECT + 72 DIV - 73 + + col1 + col2 AS col0 FROM tab2
----
55
58
85

skipif mysql # not compatible
query I rowsort label-184
SELECT + 72 / - 73 + + col1 + col2 AS col0 FROM tab2
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-185
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) - - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) - - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 + - 25 * col1 FROM tab2 AS cor0
----
-1534
-442
-806

query I rowsort
SELECT ALL cor0.col0 + ( + 6 ) FROM tab1 AS cor0
----
70
86
9

query I rowsort
SELECT ALL cor0.col2 * + 1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col2 col1 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-190
SELECT ALL - + col1 - CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL - + col1 - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col0 * col1 + col2 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-192
SELECT ALL - + col1 * col2 - + 21 DIV - col0 AS col1 FROM tab2 AS cor0
----
-1534
-646
-834

skipif mysql # not compatible
query I rowsort label-192
SELECT ALL - + col1 * col2 - + 21 / - col0 AS col1 FROM tab2 AS cor0
----
-1534
-646
-834

query I rowsort
SELECT 0 * - col2 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col1 col1 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT DISTINCT 7 * col2 + - tab2.col2 FROM tab2
----
156
162
228

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-196
SELECT - col0 / col1 + - CAST( NULL AS SIGNED ) / + tab2.col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-196
SELECT - col0 / col1 + - CAST ( NULL AS INTEGER ) / + tab2.col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT tab0.col2 * - col1 + 91 AS col0 FROM tab0
----
-2747
-6
-7371

query I rowsort
SELECT DISTINCT 35 + + col1 * - ( + ( - col2 ) ) AS col1 FROM tab1
----
1283
1439
605

query I rowsort
SELECT col2 * col1 + - col1 FROM tab0
----
0
2752
7371

query I rowsort
SELECT - 28 - - col1 FROM tab1
----
-15
-18
-2

query I rowsort
SELECT DISTINCT - col0 * col1 + - col0 + col1 * + col2 AS col1 FROM tab1 AS cor0
----
-134
128
1323

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-202
SELECT DISTINCT - col1 + - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-172
-182
-194

skipif mysql # not compatible
query I rowsort label-202
SELECT DISTINCT - col1 + - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT ALL + col2 * + ( - 13 ) AS col1 FROM tab2 AS cor0
----
-338
-351
-494

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-204
SELECT DISTINCT + - col1 + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT + - col1 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-205
SELECT DISTINCT + + col2 + - 64 DIV + col2 col2 FROM tab1 AS cor0
----
53
56
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-205
SELECT DISTINCT + + col2 + - 64 / + col2 col2 FROM tab1 AS cor0
----
53
56
96

query I rowsort
SELECT col1 + col1 * - 2 AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT + cor0.col0 * col0 * ( + col0 + col0 ) FROM tab0 AS cor0
----
1409938
27648
85750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - + col0 + col1 * + col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL - col2 + - col2 AS col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT ALL cor0.col0 * + ( + ( col1 ) ) AS col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-212
SELECT DISTINCT + 54 DIV + col2 AS col1 FROM tab0
----
0
1
54

skipif mysql # not compatible
query I rowsort label-212
SELECT DISTINCT + 54 / + col2 AS col1 FROM tab0
----
0
1
54

query I rowsort
SELECT DISTINCT + 37 * + col1 AS col2 FROM tab1 cor0
----
370
481
962

onlyif mysql # use DIV operator for integer division
query I rowsort label-214
SELECT DISTINCT + col1 DIV - col0 col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT + col1 / - col0 col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT + col0 * col2 + - col1 + + col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + + col2 - col2 * 51 AS col0 FROM tab1 AS cor0
----
-2700
-2850
-4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 85 + - col0 col0 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT + col1 + col2 * col2 + - col0 * col0 * - col2 AS col0 FROM tab1 AS cor0
----
236731
3428
623629

query I rowsort
SELECT + - cor0.col1 - - col1 * cor0.col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT col1 * col2 - + col2 * - col2 AS col1 FROM tab2 AS cor0
----
1566
2090
2210

query I rowsort
SELECT ALL 29 * col1 AS col0 FROM tab2
----
1711
493
899

query I rowsort
SELECT - col2 * - ( 87 ) + col1 + + col2 AS col1 FROM tab2 cor0
----
2347
2407
3361

query I rowsort
SELECT - tab1.col1 + + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to a0891d923255f338145ac78ca8c0ccef

query I rowsort
SELECT DISTINCT + col2 * - ( col2 ) + cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
-2787
-5278
-946

query I rowsort
SELECT DISTINCT 67 * col2 AS col0 FROM tab0 AS cor0
----
2211
5494
67

query I rowsort
SELECT ALL 90 FROM tab1 cor0
----
90
90
90

query I rowsort
SELECT ALL cor0.col1 + cor0.col2 AS col0 FROM tab1 cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-228
SELECT + ( col2 ) DIV - col0 col0 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-228
SELECT + ( col2 ) / - col0 col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-229
SELECT DISTINCT + CAST( + col0 AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-230
SELECT CAST( NULL AS SIGNED ) * cor0.col1 + - col0 * 84 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-230
SELECT CAST ( NULL AS INTEGER ) * cor0.col1 + - col0 * 84 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 9 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-2
69
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-232
SELECT ALL col1 + tab0.col2 DIV - col1 + + col1 * - col1 * 91 FROM tab0
----
-672950
-753480
-856122

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL col1 + tab0.col2 / - col1 + + col1 * - col1 * 91 FROM tab0
----
-672950
-753480
-856122

query I rowsort
SELECT + col1 + ( tab2.col1 * + col1 ) FROM tab2
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-234
SELECT col0 + 78 DIV + col0 FROM tab0
----
27
37
89

skipif mysql # not compatible
query I rowsort label-234
SELECT col0 + 78 / + col0 FROM tab0
----
27
37
89

query I rowsort
SELECT ALL - - col1 + - 61 + col1 AS col1 FROM tab0 AS cor0
----
111
121
133

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-236
SELECT + CAST( ( col0 ) AS SIGNED ) FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-236
SELECT + CAST ( ( col0 ) AS INTEGER ) FROM tab2
----
7
78
79

query I rowsort
SELECT col1 * + col0 + - 98 AS col1 FROM tab1 AS cor0
----
-20
542
942

query I rowsort
SELECT DISTINCT - 92 + cor0.col1 * + col0 AS col1 FROM tab0 AS cor0
----
1972
3303
8007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 col0 FROM tab2
----
71

query I rowsort
SELECT DISTINCT - 92 + cor0.col2 * ( 11 ) AS col2 FROM tab0 AS cor0
----
-81
271
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col1 FROM tab2 AS cor0
----
13
13
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-242
SELECT ALL + cor0.col1 * - col2 * + 92 - + col1 DIV col0 FROM tab1 AS cor0
----
-114816
-129176
-52440

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL + cor0.col1 * - col2 * + 92 - + col1 / col0 FROM tab1 AS cor0
----
-114816
-129176
-52440

query I rowsort
SELECT DISTINCT + col0 * 71 FROM tab1
----
213
4544
5680

query I rowsort
SELECT DISTINCT - 14 * col1 + col1 FROM tab2 AS cor0
----
-221
-403
-767

query I rowsort
SELECT + col0 * - 61 FROM tab2
----
-427
-4758
-4819

query I rowsort
SELECT ALL - col1 * + col1 + 84 FROM tab0 AS cor0
----
-7312
-8197
-9325

query I rowsort
SELECT + cor0.col2 * - 13 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fd512634c6d0f884ea78308252318e28

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 34 AS REAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT - 29 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - cor0.col0 col1 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-252
SELECT ALL col1 + CAST( - col1 AS SIGNED ) * col2 * - col0 FROM tab2 AS cor0
----
119711
51051
5890

skipif mysql # not compatible
query I rowsort label-252
SELECT ALL col1 + CAST ( - col1 AS INTEGER ) * col2 * - col0 FROM tab2 AS cor0
----
119711
51051
5890

query I rowsort
SELECT col2 * - 5 + + col0 FROM tab1 AS cor0
----
-221
-267
-400

query I rowsort
SELECT DISTINCT - 24 + + cor0.col2 FROM tab2, tab1, tab2 AS cor0
----
14
2
3

query I rowsort
SELECT DISTINCT + + col2 + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL - col0 + - 77 + + col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1379
490
753

query I rowsort
SELECT ALL - + col1 * col0 + col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - + col0 * + 51 + col2 FROM tab1 AS cor0
----
-3207
-3984
-99

query I rowsort
SELECT 98 + + col0 FROM tab0 AS cor0
----
122
133
187

query I rowsort
SELECT ALL ( - 42 ) + col0 + + col1 AS col1 FROM tab0 AS cor0
----
138
68
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-261
SELECT + ( - 40 ) + col2 DIV 20 AS col2 FROM tab2 AS cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-261
SELECT + ( - 40 ) + col2 / 20 AS col2 FROM tab2 AS cor0
----
-39
-39
-39

query I rowsort
SELECT ALL - - 75 AS col0 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT - col0 * 50 * col2 + col2 * - cor0.col2 FROM tab0 AS cor0
----
-1751
-371624
-40689

query I rowsort
SELECT DISTINCT - cor0.col1 + + cor0.col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-265
SELECT DISTINCT col2 DIV + col1 + - col1 * + col2 AS col0 FROM tab1
----
-1241
-1402
-565

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT col2 / + col1 + - col1 * + col2 AS col0 FROM tab1
----
-1241
-1402
-565

onlyif mysql # use DIV operator for integer division
query I rowsort label-266
SELECT + tab0.col0 DIV - col0 + + col0 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-266
SELECT + tab0.col0 / - col0 + + col0 FROM tab0
----
23
34
88

query I rowsort
SELECT + col2 + ( - col0 ) * 34 AS col0 FROM tab1 AS cor0
----
-2119
-2624
-48

query I rowsort
SELECT ALL + ( 97 ) * - col2 - - col1 FROM tab2 AS cor0
----
-2463
-2588
-3669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 * col0 col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-270
SELECT ALL + + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL + + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col2 ) * - col1 - 90 AS col1 FROM tab2 AS cor0
----
-1624
-736
-927

query I rowsort
SELECT DISTINCT + col1 * - ( col0 ) + col0 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT ALL - 54 + col0 * + col1 FROM tab2 AS cor0
----
1289
163
4548

query I rowsort
SELECT ALL + ( - 85 ) FROM tab1 AS cor0
----
-85
-85
-85

query I rowsort
SELECT ( col2 ) * + col0 + 27 + - col2 AS col2 FROM tab2
----
189
2029
2991

query I rowsort
SELECT + 2 * + col2 FROM tab2
----
52
54
76

query I rowsort
SELECT DISTINCT + col0 * - col1 + cor0.col1 * col2 FROM tab1 AS cor0
----
-70
1326
208

query I rowsort
SELECT ALL col0 + + col0 + ( + col1 ) AS col2 FROM tab0
----
134
167
269

query I rowsort
SELECT ALL 93 * - 52 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6170af8798ecf9918469b47509cffc76

query I rowsort
SELECT DISTINCT 19 FROM tab1, tab1 cor0, tab2 AS cor1
----
19

query I rowsort
SELECT ALL col2 * + ( col1 * col2 ) AS col0 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT DISTINCT col1 * 12 * col2 + - col0 AS col1 FROM tab0 AS cor0
----
1129
34032
89455

query I rowsort
SELECT DISTINCT col1 + ( + 43 ) + col0 FROM tab0 AS cor0
----
153
175
223

query I rowsort
SELECT ALL + col1 + + cor0.col2 * - ( col0 ) * col1 FROM tab0 cor0
----
-3298
-664027
-68026

query I rowsort
SELECT tab2.col1 + col2 * - col0 AS col0 FROM tab2
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT + col1 + + ( + col0 ) AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + col2 + 81 FROM tab1 AS cor0
----
135
138
177

query I rowsort
SELECT DISTINCT + col0 * 72 AS col1 FROM tab2 AS cor0
----
504
5616
5688

query I rowsort
SELECT ALL col2 * - 39 AS col1 FROM tab2 AS cor0
----
-1014
-1053
-1482

query I rowsort
SELECT DISTINCT cor0.col0 * - col2 * col0 + - col2 * col0 * col0 AS col0 FROM tab2 AS cor0
----
-2646
-316368
-474316

query I rowsort
SELECT + cor0.col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + 20 FROM tab0, tab2 cor0
----
20

query I rowsort
SELECT DISTINCT - 24 + - 76 FROM tab2 AS cor0
----
-100

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-295
SELECT - CAST( NULL AS SIGNED ) * 91 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-295
SELECT - CAST ( NULL AS INTEGER ) * 91 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + 59 ) * col0 AS col1 FROM tab1 AS cor0
----
177
3776
4720

query I rowsort
SELECT DISTINCT + 46 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
46

query I rowsort
SELECT ALL 9 + + col0 AS col0 FROM tab1 cor0
----
12
73
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-299
SELECT DISTINCT 49 + + col0 DIV - ( - col1 + col0 ) FROM tab1 cor0
----
48
49

skipif mysql # not compatible
query I rowsort label-299
SELECT DISTINCT 49 + + col0 / - ( - col1 + col0 ) FROM tab1 cor0
----
48
49

query I rowsort
SELECT DISTINCT - 86 * + col0 * 55 AS col2 FROM tab2 AS cor0
----
-33110
-368940
-373670

query I rowsort
SELECT + + 48 * - col0 + ( - col0 ) * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-222
-3712
-4880

query I rowsort
SELECT 11 * + col1 - - cor0.col0 FROM tab1 AS cor0
----
174
223
289

query I rowsort
SELECT DISTINCT 79 + col1 * col1 FROM tab1 AS cor0
----
179
248
755

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) + + col0 col0 FROM tab0 cor0
----
0

query I rowsort
SELECT 51 * - cor0.col0 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d7ecd80e167908c6ba8ff8fff33f3419

query I rowsort
SELECT + col1 * col0 * + col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT DISTINCT + tab2.col2 + col2 * col2 AS col1 FROM tab2
----
1482
702
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 35 col0 FROM tab2 AS cor0
----
-1330
-910
-945

query I rowsort
SELECT - col0 + + col2 * - col2 AS col0 FROM tab2 cor0
----
-1523
-736
-754

query I rowsort
SELECT DISTINCT - 11 + - col1 * - col1 FROM tab2
----
278
3470
950

query I rowsort
SELECT DISTINCT 50 * col2 + ( - col1 ) * - tab0.col2 AS col0 FROM tab0
----
11562
147
4488

query I rowsort
SELECT 54 * col0 - col0 * col0 FROM tab0
----
-3115
665
720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-313
SELECT + CAST( NULL AS SIGNED ) + 50 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-313
SELECT + CAST ( NULL AS INTEGER ) + 50 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( ( col0 ) ) + col2 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT - 30 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + - 83 AS col2 FROM tab1 cor0
----
-83
-83
-83

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT + 86 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT DISTINCT + col2 * + col1 * col2 + + tab1.col1 AS col1 FROM tab1
----
119821
32500
75842

query I rowsort
SELECT DISTINCT - 93 FROM tab0, tab1, tab2 cor0, tab2
----
-93

query I rowsort
SELECT col2 * 3 AS col2 FROM tab0
----
246
3
99

query I rowsort
SELECT - - col2 * col1 + - col0 * - col1 - col0 AS col0 FROM tab2 AS cor0
----
1047
1910
6058

onlyif mysql # use DIV operator for integer division
query I rowsort label-324
SELECT DISTINCT 58 DIV 62 FROM tab1, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT 58 / 62 FROM tab1, tab1 AS cor0
----
0

query I rowsort
SELECT ALL col1 * - ( - 52 + + col1 ) AS col1 FROM tab0 AS cor0
----
-2924
-3549
-4365

query I rowsort
SELECT DISTINCT - + col0 + cor0.col2 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT ALL + cor0.col0 - 45 AS col0 FROM tab2 AS cor0
----
-38
33
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-328
SELECT CAST( 21 AS SIGNED ) FROM tab2, tab2 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

skipif mysql # not compatible
query I rowsort label-328
SELECT CAST ( 21 AS INTEGER ) FROM tab2, tab2 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 65 * - 84 col2 FROM tab2
----
38220
425880
431340

query I rowsort
SELECT ALL col0 * 54 * 90 AS col0 FROM tab2 AS cor0
----
34020
379080
383940

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-331
SELECT - CAST( col2 AS SIGNED ) * + col2 + - 28 FROM tab1 AS cor0
----
-2944
-3277
-9244

skipif mysql # not compatible
query I rowsort label-331
SELECT - CAST ( col2 AS INTEGER ) * + col2 + - 28 FROM tab1 AS cor0
----
-2944
-3277
-9244

query I rowsort
SELECT col2 + 18 * + col2 FROM tab0 AS cor0
----
1558
19
627

query I rowsort
SELECT + + cor0.col1 + ( + col0 + 9 ) AS col1 FROM tab1 AS cor0
----
102
38
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 54 + - col0 col1 FROM tab1 cor0
----
-118
-134
-57

query I rowsort
SELECT 63 + - 76 FROM tab0 AS cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT - + col2 - - 0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT col1 * col0 * 3 AS col0 FROM tab0
----
10185
24297
6192

query I rowsort
SELECT tab2.col0 * - 56 AS col0 FROM tab2
----
-392
-4368
-4424

query I rowsort
SELECT - col2 + - col1 * + tab1.col2 * ( + col2 ) FROM tab1
----
-119904
-32547
-75870

query I rowsort
SELECT DISTINCT col2 + + 85 * col1 FROM tab1
----
1201
2264
907

query I rowsort
SELECT DISTINCT ( + col1 ) + col1 + - ( - col0 + col1 * 43 ) AS col1 FROM tab2
----
-1264
-2341
-618

query I rowsort
SELECT ( col1 ) + cor0.col1 - + cor0.col1 * - 97 * cor0.col2 FROM tab2 AS cor0
----
148916
62696
81251

query I rowsort
SELECT DISTINCT + cor0.col0 * 52 FROM tab2 AS cor0
----
364
4056
4108

query I rowsort
SELECT - + 35 * - ( + col2 ) + - ( + col1 ) + + col0 FROM tab2 AS cor0
----
1392
921
929

query I rowsort
SELECT - ( col1 ) * + col0 + + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT - 76 * - col1 AS col0 FROM tab0 AS cor0
----
6536
6916
7372

onlyif mysql # use DIV operator for integer division
query I rowsort label-347
SELECT DISTINCT col1 DIV + 88 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-347
SELECT DISTINCT col1 / + 88 AS col1 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-348
SELECT ALL - col2 DIV 59 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL - col2 / 59 AS col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT + cor0.col2 + - col0 * + 54 AS col1 FROM tab0 AS cor0
----
-1263
-1889
-4724

query I rowsort
SELECT + col0 * col2 + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL + col2 + cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - ( col1 * col2 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + - 13 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT ALL ( + col1 + col1 ) * col0 AS col0 FROM tab1
----
1280
156
2080

query I rowsort
SELECT - col1 + 94 * + col1 AS col0 FROM tab1 AS cor0
----
1209
2418
930

query I rowsort
SELECT col0 + - col1 * 86 FROM tab0 AS cor0
----
-7372
-7737
-8307

onlyif mysql # use DIV operator for integer division
query I rowsort label-357
SELECT ALL + col1 DIV tab2.col1 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL + col1 / tab2.col1 AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL - col0 * col1 + - col0 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-359
SELECT ALL - CAST( col2 AS SIGNED ) DIV col0 AS col1 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL - CAST ( col2 AS INTEGER ) / col0 AS col1 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT ALL 68 * - col1 AS col1 FROM tab2 AS cor0
----
-1156
-2108
-4012

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-362
SELECT + 5 * 99 DIV - cor0.col2 FROM tab1 AS cor0
----
-5
-8
-9

skipif mysql # not compatible
query I rowsort label-362
SELECT + 5 * 99 / - cor0.col2 FROM tab1 AS cor0
----
-5
-8
-9

query I rowsort
SELECT DISTINCT tab2.col0 - - col1 FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col0 ) + - col2 col2 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-365
SELECT ALL ( - cor0.col0 ) * - ( col1 ) + + col2 DIV + col0 AS col0 FROM tab1 cor0
----
1041
640
96

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL ( - cor0.col0 ) * - ( col1 ) + + col2 / + col0 AS col0 FROM tab1 cor0
----
1041
640
96

query I rowsort
SELECT DISTINCT col0 + cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
2919
3313
9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 * + cor0.col1 * col0 + ( col2 ) * col0 col0 FROM tab0 AS cor0
----
-118790
-48744
-713513

query I rowsort
SELECT 61 * - col2 AS col2 FROM tab1 AS cor0
----
-3294
-3477
-5856

query I rowsort
SELECT + 81 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1944
2835
7209

query I rowsort
SELECT ALL ( + col2 ) + col0 * col0 AS col1 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT + 52 * col0 FROM tab2 AS cor0
----
364
4056
4108

query I rowsort
SELECT ALL + ( 54 ) AS col2 FROM tab1
----
54
54
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-373
SELECT DISTINCT ( - col1 ) DIV - tab1.col1 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT ( - col1 ) / - tab1.col1 AS col0 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - cor0.col2 col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + ( col0 ) + - col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL 8 + col0 * + col0 * col2 FROM tab1 AS cor0
----
233480
494
614408

onlyif mysql # use DIV operator for integer division
query I rowsort label-377
SELECT ALL + cor0.col0 DIV - col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL + cor0.col0 / - col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col2 + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1406
650
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-379
SELECT DISTINCT + - col1 DIV + cor0.col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-379
SELECT DISTINCT + - col1 / + cor0.col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col0 * + col0 + col0 AS col2 FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT - col1 * col0 + col0 * + 65 * + col2 FROM tab2 AS cor0
----
12068
127218
193787

query I rowsort
SELECT DISTINCT + ( - ( cor0.col0 ) ) * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + 55 + col1 FROM tab2 AS cor0
----
114
72
86

query I rowsort
SELECT DISTINCT - 18 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
-18

query I rowsort
SELECT - col1 * + 58 + - col0 AS col0 FROM tab1
----
-1511
-644
-834

query I rowsort
SELECT + 82 + + 67 * col0 * col1 FROM tab0
----
138370
227547
542715

query I rowsort
SELECT - ( - col0 ) + - col1 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT - tab0.col2 * 82 - - col0 * + 91 AS col1 FROM tab0
----
-522
1375
3103

query I rowsort
SELECT DISTINCT tab0.col1 * col0 + col1 * col1 FROM tab0
----
12804
16380
9460

query I rowsort
SELECT col1 * - 33 + col2 FROM tab1 AS cor0
----
-273
-333
-804

query I rowsort
SELECT DISTINCT col1 + 91 AS col1 FROM tab0 AS cor0
----
177
182
188

query I rowsort
SELECT DISTINCT col2 * 69 AS col1 FROM tab1 cor0
----
3726
3933
6624

query I rowsort
SELECT DISTINCT - ( col1 ) * col1 * col2 AS col2 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL 33 * 12 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to b7274cd7aba292c47dbfba43c41383c8

query I rowsort
SELECT DISTINCT - 71 + 87 AS col2 FROM tab2
----
16

query I rowsort
SELECT - ( 20 ) FROM tab1 cor0
----
-20
-20
-20

query I rowsort
SELECT ALL col2 * col0 - cor0.col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL - 20 - + ( cor0.col0 ) FROM tab1 AS cor0
----
-100
-23
-84

query I rowsort
SELECT + 89 + col2 FROM tab2 AS cor0
----
115
116
127

query I rowsort
SELECT ALL + 66 * + col2 AS col0 FROM tab2 cor0
----
1716
1782
2508

query I rowsort
SELECT - col1 + cor0.col1 * col1 FROM tab2 AS cor0
----
272
3422
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col1 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + 82 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT ALL + 69 + col1 FROM tab0 cor0
----
155
160
166

query I rowsort
SELECT DISTINCT 35 * - col2 AS col0 FROM tab2 AS cor0
----
-1330
-910
-945

query I rowsort
SELECT ALL + col1 * - ( tab2.col1 ) + - col1 * + ( + col2 ) + + col1 FROM tab2
----
-1767
-4956
-918

query I rowsort
SELECT + cor0.col1 + - 74 + cor0.col1 AS col0 FROM tab0 cor0
----
108
120
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-408
SELECT ALL col0 + 33 + ( col0 ) DIV - 65 AS col1 FROM tab1
----
112
36
97

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL col0 + 33 + ( col0 ) / - 65 AS col1 FROM tab1
----
112
36
97

query I rowsort
SELECT DISTINCT + col1 * + ( col0 ) + col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT DISTINCT col1 * ( - ( col1 ) ) + col0 * - col0 AS col0 FROM tab0
----
-10634
-16202
-7972

query I rowsort
SELECT + col2 * + 60 + - col0 AS col1 FROM tab1
----
3237
3356
5680

query I rowsort
SELECT ALL + col2 * - col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + col1 + + ( col0 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + + col2 * col2 - 52 * - col0 AS col0 FROM tab2 AS cor0
----
1093
4732
5552

query I rowsort
SELECT ALL + col1 * 29 AS col1 FROM tab1 AS cor0
----
290
377
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-417
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col0 * col2 * + col0 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-417
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 * col2 * + col0 AS col0 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + - col0 col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT + ( - col1 ) + - col2 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-420
SELECT ALL - CAST( NULL AS DECIMAL ) * + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL - CAST ( NULL AS REAL ) * + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 22 * col0 + - col2 - 75 FROM tab1 AS cor0
----
-63
1276
1589

query I rowsort
SELECT DISTINCT - col2 * + ( - col1 ) * col0 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-423
SELECT + CAST( NULL AS DECIMAL ) + - col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-423
SELECT + CAST ( NULL AS REAL ) + - col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 20 * 3 AS col0 FROM tab1 AS cor0
----
-60
-60
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-425
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - cor0.col2 * col1 * col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - + cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + 56 FROM tab2 cor0
----
56
56
56

query I rowsort
SELECT ALL - col1 * col0 + col0 * + col2 AS col2 FROM tab2
----
-2574
-28
1659

query I rowsort
SELECT - - ( + 75 ) + - cor0.col2 * + col2 AS col0 FROM tab2 cor0
----
-1369
-601
-654

query I rowsort
SELECT DISTINCT - - cor0.col0 * col2 + col2 AS col2 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT + col2 + col0 + - 19 FROM tab0 cor0
----
152
17
38

query I rowsort
SELECT - col0 + - cor0.col0 + col0 * col0 FROM tab2 AS cor0
----
35
5928
6083

query I rowsort
SELECT + - col2 + + col1 * + col2 AS col1 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT ALL 36 + + col1 AS col1 FROM tab0
----
122
127
133

query I rowsort
SELECT col1 * 16 + col2 + ( + col0 + col2 ) * + 77 * - cor0.col1 AS col2 FROM tab2 cor0
----
-152843
-471502
-80635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT + col0 * ( - col1 ) * - col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL 71 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT - + col2 + + 37 FROM tab0 AS cor0
----
-45
36
4

query I rowsort
SELECT ALL ( - 82 ) * + cor0.col1 + 90 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 96f27b851d5cc23d9aaad6c68c55fc51

query I rowsort
SELECT ALL tab0.col1 + 46 FROM tab0
----
132
137
143

query I rowsort
SELECT ALL + 57 + tab1.col0 FROM tab1
----
121
137
60

query I rowsort
SELECT ALL 12 + col2 AS col0 FROM tab2
----
38
39
50

query I rowsort
SELECT + - cor0.col1 - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT 9 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT + ( + 70 ) FROM tab1
----
70

query I rowsort
SELECT ALL - 52 + + cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 52d9d8c4beaf930dabb126f53f1c280f

query I rowsort
SELECT DISTINCT - 90 * - 57 FROM tab1
----
5130

query I rowsort
SELECT ALL - col2 * col0 + col2 * col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-453
SELECT col2 DIV col1 + ( col0 ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-453
SELECT col2 / col1 + ( col0 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col1 * col1 * + 68 - - col1 FROM tab0 AS cor0
----
503014
563199
639909

query I rowsort
SELECT 93 + - col2 FROM tab0 AS cor0
----
11
60
92

query I rowsort
SELECT ALL + + 40 + col2 FROM tab0 AS cor0
----
122
41
73

query I rowsort
SELECT + - col1 + - cor0.col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - + 1 - - cor0.col0 FROM tab0 cor0
----
23
34
88

query I rowsort
SELECT - 71 - - col1 FROM tab0 AS cor0
----
15
20
26

query I rowsort
SELECT - 71 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + tab1.col1 col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT ( tab0.col0 ) * col2 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT 67 * tab0.col2 FROM tab0
----
2211
5494
67

query I rowsort
SELECT ALL - ( tab1.col1 ) * + col0 * col1 - col1 FROM tab1
----
-13533
-2054
-6410

query I rowsort
SELECT ALL 48 * - tab2.col2 FROM tab2
----
-1248
-1296
-1824

query I rowsort
SELECT + cor0.col0 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - col1 * - col1 + col0 FROM tab2 cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-468
SELECT + - col0 DIV col1 + col2 * col2 col1 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-468
SELECT + - col0 / col1 + col2 * col2 col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - col0 * + col2 + 18 FROM tab0
----
-17
-7280
-774

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-470
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-471
SELECT + cor0.col1 * + CAST( 96 AS SIGNED ) + col2 FROM tab2 AS cor0
----
1670
3003
5690

skipif mysql # not compatible
query I rowsort label-471
SELECT + cor0.col1 * + CAST ( 96 AS INTEGER ) + col2 FROM tab2 AS cor0
----
1670
3003
5690

query I rowsort
SELECT ALL col1 + - 50 * col0 AS col0 FROM tab2 AS cor0
----
-319
-3841
-3933

query I rowsort
SELECT ALL + + cor0.col1 * ( col1 ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - col0 - - ( + col2 ) * + col2 AS col1 FROM tab1 AS cor0
----
2913
3185
9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-475
SELECT ALL col2 + col1 + - col2 DIV col0 AS col2 FROM tab2 cor0
----
55
55
85

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL col2 + col1 + - col2 / col0 AS col2 FROM tab2 cor0
----
55
55
85

query I rowsort
SELECT tab2.col1 + + 76 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 412e3a29b49ac7622b9c8c36e18fba04

query I rowsort
SELECT col0 * + 72 AS col0 FROM tab2 cor0
----
504
5616
5688

query I rowsort
SELECT + + col1 * - col1 - + col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT ALL - cor0.col2 * 14 FROM tab1 AS cor0
----
-1344
-756
-798

query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-481
SELECT DISTINCT - cor0.col0 * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT - cor0.col0 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query I rowsort
SELECT 73 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col2 + cor0.col0 col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - + ( + 85 ) AS col2 FROM tab1 AS cor0
----
-85
-85
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-485
SELECT 61 + 41 DIV + col0 FROM tab1 AS cor0
----
61
61
74

skipif mysql # not compatible
query I rowsort label-485
SELECT 61 + 41 / + col0 FROM tab1 AS cor0
----
61
61
74

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( ( col1 ) AS REAL ) FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT DISTINCT col0 * - 23 + + col0 * + col2 AS col0 FROM tab0
----
-770
240
5251

query I rowsort
SELECT DISTINCT + col2 + ( + 2 ) * - col2 * - col0 FROM tab1
----
15456
378
7353

query I rowsort
SELECT - tab1.col2 + col2 * - col2 * col2 FROM tab1
----
-157518
-185250
-884832

query I rowsort
SELECT DISTINCT + tab1.col2 * - col2 + col2 FROM tab1
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-492
SELECT + col2 DIV + col1 + col0 FROM tab2
----
7
78
81

skipif mysql # not compatible
query I rowsort label-492
SELECT + col2 / + col1 + col0 FROM tab2
----
7
78
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-493
SELECT ALL - - col1 * CAST( NULL AS SIGNED ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL - - col1 * CAST ( NULL AS INTEGER ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-494
SELECT + col1 DIV ( + 67 ) + + col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-494
SELECT + col1 / ( + 67 ) + + col0 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * - 22 * + col0 + - ( col2 ) * cor0.col2 * col1 + - col2 col0 FROM tab0 cor0
----
-111111
-772522
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-496
SELECT ALL col2 DIV - ( col0 ) + ( col0 ) AS col2 FROM tab0 cor0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL col2 / - ( col0 ) + ( col0 ) AS col2 FROM tab0 cor0
----
23
35
89

query I rowsort
SELECT DISTINCT - ( col1 ) * col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-498
SELECT + CAST( - 91 AS SIGNED ) FROM tab0 AS cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-498
SELECT + CAST ( - 91 AS INTEGER ) FROM tab0 AS cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT cor0.col0 * col2 * col1 - - col2 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT ALL + 26 + - col2 AS col2 FROM tab2 cor0
----
-1
-12
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-501
SELECT ALL + - 36 DIV col0 + col2 AS col0 FROM tab2 AS cor0
----
22
26
38

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL + - 36 / col0 + col2 AS col0 FROM tab2 AS cor0
----
22
26
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-502
SELECT + col1 DIV ( - col1 * col0 ) + 97 FROM tab2 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-502
SELECT + col1 / ( - col1 * col0 ) + 97 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT - col2 - 8 AS col0 FROM tab0 AS cor0
----
-41
-9
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col0 FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT DISTINCT ( 21 ) + col2 AS col1 FROM tab0 cor0
----
103
22
54

query I rowsort
SELECT ALL + col2 * + col2 + col0 * + col0 FROM tab0 AS cor0
----
1226
14645
1665

query I rowsort
SELECT + 18 * + 16 + + cor0.col1 FROM tab0 AS cor0
----
374
379
385

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-508
SELECT ALL + col1 - - 58 * col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL + col1 - - 58 * col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab2.col2 - - ( - 18 ) * col1 AS col0 FROM tab2
----
-1036
-268
-531

onlyif mysql # use DIV operator for integer division
query I rowsort label-510
SELECT DISTINCT + 29 + - col2 DIV - col2 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT + 29 + - col2 / - col2 FROM tab1 AS cor0
----
30

query I rowsort
SELECT ALL 17 * - 47 + col1 FROM tab0 AS cor0
----
-702
-708
-713

query I rowsort
SELECT + + cor0.col2 + col1 - col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - col2 + + col1 * + col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
131
2829
7469

query I rowsort
SELECT DISTINCT + 36 FROM tab2 cor0
----
36

query I rowsort
SELECT DISTINCT + col2 + - col1 + col0 FROM tab2 cor0
----
100
3
45

query I rowsort
SELECT ALL - col0 * cor0.col0 * - col1 AS col1 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT + 8 * - col2 - col1 FROM tab1 cor0
----
-458
-466
-781

query I rowsort
SELECT + col0 * col0 + + ( 56 ) - col0 AS col1 FROM tab2 AS cor0
----
6062
6218
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 col2 FROM tab1 AS cor0
----
44

query I rowsort
SELECT DISTINCT 51 * - col1 FROM tab2 cor0
----
-1581
-3009
-867

query I rowsort
SELECT ALL ( col1 ) * + cor0.col0 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT col1 + col2 * + 50 * col1 FROM tab0 AS cor0
----
141986
373191
4947

onlyif mysql # use DIV operator for integer division
query I rowsort label-523
SELECT ALL + 83 * col0 + ( + cor0.col0 ) + - col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
2018
3037
7477

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL + 83 * col0 + ( + cor0.col0 ) + - col1 / - col2 AS col1 FROM tab0 AS cor0
----
2018
3037
7477

query I rowsort
SELECT ALL - cor0.col2 + + col0 * col0 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT + col0 * 20 AS col2 FROM tab0 AS cor0
----
1780
480
700

query I rowsort
SELECT ALL col2 + 16 FROM tab0 AS cor0
----
17
49
98

query I rowsort
SELECT DISTINCT + col0 * - 12 * 35 AS col0 FROM tab1 AS cor0
----
-1260
-26880
-33600

query I rowsort
SELECT ALL col1 + - col1 * 98 AS col0 FROM tab0 AS cor0
----
-8342
-8827
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-529
SELECT - - col1 * + CAST( NULL AS DECIMAL ) / cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-529
SELECT - - col1 * + CAST ( NULL AS REAL ) / cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col2 - - 55 AS col1 FROM tab2 cor0
----
-134
-1973
-2947

query I rowsort
SELECT DISTINCT - col0 + - col1 * col0 AS col0 FROM tab0 cor0
----
-2088
-3430
-8188

query I rowsort
SELECT + col1 + - ( 59 ) FROM tab2 AS cor0
----
-28
-42
0

query I rowsort
SELECT ALL + - cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + cor0.col0 + 91 FROM tab2 AS cor0
----
169
170
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-535
SELECT DISTINCT - col0 DIV 5 AS col2 FROM tab0 AS cor0
----
-17
-4
-7

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT - col0 / 5 AS col2 FROM tab0 AS cor0
----
-17
-4
-7

query I rowsort
SELECT ALL 56 + + col2 AS col1 FROM tab0
----
138
57
89

query I rowsort
SELECT + col0 * - col0 - ( + cor0.col0 ) FROM tab1 cor0
----
-12
-4160
-6480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-538
SELECT ALL + col2 + CAST( NULL AS SIGNED ) / - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) / - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT - 15 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT ALL - + col0 + 3 * col2 FROM tab2 cor0
----
0
35
74

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to b225d3765f33551c12574f545c8c91eb

query I rowsort
SELECT + ( 1 ) + - col0 FROM tab0
----
-23
-34
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-544
SELECT ALL + 13 DIV col0 + 19 * tab2.col2 AS col1 FROM tab2
----
494
514
722

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL + 13 / col0 + 19 * tab2.col2 AS col1 FROM tab2
----
494
514
722

query I rowsort
SELECT ALL + tab2.col1 * 55 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 0a6d0f460fe2cb2f7eccfbb13ec302e6

query I rowsort
SELECT 48 + tab0.col2 + col2 * col2 AS col1 FROM tab0
----
1170
50
6854

query I rowsort
SELECT + 61 * + tab1.col0 + + ( col2 ) * col0 + - col1 FROM tab1
----
12547
319
7542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 col1 FROM tab1 AS cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + - col0 col2 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-550
SELECT ALL + 33 DIV - col0 - ( - col2 ) AS col2 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL + 33 / - col0 - ( - col2 ) AS col2 FROM tab0 AS cor0
----
1
32
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-551
SELECT ALL + 87 * + col2 + - col2 * + col1 * + col0 + col2 DIV - col1 FROM tab1 AS cor0
----
-31526
-91495
484

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL + 87 * + col2 + - col2 * + col1 * + col0 + col2 / - col1 FROM tab1 AS cor0
----
-31526
-91495
484

query I rowsort
SELECT + cor1.col1 * - cor0.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c25bf2f069c912fb3438dc73db666079

query I rowsort
SELECT DISTINCT 88 * - col1 + col0 AS col0 FROM tab1 AS cor0
----
-1064
-2285
-816

query I rowsort
SELECT DISTINCT - col1 + - col1 * 49 FROM tab2 cor0
----
-1550
-2950
-850

query I rowsort
SELECT + ( - cor0.col1 ) + cor0.col2 AS col2 FROM tab0, tab0 cor0 CROSS JOIN tab2
----
27 values hashing to 09528da19a66d24504ef639e7bf26d5b

query I rowsort
SELECT col2 * + col1 * + col0 FROM tab0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-557
SELECT CAST( + 84 AS SIGNED ) * - col0 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-557
SELECT CAST ( + 84 AS INTEGER ) * - col0 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-558
SELECT - - CAST( cor0.col1 AS SIGNED ) - - col1 AS col0 FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-558
SELECT - - CAST ( cor0.col1 AS INTEGER ) - - col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - ( - 25 ) * + col0 AS col1 FROM tab1 AS cor0
----
1600
2000
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-560
SELECT - + cor0.col0 + - ( - col2 ) * col0 DIV 59 FROM tab0 cor0
----
-11
-35
34

skipif mysql # not compatible
query I rowsort label-560
SELECT - + cor0.col0 + - ( - col2 ) * col0 / 59 FROM tab0 cor0
----
-11
-35
34

query I rowsort
SELECT - + 34 + col1 + + col1 AS col2 FROM tab0 AS cor0
----
138
148
160

query I rowsort
SELECT - 53 + 66 * col2 AS col1 FROM tab1 AS cor0
----
3511
3709
6283

query I rowsort
SELECT 96 * + col1 AS col1 FROM tab0
----
8256
8736
9312

query I rowsort
SELECT DISTINCT + col2 * - ( col1 ) * - col0 AS col0 FROM tab0 cor0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT 27 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-567
SELECT DISTINCT col0 DIV 15 FROM tab0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT col0 / 15 FROM tab0
----
1
2
5

query I rowsort
SELECT DISTINCT col1 * ( col0 ) + col0 * - ( col2 ) FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT + - ( 82 ) FROM tab2 AS cor0
----
-82
-82
-82

query I rowsort
SELECT - 22 * + 32 FROM tab1 AS cor0
----
-704
-704
-704

query I rowsort
SELECT DISTINCT - 59 + - col2 FROM tab2 AS cor0
----
-85
-86
-97

query I rowsort
SELECT - col2 + - tab0.col2 AS col0 FROM tab0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-573
SELECT tab2.col1 + + col2 DIV + col1 FROM tab2
----
19
31
59

skipif mysql # not compatible
query I rowsort label-573
SELECT tab2.col1 + + col2 / + col1 FROM tab2
----
19
31
59

query I rowsort
SELECT DISTINCT col0 * - col1 * - tab0.col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT + 74 FROM tab2, tab1 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT tab1.col0 * cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to eb103eabe531563e672e54874d056f9f

query I rowsort
SELECT col2 * + col1 + - col1 * - col2 AS col2 FROM tab1 AS cor0
----
1140
2496
2808

onlyif mysql # use DIV operator for integer division
query I rowsort label-579
SELECT ALL col0 DIV col0 + - cor0.col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL col0 / col0 + - cor0.col1 FROM tab0 AS cor0
----
-85
-90
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-580
SELECT DISTINCT + col1 + 73 DIV - col2 FROM tab0 cor0
----
24
84
91

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT + col1 + 73 / - col2 FROM tab0 cor0
----
24
84
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( col1 ) col0 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-582
SELECT ALL col2 + 9 DIV col0 FROM tab2 AS cor0
----
26
28
38

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL col2 + 9 / col0 FROM tab2 AS cor0
----
26
28
38

query I rowsort
SELECT ALL tab2.col0 * - 65 + - tab2.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 266448378cdaa75ab32fc6ee83634d78

onlyif mysql # use DIV operator for integer division
query I rowsort label-584
SELECT col0 - col1 DIV - tab0.col0 AS col0 FROM tab0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-584
SELECT col0 - col1 / - tab0.col0 AS col0 FROM tab0
----
27
37
90

query I rowsort
SELECT - cor0.col1 * cor0.col2 FROM tab1, tab2 cor0
----
9 values hashing to c52f276f0448e9317aa4a2c462e0bab5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col0 + - col0 col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL - tab0.col0 + + col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT col2 * - ( col2 ) AS col0 FROM tab1 cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-589
SELECT ALL - CAST( NULL AS SIGNED ) + + 63 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL - CAST ( NULL AS INTEGER ) + + 63 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - cor0.col2 + - 13 * - col1 AS col0 FROM tab0 AS cor0
----
1085
1101
1260

query I rowsort
SELECT col0 * ( + col0 ) * + col2 FROM tab1 cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT col2 - cor0.col2 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col0 * 2 + + col2 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT + - col0 - col1 * - col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL + - col1 * 29 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-280
-364
-728

query I rowsort
SELECT DISTINCT - - col2 - + 33 FROM tab2 AS cor0
----
-6
-7
5

query I rowsort
SELECT DISTINCT + - col1 + col0 + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2126
-3457
-8101

query I rowsort
SELECT ALL col1 * ( + col1 ) AS col2 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-599
SELECT ALL col0 * col0 DIV col2 + ( col1 ) FROM tab1
----
26
79
81

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL col0 * col0 / col2 + ( col1 ) FROM tab1
----
26
79
81

query I rowsort
SELECT + col2 * col2 * + col0 AS col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT DISTINCT 91 + + 8 * tab2.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
299
307
395

query I rowsort
SELECT ALL col1 + + 68 - + col2 * col0 FROM tab1 AS cor0
----
-3570
-68
-7599

onlyif mysql # use DIV operator for integer division
query I rowsort label-603
SELECT DISTINCT + + col1 DIV + 35 + + col1 AS col2 FROM tab2 AS cor0
----
17
31
60

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT + + col1 / + 35 + + col1 AS col2 FROM tab2 AS cor0
----
17
31
60

query I rowsort
SELECT DISTINCT + cor0.col1 * ( - col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + + cor0.col2 * 29 - - col2 FROM tab0 AS cor0
----
2460
30
990

query I rowsort
SELECT + + col2 * - 60 FROM tab1 AS cor0
----
-3240
-3420
-5760

query I rowsort
SELECT ALL - col1 * - col0 + - col0 AS col2 FROM tab0 cor0
----
2040
3360
8010

query I rowsort
SELECT ALL col1 - 63 FROM tab1 AS cor0
----
-37
-50
-53

query I rowsort
SELECT + col2 * - 84 + + col1 * col0 AS col2 FROM tab0 AS cor0
----
-708
1211
3311

onlyif mysql # use DIV operator for integer division
query I rowsort label-610
SELECT - - col1 + - col2 DIV - col0 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-610
SELECT - - col1 + - col2 / - col0 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT ALL + + cor0.col1 + + col1 + col1 AS col0 FROM tab0 cor0
----
258
273
291

query I rowsort
SELECT DISTINCT - col0 * cor0.col2 + + col2 - col2 * - ( - col1 ) * cor0.col2 FROM tab0 cor0
----
-131
-619100
-94413

query I rowsort
SELECT ALL - col0 - + col2 AS col2 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT col0 + tab2.col2 FROM tab2 WHERE + col0 IN ( + col0 - col0 )
----

query I rowsort
SELECT ALL tab2.col0 + col0 * col0 FROM tab2
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-616
SELECT col0 + col1 DIV - tab0.col1 col1 FROM tab0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-616
SELECT col0 + col1 / - tab0.col1 col1 FROM tab0
----
23
34
88

query I rowsort
SELECT DISTINCT - col2 * + col0 - - col2 FROM tab1
----
-108
-3591
-7584

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 ) NOT IN ( - tab1.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-619
SELECT DISTINCT - col1 - + col1 DIV col0 AS col0 FROM tab1
----
-10
-13
-34

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT - col1 - + col1 / col0 AS col0 FROM tab1
----
-10
-13
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + 20 + col0 FROM tab0 cor0
----
109
44
55

query I rowsort
SELECT - - 69 + + col2 AS col1 FROM tab1 cor0
----
123
126
165

query I rowsort
SELECT + + 72 - - col2 AS col1 FROM tab0 AS cor0
----
105
154
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-624
SELECT + 64 * + cor0.col1 - - CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-624
SELECT + 64 * + cor0.col1 - - CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-625
SELECT ALL cor0.col0 + - col0 * 24 + + col1 * col2 DIV cor0.col2 FROM tab0 AS cor0
----
-1956
-466
-708

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL cor0.col0 + - col0 * 24 + + col1 * col2 / cor0.col2 FROM tab0 AS cor0
----
-1956
-466
-708

query I rowsort
SELECT DISTINCT + col2 - - cor0.col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + tab1.col0 + + col2 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-628
SELECT - col1 * col2 + + col1 DIV col2 + col1 DIV col0 AS col2 FROM tab0
----
-2833
-7460
2

skipif mysql # not compatible
query I rowsort label-628
SELECT - col1 * col2 + + col1 / col2 + col1 / col0 AS col2 FROM tab0
----
-2833
-7460
2

query I rowsort
SELECT + 9 * + col2 AS col2 FROM tab2 cor0
----
234
243
342

onlyif mysql # use DIV operator for integer division
query I rowsort label-630
SELECT DISTINCT - 69 + cor0.col2 DIV - cor0.col1 FROM tab1 AS cor0
----
-71
-74
-76

skipif mysql # not compatible
query I rowsort label-630
SELECT DISTINCT - 69 + cor0.col2 / - cor0.col1 FROM tab1 AS cor0
----
-71
-74
-76

query I rowsort
SELECT DISTINCT + 30 AS col0 FROM tab0 cor0
----
30

query I rowsort
SELECT ALL 10 * + col0 + - col1 AS col2 FROM tab2 AS cor0
----
39
721
773

onlyif mysql # use DIV operator for integer division
query I rowsort label-633
SELECT + - col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-633
SELECT + - col2 / - col1 AS col1 FROM tab2 AS cor0
----
0
0
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-634
SELECT DISTINCT - col0 + col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT DISTINCT - col0 + col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 6 * - col1 AS col2 FROM tab2 AS cor0
----
102
186
354

query I rowsort
SELECT DISTINCT + col1 * + col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + col1 + col1 - col1 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - - col1 col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - col0 - + ( - 67 ) FROM tab0 AS cor0
----
-22
32
43

query I rowsort
SELECT DISTINCT + 5 AS col2 FROM tab0 cor0
----
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-641
SELECT DISTINCT - CAST( + ( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT - CAST ( + ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - col0 * col0 + - col1 + - col0 FROM tab1 AS cor0
----
-38
-4170
-6493

query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) + col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-644
SELECT + + 7 DIV - col2 AS col2 FROM tab0 AS cor0
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-644
SELECT + + 7 / - col2 AS col2 FROM tab0 AS cor0
----
-7
0
0

query I rowsort
SELECT ALL - ( 53 ) AS col2 FROM tab0 AS cor0
----
-53
-53
-53

query I rowsort
SELECT 47 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f

query I rowsort
SELECT DISTINCT - col2 + tab2.col0 AS col0 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-648
SELECT + col2 DIV col2 + col0 AS col1 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-648
SELECT + col2 / col2 + col0 AS col1 FROM tab1
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 78 col0 FROM tab1
----
-2
14
75

query I rowsort
SELECT + - col2 + - col1 * 69 AS col2 FROM tab0 AS cor0
----
-5967
-6361
-6694

query I rowsort
SELECT col1 + - col2 * - col2 AS col1 FROM tab1
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-652
SELECT ALL 30 DIV - col0 col0 FROM tab1 AS cor0
----
-10
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-652
SELECT ALL 30 / - col0 col0 FROM tab1 AS cor0
----
-10
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-653
SELECT CAST( NULL AS SIGNED ) / + cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-653
SELECT CAST ( NULL AS INTEGER ) / + cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 col2 FROM tab0
----
2
62
62

query I rowsort
SELECT DISTINCT + 88 AS col0 FROM tab1
----
88

query I rowsort
SELECT ALL - + 5 FROM tab0 cor0
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 62 col0 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT - 41 AS col2 FROM tab1 cor0
----
-41
-41
-41

onlyif mysql # use DIV operator for integer division
query I rowsort label-660
SELECT col0 * + col1 + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-660
SELECT col0 * + col1 + col0 / col0 AS col2 FROM tab1 AS cor0
----
1041
641
79

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 col2 FROM tab2, tab2 AS cor0
----
-61

query I rowsort
SELECT ALL 70 * col2 FROM tab2
----
1820
1890
2660

query I rowsort
SELECT - 89 * col2 * + cor0.col1 FROM tab1 AS cor0
----
-111072
-124956
-50730

query I rowsort
SELECT - 48 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2592
-2736
-4608

query I rowsort
SELECT col1 + + col1 * + col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT col1 + col1 * col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - 97 * col1 + col2 AS col1 FROM tab0 AS cor0
----
-8309
-8745
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-669
SELECT ALL 4 DIV + tab0.col2 col0 FROM tab0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-669
SELECT ALL 4 / + tab0.col2 col0 FROM tab0
----
0
0
4

query I rowsort
SELECT ( ( col1 ) ) FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT - col0 * + 71 FROM tab1
----
-213
-4544
-5680

query I rowsort
SELECT col2 + col2 + - col1 * - col0 FROM tab2 AS cor0
----
1419
271
4654

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * + col2 BETWEEN ( col0 * col2 ) AND col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-676
SELECT tab2.col1 DIV col0 FROM tab2 WHERE NOT col0 * + col2 IN ( col2 )
----
0
0
4

skipif mysql # not compatible
query I rowsort label-676
SELECT tab2.col1 / col0 FROM tab2 WHERE NOT col0 * + col2 IN ( col2 )
----
0
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-677
SELECT col0 DIV + tab0.col0 col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-677
SELECT col0 / + tab0.col0 col1 FROM tab0
----
1
1
1

query I rowsort
SELECT + col2 + col0 + + col0 AS col1 FROM tab1
----
185
256
60

query I rowsort
SELECT tab0.col2 * + col2 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT col0 * col0 - + col1 AS col0 FROM tab1
----
-17
4086
6387

query I rowsort
SELECT col1 FROM tab2 WHERE NOT col2 * - col1 <= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-682
SELECT - col0 DIV - tab1.col1 AS col0 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-682
SELECT - col0 / - tab1.col1 AS col0 FROM tab1
----
0
6
6

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> - col0 + - col2 * - col0 - + col0 / - col1
----

query I rowsort
SELECT DISTINCT + col2 * - tab1.col1 * - col1 - - col1 * col0 FROM tab1
----
17264
36582
6340

query I rowsort
SELECT - col2 + col1 * + col1 + + col0 AS col1 FROM tab0
----
7387
8288
9443

query I rowsort
SELECT DISTINCT - + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL - col1 * - col0 * - col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL + col0 * - col0 * col0 + + cor0.col1 FROM tab2 AS cor0
----
-312
-474493
-493022

query I rowsort
SELECT col1 * - col2 * - col0 + + col1 AS col1 FROM tab1 cor0
----
36490
4238
99853

query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 + + col2 AS col1 FROM tab0 cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL - col1 - col1 * - col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT col2 * col1 * - col1 + col1 FROM tab2 AS cor0
----
-10965
-25916
-90447

query I rowsort
SELECT - + col1 * col1 + - col1 AS col0 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT + col1 * - tab1.col2 AS col0 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * col0 col2 FROM tab2
----
1323
158184
237158

query IIIIII rowsort
SELECT * FROM tab2, tab1 cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL - col1 * col0 * col2 + col1 FROM tab1
----
-36470
-4186
-99827

query I rowsort
SELECT - col0 * col0 * col0 + - col2 + - col1 * - col1 AS col2 FROM tab1
----
-262101
-511927
595

query I rowsort
SELECT ALL - 18 + - 88 * + col1 AS col0 FROM tab2 AS cor0
----
-1514
-2746
-5210

query I rowsort
SELECT - - ( + col1 ) + + col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT + col1 * col2 + col1 * col2 FROM tab0 AS cor0
----
14924
194
5676

query I rowsort
SELECT ALL - 95 * 12 AS col0 FROM tab2 AS cor0
----
-1140
-1140
-1140

query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col0 + cor0.col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-704
SELECT ALL - col1 DIV - 44 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL - col1 / - 44 AS col1 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT col0 * 66 FROM tab1 AS cor0
----
198
4224
5280

query I rowsort
SELECT DISTINCT + ( 94 ) * - col1 + + ( + 17 ) AS col1 FROM tab2 cor0
----
-1581
-2897
-5529

onlyif mysql # use DIV operator for integer division
query I rowsort label-707
SELECT + col0 DIV + cor0.col1 FROM tab1 cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-707
SELECT + col0 / + cor0.col1 FROM tab1 cor0
----
0
6
6

query I rowsort
SELECT DISTINCT - ( + col1 ) + cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT - 31 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT ALL 86 + col0 AS col2 FROM tab1
----
150
166
89

query I rowsort
SELECT 20 * col2 + - col0 + + tab1.col0 FROM tab1
----
1080
1140
1920

query I rowsort
SELECT ALL + 13 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT ALL col0 * col0 * - col2 + ( + col2 ) FROM tab0
----
-1224
-18975
-649440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + - cor0.col1 + - 15 col1 FROM tab2 AS cor0
----
143
1954
2970

query I rowsort
SELECT - col0 + - col1 - + cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
-7506
-8461
-9541

query I rowsort
SELECT + ( + cor0.col1 ) * ( + col1 ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - - col0 * 53 AS col0 FROM tab2 AS cor0
----
371
4134
4187

onlyif mysql # use DIV operator for integer division
query I rowsort label-718
SELECT DISTINCT + - col1 + + ( + col1 ) DIV + col1 + col2 FROM tab1 AS cor0
----
29
48
84

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT + - col1 + + ( + col1 ) / + col1 + col2 FROM tab1 AS cor0
----
29
48
84

query I rowsort
SELECT DISTINCT - col0 + + col2 AS col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT - col2 * + col0 * col2 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL - - col0 * col2 * col2 FROM tab1 AS cor0
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-722
SELECT - col0 DIV - tab2.col0 + tab2.col0 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-722
SELECT - col0 / - tab2.col0 + tab2.col0 FROM tab2
----
79
8
80

query I rowsort
SELECT ALL 73 AS col0 FROM tab1
----
73
73
73

query I rowsort
SELECT 65 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT DISTINCT col2 + + 83 * + col1 AS col0 FROM tab2 AS cor0
----
1449
2600
4923

onlyif mysql # use DIV operator for integer division
query I rowsort label-726
SELECT ALL + col0 DIV - 10 AS col1 FROM tab0 AS cor0
----
-2
-3
-8

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL + col0 / - 10 AS col1 FROM tab0 AS cor0
----
-2
-3
-8

query I rowsort
SELECT ALL - col1 * - 29 * col1 + - col0 AS col1 FROM tab2 AS cor0
----
100871
27862
8302

query I rowsort
SELECT DISTINCT col1 * - ( ( + col0 ) ) AS col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col1 * + col0 + 3 AS col1 FROM tab2 AS cor0
----
-1340
-214
-4599

query I rowsort
SELECT ALL col2 * + col1 + + 78 AS col2 FROM tab0 AS cor0
----
175
2916
7540

query I rowsort
SELECT - - ( - 91 ) FROM tab0 AS cor0
----
-91
-91
-91

query I rowsort
SELECT + tab1.col0 * + col2 + col0 * col2 AS col1 FROM tab1
----
15360
324
7296

query I rowsort
SELECT + col2 + 57 AS col1 FROM tab1
----
111
114
153

query I rowsort
SELECT + tab0.col1 * 82 AS col2 FROM tab0
----
7052
7462
7954

query I rowsort
SELECT - col0 * - 7 FROM tab2 cor0
----
49
546
553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 4 col0 FROM tab1 AS cor0
----
-60
-76
1

query I rowsort
SELECT - ( + cor0.col0 ) * col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + cor0.col1 + col0 + col1 * 74 FROM tab2 AS cor0
----
1354
2332
4503

query I rowsort
SELECT - col1 * - 87 AS col1 FROM tab1 AS cor0
----
1131
2262
870

query I rowsort
SELECT - ( - 44 ) AS col1 FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT + - cor0.col0 * col1 + + 85 FROM tab1 AS cor0
----
-555
-955
7

query I rowsort
SELECT ALL + + 46 * cor0.col1 FROM tab0 AS cor0
----
3956
4186
4462

query I rowsort
SELECT + cor0.col2 * + col2 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT + col0 + - col1 - ( col0 ) * + col1 FROM tab2 AS cor0
----
-1281
-241
-4583

query I rowsort
SELECT ALL 34 * cor0.col1 FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT DISTINCT - 92 * - col0 AS col1 FROM tab2 AS cor0
----
644
7176
7268

onlyif mysql # use DIV operator for integer division
query I rowsort label-747
SELECT - col1 + + col2 DIV col1 col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-747
SELECT - col1 + + col2 / col1 col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col1 * - 33 AS col2 FROM tab0 AS cor0
----
-2838
-3003
-3201

query I rowsort
SELECT ALL + + col2 - + col1 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL - 57 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

onlyif mysql # use DIV operator for integer division
query I rowsort label-751
SELECT DISTINCT col2 + col2 DIV - col2 AS col2 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT col2 + col2 / - col2 AS col2 FROM tab0
----
0
32
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-752
SELECT ALL - col0 + col2 * CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL - col0 + col2 * CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT - tab1.col1 * - tab1.col2 AS col1 FROM tab1
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-755
SELECT - ( col2 ) + + CAST( 6 AS SIGNED ) * - col2 AS col1 FROM tab2 AS cor0
----
-182
-189
-266

skipif mysql # not compatible
query I rowsort label-755
SELECT - ( col2 ) + + CAST ( 6 AS INTEGER ) * - col2 AS col1 FROM tab2 AS cor0
----
-182
-189
-266

query I rowsort
SELECT ALL - 66 + + col1 + + 49 FROM tab2 cor0
----
0
14
42

query I rowsort
SELECT col1 + + col2 * + 10 FROM tab0 AS cor0
----
107
416
911

onlyif mysql # use DIV operator for integer division
query I rowsort label-758
SELECT - col2 + col2 DIV 95 + - col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

skipif mysql # not compatible
query I rowsort label-758
SELECT - col2 + col2 / 95 + - col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL ( 49 ) AS col2 FROM tab2
----
49
49
49

skipif mysql # not compatible
query I rowsort
SELECT ALL ( - col0 ) * CAST ( col0 AS REAL ) FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-761
SELECT ALL cor0.col0 * - col2 + + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-706
-7207
62

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL cor0.col0 * - col2 + + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-762
SELECT DISTINCT - col0 DIV col2 + cor0.col1 * + col0 AS col2 FROM tab1 cor0
----
1040
639
78

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT - col0 / col2 + cor0.col1 * + col0 AS col2 FROM tab1 cor0
----
1040
639
78

query I rowsort
SELECT - ( + col1 * + col2 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT tab0.col0 * + tab0.col0 + - ( + col0 + tab0.col1 ) FROM tab0
----
1093
466
7741

query I rowsort
SELECT ALL + 5 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT DISTINCT 51 AS col0 FROM tab1, tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT - + cor0.col2 FROM tab2, tab1, tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT 16 + + col2 + + col1 FROM tab1
----
125
83
96

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-770
SELECT ALL col1 * col1 DIV + col1 col1 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-770
SELECT ALL col1 * col1 / + col1 col1 FROM tab0
----
86
91
97

query I rowsort
SELECT + ( - col2 ) * col2 + col1 * col2 FROM tab2 AS cor0
----
-798
108
858

onlyif mysql # use DIV operator for integer division
query I rowsort label-772
SELECT - - col1 DIV col0 + cor0.col2 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-772
SELECT - - col1 / col0 + cor0.col2 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT - col1 * - col1 + tab1.col0 AS col1 FROM tab1
----
164
249
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) + col2 col2 FROM tab1
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-775
SELECT CAST( - ( col2 ) AS SIGNED ) + cor0.col0 * + 95 + col2 col1 FROM tab0 AS cor0
----
2280
3325
8455

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-775
SELECT CAST ( - ( col2 ) AS INTEGER ) + cor0.col0 * + 95 + col2 col1 FROM tab0 AS cor0
----
2280
3325
8455

query I rowsort
SELECT ALL - 49 * - 55 + col2 * - 95 FROM tab1
----
-2435
-2720
-6425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col2 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - ( + 63 ) * + cor0.col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
-1638
-630
-819

onlyif mysql # use DIV operator for integer division
query I rowsort label-779
SELECT - col1 DIV + col0 + cor0.col2 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
-4
0
2

skipif mysql # not compatible
query I rowsort label-779
SELECT - col1 / + col0 + cor0.col2 / cor0.col1 AS col0 FROM tab2 AS cor0
----
-4
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * 15 col2 FROM tab1 AS cor0
----
336
93
99

query I rowsort
SELECT col2 + - cor0.col2 * + cor0.col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL + - 21 FROM tab0, tab1 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT ALL col2 * - 10 * - 3 AS col2 FROM tab0
----
2460
30
990

query I rowsort
SELECT - col1 + 64 * cor0.col2 FROM tab0 cor0
----
-33
2026
5157

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-785
SELECT DISTINCT - CAST( col2 AS SIGNED ) + col2 * - CAST( NULL AS SIGNED ) - cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-785
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + col2 * - CAST ( NULL AS INTEGER ) - cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-787
SELECT DISTINCT + + CAST( + col2 AS SIGNED ) * col1 + col2 - 28 FROM tab1 AS cor0
----
1316
1430
599

skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT + + CAST ( + col2 AS INTEGER ) * col1 + col2 - 28 FROM tab1 AS cor0
----
1316
1430
599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * col0 col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col0 + 24 FROM tab0 AS cor0
----
113
48
59

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 35 AS REAL ) + cor0.col1 + + ( col1 * + col1 ) AS col0 FROM tab1 AS cor0
----
145
217
737

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + cor0.col2 col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) - + col2 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT - 77 - ( col0 ) FROM tab1 cor0
----
-141
-157
-80

query I rowsort
SELECT ALL - - col0 * cor0.col2 + + col2 + col2 * col0 AS col2 FROM tab0 AS cor0
----
14678
1617
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 * col2 - col1 col1 FROM tab1 AS cor0
----
-157490
-185203
-884749

query I rowsort
SELECT DISTINCT + col2 * - ( - col0 + - col0 ) * col2 FROM tab1
----
1474560
17496
415872

onlyif mysql # use DIV operator for integer division
query I rowsort label-797
SELECT + col2 DIV 39 + col2 + tab1.col2 AS col1 FROM tab1
----
109
115
194

skipif mysql # not compatible
query I rowsort label-797
SELECT + col2 / 39 + col2 + tab1.col2 AS col1 FROM tab1
----
109
115
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-798
SELECT col0 + ( col0 ) * + col1 - - 60 DIV + 80 FROM tab1
----
1120
704
81

skipif mysql # not compatible
query I rowsort label-798
SELECT col0 + ( col0 ) * + col1 - - 60 / + 80 FROM tab1
----
1120
704
81

query I rowsort
SELECT + col2 * col1 + col2 AS col0 FROM tab0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - col2 * col1 * col2 AS col1 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT - col1 * - col0 * + 80 FROM tab0
----
165120
271600
647920

query I rowsort
SELECT DISTINCT - col2 * 89 FROM tab2
----
-2314
-2403
-3382

query I rowsort
SELECT ( - col0 ) * - ( + col1 ) + col1 * tab1.col0 * 96 AS col2 FROM tab1
----
100880
62080
7566

query I rowsort
SELECT DISTINCT 33 * col0 AS col1 FROM tab0 AS cor0
----
1155
2937
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-805
SELECT DISTINCT + + col1 * - col0 * - CAST( + 2 AS SIGNED ) + col2 col2 FROM tab2 cor0
----
2724
461
9230

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-805
SELECT DISTINCT + + col1 * - col0 * - CAST ( + 2 AS INTEGER ) + col2 col2 FROM tab2 cor0
----
2724
461
9230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col2 FROM tab2 cor0
----
39

query I rowsort
SELECT DISTINCT + col2 * col1 * 22 - + cor0.col1 FROM tab1 AS cor0
----
12530
27443
30862

query I rowsort
SELECT ALL - col2 * - 39 FROM tab2 AS cor0
----
1014
1053
1482

query I rowsort
SELECT DISTINCT + col1 * - ( - 13 ) + + col2 FROM tab0 AS cor0
----
1151
1262
1265

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-810
SELECT - col2 + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-810
SELECT - col2 + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT ALL cor0.col2 * + ( + col0 ) - col1 AS col0 FROM tab0 cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT + 19 * tab0.col1 FROM tab0
----
1634
1729
1843

query I rowsort
SELECT col1 * + 81 AS col0 FROM tab1 AS cor0
----
1053
2106
810

query I rowsort
SELECT - tab0.col1 * tab0.col0 + 43 FROM tab0
----
-2021
-3352
-8056

query I rowsort
SELECT ALL + col0 * - 32 AS col2 FROM tab0 AS cor0
----
-1120
-2848
-768

query I rowsort
SELECT ALL 16 * + cor0.col2 * col2 FROM tab2 AS cor0
----
10816
11664
23104

query I rowsort
SELECT - ( cor0.col1 ) + + col2 * + 11 * + col2 FROM tab0 AS cor0
----
-86
11893
73873

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-818
SELECT ALL + CAST( + col0 AS SIGNED ) + col2 * col1 FROM tab2 AS cor0
----
1612
725
844

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL + CAST ( + col0 AS INTEGER ) + col2 * col1 FROM tab2 AS cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 + + col0 col2 FROM tab0 AS cor0
----
-27
-38
87

query I rowsort
SELECT DISTINCT + ( + col0 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + ( + col0 ) * - col0 col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT - 71 * - col1 * col1 FROM tab1 AS cor0
----
11999
47996
7100

onlyif mysql # use DIV operator for integer division
query I rowsort label-823
SELECT - + 21 DIV + 39 + - col0 * col2 + + col0 * - col2 FROM tab2 AS cor0
----
-378
-4056
-6004

skipif mysql # not compatible
query I rowsort label-823
SELECT - + 21 / + 39 + - col0 * col2 + + col0 * - col2 FROM tab2 AS cor0
----
-378
-4056
-6004

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-824
SELECT - CAST( NULL AS SIGNED ) * + 64 + col1 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-824
SELECT - CAST ( NULL AS INTEGER ) * + 64 + col1 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-825
SELECT DISTINCT - - CAST( col2 AS SIGNED ) + - col2 * + 7 AS col2 FROM tab2 AS cor0
----
-156
-162
-228

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) + - col2 * + 7 AS col2 FROM tab2 AS cor0
----
-156
-162
-228

query I rowsort
SELECT 10 * - col1 FROM tab2 AS cor0
----
-170
-310
-590

query I rowsort
SELECT ALL - col2 - - tab1.col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL col1 + col1 * + col0 AS col2 FROM tab2
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-829
SELECT ALL col1 * - 50 + - cor0.col0 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
-1551
-2951
-851

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL col1 * - 50 + - cor0.col0 / cor0.col0 AS col0 FROM tab2 AS cor0
----
-1551
-2951
-851

query I rowsort
SELECT DISTINCT col0 * 21 AS col2 FROM tab2 cor0
----
147
1638
1659

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-831
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-832
SELECT - col2 DIV 75 + cor0.col1 DIV - 67 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-832
SELECT - col2 / 75 + cor0.col1 / - 67 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 75 + + col1 * + col0 + - 59 * col1 FROM tab2 cor0
----
-1537
1196
415

query I rowsort
SELECT 79 * col1 FROM tab2
----
1343
2449
4661

query I rowsort
SELECT ALL 94 + col2 FROM tab0 AS cor0
----
127
176
95

query I rowsort
SELECT - 77 * 50 AS col1 FROM tab0 cor0
----
-3850
-3850
-3850

query I rowsort
SELECT DISTINCT + 38 * 38 + + cor0.col1 FROM tab0 AS cor0
----
1530
1535
1541

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 cor2
----
3645 values hashing to 08000767d0a951e4a7a7f8edda07fb64

query I rowsort
SELECT - ( - cor0.col0 ) + - col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT cor0.col2 * - col0 + + 65 FROM tab2 AS cor0
----
-124
-1963
-2937

query I rowsort
SELECT ALL cor1.col0 AS col1 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 80 + + col2 * col1 + + 20 col1 FROM tab1 AS cor0
----
1348
1504
670

query I rowsort
SELECT + tab2.col2 * + 55 AS col0 FROM tab2
----
1430
1485
2090

query I rowsort
SELECT DISTINCT 21 * - tab1.col2 AS col2 FROM tab1, tab0, tab2 AS cor0
----
-1134
-1197
-2016

query I rowsort
SELECT DISTINCT ( - tab2.col1 + + col1 ) * - col0 FROM tab2
----
0

query I rowsort
SELECT + 69 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT DISTINCT + tab1.col2 + - col2 * col1 * - col0 AS col2 FROM tab1
----
36537
4266
99936

query I rowsort
SELECT DISTINCT + 93 FROM tab2, tab0 AS cor0
----
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-849
SELECT DISTINCT - col2 DIV + tab0.col0 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT - col2 / + tab0.col0 AS col2 FROM tab0
----
-1
0

query I rowsort
SELECT ALL + + 79 * - col0 + + 95 AS col0 FROM tab1 AS cor0
----
-142
-4961
-6225

query I rowsort
SELECT DISTINCT + - 29 AS col1 FROM tab1 AS cor0
----
-29

query I rowsort
SELECT DISTINCT cor0.col1 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-853
SELECT DISTINCT - col1 + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT - col1 + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - cor0.col1 * col1 + - 33 AS col0 FROM tab1 AS cor0
----
136
643
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-855
SELECT ALL + CAST( - 40 AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL + CAST ( - 40 AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT + col2 + col1 * col1 AS col1 FROM tab1
----
157
265
730

query I rowsort
SELECT + col2 * - tab1.col1 * col0 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT col1 - - ( - col0 ) FROM tab0
----
2
62
62

query I rowsort
SELECT ALL + 52 * + tab1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 568698e8dd4526979db1b5dc3de948b5

query I rowsort
SELECT ALL - col0 * - 82 FROM tab0 AS cor0
----
1968
2870
7298

query I rowsort
SELECT ALL col0 + + ( - col1 ) AS col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT ALL 73 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 9f0f371d979e70a792c8597c6559f0e2

query I rowsort
SELECT - + cor0.col2 + - 34 FROM tab1 AS cor0
----
-130
-88
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-864
SELECT DISTINCT cor0.col0 + + 92 DIV - col2 + - cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
-22
7386
814

skipif mysql # not compatible
query I rowsort label-864
SELECT DISTINCT cor0.col0 + + 92 / - col2 + - cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
-22
7386
814

query I rowsort
SELECT + + 69 * - cor0.col1 + col1 FROM tab1 AS cor0
----
-1768
-680
-884

query I rowsort
SELECT ALL - + 95 - - 57 FROM tab0 cor0
----
-38
-38
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-867
SELECT ALL - col0 DIV col2 + cor0.col2 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL - col0 / col2 + cor0.col2 FROM tab1 AS cor0
----
54
56
96

query I rowsort
SELECT col0 * 57 * + col0 FROM tab2 AS cor0
----
2793
346788
355737

query I rowsort
SELECT ALL - col1 * + col2 + col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - col0 + 34 * + col2 FROM tab1 AS cor0
----
1833
1874
3184

query I rowsort
SELECT - col1 * - 68 AS col1 FROM tab0 AS cor0
----
5848
6188
6596

query I rowsort
SELECT - + col1 + - col0 * col0 * col0 AS col1 FROM tab1 AS cor0
----
-262154
-512013
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 29 * cor0.col1 col0 FROM tab0 AS cor0
----
-2494
-2639
-2813

query I rowsort
SELECT DISTINCT - 92 * col2 + col1 FROM tab2 AS cor0
----
-2333
-2453
-3479

query I rowsort
SELECT + ( col1 ) * + cor0.col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + 61 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT + 75 + col1 * cor0.col2 AS col0 FROM tab0 cor0
----
172
2913
7537

query I rowsort
SELECT DISTINCT col0 * ( + col2 ) * + col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT ALL + 53 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT - 66 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT 33 * + col2 AS col1 FROM tab0
----
1089
2706
33

query I rowsort
SELECT DISTINCT - 8 * col0 FROM tab0
----
-192
-280
-712

onlyif mysql # use DIV operator for integer division
query I rowsort label-883
SELECT + 11 DIV col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-883
SELECT + 11 / col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT + - cor0.col1 * col1 + CAST ( + col2 AS REAL ) * + col1 AS col2 FROM tab2 AS cor0
----
-124
-1947
357

query I rowsort
SELECT col1 - ( - col2 ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + cor0.col1 * 14 + + 65 * col0 AS col2 FROM tab1 AS cor0
----
4300
5382
559

query I rowsort
SELECT DISTINCT + - 75 + + 17 * cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-58
1319
486

query I rowsort
SELECT col1 * tab1.col2 - ( ( - col2 ) ) * + col2 FROM tab1
----
10464
3819
4320

query I rowsort
SELECT ALL - 62 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT col2 * + 74 * + 50 - - col0 * 15 FROM tab1 AS cor0
----
199845
211860
356400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-891
SELECT ALL col0 + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-891
SELECT ALL col0 + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + ( col1 ) + col2 * - 37 FROM tab1
----
-2076
-2749
-4592

onlyif mysql # use DIV operator for integer division
query I rowsort label-893
SELECT - col0 * 70 + - col2 + + col1 DIV - ( + col1 * - col0 ) AS col2 FROM tab0
----
-1713
-2451
-6312

skipif mysql # not compatible
query I rowsort label-893
SELECT - col0 * 70 + - col2 + + col1 / - ( + col1 * - col0 ) AS col2 FROM tab0
----
-1713
-2451
-6312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-894
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) / 32 col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-894
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) / 32 col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-895
SELECT ALL col2 DIV - col1 - col2 * + col1 * - col1 FROM tab2 AS cor0
----
10980
25947
90506

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL col2 / - col1 - col2 * + col1 * - col1 FROM tab2 AS cor0
----
10980
25947
90506

query I rowsort
SELECT + col0 * 61 + + 24 AS col0 FROM tab1 AS cor0
----
207
3928
4904

query I rowsort
SELECT DISTINCT + col1 + 26 FROM tab1 AS cor0
----
36
39
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 - + col1 * + cor0.col1 * - col2 col0 FROM tab2 AS cor0
----
10944
25920
90480

query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT col0 * col1 + + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-901
SELECT DISTINCT - col2 - - 12 DIV col0 FROM tab1 AS cor0
----
-50
-57
-96

skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT - col2 - - 12 / col0 FROM tab1 AS cor0
----
-50
-57
-96

query I rowsort
SELECT ( - ( - col1 ) ) FROM tab1
----
10
13
26

query I rowsort
SELECT ( col0 ) - col0 * 51 * ( col2 ) AS col0 FROM tab0
----
-1750
-372109
-40368

query I rowsort
SELECT - 70 * - 26 FROM tab1 AS cor0
----
1820
1820
1820

query I rowsort
SELECT + col0 * - 28 AS col2 FROM tab0 cor0
----
-2492
-672
-980

query I rowsort
SELECT tab1.col2 * - col1 + col0 AS col0 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT ALL col1 * col0 - + col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL + - cor0.col2 + col0 AS col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT ALL col1 * - col2 + + col2 * col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + 53 + col2 AS col2 FROM tab2 AS cor0
----
79
80
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 75 * + col2 col0 FROM tab1 AS cor0
----
-4050
-4275
-7200

query I rowsort
SELECT ALL 18 * + 8 FROM tab0
----
144
144
144

query I rowsort
SELECT ALL tab2.col0 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT - col2 + col1 * + ( - col2 ) - - col0 AS col2 FROM tab2 cor0
----
-1482
-605
-857

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-915
SELECT cor0.col2 + col2 * - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
36
7380
825

skipif mysql # not compatible
query I rowsort label-915
SELECT cor0.col2 + col2 * - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT col2 + cor0.col0 - - 86 FROM tab1 AS cor0
----
143
207
262

query I rowsort
SELECT ( + col1 ) * col2 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - tab2.col1 * col1 * col1 FROM tab2
----
-205379
-29791
-4913

query I rowsort
SELECT ALL col1 + + col1 * + col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT + col2 * - tab0.col1 + - col2 AS col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT col1 * tab2.col1 FROM tab2 WHERE NULL NOT BETWEEN + col0 AND col2 * col0 * col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT IN ( tab1.col0 )
----

query I rowsort
SELECT col2 * + col1 * col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT ALL tab1.col1 + col1 * - col1 AS col0 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT ALL + - 5 * + col1 + - 95 + col0 FROM tab0 AS cor0
----
-461
-501
-545

query I rowsort
SELECT DISTINCT - col1 + + col2 * - col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - 64 AS col2 FROM tab0 cor0
----
-64
-64
-64

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + col2 > + col0
----

query I rowsort
SELECT DISTINCT - col0 * + col1 AS col2 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-930
SELECT col2 DIV + col0 - + col2 AS col1 FROM tab0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-930
SELECT col2 / + col0 - + col2 AS col1 FROM tab0
----
-1
-32
-82

query I rowsort
SELECT cor0.col2 - - col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - col1 + col1 * + cor0.col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT col0 + + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-20
118
147

query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col2 AS col1 FROM tab1, tab2 cor0
----
1444
676
729

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 NOT IN ( col2 )
----

query I rowsort
SELECT col0 * col2 * - col2 + col0 FROM tab1
----
-207872
-737200
-8745

query III rowsort
SELECT * FROM tab2 WHERE + col1 IN ( + col0 * col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE col2 < col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 * + tab2.col2 + + tab2.col0 * col2 col1 FROM tab2
----
117078
5292
54756

query I rowsort
SELECT DISTINCT col0 - tab2.col0 AS col0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN col0 * col1 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + + tab2.col2 * tab2.col2 AS col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT DISTINCT col2 * + col2 * col0 AS col0 FROM tab0
----
26136
35
598436

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 - - col1 >= ( + col0 )
----
7
31
27
78
59
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-945
SELECT tab0.col2 DIV + col1 col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-945
SELECT tab0.col2 / + col1 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 * + col0 + + col0 AS col1 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT col1 + col1 - + col1 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL + col0 + col0 * + col0 + col0 AS col1 FROM tab1
----
15
4224
6560

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 - col1 * col0 * - col2 > NULL
----

query I rowsort
SELECT col2 * + tab2.col2 + + col2 * col1 * col2 + - col0 FROM tab2
----
23321
25913
40482

onlyif mysql # use DIV operator for integer division
query I rowsort label-951
SELECT ALL col2 DIV tab2.col0 AS col2 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-951
SELECT ALL col2 / tab2.col0 AS col2 FROM tab2
----
0
0
3

query I rowsort
SELECT - cor0.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to b98cc07e6d63e3c0583ed19f9e9ad2be

query I rowsort
SELECT DISTINCT + 56 * + 72 AS col1 FROM tab1 AS cor0
----
4032

query I rowsort
SELECT - + 7 + + col2 AS col1 FROM tab0 cor0
----
-6
26
75

query I rowsort
SELECT - col2 * - 14 * col2 AS col1 FROM tab2
----
10206
20216
9464

query I rowsort
SELECT - 8 + - cor0.col0 AS col2 FROM tab1 cor0
----
-11
-72
-88

query I rowsort
SELECT + 38 + - col2 FROM tab1 AS cor0
----
-16
-19
-58

query I rowsort
SELECT - + 23 + + col0 FROM tab0 cor0
----
1
12
66

query I rowsort
SELECT col0 + - col1 * - col2 + 49 FROM tab0 cor0
----
181
2911
7600

query I rowsort
SELECT + 23 + col1 * + col2 FROM tab1 AS cor0
----
1271
1427
593

query I rowsort
SELECT col2 * 84 AS col2 FROM tab1
----
4536
4788
8064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 + cor0.col0 col2 FROM tab2, tab1 cor0
----
9 values hashing to f6ef2c0a6038e26ee09c3a6f94052755

onlyif mysql # use DIV operator for integer division
query I rowsort label-963
SELECT + - cor0.col0 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-963
SELECT + - cor0.col0 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + - 38 AS col2 FROM tab1
----
16
19
58

query I rowsort
SELECT + col2 * - 80 FROM tab0 AS cor0
----
-2640
-6560
-80

query I rowsort
SELECT ALL + col1 + + 58 FROM tab1 AS cor0
----
68
71
84

query I rowsort
SELECT DISTINCT - + col0 * 34 + 2 FROM tab0 AS cor0
----
-1188
-3024
-814

query I rowsort
SELECT - + col1 * ( + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + cor0.col0 + + ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + col0 + 49 FROM tab2 AS cor0
----
127
128
56

query I rowsort
SELECT ALL col0 + ( col2 ) * col1 AS col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + col1 + col0 - col1 * col0 FROM tab1
----
-49
-566
-947

query I rowsort
SELECT ALL + tab0.col2 * - 63 FROM tab0
----
-2079
-5166
-63

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT ( - col1 ) * - tab2.col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT + 56 * col1 FROM tab2
----
1736
3304
952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) col1 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-978
SELECT DISTINCT - col1 DIV - 88 - + col1 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT - col1 / - 88 - + col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - col1 * col0 + - tab0.col1 - col1 FROM tab0
----
-2236
-3589
-8281

query I rowsort
SELECT ALL - 95 * 82 - col0 AS col0 FROM tab2
----
-7797
-7868
-7869

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-981
SELECT ALL + CAST( NULL AS DECIMAL ) - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL + CAST ( NULL AS REAL ) - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + + 50 + + col2 + col0 FROM tab2 AS cor0
----
154
167
84

query I rowsort
SELECT ALL - cor0.col1 + + col0 + col2 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT ALL - col1 - + col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-985
SELECT + ( col2 ) DIV col2 + col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-985
SELECT + ( col2 ) / col2 + col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT 75 * + col1 AS col1 FROM tab0 AS cor0
----
6450
6825
7275

query I rowsort
SELECT - col2 * cor0.col1 - cor0.col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1140
-2496
-2808

query I rowsort
SELECT ALL + - cor0.col0 * cor0.col0 + cor0.col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT + 14 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1458
690
743

query I rowsort
SELECT 64 * col0 + col1 AS col0 FROM tab1 AS cor0
----
218
4106
5133

query I rowsort
SELECT - col2 * + ( 47 ) AS col0 FROM tab1 AS cor0
----
-2538
-2679
-4512

query I rowsort
SELECT col0 * - ( cor0.col1 * col2 ) AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + - col2 * - col1 + + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT col0 + - 4 FROM tab1 AS cor0
----
-1
60
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-995
SELECT + col0 * CAST( + cor0.col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-995
SELECT + col0 * CAST ( + cor0.col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT - - col1 * - 86 AS col0 FROM tab1 AS cor0
----
-1118
-2236
-860

query I rowsort
SELECT - + 35 FROM tab0 cor0
----
-35
-35
-35

query I rowsort
SELECT ALL - col0 + + col0 * col0 AS col2 FROM tab1 cor0
----
4032
6
6320

query I rowsort
SELECT ALL + + col1 + - col1 - col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1
-33
-82

query I rowsort
SELECT ALL col0 * 2 AS col2 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL - ( - 56 ) - + col2 AS col0 FROM tab0 AS cor0
----
-26
23
55

query I rowsort
SELECT DISTINCT + + col0 + col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL col2 + + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT + col0 + + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT col0 - col2 * col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT - tab1.col1 * col2 + col1 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT - col1 + col0 + - col1 * + col1 FROM tab0 AS cor0
----
-7458
-8283
-9471

query I rowsort
SELECT DISTINCT - col0 * col0 + + col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT DISTINCT - 45 * + col2 AS col2 FROM tab2
----
-1170
-1215
-1710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * tab1.col1 col1 FROM tab1
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-1012
SELECT col1 * + col0 DIV - col0 + col0 * tab1.col0 DIV col0 FROM tab1
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-1012
SELECT col1 * + col0 / - col0 + col0 * tab1.col0 / col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT - col2 + + col2 * col0 FROM tab1
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-1014
SELECT + col0 * col1 + col2 DIV col1 FROM tab0 cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-1014
SELECT + col0 * col1 + col2 / col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - cor0.col1 + col2 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + - cor0.col1 * col1 + col0 * + col1 FROM tab0 cor0
----
-182
-5332
-6014

query I rowsort
SELECT - - col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + + col1 * ( cor0.col1 ) FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + + col2 + 48 * col1 * - col2 AS col1 FROM tab0 cor0
----
-136191
-358094
-4655

query I rowsort
SELECT DISTINCT + 75 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
75

query I rowsort
SELECT col0 + - col1 * - ( col2 ) FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT col0 + + 95 + tab1.col0 * - col0 AS col2 FROM tab1
----
-3937
-6225
89

query I rowsort
SELECT - tab0.col1 + 67 AS col1 FROM tab0
----
-19
-24
-30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1024
SELECT DISTINCT - col2 * + CAST( NULL AS DECIMAL ) + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT - col2 * + CAST ( NULL AS REAL ) + col0 FROM tab1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1025
SELECT tab0.col2 * CAST( - col1 AS SIGNED ) + col2 FROM tab0
----
-2805
-7380
-96

skipif mysql # not compatible
query I rowsort label-1025
SELECT tab0.col2 * CAST ( - col1 AS INTEGER ) + col2 FROM tab0
----
-2805
-7380
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1026
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1026
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - + cor0.col2 * - col2 + + col2 FROM tab0 AS cor0
----
1122
2
6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 * - tab0.col0 col2 FROM tab0, tab1 AS cor0
----
1920
2800
7120

query I rowsort
SELECT DISTINCT - col1 * ( tab1.col2 + - col0 ) FROM tab1
----
-1326
-208
70

query I rowsort
SELECT DISTINCT + col2 * 55 FROM tab2
----
1430
1485
2090

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT - col1 * col2 * col2 + col1 * col0 AS col2 FROM tab2 AS cor0
----
-22382
-23205
-35282

query I rowsort
SELECT DISTINCT + + col2 * + col0 + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT tab1.col1 + + col0 * + col2 FROM tab1
----
188
3658
7693

query I rowsort
SELECT ALL ( - 32 ) AS col0 FROM tab1
----
-32
-32
-32

query I rowsort
SELECT DISTINCT + + cor0.col0 * cor0.col0 AS col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT - 42 * + col0 + col0 FROM tab2 AS cor0
----
-287
-3198
-3239

query I rowsort
SELECT ALL + - col2 + + cor0.col2 * col1 FROM tab2 cor0
----
1508
608
810

query I rowsort
SELECT - cor0.col0 - - cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + cor0.col0 * + col2 + + cor0.col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1188
3135
6528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-1042
SELECT ALL + col1 DIV - col0 - + col1 * col0 * col0 AS col1 FROM tab0 AS cor0
----
-118827
-49539
-720812

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL + col1 / - col0 - + col1 * col0 * col0 AS col1 FROM tab0 AS cor0
----
-118827
-49539
-720812

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1043
SELECT DISTINCT + + col2 + col1 * CAST( - ( - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
157
265
730

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT + + col2 + col1 * CAST ( - ( - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT DISTINCT 90 * + col2 + col1 FROM tab2 AS cor0
----
2399
2461
3437

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * + col0 col0 FROM tab1 AS cor0
----
183
3904
4880

query I rowsort
SELECT ALL + cor0.col2 * - col1 - col0 FROM tab2 AS cor0
----
-1612
-725
-844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 * - cor0.col0 col1 FROM tab2 AS cor0
----
-1323
-158184
-237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 + - col1 col2 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT col0 * col2 - + 46 AS col2 FROM tab0 cor0
----
-11
7252
746

query I rowsort
SELECT ALL + col1 * col1 + ( + col1 * + col2 ) AS col0 FROM tab1 AS cor0
----
1417
2080
670

onlyif mysql # use DIV operator for integer division
query I rowsort label-1051
SELECT DISTINCT + cor0.col1 * - col2 + + 18 DIV - 65 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT + cor0.col1 * - col2 + + 18 / - 65 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 78 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT + 5 AS col2 FROM tab1
----
5
5
5

query I rowsort
SELECT + col2 * col1 + + ( col1 + 55 ) * + col1 FROM tab1 AS cor0
----
1220
2132
3510

onlyif mysql # use DIV operator for integer division
query I rowsort label-1055
SELECT - + cor0.col1 DIV 9 + col1 AS col0 FROM tab2 AS cor0
----
16
28
53

skipif mysql # not compatible
query I rowsort label-1055
SELECT - + cor0.col1 / 9 + col1 AS col0 FROM tab2 AS cor0
----
16
28
53

query I rowsort
SELECT DISTINCT + col2 * + 46 AS col1 FROM tab1 AS cor0
----
2484
2622
4416

query I rowsort
SELECT + - cor0.col2 + + ( col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
-73
20
95

query I rowsort
SELECT + + cor0.col2 * - 22 FROM tab1 AS cor0
----
-1188
-1254
-2112

onlyif mysql # use DIV operator for integer division
query I rowsort label-1059
SELECT - - cor0.col2 DIV 8 + - col1 AS col2 FROM tab1 AS cor0
----
-1
-20
-3

skipif mysql # not compatible
query I rowsort label-1059
SELECT - - cor0.col2 / 8 + - col1 AS col2 FROM tab1 AS cor0
----
-1
-20
-3

query I rowsort
SELECT ALL - 67 + col1 FROM tab2
----
-36
-50
-8

query I rowsort
SELECT ALL + 2 AS col0 FROM tab0
----
2
2
2

query I rowsort
SELECT - cor0.col0 - + 3 * + col0 AS col2 FROM tab2 AS cor0
----
-28
-312
-316

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1063
SELECT col1 * + CAST( col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1063
SELECT col1 * + CAST ( col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + col0 - col0 col1 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT - cor0.col0 * col2 - col0 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT + - 92 + + col1 * - col2 FROM tab1 AS cor0
----
-1340
-1496
-662

query I rowsort
SELECT - 36 * 49 FROM tab1 cor0
----
-1764
-1764
-1764

query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1069
SELECT - CAST( 89 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-1069
SELECT - CAST ( 89 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-89
-89
-89

query I rowsort
SELECT - col0 + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-1071
SELECT 98 DIV cor0.col0 FROM tab0 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-1071
SELECT 98 / cor0.col0 FROM tab0 AS cor0
----
1
2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 72 * - col0 col2 FROM tab1
----
-270
-4665
-5856

query I rowsort
SELECT DISTINCT tab2.col1 + 84 AS col2 FROM tab2
----
101
115
143

query I rowsort
SELECT - col2 * 40 + - cor0.col2 * + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-5
-528
4018

onlyif mysql # use DIV operator for integer division
query I rowsort label-1075
SELECT + col1 + 83 * col1 DIV col1 FROM tab2 AS cor0
----
100
114
142

skipif mysql # not compatible
query I rowsort label-1075
SELECT + col1 + 83 * col1 / col1 FROM tab2 AS cor0
----
100
114
142

query I rowsort
SELECT DISTINCT + col0 + 37 FROM tab0 AS cor0
----
126
61
72

query I rowsort
SELECT ALL + 24 * cor0.col2 + col2 FROM tab2 cor0
----
650
675
950

query I rowsort
SELECT ALL col0 * col1 + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - ( - col2 ) AS REAL ) FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 - + ( col0 + - col0 ) * + col2 col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL - tab1.col0 - 41 AS col1 FROM tab1
----
-105
-121
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-1082
SELECT - col0 + col0 DIV + col0 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-1082
SELECT - col0 + col0 / + col0 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT + cor0.col2 * 72 AS col1 FROM tab2 AS cor0
----
1872
1944
2736

query I rowsort
SELECT + 55 * - col0 FROM tab2 AS cor0
----
-385
-4290
-4345

query I rowsort
SELECT - + col0 + col1 * 26 FROM tab1 AS cor0
----
196
258
673

query I rowsort
SELECT - 42 * + col2 AS col1 FROM tab0 cor0
----
-1386
-3444
-42

query I rowsort
SELECT + ( col2 ) * + 11 AS col0 FROM tab2 AS cor0
----
286
297
418

query I rowsort
SELECT + cor0.col1 * + ( ( col1 ) ) + + 63 FROM tab2 AS cor0
----
1024
352
3544

query I rowsort
SELECT col2 * - 0 * + 48 + tab2.col1 * + 68 FROM tab2
----
1156
2108
4012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 94 + col0 * col1 + + ( + col1 ) * col2 col0 FROM tab1 cor0
----
1764
7226
9808

query I rowsort
SELECT DISTINCT col2 * 89 AS col1 FROM tab2
----
2314
2403
3382

query I rowsort
SELECT col0 + + 70 AS col1 FROM tab1 AS cor0
----
134
150
73

query I rowsort
SELECT DISTINCT cor0.col0 + - col2 * + 77 AS col2 FROM tab2 AS cor0
----
-1924
-2072
-2847

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1094
SELECT DISTINCT - cor0.col2 + CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT - cor0.col2 + CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 * + col1 + 61 AS col0 FROM tab1 AS cor0
----
161
230
737

query I rowsort
SELECT ALL - cor0.col1 * - 36 FROM tab1 cor0
----
360
468
936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - col0 col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT col1 * col0 + col0 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT + - col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - col2 + col0 * col0 * col0 FROM tab0 cor0
----
13791
42874
704887

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - col2 * + cor0.col0 + + col1 + col2 AS col1 FROM tab2 AS cor0
----
-131
-1943
-2947

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( ( cor0.col0 ) AS REAL ) FROM tab1 cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) * - col1 + col2 + + col2 col0 FROM tab1 AS cor0
----
-1056
-1296
-456

query I rowsort
SELECT DISTINCT - 84 AS col1 FROM tab0, tab1 AS cor0
----
-84

query I rowsort
SELECT ALL + cor0.col0 + col2 * cor0.col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
22606
24627
39962

query I rowsort
SELECT ALL col0 + col0 * col1 AS col0 FROM tab1 AS cor0
----
1120
704
81

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + CAST ( col2 AS REAL ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - 81 + col0 * col1 AS col0 FROM tab1 AS cor0
----
-3
559
959

query I rowsort
SELECT DISTINCT tab1.col0 + ( tab1.col1 ) AS col0 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT + ( col0 ) + col2 * col0 - 60 AS col2 FROM tab1 AS cor0
----
105
3652
7700

query I rowsort
SELECT - col1 - ( + col1 ) FROM tab2
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1113
SELECT DISTINCT col1 + - col1 DIV col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1113
SELECT DISTINCT col1 + - col1 / col2 FROM tab1
----
10
13
26

query I rowsort
SELECT - ( + col1 ) + col2 * ( col0 * 10 ) - - col1 FROM tab2 AS cor0
----
1890
20280
30020

onlyif mysql # use DIV operator for integer division
query I rowsort label-1115
SELECT - cor0.col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1115
SELECT - cor0.col2 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + ( col0 ) - + 3 FROM tab1 AS cor0
----
-6
-67
-83

query I rowsort
SELECT - col1 * col0 + col0 + col1 FROM tab2 AS cor0
----
-1247
-179
-4465

onlyif mysql # use DIV operator for integer division
query I rowsort label-1118
SELECT DISTINCT - 66 DIV - col2 + + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
4
65
80

skipif mysql # not compatible
query I rowsort label-1118
SELECT DISTINCT - 66 / - col2 + + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
4
65
80

query I rowsort
SELECT 49 * col1 AS col0 FROM tab1 AS cor0
----
1274
490
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-1120
SELECT ALL - col0 + + col2 DIV col0 + + col2 AS col2 FROM tab2
----
-41
-52
23

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL - col0 + + col2 / col0 + + col2 AS col2 FROM tab2
----
-41
-52
23

query I rowsort
SELECT ALL + + col1 + - col1 * + col0 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT - col1 * + ( ( + col2 ) + - col1 ) AS col1 FROM tab0 AS cor0
----
4558
819
9312

query I rowsort
SELECT DISTINCT - col1 * + 88 * col2 AS col2 FROM tab2 AS cor0
----
-134992
-56848
-73656

query I rowsort
SELECT + col1 * col2 + ( - col1 + ( col2 ) ) * - col0 AS col0 FROM tab1 AS cor0
----
-2438
-5392
1320

onlyif mysql # use DIV operator for integer division
query I rowsort label-1125
SELECT DISTINCT col2 + - col2 DIV col0 + - 65 FROM tab1
----
-29
-8
30

skipif mysql # not compatible
query I rowsort label-1125
SELECT DISTINCT col2 + - col2 / col0 + - 65 FROM tab1
----
-29
-8
30

query I rowsort
SELECT ALL - ( col2 * 34 ) + - ( + col0 ) + + col1 AS col2 FROM tab1
----
-1813
-1992
-3331

onlyif mysql # use DIV operator for integer division
query I rowsort label-1127
SELECT DISTINCT + + 28 + + ( col1 ) DIV - col0 AS col0 FROM tab2 AS cor0
----
24
28

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT + + 28 + + ( col1 ) / - col0 AS col0 FROM tab2 AS cor0
----
24
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-1128
SELECT DISTINCT 33 DIV col1 col2 FROM tab2 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT 33 / col1 col2 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT col2 * col1 + + cor0.col0 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1130
SELECT DISTINCT - + CAST( col2 AS SIGNED ) FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT - + CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - ( - 59 ) * col1 * + col1 + col2 FROM tab2
----
17089
205405
56726

query I rowsort
SELECT DISTINCT + 8 AS col1 FROM tab0, tab0 cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col1 FROM tab2, tab0 cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT + 20 * col2 FROM tab1 AS cor0
----
1080
1140
1920

query I rowsort
SELECT ALL + col1 - - ( - col1 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 53 + + ( - col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
136
1975
2949

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1137
SELECT - CAST( col1 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-1137
SELECT - CAST ( col1 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1138
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col1 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1139
SELECT ALL CAST( ( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL CAST ( ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1140
SELECT ALL CAST( cor0.col1 AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL CAST ( cor0.col1 AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 + + col0 col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT - col0 * - col2 * col0 AS col0 FROM tab0
----
1225
19008
649522

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab2, tab1 cor1
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab

query I rowsort
SELECT ALL col1 + 59 AS col0 FROM tab1 AS cor0
----
69
72
85

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - 0 AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + 7 * 41 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6b9ca1c910b7f2b23c6d13fa13c857a3

query I rowsort
SELECT - - col2 * + col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col0 * - col1 + tab1.col1 AS col1 FROM tab1
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-1149
SELECT DISTINCT col0 DIV + 72 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-1149
SELECT DISTINCT col0 / + 72 FROM tab1
----
0
1

query I rowsort
SELECT ALL - 94 FROM tab0, tab1, tab0 cor0, tab2
----
81 values hashing to d4c5b1dbf2cd8753fb5ffe745ca9f5de

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 98 col1 FROM tab0
----
2352
3430
8722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1152
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab0 cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab0 cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

onlyif mysql # use DIV operator for integer division
query I rowsort label-1153
SELECT ALL + col1 DIV + tab1.col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL + col1 / + tab1.col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( - col1 * col1 + 50 ) col2 FROM tab0
----
176304
327565
732559

query I rowsort
SELECT ALL - tab0.col1 + 30 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to ef49f25d958837e9701825b25ec05a73

query I rowsort
SELECT DISTINCT 68 AS col1 FROM tab0, tab1 AS cor0
----
68

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237

query I rowsort
SELECT ALL + 74 + + 1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # use DIV operator for integer division
query I rowsort label-1159
SELECT + 87 DIV - col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-29

skipif mysql # not compatible
query I rowsort label-1159
SELECT + 87 / - col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-1160
SELECT + + 77 DIV 99 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1160
SELECT + + 77 / 99 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 73 * 98 AS col2 FROM tab0
----
7154

query I rowsort
SELECT DISTINCT + 44 FROM tab0, tab2 AS cor0
----
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-1163
SELECT - ( + cor0.col1 ) DIV col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1163
SELECT - ( + cor0.col1 ) / col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 25 * col0 AS col2 FROM tab0
----
-2225
-600
-875

query I rowsort
SELECT ALL + col0 + + cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT col1 * - col1 - + col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT DISTINCT + cor0.col1 - - cor0.col2 FROM tab0 cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1168
SELECT + - col2 DIV col0 + col2 * 77 FROM tab2 AS cor0
----
2002
2076
2926

skipif mysql # not compatible
query I rowsort label-1168
SELECT + - col2 / col0 + col2 * 77 FROM tab2 AS cor0
----
2002
2076
2926

query I rowsort
SELECT + col1 * tab0.col1 * + 23 FROM tab0
----
170108
190463
216407

onlyif mysql # use DIV operator for integer division
query I rowsort label-1170
SELECT + tab1.col2 DIV - tab1.col1 AS col1 FROM tab1, tab2, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to a7433e5175096f129f8dfb234f8c62ec

skipif mysql # not compatible
query I rowsort label-1170
SELECT + tab1.col2 / - tab1.col1 AS col1 FROM tab1, tab2, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to a7433e5175096f129f8dfb234f8c62ec

query I rowsort
SELECT col0 * - col2 * - 84 AS col0 FROM tab1 AS cor0
----
13608
306432
645120

query I rowsort
SELECT - col1 + cor0.col1 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + 80 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT ALL col0 + col0 * - 45 AS col0 FROM tab1 AS cor0
----
-132
-2816
-3520

query I rowsort
SELECT - ( - col1 * + col1 ) FROM tab2
----
289
3481
961

query I rowsort
SELECT + col0 * col2 - + tab0.col0 AS col2 FROM tab0
----
0
7209
768

query I rowsort
SELECT - + 2 * col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT + col0 + col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL col1 * col1 * col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT 98 AS col2 FROM tab2 cor0
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col1 col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-1182
SELECT DISTINCT - - cor0.col0 DIV col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1182
SELECT DISTINCT - - cor0.col0 / col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - - col2 + ( - 53 ) FROM tab1 cor0
----
1
4
43

query I rowsort
SELECT - col2 * + ( ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL 98 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT DISTINCT ( col2 * - col0 ) AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT tab1.col0 * - 76 FROM tab1, tab1 cor0
----
9 values hashing to c2a476a86e542fe512e5e551d2476c44

query I rowsort
SELECT ( - col0 ) * - 5 - - col0 * col1 AS col2 FROM tab2
----
1738
252
4992

query I rowsort
SELECT - 17 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

query I rowsort
SELECT tab1.col1 FROM tab1, tab2, tab2 cor0, tab0
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT ALL - - ( col2 ) * col0 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1192
SELECT + col1 + ( + col0 ) * + CAST( col1 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-208
-40950
-83187

skipif mysql # not compatible
query I rowsort label-1192
SELECT + col1 + ( + col0 ) * + CAST ( col1 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-208
-40950
-83187

query I rowsort
SELECT ALL + col0 + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT 35 + col2 FROM tab0 cor0
----
117
36
68

query I rowsort
SELECT DISTINCT + - col0 * + cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - 51 + col0 * - col2 FROM tab1 AS cor0
----
-213
-3699
-7731

query I rowsort
SELECT col2 * 61 AS col0 FROM tab1
----
3294
3477
5856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col2 FROM tab0, tab2 AS cor0
----
23

query I rowsort
SELECT - 53 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a

query I rowsort
SELECT DISTINCT - 34 + col2 + col2 AS col1 FROM tab1
----
158
74
80

query I rowsort
SELECT ( + col1 ) * - col0 FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col1 AS REAL ) * + col2 * - 62 FROM tab1 AS cor0
----
-35340
-77376
-87048

onlyif mysql # use DIV operator for integer division
query I rowsort label-1203
SELECT + 8 DIV + 87 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1203
SELECT + 8 / + 87 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col1 * - ( col0 ) AS col1 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-1205
SELECT 94 DIV + cor0.col1 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1205
SELECT 94 / + cor0.col1 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT + col0 * col1 * col1 + - col1 AS col1 FROM tab0 AS cor0
----
177418
329218
736918

query I rowsort
SELECT DISTINCT - - col2 + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 + + col2 col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL + + col0 * col1 + col0 * - cor0.col0 + col1 AS col1 FROM tab0 cor0
----
1574
2267
269

onlyif mysql # use DIV operator for integer division
query I rowsort label-1210
SELECT ( + col0 ) DIV - tab2.col0 + col2 col2 FROM tab2
----
25
26
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1210
SELECT ( + col0 ) / - tab2.col0 + col2 col2 FROM tab2
----
25
26
37

query I rowsort
SELECT ALL col0 * col1 * - col1 + - col0 AS col1 FROM tab0
----
-177528
-329350
-737098

query I rowsort
SELECT ALL ( + col1 ) + + col2 * col2 AS col1 FROM tab2
----
1461
735
760

query I rowsort
SELECT DISTINCT - 19 + col0 FROM tab0 AS cor0
----
16
5
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-1214
SELECT + col0 * col1 + + 90 DIV col2 FROM tab1 AS cor0
----
1040
641
79

skipif mysql # not compatible
query I rowsort label-1214
SELECT + col0 * col1 + + 90 / col2 FROM tab1 AS cor0
----
1040
641
79

query I rowsort
SELECT DISTINCT - cor0.col1 + + col0 + col0 FROM tab1 AS cor0
----
-20
118
147

query I rowsort
SELECT ALL - col2 * + cor0.col1 + - col0 FROM tab0 cor0
----
-132
-2862
-7551

query I rowsort
SELECT + 10 * col1 + - ( + ( - col1 ) ) FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT ALL - + col0 * + col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT col2 * cor0.col1 + 35 FROM tab1 AS cor0
----
1283
1439
605

query I rowsort
SELECT DISTINCT col0 * col2 + + col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-1221
SELECT ALL - col0 + - 34 DIV col2 AS col2 FROM tab0 cor0
----
-25
-69
-89

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL - col0 + - 34 / col2 AS col2 FROM tab0 cor0
----
-25
-69
-89

query I rowsort
SELECT DISTINCT + + col1 - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1223
SELECT ALL + ( + col1 ) DIV col1 + + col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL + ( + col1 ) / col1 + + col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL + 16 - col1 AS col1 FROM tab0 AS cor0
----
-70
-75
-81

query I rowsort
SELECT ALL col1 * col1 * - col1 - ( + ( col1 ) ) FROM tab2 AS cor0
----
-205438
-29822
-4930

query I rowsort
SELECT + col2 * cor0.col1 - col2 AS col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT cor0.col0 * col0 - col1 FROM tab1 AS cor0
----
-17
4086
6387

onlyif mysql # use DIV operator for integer division
query I rowsort label-1228
SELECT ALL + - col1 * + col1 + col1 DIV 93 FROM tab0 AS cor0
----
-7396
-8281
-9408

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL + - col1 * + col1 + col1 / 93 FROM tab0 AS cor0
----
-7396
-8281
-9408

query I rowsort
SELECT DISTINCT + 91 - 77 * col1 AS col0 FROM tab1 AS cor0
----
-1911
-679
-910

query I rowsort
SELECT + 12 - + ( col1 ) AS col2 FROM tab2 cor0
----
-19
-47
-5

query I rowsort
SELECT DISTINCT 58 + + col1 FROM tab2 AS cor0
----
117
75
89

query I rowsort
SELECT cor0.col1 AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT + 87 + - col2 * + col2 FROM tab0 cor0
----
-1002
-6637
86

query I rowsort
SELECT + 43 - col2 * - cor0.col1 FROM tab2 cor0
----
1577
689
880

query I rowsort
SELECT - ( col0 + + col0 ) FROM tab2
----
-14
-156
-158

query I rowsort
SELECT - 57 + - col0 AS col1 FROM tab1
----
-121
-137
-60

query I rowsort
SELECT + + col0 + cor0.col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + + ( - col2 ) + - 30 AS col2 FROM tab2 AS cor0
----
-56
-57
-68

query I rowsort
SELECT DISTINCT cor0.col2 + - cor0.col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL + 11 AS col0 FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT ALL cor0.col2 - col0 * + ( - 53 * col1 ) FROM tab2 AS cor0
----
11528
243932
71217

query I rowsort
SELECT - + col1 * + col0 * col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT + col1 * + col1 + col0 * col0 - - col0 AS col2 FROM tab0 cor0
----
10669
16291
7996

query I rowsort
SELECT DISTINCT - + col2 * 69 FROM tab1 AS cor0
----
-3726
-3933
-6624

query I rowsort
SELECT ALL - + col1 * col2 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL - col1 + 86 AS col2 FROM tab0 AS cor0
----
-11
-5
0

query I rowsort
SELECT DISTINCT col2 * 56 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT + - cor0.col2 * 27 FROM tab0 AS cor0
----
-2214
-27
-891

query I rowsort
SELECT ALL + - col2 * + col1 + + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL + col0 * col0 * col2 AS col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT DISTINCT cor0.col2 * - col0 * col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-1252
SELECT + - cor0.col0 + col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-1252
SELECT + - cor0.col0 + col0 / + col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT - col0 * + 60 * col2 FROM tab0 cor0
----
-2100
-437880
-47520

query I rowsort
SELECT ALL col0 * 6 AS col0 FROM tab1
----
18
384
480

query I rowsort
SELECT - 3 * - col0 + - col2 FROM tab2
----
-6
199
208

query I rowsort
SELECT ALL - - ( - col2 ) * + col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - + 50 + col0 * col0 AS col2 FROM tab2 AS cor0
----
-1
6034
6191

onlyif mysql # use DIV operator for integer division
query I rowsort label-1258
SELECT ALL - 56 DIV - col2 col0 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL - 56 / - col2 col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1259
SELECT ALL col2 * col0 + + col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL col2 * col0 + + col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + col1 * col0 FROM tab2
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-1261
SELECT ALL - cor0.col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL - cor0.col1 / - col2 AS col1 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT - ( + col0 ) + - col0 AS col0 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT 44 + - col0 FROM tab1
----
-20
-36
41

query I rowsort
SELECT ( tab1.col2 + tab1.col1 * col0 ) FROM tab1
----
1136
132
697

query I rowsort
SELECT ( col0 ) * + col0 AS col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT 3 * + col2 FROM tab0 AS cor0
----
246
3
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1267
SELECT DISTINCT + 24 DIV - cor0.col2 FROM tab0, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1267
SELECT DISTINCT + 24 / - cor0.col2 FROM tab0, tab1 AS cor0
----
0

query I rowsort
SELECT - - col0 * - col1 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - - 23 * col0 AS col1 FROM tab2 AS cor0
----
161
1794
1817

query I rowsort
SELECT ALL + - 19 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT DISTINCT - ( ( + col1 ) ) * 15 AS col0 FROM tab0
----
-1290
-1365
-1455

query I rowsort
SELECT 61 * col0 * + 56 FROM tab2
----
23912
266448
269864

query I rowsort
SELECT DISTINCT - col1 * + col2 * 18 AS col0 FROM tab2
----
-11628
-15066
-27612

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + + col2 + - 41 FROM tab2 AS cor0
----
-14
-15
-3

query I rowsort
SELECT DISTINCT - col1 + 24 * - 99 FROM tab0 cor0
----
-2462
-2467
-2473

query I rowsort
SELECT ALL col2 * col0 * - col2 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + col1 * + ( - col2 + - col1 * - col2 ) FROM tab1 AS cor0
----
14976
35100
5130

query I rowsort
SELECT DISTINCT ( + col1 ) * - ( - tab2.col1 ) AS col0 FROM tab2
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - tab2.col2 * ( 13 * + col0 ) col2 FROM tab2
----
-1555476
-663442
-76167

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1281
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) + col1 FROM tab2
----
NULL

query I rowsort
SELECT 34 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT ALL col0 * - col2 + + ( col1 ) * 81 AS col2 FROM tab2
----
-1625
2322
2751

query I rowsort
SELECT + - ( col2 ) * cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1285
SELECT + CAST( NULL AS SIGNED ) + - 27 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1285
SELECT + CAST ( NULL AS INTEGER ) + - 27 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col1 - - col0 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + col1 + + ( col2 + col0 ) FROM tab2
----
134
163
65

query I rowsort
SELECT ALL col0 * col2 + col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT + ( - col2 ) + - col0 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - col1 + 59 AS col1 FROM tab2 AS cor0
----
0
28
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-1291
SELECT - - col2 DIV + col0 AS col2 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1291
SELECT - - col2 / + col0 AS col2 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + 24 + 98 * col1 AS col0 FROM tab2 AS cor0
----
1690
3062
5806

query I rowsort
SELECT ( - ( - col2 ) ) - - col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - - ( - col0 ) * cor0.col1 + ( col2 ) AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + col2 * + 79 FROM tab2
----
2054
2133
3002

query I rowsort
SELECT - col2 + - 45 * col0 FROM tab2 cor0
----
-342
-3536
-3593

onlyif mysql # use DIV operator for integer division
query I rowsort label-1297
SELECT ALL + col0 + + col0 DIV - ( + col1 ) AS col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL + col0 + + col0 / - ( + col1 ) AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL - col2 + col2 * ( col2 ) + col0 * + 90 AS col1 FROM tab0
----
14652
3150
3216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1299
SELECT - cor0.col0 + col1 + cor0.col0 * cor0.col0 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1299
SELECT - cor0.col0 + col1 + cor0.col0 * cor0.col0 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + - 84 AS col1 FROM tab0 cor0
----
-2
-51
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1301
SELECT col0 + + col1 DIV - 88 - - col0 FROM tab2 AS cor0
----
14
156
158

skipif mysql # not compatible
query I rowsort label-1301
SELECT col0 + + col1 / - 88 - - col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + col0 * 88 FROM tab2 AS cor0
----
616
6864
6952

query I rowsort
SELECT - col1 + 70 FROM tab2 AS cor0
----
11
39
53

query I rowsort
SELECT 50 + col2 AS col0 FROM tab2 AS cor0
----
76
77
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1305
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
-2
-62

skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
-2
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 1 + + col0 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 87 * 0 + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - ( 81 ) * col1 FROM tab2 AS cor0
----
-1377
-2511
-4779

query I rowsort
SELECT + 95 * - ( col1 ) + 1 FROM tab0 AS cor0
----
-8169
-8644
-9214

query I rowsort
SELECT col1 * ( - col2 ) AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + 9 * cor0.col2 + - col0 * col2 FROM tab0 AS cor0
----
-26
-495
-6560

query I rowsort
SELECT DISTINCT 96 + + col0 AS col2 FROM tab2 AS cor0
----
103
174
175

query I rowsort
SELECT DISTINCT - ( + col2 ) + - col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + tab2.col1 * - 36 AS col2 FROM tab2
----
-1116
-2124
-612

query I rowsort
SELECT - 87 + - col1 * + col1 AS col0 FROM tab1 AS cor0
----
-187
-256
-763

query I rowsort
SELECT 22 + col0 + col1 AS col2 FROM tab1 AS cor0
----
115
51
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1317
SELECT + cor0.col0 + cor0.col0 DIV 43 + + col1 AS col0 FROM tab0 AS cor0
----
110
132
182

skipif mysql # not compatible
query I rowsort label-1317
SELECT + cor0.col0 + cor0.col0 / 43 + + col1 AS col0 FROM tab0 AS cor0
----
110
132
182

query I rowsort
SELECT ALL - 62 * - col0 AS col1 FROM tab1
----
186
3968
4960

query I rowsort
SELECT + + 93 * - col1 FROM tab1 AS cor0
----
-1209
-2418
-930

onlyif mysql # use DIV operator for integer division
query I rowsort label-1320
SELECT DISTINCT + col0 DIV ( 53 ) FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1320
SELECT DISTINCT + col0 / ( 53 ) FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT col0 * col2 - col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT tab1.col2 + - col0 + col2 FROM tab1
----
105
112
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1323
SELECT DISTINCT + 40 + col2 - + CAST( NULL AS SIGNED ) / - col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT + 40 + col2 - + CAST ( NULL AS INTEGER ) / - col0 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT cor0.col1 * - ( 18 ) AS col1 FROM tab0, tab0 cor0
----
-1548
-1638
-1746

query I rowsort
SELECT col1 + + 1 - + col2 * - col1 AS col0 FROM tab1 AS cor0
----
1262
1431
581

query I rowsort
SELECT + + col1 * ( col0 ) + + col1 - col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + col1 + col1 * col0 - col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + - col1 * - cor0.col0 + + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL + - cor0.col2 + - col2 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-1330
SELECT DISTINCT col1 DIV col2 + col0 DIV col2 FROM tab0 AS cor0
----
132
2

skipif mysql # not compatible
query I rowsort label-1330
SELECT DISTINCT col1 / col2 + col0 / col2 FROM tab0 AS cor0
----
132
2

query I rowsort
SELECT DISTINCT + col2 + - ( + ( col2 ) ) + - cor0.col1 * col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - col2 * - 23 * col1 - col2 FROM tab1 AS cor0
----
13053
28608
32238

query I rowsort
SELECT + col0 * + col2 + + col1 AS col0 FROM tab2
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + col0 col1 FROM tab0
----
1113
36
6813

query I rowsort
SELECT col2 + 93 * - col1 AS col0 FROM tab0 cor0
----
-7965
-8381
-9020

onlyif mysql # use DIV operator for integer division
query I rowsort label-1336
SELECT ALL - col2 DIV cor0.col1 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL - col2 / cor0.col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 + col0 * col0 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT ALL + 92 FROM tab2, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL col1 + 18 AS col0 FROM tab1 AS cor0
----
28
31
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-1340
SELECT ALL - col0 * col1 DIV 89 + cor0.col1 FROM tab2 AS cor0
----
2
29
8

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL - col0 * col1 / 89 + cor0.col1 FROM tab2 AS cor0
----
2
29
8

query I rowsort
SELECT ALL + 33 + + tab0.col0 FROM tab0, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to c37edf79bc208d647656b488ec821605

query I rowsort
SELECT - + ( 64 ) + + cor0.col0 FROM tab2 cor0
----
-57
14
15

query I rowsort
SELECT DISTINCT 24 + cor0.col2 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
120
78
81

query I rowsort
SELECT + 2 * col0 * - ( - col0 ) + col1 FROM tab1
----
12813
44
8202

query I rowsort
SELECT - cor0.col0 FROM tab1, tab0 cor0, tab2 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1346
SELECT ALL cor0.col0 DIV col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-1346
SELECT ALL cor0.col0 / col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL + col0 * col1 * - col1 + + 30 FROM tab2 AS cor0
----
-22801
-271488
-6697

query I rowsort
SELECT ALL - col1 + col1 * 36 + + col2 AS col1 FROM tab0 AS cor0
----
3043
3267
3396

query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 + 49 * col0 AS col2 FROM tab0 AS cor0
----
11659
1750
1968

query I rowsort
SELECT col2 * col0 + + col2 FROM tab2 cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1351
SELECT ( + col1 ) * - col0 * col1 + - col0 / CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1351
SELECT ( + col1 ) * - col0 * col1 + - col0 / CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 + + col2 * cor0.col2 col1 FROM tab0 AS cor0
----
1169
6804
81

query I rowsort
SELECT ( + ( + col0 ) * ( col0 ) ) AS col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT + 66 * cor0.col0 FROM tab1, tab1 AS cor0
----
198
4224
5280

query I rowsort
SELECT 86 * + 96 AS col0 FROM tab0
----
8256
8256
8256

query I rowsort
SELECT ALL + col0 * col0 + col1 * + ( col0 ) AS col1 FROM tab1
----
4736
7440
87

query I rowsort
SELECT + ( 5 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1358
SELECT ALL + col2 * tab2.col2 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL + col2 * tab2.col2 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 + col1 * 91 AS col2 FROM tab1 cor0
----
1087
2312
853

query I rowsort
SELECT + + col0 * + cor0.col2 + + 61 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
2765
4507
979

onlyif mysql # use DIV operator for integer division
query I rowsort label-1361
SELECT DISTINCT - 24 DIV - col2 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT - 24 / - col2 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ( col1 ) * + 51 AS col1 FROM tab1 cor0
----
1326
510
663

query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col0 * col0 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1364
SELECT col0 * CAST( NULL AS SIGNED ) * 80 + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1364
SELECT col0 * CAST ( NULL AS INTEGER ) * 80 + + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 * + ( + col0 ) * + cor0.col2 + - col2 FROM tab1 AS cor0
----
-233529
-540
-614496

query I rowsort
SELECT - - col2 - + 67 AS col0 FROM tab1 cor0
----
-10
-13
29

query I rowsort
SELECT ALL + col2 * + col0 - + col2 * - col1 AS col0 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT DISTINCT 22 * - 77 + + col0 AS col1 FROM tab1 AS cor0
----
-1614
-1630
-1691

query I rowsort
SELECT 17 + + col2 * col1 FROM tab0 cor0
----
114
2855
7479

query I rowsort
SELECT DISTINCT + col1 - + 94 * + col1 AS col0 FROM tab0 AS cor0
----
-7998
-8463
-9021

query I rowsort
SELECT ALL + - col1 + 94 AS col0 FROM tab2 cor0
----
35
63
77

query I rowsort
SELECT + 44 * 65 FROM tab1 AS cor0
----
2860
2860
2860

onlyif mysql # use DIV operator for integer division
query I rowsort label-1373
SELECT + + 12 DIV + cor0.col0 + col2 col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1373
SELECT + + 12 / + cor0.col0 + col2 col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 16 + col0 * col2 col1 FROM tab2 AS cor0
----
173
2012
2986

onlyif mysql # use DIV operator for integer division
query I rowsort label-1375
SELECT + col0 * + col1 - col1 DIV 17 FROM tab1 AS cor0
----
1040
640
77

skipif mysql # not compatible
query I rowsort label-1375
SELECT + col0 * + col1 - col1 / 17 FROM tab1 AS cor0
----
1040
640
77

query I rowsort
SELECT - - col0 * 89 - col0 * col2 FROM tab1 AS cor0
----
-560
105
2048

query I rowsort
SELECT col1 + + ( col2 ) + + col0 * + col2 FROM tab2 AS cor0
----
2113
247
3057

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1378
SELECT + CAST( NULL AS SIGNED ) * - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT + CAST ( NULL AS INTEGER ) * - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 62 + + col0 FROM tab0 AS cor0
----
-27
-38
27

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + - 14 AS col0 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT - + cor0.col1 + ( + 54 ) * col1 AS col0 FROM tab0 AS cor0
----
4558
4823
5141

query I rowsort
SELECT ALL + col0 * + 11 FROM tab2
----
77
858
869

onlyif mysql # use DIV operator for integer division
query I rowsort label-1384
SELECT col2 + - 47 DIV col0 FROM tab0 AS cor0
----
0
32
82

skipif mysql # not compatible
query I rowsort label-1384
SELECT col2 + - 47 / col0 FROM tab0 AS cor0
----
0
32
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1385
SELECT DISTINCT + CAST( col0 AS SIGNED ) + col1 * - col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + col1 * - col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT + 6 + - ( - col2 ) + col2 AS col2 FROM tab2 AS cor0
----
58
60
82

query I rowsort
SELECT ALL + 57 AS col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

onlyif mysql # use DIV operator for integer division
query I rowsort label-1388
SELECT - col0 DIV - ( col1 ) - + col2 * 90 FROM tab0 AS cor0
----
-2970
-7380
-90

skipif mysql # not compatible
query I rowsort label-1388
SELECT - col0 / - ( col1 ) - + col2 * 90 FROM tab0 AS cor0
----
-2970
-7380
-90

query I rowsort
SELECT ALL - + cor0.col0 * + col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT + 16 - - col0 FROM tab1
----
19
80
96

query I rowsort
SELECT DISTINCT + col1 - tab2.col2 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL - col1 + col0 * col2 * col1 AS col2 FROM tab1
----
36470
4186
99827

onlyif mysql # use DIV operator for integer division
query I rowsort label-1393
SELECT ALL + col2 + - col0 DIV + 21 FROM tab2
----
23
27
35

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL + col2 + - col0 / + 21 FROM tab2
----
23
27
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1394
SELECT ALL - + col1 + CAST( + 63 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
37
50
53

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL - + col1 + CAST ( + 63 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
37
50
53

query I rowsort
SELECT 72 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 * + col2 col2 FROM tab2 cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-1397
SELECT col1 DIV 25 AS col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1397
SELECT col1 / 25 AS col2 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT ALL col1 * - ( 13 ) + col1 * - ( 95 ) FROM tab1 AS cor0
----
-1080
-1404
-2808

query I rowsort
SELECT col0 * ( ( + col0 ) ) + 34 AS col1 FROM tab1 AS cor0
----
4130
43
6434

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + cor0.col2 - ( col2 * col0 + + 24 ) col1 FROM tab1 cor0
----
-1590
-4242
-8952

query I rowsort
SELECT - - col1 + ( - 61 ) AS col0 FROM tab2 AS cor0
----
-2
-30
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col2 FROM tab1
----
31
31
31

query I rowsort
SELECT DISTINCT 48 * col0 FROM tab2
----
336
3744
3792

query I rowsort
SELECT DISTINCT 7 * + tab1.col1 FROM tab1
----
182
70
91

query I rowsort
SELECT DISTINCT - 36 * col0 + - col1 + 77 AS col0 FROM tab2 cor0
----
-206
-2784
-2790

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1406
SELECT DISTINCT + col2 + col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT + col2 + col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1407
SELECT 82 DIV col0 AS col0 FROM tab1 cor0
----
1
1
27

skipif mysql # not compatible
query I rowsort label-1407
SELECT 82 / col0 AS col0 FROM tab1 cor0
----
1
1
27

query I rowsort
SELECT ALL col2 * + col1 * ( 84 * - col0 ) FROM tab0 AS cor0
----
-285180
-55785912
-5721408

query I rowsort
SELECT + ( + col1 ) * ( col1 ) AS col1 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-1410
SELECT ALL - - col2 + col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL - - col2 + col1 / + col0 AS col1 FROM tab2 AS cor0
----
26
31
38

query I rowsort
SELECT DISTINCT - + 39 * + col0 + - 48 + - 91 FROM tab1 AS cor0
----
-256
-2635
-3259

query I rowsort
SELECT ALL - cor0.col1 * + col2 + col1 FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT 44 + + col0 * - 0 + - col2 FROM tab1 AS cor0
----
-10
-13
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1414
SELECT cor1.col0 + - CAST( NULL AS SIGNED ) FROM tab0, tab2, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-1414
SELECT cor1.col0 + - CAST ( NULL AS INTEGER ) FROM tab0, tab2, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT DISTINCT cor0.col2 + - cor0.col1 * - ( + col0 ) AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL + col0 * + col0 + ( cor0.col0 ) * + cor0.col2 AS col0 FROM tab0 cor0
----
1260
1368
15219

query I rowsort
SELECT col2 * 21 * col0 AS col1 FROM tab0 AS cor0
----
153258
16632
735

query I rowsort
SELECT + col0 * col2 * 45 AS col2 FROM tab2 AS cor0
----
135090
8505
91260

query I rowsort
SELECT ALL + cor0.col2 - col0 AS col0 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-1420
SELECT ALL + col0 DIV col0 + + ( + col2 ) AS col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL + col0 / col0 + + ( + col2 ) AS col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL - col0 * - 84 * - 72 + + col2 * 3 FROM tab2 AS cor0
----
-42255
-471666
-477678

query I rowsort
SELECT col1 + 79 AS col2 FROM tab2 AS cor0
----
110
138
96

query I rowsort
SELECT ALL - + col2 * - 35 + + cor0.col0 FROM tab0 AS cor0
----
1179
2959
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1424
SELECT DISTINCT col1 - CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT col1 - CAST ( NULL AS REAL ) * col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - tab1.col2 + - col1 AS col0 FROM tab1
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1426
SELECT ( col0 * 24 ) - tab1.col0 DIV + col1 FROM tab1
----
1530
1914
72

skipif mysql # not compatible
query I rowsort label-1426
SELECT ( col0 * 24 ) - tab1.col0 / + col1 FROM tab1
----
1530
1914
72

query I rowsort
SELECT 47 + + 80 AS col2 FROM tab0 AS cor0
----
127
127
127

onlyif mysql # use DIV operator for integer division
query I rowsort label-1428
SELECT DISTINCT - col0 * col2 DIV + col1 AS col1 FROM tab2 cor0
----
-176
-34
-6

skipif mysql # not compatible
query I rowsort label-1428
SELECT DISTINCT - col0 * col2 / + col1 AS col1 FROM tab2 cor0
----
-176
-34
-6

query I rowsort
SELECT DISTINCT + + ( 83 ) * col1 + 10 FROM tab2 AS cor0
----
1421
2583
4907

query I rowsort
SELECT + - col2 * 2 + - col1 AS col0 FROM tab2 AS cor0
----
-111
-85
-93

query I rowsort
SELECT DISTINCT - ( + 23 ) * + col0 + - ( col0 * col2 ) AS col2 FROM tab1 AS cor0
----
-231
-5120
-9520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1432
SELECT + CAST( NULL AS SIGNED ) * - col2 + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1432
SELECT + CAST ( NULL AS INTEGER ) * - col2 + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * 92 FROM tab0 AS cor0
----
2208
3220
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 FROM tab2 AS cor0
----
-14
-156
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( 15 ) * - cor0.col2 col0 FROM tab1 AS cor0
----
-1440
-810
-855

query I rowsort
SELECT ALL ( col0 ) * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col2 - - ( 91 + col1 ) FROM tab0
----
189
210
264

query I rowsort
SELECT ALL - + col0 * - ( - cor0.col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - cor0.col2 + + 4 AS col2 FROM tab1 AS cor0
----
-50
-53
-92

query I rowsort
SELECT DISTINCT - - 9 + - 56 * + col0 FROM tab1 AS cor0
----
-159
-3575
-4471

query I rowsort
SELECT + + col0 + - 67 AS col2 FROM tab2 AS cor0
----
-60
11
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-1443
SELECT ALL + - 27 + col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL + - 27 + col0 / + col0 AS col1 FROM tab1 AS cor0
----
-26
-26
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1444
SELECT + CAST( col0 AS SIGNED ) + + col2 * 45 AS col2 FROM tab2 AS cor0
----
1222
1248
1789

skipif mysql # not compatible
query I rowsort label-1444
SELECT + CAST ( col0 AS INTEGER ) + + col2 * 45 AS col2 FROM tab2 AS cor0
----
1222
1248
1789

query I rowsort
SELECT DISTINCT tab2.col1 * - col1 * + col1 + col2 + - 49 * + col1 AS col2 FROM tab2
----
-208244
-31283
-5708

query I rowsort
SELECT ALL - - 16 * + col0 FROM tab2 AS cor0
----
112
1248
1264

query I rowsort
SELECT 10 + - col1 * 3 FROM tab1 cor0
----
-20
-29
-68

query I rowsort
SELECT + + cor0.col0 * 78 FROM tab1 AS cor0
----
234
4992
6240

query I rowsort
SELECT - col1 * + cor0.col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1450
SELECT ALL + CAST( NULL AS SIGNED ) * + 24 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL + CAST ( NULL AS INTEGER ) * + 24 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * - 80 + col1 * col2 FROM tab2 AS cor0
----
2006
3317
6254

query I rowsort
SELECT col1 * - ( col0 ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1453
SELECT ALL - col0 + - CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL - col0 + - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - cor0.col0 * ( + col1 ) + + col1 - + col1 * + 53 FROM tab1 cor0
----
-1160
-1430
-1716

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1455
SELECT ALL + col0 * - CAST( 27 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2403
-648
-945

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL + col0 * - CAST ( 27 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2403
-648
-945

query I rowsort
SELECT - col0 + + col1 * + 45 FROM tab2 AS cor0
----
1388
2577
686

onlyif mysql # use DIV operator for integer division
query I rowsort label-1457
SELECT col0 DIV - 17 + col1 DIV cor0.col1 + - ( + col2 ) DIV col0 FROM tab1 cor0
----
-17
-2
-4

skipif mysql # not compatible
query I rowsort label-1457
SELECT col0 / - 17 + col1 / cor0.col1 + - ( + col2 ) / col0 FROM tab1 cor0
----
-17
-2
-4

query I rowsort
SELECT ALL - ( col0 ) + - tab0.col0 FROM tab0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-1459
SELECT ALL 92 + + tab1.col0 DIV + tab1.col1 + col1 FROM tab1
----
108
111
118

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL 92 + + tab1.col0 / + tab1.col1 + col1 FROM tab1
----
108
111
118

query I rowsort
SELECT - col1 * col2 + ( col1 ) * col0 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT + col0 + col2 * col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT cor0.col0 * 10 FROM tab0, tab1 AS cor0
----
9 values hashing to eac72a19176f52ed86650bfbb5c81eb1

query I rowsort
SELECT col0 * 28 AS col1 FROM tab2
----
196
2184
2212

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col2 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT - 2 * col2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT ALL col2 * + col2 * - col0 AS col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT - 23 * col2 FROM tab1 AS cor0
----
-1242
-1311
-2208

query I rowsort
SELECT ALL - - 43 FROM tab0 cor0
----
43
43
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1469
SELECT - col0 + + col0 * - CAST( col1 + - col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1469
SELECT - col0 + + col0 * - CAST ( col1 + - col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + - col2 + - col1 * - col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1472
SELECT ALL CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 68 col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT + + col1 + col0 - + col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1475
SELECT tab0.col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1475
SELECT tab0.col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * ( col1 ) AS col0 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT + col0 * + tab1.col2 + col2 + + col2 AS col1 FROM tab1
----
270
3762
7872

query I rowsort
SELECT DISTINCT tab0.col1 - - col2 * - col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT 67 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT ALL col1 * 36 + + col0 * col2 + 58 * - col2 FROM tab1 AS cor0
----
-2034
2580
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-1481
SELECT DISTINCT - col1 * ( col0 ) DIV + col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-1481
SELECT DISTINCT - col1 * ( col0 ) / + col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - 10 AS col1 FROM tab1, tab2 AS cor0
----
-10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1483
SELECT col0 / + CAST( NULL AS SIGNED ) + 90 - col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1483
SELECT col0 / + CAST ( NULL AS INTEGER ) + 90 - col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1484
SELECT col1 - CAST( - 34 AS SIGNED ) * + cor0.col2 FROM tab2 AS cor0
----
1309
943
949

skipif mysql # not compatible
query I rowsort label-1484
SELECT col1 - CAST ( - 34 AS INTEGER ) * + cor0.col2 FROM tab2 AS cor0
----
1309
943
949

query I rowsort
SELECT DISTINCT 72 FROM tab0 cor0
----
72

query I rowsort
SELECT cor0.col0 AS col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL 11 * - col2 FROM tab0
----
-11
-363
-902

query I rowsort
SELECT + + 13 * - ( col1 ) AS col0 FROM tab2 AS cor0
----
-221
-403
-767

query I rowsort
SELECT - col1 * - ( + col0 + 15 ) FROM tab0 AS cor0
----
3354
4850
9464

query I rowsort
SELECT + col1 + 70 * cor0.col2 FROM tab1 AS cor0
----
3806
4000
6733

query I rowsort
SELECT DISTINCT + ( + col2 ) - + col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - 90 + - col1 AS col0 FROM tab0 AS cor0
----
-176
-181
-187

query I rowsort
SELECT ( - col0 ) * - col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT - 61 + + col0 AS col0 FROM tab0 AS cor0
----
-26
-37
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 82 ) col2 FROM tab1
----
82
82
82

query I rowsort
SELECT + 12 + col0 AS col1 FROM tab1
----
15
76
92

query I rowsort
SELECT DISTINCT ( - 0 ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 * + 65 + - col1 * col0 * + col1 col0 FROM tab1 AS cor0
----
-2175
-9295
2197

query I rowsort
SELECT - ( 73 ) FROM tab2 AS cor0
----
-73
-73
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1500
SELECT DISTINCT + CAST( - 79 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-1500
SELECT DISTINCT + CAST ( - 79 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-79

query I rowsort
SELECT DISTINCT ( - col2 ) * col1 * - 73 FROM tab1 AS cor0
----
102492
41610
91104

query I rowsort
SELECT ALL - 52 + - col1 AS col1 FROM tab1 AS cor0
----
-62
-65
-78

query I rowsort
SELECT ALL - - col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - 65 * col2 + col1 + - col1 FROM tab1 cor0
----
-3510
-3705
-6240

query I rowsort
SELECT tab2.col1 * 42 FROM tab2
----
1302
2478
714

query I rowsort
SELECT - ( col0 * col1 + ( col2 ) * col1 ) AS col2 FROM tab0
----
-15561
-3492
-4902

query I rowsort
SELECT DISTINCT col0 * col1 - + col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT + 63 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT + col1 * - col1 * col0 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT col2 * - col1 * 0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + - ( - col2 ) AS col2 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * col0 + - 30 - col2 col0 FROM tab1 AS cor0
----
-75
4009
6274

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 + + col1 col2 FROM tab2
----
42
56
84

query I rowsort
SELECT ALL 41 * col1 + col2 * + col0 FROM tab2
----
1460
3699
4447

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
26
27
38

query I rowsort
SELECT + col1 * ( - col2 ) + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + - 2 col1 FROM tab1 cor0
----
1038
638
76

query I rowsort
SELECT DISTINCT - col1 + + col0 * + col2 FROM tab0 cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT + + col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-1520
SELECT - cor0.col2 DIV col2 AS col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1520
SELECT - cor0.col2 / col2 AS col1 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1521
SELECT - - col0 DIV 86 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1521
SELECT - - col0 / 86 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL col1 + + col0 * + col1 AS col0 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL - col2 * + 68 * + col2 - + col0 AS col2 FROM tab0 AS cor0
----
-103
-457321
-74076

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - 24 + + col2 FROM tab0 AS cor0
----
-23
58
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1526
SELECT - CAST( + ( - col2 ) AS SIGNED ) * + 35 + - ( - col1 ) AS col2 FROM tab2 AS cor0
----
1347
969
976

skipif mysql # not compatible
query I rowsort label-1526
SELECT - CAST ( + ( - col2 ) AS INTEGER ) * + 35 + - ( - col1 ) AS col2 FROM tab2 AS cor0
----
1347
969
976

query I rowsort
SELECT ALL 53 * col2 FROM tab1 AS cor0
----
2862
3021
5088

query I rowsort
SELECT DISTINCT 34 + 77 + - cor0.col1 FROM tab1 AS cor0
----
101
85
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1529
SELECT DISTINCT - CAST( col2 AS SIGNED ) + col2 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + col2 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 10 + 8 AS col0 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT + col0 + 20 AS col2 FROM tab1 AS cor0
----
100
23
84

query I rowsort
SELECT DISTINCT - - ( col0 ) + + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT ( col0 ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL col2 * col0 - + col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT + 57 + col2 * col1 FROM tab2 AS cor0
----
1591
703
894

query I rowsort
SELECT ALL + 20 * col2 AS col1 FROM tab1 AS cor0
----
1080
1140
1920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1537
SELECT - + CAST( - 9 AS SIGNED ) FROM tab1 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-1537
SELECT - + CAST ( - 9 AS INTEGER ) FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT DISTINCT + col1 + ( - col0 ) * - col1 FROM tab2
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-1539
SELECT ALL + 71 DIV - col2 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
26
84
91

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL + 71 / - col2 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
26
84
91

query I rowsort
SELECT + 94 * 63 FROM tab0 AS cor0
----
5922
5922
5922

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col1 * - col2 col0 FROM tab1 AS cor0
----
1152
1350
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 col1 FROM tab0 cor0
----
75

query I rowsort
SELECT + col2 * - col2 + col1 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1465
-643
-725

query I rowsort
SELECT - col0 * + cor0.col2 + + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT 32 * col0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
193
2437
2511

query I rowsort
SELECT DISTINCT - + cor0.col2 + + col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT 58 - col0 AS col0 FROM tab1 AS cor0
----
-22
-6
55

query I rowsort
SELECT 6 * - col0 - 64 FROM tab2 AS cor0
----
-106
-532
-538

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1549
SELECT ALL ( - cor0.col2 ) * ( + ( col1 ) ) + CAST( NULL AS DECIMAL ) * col2 - - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL ( - cor0.col2 ) * ( + ( col1 ) ) + CAST ( NULL AS REAL ) * col2 - - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * col0 + - CAST ( - col1 AS REAL ) + col1 / - cor0.col1 AS col2 FROM tab1 AS cor0
----
103
1052
649

onlyif mysql # use DIV operator for integer division
query I rowsort label-1551
SELECT ALL - cor0.col0 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1551
SELECT ALL - cor0.col0 / cor0.col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + cor0.col1 * - col2 + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT - cor0.col1 + - 77 AS col2 FROM tab1 AS cor0
----
-103
-87
-90

query I rowsort
SELECT DISTINCT + cor0.col0 * ( 23 ) FROM tab0 AS cor0
----
2047
552
805

query I rowsort
SELECT ALL - - col2 * - 18 AS col1 FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-17
-31
-59

query I rowsort
SELECT + 8 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT DISTINCT + col2 * 96 * + col1 FROM tab0
----
272448
716352
9312

query I rowsort
SELECT ALL col1 + - col0 * + col2 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT + cor0.col0 * + ( col1 ) + - ( col0 ) FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT ( + 51 ) FROM tab0 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT + - 55 + + cor0.col2 FROM tab2 AS cor0
----
-17
-28
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + cor0.col0 col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - - 69 * col1 + 88 AS col1 FROM tab2 cor0
----
1261
2227
4159

onlyif mysql # use DIV operator for integer division
query I rowsort label-1565
SELECT - 67 DIV - col0 + - col1 col0 FROM tab1 AS cor0
----
-13
-4
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1565
SELECT - 67 / - col0 + - col1 col0 FROM tab1 AS cor0
----
-13
-4
-9

query I rowsort
SELECT - + col2 * + col0 - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT + cor0.col1 * col1 + + cor0.col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
1417
2080
670

query I rowsort
SELECT - 91 * col0 - col2 * 6 FROM tab2 AS cor0
----
-7254
-7417
-799

onlyif mysql # use DIV operator for integer division
query I rowsort label-1569
SELECT - col2 * - col0 + + cor0.col2 - + col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
216
3699
7770

skipif mysql # not compatible
query I rowsort label-1569
SELECT - col2 * - col0 + + cor0.col2 - + col0 / + col1 AS col2 FROM tab1 AS cor0
----
216
3699
7770

onlyif mysql # use DIV operator for integer division
query I rowsort label-1570
SELECT + + col0 DIV - col0 - 76 * col0 * col1 AS col0 FROM tab2 AS cor0
----
-102069
-16493
-349753

skipif mysql # not compatible
query I rowsort label-1570
SELECT + + col0 / - col0 - 76 * col0 * col1 AS col0 FROM tab2 AS cor0
----
-102069
-16493
-349753

skipif mysql # not compatible
query I rowsort
SELECT + col2 * CAST ( cor0.col1 AS REAL ) + col1 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-1572
SELECT + col0 DIV ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-1572
SELECT + col0 / ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT ALL + - col2 * 60 FROM tab0 AS cor0
----
-1980
-4920
-60

query I rowsort
SELECT col2 + + col2 * + ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 1 col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - 58 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-1577
SELECT ALL + col2 + - 43 DIV 48 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL + col2 + - 43 / 48 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col0 * 3 + - col0 AS col0 FROM tab0 cor0
----
178
48
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1579
SELECT + col1 * - CAST( 57 * cor0.col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
-421572
-472017
-536313

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1579
SELECT + col1 * - CAST ( 57 * cor0.col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
-421572
-472017
-536313

query I rowsort
SELECT ALL 50 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT col0 * + 37 FROM tab0 AS cor0
----
1295
3293
888

query I rowsort
SELECT + col1 + cor0.col2 * + col2 AS col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # use DIV operator for integer division
query I rowsort label-1584
SELECT cor0.col1 + col0 DIV cor0.col1 FROM tab2 AS cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-1584
SELECT cor0.col1 + col0 / cor0.col1 FROM tab2 AS cor0
----
21
31
60

query I rowsort
SELECT - + col1 * + ( col2 ) * + col0 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 48 AS REAL ) col2 FROM tab0 AS cor0
----
-48
-48
-48

onlyif mysql # use DIV operator for integer division
query I rowsort label-1587
SELECT + cor0.col0 DIV col0 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1587
SELECT + cor0.col0 / col0 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col2 * 63 * - col1 AS col0 FROM tab0
----
-178794
-470106
-6111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 44 ) + - cor0.col0 col0 FROM tab0 AS cor0
----
-133
-68
-79

query I rowsort
SELECT DISTINCT - col2 * - 91 AS col2 FROM tab1 AS cor0
----
4914
5187
8736

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab2, tab1 AS cor0
----
39

query I rowsort
SELECT DISTINCT 66 + - tab1.col0 + 13 FROM tab1, tab2 cor0
----
-1
15
76

query I rowsort
SELECT - ( col2 ) - - col0 * - 43 AS col2 FROM tab1
----
-183
-2809
-3536

query I rowsort
SELECT + 41 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1435
-3649
-984

query I rowsort
SELECT DISTINCT ( 79 ) FROM tab1
----
79

query I rowsort
SELECT - - 34 + - cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 04d2796372609ea2fbfb8d029ec877aa

query I rowsort
SELECT DISTINCT + - col2 * ( col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + 65 FROM tab2, tab1 AS cor0
----
65

query I rowsort
SELECT DISTINCT + col0 + - 31 * col0 FROM tab0
----
-1050
-2670
-720

query I rowsort
SELECT ALL - ( tab1.col1 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

onlyif mysql # use DIV operator for integer division
query I rowsort label-1601
SELECT col1 DIV col0 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1601
SELECT col1 / col0 FROM tab0 cor0
----
1
2
3

query I rowsort
SELECT - col1 * + ( col1 + - col1 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + - col0 * cor0.col2 AS col2 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT + 5 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1605
SELECT ALL - CAST( NULL AS SIGNED ) / 96 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL - CAST ( NULL AS INTEGER ) / 96 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1606
SELECT DISTINCT - - cor0.col2 DIV col0 FROM tab2 cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - - cor0.col2 / col0 FROM tab2 cor0
----
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1607
SELECT DISTINCT + 40 DIV - cor0.col0 FROM tab1 AS cor0
----
-13
0

skipif mysql # not compatible
query I rowsort label-1607
SELECT DISTINCT + 40 / - cor0.col0 FROM tab1 AS cor0
----
-13
0

query I rowsort
SELECT ALL + 41 + - col1 FROM tab1 AS cor0
----
15
28
31

query I rowsort
SELECT ALL + 5 * col1 - - ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
516
546
582

query I rowsort
SELECT DISTINCT - - 37 * col1 FROM tab1 AS cor0
----
370
481
962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * - col2 col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + 27 * + col2 + + col0 AS col1 FROM tab1 AS cor0
----
1461
1603
2672

query I rowsort
SELECT DISTINCT - + col2 * col1 * - 27 - + col0 FROM tab2 cor0
----
17363
22592
41340

query I rowsort
SELECT DISTINCT - col0 * - col1 AS col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + col0 + col1 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-1616
SELECT ALL col1 + col2 DIV + col1 FROM tab1 AS cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL col1 + col2 / + col1 FROM tab1 AS cor0
----
15
20
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-1617
SELECT DISTINCT - col1 + - col2 DIV col2 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT - col1 + - col2 / col2 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT DISTINCT - 37 + + col2 FROM tab0 AS cor0
----
-36
-4
45

query I rowsort
SELECT + ( col2 ) * - 77 FROM tab1 AS cor0
----
-4158
-4389
-7392

query I rowsort
SELECT DISTINCT - col1 * + 94 AS col1 FROM tab0 AS cor0
----
-8084
-8554
-9118

query I rowsort
SELECT - col1 * col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + + col2 + + col2 FROM tab1 AS cor0
----
1440
1512
684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1623
SELECT ALL cor0.col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + + col0 * - 34 + col0 * + col1 * col1 + + 9 AS col1 FROM tab0 AS cor0
----
176697
328134
733992

onlyif mysql # use DIV operator for integer division
query I rowsort label-1626
SELECT col2 + - col1 DIV - col1 AS col0 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-1626
SELECT col2 + - col1 / - col1 AS col0 FROM tab2
----
27
28
39

query I rowsort
SELECT DISTINCT col1 + 66 + - col0 AS col0 FROM tab2 cor0
----
4
47
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1628
SELECT DISTINCT - 7 + col2 DIV + col0 col2 FROM tab0 AS cor0
----
-6
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1628
SELECT DISTINCT - 7 + col2 / + col0 col2 FROM tab0 AS cor0
----
-6
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 90 + 58 col2 FROM tab1 AS cor0
----
148
148
148

query I rowsort
SELECT ( col1 ) * col1 * + col1 + col2 AS col1 FROM tab0 AS cor0
----
636089
753653
912674

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1631
SELECT CAST( NULL AS SIGNED ) * + 76 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1631
SELECT CAST ( NULL AS INTEGER ) * + 76 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * col1 + col2 - + col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL ( 86 ) AS col0 FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT ALL + 49 AS col1 FROM tab2 cor0
----
49
49
49

query I rowsort
SELECT DISTINCT ( col1 ) - col0 * ( col2 ) AS col2 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1636
SELECT ALL col2 + - col1 + - CAST( col1 AS SIGNED ) * + col0 col0 FROM tab0 AS cor0
----
-2117
-3491
-8108

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL col2 + - col1 + - CAST ( col1 AS INTEGER ) * + col0 col0 FROM tab0 AS cor0
----
-2117
-3491
-8108

query I rowsort
SELECT + col2 * col0 + - 4 * - 55 FROM tab0 cor0
----
1012
255
7518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 * - col2 col1 FROM tab0 AS cor0
----
-1848
-4592
-56

query I rowsort
SELECT ALL 69 + - col1 AS col2 FROM tab2
----
10
38
52

query I rowsort
SELECT col2 + - 64 * col1 - col2 * 36 FROM tab0
----
-6243
-6659
-8694

query I rowsort
SELECT ALL - tab0.col1 + + 9 AS col2 FROM tab0
----
-77
-82
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-1642
SELECT 50 DIV - 65 - col1 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-1642
SELECT 50 / - 65 - col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT + + col0 + + cor0.col0 * ( col1 ) - + col2 AS col2 FROM tab1 AS cor0
----
1024
27
647

query I rowsort
SELECT + cor0.col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ( col2 ) + - col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT col0 * 10 FROM tab2
----
70
780
790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 + + col0 col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT + tab2.col0 + + ( + col1 ) + - 11 * + col1 AS col2 FROM tab2
----
-303
-512
-91

query I rowsort
SELECT DISTINCT tab1.col2 * + col1 + + tab1.col1 * + col0 AS col0 FROM tab1
----
1210
1482
2288

query I rowsort
SELECT 59 * + col2 AS col2 FROM tab2
----
1534
1593
2242

onlyif mysql # use DIV operator for integer division
query I rowsort label-1651
SELECT DISTINCT - 22 DIV col1 AS col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT - 22 / col1 AS col1 FROM tab2
----
-1
0

query I rowsort
SELECT - tab0.col1 + - col2 + - col0 AS col2 FROM tab0
----
-133
-143
-262

query I rowsort
SELECT 51 + + col0 + col1 AS col1 FROM tab0
----
161
183
231

query I rowsort
SELECT col1 + col0 * + 68 AS col2 FROM tab2 AS cor0
----
507
5363
5389

query I rowsort
SELECT DISTINCT - + 5 FROM tab2 cor0
----
-5

query I rowsort
SELECT + - ( - col1 ) * + col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) * ( - 66 ) AS col1 FROM tab0 AS cor0
----
1584
2310
5874

query I rowsort
SELECT - tab0.col0 + + col1 * + 79 AS col0 FROM tab0
----
6770
7100
7628

query I rowsort
SELECT ALL 47 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT ALL 92 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT col2 * - tab0.col2 + + col2 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT + col2 * 81 + - col0 AS col0 FROM tab2 AS cor0
----
2028
2180
2999

query I rowsort
SELECT DISTINCT + + col1 + 91 AS col0 FROM tab2 cor0
----
108
122
150

query I rowsort
SELECT + + col2 + - col0 * + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT col0 * cor0.col2 + + col1 FROM tab2 cor0
----
2087
220
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1666
SELECT ALL CAST( NULL AS SIGNED ) + col1 * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL CAST ( NULL AS INTEGER ) + col1 * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - 94 + col2 + - col2 AS col0 FROM tab0 AS cor0
----
-94
-94
-94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1668
SELECT ALL + CAST( - 42 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL + CAST ( - 42 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + cor0.col0 AS REAL ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + + col2 * + col0 + - col0 * col0 * - col0 AS col2 FROM tab2 cor0
----
476580
496041
532

query I rowsort
SELECT ALL - col2 + + 41 AS col2 FROM tab2 AS cor0
----
14
15
3

query I rowsort
SELECT ALL + ( + 10 ) AS col0 FROM tab0 AS cor0
----
10
10
10

query I rowsort
SELECT DISTINCT col0 * - col0 + col0 * - col1 * + col0 AS col1 FROM tab2
----
-112338
-1568
-365040

query I rowsort
SELECT ALL col2 * - col1 - col0 * + col2 AS col2 FROM tab2
----
-1026
-3562
-3648

query I rowsort
SELECT - col2 * + tab0.col2 + - col0 FROM tab0
----
-1113
-36
-6813

query I rowsort
SELECT DISTINCT cor0.col1 * - col2 * col2 AS col0 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT - col1 * - col2 - - tab0.col1 FROM tab0 WHERE NOT - col0 BETWEEN NULL AND col1 * col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col1 + col0 * col1 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 + - col0 * col2 AS col2 FROM tab0
----
-132
-7389
-878

onlyif mysql # use DIV operator for integer division
query I rowsort label-1680
SELECT - col0 DIV + tab0.col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1680
SELECT - col0 / + tab0.col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - tab2.col0 * + col1 FROM tab2 WHERE NOT NULL NOT IN ( + col1 )
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT - tab0.col0 - col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT col0 * col0 + col0 * col2 AS col2 FROM tab0
----
1260
1368
15219

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1686
SELECT + tab0.col1 DIV - col1 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1686
SELECT + tab0.col1 / - col1 AS col2 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + tab0.col1 + - col1 col1 FROM tab0
----
86
91
97

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * + col1 ) = NULL
----

query I rowsort
SELECT + col0 + col0 + col1 * + col0 * - col2 AS col1 FROM tab1 WHERE NOT NULL IN ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE col1 / + col1 + col2 + col0 IN ( + col2 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + - col0 * + col0 col1 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT col1 * col0 * col2 + col2 FROM tab1
----
36537
4266
99936

query I rowsort
SELECT DISTINCT col1 * - col1 - cor0.col1 AS col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT + + col0 + + col0 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT + - cor0.col1 * + col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - col1 * + col0 + + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - cor0.col0 * col1 + + cor0.col2 AS col0 FROM tab2 cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 + + col0 + + col0 col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * - ( cor0.col0 ) + - cor0.col1 FROM tab2 AS cor0
----
-2087
-220
-3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-1701
SELECT + - col1 DIV + cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1701
SELECT + - col1 / + cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1702
SELECT col0 + CAST( 65 + cor0.col2 AS SIGNED ) * ( + col2 ) FROM tab2 AS cor0
----
2444
2491
3993

skipif mysql # not compatible
query I rowsort label-1702
SELECT col0 + CAST ( 65 + cor0.col2 AS INTEGER ) * ( + col2 ) FROM tab2 AS cor0
----
2444
2491
3993

onlyif mysql # use DIV operator for integer division
query I rowsort label-1703
SELECT DISTINCT + col0 DIV - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT + col0 / - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + cor0.col0 * + 55 FROM tab2 AS cor0
----
385
4290
4345

query I rowsort
SELECT + col2 * - 4 FROM tab0 AS cor0
----
-132
-328
-4

query I rowsort
SELECT col2 * col1 * - col2 + + col0 FROM tab0 AS cor0
----
-611795
-62
-93630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1707
SELECT ALL - - CAST( + 85 AS SIGNED ) + col1 FROM tab0 AS cor0
----
171
176
182

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL - - CAST ( + 85 AS INTEGER ) + col1 FROM tab0 AS cor0
----
171
176
182

query I rowsort
SELECT - ( ( col0 ) ) * ( + cor0.col0 ) FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + ( col2 ) * cor0.col2 * - ( col1 ) FROM tab2 cor0
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-1710
SELECT DISTINCT col2 DIV + 1 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT col2 / + 1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT - - col2 * 65 AS col0 FROM tab0 AS cor0
----
2145
5330
65

query I rowsort
SELECT col2 * - ( col0 + col2 ) * + col0 AS col2 FROM tab0
----
-1247958
-1260
-45144

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to ca91d1f523a87017f672304548e91a77

query I rowsort
SELECT + col1 * - col2 + + 57 + - col2 FROM tab0 cor0
----
-2814
-41
-7487

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col1 - 68 col1 FROM tab2 AS cor0
----
-10
-13
17

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 * col1 * + col0 > col1 * col2 * + col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 = ( NULL )
----

query I rowsort
SELECT - col2 - + col0 * col2 FROM tab2 WHERE ( NULL ) = ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1719
SELECT - col1 * col2 DIV col0 col1 FROM tab0
----
-118
-2
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1719
SELECT - col1 * col2 / col0 col1 FROM tab0
----
-118
-2
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1720
SELECT + 73 DIV - col2 AS col2 FROM tab0
----
-2
-73
0

skipif mysql # not compatible
query I rowsort label-1720
SELECT + 73 / - col2 AS col2 FROM tab0
----
-2
-73
0

query I rowsort
SELECT tab2.col2 * + col2 * - col0 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT 80 * col0 + + col2 - - col1 AS col0 FROM tab0 AS cor0
----
2039
2898
7293

query I rowsort
SELECT tab1.col2 * col1 * col2 FROM tab1
----
119808
32490
75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-1724
SELECT ALL col0 DIV + 70 + - col2 * col2 AS col0 FROM tab1
----
-2916
-3249
-9215

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL col0 / + 70 + - col2 * col2 AS col0 FROM tab1
----
-2916
-3249
-9215

query I rowsort
SELECT col0 - ( 98 ) FROM tab1 AS cor0
----
-18
-34
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-1726
SELECT ALL - col1 DIV col1 - 25 * + col0 FROM tab0 AS cor0
----
-2226
-601
-876

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL - col1 / col1 - 25 * + col0 FROM tab0 AS cor0
----
-2226
-601
-876

query I rowsort
SELECT - + col1 + + col1 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 * + col2 + + col2 * col1 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - - cor0.col0 * col1 + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + 64 + + col1 FROM tab2
----
123
81
95

query I rowsort
SELECT - 3 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT ALL + ( 35 ) * + col0 + - col1 * + col0 FROM tab1 AS cor0
----
1600
1760
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-1733
SELECT ALL - 74 + 22 DIV col0 FROM tab1 AS cor0
----
-67
-74
-74

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL - 74 + 22 / col0 FROM tab1 AS cor0
----
-67
-74
-74

query I rowsort
SELECT DISTINCT + 77 + col2 AS col1 FROM tab0 AS cor0
----
110
159
78

query I rowsort
SELECT 39 + ( col2 ) FROM tab2 AS cor0
----
65
66
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 - + col0 col1 FROM tab0
----
0
7209
768

query I rowsort
SELECT DISTINCT - 40 - col0 AS col2 FROM tab2
----
-118
-119
-47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1738
SELECT ALL col2 * col0 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL col2 * col0 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) * + col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT + + col1 * ( 63 ) * - col2 FROM tab1 AS cor0
----
-35910
-78624
-88452

query I rowsort
SELECT DISTINCT col1 * 41 - - col0 FROM tab0 AS cor0
----
3550
3820
4012

query I rowsort
SELECT - col0 + 28 AS col1 FROM tab0 cor0
----
-61
-7
4

query I rowsort
SELECT DISTINCT - + col1 * - cor0.col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT col1 - ( + col1 ) AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1745
SELECT ALL - col0 * col0 DIV 64 col0 FROM tab0 AS cor0
----
-123
-19
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL - col0 * col0 / 64 col0 FROM tab0 AS cor0
----
-123
-19
-9

query I rowsort
SELECT + col1 * + 46 + - col1 AS col1 FROM tab0 cor0
----
3870
4095
4365

query I rowsort
SELECT DISTINCT + cor0.col0 * + ( col1 ) AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - + col1 * - cor0.col2 - - col0 * col0 * col1 FROM tab0 AS cor0
----
118922
52374
728273

query I rowsort
SELECT ALL - col0 + + 31 + col2 AS col2 FROM tab1 cor0
----
24
47
82

query I rowsort
SELECT DISTINCT - 56 - col2 FROM tab0
----
-138
-57
-89

query I rowsort
SELECT DISTINCT 9 - + col0 FROM tab0
----
-15
-26
-80

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1753
SELECT - 39 * col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1753
SELECT - 39 * col1 * CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 77 AS col2 FROM tab1
----
77

query I rowsort
SELECT DISTINCT + + cor0.col1 * col2 + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT + col0 * col0 + col2 + col2 FROM tab2 AS cor0
----
103
6136
6317

onlyif mysql # use DIV operator for integer division
query I rowsort label-1757
SELECT col0 + col1 * col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
189
248
9444

skipif mysql # not compatible
query I rowsort label-1757
SELECT col0 + col1 * col1 / + col2 AS col2 FROM tab0 AS cor0
----
189
248
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-1758
SELECT cor0.col1 - - col2 DIV col1 AS col1 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1758
SELECT cor0.col1 - - col2 / col1 AS col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 * col0 AS col0 FROM tab2 cor0
----
1323
158184
237158

query I rowsort
SELECT - col2 + col2 * col2 + col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - ( + col1 ) * col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - col1 + + col1 + + col0 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - tab2.col1 + + col0 * col2 AS col2 FROM tab2
----
158
1969
2985

query I rowsort
SELECT DISTINCT col2 + col0 + col2 FROM tab2
----
130
155
61

query I rowsort
SELECT ALL col1 * - col2 + + col1 * - col1 AS col1 FROM tab0
----
-10234
-15743
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col2 * col0 + - col2 col0 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT - col2 + col1 AS col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + col1 + - col2 * tab2.col2 AS col1 FROM tab2
----
-1427
-617
-698

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= NULL AND NULL IN ( tab2.col2 / tab2.col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + + col1 + + col0 col2 FROM tab2
----
-1348
-539
-691

query I rowsort
SELECT ALL col0 * + col1 + + tab1.col0 AS col2 FROM tab1
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 * tab2.col0 col2 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL + cor0.col2 * col0 + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL + + col1 * cor0.col1 AS col2 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT ALL 74 + col2 FROM tab2 AS cor0
----
100
101
112

query I rowsort
SELECT - 70 + - col1 * - col2 FROM tab0 AS cor0
----
27
2768
7392

query I rowsort
SELECT ( + 26 ) * - col2 + - col0 * - col0 FROM tab1
----
-1395
2614
3904

onlyif mysql # use DIV operator for integer division
query I rowsort label-1778
SELECT ALL tab0.col0 DIV col2 AS col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL tab0.col0 / col2 AS col2 FROM tab0
----
0
1
35

query I rowsort
SELECT 92 * 51 * col2 AS col1 FROM tab2
----
121992
126684
178296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1780
SELECT CAST( 42 AS SIGNED ) FROM tab2
----
42
42
42

skipif mysql # not compatible
query I rowsort label-1780
SELECT CAST ( 42 AS INTEGER ) FROM tab2
----
42
42
42

query I rowsort
SELECT - 35 * col1 + col2 AS col0 FROM tab2
----
-1058
-2039
-557

query I rowsort
SELECT + cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT + + col1 * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT 80 * + col2 FROM tab2 AS cor0
----
2080
2160
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-1785
SELECT + cor0.col1 DIV + cor0.col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1785
SELECT + cor0.col1 / + cor0.col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT - 88 * col1 * col1 FROM tab1 AS cor0
----
-14872
-59488
-8800

query I rowsort
SELECT + ( - col2 ) * col1 + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-1788
SELECT + - cor0.col2 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1788
SELECT + - cor0.col2 / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( - col2 + + 47 * + 58 ) AS col0 FROM tab0
----
2644
2693
2725

query I rowsort
SELECT ALL + col2 * + col0 + col2 + + col2 * col1 FROM tab1 AS cor0
----
1620
4275
9024

query I rowsort
SELECT + - col1 * 72 FROM tab2 AS cor0
----
-1224
-2232
-4248

query I rowsort
SELECT DISTINCT + - col2 * + cor0.col0 * col0 - col2 AS col1 FROM tab1 cor0
----
-233529
-540
-614496

onlyif mysql # use DIV operator for integer division
query I rowsort label-1793
SELECT DISTINCT 21 + - col0 DIV 42 FROM tab1
----
20
21

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT 21 + - col0 / 42 FROM tab1
----
20
21

query I rowsort
SELECT ALL 12 FROM tab2, tab1 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to c60b9398e29d6382e0d15363f9325811

query I rowsort
SELECT - 39 * + cor0.col2 + ( - col2 ) * col0 FROM tab1 AS cor0
----
-11424
-2268
-5871

onlyif mysql # use DIV operator for integer division
query I rowsort label-1796
SELECT - + col2 DIV col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1796
SELECT - + col2 / col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT ( - col1 ) + - col2 - col0 AS col1 FROM tab0 AS cor0
----
-133
-143
-262

query I rowsort
SELECT - 64 * + 71 * col1 + col1 - + cor0.col2 FROM tab2 cor0
----
-140860
-268063
-77269

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 * - 56 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 28a9d0ce91a832ad7576a5e04111affb

query I rowsort
SELECT ALL col2 * - col0 + tab1.col1 + col2 AS col1 FROM tab1
----
-3581
-7571
-82

query I rowsort
SELECT + 19 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
115
73
76

query I rowsort
SELECT - col0 * - 52 + col1 * + ( + 27 ) - col0 FROM tab0 AS cor0
----
3546
4404
6996

onlyif mysql # use DIV operator for integer division
query I rowsort label-1803
SELECT ALL col2 DIV 30 + col2 * - col2 FROM tab0 cor0
----
-1
-1088
-6722

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL col2 / 30 + col2 * - col2 FROM tab0 cor0
----
-1
-1088
-6722

query I rowsort
SELECT + 89 + + ( cor0.col1 ) FROM tab1 AS cor0
----
102
115
99

query I rowsort
SELECT - 49 + col2 FROM tab2 AS cor0
----
-11
-22
-23

query I rowsort
SELECT DISTINCT + tab0.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
24
35
89

query I rowsort
SELECT - col0 + col1 - tab0.col1 AS col0 FROM tab0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1808
SELECT 5 * tab2.col2 + col0 - CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1808
SELECT 5 * tab2.col2 + col0 - CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) + col2 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT + ( 1 ) * col0 - + ( col1 ) FROM tab0
----
-2
-62

query I rowsort
SELECT 54 * col1 + col1 FROM tab0 AS cor0
----
4730
5005
5335

onlyif mysql # use DIV operator for integer division
query I rowsort label-1812
SELECT col1 - col0 DIV - col2 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-1812
SELECT col1 - col0 / - col2 FROM tab0 AS cor0
----
132
86
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1813
SELECT + 41 + + col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1813
SELECT + 41 + + col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + col2 + 68 FROM tab2
----
123
126
153

query I rowsort
SELECT ALL - + 46 * - col1 FROM tab0 AS cor0
----
3956
4186
4462

query I rowsort
SELECT + col1 * + cor0.col1 + col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT + col2 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL + - ( - col1 ) * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - 68 + col0 FROM tab0 cor0
----
-33
-44
21

query I rowsort
SELECT DISTINCT + cor0.col0 + + cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - 70 * - col2 + col1 FROM tab2 AS cor0
----
1879
1921
2677

onlyif mysql # use DIV operator for integer division
query I rowsort label-1822
SELECT DISTINCT - col1 DIV cor0.col1 AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT - col1 / cor0.col1 AS col0 FROM tab0 cor0
----
-1

query I rowsort
SELECT ALL - + 97 * col1 FROM tab1 AS cor0
----
-1261
-2522
-970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1824
SELECT - col1 * ( + col2 + col2 ) * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1824
SELECT - col1 * ( + col2 + col2 ) * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 + 68 FROM tab2 AS cor0
----
106
94
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1826
SELECT col0 + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-1826
SELECT col0 + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + cor0.col2 + - 11 FROM tab1 AS cor0
----
43
46
85

query I rowsort
SELECT DISTINCT col2 * + 80 + col0 AS col1 FROM tab1 AS cor0
----
4323
4624
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-1829
SELECT DISTINCT - + 93 - 63 DIV col0 AS col0 FROM tab1 cor0
----
-114
-93

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT - + 93 - 63 / col0 AS col0 FROM tab1 cor0
----
-114
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1830
SELECT DISTINCT CAST( col1 AS SIGNED ) + col2 * + ( col1 ) + + col0 * + col2 AS col2 FROM tab2 AS cor0
----
1057
3621
3665

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT CAST ( col1 AS INTEGER ) + col2 * + ( col1 ) + + col0 * + col2 AS col2 FROM tab2 AS cor0
----
1057
3621
3665

query I rowsort
SELECT ALL - - ( + col2 ) - col1 AS col0 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - cor0.col0 col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col0 * col2 + col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT - col2 + + 78 AS col1 FROM tab0 AS cor0
----
-4
45
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 - + 3 col1 FROM tab1 AS cor0
----
-1251
-1407
-573

query I rowsort
SELECT + + col0 + + 63 - col1 AS col0 FROM tab0 AS cor0
----
1
1
61

query I rowsort
SELECT - col0 + + ( col0 ) - col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1838
SELECT ALL - col0 DIV - 75 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL - col0 / - 75 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT col1 + col0 * + col1 AS col0 FROM tab2
----
1360
248
4661

query I rowsort
SELECT 54 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT ALL + col0 + ( + cor0.col1 ) * - col2 + - col2 * + 61 FROM tab1 AS cor0
----
-3983
-4695
-7024

onlyif mysql # use DIV operator for integer division
query I rowsort label-1842
SELECT ALL - cor0.col2 DIV 64 + 77 * - col1 AS col2 FROM tab1 AS cor0
----
-1002
-2002
-770

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL - cor0.col2 / 64 + 77 * - col1 AS col2 FROM tab1 AS cor0
----
-1002
-2002
-770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * ( col2 ) - - col1 col1 FROM tab1 cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT - col1 + - col1 * - col0 FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-1845
SELECT DISTINCT + - col2 + - col2 DIV + 17 AS col1 FROM tab1 cor0
----
-101
-57
-60

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT + - col2 + - col2 / + 17 AS col1 FROM tab1 cor0
----
-101
-57
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1846
SELECT - col2 + + CAST( NULL AS SIGNED ) + col1 * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1846
SELECT - col2 + + CAST ( NULL AS INTEGER ) + col1 * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 91 FROM tab0, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT ALL - - ( col2 ) + cor0.col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ( - 52 ) - tab0.col0 FROM tab0
----
-141
-76
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-1850
SELECT 59 * col1 DIV - 37 AS col2 FROM tab2 AS cor0
----
-27
-49
-94

skipif mysql # not compatible
query I rowsort label-1850
SELECT 59 * col1 / - 37 AS col2 FROM tab2 AS cor0
----
-27
-49
-94

query I rowsort
SELECT DISTINCT - col2 * col0 * col2 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-1852
SELECT - col2 * + col0 + 94 DIV col1 AS col1 FROM tab1
----
-159
-3639
-7673

skipif mysql # not compatible
query I rowsort label-1852
SELECT - col2 * + col0 + 94 / col1 AS col1 FROM tab1
----
-159
-3639
-7673

query I rowsort
SELECT ALL - + cor0.col0 + - cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-1854
SELECT DISTINCT + col2 * - col2 + - col2 DIV 61 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9217

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT + col2 * - col2 + - col2 / 61 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9217

query I rowsort
SELECT 95 + - tab0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 08a76f1197614cf7234dcf4257529f90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1856
SELECT ALL - col2 + - col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL - col2 + - col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col2 FROM tab2 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ALL + col1 * + col2 + + ( 71 ) FROM tab2 cor0
----
1605
717
908

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + col1 col2 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + - 96 * - cor0.col2 FROM tab1 AS cor0
----
5184
5472
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-1861
SELECT + cor0.col0 DIV + cor0.col1 AS col2 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-1861
SELECT + cor0.col0 / + cor0.col1 AS col2 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT ALL + 40 * + col1 AS col0 FROM tab2 AS cor0
----
1240
2360
680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - col0 col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + cor0.col1 * ( 80 * - cor0.col1 ) FROM tab2 AS cor0
----
-23120
-278480
-76880

query I rowsort
SELECT ALL - col0 * cor0.col2 + + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + cor0.col1 col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1867
SELECT cor0.col1 / - cor1.col2 + CAST( NULL AS SIGNED ) col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1867
SELECT cor0.col1 / - cor1.col2 + CAST ( NULL AS INTEGER ) col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1868
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) + - ( - col0 ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) + - ( - col0 ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT ( - col0 ) * cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - ( col0 ) * - cor0.col1 - 5 FROM tab1 cor0
----
1035
635
73

query I rowsort
SELECT ALL - + 70 FROM tab1 cor0
----
-70
-70
-70

query I rowsort
SELECT - 50 + - col0 * - cor0.col2 * + col2 AS col0 FROM tab1 AS cor0
----
207886
737230
8698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1873
SELECT DISTINCT + CAST( + ( - col1 ) AS SIGNED ) * + ( col1 ) AS col2 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT + CAST ( + ( - col1 ) AS INTEGER ) * + ( col1 ) AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT col2 * + 91 + + col2 + ( - cor0.col0 ) FROM tab2 AS cor0
----
2314
2477
3417

onlyif mysql # use DIV operator for integer division
query I rowsort label-1875
SELECT ALL col2 + - col0 DIV - col0 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL col2 + - col0 / - col0 FROM tab2
----
27
28
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 * cor0.col2 col0 FROM tab0 AS cor0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-1877
SELECT + col0 * + col1 + col2 DIV ( - col2 ) FROM tab1
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-1877
SELECT + col0 * + col1 + col2 / ( - col2 ) FROM tab1
----
1039
639
77

query I rowsort
SELECT - 31 + - 54 AS col0 FROM tab1
----
-85
-85
-85

query I rowsort
SELECT ALL + col1 * - 21 AS col2 FROM tab1
----
-210
-273
-546

query I rowsort
SELECT + 16 + + col1 * + col1 FROM tab1
----
116
185
692

query I rowsort
SELECT DISTINCT cor0.col0 + + tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 74faab35697b5ea1753f372919d97975

query I rowsort
SELECT - col2 - 25 FROM tab0 AS cor0
----
-107
-26
-58

query I rowsort
SELECT - - cor0.col0 - 45 FROM tab1 AS cor0
----
-42
19
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-1884
SELECT - col1 DIV + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-1884
SELECT - col1 / + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT tab1.col0 * + 11 * - 21 FROM tab1
----
-14784
-18480
-693

onlyif mysql # use DIV operator for integer division
query I rowsort label-1886
SELECT + 43 DIV + col1 AS col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1886
SELECT + 43 / + col1 AS col1 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT - + cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT col1 + + col2 * col0 AS col2 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-1889
SELECT ALL - - cor0.col2 DIV col0 AS col2 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL - - cor0.col2 / col0 AS col2 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT - tab2.col2 + - 17 AS col0 FROM tab2
----
-43
-44
-55

query I rowsort
SELECT DISTINCT 21 FROM tab1 cor0
----
21

query I rowsort
SELECT + 19 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT + 89 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL - 18 AS col1 FROM tab1
----
-18
-18
-18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1895
SELECT DISTINCT - cor0.col0 / CAST( NULL AS SIGNED ) + + col0 * col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT - cor0.col0 / CAST ( NULL AS INTEGER ) + + col0 * col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * col2 + col1 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1897
SELECT + col1 * col0 / + CAST( NULL AS SIGNED ) - + 96 * tab2.col0 * tab2.col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1897
SELECT + col1 * col0 / + CAST ( NULL AS INTEGER ) - + 96 * tab2.col0 * tab2.col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 - + 82 FROM tab0
----
15
4
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 45 col2 FROM tab2 AS cor0
----
104
62
76

query I rowsort
SELECT - + col1 + - col2 * + ( col0 + + col2 ) FROM tab0 AS cor0
----
-133
-14113
-1967

query I rowsort
SELECT DISTINCT - ( + col1 ) * tab0.col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + ( col1 ) + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ( - ( col0 ) ) * cor0.col1 + - col2 * col2 AS col2 FROM tab2 cor0
----
-2787
-5278
-946

query I rowsort
SELECT 60 * col2 AS col2 FROM tab2
----
1560
1620
2280

query I rowsort
SELECT ALL - 58 + - tab0.col2 * - col1 FROM tab0
----
2780
39
7404

query I rowsort
SELECT + 62 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT ALL + + 9 * col1 + - col0 * col1 FROM tab2 AS cor0
----
-1190
-4071
62

query I rowsort
SELECT col0 * + col1 * + cor0.col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT col1 + + cor0.col1 * + col1 FROM tab1 cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * + col0 col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + + ( ( - cor0.col1 ) ) + col1 * 43 FROM tab0 AS cor0
----
3612
3822
4074

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1912
SELECT + CAST( NULL AS DECIMAL ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1912
SELECT + CAST ( NULL AS REAL ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 * 26 col0 FROM tab0 AS cor0
----
494

query I rowsort
SELECT ALL - + cor0.col1 + - 14 AS col2 FROM tab0 AS cor0
----
-100
-105
-111

query I rowsort
SELECT + - 67 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-2211
-5494
-67

query I rowsort
SELECT DISTINCT + + col1 * col2 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - - col1 + + col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + cor0.col1 + - 20 * col2 FROM tab1 AS cor0
----
-1054
-1130
-1907

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 * col1 + col2 * CAST ( col2 AS REAL ) - + col2 FROM tab0 AS cor0
----
14104
3894
97

query I rowsort
SELECT DISTINCT + col1 * col2 - + cor0.col0 AS col1 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT col1 * 38 AS col2 FROM tab0 AS cor0
----
3268
3458
3686

onlyif mysql # use DIV operator for integer division
query I rowsort label-1922
SELECT DISTINCT - col0 DIV - 37 + col0 AS col0 FROM tab1 cor0
----
3
65
82

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT - col0 / - 37 + col0 AS col0 FROM tab1 cor0
----
3
65
82

query I rowsort
SELECT ALL - col1 - col2 * - ( + ( col2 ) * - ( cor0.col2 ) + col1 ) AS col1 FROM tab1 cor0
----
-156086
-184633
-883501

onlyif mysql # use DIV operator for integer division
query I rowsort label-1924
SELECT DISTINCT col0 DIV col0 - col2 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT col0 / col0 - col2 FROM tab2 AS cor0
----
-25
-26
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-1925
SELECT DISTINCT + col2 DIV 22 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT + col2 / 22 AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT col0 * col0 + - 81 + - col0 FROM tab2 cor0
----
-39
5925
6081

query I rowsort
SELECT DISTINCT col2 + - 24 * col1 AS col0 FROM tab0 AS cor0
----
-2031
-2102
-2327

query I rowsort
SELECT + ( 40 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1929
SELECT tab0.col0 + - tab0.col0 DIV - col0 + col1 AS col1 FROM tab0
----
111
133
181

skipif mysql # not compatible
query I rowsort label-1929
SELECT tab0.col0 + - tab0.col0 / - col0 + col1 AS col1 FROM tab0
----
111
133
181

query I rowsort
SELECT - 64 - - col2 AS col2 FROM tab0
----
-31
-63
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-1931
SELECT DISTINCT - col0 DIV + ( tab1.col2 ) FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT - col0 / + ( tab1.col2 ) FROM tab1
----
-1
0

query I rowsort
SELECT ALL + col2 * ( - col0 ) FROM tab1
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1933
SELECT DISTINCT CAST( 85 AS SIGNED ) AS col0 FROM tab0, tab0 cor0
----
85

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT CAST ( 85 AS INTEGER ) AS col0 FROM tab0, tab0 cor0
----
85

query I rowsort
SELECT ALL + col2 * cor0.col0 + - col0 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT col2 * + 80 * - 45 FROM tab2
----
-136800
-93600
-97200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 8 col2 FROM tab1
----
432
456
768

query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab0, tab1 AS cor0
----
2

query I rowsort
SELECT - 71 * col1 + - col0 FROM tab1
----
-1003
-1849
-774

query I rowsort
SELECT ALL + - ( 94 ) AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f

query I rowsort
SELECT + 29 * 26 FROM tab1 AS cor0
----
754
754
754

query I rowsort
SELECT col2 + - col1 * - col1 AS col0 FROM tab0 cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT - - cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - 88 + + col0 * 31 FROM tab1
----
1896
2392
5

query I rowsort
SELECT ALL col1 * - col2 + col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT 23 * col0 * + col1 + + col0 * + col2 FROM tab0
----
193575
48264
78120

query I rowsort
SELECT + - 77 * + cor0.col0 - + col0 AS col1 FROM tab2 AS cor0
----
-546
-6084
-6162

query I rowsort
SELECT col0 * col0 - - cor0.col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT - col1 * - col1 + - 36 * col2 FROM tab2 cor0
----
-1079
-11
2545

onlyif mysql # use DIV operator for integer division
query I rowsort label-1949
SELECT DISTINCT - col1 + col1 DIV 64 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT - col1 + col1 / 64 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + col2 - + col0 AS col1 FROM tab1 cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-1951
SELECT - cor0.col1 + + col0 DIV ( col1 ) FROM tab2 AS cor0
----
-13
-31
-58

skipif mysql # not compatible
query I rowsort label-1951
SELECT - cor0.col1 + + col0 / ( col1 ) FROM tab2 AS cor0
----
-13
-31
-58

query I rowsort
SELECT 22 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT DISTINCT + 41 + cor0.col2 * col2 * + ( + col1 + col2 ) FROM tab1 AS cor0
----
1004585
217724
233321

query I rowsort
SELECT ALL - + col0 + 93 + col2 FROM tab0 AS cor0
----
102
59
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1955
SELECT DISTINCT - cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT - cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT col0 * cor0.col0 + col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL cor0.col1 + col1 * col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT + cor0.col2 * 39 - + col0 * col1 AS col1 FROM tab2 AS cor0
----
-3588
139
836

onlyif mysql # use DIV operator for integer division
query I rowsort label-1959
SELECT + col2 DIV - col2 + col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-1959
SELECT + col2 / - col2 + col1 FROM tab1 AS cor0
----
12
25
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1960
SELECT + col2 + ( - col2 ) * col1 * CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-119712
-32433
-75762

skipif mysql # not compatible
query I rowsort label-1960
SELECT + col2 + ( - col2 ) * col1 * CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-119712
-32433
-75762

query I rowsort
SELECT DISTINCT - + col1 * - 24 AS col0 FROM tab2 AS cor0
----
1416
408
744

query I rowsort
SELECT DISTINCT - cor0.col0 * 49 FROM tab2 AS cor0
----
-343
-3822
-3871

query I rowsort
SELECT ALL cor0.col2 + - col0 AS col1 FROM tab1 cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 73 + col1 col1 FROM tab0
----
13
18
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT + 57 * - tab0.col0 + + ( - col0 + + col2 ) AS col1 FROM tab0
----
-1359
-2029
-5080

query I rowsort
SELECT + + col1 * - col1 * 37 AS col2 FROM tab2 AS cor0
----
-10693
-128797
-35557

query I rowsort
SELECT - col2 * - 64 AS col0 FROM tab0 cor0
----
2112
5248
64

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 * + col0 IN ( col2 ) OR cor0.col2 * col0 >= col2 * col0 * + col2
----
10
13
26

query I rowsort
SELECT + cor0.col2 + - cor0.col2 * col2 + col0 AS col1 FROM tab1 AS cor0
----
-2859
-3128
-9040

query I rowsort
SELECT ALL - col0 * col0 + + col0 - tab1.col2 AS col2 FROM tab1
----
-4089
-60
-6416

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 - col1 * col2 NOT IN ( col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT - col0 * col2 - - col1 FROM tab0 AS cor0
----
-706
-7207
62

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col0 + - col2 )
----

query I rowsort
SELECT cor0.col0 + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 43cd4d6bf46fb9ce15caf369cb36598e

onlyif mysql # use DIV operator for integer division
query I rowsort label-1976
SELECT DISTINCT + col0 * + col2 - + col0 DIV + cor0.col0 FROM tab1 AS cor0
----
161
3647
7679

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT + col0 * + col2 - + col0 / + cor0.col0 FROM tab1 AS cor0
----
161
3647
7679

query I rowsort
SELECT - 83 - col1 * + col1 * col1 AS col0 FROM tab2
----
-205462
-29874
-4996

query I rowsort
SELECT - 73 + - col1 FROM tab2
----
-104
-132
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1979
SELECT DISTINCT col2 * col1 DIV 63 AS col0 FROM tab1 cor0
----
19
22
9

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT col2 * col1 / 63 AS col0 FROM tab1 cor0
----
19
22
9

query I rowsort
SELECT ALL 42 * col1 FROM tab2 AS cor0
----
1302
2478
714

query I rowsort
SELECT DISTINCT col0 * - col2 + + 26 * - col1 AS col2 FROM tab2 AS cor0
----
-3444
-3562
-995

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1982
SELECT ALL - ( col1 ) * CAST( col0 * + col1 AS SIGNED ) AS col0 FROM tab2
----
-22831
-271518
-6727

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL - ( col1 ) * CAST ( col0 * + col1 AS INTEGER ) AS col0 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT ALL - cor0.col0 * col1 * col0 + - col2 AS col2 FROM tab0 cor0
----
-118826
-49569
-720893

query I rowsort
SELECT DISTINCT + - col2 + - 62 * col0 * - col1 + 44 FROM tab2 AS cor0
----
13471
285342
83272

query I rowsort
SELECT DISTINCT - col0 * col2 - + col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL col0 + + col0 + - col0 * - col2 FROM tab0 AS cor0
----
105
7476
840

query I rowsort
SELECT col1 * - col2 + col1 * + col1 * col2 FROM tab2
----
10336
25110
88972

query I rowsort
SELECT tab2.col0 * - col0 + + tab2.col1 FROM tab2
----
-18
-6025
-6224

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col2 * col2 * + col1 col2 FROM tab2
----
-22572
-24510
-39858

onlyif mysql # use DIV operator for integer division
query I rowsort label-1991
SELECT DISTINCT - col2 + + col2 DIV + col1 AS col0 FROM tab1
----
-52
-89

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT - col2 + + col2 / + col1 AS col0 FROM tab1
----
-52
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 / + col1 - col0 col2 FROM tab2 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) NOT IN ( - col2 * + col0 )
----

query I rowsort
SELECT ALL col2 * col0 - + col1 AS col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT DISTINCT - tab1.col0 + - tab1.col2 AS col1 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT col0 + col1 * + col1 + tab1.col2 * col2 FROM tab1
----
3413
3595
9465

onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT col1 * col0 + - col2 + + tab1.col1 DIV col0 FROM tab1
----
32
583
944

skipif mysql # not compatible
query I rowsort label-1997
SELECT col1 * col0 + - col2 + + tab1.col1 / col0 FROM tab1
----
32
583
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + tab2.col0 * tab2.col2 + col0 * - col2 col1 FROM tab2
----
26
27
38

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT ( + col1 * col0 ) = NULL
----

query I rowsort
SELECT col1 * - col1 * + col1 AS col2 FROM tab2
----
-205379
-29791
-4913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 * col0 * + col1 col0 FROM tab2
----
119652
51034
5859

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( col0 * col0 ) AND - col1 + + col0
----

query I rowsort
SELECT col0 * - col2 + - col0 AS col0 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT tab0.col2 * - tab0.col0 * + col1 AS col0 FROM tab0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-2005
SELECT + tab2.col1 * col2 DIV col1 col1 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2005
SELECT + tab2.col1 * col2 / col1 col1 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL col2 * - col0 + + tab1.col2 FROM tab1
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2007
SELECT DISTINCT - col0 - + col1 DIV + col0 FROM tab1
----
-11
-64
-80

skipif mysql # not compatible
query I rowsort label-2007
SELECT DISTINCT - col0 - + col1 / + col0 FROM tab1
----
-11
-64
-80

query I rowsort
SELECT col1 + tab1.col0 * col1 - + col0 * - col2 * tab1.col0 FROM tab1
----
234122
590
615453

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 col0 FROM tab2
----
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2010
SELECT ALL col2 * col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL col2 * col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 21 * col0 AS col1 FROM tab2 AS cor0
----
147
1638
1659

query I rowsort
SELECT - - ( col0 ) * + 97 * col0 + + col0 + col1 * + cor0.col1 FROM tab1 AS cor0
----
1552
397476
621049

onlyif mysql # use DIV operator for integer division
query I rowsort label-2013
SELECT DISTINCT + + col2 DIV col1 + col2 + + 24 col0 FROM tab0 AS cor0
----
106
25
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2013
SELECT DISTINCT + + col2 / col1 + col2 + + 24 col0 FROM tab0 AS cor0
----
106
25
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + - 72 + + col1 col2 FROM tab0 AS cor0
----
101
26
47

query I rowsort
SELECT 81 * + col2 * + col2 AS col1 FROM tab0
----
544644
81
88209

query I rowsort
SELECT DISTINCT + + col2 + + 25 FROM tab0 cor0
----
107
26
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2017
SELECT + col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT + col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col2 + 92 * 46 * - col0 FROM tab1 AS cor0
----
-12642
-270791
-338464

query I rowsort
SELECT DISTINCT - col0 * + 95 FROM tab1 AS cor0
----
-285
-6080
-7600

query I rowsort
SELECT ALL cor0.col1 * + 3 * 6 AS col2 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT ALL - col2 + - 16 FROM tab0 AS cor0
----
-17
-49
-98

query I rowsort
SELECT DISTINCT - - col2 + 91 AS col0 FROM tab0 AS cor0
----
124
173
92

query I rowsort
SELECT + col2 + - 81 AS col2 FROM tab1
----
-24
-27
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-2024
SELECT cor0.col1 DIV + CAST( - 72 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2024
SELECT cor0.col1 / + CAST ( - 72 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col2 + + col2 AS col0 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2026
SELECT col0 * CAST( + cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-2026
SELECT col0 * CAST ( + cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col2 * 46 * ( col2 + col0 ) FROM tab0 AS cor0
----
1656
645012
86526

query I rowsort
SELECT DISTINCT - col1 + - ( - col0 + + col1 ) * + col0 AS col1 FROM tab1 AS cor0
----
-95
3446
5347

query I rowsort
SELECT DISTINCT - cor0.col2 * + 61 * + col1 AS col1 FROM tab1 AS cor0
----
-34770
-76128
-85644

query I rowsort
SELECT - + col1 - + col2 * col1 AS col0 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT ALL + - col1 + - col1 + - col1 AS col1 FROM tab0 cor0
----
-258
-273
-291

query I rowsort
SELECT DISTINCT - - col2 - - cor0.col1 * - col0 AS col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - col2 * - ( - col0 * - ( 8 ) ) FROM tab0 AS cor0
----
280
58384
6336

query I rowsort
SELECT ALL col1 + 52 FROM tab2 AS cor0
----
111
69
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * + col0 * + col1 + col0 col0 FROM tab2
----
106176
1526
359034

query I rowsort
SELECT 64 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to 9bd8c7417aea89812d57dc6142310b3f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2037
SELECT DISTINCT tab2.col1 DIV 62 + col2 AS col0 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT tab2.col1 / 62 + col2 AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT ( col1 ) - col0 * - ( 14 * - col1 ) FROM tab2 AS cor0
----
-18785
-3007
-64369

onlyif mysql # use DIV operator for integer division
query I rowsort label-2039
SELECT ALL 39 DIV col0 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL 39 / col0 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2040
SELECT ALL CAST( NULL AS SIGNED ) + - col1 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 49 + + col0 FROM tab2 AS cor0
----
127
128
56

query I rowsort
SELECT - - col1 * + col1 + + col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL - col0 - 60 FROM tab1 AS cor0
----
-124
-140
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2044
SELECT DISTINCT + - col2 DIV - 64 + col2 + 6 * + col1 FROM tab0 AS cor0
----
549
583
629

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT + - col2 / - 64 + col2 + 6 * + col1 FROM tab0 AS cor0
----
549
583
629

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2045
SELECT + + CAST( NULL AS SIGNED ) / - 50 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT + + CAST ( NULL AS INTEGER ) / - 50 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col1 + 94 * - col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
695138
778323
884349

query I rowsort
SELECT ALL - 49 * col2 FROM tab2 AS cor0
----
-1274
-1323
-1862

query I rowsort
SELECT - ( + 46 ) - + col2 FROM tab0 AS cor0
----
-128
-47
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2049
SELECT DISTINCT col2 DIV 5 FROM tab2 cor0
----
5
7

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT col2 / 5 FROM tab2 cor0
----
5
7

query I rowsort
SELECT - ( + col0 ) * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2051
SELECT - ( 8 ) * col2 + col0 + cor0.col1 DIV - col0 FROM tab2 AS cor0
----
-130
-213
-225

skipif mysql # not compatible
query I rowsort label-2051
SELECT - ( 8 ) * col2 + col0 + cor0.col1 / - col0 FROM tab2 AS cor0
----
-130
-213
-225

query I rowsort
SELECT DISTINCT - - 64 * - col1 AS col2 FROM tab1 AS cor0
----
-1664
-640
-832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + col2 col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT col2 + + 68 AS col2 FROM tab0
----
101
150
69

query I rowsort
SELECT ( + col2 ) * - col1 - col1 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT + ( - col2 ) + col0 * + col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT - + 86 + + col0 * - col0 FROM tab0 AS cor0
----
-1311
-662
-8007

query I rowsort
SELECT DISTINCT ( col1 ) + - col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL + 14 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
238
434
826

onlyif mysql # use DIV operator for integer division
query I rowsort label-2060
SELECT - - 35 DIV col1 + + col0 FROM tab1 AS cor0
----
4
67
82

skipif mysql # not compatible
query I rowsort label-2060
SELECT - - 35 / col1 + + col0 FROM tab1 AS cor0
----
4
67
82

query I rowsort
SELECT ( + cor0.col1 ) + + col2 * col1 * col1 FROM tab2 AS cor0
----
10999
25978
90565

query I rowsort
SELECT ALL + 17 * col1 FROM tab1 cor0
----
170
221
442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 * cor0.col1 + + col1 col0 FROM tab1 AS cor0
----
1664
640
832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + col2 * col0 + + col0 col2 FROM tab2 AS cor0
----
2165
227
3098

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - col1 AS REAL ) * - tab2.col2 + col2 AS col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL 85 + - 38 * - col2 AS col2 FROM tab0
----
123
1339
3201

query I rowsort
SELECT - - 16 * + col2 - col2 FROM tab0 cor0
----
1230
15
495

query I rowsort
SELECT + col1 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 6a63085e8cab6f97591fd0a6b6ffff07

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col2 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL col2 + + col1 * - col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL col1 + col1 + col1 * + col0 * + col0 AS col1 FROM tab0
----
119019
49708
720993

query I rowsort
SELECT ALL + ( - col1 ) * - tab1.col1 + col0 AS col2 FROM tab1
----
164
249
679

query I rowsort
SELECT 45 - + 88 * + col0 FROM tab1 AS cor0
----
-219
-5587
-6995

query I rowsort
SELECT DISTINCT + ( - 63 ) * col1 * col1 FROM tab0
----
-465948
-521703
-592767

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2076
SELECT - + CAST( - col1 AS SIGNED ) + + col0 * col1 + col0 FROM tab1 AS cor0
----
107
1133
714

skipif mysql # not compatible
query I rowsort label-2076
SELECT - + CAST ( - col1 AS INTEGER ) + + col0 * col1 + col0 FROM tab1 AS cor0
----
107
1133
714

query I rowsort
SELECT + - 59 * - col2 FROM tab1 AS cor0
----
3186
3363
5664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT ALL 89 FROM tab1, tab1 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # use DIV operator for integer division
query I rowsort label-2080
SELECT ALL col1 * + col0 DIV col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL col1 * + col0 / col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 48 AS REAL ) + + col0 * col1 FROM tab0 AS cor0
----
2016
3347
8051

query I rowsort
SELECT DISTINCT cor0.col0 * + ( - 42 ) FROM tab0, tab2 AS cor0, tab2 cor1
----
-294
-3276
-3318

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2085
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab2, tab0, tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab2, tab0, tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 6 * - col0 FROM tab0
----
144
210
534

query I rowsort
SELECT ALL cor0.col1 * + tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 24458b87d784ecaf9184f99bd12fb51a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 col2 FROM tab2
----
-9
-9
-9

query I rowsort
SELECT DISTINCT col1 + + col1 * + col0 FROM tab2 AS cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 + + cor0.col1 * + 99 col2 FROM tab0 AS cor0
----
8505
9016
9637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col2 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2092
SELECT DISTINCT - + 89 * - col0 DIV + col0 + col1 FROM tab0 AS cor0
----
175
180
186

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT - + 89 * - col0 / + col0 + col1 FROM tab0 AS cor0
----
175
180
186

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2093
SELECT - 65 * - col1 * CAST( + col0 + + col2 AS SIGNED ) AS col1 FROM tab2
----
129285
398840
68510

skipif mysql # not compatible
query I rowsort label-2093
SELECT - 65 * - col1 * CAST ( + col0 + + col2 AS INTEGER ) AS col1 FROM tab2
----
129285
398840
68510

query I rowsort
SELECT ALL + + 59 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 99 ) * + cor0.col1 col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 3cdbf42a9b9650931f7befed8eef76f2

query I rowsort
SELECT 94 * - cor0.col2 + col2 * col0 * + col0 FROM tab2 AS cor0
----
-1215
155740
233586

query I rowsort
SELECT - - col0 + 21 FROM tab1 cor0
----
101
24
85

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to e678818485e7b492c8b5d6db976ebc7d

query I rowsort
SELECT + col2 + + 3 * col0 + - col0 FROM tab2 AS cor0
----
182
196
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2100
SELECT - + col2 * - CAST( - col0 * col2 AS SIGNED ) FROM tab0 AS cor0
----
-26136
-35
-598436

skipif mysql # not compatible
query I rowsort label-2100
SELECT - + col2 * - CAST ( - col0 * col2 AS INTEGER ) FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT + - col0 + col0 + ( col1 ) * cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-2102
SELECT + col2 + + tab0.col0 DIV + col2 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-2102
SELECT + col2 + + tab0.col0 / + col2 FROM tab0
----
33
36
83

query I rowsort
SELECT - col2 + + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT col1 * ( + col0 * - col2 ) AS col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL + col1 * col0 + + col2 * + col0 FROM tab2
----
406
4345
6630

query I rowsort
SELECT DISTINCT - 89 + cor0.col0 * 76 FROM tab0, tab1 AS cor0
----
139
4775
5991

query I rowsort
SELECT DISTINCT 64 AS col2 FROM tab1, tab1 AS cor0
----
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-2108
SELECT col0 DIV col1 + col2 * - col2 * - col2 FROM tab2 AS cor0
----
17577
19683
54876

skipif mysql # not compatible
query I rowsort label-2108
SELECT col0 / col1 + col2 * - col2 * - col2 FROM tab2 AS cor0
----
17577
19683
54876

query I rowsort
SELECT DISTINCT - - col1 + col1 * - cor0.col1 + col1 AS col2 FROM tab1 cor0
----
-143
-624
-80

query I rowsort
SELECT DISTINCT col0 - col2 * + col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL + col0 * 3 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT + col0 + - ( + col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + ( cor0.col1 * + col1 ) FROM tab1 AS cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 * col2 + - col0 col2 FROM tab2 AS cor0
----
-22606
-24627
-39962

query I rowsort
SELECT ALL col0 - + col2 AS col1 FROM tab0 cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2116
SELECT ALL CAST( NULL AS SIGNED ) + + 89 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL CAST ( NULL AS INTEGER ) + + 89 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 50 + - col0 * - col0 + col2 FROM tab2 AS cor0
----
126
6160
6329

onlyif mysql # use DIV operator for integer division
query I rowsort label-2118
SELECT DISTINCT CAST( + 28 AS SIGNED ) + + cor0.col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT CAST ( + 28 AS INTEGER ) + + cor0.col1 / - col1 AS col0 FROM tab2 AS cor0
----
27

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col2 * - col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2120
SELECT - - 83 DIV col1 + col1 FROM tab2 AS cor0
----
21
33
60

skipif mysql # not compatible
query I rowsort label-2120
SELECT - - 83 / col1 + col1 FROM tab2 AS cor0
----
21
33
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-2121
SELECT ALL ( col1 ) DIV + col2 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL ( col1 ) / + col2 FROM tab0 cor0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2122
SELECT DISTINCT + + 99 DIV cor0.col1 + - col1 FROM tab2 AS cor0
----
-12
-28
-58

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT + + 99 / cor0.col1 + - col1 FROM tab2 AS cor0
----
-12
-28
-58

query I rowsort
SELECT + - 77 AS col0 FROM tab0 AS cor0
----
-77
-77
-77

query I rowsort
SELECT ALL - ( + col1 ) * col0 + - cor0.col0 * + col0 FROM tab2 AS cor0
----
-10686
-266
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-2126
SELECT ALL - col0 * col1 DIV + cor0.col2 + ( col0 ) * col2 AS col1 FROM tab1 AS cor0
----
161
3637
7670

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL - col0 * col1 / + cor0.col2 + ( col0 ) * col2 AS col1 FROM tab1 AS cor0
----
161
3637
7670

query I rowsort
SELECT DISTINCT - ( - col1 ) * cor0.col0 - - cor0.col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2128
SELECT CAST( - 7 AS SIGNED ) + + col0 DIV col0 FROM tab0 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-2128
SELECT CAST ( - 7 AS INTEGER ) + + col0 / col0 FROM tab0 AS cor0
----
-6
-6
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2129
SELECT DISTINCT + ( - 21 ) * col0 + - col2 DIV col2 + + col2 AS col0 FROM tab0 AS cor0
----
-1788
-472
-735

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT + ( - 21 ) * col0 + - col2 / col2 + + col2 AS col0 FROM tab0 AS cor0
----
-1788
-472
-735

query I rowsort
SELECT - ( col1 ) * col1 - 34 FROM tab2 AS cor0
----
-323
-3515
-995

query I rowsort
SELECT + + 90 - - col0 AS col0 FROM tab1 AS cor0
----
154
170
93

query I rowsort
SELECT ALL + col1 - - col2 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT - - ( + col1 ) * + 35 AS col2 FROM tab0 AS cor0
----
3010
3185
3395

onlyif mysql # use DIV operator for integer division
query I rowsort label-2134
SELECT DISTINCT col2 + cor0.col2 DIV + cor0.col1 AS col0 FROM tab1 cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT col2 + cor0.col2 / + cor0.col1 AS col0 FROM tab1 cor0
----
103
56
62

query I rowsort
SELECT - tab2.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL + ( - 56 ) AS col2 FROM tab1
----
-56
-56
-56

query I rowsort
SELECT + col1 - - col1 * - col0 AS col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 - + 70 FROM tab0 AS cor0
----
-69
1019
6654

query I rowsort
SELECT - 91 + + col2 FROM tab1 AS cor0
----
-34
-37
5

query I rowsort
SELECT ALL + - 16 + - col1 * 66 AS col0 FROM tab2 AS cor0
----
-1138
-2062
-3910

query I rowsort
SELECT ALL 13 * 68 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 62c5f1810bd5c46f0d19c1a3c35e3be8

query I rowsort
SELECT ALL - col2 * 48 - - col0 * - col1 AS col2 FROM tab0 AS cor0
----
-12035
-3443
-3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 * - 20 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2144
SELECT DISTINCT + CAST( NULL AS SIGNED ) * tab0.col0 + col0 + - ( + col0 * col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * tab0.col0 + col0 + - ( + col0 * col2 ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - + col2 * col2 * col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT + 60 + - col1 FROM tab0 cor0
----
-26
-31
-37

query I rowsort
SELECT ALL + cor0.col1 + + col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ( col0 ) + + col0 * 22 FROM tab2
----
161
1794
1817

query I rowsort
SELECT DISTINCT col2 + + tab2.col0 AS col1 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2150
SELECT ALL + col1 + + col0 DIV - tab1.col2 FROM tab1
----
13
26
9

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL + col1 + + col0 / - tab1.col2 FROM tab1
----
13
26
9

query I rowsort
SELECT ALL 26 + + col2 FROM tab0
----
108
27
59

query I rowsort
SELECT ALL + col1 + - col1 * - col0 FROM tab1
----
104
1053
650

query I rowsort
SELECT - ( col0 ) * - ( col1 + tab0.col1 * + col0 ) FROM tab0
----
122220
51600
728910

onlyif mysql # use DIV operator for integer division
query I rowsort label-2154
SELECT - 23 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2154
SELECT - 23 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT ALL ( - col0 ) * col1 AS col0 FROM tab2
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col0 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + 29 * cor0.col1 FROM tab0 AS cor0
----
2494
2639
2813

query I rowsort
SELECT DISTINCT - + 49 * col2 FROM tab1 cor0
----
-2646
-2793
-4704

query I rowsort
SELECT DISTINCT - col1 * + col1 * col1 AS col0 FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT + col1 * col2 * + cor0.col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT ALL col2 + + col2 * + 87 AS col2 FROM tab0 cor0
----
2904
7216
88

query I rowsort
SELECT DISTINCT - - col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - col1 + col0 + ( 16 ) FROM tab0 AS cor0
----
-46
-46
14

query I rowsort
SELECT col0 * col0 + col2 * col2 AS col0 FROM tab2 AS cor0
----
6760
7685
778

query I rowsort
SELECT DISTINCT cor0.col1 * col0 * - col2 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL + col1 - - col2 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT - - col1 * + col2 + col1 FROM tab2 cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2168
SELECT ALL + col1 + CAST( - ( + col1 ) * 64 AS SIGNED ) + col2 col2 FROM tab0 cor0
----
-5385
-5651
-6110

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL + col1 + CAST ( - ( + col1 ) * 64 AS INTEGER ) + col2 col2 FROM tab0 cor0
----
-5385
-5651
-6110

query I rowsort
SELECT ALL col2 * + 74 + + col0 + + col1 FROM tab2 AS cor0
----
2036
2061
2908

query I rowsort
SELECT ALL + col0 + + 61 * col0 + col1 FROM tab2 AS cor0
----
465
4895
4915

query I rowsort
SELECT - cor0.col0 * 83 * 8 FROM tab0 AS cor0
----
-15936
-23240
-59096

query I rowsort
SELECT + ( 8 ) FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT DISTINCT - 79 + - col0 FROM tab0 cor0
----
-103
-114
-168

query I rowsort
SELECT col0 - - cor0.col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + ( col2 ) * col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - 55 * - 42 + col1 * col1 FROM tab2 AS cor0
----
2599
3271
5791

query I rowsort
SELECT DISTINCT col2 + col1 + + tab0.col1 FROM tab0
----
195
205
264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - ( + cor0.col0 + ( col1 ) ) * + col0 col0 FROM tab0 cor0
----
-15938
-2607
-4619

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2179
SELECT DISTINCT - + CAST( - 62 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
140
141
69

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT - + CAST ( - 62 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
140
141
69

query I rowsort
SELECT - col2 * + col1 * col0 - - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-3396
-664200
-68145

query I rowsort
SELECT 45 - - cor0.col0 * 14 FROM tab2, tab2 AS cor0
----
9 values hashing to 3e4c062422b60fc060ee59ae6556737c

query I rowsort
SELECT ALL 72 * - col0 + col0 AS col2 FROM tab0 AS cor0
----
-1704
-2485
-6319

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT + col1 * 64 FROM tab2 cor0
----
1088
1984
3776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor0.col2 ) col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) - - col0 col2 FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT ALL - + 62 AS col1 FROM tab1 AS cor0
----
-62
-62
-62

query I rowsort
SELECT ALL 14 + - cor0.col0 * + col1 FROM tab2 AS cor0
----
-1329
-203
-4588

query I rowsort
SELECT ALL + col0 * col1 * col2 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT cor0.col0 - + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - cor0.col1 + 3 FROM tab0, tab2 AS cor0
----
9 values hashing to f81d46290af380a0814ba19f47d81071

query I rowsort
SELECT + - cor0.col2 * - ( col1 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col2 + - 75 * + cor0.col2 FROM tab2 AS cor0
----
-1976
-2052
-2888

query I rowsort
SELECT ALL + col0 + ( - 41 ) * - col0 FROM tab0 AS cor0
----
1008
1470
3738

query I rowsort
SELECT - col1 * + ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2196
SELECT tab0.col2 DIV col0 - - col0 FROM tab0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-2196
SELECT tab0.col2 / col0 - - col0 FROM tab0
----
25
35
89

query I rowsort
SELECT + col1 + - col0 * tab0.col2 * + col1 FROM tab0
----
-3298
-664027
-68026

query I rowsort
SELECT 76 + + ( cor0.col1 ) * 30 AS col1 FROM tab2 AS cor0
----
1006
1846
586

onlyif mysql # use DIV operator for integer division
query I rowsort label-2199
SELECT col0 DIV + col1 + col1 * col1 FROM tab1
----
106
175
676

skipif mysql # not compatible
query I rowsort label-2199
SELECT col0 / + col1 + col1 * col1 FROM tab1
----
106
175
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 col0 FROM tab2, tab2 AS cor0
----
-5

query I rowsort
SELECT DISTINCT col1 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + + col2 + 44 AS col2 FROM tab1 AS cor0
----
101
140
98

query I rowsort
SELECT 40 FROM tab0, tab0 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT - 57 + - col0 FROM tab2 AS cor0
----
-135
-136
-64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2205
SELECT - col2 * - tab0.col0 * - CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2205
SELECT - col2 * - tab0.col0 * - CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 + ( + col1 ) col0 FROM tab0 AS cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 + - 62 col1 FROM tab2 AS cor0
----
227
3419
899

query I rowsort
SELECT ALL + + 45 + col1 AS col1 FROM tab0 AS cor0
----
131
136
142

query I rowsort
SELECT DISTINCT - - 8 + col2 + - 78 AS col0 FROM tab1 AS cor0
----
-13
-16
26

query I rowsort
SELECT + ( - col0 ) * + 6 + col0 AS col0 FROM tab0 AS cor0
----
-120
-175
-445

onlyif mysql # use DIV operator for integer division
query I rowsort label-2211
SELECT + 52 * cor0.col0 + col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
1248
1820
4628

skipif mysql # not compatible
query I rowsort label-2211
SELECT + 52 * cor0.col0 + col0 / - col1 AS col0 FROM tab0 AS cor0
----
1248
1820
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-2212
SELECT ALL - - col0 * + col0 + 40 DIV col2 FROM tab0 AS cor0
----
1265
577
7921

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL - - col0 * + col0 + 40 / col2 FROM tab0 AS cor0
----
1265
577
7921

query I rowsort
SELECT col2 + - 44 FROM tab1 AS cor0
----
10
13
52

query I rowsort
SELECT ALL - 33 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT DISTINCT + col0 + + ( + 80 ) * cor0.col0 * + col2 FROM tab1 AS cor0
----
12963
291904
614480

query I rowsort
SELECT + col0 * tab2.col2 * + col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT DISTINCT + col1 * col1 + - col0 AS col2 FROM tab1
----
36
673
89

query I rowsort
SELECT - 65 * col1 FROM tab1 cor0
----
-1690
-650
-845

query I rowsort
SELECT - col1 + col1 * + col1 AS col2 FROM tab0 cor0
----
7310
8190
9312

query I rowsort
SELECT - 53 * - col2 * + col0 + - ( + col2 ) * col2 * - col2 FROM tab2 AS cor0
----
125060
213978
29700

query I rowsort
SELECT ALL 24 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2222
SELECT + CAST( NULL AS DECIMAL ) + + tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2222
SELECT + CAST ( NULL AS REAL ) + + tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 * col0 * + col0 AS col1 FROM tab1
----
-234
-40960
-83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-2224
SELECT + tab1.col1 DIV + 64 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2224
SELECT + tab1.col1 / + 64 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 25 AS col0 FROM tab2, tab2 AS cor0
----
-25

query I rowsort
SELECT ALL ( tab0.col0 + col0 ) AS col1 FROM tab0
----
178
48
70

query I rowsort
SELECT - 40 * col2 FROM tab0
----
-1320
-3280
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT 13 + + col1 * cor0.col1 FROM tab2 AS cor0
----
302
3494
974

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2230
SELECT + + CAST( NULL AS SIGNED ) - 91 * - col2 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2230
SELECT + + CAST ( NULL AS INTEGER ) - 91 * - col2 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col2 + col1 * - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * + col2 - - col1 * + col1 AS col0 FROM tab2 cor0
----
1798
5015
935

onlyif mysql # use DIV operator for integer division
query I rowsort label-2233
SELECT col2 + - col0 * cor0.col0 - col1 DIV - col0 col0 FROM tab1 cor0
----
-4039
-6304
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2233
SELECT col2 + - col0 * cor0.col0 - col1 / - col0 col0 FROM tab1 cor0
----
-4039
-6304
53

query I rowsort
SELECT ALL + - 56 * col0 FROM tab1 AS cor0
----
-168
-3584
-4480

query I rowsort
SELECT ALL 83 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # use DIV operator for integer division
query I rowsort label-2236
SELECT - ( 95 * col2 ) + + col2 * col0 DIV col2 FROM tab0
----
-3111
-60
-7701

skipif mysql # not compatible
query I rowsort label-2236
SELECT - ( 95 * col2 ) + + col2 * col0 / col2 FROM tab0
----
-3111
-60
-7701

query I rowsort
SELECT DISTINCT 42 + - 35 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
7

query I rowsort
SELECT ALL tab2.col0 + col2 * 82 FROM tab2
----
2210
2221
3195

query I rowsort
SELECT + 87 + + cor0.col1 - + cor0.col2 FROM tab2 AS cor0
----
120
66
91

query I rowsort
SELECT DISTINCT + + 91 * col2 + - col2 AS col1 FROM tab1 cor0
----
4860
5130
8640

query I rowsort
SELECT cor0.col1 + 8 FROM tab0, tab1 AS cor0
----
9 values hashing to d8cb70da7bdaa615902a49e3d587aac1

query I rowsort
SELECT ALL + cor0.col0 + + cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 0a9ba7ddbb78279db2d78308414e03c9

query I rowsort
SELECT + + cor0.col2 + cor0.col1 + - col2 * col0 FROM tab1 AS cor0
----
-3581
-7571
-82

query I rowsort
SELECT col0 + - 11 FROM tab0
----
13
24
78

query I rowsort
SELECT ALL + 7 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT ALL - - 47 AS col0 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT ALL - - cor0.col0 + - col2 AS col2 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2248
SELECT + - CAST( NULL AS SIGNED ) / 24 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2248
SELECT + - CAST ( NULL AS INTEGER ) / 24 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - 60 AS col1 FROM tab2
----
-22
-33
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2250
SELECT - CAST( NULL AS SIGNED ) / - col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2250
SELECT - CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2251
SELECT 99 DIV cor0.col1 FROM tab2 AS cor0
----
1
3
5

skipif mysql # not compatible
query I rowsort label-2251
SELECT 99 / cor0.col1 FROM tab2 AS cor0
----
1
3
5

query I rowsort
SELECT DISTINCT col2 + + 28 FROM tab0 AS cor0
----
110
29
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 col2 FROM tab2 AS cor0
----
65
65
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2254
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 + col0 * col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 + col0 * col2 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 30 + - cor0.col2 * + cor0.col1 FROM tab1 AS cor0
----
-1218
-1374
-540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 91 col0 FROM tab0 cor0
----
177
182
188

query I rowsort
SELECT ALL 99 * - col2 * + col0 FROM tab2 AS cor0
----
-18711
-200772
-297198

query I rowsort
SELECT DISTINCT + col0 + cor0.col1 * col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL ( 78 ) + - col1 FROM tab0 AS cor0
----
-13
-19
-8

query I rowsort
SELECT ALL - col2 * col2 - + col2 FROM tab0 AS cor0
----
-1122
-2
-6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2261
SELECT ALL + - col0 * + CAST( - 3 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
-17
182
227

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL + - col0 * + CAST ( - 3 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
-17
182
227

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2262
SELECT DISTINCT + - col1 - CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT + - col1 - CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - col0 - - col0 * + 31 FROM tab2 AS cor0
----
210
2340
2370

query I rowsort
SELECT DISTINCT + - col2 * cor0.col1 + 12 AS col2 FROM tab0 AS cor0
----
-2826
-7450
-85

query I rowsort
SELECT ALL - + col0 + + 75 FROM tab2 AS cor0
----
-3
-4
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * ( col1 ) col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2267
SELECT - col0 DIV - col2 - col1 AS col2 FROM tab0 cor0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-2267
SELECT - col0 / - col2 - col1 AS col2 FROM tab0 cor0
----
-62
-86
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2268
SELECT DISTINCT col0 + - CAST( - 91 AS SIGNED ) AS col0 FROM tab1
----
155
171
94

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT col0 + - CAST ( - 91 AS INTEGER ) AS col0 FROM tab1
----
155
171
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2269
SELECT ALL - col0 * - CAST( col0 AS SIGNED ) + col0 FROM tab2
----
56
6162
6320

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL - col0 * - CAST ( col0 AS INTEGER ) + col0 FROM tab2
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-2270
SELECT + + col0 DIV + 55 + col1 FROM tab0 AS cor0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-2270
SELECT + + col0 / + 55 + col1 FROM tab0 AS cor0
----
86
92
97

query I rowsort
SELECT - + ( - 30 ) + col2 * col0 AS col2 FROM tab2 AS cor0
----
2058
219
3032

query I rowsort
SELECT 35 + - col2 FROM tab0 AS cor0
----
-47
2
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2273
SELECT ALL - col2 + + CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL - col2 + + CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL - tab0.col0 + + 10 AS col1 FROM tab0
----
-14
-25
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 33 * + col1 col0 FROM tab1 AS cor0
----
-330
-429
-858

query I rowsort
SELECT DISTINCT + ( - col2 ) * - ( + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + - 12 + + col2 * col1 AS col1 FROM tab0 AS cor0
----
2826
7450
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 * col2 + - cor0.col1 col0 FROM tab1 AS cor0
----
1331
730
788

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 + - col0 col2 FROM tab2
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2280
SELECT + col1 DIV + 53 + - tab1.col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2280
SELECT + col1 / + 53 + - tab1.col2 FROM tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2281
SELECT - tab1.col2 * + col1 + col0 DIV 22 AS col2 FROM tab1
----
-1245
-1404
-568

skipif mysql # not compatible
query I rowsort label-2281
SELECT - tab1.col2 * + col1 + col0 / 22 AS col2 FROM tab1
----
-1245
-1404
-568

onlyif mysql # use DIV operator for integer division
query I rowsort label-2282
SELECT ALL ( - col0 ) DIV + col0 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL ( - col0 ) / + col0 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col2 * - tab2.col1 * + col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - col1 * ( col1 ) FROM tab1
----
-100
-169
-676

query I rowsort
SELECT 35 - + col2 AS col2 FROM tab2
----
-3
8
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2286
SELECT col2 DIV + col1 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2286
SELECT col2 / + col1 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + 17 + - col2 AS col2 FROM tab2 AS cor0
----
-10
-21
-9

query I rowsort
SELECT ( - cor0.col0 ) * ( + 30 ) FROM tab1 AS cor0
----
-1920
-2400
-90

query I rowsort
SELECT DISTINCT 85 * col2 - 52 FROM tab2 AS cor0
----
2158
2243
3178

query I rowsort
SELECT ALL 51 + col0 * col0 - cor0.col2 * + col0 AS col0 FROM tab0 AS cor0
----
-165
1241
674

query I rowsort
SELECT - + 75 * - col0 + col1 FROM tab2 AS cor0
----
556
5909
5942

query I rowsort
SELECT + 78 FROM tab2, tab1, tab2 cor0
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 35707ade138fec4b370f5140a4cd2963

query I rowsort
SELECT ALL + 8 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - ( col2 ) AS REAL ) AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT - ( + col2 ) + col0 * col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL + col1 - 68 AS col0 FROM tab2 AS cor0
----
-37
-51
-9

query I rowsort
SELECT ALL 36 + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-28
-44
33

query I rowsort
SELECT DISTINCT - + 94 + + col1 + cor0.col1 FROM tab1 AS cor0
----
-42
-68
-74

query I rowsort
SELECT - - col2 * 79 + cor0.col2 * + col2 FROM tab2 AS cor0
----
2730
2862
4446

query I rowsort
SELECT ALL + 20 + - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-151
-16
-37

query I rowsort
SELECT DISTINCT - ( + col2 ) - + col1 * col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT DISTINCT + col2 + + 4 FROM tab1 AS cor0
----
100
58
61

query I rowsort
SELECT ALL + ( - 16 ) * col1 FROM tab2 cor0
----
-272
-496
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-2305
SELECT col2 * - col2 + + cor0.col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-1088
-6723
0

skipif mysql # not compatible
query I rowsort label-2305
SELECT col2 * - col2 + + cor0.col2 / col2 AS col1 FROM tab0 AS cor0
----
-1088
-6723
0

query I rowsort
SELECT DISTINCT col0 * - col0 + - col2 AS col1 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT - + 8 + - col0 FROM tab1 cor0
----
-11
-72
-88

query I rowsort
SELECT 82 + + col0 FROM tab0
----
106
117
171

query I rowsort
SELECT 59 * + col2 + - col0 AS col0 FROM tab0
----
1923
24
4749

onlyif mysql # use DIV operator for integer division
query I rowsort label-2310
SELECT ALL + col0 - col1 DIV col1 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL + col0 - col1 / col1 FROM tab0
----
23
34
88

query I rowsort
SELECT - - col2 * col2 * - cor0.col2 + cor0.col0 FROM tab1 AS cor0
----
-157461
-185129
-884656

onlyif mysql # use DIV operator for integer division
query I rowsort label-2312
SELECT + col0 + ( + col1 ) DIV col0 AS col1 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-2312
SELECT + col0 + ( + col1 ) / col0 AS col1 FROM tab0 AS cor0
----
27
37
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 - - ( - col1 ) col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT - col2 + - col1 * - 14 FROM tab2 AS cor0
----
200
407
800

query I rowsort
SELECT + cor0.col2 * - col1 + - 17 AS col0 FROM tab0 AS cor0
----
-114
-2855
-7479

query I rowsort
SELECT + + col2 + - 58 AS col2 FROM tab1 AS cor0
----
-1
-4
38

query I rowsort
SELECT ALL + - 67 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT ALL - + ( col1 ) * + col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + cor1.col2 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col0 AS REAL ) * col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2321
SELECT DISTINCT col2 + CAST( 35 AS SIGNED ) FROM tab2 AS cor0
----
61
62
73

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT col2 + CAST ( 35 AS INTEGER ) FROM tab2 AS cor0
----
61
62
73

query I rowsort
SELECT + cor0.col0 - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL - col2 + - col0 * + col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT + tab1.col0 * - 2 FROM tab1, tab2 AS cor0
----
9 values hashing to 27b4e0878ffa5c5df119ac6cfa79ea07

query I rowsort
SELECT col2 + col1 * col2 AS col1 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT cor0.col0 + + 15 * + 40 FROM tab0 AS cor0
----
624
635
689

onlyif mysql # use DIV operator for integer division
query I rowsort label-2327
SELECT DISTINCT + col2 - + col1 DIV - 28 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT + col2 - + col1 / - 28 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - ( 56 * + tab1.col0 ) col0 FROM tab1
----
194
3594
4493

query I rowsort
SELECT col1 * - 74 - col2 AS col1 FROM tab2
----
-1296
-2321
-4392

query I rowsort
SELECT col1 + col0 - 94 * - col2 AS col2 FROM tab2
----
2576
2581
3668

query I rowsort
SELECT col2 * 13 FROM tab1
----
1248
702
741

query I rowsort
SELECT DISTINCT col2 - col0 AS col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + col1 * - 31 + 13 - - col2 AS col1 FROM tab0
----
-2620
-2726
-2993

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab2, tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2335
SELECT ALL col2 * CAST( + col2 AS SIGNED ) - + col0 FROM tab1
----
2913
3185
9136

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL col2 * CAST ( + col2 AS INTEGER ) - + col0 FROM tab1
----
2913
3185
9136

query I rowsort
SELECT 1 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) * 85 FROM tab1 AS cor0
----
255
5440
6800

query I rowsort
SELECT ALL 75 * + col2 + + 66 FROM tab1 AS cor0
----
4116
4341
7266

onlyif mysql # use DIV operator for integer division
query I rowsort label-2339
SELECT ALL + cor0.col2 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL + cor0.col2 / col0 AS col1 FROM tab2 AS cor0
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2340
SELECT ALL col0 DIV col2 + col2 + col0 FROM tab1
----
122
176
57

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL col0 / col2 + col2 + col0 FROM tab1
----
122
176
57

query I rowsort
SELECT + ( col1 ) - col2 * - ( tab2.col2 ) AS col0 FROM tab2
----
1461
735
760

query I rowsort
SELECT col2 + + col2 * + cor0.col0 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT - - col1 + - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL - 62 + - col0 * ( col2 ) AS col2 FROM tab0 AS cor0
----
-7360
-854
-97

query I rowsort
SELECT - - col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + + 65 * cor0.col1 FROM tab1 AS cor0
----
1690
650
845

query I rowsort
SELECT - 40 * cor0.col2 FROM tab1 AS cor0
----
-2160
-2280
-3840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 * - col2 col1 FROM tab1 cor0
----
5076
5358
9024

query I rowsort
SELECT DISTINCT ( col1 ) + col1 AS col0 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT col1 + 48 AS col1 FROM tab0
----
134
139
145

skipif mysql # not compatible
query I rowsort
SELECT ALL - ( - 75 ) + col1 * + CAST ( col1 + col0 AS REAL ) AS col2 FROM tab1 AS cor0
----
1284
815
829

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 66 col1 FROM tab2 AS cor0
----
125
83
97

query I rowsort
SELECT ALL col0 * col1 + col2 + 19 * col2 AS col2 FROM tab0 cor0
----
2724
3415
9739

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col1 + col2 col2 FROM tab1 AS cor0
----
104
179
82

query I rowsort
SELECT ALL + 8 * + col0 - - col0 AS col2 FROM tab0 AS cor0
----
216
315
801

onlyif mysql # use DIV operator for integer division
query I rowsort label-2356
SELECT ALL - ( + 91 ) DIV - col0 + + col1 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL - ( + 91 ) / - col0 + + col1 FROM tab0 AS cor0
----
89
92
99

query I rowsort
SELECT 97 + + col2 - + 43 * + col0 AS col0 FROM tab0 AS cor0
----
-1407
-3648
-902

query I rowsort
SELECT - - 1 * - col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - 50 * cor0.col0 FROM tab0 AS cor0
----
-1200
-1750
-4450

query I rowsort
SELECT DISTINCT ( + ( col1 ) ) * tab2.col0 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT + tab0.col2 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
1
33
82

query I rowsort
SELECT - col0 * + col2 + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-406
-4345
-6630

query I rowsort
SELECT DISTINCT col2 + 4 * ( col0 + col0 ) AS col0 FROM tab1 AS cor0
----
569
736
78

query I rowsort
SELECT DISTINCT + + col0 * - 2 AS col1 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT ALL + col0 * + ( - col0 + + cor0.col1 ) * col2 FROM tab0 AS cor0
----
14596
2170
49104

onlyif mysql # use DIV operator for integer division
query I rowsort label-2366
SELECT - - col1 DIV CAST( + 12 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-26
-75
7

skipif mysql # not compatible
query I rowsort label-2366
SELECT - - col1 / CAST ( + 12 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-26
-75
7

query I rowsort
SELECT ALL col1 + 43 AS col0 FROM tab2 AS cor0
----
102
60
74

query I rowsort
SELECT DISTINCT + + col1 - 3 FROM tab2 AS cor0
----
14
28
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2369
SELECT DISTINCT - col0 + - CAST( col2 + col1 AS SIGNED ) * CAST( NULL AS SIGNED ) * + 60 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT - col0 + - CAST ( col2 + col1 AS INTEGER ) * CAST ( NULL AS INTEGER ) * + 60 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col0 - - ( col2 ) * col0 * 78 AS col0 FROM tab0 AS cor0
----
2695
569155
61752

query I rowsort
SELECT ALL col2 * - 39 + 52 + - col2 AS col0 FROM tab2 AS cor0
----
-1028
-1468
-988

query I rowsort
SELECT DISTINCT cor0.col2 * - 41 - col0 AS col1 FROM tab2 AS cor0
----
-1114
-1144
-1637

query I rowsort
SELECT col1 + - col2 * ( col0 ) AS col2 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT ALL - 22 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col1 col1 FROM tab1
----
0

query I rowsort
SELECT ALL col0 * col2 * col0 + - col1 AS col0 FROM tab0
----
1128
18922
649431

query I rowsort
SELECT col2 * + ( 26 ) AS col0 FROM tab1 AS cor0
----
1404
1482
2496

query I rowsort
SELECT DISTINCT - + col0 + ( col1 ) FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT DISTINCT - - col1 * + ( cor0.col2 + + col2 ) FROM tab1 AS cor0
----
1140
2496
2808

query I rowsort
SELECT + - cor0.col0 * col0 + - col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT DISTINCT - col2 * + col1 * + col2 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT + 89 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab0 AS cor2, tab1 AS cor3
----
13122 values hashing to 04c236503a286b012ab3e18394ce159d

query I rowsort
SELECT - tab0.col0 * 22 FROM tab0
----
-1958
-528
-770

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2, tab1 AS cor3
----
3645 values hashing to 460ecaf0151851c22525e8eac77a0a82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2386
SELECT DISTINCT - col1 * CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT - col1 * CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT col1 + 12 FROM tab2 AS cor0
----
29
43
71

skipif mysql # not compatible
query I rowsort
SELECT col1 + + cor0.col2 * - col1 * - CAST ( col1 AS REAL ) FROM tab2 AS cor0
----
10999
25978
90565

query I rowsort
SELECT - tab1.col1 + col2 * + tab1.col1 + col0 FROM tab1
----
1315
1381
624

query I rowsort
SELECT col1 * ( + 51 * col1 ) FROM tab1
----
34476
5100
8619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 col2 FROM tab1, tab0 AS cor0
----
-56

query I rowsort
SELECT + ( + 92 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # use DIV operator for integer division
query I rowsort label-2393
SELECT ALL col2 DIV - CAST( 48 AS SIGNED ) FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL col2 / - CAST ( 48 AS INTEGER ) FROM tab1
----
-1
-1
-2

query I rowsort
SELECT DISTINCT tab1.col0 * - 64 AS col1 FROM tab1
----
-192
-4096
-5120

query I rowsort
SELECT DISTINCT + cor0.col1 + + ( col0 ) FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2396
SELECT - + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2396
SELECT - + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT 37 * col2 FROM tab1 AS cor0
----
1998
2109
3552

query I rowsort
SELECT - ( cor0.col1 ) + col2 * col0 * - col0 FROM tab2 AS cor0
----
-1354
-158243
-237175

query I rowsort
SELECT + 37 * + 41 * col0 FROM tab1 AS cor0
----
121360
4551
97088

query I rowsort
SELECT DISTINCT 31 * 39 AS col2 FROM tab2 AS cor0
----
1209

query I rowsort
SELECT DISTINCT col1 + tab0.col1 * ( col0 ) FROM tab0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-2402
SELECT ALL + - col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL + - col0 / - col0 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT col1 * col0 + - col0 AS col1 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT - col1 * + 8 FROM tab2 AS cor0
----
-136
-248
-472

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2405
SELECT + col2 + - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-2405
SELECT + col2 + - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - cor0.col1 * ( + 74 ) + col1 FROM tab1 AS cor0
----
-1898
-730
-949

onlyif mysql # use DIV operator for integer division
query I rowsort label-2407
SELECT + col2 DIV CAST( - cor0.col1 AS SIGNED ) col1 FROM tab2 cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2407
SELECT + col2 / CAST ( - cor0.col1 AS INTEGER ) col1 FROM tab2 cor0
----
-2
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2408
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - + col0 + 37 + 91 * col0 AS col0 FROM tab2 AS cor0
----
667
7057
7147

query I rowsort
SELECT DISTINCT + col1 - ( + col0 ) AS col1 FROM tab2 cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 * CAST ( - ( - col2 ) AS REAL ) + + 34 / col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + col0 * 48 - cor0.col2 AS col2 FROM tab1 AS cor0
----
3015
3744
90

query I rowsort
SELECT ALL - col0 * 11 FROM tab2 AS cor0
----
-77
-858
-869

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col1 * 62 col2 FROM tab2 cor0
----
17918
215822
59582

query I rowsort
SELECT + tab1.col0 + + col2 * + col0 FROM tab1
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * - col1 + + col2 col0 FROM tab0
----
-7363
-8199
-9408

query I rowsort
SELECT - 24 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT ALL - col1 - col0 AS col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT + col0 + - col0 + col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2420
SELECT col1 * - CAST( col0 * + col0 AS SIGNED ) FROM tab1 AS cor0
----
-234
-40960
-83200

skipif mysql # not compatible
query I rowsort label-2420
SELECT col1 * - CAST ( col0 * + col0 AS INTEGER ) FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT col0 * cor0.col1 AS col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL + + col0 * + 67 + col1 AS col2 FROM tab0 AS cor0
----
1694
2442
6054

query I rowsort
SELECT DISTINCT - cor0.col2 * 97 * - col1 + - col1 AS col2 FROM tab0 AS cor0
----
275200
723723
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + 30 + 99 col1 FROM tab0 AS cor0
----
153
164
218

onlyif mysql # use DIV operator for integer division
query I rowsort label-2425
SELECT - + col2 * + col2 * - 93 - col1 DIV - 64 FROM tab2 AS cor0
----
134292
62868
67797

skipif mysql # not compatible
query I rowsort label-2425
SELECT - + col2 * + col2 * - 93 - col1 / - 64 FROM tab2 AS cor0
----
134292
62868
67797

query I rowsort
SELECT + col2 * - 37 FROM tab1
----
-1998
-2109
-3552

onlyif mysql # use DIV operator for integer division
query I rowsort label-2427
SELECT ALL 12 * ( - col2 ) DIV tab2.col0 FROM tab2
----
-4
-46
-5

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL 12 * ( - col2 ) / tab2.col0 FROM tab2
----
-4
-46
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col0 ) + + col1 * 93 col0 FROM tab2 cor0
----
1502
2876
5409

query I rowsort
SELECT + 18 * col1 + col2 + + col1 AS col2 FROM tab1 AS cor0
----
247
343
548

query I rowsort
SELECT col2 + + tab1.col1 * + col1 FROM tab1
----
157
265
730

query I rowsort
SELECT ALL cor0.col1 * tab2.col0 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to a8042fcd365197f4ce80520ccb46287c

query I rowsort
SELECT 83 + col1 FROM tab1 AS cor0
----
109
93
96

query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2434
SELECT ALL + col1 + col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL + col1 + col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2435
SELECT ALL + cor0.col2 * col1 + col1 DIV ( + cor0.col0 * cor0.col0 ) AS col1 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL + cor0.col2 * col1 + col1 / ( + cor0.col0 * cor0.col0 ) AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT cor1.col0 + 75 AS col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 02d3bd118524dbb5fb916f296cd1cc74

query I rowsort
SELECT DISTINCT 68 * + col1 + ( - col1 ) * - col1 AS col1 FROM tab2 AS cor0
----
1445
3069
7493

query I rowsort
SELECT DISTINCT cor0.col0 * col2 - col2 AS col2 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-2439
SELECT ALL + col1 * col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL + col1 * col2 / - col2 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2440
SELECT DISTINCT - 49 + col0 DIV - col1 col2 FROM tab1 cor0
----
-49
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT - 49 + col0 / - col1 col2 FROM tab1 cor0
----
-49
-55

query I rowsort
SELECT + + 0 * col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * - col2 * - ( - col0 ) - col1 AS col1 FROM tab1 AS cor0
----
-207946
-737293
-8774

onlyif mysql # use DIV operator for integer division
query I rowsort label-2443
SELECT + col0 DIV - col2 col0 FROM tab0 AS cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2443
SELECT + col0 / - col2 col0 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT 35 + - col0 FROM tab1 AS cor0
----
-29
-45
32

query I rowsort
SELECT + col1 * - col2 + + 92 AS col2 FROM tab1 AS cor0
----
-1156
-1312
-478

query I rowsort
SELECT DISTINCT - col2 - - cor0.col1 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL + + 81 * col2 FROM tab1 AS cor0
----
4374
4617
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-2448
SELECT DISTINCT col0 * + col2 DIV col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT col0 * + col2 / col2 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2449
SELECT + - cor0.col2 DIV - col1 AS col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-2449
SELECT + - cor0.col2 / - col1 AS col1 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT DISTINCT + - 2 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT ALL + col0 + + col0 - + col1 FROM tab0 AS cor0
----
-27
-38
87

query I rowsort
SELECT DISTINCT - 3 * col2 AS col0 FROM tab0 AS cor0
----
-246
-3
-99

query I rowsort
SELECT 20 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT + + 33 FROM tab1 AS cor0
----
33

query I rowsort
SELECT - 73 * cor0.col1 + cor0.col0 FROM tab1 AS cor0
----
-1895
-666
-869

onlyif mysql # use DIV operator for integer division
query I rowsort label-2456
SELECT ALL - ( - 75 ) + - col0 DIV - cor0.col1 AS col1 FROM tab0 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL - ( - 75 ) + - col0 / - cor0.col1 AS col1 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2457
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 13 * col1 - + col0 FROM tab0 AS cor0
----
-1142
-1272
-1296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2459
SELECT ALL + CAST( NULL AS SIGNED ) * - 58 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL + CAST ( NULL AS INTEGER ) * - 58 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * ( + col2 ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT col2 * + col1 * + 22 + col0 FROM tab1 AS cor0
----
12604
27536
30891

query I rowsort
SELECT DISTINCT 53 + + col0 AS col2 FROM tab0 AS cor0
----
142
77
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-2463
SELECT 56 DIV col0 + col0 FROM tab1 AS cor0
----
21
64
80

skipif mysql # not compatible
query I rowsort label-2463
SELECT 56 / col0 + col0 FROM tab1 AS cor0
----
21
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2464
SELECT ALL + CAST( NULL AS SIGNED ) * ( tab0.col2 * + col1 ) + - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL + CAST ( NULL AS INTEGER ) * ( tab0.col2 * + col1 ) + - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor1.col1 * 40 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
1240
2360
680

query I rowsort
SELECT ALL col0 * tab0.col1 + - col2 AS col2 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT col0 * - 24 - col2 AS col2 FROM tab2
----
-1898
-1934
-195

query I rowsort
SELECT DISTINCT + col2 + ( col1 + col2 ) AS col2 FROM tab0
----
152
255
99

query I rowsort
SELECT - 87 AS col0 FROM tab2 AS cor0
----
-87
-87
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 70 col2 FROM tab0 AS cor0
----
-2310
-5740
-70

query I rowsort
SELECT ALL 24 AS col2 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to dfdfceb3acab6f866df9d676c07043ad

query I rowsort
SELECT DISTINCT + cor1.col1 + 85 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
171
176
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 col2 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT DISTINCT - + 21 AS col1 FROM tab2 AS cor0
----
-21

query I rowsort
SELECT DISTINCT - col1 + 59 * + col2 AS col0 FROM tab1 cor0
----
3160
3353
5651

query I rowsort
SELECT + 6 * col0 AS col1 FROM tab2 AS cor0
----
42
468
474

onlyif mysql # use DIV operator for integer division
query I rowsort label-2477
SELECT ALL 35 DIV - col1 + + col0 FROM tab2
----
6
77
78

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL 35 / - col1 + + col0 FROM tab2
----
6
77
78

query I rowsort
SELECT DISTINCT ( + col2 ) + - col2 * - col2 + col1 AS col2 FROM tab0
----
1208
6897
99

query I rowsort
SELECT ALL col2 * col2 + - col0 * - col1 AS col1 FROM tab1
----
10256
2994
3889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 + + cor0.col1 * - 56 col1 FROM tab0 AS cor0
----
-4730
-5005
-5335

query I rowsort
SELECT + col0 * cor0.col1 - - ( + cor0.col0 ) FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL + 51 + col2 AS col1 FROM tab1 AS cor0
----
105
108
147

query I rowsort
SELECT ALL 73 * col2 AS col0 FROM tab1 AS cor0
----
3942
4161
7008

query I rowsort
SELECT ALL - col2 * + col2 + cor0.col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL - col2 * - col1 + + ( col1 ) AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL col0 + + col1 * + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2487
SELECT DISTINCT - col2 + + CAST( + 21 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-17
-5
-6

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT - col2 + + CAST ( + 21 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-17
-5
-6

query I rowsort
SELECT DISTINCT + col0 * + 15 AS col2 FROM tab1 AS cor0
----
1200
45
960

query I rowsort
SELECT DISTINCT + - col2 * - 12 + col0 FROM tab1 AS cor0
----
1232
651
748

query I rowsort
SELECT - - col2 + + col1 + + 33 FROM tab2 AS cor0
----
118
88
91

query I rowsort
SELECT col2 + - 61 AS col2 FROM tab2 AS cor0
----
-23
-34
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col1 * 12 col2 FROM tab0 AS cor0
----
1065
1165
1174

query I rowsort
SELECT ALL + cor0.col0 * - 91 + + col1 * + col1 AS col0 FROM tab1 AS cor0
----
-5724
-7111
403

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2494
SELECT DISTINCT + + col2 + CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-2494
SELECT DISTINCT + + col2 + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - + col0 * col2 + col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL + - col2 * - ( cor0.col0 ) FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + cor0.col1 * - ( - col0 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - tab1.col1 + col0 + col2 * - col2 FROM tab1
----
-2939
-3195
-9149

query I rowsort
SELECT - tab2.col1 + tab2.col1 * ( - ( - col1 ) * - col2 ) AS col0 FROM tab2
----
-10999
-25978
-90565

query I rowsort
SELECT + 65 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2501
SELECT + col2 * - CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2501
SELECT + col2 * - CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 * col1 - + col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT col2 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - - ( cor0.col1 ) + - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2505
SELECT - CAST( NULL AS SIGNED ) / col2 + col1 * col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2505
SELECT - CAST ( NULL AS INTEGER ) / col2 + col1 * col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 35 + col1 AS col2 FROM tab2 AS cor0
----
52
66
94

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col0 AS REAL ) * col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + 10 + - ( - col2 ) * ( + col0 ) AS col0 FROM tab2 AS cor0
----
199
2038
3012

query I rowsort
SELECT - + col1 * ( + col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col1 FROM tab0, tab2 AS cor0
----
20

query I rowsort
SELECT DISTINCT - 41 AS col2 FROM tab2, tab1 AS cor0
----
-41

query I rowsort
SELECT - col0 * + ( - col0 ) AS col2 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - + col1 * col1 + - col0 FROM tab0 cor0
----
-7420
-8370
-9444

query I rowsort
SELECT ( col1 ) + ( col0 ) * + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - ( + col0 * - col0 ) + col1 * tab0.col0 FROM tab0
----
16020
2640
4620

query I rowsort
SELECT DISTINCT + ( 78 ) * tab0.col1 AS col0 FROM tab0
----
6708
7098
7566

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2517
SELECT - + 44 + + col0 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2517
SELECT - + 44 + + col0 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2518
SELECT + col2 + col0 DIV col0 AS col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2518
SELECT + col2 + col0 / col0 AS col2 FROM tab0
----
2
34
83

query I rowsort
SELECT col0 * tab0.col2 * + col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT + cor0.col0 * col2 * col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT + ( - 92 ) * - col2 FROM tab2 AS cor0
----
2392
2484
3496

query I rowsort
SELECT 43 FROM tab1, tab0, tab1 cor0, tab2
----
81 values hashing to 53b2f139a07f856ac44a1158efd4e63d

query I rowsort
SELECT ALL + col1 + col1 * + cor0.col2 + - ( col1 ) * + 17 FROM tab2 AS cor0
----
341
374
590

query I rowsort
SELECT ALL 29 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT + col0 + col1 * + cor0.col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL + - cor0.col0 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL col0 + 32 * col2 + col2 AS col2 FROM tab2
----
1333
898
936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * ( col1 ) col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT 63 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT 94 + 37 AS col2 FROM tab2, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 13b8a7eb61453c14464b45c61d362d95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2531
SELECT + col2 * 84 + 70 DIV col1 AS col1 FROM tab0 AS cor0
----
2772
6888
84

skipif mysql # not compatible
query I rowsort label-2531
SELECT + col2 * 84 + 70 / col1 AS col1 FROM tab0 AS cor0
----
2772
6888
84

query I rowsort
SELECT - col2 * + col2 * + 65 FROM tab1 AS cor0
----
-189540
-211185
-599040

query I rowsort
SELECT col0 * col2 + 71 FROM tab1 AS cor0
----
233
3719
7751

onlyif mysql # use DIV operator for integer division
query I rowsort label-2534
SELECT DISTINCT - col1 + col2 DIV col2 AS col2 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT - col1 + col2 / col2 AS col2 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT ( + 41 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT 42 + - 73 AS col2 FROM tab2
----
-31
-31
-31

query I rowsort
SELECT DISTINCT + 59 AS col1 FROM tab1
----
59

query I rowsort
SELECT + col0 * + col0 + - col1 AS col2 FROM tab2
----
18
6025
6224

query I rowsort
SELECT + 74 + col0 * col0 FROM tab1
----
4170
6474
83

query I rowsort
SELECT - col2 * - col0 * col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - - ( - col1 ) + col1 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2542
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + + col1 * 90 FROM tab1 AS cor0
----
1170
2340
900

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2544
SELECT - CAST( ( col1 ) AS SIGNED ) * - 46 AS col0 FROM tab1 AS cor0
----
1196
460
598

skipif mysql # not compatible
query I rowsort label-2544
SELECT - CAST ( ( col1 ) AS INTEGER ) * - 46 AS col0 FROM tab1 AS cor0
----
1196
460
598

query I rowsort
SELECT 72 * - 27 FROM tab2 AS cor0
----
-1944
-1944
-1944

query I rowsort
SELECT - 37 * col1 * - tab2.col0 + col1 AS col2 FROM tab2
----
170333
49708
8060

query I rowsort
SELECT - col2 * - col2 + col0 AS col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT cor0.col1 * + col1 + - ( col1 ) FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT + + ( col1 ) * col2 * + col0 + + cor0.col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
2808
35910
98592

query I rowsort
SELECT DISTINCT col1 - + tab2.col2 AS col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT 87 + col1 + 13 FROM tab0
----
186
191
197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 + + col2 col2 FROM tab1
----
119
122
161

query I rowsort
SELECT DISTINCT + col2 * col1 - - col0 AS col2 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT - col1 - - col1 * - tab2.col0 * col0 AS col2 FROM tab2
----
-106114
-1550
-359015

query I rowsort
SELECT ALL ( - col0 ) - col1 * + tab0.col2 AS col1 FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT ALL - 46 * - col2 FROM tab0 AS cor0
----
1518
3772
46

query I rowsort
SELECT ALL + 99 + col2 AS col1 FROM tab0 AS cor0
----
100
132
181

onlyif mysql # use DIV operator for integer division
query I rowsort label-2558
SELECT ALL + 67 DIV col2 - + col2 FROM tab0 AS cor0
----
-31
-82
66

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL + 67 / col2 - + col2 FROM tab0 AS cor0
----
-31
-82
66

query I rowsort
SELECT ALL - + col1 * - cor0.col2 * col2 + - col1 FROM tab2 AS cor0
----
22568
24531
39825

query I rowsort
SELECT ALL + col1 - col1 * - 39 FROM tab1 cor0
----
1040
400
520

query I rowsort
SELECT DISTINCT + - cor0.col0 * + col1 + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - cor0.col2 + + 55 * col0 AS col0 FROM tab1 cor0
----
111
3463
4304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 + 70 col2 FROM tab0 AS cor0
----
-722
-7228
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-2564
SELECT + - cor0.col2 * col2 DIV + 94 + col0 * col1 FROM tab1 AS cor0
----
47
606
942

skipif mysql # not compatible
query I rowsort label-2564
SELECT + - cor0.col2 * col2 / + 94 + col0 * col1 FROM tab1 AS cor0
----
47
606
942

query I rowsort
SELECT DISTINCT col0 + ( - cor0.col0 ) AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT + - col1 + ( + 42 ) * col1 AS col1 FROM tab1 AS cor0
----
1066
410
533

query I rowsort
SELECT DISTINCT col1 * 12 * 94 FROM tab1 AS cor0
----
11280
14664
29328

onlyif mysql # use DIV operator for integer division
query I rowsort label-2568
SELECT + col0 DIV 77 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2568
SELECT + col0 / 77 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - col2 + + 89 * 82 AS col0 FROM tab0 AS cor0
----
7216
7265
7297

onlyif mysql # use DIV operator for integer division
query I rowsort label-2570
SELECT - - col0 DIV ( - col2 ) - col1 * ( col2 ) * + col1 col0 FROM tab0 AS cor0
----
-244068
-679043
-9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2570
SELECT - - col0 / ( - col2 ) - col1 * ( col2 ) * + col1 col0 FROM tab0 AS cor0
----
-244068
-679043
-9444

query I rowsort
SELECT DISTINCT - col2 - col1 AS col1 FROM tab0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2572
SELECT DISTINCT + - cor0.col0 * + ( - 57 ) + col0 DIV col0 FROM tab0 AS cor0
----
1369
1996
5074

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT + - cor0.col0 * + ( - 57 ) + col0 / col0 FROM tab0 AS cor0
----
1369
1996
5074

query I rowsort
SELECT + 96 * col1 AS col0 FROM tab0 cor0
----
8256
8736
9312

query I rowsort
SELECT DISTINCT 19 - col2 * 3 * + col2 FROM tab0 AS cor0
----
-20153
-3248
16

query I rowsort
SELECT DISTINCT - 48 FROM tab2, tab1 cor0 CROSS JOIN tab0
----
-48

query I rowsort
SELECT ALL - 23 + - col1 * + col1 * - 87 AS col2 FROM tab0
----
643429
720424
818560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 * + col0 * - col1 col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT 62 * col0 * col1 AS col2 FROM tab0
----
127968
210490
502138

query I rowsort
SELECT + 74 + col1 FROM tab0
----
160
165
171

query I rowsort
SELECT DISTINCT - 19 * col2 AS col2 FROM tab2 AS cor0
----
-494
-513
-722

query I rowsort
SELECT ALL - - col1 + - col1 * - col1 AS col0 FROM tab1 AS cor0
----
110
182
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2582
SELECT ( + col0 ) + - CAST( ( col0 ) + 65 AS SIGNED ) AS col0 FROM tab0 cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-2582
SELECT ( + col0 ) + - CAST ( ( col0 ) + 65 AS INTEGER ) AS col0 FROM tab0 cor0
----
-65
-65
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-2583
SELECT ALL - ( - col0 ) * 84 + + col1 DIV col1 FROM tab2 AS cor0
----
589
6553
6637

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL - ( - col0 ) * 84 + + col1 / col1 FROM tab2 AS cor0
----
589
6553
6637

onlyif mysql # use DIV operator for integer division
query I rowsort label-2584
SELECT DISTINCT + 49 + + col0 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT + 49 + + col0 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2585
SELECT + col2 + col0 * + CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
216
3705
7776

skipif mysql # not compatible
query I rowsort label-2585
SELECT + col2 + col0 * + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2586
SELECT + col0 + + col2 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2586
SELECT + col0 + + col2 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col0 ) - col0 * + 96 AS col1 FROM tab1 cor0
----
-291
-6208
-7760

query I rowsort
SELECT ALL - tab2.col1 + col2 * col0 - col1 FROM tab2
----
127
1910
2968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2589
SELECT ALL col1 + - CAST( NULL AS SIGNED ) * + 22 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) * + 22 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2590
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) + + cor0.col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) + + cor0.col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 36 * tab0.col1 col0 FROM tab0
----
-3120
-3365
-3527

query I rowsort
SELECT + 35 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT - + 93 * col1 AS col2 FROM tab0 AS cor0
----
-7998
-8463
-9021

query I rowsort
SELECT DISTINCT - 74 * + col2 FROM tab2 AS cor0
----
-1924
-1998
-2812

query I rowsort
SELECT col0 - ( - col2 + + 96 ) * 53 AS col1 FROM tab2 AS cor0
----
-2995
-3632
-3650

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab2 cor3
----
13122 values hashing to 37aaccec8e8f71d145d4db8e61f7a2ac

query I rowsort
SELECT DISTINCT + + ( 93 ) + col0 AS col0 FROM tab2 AS cor0
----
100
171
172

query I rowsort
SELECT + + 52 * - col1 + col1 FROM tab2 cor0
----
-1581
-3009
-867

onlyif mysql # use DIV operator for integer division
query I rowsort label-2599
SELECT col2 DIV + col0 + col2 + cor0.col1 * 97 FROM tab2 AS cor0
----
1687
3037
5749

skipif mysql # not compatible
query I rowsort label-2599
SELECT col2 / + col0 + col2 + cor0.col1 * 97 FROM tab2 AS cor0
----
1687
3037
5749

query I rowsort
SELECT + 59 * - col1 + - cor0.col0 - 4 AS col1 FROM tab2 AS cor0
----
-1086
-1840
-3563

query I rowsort
SELECT DISTINCT + - 86 * - col2 AS col2 FROM tab1 AS cor0
----
4644
4902
8256

query I rowsort
SELECT DISTINCT - + col2 + - col1 + col1 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - col2 * col1 * + cor0.col2 + - 78 - - col2 FROM tab2 AS cor0
----
-22650
-24588
-39936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 66 ) * + col2 col2 FROM tab2 cor0
----
-1716
-1782
-2508

query I rowsort
SELECT 87 - col1 FROM tab0 AS cor0
----
-10
-4
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2606
SELECT DISTINCT - CAST( - 46 AS SIGNED ) AS col0 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-2606
SELECT DISTINCT - CAST ( - 46 AS INTEGER ) AS col0 FROM tab0
----
46

query I rowsort
SELECT ALL + 54 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT DISTINCT - 72 + 59 AS col2 FROM tab1
----
-13

query I rowsort
SELECT ALL + col1 + col0 * - col2 * 14 + 24 AS col2 FROM tab2
----
-2591
-28309
-41987

query I rowsort
SELECT - col1 + col0 - 39 FROM tab2 AS cor0
----
-20
-63
23

query I rowsort
SELECT - col2 + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT 48 + col0 AS col1 FROM tab1 AS cor0
----
112
128
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 * - col0 + - 61 col2 FROM tab2 AS cor0
----
-138
-919
-930

query I rowsort
SELECT - - col2 - - cor0.col1 * + col1 * col0 FROM tab1 AS cor0
----
13616
2082
6457

query I rowsort
SELECT - col1 * - col0 + + col1 * - 2 FROM tab1 AS cor0
----
1014
26
620

onlyif mysql # use DIV operator for integer division
query I rowsort label-2616
SELECT + col1 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2616
SELECT + col1 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 * col2 * + cor0.col0 - - 10 AS col1 FROM tab0 cor0
----
26146
45
598446

onlyif mysql # use DIV operator for integer division
query I rowsort label-2618
SELECT DISTINCT col1 * + ( 69 ) + + col1 DIV + ( + col0 ) AS col1 FROM tab0 AS cor0
----
5937
6280
6695

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT col1 * + ( 69 ) + + col1 / + ( + col0 ) AS col1 FROM tab0 AS cor0
----
5937
6280
6695

query I rowsort
SELECT DISTINCT + col2 + - col0 AS col2 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT col1 * - 0 + col0 AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT - col0 * - 66 AS col2 FROM tab0 AS cor0
----
1584
2310
5874

query I rowsort
SELECT ALL + col2 + cor0.col2 * col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT - col0 + + col0 AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - + col0 * cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-2625
SELECT - ( - col0 ) * col1 DIV - 35 FROM tab0 AS cor0
----
-231
-58
-97

skipif mysql # not compatible
query I rowsort label-2625
SELECT - ( - col0 ) * col1 / - 35 FROM tab0 AS cor0
----
-231
-58
-97

query I rowsort
SELECT DISTINCT 93 FROM tab2, tab1, tab2 AS cor0
----
93

query I rowsort
SELECT ALL 85 + col0 * + col0 + - col0 FROM tab1
----
4117
6405
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2628
SELECT ALL 52 + - tab2.col0 + - CAST( NULL AS SIGNED ) * col1 / - tab2.col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL 52 + - tab2.col0 + - CAST ( NULL AS INTEGER ) * col1 / - tab2.col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 36 * - col0 FROM tab0
----
-1260
-3204
-864

query I rowsort
SELECT - 88 * + col1 + ( - ( + col1 ) ) * + col2 FROM tab1 AS cor0
----
-1450
-2392
-3692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * ( col0 + + cor0.col1 ) col2 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT + col1 + 63 + + col0 * col2 FROM tab1 AS cor0
----
251
3721
7756

query I rowsort
SELECT ( col2 ) * 61 AS col2 FROM tab0
----
2013
5002
61

query I rowsort
SELECT DISTINCT + - col2 + col2 + col1 * cor0.col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + col0 + + col0 + col2 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT ALL + col1 * cor0.col0 * + 42 + col0 AS col0 FROM tab0 cor0
----
142625
340247
86712

query I rowsort
SELECT + 24 * col2 - col1 AS col1 FROM tab0 AS cor0
----
-73
1877
706

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 2 AS REAL ) AS col2 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL + - 10 * - col0 - col1 FROM tab1 cor0
----
4
630
787

query I rowsort
SELECT ALL - col0 - - col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-2641
SELECT col1 * col1 DIV + col1 + 39 AS col1 FROM tab1 AS cor0
----
49
52
65

skipif mysql # not compatible
query I rowsort label-2641
SELECT col1 * col1 / + col1 + 39 AS col1 FROM tab1 AS cor0
----
49
52
65

query I rowsort
SELECT + + ( + col1 ) - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) + col0 * col0 * + col0 AS col0 FROM tab1 AS cor0
----
24
262080
511920

query I rowsort
SELECT DISTINCT cor0.col2 + - col2 * - col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT + 34 * + col1 + - col0 * col0 FROM tab2 AS cor0
----
-4078
-5663
1005

query I rowsort
SELECT ALL col0 * - col2 * col2 AS col1 FROM tab1 cor0
----
-207936
-737280
-8748

query I rowsort
SELECT ALL + ( 91 ) - - col2 FROM tab2 AS cor0
----
117
118
129

query I rowsort
SELECT + - col2 * + col2 + col2 * 77 FROM tab1 AS cor0
----
-1824
1140
1242

onlyif mysql # use DIV operator for integer division
query I rowsort label-2649
SELECT DISTINCT - 4 + col2 DIV cor0.col0 FROM tab0 AS cor0
----
-3
-4

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT - 4 + col2 / cor0.col0 FROM tab0 AS cor0
----
-3
-4

query I rowsort
SELECT + + 41 * - col0 * + col1 FROM tab2 AS cor0
----
-188682
-55063
-8897

query I rowsort
SELECT DISTINCT - 99 AS col2 FROM tab1
----
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2652
SELECT - 24 + + cor0.col2 DIV - 84 FROM tab2 AS cor0
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-2652
SELECT - 24 + + cor0.col2 / - 84 FROM tab2 AS cor0
----
-24
-24
-24

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 - + col0 * 36 AS col0 FROM tab1 cor0
----
-186
-2944
-3920

query I rowsort
SELECT DISTINCT - - 1 * + cor0.col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ( cor0.col0 ) + + ( - 95 ) * col1 AS col2 FROM tab2 cor0
----
-1536
-2938
-5527

query I rowsort
SELECT - col1 + cor0.col2 * - col0 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT ALL 62 FROM tab0, tab0 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT DISTINCT 84 * col0 AS col1 FROM tab2 AS cor0
----
588
6552
6636

query I rowsort
SELECT DISTINCT 56 * - cor0.col1 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-4816
-5096
-5432

query I rowsort
SELECT + 97 * + cor0.col2 * col2 FROM tab1 AS cor0
----
282852
315153
893952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 - + tab1.col0 col1 FROM tab1
----
-22
-38
39

query I rowsort
SELECT ALL col2 * col1 - col2 * + col0 AS col0 FROM tab1
----
-3078
-6432
1242

onlyif mysql # use DIV operator for integer division
query I rowsort label-2663
SELECT ALL + 0 DIV col2 - - col1 AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL + 0 / col2 - - col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - - 17 - cor0.col1 FROM tab0 AS cor0
----
-69
-74
-80

query I rowsort
SELECT + col0 * col1 - col1 AS col1 FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-2666
SELECT - + col2 DIV col1 + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2666
SELECT - + col2 / col1 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col2 * col0 + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - + col0 + + cor0.col0 + - 63 * - 59 FROM tab0 AS cor0
----
3717

query I rowsort
SELECT col2 * - col1 * 50 + col2 AS col0 FROM tab0 AS cor0
----
-141867
-373018
-4849

onlyif mysql # use DIV operator for integer division
query I rowsort label-2670
SELECT DISTINCT + col0 * col1 + + col0 * col1 + cor0.col0 DIV 28 FROM tab1 AS cor0
----
1282
156
2082

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT + col0 * col1 + + col0 * col1 + cor0.col0 / 28 FROM tab1 AS cor0
----
1282
156
2082

query I rowsort
SELECT col0 + 96 * col0 * ( 31 ) - - col2 FROM tab1
----
190585
238256
8985

query I rowsort
SELECT DISTINCT col1 * - col1 * tab2.col1 - - ( tab2.col0 ) * + tab2.col2 AS col1 FROM tab2
----
-1911
-203351
-29602

query I rowsort
SELECT 11 + - col1 - tab0.col1 AS col1 FROM tab0
----
-161
-171
-183

query I rowsort
SELECT DISTINCT - col2 * col2 * - col2 - tab1.col0 AS col0 FROM tab1
----
157461
185129
884656

query I rowsort
SELECT ( 83 ) + + col1 + - col0 * col0 AS col2 FROM tab2
----
-5942
-6141
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-2676
SELECT ALL - 0 DIV col2 - + col1 AS col1 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL - 0 / col2 - + col1 AS col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT 69 + - col1 FROM tab1
----
43
56
59

query I rowsort
SELECT + col0 + + col0 * - 51 + 80 FROM tab0
----
-1120
-1670
-4370

query I rowsort
SELECT - + col0 * col0 * col0 + 92 AS col2 FROM tab2 AS cor0
----
-251
-474460
-492947

query I rowsort
SELECT tab0.col0 * + col0 * - 90 AS col1 FROM tab0
----
-110250
-51840
-712890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + tab2.col0 col2 FROM tab2
----
137
38
96

query I rowsort
SELECT tab0.col0 - 50 FROM tab0
----
-15
-26
39

query I rowsort
SELECT ALL - col0 * cor0.col1 * + col0 - + 52 * col2 FROM tab0 AS cor0
----
-118877
-51252
-725075

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2684
SELECT - CAST( + col1 AS SIGNED ) FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2684
SELECT - CAST ( + col1 AS INTEGER ) FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - 78 * 96 AS col0 FROM tab0 AS cor0
----
-7488

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col2 AS REAL ) + col2 AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2687
SELECT ALL + ( col2 ) * col1 * CAST( + 43 AS SIGNED ) col1 FROM tab0 AS cor0
----
122034
320866
4171

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL + ( col2 ) * col1 * CAST ( + 43 AS INTEGER ) col1 FROM tab0 AS cor0
----
122034
320866
4171

query I rowsort
SELECT DISTINCT - ( - 80 ) AS col2 FROM tab1 AS cor0
----
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2689
SELECT DISTINCT col2 DIV + col0 + col1 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT col2 / + col0 + col1 FROM tab2 AS cor0
----
17
34
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2690
SELECT + col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT + col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2691
SELECT ALL col2 * CAST( - 26 AS SIGNED ) + col1 col2 FROM tab1 AS cor0
----
-1378
-1472
-2483

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL col2 * CAST ( - 26 AS INTEGER ) + col1 col2 FROM tab1 AS cor0
----
-1378
-1472
-2483

query I rowsort
SELECT + col2 + 40 AS col0 FROM tab2 AS cor0
----
66
67
78

query I rowsort
SELECT cor1.col0 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL - - col0 + + col1 + 45 AS col0 FROM tab2 AS cor0
----
141
182
83

query I rowsort
SELECT col2 * + ( + ( col0 ) ) + + 97 AS col2 FROM tab1 AS cor0
----
259
3745
7777

query I rowsort
SELECT DISTINCT - + col2 + - 25 AS col1 FROM tab2 AS cor0
----
-51
-52
-63

query I rowsort
SELECT - 89 * col0 - col2 FROM tab0 AS cor0
----
-2169
-3116
-8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-2698
SELECT + 52 * - 27 - col0 DIV - col1 FROM tab1 AS cor0
----
-1398
-1398
-1404

skipif mysql # not compatible
query I rowsort label-2698
SELECT + 52 * - 27 - col0 / - col1 FROM tab1 AS cor0
----
-1398
-1398
-1404

query I rowsort
SELECT + + col1 * 69 FROM tab0 AS cor0
----
5934
6279
6693

query I rowsort
SELECT + col0 + + col1 * - col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT 54 * - 42 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 746104d6600d910aadd4ab7e259c8270

onlyif mysql # use DIV operator for integer division
query I rowsort label-2702
SELECT DISTINCT - 76 + - col2 * col1 DIV col1 FROM tab0 AS cor0
----
-109
-158
-77

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT - 76 + - col2 * col1 / col1 FROM tab0 AS cor0
----
-109
-158
-77

query I rowsort
SELECT ALL - 88 + + col0 * 79 FROM tab0 AS cor0
----
1808
2677
6943

query I rowsort
SELECT cor2.col0 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to ee8b23a58dda2d92e14ed437e06ed8d2

query I rowsort
SELECT ALL + col0 * cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + ( - col2 * col1 ) + + col1 * - col0 FROM tab2
----
-1054
-1989
-6136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col0 FROM tab0, tab2 cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT + tab0.col2 + col0 * col1 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT 42 * col2 + + col0 * col1 FROM tab0
----
11543
3437
3450

query I rowsort
SELECT DISTINCT 31 * tab0.col1 FROM tab0, tab2, tab0 AS cor0
----
2666
2821
3007

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2712
SELECT ALL + col0 * cor0.col0 * - CAST( - col0 * col1 AS SIGNED ) + col0 FROM tab1 AS cor0
----
2621504
6656080
705

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL + col0 * cor0.col0 * - CAST ( - col0 * col1 AS INTEGER ) + col0 FROM tab1 AS cor0
----
2621504
6656080
705

query I rowsort
SELECT ALL 0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT + col1 * tab0.col1 + tab0.col1 AS col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT + col0 * 71 FROM tab2 AS cor0
----
497
5538
5609

query I rowsort
SELECT - tab0.col1 * + 34 AS col1 FROM tab0
----
-2924
-3094
-3298

query I rowsort
SELECT DISTINCT - ( tab2.col0 ) AS col0 FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2719
SELECT DISTINCT - col1 DIV 44 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT - col1 / 44 AS col1 FROM tab1
----
0

query I rowsort
SELECT col1 * + tab0.col1 * + col1 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT - col2 + + col2 * + col2 AS col2 FROM tab2
----
1406
650
702

query I rowsort
SELECT 0 * col1 + col2 * - col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 33 * 71 + col0 AS col1 FROM tab2 AS cor0
----
2350
2421
2422

query I rowsort
SELECT + cor1.col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - 75 + - col2 AS col2 FROM tab0 AS cor0
----
-108
-157
-76

query I rowsort
SELECT 14 * 69 AS col2 FROM tab0
----
966
966
966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 * col2 * - col0 col0 FROM tab2
----
-111074
-6993
-75036

query I rowsort
SELECT + - col1 + col0 * col0 FROM tab0 cor0
----
1128
490
7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-2729
SELECT - col2 + col0 DIV ( + col2 * cor0.col2 + ( - col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2729
SELECT - col2 + col0 / ( + col2 * cor0.col2 + ( - col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT 80 * col1 FROM tab0 AS cor0
----
6880
7280
7760

query I rowsort
SELECT - col2 + - col0 + - col1 * col2 AS col0 FROM tab0 AS cor0
----
-133
-2895
-7633

query I rowsort
SELECT tab0.col2 * + 36 FROM tab0, tab0 AS cor0
----
9 values hashing to e7a0bf023ddeb656858033a46cbfc996

query I rowsort
SELECT + 74 + cor0.col2 AS col0 FROM tab1 AS cor0
----
128
131
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 16 * + col0 col1 FROM tab0 AS cor0
----
1424
384
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + tab0.col2 col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT tab0.col0 * - col0 + - col1 - col1 * + col0 FROM tab0
----
-16111
-2726
-4717

query I rowsort
SELECT ALL + col0 * + tab2.col2 AS col0 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 * col0 col2 FROM tab0
----
35
7298
792

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 - col1 * - col0 NOT BETWEEN - cor0.col2 + col1 AND NULL OR - col2 + + col2 * col1 NOT BETWEEN NULL AND + col1 - col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT + col2 * - col1 + + tab2.col1 + col0 AS col0 FROM tab2
----
-1397
-550
-799

query I rowsort
SELECT - + col1 + - cor0.col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - col2 - + col2 AS col0 FROM tab2 cor0
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2743
SELECT DISTINCT col1 DIV col2 - tab1.col1 AS col0 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT col1 / col2 - tab1.col1 AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT col2 * col1 - col0 * col2 AS col2 FROM tab0
----
164
2046
62

query I rowsort
SELECT + col1 + col2 + - col0 AS col1 FROM tab2
----
-24
51
7

query I rowsort
SELECT DISTINCT col1 + tab0.col2 - col0 AS col2 FROM tab0
----
63
84
95

query I rowsort
SELECT DISTINCT + col2 - tab1.col2 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2748
SELECT + col2 * col1 + col0 DIV - col1 FROM tab2 AS cor0
----
1533
642
837

skipif mysql # not compatible
query I rowsort label-2748
SELECT + col2 * col1 + col0 / - col1 FROM tab2 AS cor0
----
1533
642
837

query I rowsort
SELECT + + col1 + + col0 * col0 AS col0 FROM tab0 cor0
----
1322
662
8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 * + col1 col0 FROM tab2
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-2751
SELECT DISTINCT - cor0.col2 * + cor0.col2 + - col1 DIV + col0 col1 FROM tab0 AS cor0
----
-1092
-3
-6725

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2751
SELECT DISTINCT - cor0.col2 * + cor0.col2 + - col1 / + col0 col1 FROM tab0 AS cor0
----
-1092
-3
-6725

onlyif mysql # use DIV operator for integer division
query I rowsort label-2752
SELECT ALL cor0.col1 + + col0 DIV col0 FROM tab0 cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL cor0.col1 + + col0 / col0 FROM tab0 cor0
----
87
92
98

query I rowsort
SELECT + col1 * + cor0.col1 + - col0 * col2 * - col0 AS col2 FROM tab0 cor0
----
10634
26404
657803

query I rowsort
SELECT DISTINCT - + cor0.col1 * - cor0.col1 + col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL - 63 * - col1 AS col2 FROM tab1
----
1638
630
819

query I rowsort
SELECT tab0.col1 + - col2 * col0 AS col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT + cor0.col1 + + col2 * col0 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT + 20 * - col1 * + col2 FROM tab1 AS cor0
----
-11400
-24960
-28080

query I rowsort
SELECT cor0.col0 + - col0 - col1 * cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col2 + - col0 * - col1 - - col1 * - col0 AS col0 FROM tab0 cor0
----
1
33
82

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE tab2.col1 <> NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE ( - tab2.col1 ) IN ( col2 )
----

query I rowsort
SELECT DISTINCT - col2 * col1 * col0 + col2 * - tab2.col1 FROM tab2
----
-121186
-51680
-6696

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT IN ( col0 )
----

query I rowsort
SELECT ALL col1 + - col1 * col0 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT tab2.col1 * + col1 + col2 AS col1 FROM tab2
----
327
3507
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col0 * + col2 * + col1 col2 FROM tab2
----
-119574
-50955
-5852

query I rowsort
SELECT DISTINCT + col0 * - col0 + - col0 + col1 FROM tab2
----
-25
-6103
-6303

onlyif mysql # use DIV operator for integer division
query I rowsort label-2771
SELECT ALL - col0 DIV col0 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL - col0 / col0 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - col2 + col0 * - col0 * tab1.col2 AS col0 FROM tab1
----
-233529
-540
-614496

query I rowsort
SELECT DISTINCT col2 * + col2 + + col0 + col0 * col2 FROM tab0
----
14111
1905
71

query I rowsort
SELECT ALL col1 * col2 + + col2 * ( + col1 + + col2 ) FROM tab2 AS cor0
----
2403
2736
3744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 * cor0.col2 col2 FROM tab0 AS cor0
----
-264
-656
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2776
SELECT DISTINCT col0 DIV col0 + col1 * 20 * - cor0.col0 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
-12159
-1481
-19759

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT col0 / col0 + col1 * 20 * - cor0.col0 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
-12159
-1481
-19759

query I rowsort
SELECT - 81 * col0 - - col0 FROM tab1 AS cor0
----
-240
-5120
-6400

query I rowsort
SELECT ALL col0 + - col0 + col0 FROM tab2
----
7
78
79

query I rowsort
SELECT + col1 * col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * - col2 * + cor0.col0 col1 FROM tab1 AS cor0
----
-233472
-486
-614400

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 )
----

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2783
SELECT ALL + col2 DIV - col1 + col0 + col0 AS col0 FROM tab2 AS cor0
----
14
156
156

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL + col2 / - col1 + col0 + col0 AS col0 FROM tab2 AS cor0
----
14
156
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + + col2 * - col0 * - col2 + - col0 col2 FROM tab1
----
211968
743600
8754

query I rowsort
SELECT col2 + + col0 - col0 * col0 AS col2 FROM tab1
----
-3975
-6224
48

query III rowsort
SELECT * FROM tab0 WHERE col0 * - col1 BETWEEN col2 - col2 * + col0 * col1 AND NULL
----

query I rowsort
SELECT - col0 - col0 * + tab2.col2 FROM tab2
----
-196
-2106
-3081

query III rowsort
SELECT * FROM tab0 WHERE + col1 IN ( col1 + + col2 )
----

query I rowsort
SELECT DISTINCT col0 * + col1 * + col1 + - col1 AS col0 FROM tab2
----
22814
271459
6696

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE - col1 > NULL
----

query I rowsort
SELECT - col2 * tab1.col1 AS col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT tab1.col1 * col2 + col1 + col1 * + col1 FROM tab1 WHERE NOT NULL >= + col0 * - col1
----

query I rowsort
SELECT ALL col2 * - col0 + col0 FROM tab2
----
-182
-1950
-2923

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT col0 - - tab2.col2 * + col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL 23 * col1 + col2 AS col0 FROM tab2 AS cor0
----
1383
429
740

query I rowsort
SELECT DISTINCT - col1 * + 46 * col1 + + col0 FROM tab0 AS cor0
----
-340192
-380837
-432779

query I rowsort
SELECT ALL + col1 - col1 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + col0 ) * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - cor0.col0 + col0 * col0 FROM tab2 AS cor0
----
42
6006
6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-2801
SELECT DISTINCT + + ( col1 ) + col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT + + ( col1 ) + col0 / - col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - + col0 * ( + col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + 23 * - col2 AS col0 FROM tab0 AS cor0
----
-1886
-23
-759

query I rowsort
SELECT + ( cor0.col2 ) * - col0 + - 14 * - col1 FROM tab0 AS cor0
----
-6024
1323
412

query I rowsort
SELECT DISTINCT + - col2 + cor0.col0 * col0 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-13857
-42876
-705051

onlyif mysql # use DIV operator for integer division
query I rowsort label-2806
SELECT DISTINCT + 42 DIV cor0.col2 FROM tab0 AS cor0
----
0
1
42

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT + 42 / cor0.col2 FROM tab0 AS cor0
----
0
1
42

query I rowsort
SELECT 8 AS col0 FROM tab2 cor0
----
8
8
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2808
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2808
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + col0 * - col1 * - ( col0 ) FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + - col2 - + cor0.col0 * - col0 AS col1 FROM tab1 cor0
----
-45
4039
6304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 98 col1 FROM tab0 AS cor0
----
-16
-65
-97

query I rowsort
SELECT 32 + col1 FROM tab2 AS cor0
----
49
63
91

query I rowsort
SELECT + ( + col0 ) * + col0 + col2 AS col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT - ( 85 ) + + col2 FROM tab0 AS cor0
----
-3
-52
-84

query I rowsort
SELECT - - ( 63 ) * col0 FROM tab1 cor0
----
189
4032
5040

onlyif mysql # use DIV operator for integer division
query I rowsort label-2816
SELECT + cor0.col2 * col1 DIV + col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2816
SELECT + cor0.col2 * col1 / + col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2817
SELECT 29 DIV tab0.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3671239bdd34757ceaad67b189a41493

skipif mysql # not compatible
query I rowsort label-2817
SELECT 29 / tab0.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3671239bdd34757ceaad67b189a41493

query I rowsort
SELECT - + 96 AS col1 FROM tab0 AS cor0
----
-96
-96
-96

query I rowsort
SELECT ( col0 ) + + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - - cor0.col0 FROM tab0, tab1 cor0
----
3
64
80

query I rowsort
SELECT + col0 * - col2 * + col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT ALL + col1 + col2 * cor0.col2 * - col0 AS col1 FROM tab1 AS cor0
----
-207926
-737267
-8722

query I rowsort
SELECT DISTINCT + 78 * + col1 + - col0 * - col0 FROM tab1 AS cor0
----
2037
4876
7414

query I rowsort
SELECT ALL col0 * 74 + + col2 FROM tab1
----
276
4793
6016

query I rowsort
SELECT ALL ( tab0.col2 ) * col1 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ( col1 ) * - ( + col2 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT col2 + 43 * - col0 FROM tab0 cor0
----
-1504
-3745
-999

query I rowsort
SELECT col1 * + ( - col0 ) + col0 AS col1 FROM tab0 cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-2829
SELECT col2 * col0 DIV + col2 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2829
SELECT col2 * col0 / + col2 AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + col2 + + col0 * + 63 + - ( col1 ) * + col0 AS col2 FROM tab2
----
251
338
3672

query I rowsort
SELECT col1 + + 50 AS col2 FROM tab0 AS cor0
----
136
141
147

query I rowsort
SELECT + col0 + - col1 * + col1 + + col1 AS col2 FROM tab1 AS cor0
----
-26
-647
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2833
SELECT col0 * CAST( NULL AS DECIMAL ) + col2 * - col2 * cor0.col2 - + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT col0 * CAST ( NULL AS REAL ) + col2 * - col2 * cor0.col2 - + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - 29 * - 36 * - col1 FROM tab0 AS cor0
----
-101365
-89870
-95095

query I rowsort
SELECT DISTINCT - cor0.col2 + - 85 FROM tab1 AS cor0
----
-139
-142
-181

query I rowsort
SELECT DISTINCT + col2 * - col0 * + col0 + + col2 * - 59 FROM tab2 AS cor0
----
-159718
-239400
-2916

onlyif mysql # use DIV operator for integer division
query I rowsort label-2837
SELECT ALL - cor0.col0 + - col1 - + col0 DIV col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - cor0.col0 + - col1 - + col0 / col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT 47 * - 49 AS col2 FROM tab2, tab1 AS cor0
----
-2303

query I rowsort
SELECT ALL col1 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + 17 + col2 FROM tab2
----
43
44
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ALL - 15 + + 77 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT DISTINCT + cor0.col1 * 1 + + ( col0 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL col0 - + ( + col2 ) AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - col1 + - col2 + + cor0.col0 * ( col0 ) AS col1 FROM tab2 cor0
----
-9
5999
6186

query I rowsort
SELECT ALL - col0 + col0 - col0 AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL col2 * + col0 + - cor0.col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL - col1 * ( col0 ) * - col2 - col0 AS col0 FROM tab2
----
119574
50955
5852

query I rowsort
SELECT tab2.col2 + - 50 + col0 AS col0 FROM tab2
----
-16
54
67

query I rowsort
SELECT DISTINCT - - cor0.col0 FROM tab0, tab1, tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2851
SELECT DISTINCT ( + col0 + + col0 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT ( + col0 + + col0 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2852
SELECT CAST( NULL AS SIGNED ) * tab1.col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2852
SELECT CAST ( NULL AS INTEGER ) * tab1.col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * + col0 * cor0.col0 FROM tab1 cor0
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + + cor0.col0 * + col1 * col1 col1 FROM tab0 cor0
----
177528
329350
737098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * cor0.col0 col2 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2856
SELECT DISTINCT col0 DIV + col1 - - 44 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT col0 / + col1 - - 44 FROM tab0 AS cor0
----
44

query I rowsort
SELECT + 28 AS col2 FROM tab1
----
28
28
28

query I rowsort
SELECT ALL - 1 * - col1 + + col0 FROM tab0
----
110
132
180

query I rowsort
SELECT 4 + col1 AS col2 FROM tab1
----
14
17
30

query I rowsort
SELECT DISTINCT + 69 + cor0.col1 AS col2 FROM tab1 AS cor0
----
79
82
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2861
SELECT ALL col0 + - col0 DIV 77 FROM tab0 cor0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL col0 + - col0 / 77 FROM tab0 cor0
----
24
35
88

query I rowsort
SELECT DISTINCT + 74 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
138
154
77

query I rowsort
SELECT + 28 * col0 AS col1 FROM tab1 AS cor0
----
1792
2240
84

query I rowsort
SELECT ALL + - ( col2 ) AS col2 FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2865
SELECT DISTINCT - col0 DIV - tab2.col0 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT - col0 / - tab2.col0 AS col0 FROM tab2
----
1

query I rowsort
SELECT - col2 * + tab2.col2 * ( - col1 ) FROM tab2
----
22599
24548
39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + 91 col2 FROM tab1 AS cor0
----
65
78
81

query I rowsort
SELECT DISTINCT + col1 * 34 AS col0 FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT DISTINCT - cor1.col2 - cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
-164
-2
-66

query I rowsort
SELECT ALL - col0 + - col0 - + col0 FROM tab0 AS cor0
----
-105
-267
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * ( col1 * col0 ) col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT + cor0.col0 * + col2 + + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-2873
SELECT + - col2 * 61 DIV - col1 FROM tab1 cor0
----
126
347
450

skipif mysql # not compatible
query I rowsort label-2873
SELECT + - col2 * 61 / - col1 FROM tab1 cor0
----
126
347
450

query I rowsort
SELECT 20 * col2 + col0 FROM tab2
----
547
598
839

query I rowsort
SELECT - - cor0.col1 * 67 AS col0 FROM tab0 AS cor0
----
5762
6097
6499

query I rowsort
SELECT DISTINCT - 92 + cor0.col0 FROM tab2 AS cor0
----
-13
-14
-85

query I rowsort
SELECT DISTINCT col0 + col0 + col1 * + 0 AS col2 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT - + ( + cor0.col0 ) * col2 + col0 AS col0 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT + 0 * col2 + + col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + 41 + - col2 AS col1 FROM tab0 AS cor0
----
-41
40
8

query I rowsort
SELECT + col2 + 36 AS col1 FROM tab0
----
118
37
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2882
SELECT ALL col1 * col2 + col2 * + CAST( col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
1292
1674
3068

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL col1 * col2 + col2 * + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
1292
1674
3068

query I rowsort
SELECT ALL - col2 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + - 24 + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-313
-3505
-985

query I rowsort
SELECT ALL - - col2 * - col1 + + col1 * + col1 FROM tab2 AS cor0
----
-357
124
1947

onlyif mysql # use DIV operator for integer division
query I rowsort label-2886
SELECT col2 DIV 38 - cor0.col2 * col2 FROM tab2 AS cor0
----
-1443
-676
-729

skipif mysql # not compatible
query I rowsort label-2886
SELECT col2 / 38 - cor0.col2 * col2 FROM tab2 AS cor0
----
-1443
-676
-729

query I rowsort
SELECT ALL + 15 + - col1 AS col0 FROM tab1 AS cor0
----
-11
2
5

query I rowsort
SELECT + col2 + + 58 FROM tab2 AS cor0
----
84
85
96

query I rowsort
SELECT DISTINCT 87 * 31 FROM tab1 AS cor0
----
2697

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) * col1 + CAST ( + col0 AS REAL ) * - col0 FROM tab0 AS cor0
----
360
6820
8184

query I rowsort
SELECT ALL - col1 * col2 + + col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - col1 + + 69 AS col0 FROM tab2 AS cor0
----
10
38
52

query I rowsort
SELECT ALL - ( cor0.col2 ) * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * + ( col2 ) AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL + - col0 * - col2 * ( col0 ) AS col0 FROM tab2 AS cor0
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2897
SELECT DISTINCT - + col2 + - col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT - + col2 + - col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 2 * - col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT 99 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab2 cor1
----
81 values hashing to c841a8d826151b422ecdb71db0250739

query I rowsort
SELECT col2 * - 15 + col2 FROM tab2
----
-364
-378
-532

query I rowsort
SELECT ALL - 84 AS col0 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to aaabc1266a1bb4f477091ffbc243c849

query I rowsort
SELECT - ( + 38 ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
-21
-7
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-2903
SELECT - col2 DIV ( col1 * - col1 ) + col1 DIV col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2903
SELECT - col2 / ( col1 * - col1 ) + col1 / col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2904
SELECT CAST( NULL AS SIGNED ) * - col2 * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2904
SELECT CAST ( NULL AS INTEGER ) * - col2 * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - col2 + + col1 * + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - tab1.col2 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT 37 * ( + cor0.col1 ) * + col0 FROM tab1 cor0
----
23680
2886
38480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 col1 FROM tab2
----
53
53
53

query I rowsort
SELECT ALL - + 91 + - col2 AS col2 FROM tab1 AS cor0
----
-145
-148
-187

query I rowsort
SELECT DISTINCT + + ( - 43 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-2911
SELECT DISTINCT - - cor0.col2 + + col2 + - 45 DIV + 63 FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT - - cor0.col2 + + col2 + - 45 / + 63 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + 46 * - col1 + - col0 AS col0 FROM tab1 AS cor0
----
-1199
-524
-678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 44 * col2 + 59 + - col2 * + col1 col1 FROM tab2 AS cor0
----
-331
1085
410

query I rowsort
SELECT - ( + cor0.col0 ) + + 50 * col0 - - col1 * col1 FROM tab1 AS cor0
----
3236
4089
823

query I rowsort
SELECT DISTINCT - 47 * + col1 FROM tab0 cor0
----
-4042
-4277
-4559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 80 - - col2 col2 FROM tab0 AS cor0
----
-2607
-6478
-79

query I rowsort
SELECT ALL col0 - 72 * col0 AS col2 FROM tab1 AS cor0
----
-213
-4544
-5680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT DISTINCT col1 + ( col0 ) - col0 FROM tab1
----
10
13
26

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab0 AS cor2, tab0 AS cor3
----
13122 values hashing to 6ed002c13c29f175b4b2acac962d7fa0

query I rowsort
SELECT + 90 AS col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT cor0.col0 * ( 98 ) - + col0 FROM tab0 AS cor0
----
2328
3395
8633

onlyif mysql # use DIV operator for integer division
query I rowsort label-2924
SELECT tab0.col1 DIV + col1 + - tab0.col1 - col1 AS col0 FROM tab0
----
-171
-181
-193

skipif mysql # not compatible
query I rowsort label-2924
SELECT tab0.col1 / + col1 + - tab0.col1 - col1 AS col0 FROM tab0
----
-171
-181
-193

onlyif mysql # use DIV operator for integer division
query I rowsort label-2925
SELECT + - col0 DIV + ( + col0 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2925
SELECT + - col0 / + ( + col0 ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + - cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col1 AS REAL ) + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - - cor0.col2 + col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT + ( 94 ) * cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f921c393277435555824b774774f1983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 * ( 90 * + col1 ) col2 FROM tab0
----
665640
745290
846810

onlyif mysql # use DIV operator for integer division
query I rowsort label-2931
SELECT + - col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-2931
SELECT + - col2 / - col0 AS col2 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL - + col2 + + col2 * + cor0.col1 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
-119904
-32547
-75870

query I rowsort
SELECT ( + col2 ) * col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + ( col2 ) + + col0 * - col0 FROM tab2 cor0
----
-22
-6058
-6203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2935
SELECT CAST( - 69 AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ca5f4bc365dc2c6b14187d6ffc83a01d

skipif mysql # not compatible
query I rowsort label-2935
SELECT CAST ( - 69 AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ca5f4bc365dc2c6b14187d6ffc83a01d

query I rowsort
SELECT DISTINCT + ( - 92 ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 col0 FROM tab0, tab0 AS cor0
----
2

query I rowsort
SELECT + cor0.col0 * col1 + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT 69 + - tab2.col1 * col0 AS col0 FROM tab2
----
-1274
-148
-4533

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2940
SELECT - + col0 * CAST( col2 AS SIGNED ) + col2 FROM tab0 AS cor0
----
-34
-7216
-759

skipif mysql # not compatible
query I rowsort label-2940
SELECT - + col0 * CAST ( col2 AS INTEGER ) + col2 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-2941
SELECT col2 DIV 58 + col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-2941
SELECT col2 / 58 + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + + col1 * 37 AS col0 FROM tab0 AS cor0
----
3182
3367
3589

query I rowsort
SELECT col1 + col0 - + cor0.col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - 6 FROM tab1, tab0, tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - - ( - col1 ) * - col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 48 + col2 * + tab1.col2 FROM tab1
----
2964
3297
9264

onlyif mysql # use DIV operator for integer division
query I rowsort label-2947
SELECT + col0 DIV - col0 + - col2 FROM tab2
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-2947
SELECT + col0 / - col0 + - col2 FROM tab2
----
-27
-28
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-2948
SELECT ( 23 ) DIV col0 AS col1 FROM tab2 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2948
SELECT ( 23 ) / col0 AS col1 FROM tab2 cor0
----
0
0
3

query I rowsort
SELECT DISTINCT cor0.col2 * 0 + - col0 AS col1 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - col0 * + 16 + col2 AS col2 FROM tab2 AS cor0
----
-1222
-1226
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2951
SELECT ALL + + col1 * - col1 + col0 DIV col0 + + 32 FROM tab0 AS cor0
----
-7363
-8248
-9376

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL + + col1 * - col1 + col0 / col0 + + 32 FROM tab0 AS cor0
----
-7363
-8248
-9376

query I rowsort
SELECT ALL + col1 * col1 * + col0 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-2953
SELECT + col1 DIV - col1 AS col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2953
SELECT + col1 / - col1 AS col2 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col1 + + col0 * - ( col1 ) * col1 FROM tab1 AS cor0
----
-13507
-2002
-6390

onlyif mysql # use DIV operator for integer division
query I rowsort label-2955
SELECT DISTINCT - ( col2 ) + col0 DIV + col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT - ( col2 ) + col0 / + col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - 24 AS col1 FROM tab1 cor0
----
-24
-24
-24

query I rowsort
SELECT ALL + + col1 * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + 20 * + col2 FROM tab0 AS cor0
----
1640
20
660

query I rowsort
SELECT + col0 + 79 FROM tab2
----
157
158
86

query I rowsort
SELECT ( 13 * + col2 ) AS col1 FROM tab2
----
338
351
494

query I rowsort
SELECT ALL + cor0.col1 - + cor0.col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT - col0 + - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2963
SELECT ALL + + col1 + CAST( NULL AS DECIMAL ) - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL + + col1 + CAST ( NULL AS REAL ) - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col1 + - 0 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2965
SELECT ALL col1 + cor0.col2 DIV col2 + + col1 FROM tab1 cor0
----
21
27
53

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL col1 + cor0.col2 / col2 + + col1 FROM tab1 cor0
----
21
27
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-2966
SELECT ALL - col1 DIV + ( + col2 ) + col2 - col2 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL - col1 / + ( + col2 ) + col2 - col2 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2968
SELECT DISTINCT cor0.col2 DIV cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT cor0.col2 / cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
0

query I rowsort
SELECT - 51 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4

query I rowsort
SELECT DISTINCT - ( col2 + - col2 ) * col1 AS col0 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2971
SELECT col0 + + 90 DIV - col0 col1 FROM tab1
----
-27
63
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2971
SELECT col0 + + 90 / - col0 col1 FROM tab1
----
-27
63
79

query I rowsort
SELECT col1 + ( - col0 + - col0 * col1 ) AS col1 FROM tab1 AS cor0
----
-1107
-55
-694

query I rowsort
SELECT - col2 * col0 + + col2 AS col2 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT col1 + + ( + col0 ) AS col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT cor2.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab1, tab2 cor1, tab2, tab1 AS cor2, tab0
----
729 values hashing to 2658ec94e6747a4d1e024355f200c3d1

query I rowsort
SELECT DISTINCT col0 + - col2 * - 81 + - tab1.col0 FROM tab1
----
4374
4617
7776

query I rowsort
SELECT ALL 44 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL + col1 * - col0 + tab1.col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT - ( cor0.col1 ) FROM tab0, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT col0 + tab0.col2 * - col2 + col2 FROM tab0
----
-1032
-6553
35

query I rowsort
SELECT 61 + + col2 FROM tab0 AS cor0
----
143
62
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2982
SELECT + + 51 * + col0 + + col0 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2982
SELECT + + 51 * + col0 + + col0 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - cor0.col0 ) + + col2 * - col0 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-2984
SELECT col0 DIV - col2 + col0 AS col0 FROM tab0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-2984
SELECT col0 / - col2 + col0 AS col0 FROM tab0
----
0
24
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2985
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL + CAST ( NULL AS REAL ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 / col0 + - col0 + - col2 * - CAST ( 37 AS REAL ) FROM tab0
----
1198
2946
3

query I rowsort
SELECT ( + col1 ) * - cor0.col0 * - col1 AS col0 FROM tab2 cor0
----
22831
271518
6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 * - ( - col0 + col1 ) col0 FROM tab0 AS cor0
----
-158
-4898
-4898

query I rowsort
SELECT col0 + + 44 AS col2 FROM tab2 cor0
----
122
123
51

query I rowsort
SELECT DISTINCT + 80 FROM tab0 cor0
----
80

query I rowsort
SELECT ALL + cor0.col2 * 31 FROM tab1 AS cor0
----
1674
1767
2976

query I rowsort
SELECT + 94 * ( - cor0.col0 ) + cor0.col0 * + 87 AS col2 FROM tab0 AS cor0
----
-168
-245
-623

onlyif mysql # use DIV operator for integer division
query I rowsort label-2994
SELECT ALL - 82 DIV ( col0 ) FROM tab2 AS cor0
----
-1
-1
-11

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL - 82 / ( col0 ) FROM tab2 AS cor0
----
-1
-1
-11

query I rowsort
SELECT DISTINCT - + 24 AS col0 FROM tab0 cor0
----
-24

onlyif mysql # use DIV operator for integer division
query I rowsort label-2996
SELECT + + col2 + cor0.col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2996
SELECT + + col2 + cor0.col1 / - col2 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - ( + col0 ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + + 53 AS col1 FROM tab1 AS cor0
----
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2999
SELECT + CAST( NULL AS SIGNED ) + ( + cor0.col0 ) * - col0 * - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2999
SELECT + CAST ( NULL AS INTEGER ) + ( + cor0.col0 ) * - col0 * - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * col1 - - tab1.col0 AS col1 FROM tab1
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3001
SELECT DISTINCT - col1 + col2 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1461
-735
-760

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT - col1 + col2 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT col2 * col0 + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT 47 * + col1 AS col2 FROM tab0 AS cor0
----
4042
4277
4559

query I rowsort
SELECT DISTINCT + - cor0.col0 + - col1 * col2 * col2 + cor0.col1 * col1 FROM tab2 AS cor0
----
-21645
-24338
-36481

query I rowsort
SELECT ALL + 18 AS col0 FROM tab0 cor0
----
18
18
18

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + - col0 AS col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT ALL - col1 * ( - col1 * col0 ) FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT - - col2 * + col0 - col2 * - col0 * ( - col2 ) FROM tab2 AS cor0
----
-111074
-4914
-50700

query I rowsort
SELECT + - col1 * col1 + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-10234
-15743
-9506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3010
SELECT - col2 * + 66 + 45 * col0 - - CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3010
SELECT - col2 * + 66 + 45 * col0 - - CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 + 27 + + cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
215
3685
7720

onlyif mysql # use DIV operator for integer division
query I rowsort label-3012
SELECT ALL + + col0 DIV - ( + 34 ) FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL + + col0 / - ( + 34 ) FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3013
SELECT - col0 DIV - 29 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3013
SELECT - col0 / - 29 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT DISTINCT - col0 * 88 + - ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-2088
-3045
-7743

query I rowsort
SELECT + + 33 + cor0.col0 AS col0 FROM tab1 AS cor0
----
113
36
97

query I rowsort
SELECT col1 * col1 + - ( - col1 * cor0.col1 ) AS col2 FROM tab2 cor0
----
1922
578
6962

query I rowsort
SELECT - col1 * col2 * col2 + - col1 + col0 FROM tab1
----
-119741
-32436
-75839

query I rowsort
SELECT - 21 * + col2 + ( + 44 ) * cor0.col1 FROM tab0 AS cor0
----
2282
3091
4247

query I rowsort
SELECT + 35 * + col2 * + col0 + - 11 AS col2 FROM tab2 AS cor0
----
105059
6604
70969

query I rowsort
SELECT - 50 * + tab0.col1 FROM tab0
----
-4300
-4550
-4850

query I rowsort
SELECT ALL 87 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT - - 72 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
72

query I rowsort
SELECT DISTINCT + - 42 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col2 FROM tab0 cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT + tab1.col1 * - col0 AS col0 FROM tab1
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3026
SELECT ALL CAST( + col0 AS SIGNED ) * col2 + col1 + + col2 AS col1 FROM tab2
----
2113
247
3057

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL CAST ( + col0 AS INTEGER ) * col2 + col1 + + col2 AS col1 FROM tab2
----
2113
247
3057

query I rowsort
SELECT DISTINCT - 80 * ( + cor0.col2 ) FROM tab2 cor0
----
-2080
-2160
-3040

query I rowsort
SELECT ALL - + 13 * col2 AS col1 FROM tab1 AS cor0
----
-1248
-702
-741

query I rowsort
SELECT - 6 * + 31 + + col0 AS col1 FROM tab1 AS cor0
----
-106
-122
-183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 col1 FROM tab1
----
26
26
26

query I rowsort
SELECT ALL - col2 * col1 + col2 + + 68 * col0 AS col2 FROM tab2 AS cor0
----
-334
3796
4764

onlyif mysql # use DIV operator for integer division
query I rowsort label-3032
SELECT ( + 30 ) DIV + col1 + - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3032
SELECT ( + 30 ) / + col1 + - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - 6 * col2 + col1 AS col2 FROM tab0 AS cor0
----
-112
-401
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 col1 FROM tab1
----
-83

query I rowsort
SELECT + + col1 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3036
SELECT + CAST( NULL AS SIGNED ) / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT + CAST ( NULL AS INTEGER ) / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 96 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

onlyif mysql # use DIV operator for integer division
query I rowsort label-3038
SELECT - col2 + col2 - + col2 DIV tab0.col0 col2 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3038
SELECT - col2 + col2 - + col2 / tab0.col0 col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT + col1 + - tab1.col0 * 99 AS col1 FROM tab1
----
-271
-6326
-7907

query I rowsort
SELECT 70 * - col1 FROM tab0
----
-6020
-6370
-6790

query I rowsort
SELECT DISTINCT tab0.col2 * col1 - - ( col0 ) AS col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + col1 * + col1 * - col2 - - col0 FROM tab2
----
-10903
-25940
-90428

query I rowsort
SELECT ALL 71 AS col1 FROM tab1, tab0 cor0, tab2 cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT + cor0.col1 + - col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3045
SELECT DISTINCT + col2 * + CAST( col2 AS SIGNED ) FROM tab2
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT + col2 * + CAST ( col2 AS INTEGER ) FROM tab2
----
1444
676
729

query I rowsort
SELECT - ( 22 * cor0.col1 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 537e5885fc7fd0d75c6a2a51b2d0dd23

query I rowsort
SELECT - 29 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT ALL 69 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT + col0 + - col1 * - col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT col2 * + 63 FROM tab2 cor0
----
1638
1701
2394

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3051
SELECT + - CAST( NULL AS DECIMAL ) * - ( - col0 ) * cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3051
SELECT + - CAST ( NULL AS REAL ) * - ( - col0 ) * cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor1.col0 AS col0 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT - 25 AS col1 FROM tab1, tab0 AS cor0
----
-25

query I rowsort
SELECT + 94 + - cor0.col0 * - col2 FROM tab2 cor0
----
2122
283
3096

query I rowsort
SELECT DISTINCT + 88 + - col0 FROM tab2
----
10
81
9

query I rowsort
SELECT + cor0.col0 + + cor0.col0 FROM tab0 cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + cor0.col1 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - 15 * col1 + + cor0.col1 * cor0.col0 * col2 FROM tab1 AS cor0
----
36330
3822
99645

query I rowsort
SELECT col1 + + col1 + - tab1.col0 AS col0 FROM tab1
----
-44
-54
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT DISTINCT - tab0.col1 + + col1 DIV col0 + - col0 AS col0 FROM tab0
----
-107
-130
-179

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT - tab0.col1 + + col1 / col0 + - col0 AS col0 FROM tab0
----
-107
-130
-179

query I rowsort
SELECT ALL col0 * + col2 AS col0 FROM tab1 WHERE NOT NULL < NULL AND NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN col0 * col2 * - col0 AND - col1 AND NOT - col2 + col2 >= ( NULL )
----

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NULL NOT IN ( cor0.col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col1 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - 26 * col2 AS col2 FROM tab1
----
-1404
-1482
-2496

query I rowsort
SELECT + ( col1 ) + - cor0.col2 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT 70 - - 54 * + tab1.col0 FROM tab1
----
232
3526
4390

query I rowsort
SELECT DISTINCT - col0 - - tab1.col2 * - col2 FROM tab1
----
-2919
-3313
-9296

query I rowsort
SELECT col2 + 46 AS col0 FROM tab1
----
100
103
142

query I rowsort
SELECT + col1 * + col2 + col2 - col1 * - tab0.col1 AS col1 FROM tab0
----
10267
15825
9507

query I rowsort
SELECT DISTINCT + 75 - tab2.col1 FROM tab2
----
16
44
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col1 FROM tab0, tab2 AS cor0
----
7

query I rowsort
SELECT DISTINCT col1 * - 84 + + col2 * + cor0.col1 * col0 FROM tab0 AS cor0
----
-4753
60888
656474

query I rowsort
SELECT DISTINCT + + 0 * col2 + col2 + + cor0.col2 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 51 - col2 col1 FROM tab2 AS cor0
----
-1
-25
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 * - col0 col0 FROM tab0 AS cor0
----
2304
3360
8544

query I rowsort
SELECT DISTINCT - + 3 + - col1 * + col2 AS col1 FROM tab1 AS cor0
----
-1251
-1407
-573

query I rowsort
SELECT + + 45 + col2 FROM tab0 AS cor0
----
127
46
78

query I rowsort
SELECT - 97 * - cor0.col1 + - col0 AS col0 FROM tab2 AS cor0
----
1570
3000
5645

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) * col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - + 93 + col0 AS col0 FROM tab0 AS cor0
----
-4
-58
-69

query I rowsort
SELECT ALL - 42 + col0 AS col0 FROM tab1 AS cor0
----
-39
22
38

query I rowsort
SELECT + 23 FROM tab2, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + 96 - 70 * col1 FROM tab2
----
-1094
-2074
-4034

query I rowsort
SELECT ( col0 * col0 ) + col2 + col1 * col0 AS col0 FROM tab1
----
141
4793
7536

query I rowsort
SELECT col1 + ( col1 ) * - col0 AS col2 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - - col1 + - cor0.col2 * col1 AS col0 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + col2 + + col1 + + col2 AS col1 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT + cor0.col1 * col1 + - cor0.col2 FROM tab2 AS cor0
----
251
3455
934

onlyif mysql # use DIV operator for integer division
query I rowsort label-3091
SELECT col1 * - col0 + - col1 DIV + col2 FROM tab0 AS cor0
----
-2066
-3492
-8100

skipif mysql # not compatible
query I rowsort label-3091
SELECT col1 * - col0 + - col1 / + col2 FROM tab0 AS cor0
----
-2066
-3492
-8100

query I rowsort
SELECT - cor0.col0 * col0 - + col0 FROM tab1 AS cor0
----
-12
-4160
-6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-3093
SELECT ALL col0 * + col0 - col1 DIV col2 col1 FROM tab0
----
1128
574
7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL col0 * + col0 - col1 / col2 col1 FROM tab0
----
1128
574
7920

onlyif mysql # use DIV operator for integer division
query I rowsort label-3094
SELECT ALL col0 DIV col2 - - col0 AS col0 FROM tab0 AS cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL col0 / col2 - - col0 AS col0 FROM tab0 AS cor0
----
24
70
90

query I rowsort
SELECT ALL col2 * + col2 * col2 FROM tab0
----
1
35937
551368

query I rowsort
SELECT col0 * col0 + - tab2.col0 * col0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 + col1 + col1 * col2 FROM tab0
----
195
2957
7635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 * - col0 col1 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NOT ( NULL ) < ( NULL )
----

query I rowsort
SELECT - col2 * col0 + col0 * + tab1.col1 FROM tab1
----
-3008
-6640
-84

query I rowsort
SELECT + col0 * col0 AS col1 FROM tab0 WHERE NOT NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + col1 - tab0.col1 FROM tab0
----
0
2752
7371

query I rowsort
SELECT DISTINCT + tab1.col2 + + tab1.col0 * col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT - col1 * + tab2.col1 + + col0 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT + col2 FROM tab1 WHERE col0 + col0 BETWEEN NULL AND + col1 / + col2
----

query I rowsort
SELECT col1 * col0 * - col1 - - col1 FROM tab2
----
-22814
-271459
-6696

query I rowsort
SELECT ALL + + cor0.col0 + col1 * + col2 FROM tab2 cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-3108
SELECT ALL + - col1 DIV + col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL + - col1 / + col1 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT - + col0 * - col1 * col0 FROM tab2 AS cor0
----
106097
1519
358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + cor0.col1 col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + - cor0.col2 * - col2 + col2 + - col0 FROM tab0 cor0
----
-33
1098
6717

query I rowsort
SELECT col2 * col1 + col1 * col2 AS col1 FROM tab1
----
1140
2496
2808

onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT ALL + col2 DIV + col0 + + col0 + col1 FROM tab0 AS cor0
----
111
132
180

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL + col2 / + col0 + + col0 + col1 FROM tab0 AS cor0
----
111
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-3114
SELECT DISTINCT - + col1 * col0 - cor0.col1 DIV col1 FROM tab2 AS cor0
----
-1344
-218
-4603

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT - + col1 * col0 - cor0.col1 / col1 FROM tab2 AS cor0
----
-1344
-218
-4603

onlyif mysql # use DIV operator for integer division
query I rowsort label-3115
SELECT ALL cor0.col1 DIV + col1 + cor0.col0 * + cor0.col0 FROM tab0 AS cor0
----
1226
577
7922

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL cor0.col1 / + col1 + cor0.col0 * + cor0.col0 FROM tab0 AS cor0
----
1226
577
7922

query I rowsort
SELECT DISTINCT col0 - - col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + col0 * - col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 WHERE NOT NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL - col2 * col0 - col2 AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-3120
SELECT ALL col0 DIV - col0 + col2 AS col2 FROM tab2 cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL col0 / - col0 + col2 AS col2 FROM tab2 cor0
----
25
26
37

query I rowsort
SELECT DISTINCT tab2.col1 * + 51 FROM tab2
----
1581
3009
867

query I rowsort
SELECT cor1.col2 * cor1.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 255bedb67400f83d272763889db4ca4f

query I rowsort
SELECT ALL + col0 * - 13 * 8 AS col2 FROM tab1
----
-312
-6656
-8320

onlyif mysql # use DIV operator for integer division
query I rowsort label-3124
SELECT + cor0.col1 DIV - ( - col0 + - col0 ) col1 FROM tab0 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3124
SELECT + cor0.col1 / - ( - col0 + - col0 ) col1 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT col2 * + 84 AS col1 FROM tab1 AS cor0
----
4536
4788
8064

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT - ( 81 ) * col0 + 96 * + col1 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
21345
327858
91689

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3128
SELECT - + CAST( - col1 AS SIGNED ) * - col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-3128
SELECT - + CAST ( - col1 AS INTEGER ) * - col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3129
SELECT - col2 + - col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3129
SELECT - col2 + - col1 / - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 + ( - ( tab2.col2 ) ) col0 FROM tab2
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3131
SELECT ALL - col0 * CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3132
SELECT - - CAST( NULL AS SIGNED ) * 63 + col1 * - col2 - - col2 * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT - - CAST ( NULL AS INTEGER ) * 63 + col1 * - col2 - - col2 * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - 69 ) * col1 + col1 FROM tab0 AS cor0
----
-5848
-6188
-6596

query I rowsort
SELECT ALL - 68 * + col0 FROM tab0 cor0
----
-1632
-2380
-6052

onlyif mysql # use DIV operator for integer division
query I rowsort label-3135
SELECT DISTINCT - 68 DIV col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT - 68 / col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT + - col1 * col0 * - col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - 6 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT 96 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT DISTINCT - 15 - - col2 FROM tab0 AS cor0
----
-14
18
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 36 * - cor0.col2 + - ( 63 ) col2 FROM tab1 AS cor0
----
-2007
-2115
-3519

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + cor0.col1 col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 96 * - cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 3cb03dc0280fda09510eea4e07ecc410

onlyif mysql # use DIV operator for integer division
query I rowsort label-3143
SELECT - col0 DIV 94 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3143
SELECT - col0 / 94 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 79 FROM tab0
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + col1 col1 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + ( + cor0.col1 ) * col1 col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT + + col1 * - 73 AS col2 FROM tab1 AS cor0
----
-1898
-730
-949

query I rowsort
SELECT ALL - + col0 + + 61 * col1 FROM tab1 AS cor0
----
1583
546
713

query I rowsort
SELECT + - col2 * + 46 FROM tab0 AS cor0
----
-1518
-3772
-46

query I rowsort
SELECT + col1 + 87 FROM tab1 AS cor0
----
100
113
97

query I rowsort
SELECT ALL + 32 FROM tab2
----
32
32
32

query I rowsort
SELECT - + col1 * 25 FROM tab0 AS cor0
----
-2150
-2275
-2425

query I rowsort
SELECT ALL col0 * col1 + cor0.col0 * col1 FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT DISTINCT - - cor0.col0 * - cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3155
SELECT ALL - col2 * CAST( 88 AS SIGNED ) + col1 + + col1 AS col2 FROM tab0 AS cor0
----
-2732
-7034
106

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL - col2 * CAST ( 88 AS INTEGER ) + col1 + + col1 AS col2 FROM tab0 AS cor0
----
-2732
-7034
106

query I rowsort
SELECT ALL col0 * - col1 + col1 * + col1 FROM tab1 AS cor0
----
-540
-871
598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 26 col0 FROM tab2
----
-43
-57
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3158
SELECT ALL + ( - cor0.col0 ) + - col0 * - cor0.col0 DIV - col0 FROM tab1 cor0
----
-128
-160
-6

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL + ( - cor0.col0 ) + - col0 * - cor0.col0 / - col0 FROM tab1 cor0
----
-128
-160
-6

query I rowsort
SELECT col1 - ( - col2 ) * col1 AS col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT ALL 26 FROM tab2, tab1 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT 53 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT DISTINCT col0 - + ( + col1 ) FROM tab0
----
-2
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3163
SELECT ALL + + 18 + + col0 DIV + col1 AS col1 FROM tab2 AS cor0
----
18
19
22

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL + + 18 + + col0 / + col1 AS col1 FROM tab2 AS cor0
----
18
19
22

query I rowsort
SELECT + + 29 - col2 FROM tab1 AS cor0
----
-25
-28
-67

query I rowsort
SELECT ALL 21 + col0 FROM tab1 cor0
----
101
24
85

query I rowsort
SELECT DISTINCT tab1.col1 - 12 AS col1 FROM tab1
----
-2
1
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-3167
SELECT ALL col2 * col2 DIV col0 + + ( + col2 * col0 ) FROM tab2
----
2036
293
3020

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL col2 * col2 / col0 + + ( + col2 * col0 ) FROM tab2
----
2036
293
3020

onlyif mysql # use DIV operator for integer division
query I rowsort label-3168
SELECT ALL - col2 * col2 * col0 + + col0 DIV col1 AS col1 FROM tab2
----
-114072
-5103
-52727

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL - col2 * col2 * col0 + + col0 / col1 AS col1 FROM tab2
----
-114072
-5103
-52727

query I rowsort
SELECT DISTINCT cor0.col1 + col0 AS col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL - + col2 + + col1 + - ( 7 ) AS col1 FROM tab0 AS cor0
----
2
46
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3171
SELECT + col0 DIV + col1 + ( + cor0.col1 ) * col2 FROM tab1 cor0
----
1254
1404
576

skipif mysql # not compatible
query I rowsort label-3171
SELECT + col0 / + col1 + ( + cor0.col1 ) * col2 FROM tab1 cor0
----
1254
1404
576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3172
SELECT col1 - - CAST( + col0 AS SIGNED ) FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-3172
SELECT col1 - - CAST ( + col0 AS INTEGER ) FROM tab0
----
110
132
180

query I rowsort
SELECT ALL col0 * ( tab1.col2 + + col0 ) FROM tab1
----
14080
171
7744

query I rowsort
SELECT + col0 + col1 * + 43 AS col0 FROM tab0
----
3722
4002
4206

query I rowsort
SELECT ALL - - col1 + - 28 AS col0 FROM tab0 AS cor0
----
58
63
69

query I rowsort
SELECT DISTINCT - ( col1 ) + col1 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 25 * 82 FROM tab1 AS cor0
----
-2050

onlyif mysql # use DIV operator for integer division
query I rowsort label-3178
SELECT ALL - + col2 DIV - col1 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL - + col2 / - col1 AS col1 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 * - col1 col2 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-3180
SELECT + col1 + + col2 * col1 + + col2 DIV 81 FROM tab1
----
1262
1430
580

skipif mysql # not compatible
query I rowsort label-3180
SELECT + col1 + + col2 * col1 + + col2 / 81 FROM tab1
----
1262
1430
580

query I rowsort
SELECT - + cor0.col1 * 33 FROM tab1 AS cor0
----
-330
-429
-858

query I rowsort
SELECT ALL - col2 * + cor0.col2 FROM tab0 cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( 81 AS REAL ) + + col0 * col1 * + col0 FROM tab1 AS cor0
----
315
41041
83281

query I rowsort
SELECT + + 58 AS col0 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 793ce5fda3f22b0a251dca7e8a07baed

query I rowsort
SELECT - - 22 AS col0 FROM tab0 AS cor0
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 * ( - cor0.col2 ) col1 FROM tab1 AS cor0
----
-1728
-1824
-3072

query I rowsort
SELECT ALL + col0 + col2 * col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT - 76 * - 56 AS col1 FROM tab2 AS cor0
----
4256
4256
4256

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3189
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col0 * - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT CAST ( NULL AS REAL ) * col0 * - col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( tab0.col2 + + col2 * + 67 ) FROM tab0
----
-2244
-5576
-68

query I rowsort
SELECT 45 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3192
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-3192
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT + - ( 48 ) AS col0 FROM tab0 cor0
----
-48
-48
-48

query I rowsort
SELECT + 74 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT + 23 * - col0 FROM tab1 AS cor0
----
-1472
-1840
-69

query I rowsort
SELECT ALL - + col0 * col0 FROM tab0 cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-3197
SELECT col2 * + cor0.col1 + 85 DIV + col0 FROM tab1 cor0
----
1249
1432
571

skipif mysql # not compatible
query I rowsort label-3197
SELECT col2 * + cor0.col1 + 85 / + col0 FROM tab1 cor0
----
1249
1432
571

query I rowsort
SELECT ALL + + col2 + - col1 + ( - col2 * col0 + + col0 ) AS col1 FROM tab2 AS cor0
----
-186
-1983
-2902

query I rowsort
SELECT DISTINCT + - 62 * col1 FROM tab0 AS cor0
----
-5332
-5642
-6014

query I rowsort
SELECT cor0.col0 * col1 * 13 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
105376
26856
44170

query I rowsort
SELECT ALL - - col1 + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT + 10 FROM tab1, tab2 cor0
----
10

query I rowsort
SELECT 73 * - col2 + col0 FROM tab2
----
-1820
-1964
-2695

onlyif mysql # use DIV operator for integer division
query I rowsort label-3204
SELECT - col0 * col2 - tab0.col2 DIV - col2 AS col1 FROM tab0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-3204
SELECT - col0 * col2 - tab0.col2 / - col2 AS col1 FROM tab0
----
-34
-7297
-791

query I rowsort
SELECT ALL - col0 * 14 + col1 FROM tab0 AS cor0
----
-1155
-250
-393

onlyif mysql # use DIV operator for integer division
query I rowsort label-3206
SELECT DISTINCT col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT col2 / + col0 AS col2 FROM tab0 AS cor0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3207
SELECT DISTINCT + col2 + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT + col2 + col1 / col1 AS col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT ALL - col2 + 54 * - col2 AS col2 FROM tab2 AS cor0
----
-1430
-1485
-2090

query I rowsort
SELECT DISTINCT col2 + ( - cor0.col1 ) * col1 FROM tab2 AS cor0
----
-251
-3455
-934

onlyif mysql # use DIV operator for integer division
query I rowsort label-3210
SELECT DISTINCT col1 * col0 * 79 + - cor0.col0 DIV col1 FROM tab2 AS cor0
----
106093
17143
363557

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT col1 * col0 * 79 + - cor0.col0 / col1 FROM tab2 AS cor0
----
106093
17143
363557

query I rowsort
SELECT tab2.col0 * - col2 + tab2.col2 * col1 AS col0 FROM tab2
----
-2356
-494
648

query I rowsort
SELECT DISTINCT 27 + + col0 FROM tab1
----
107
30
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3213
SELECT + col1 + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3213
SELECT + col1 + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3214
SELECT DISTINCT col2 * CAST( NULL AS DECIMAL ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT col2 * CAST ( NULL AS REAL ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3215
SELECT DISTINCT col0 DIV + 51 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT col0 / + 51 FROM tab2 cor0
----
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3216
SELECT DISTINCT + col2 + - ( col1 ) - + col2 * + CAST( cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
-1142
-6733
-97

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT + col2 + - ( col1 ) - + col2 * + CAST ( cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
-1142
-6733
-97

query I rowsort
SELECT cor0.col1 + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-3218
SELECT ALL + + cor0.col2 + + 14 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL + + cor0.col2 + + 14 / col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col1 + - col0 * + col2 * - col2 FROM tab1
----
207946
737293
8774

query I rowsort
SELECT col2 + 81 * col0 FROM tab0 AS cor0
----
1977
2836
7291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 - - col0 * - col1 col0 FROM tab2 cor0
----
-1326
-186
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3222
SELECT DISTINCT + + cor0.col2 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT + + cor0.col2 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( 19 ) AS col2 FROM tab1, tab0 AS cor0
----
19

query I rowsort
SELECT + col2 + + 59 * - ( cor0.col2 ) * + 11 FROM tab1 AS cor0
----
-34992
-36936
-62208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col2 col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + 13 + + col0 FROM tab1
----
16
77
93

query I rowsort
SELECT - ( tab2.col1 * ( + tab2.col2 ) ) AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - + col1 * 81 FROM tab1 AS cor0
----
-1053
-2106
-810

query I rowsort
SELECT + + col0 + 53 AS col2 FROM tab1 AS cor0
----
117
133
56

query I rowsort
SELECT DISTINCT col2 + - col2 * + col0 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT ALL col0 + tab1.col0 * col0 * col1 AS col0 FROM tab1
----
237
41024
83280

query I rowsort
SELECT + col1 * tab0.col0 * - col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL + tab2.col1 AS col1 FROM tab2 WHERE NOT ( NULL ) >= ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE - col1 * - col0 * col1 <> col2
----
-54
-57
-96

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE col0 * col1 >= NULL
----

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2 cor1, tab2 cor2
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT col1 NOT IN ( + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE col1 * col2 NOT IN ( col2 + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3239
SELECT DISTINCT col0 + col1 DIV col1 col2 FROM tab1
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT col0 + col1 / col1 col2 FROM tab1
----
4
65
81

query I rowsort
SELECT tab2.col2 + + col2 * - col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT tab2.col2 * col0 - col0 AS col2 FROM tab2
----
182
1950
2923

query I rowsort
SELECT - col1 * + col0 - + col1 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT + col2 + - col0 * + col1 FROM tab1 cor0
----
-24
-583
-944

query I rowsort
SELECT + col1 * col0 + col0 FROM tab2
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3245
SELECT 56 DIV col1 + - ( + 59 * + col1 ) + cor0.col0 FROM tab0 AS cor0
----
-5050
-5280
-5688

skipif mysql # not compatible
query I rowsort label-3245
SELECT 56 / col1 + - ( + 59 * + col1 ) + cor0.col0 FROM tab0 AS cor0
----
-5050
-5280
-5688

query I rowsort
SELECT ALL - ( col2 ) + - 34 FROM tab0 AS cor0
----
-116
-35
-67

query I rowsort
SELECT DISTINCT - 69 AS col0 FROM tab1 AS cor0
----
-69

query I rowsort
SELECT ALL + - col1 + col1 * col0 * col2 FROM tab2 cor0
----
119593
51017
5828

query I rowsort
SELECT + col2 * + cor0.col2 + col2 AS col1 FROM tab2 cor0
----
1482
702
756

query I rowsort
SELECT + col0 * - col1 + - col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL + - col0 + + 16 AS col1 FROM tab1 AS cor0
----
-48
-64
13

query I rowsort
SELECT ALL + col2 + - ( + ( col2 ) * + 53 ) FROM tab2 cor0
----
-1352
-1404
-1976

query I rowsort
SELECT 20 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT ( - 70 ) * - col0 FROM tab0 AS cor0
----
1680
2450
6230

query I rowsort
SELECT 45 - col0 AS col2 FROM tab1 AS cor0
----
-19
-35
42

query I rowsort
SELECT + cor0.col1 * - col0 - col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT + ( ( col1 ) ) * 6 - + col2 AS col0 FROM tab0 cor0
----
464
483
581

onlyif mysql # use DIV operator for integer division
query I rowsort label-3258
SELECT + 61 DIV + 41 - col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-3258
SELECT + 61 / + 41 - col0 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT col1 * 78 AS col1 FROM tab1
----
1014
2028
780

onlyif mysql # use DIV operator for integer division
query I rowsort label-3260
SELECT + + col0 DIV col0 - - col1 AS col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-3260
SELECT + + col0 / col0 - - col1 AS col0 FROM tab0 AS cor0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 col1 FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT tab1.col0 * + 0 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 * - 85 AS col2 FROM tab0
----
-7310
-7735
-8245

onlyif mysql # use DIV operator for integer division
query I rowsort label-3264
SELECT DISTINCT - col2 - col1 DIV col0 FROM tab1
----
-57
-62
-96

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT - col2 - col1 / col0 FROM tab1
----
-57
-62
-96

query I rowsort
SELECT - ( 61 ) + - col1 AS col1 FROM tab2 AS cor0
----
-120
-78
-92

query I rowsort
SELECT ALL 96 - 42 FROM tab2
----
54
54
54

query I rowsort
SELECT 88 * + tab2.col0 - + col1 FROM tab2
----
585
6805
6935

query I rowsort
SELECT DISTINCT - col2 - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * + col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - col0 * - col1 * col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT DISTINCT col0 * + col1 * 73 AS col0 FROM tab0 AS cor0
----
150672
247835
591227

onlyif mysql # use DIV operator for integer division
query I rowsort label-3272
SELECT ALL - col0 + + ( col2 ) DIV col1 AS col2 FROM tab1 AS cor0
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL - col0 + + ( col2 ) / col1 AS col2 FROM tab1 AS cor0
----
-1
-59
-73

query I rowsort
SELECT DISTINCT cor0.col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3274
SELECT ALL + col1 DIV col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL + col1 / col1 FROM tab1 cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3275
SELECT DISTINCT + - col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT + - col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3276
SELECT ALL col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3277
SELECT + - ( 53 ) * cor0.col0 + + CAST( NULL AS SIGNED ) * col1 - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT + - ( 53 ) * cor0.col0 + + CAST ( NULL AS INTEGER ) * col1 - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 * + 18 + col2 AS col1 FROM tab1 AS cor0
----
1026
1083
1824

query I rowsort
SELECT - cor0.col1 + cor0.col1 FROM tab2, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - col2 * col1 + - 55 FROM tab1
----
-1303
-1459
-625

query I rowsort
SELECT DISTINCT 57 AS col2 FROM tab1, tab2 AS cor0
----
57

query I rowsort
SELECT ALL - 32 + - col1 FROM tab1 cor0
----
-42
-45
-58

query I rowsort
SELECT DISTINCT - 56 * cor0.col2 + + col0 + col0 * + col2 FROM tab1 AS cor0
----
-2859
2384
520

query I rowsort
SELECT col2 * + cor0.col1 + - col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT + + 37 AS col0 FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT DISTINCT 85 * + col2 + col1 FROM tab1 AS cor0
----
4616
4855
8173

query I rowsort
SELECT ALL + 63 * col1 AS col0 FROM tab0 AS cor0
----
5418
5733
6111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col1 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
11

query I rowsort
SELECT ALL - - 53 * - col2 AS col1 FROM tab1 cor0
----
-2862
-3021
-5088

onlyif mysql # use DIV operator for integer division
query I rowsort label-3290
SELECT - tab1.col2 DIV col0 + + col1 FROM tab1
----
10
12
8

skipif mysql # not compatible
query I rowsort label-3290
SELECT - tab1.col2 / col0 + + col1 FROM tab1
----
10
12
8

query I rowsort
SELECT ALL cor1.col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT + col1 * col2 * col0 AS col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT col2 * - col2 + - 34 FROM tab1
----
-2950
-3283
-9250

query I rowsort
SELECT + col0 * 61 AS col1 FROM tab0 AS cor0
----
1464
2135
5429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - col1 col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL + cor0.col1 * - cor0.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0c15ce053d5d7b134ad52c973e726cba

query I rowsort
SELECT ALL - 23 AS col2 FROM tab2
----
-23
-23
-23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3298
SELECT DISTINCT CAST( - col2 AS SIGNED ) * + col1 + col0 * - 19 AS col2 FROM tab0
----
-3294
-762
-9153

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * + col1 + col0 * - 19 AS col2 FROM tab0
----
-3294
-762
-9153

query I rowsort
SELECT DISTINCT + ( + ( col2 ) ) + + ( 59 ) AS col2 FROM tab1
----
113
116
155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * - 38 - col0 col1 FROM tab2 AS cor0
----
-1945
-2016
-2017

query I rowsort
SELECT ALL - - col0 * col2 * - col0 + - 98 + - 24 FROM tab1 cor0
----
-233594
-608
-614522

query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 * + col1 AS col0 FROM tab1 cor0
----
-234
-40960
-83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-3303
SELECT DISTINCT - + ( - col1 ) DIV - cor0.col0 FROM tab2 cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT - + ( - col1 ) / - cor0.col0 FROM tab2 cor0
----
-4
0

query I rowsort
SELECT ALL - col2 * + 38 AS col2 FROM tab0 AS cor0
----
-1254
-3116
-38

query I rowsort
SELECT ALL - - 17 + + col1 * + 85 FROM tab2 AS cor0
----
1462
2652
5032

query I rowsort
SELECT + 56 + col1 AS col0 FROM tab1 cor0
----
66
69
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 col0 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT col0 * col0 + 39 AS col2 FROM tab2 AS cor0
----
6123
6280
88

query I rowsort
SELECT DISTINCT ( - col1 ) * - 56 AS col2 FROM tab0 AS cor0
----
4816
5096
5432

query I rowsort
SELECT ALL + 67 * - tab2.col1 + - col2 * - col0 * - col0 FROM tab2
----
-162137
-238297
-3400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3311
SELECT + - CAST( NULL AS DECIMAL ) + 26 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3311
SELECT + - CAST ( NULL AS REAL ) + 26 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + 11 * + tab2.col0 + - col2 AS col0 FROM tab2
----
50
831
832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3313
SELECT - 27 + col2 * - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
1417
649
702

skipif mysql # not compatible
query I rowsort label-3313
SELECT - 27 + col2 * - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
1417
649
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-3314
SELECT - col1 DIV - cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3314
SELECT - col1 / - cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col0 col2 FROM tab0 cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - tab2.col1 ) col0 FROM tab2, tab1 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT - tab1.col2 * + tab1.col2 AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT - col1 * cor0.col0 + col2 FROM tab1 AS cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + - col2 col1 FROM tab0 AS cor0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 col2 FROM tab1 AS cor0
----
-69

query I rowsort
SELECT ALL - ( col0 ) * col1 * cor0.col2 + - col2 FROM tab2 AS cor0
----
-119678
-51072
-5886

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3322
SELECT ALL + CAST( NULL AS SIGNED ) + col2 * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 * col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3323
SELECT DISTINCT col0 DIV - ( tab0.col2 ) FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT col0 / - ( tab0.col2 ) FROM tab0
----
-1
-35
0

query I rowsort
SELECT ( + 34 * tab2.col2 + ( - col2 ) ) FROM tab2
----
1254
858
891

query I rowsort
SELECT - - col0 + ( - col0 * col2 ) + + col2 * cor0.col1 FROM tab0 AS cor0
----
2070
253
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col2 col0 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT + col1 + + col2 * col2 FROM tab0 cor0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3328
SELECT col2 * col0 - 3 DIV col0 AS col2 FROM tab2 cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-3328
SELECT col2 * col0 - 3 / col0 AS col2 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3329
SELECT ALL tab0.col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL tab0.col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3330
SELECT + col0 * - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3330
SELECT + col0 * - CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + cor0.col1 * - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-3332
SELECT + col1 DIV - cor0.col0 + + 95 FROM tab1 AS cor0
----
87
95
95

skipif mysql # not compatible
query I rowsort label-3332
SELECT + col1 / - cor0.col0 + + 95 FROM tab1 AS cor0
----
87
95
95

query I rowsort
SELECT col1 * ( - 2 ) FROM tab2
----
-118
-34
-62

query I rowsort
SELECT DISTINCT - tab1.col0 * ( + tab1.col1 ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT - - 89 + col0 FROM tab2 cor0
----
167
168
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3336
SELECT DISTINCT - 31 DIV + 46 AS col0 FROM tab0, tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT - 31 / + 46 AS col0 FROM tab0, tab1 cor0
----
0

query I rowsort
SELECT col1 + col0 * col2 + + col2 * - col1 FROM tab0
----
-1960
-73
35

query I rowsort
SELECT + + col2 + + col0 * col1 + + col0 FROM tab2 cor0
----
1460
251
4706

query I rowsort
SELECT - col2 - - col1 * - col2 AS col1 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT - col2 + 72 + col0 * + col0 * tab1.col0 AS col2 FROM tab1
----
262159
45
511976

query I rowsort
SELECT col1 * col1 * col1 + + col1 * - 42 FROM tab2
----
202901
28489
4199

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3342
SELECT CAST( + cor0.col2 AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif mysql # not compatible
query I rowsort label-3342
SELECT CAST ( + cor0.col2 AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + col2 * + col0 * col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT + 72 * col0 + + col0 FROM tab0 cor0
----
1752
2555
6497

query I rowsort
SELECT DISTINCT col0 + - col1 * - tab1.col0 + + col0 FROM tab1
----
1200
768
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3346
SELECT - 23 * + 63 + col2 + CAST( - 92 AS SIGNED ) FROM tab0
----
-1459
-1508
-1540

skipif mysql # not compatible
query I rowsort label-3346
SELECT - 23 * + 63 + col2 + CAST ( - 92 AS INTEGER ) FROM tab0
----
-1459
-1508
-1540

query I rowsort
SELECT DISTINCT ( 45 ) - - col2 * col0 FROM tab2 cor0
----
2073
234
3047

query I rowsort
SELECT ALL - ( - col2 ) * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - ( - col1 ) + - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3350
SELECT DISTINCT 0 * + 24 DIV + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT 0 * + 24 / + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col0 ) + - cor0.col0 col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3352
SELECT ALL col2 DIV - 61 + - col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL col2 / - 61 + - col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col1 FROM tab0 AS cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT col0 + col0 - + cor0.col0 * ( + col0 ) AS col0 FROM tab2 cor0
----
-35
-5928
-6083

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + 52 * col1 + col0 + + CAST ( 1 AS REAL ) AS col1 FROM tab0 AS cor0
----
4497
4822
5080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3356
SELECT + CAST( - 99 AS SIGNED ) * - col1 + ( + 57 ) AS col2 FROM tab2 AS cor0
----
1740
3126
5898

skipif mysql # not compatible
query I rowsort label-3356
SELECT + CAST ( - 99 AS INTEGER ) * - col1 + ( + 57 ) AS col2 FROM tab2 AS cor0
----
1740
3126
5898

query I rowsort
SELECT + col1 * 9 FROM tab2 AS cor0
----
153
279
531

query I rowsort
SELECT ALL + ( - cor0.col1 ) + - cor0.col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - 49 AS col1 FROM tab2
----
-49
-49
-49

onlyif mysql # use DIV operator for integer division
query I rowsort label-3360
SELECT - col0 DIV + col2 col1 FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3360
SELECT - col0 / + col2 col1 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3361
SELECT DISTINCT - + ( col0 ) DIV ( + col0 * - col0 + - col0 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT - + ( col0 ) / ( + col0 * - col0 + - col0 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3362
SELECT + col2 * CAST( + col2 AS SIGNED ) DIV + col1 + col1 * 71 * cor0.col2 + - CAST( - col0 AS SIGNED ) * col0 AS col2 FROM tab2 AS cor0
----
115009
52191
59499

skipif mysql # not compatible
query I rowsort label-3362
SELECT + col2 * CAST ( + col2 AS INTEGER ) / + col1 + col1 * 71 * cor0.col2 + - CAST ( - col0 AS INTEGER ) * col0 AS col2 FROM tab2 AS cor0
----
115009
52191
59499

query I rowsort
SELECT + + col2 - + 53 FROM tab2 cor0
----
-15
-26
-27

query I rowsort
SELECT col0 * - col1 * - 54 - + col0 FROM tab0 AS cor0
----
111432
183295
437257

query I rowsort
SELECT - + cor0.col1 * + col0 - - col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab0 AS cor3
----
13122 values hashing to 505274c1a05fb6c7c22512c5e3a3cfe8

query I rowsort
SELECT DISTINCT 20 * + cor1.col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
1180
340
620

query I rowsort
SELECT - 37 * col0 + col0 AS col1 FROM tab1
----
-108
-2304
-2880

query I rowsort
SELECT - col0 + + 87 * - col2 FROM tab0 AS cor0
----
-122
-2895
-7223

onlyif mysql # use DIV operator for integer division
query I rowsort label-3370
SELECT ALL + col1 + - col0 DIV col0 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL + col1 + - col0 / col0 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT DISTINCT col2 + 99 FROM tab1 AS cor0
----
153
156
195

query I rowsort
SELECT ALL col1 * col2 * + col2 FROM tab1 AS cor0
----
119808
32490
75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-3373
SELECT DISTINCT + + col0 * cor0.col1 DIV col2 + CAST( - 80 AS SIGNED ) + col2 FROM tab1 cor0
----
-12
-25
26

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT + + col0 * cor0.col1 / col2 + CAST ( - 80 AS INTEGER ) + col2 FROM tab1 cor0
----
-12
-25
26

query I rowsort
SELECT + - col2 * - 40 FROM tab1 AS cor0
----
2160
2280
3840

query I rowsort
SELECT - + ( 66 ) * col1 FROM tab0 AS cor0
----
-5676
-6006
-6402

query I rowsort
SELECT + col1 + + col2 + + col1 AS col2 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT DISTINCT - 50 + - 15 * col1 * + 88 FROM tab2 AS cor0
----
-22490
-40970
-77930

query I rowsort
SELECT col1 * + 13 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT - + 47 * + col1 AS col0 FROM tab2 AS cor0
----
-1457
-2773
-799

query I rowsort
SELECT ALL + - 60 AS col0 FROM tab2 AS cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT col2 + - cor0.col1 * 6 * col1 AS col2 FROM tab1 AS cor0
----
-4002
-543
-918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + cor0.col0 * col1 col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + 85 * + 88 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c6819dcf6c9a2775416fed7eeb683b43

query I rowsort
SELECT + 5 * + ( col2 ) + 8 * tab2.col0 FROM tab2
----
191
754
822

onlyif mysql # use DIV operator for integer division
query I rowsort label-3385
SELECT DISTINCT col0 DIV col1 - ( col0 ) col1 FROM tab1 AS cor0
----
-3
-58
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT col0 / col1 - ( col0 ) col1 FROM tab1 AS cor0
----
-3
-58
-74

query I rowsort
SELECT - col0 * col0 * - col0 + col2 FROM tab0 AS cor0
----
13857
42876
705051

query I rowsort
SELECT DISTINCT + col0 + ( cor0.col2 + cor0.col0 ) AS col2 FROM tab0 cor0
----
260
71
81

query I rowsort
SELECT DISTINCT col0 + - 31 FROM tab0
----
-7
4
58

query I rowsort
SELECT + col0 * + ( + 70 ) FROM tab1
----
210
4480
5600

query I rowsort
SELECT col0 * + col2 - col0 * + col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 + 72 AS col0 FROM tab1
----
-24
15
18

query I rowsort
SELECT ALL + tab2.col2 + - col2 + + col1 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL - col0 + 44 AS col0 FROM tab0 AS cor0
----
-45
20
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3394
SELECT + cor0.col2 DIV 8 + + col0 AS col1 FROM tab2 cor0
----
10
81
83

skipif mysql # not compatible
query I rowsort label-3394
SELECT + cor0.col2 / 8 + + col0 AS col1 FROM tab2 cor0
----
10
81
83

query I rowsort
SELECT ALL - + ( + ( col1 ) ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - - 1 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 21 + + 27 FROM tab1 cor0
----
48

query I rowsort
SELECT DISTINCT - col1 + 75 * col1 - - 47 AS col2 FROM tab0 AS cor0
----
6411
6781
7225

query I rowsort
SELECT + 6 + 34 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT DISTINCT col2 * col1 * col1 + + col2 * col2 FROM tab0 AS cor0
----
245157
685766
9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3401
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 75 AS col2 FROM tab0, tab1, tab1 AS cor0, tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 75 AS col2 FROM tab0, tab1, tab1 AS cor0, tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3402
SELECT ALL col2 + 54 DIV + col0 FROM tab1
----
57
72
96

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL col2 + 54 / + col0 FROM tab1
----
57
72
96

query I rowsort
SELECT ALL + tab2.col0 + tab2.col2 * col0 AS col1 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL col0 + - ( + col2 ) + tab0.col2 FROM tab0
----
24
35
89

query I rowsort
SELECT + col2 * - 55 + - col2 FROM tab0
----
-1848
-4592
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-3406
SELECT DISTINCT - + col2 + 28 DIV col1 col1 FROM tab2 cor0
----
-26
-27
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT - + col2 + 28 / col1 col1 FROM tab2 cor0
----
-26
-27
-37

query I rowsort
SELECT + + ( - 20 ) * + col0 AS col1 FROM tab1 AS cor0
----
-1280
-1600
-60

query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3409
SELECT - ( tab0.col2 ) + CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3409
SELECT - ( tab0.col2 ) + CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - ( tab0.col1 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT ( col2 ) * - col1 AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT 12 * col0 FROM tab0
----
1068
288
420

query I rowsort
SELECT ALL - cor0.col0 + - col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3414
SELECT ALL - CAST( col1 AS SIGNED ) * + col2 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL - CAST ( col1 AS INTEGER ) * + col2 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL - ( ( - col2 ) ) + + col0 - - col0 * col1 * col1 AS col0 FROM tab0 AS cor0
----
177561
329351
737180

query I rowsort
SELECT - 20 * ( tab2.col0 ) AS col1 FROM tab2
----
-140
-1560
-1580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 * col0 col1 FROM tab1
----
-262144
-27
-512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-3418
SELECT DISTINCT + col2 * col1 + CAST( - col1 AS SIGNED ) - - col2 DIV - ( tab1.col2 ) col2 FROM tab1
----
1234
1377
559

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT + col2 * col1 + CAST ( - col1 AS INTEGER ) - - col2 / - ( tab1.col2 ) col2 FROM tab1
----
1234
1377
559

query I rowsort
SELECT - 85 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede

query I rowsort
SELECT + ( - col2 ) + + col1 AS col0 FROM tab0
----
53
9
96

query I rowsort
SELECT cor0.col0 * + col0 * 82 FROM tab1 AS cor0
----
335872
524800
738

query I rowsort
SELECT ALL col1 + 18 + col0 FROM tab0 AS cor0
----
128
150
198

query I rowsort
SELECT DISTINCT - - col2 - 6 AS col0 FROM tab2 AS cor0
----
20
21
32

query I rowsort
SELECT + - cor0.col1 - - col2 * ( col0 ) * col2 FROM tab0 AS cor0
----
-62
26050
598345

query I rowsort
SELECT - cor0.col1 + col1 * col1 AS col0 FROM tab0 cor0
----
7310
8190
9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3426
SELECT + col0 + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT + col0 + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 * - 74 AS col2 FROM tab1 AS cor0
----
-222
-4736
-5920

query I rowsort
SELECT + col1 + 17 AS col2 FROM tab2 AS cor0
----
34
48
76

query I rowsort
SELECT DISTINCT + - cor0.col0 + col1 * - col0 + + cor0.col0 * 41 AS col1 FROM tab1 AS cor0
----
1920
2160
42

query I rowsort
SELECT ALL col0 + 4 FROM tab2 cor0
----
11
82
83

query I rowsort
SELECT col2 * + col0 - 12 FROM tab0 AS cor0
----
23
7286
780

query I rowsort
SELECT DISTINCT col2 * 6 * col1 + + col2 * col1 FROM tab1 AS cor0
----
3990
8736
9828

query I rowsort
SELECT + col2 * col0 - + cor0.col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-3434
SELECT col0 + col2 - + col1 DIV 44 AS col2 FROM tab2
----
103
117
34

skipif mysql # not compatible
query I rowsort label-3434
SELECT col0 + col2 - + col1 / 44 AS col2 FROM tab2
----
103
117
34

query I rowsort
SELECT + col1 - - col1 * - 70 FROM tab1 AS cor0
----
-1794
-690
-897

onlyif mysql # use DIV operator for integer division
query I rowsort label-3436
SELECT + 15 DIV col0 FROM tab1
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3436
SELECT + 15 / col0 FROM tab1
----
0
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 - + 15 col1 FROM tab1 AS cor0
----
147
3633
7665

query I rowsort
SELECT - + col1 + ( + col2 * col2 ) AS col1 FROM tab1 cor0
----
2890
3239
9203

query I rowsort
SELECT col2 + col1 + col2 AS col0 FROM tab2 AS cor0
----
111
85
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3440
SELECT col2 DIV 50 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3440
SELECT col2 / 50 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - col1 * - ( col2 ) + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-3442
SELECT cor0.col1 + col2 + - col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
53
58
85

skipif mysql # not compatible
query I rowsort label-3442
SELECT cor0.col1 + col2 + - col2 / + col1 AS col0 FROM tab2 AS cor0
----
53
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3443
SELECT - CAST( + 48 AS SIGNED ) col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 2558735eaa258a08592aef9d33020c18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3443
SELECT - CAST ( + 48 AS INTEGER ) col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 2558735eaa258a08592aef9d33020c18

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - col2 + - ( - col0 ) AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL + col2 + 81 AS col0 FROM tab1 AS cor0
----
135
138
177

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3447
SELECT - CAST( NULL AS SIGNED ) + 99 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3447
SELECT - CAST ( NULL AS INTEGER ) + 99 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 + + 86 AS col0 FROM tab1 cor0
----
22
6
83

query I rowsort
SELECT - col2 + 56 FROM tab2 AS cor0
----
18
29
30

query I rowsort
SELECT ALL 3 * col2 + col1 AS col0 FROM tab0 AS cor0
----
100
185
337

query I rowsort
SELECT DISTINCT - cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + - 41 * col2 AS col0 FROM tab0 AS cor0
----
-1353
-3362
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col2 FROM tab2 AS cor0
----
-76
-76
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3454
SELECT ALL - col1 + col1 DIV + col0 FROM tab0 AS cor0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL - col1 + col1 / + col0 FROM tab0 AS cor0
----
-83
-90
-95

query I rowsort
SELECT DISTINCT 65 * col1 - + col1 AS col2 FROM tab2 AS cor0
----
1088
1984
3776

query I rowsort
SELECT col0 - + col2 * col1 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3457
SELECT DISTINCT 31 + col0 * - CAST( - 36 + + col0 AS SIGNED ) FROM tab0 AS cor0
----
-4686
319
66

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT 31 + col0 * - CAST ( - 36 + + col0 AS INTEGER ) FROM tab0 AS cor0
----
-4686
319
66

query I rowsort
SELECT + col2 * col1 - + 6 AS col0 FROM tab2 AS cor0
----
1528
640
831

query I rowsort
SELECT - col1 * col2 - 39 FROM tab0 cor0
----
-136
-2877
-7501

query I rowsort
SELECT ALL ( col0 ) * - 8 AS col1 FROM tab2 AS cor0
----
-56
-624
-632

query I rowsort
SELECT ALL tab2.col0 * - 2 * - col1 FROM tab2
----
2686
434
9204

query I rowsort
SELECT 12 + col2 * + tab1.col2 AS col0 FROM tab1
----
2928
3261
9228

query I rowsort
SELECT DISTINCT ( 86 + col2 * - 22 ) AS col1 FROM tab2
----
-486
-508
-750

query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab0, tab2 AS cor0
----
20

query I rowsort
SELECT ALL - ( ( - tab1.col2 ) ) FROM tab1
----
54
57
96

query I rowsort
SELECT - 43 * - 5 + + cor0.col2 AS col2 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 087ae8a7f556fcb64b221bbf5f5e1dc4

query I rowsort
SELECT + cor1.col2 + cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 17e6537ffee10dccd14f4a1f12215238

onlyif mysql # use DIV operator for integer division
query I rowsort label-3468
SELECT ALL col0 * col2 * + tab2.col0 - + col2 DIV col0 FROM tab2
----
1320
158184
237158

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL col0 * col2 * + tab2.col0 - + col2 / col0 FROM tab2
----
1320
158184
237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-3469
SELECT ALL cor0.col2 DIV col2 + col0 AS col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL cor0.col2 / col2 + col0 AS col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT 12 * col2 + 96 * col2 AS col0 FROM tab2 AS cor0
----
2808
2916
4104

query I rowsort
SELECT ALL + 63 + - col0 AS col1 FROM tab0 AS cor0
----
-26
28
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-3472
SELECT 3 * - col1 - - col0 DIV 99 FROM tab0 cor0
----
-258
-273
-291

skipif mysql # not compatible
query I rowsort label-3472
SELECT 3 * - col1 - - col0 / 99 FROM tab0 cor0
----
-258
-273
-291

onlyif mysql # use DIV operator for integer division
query I rowsort label-3473
SELECT + col1 DIV - cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-3473
SELECT + col1 / - cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
-1
30
81

query I rowsort
SELECT col2 * + 19 FROM tab1
----
1026
1083
1824

query I rowsort
SELECT DISTINCT + 99 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
99

query I rowsort
SELECT - col0 + 47 * ( - cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-1276
-1300
-1865

query I rowsort
SELECT ALL cor0.col2 + 45 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 57be4eadf9cd535e0e5804b571bca7ac

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3478
SELECT - CAST( NULL AS SIGNED ) + - tab0.col2 * - tab0.col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT - CAST ( NULL AS INTEGER ) + - tab0.col2 * - tab0.col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col2 + 30 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-24
-27
-66

query I rowsort
SELECT - ( col1 ) * - col1 + - ( - col0 ) FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT ALL 74 FROM tab0, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL - col2 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT 7 * - col2 AS col2 FROM tab0 AS cor0
----
-231
-574
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3484
SELECT ALL col2 + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL col2 + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab1.col0 + - 0 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT cor1.col1 * cor1.col1 AS col1 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 51855bb230a34802a628192d3e332a79

query I rowsort
SELECT ALL col2 + + ( + tab2.col0 ) * + col2 * - col0 AS col0 FROM tab2
----
-1296
-158158
-237120

query I rowsort
SELECT ALL col0 - + col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - 42 * - 78 FROM tab0 cor0
----
3276

query I rowsort
SELECT ALL + col0 + + col0 * col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT - col1 * + col0 + tab1.col0 AS col0 FROM tab1
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-3492
SELECT ALL - col2 DIV 95 + 99 * - tab0.col1 AS col0 FROM tab0
----
-8514
-9009
-9603

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL - col2 / 95 + 99 * - tab0.col1 AS col0 FROM tab0
----
-8514
-9009
-9603

query I rowsort
SELECT col2 + - ( col0 ) AS col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL + - col0 * - 78 AS col0 FROM tab1 cor0
----
234
4992
6240

query I rowsort
SELECT ALL - 18 FROM tab0 cor0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT + 86 * col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
7429
7908
8343

onlyif mysql # use DIV operator for integer division
query I rowsort label-3497
SELECT ALL + col1 + col0 DIV col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL + col1 + col0 / col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + ( col1 ) * col2 + + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - 41 + col1 AS col1 FROM tab0 AS cor0
----
45
50
56

query I rowsort
SELECT ALL col2 * cor0.col0 + col0 FROM tab1 cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3501
SELECT + 7 DIV col2 + cor0.col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3501
SELECT + 7 / col2 + cor0.col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3502
SELECT ALL - CAST( NULL AS SIGNED ) + + 58 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL - CAST ( NULL AS INTEGER ) + + 58 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * tab2.col0 + col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT + ( 47 ) AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT ALL + - cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT ALL + ( + cor0.col0 ) + - ( ( col2 ) ) AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT col2 + cor0.col2 * col1 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT ALL - - col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-3509
SELECT DISTINCT 33 + + col0 DIV col1 FROM tab1 cor0
----
33
39

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT 33 + + col0 / col1 FROM tab1 cor0
----
33
39

query I rowsort
SELECT DISTINCT + + 3 AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( 60 ) * cor1.col0 AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-180
-3840
-4800

query I rowsort
SELECT col1 - + cor0.col1 * ( cor0.col2 ) FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3513
SELECT ALL + ( col2 ) * col0 DIV - ( - col1 ) AS col2 FROM tab2 AS cor0
----
176
34
6

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL + ( col2 ) * col0 / - ( - col1 ) AS col2 FROM tab2 AS cor0
----
176
34
6

query I rowsort
SELECT DISTINCT + 72 FROM tab1 cor0
----
72

query I rowsort
SELECT col2 + 8 AS col1 FROM tab1 AS cor0
----
104
62
65

query I rowsort
SELECT + - col0 * + col0 + col1 + col0 * + col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - col2 * - 77 - 65 FROM tab0 AS cor0
----
12
2476
6249

query I rowsort
SELECT col2 * + 74 - col0 * + col2 AS col1 FROM tab2 cor0
----
-104
-190
1809

query I rowsort
SELECT DISTINCT + col2 - ( 4 ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
-246
-3
-99

query I rowsort
SELECT col1 - 53 AS col2 FROM tab2 AS cor0
----
-22
-36
6

query I rowsort
SELECT DISTINCT + tab2.col2 * + 40 FROM tab2
----
1040
1080
1520

query I rowsort
SELECT + col2 * - ( tab0.col2 * col1 ) FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT + + col0 + - ( col0 * col0 ) - col1 AS col2 FROM tab0 AS cor0
----
-1287
-638
-7923

query I rowsort
SELECT col0 + col2 + - 29 FROM tab2 AS cor0
----
5
75
88

query I rowsort
SELECT - col0 + col1 - + col2 AS col1 FROM tab0 AS cor0
----
-80
29
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-3526
SELECT + CAST( col0 AS SIGNED ) DIV + col1 AS col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3526
SELECT + CAST ( col0 AS INTEGER ) / + col1 AS col1 FROM tab2 AS cor0
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3527
SELECT 79 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3527
SELECT 79 / + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3528
SELECT col1 + col0 - col2 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT col1 + col0 - col2 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab1.col0 + - 78 AS col0 FROM tab1
----
-14
-75
2

query I rowsort
SELECT - 44 FROM tab1, tab2 cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3531
SELECT DISTINCT col0 + - ( col2 + + col2 ) DIV - ( col2 ) FROM tab1
----
5
66
82

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT col0 + - ( col2 + + col2 ) / - ( col2 ) FROM tab1
----
5
66
82

query I rowsort
SELECT ALL - - cor0.col1 * + col0 * + 92 + cor0.col0 * + col0 FROM tab2 AS cor0
----
129797
20013
429468

query I rowsort
SELECT DISTINCT 22 * + col0 * ( col0 ) FROM tab1 AS cor0
----
140800
198
90112

query I rowsort
SELECT DISTINCT + 50 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
50

query I rowsort
SELECT 80 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

onlyif mysql # use DIV operator for integer division
query I rowsort label-3536
SELECT DISTINCT 63 DIV tab0.col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT 63 / tab0.col0 FROM tab0
----
0
1
2

query I rowsort
SELECT ALL - cor0.col1 * - col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + + col0 * col1 + + 24 FROM tab1 cor0
----
102
1064
664

query I rowsort
SELECT DISTINCT + col2 * - col0 * ( col1 + tab0.col0 ) FROM tab0
----
-1313640
-4620
-87120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3540
SELECT + col2 + + col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3540
SELECT + col2 + + col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * tab0.col0 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 / col2 AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3542
SELECT ALL col0 DIV - tab1.col2 + tab1.col0 AS col2 FROM tab1
----
3
63
80

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL col0 / - tab1.col2 + tab1.col0 AS col2 FROM tab1
----
3
63
80

query I rowsort
SELECT DISTINCT - col0 + col2 * + col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT DISTINCT col0 + + col2 * col2 FROM tab2
----
1523
736
754

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 = col0 * col2 + + col2 + col2
----

query I rowsort
SELECT DISTINCT - tab2.col2 - + col1 AS col0 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT DISTINCT tab0.col0 * - col2 + col2 * + col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 * col1 + 47 * + col2 FROM tab0
----
11316
144
4389

onlyif mysql # use DIV operator for integer division
query I rowsort label-3551
SELECT DISTINCT 3 + col2 DIV - col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT 3 + col2 / - col1 FROM tab0
----
3

query I rowsort
SELECT + 94 FROM tab1, tab2, tab2 cor0
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT DISTINCT + 5 - + col0 * - col0 FROM tab2
----
54
6089
6246

query I rowsort
SELECT col2 * col2 * col2 AS col0 FROM tab1
----
157464
185193
884736

query I rowsort
SELECT ALL - col2 - col2 * ( cor0.col1 ) FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT 34 * - col0 * ( 37 ) + - col0 FROM tab1 AS cor0
----
-100720
-3777
-80576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 - col0 col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT + col2 + + tab1.col0 AS col2 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3559
SELECT DISTINCT col0 - col1 * col1 DIV col2 AS col0 FROM tab0
----
-11
-200
-9374

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT col0 - col1 * col1 / col2 AS col0 FROM tab0
----
-11
-200
-9374

query I rowsort
SELECT DISTINCT tab1.col2 + - tab1.col2 * col0 FROM tab1
----
-108
-3591
-7584

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 IN ( + col1 )
----

query I rowsort
SELECT - col0 / col2 - tab2.col2 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 * + col1 AND NULL
----

query I rowsort
SELECT col2 + col0 * tab2.col2 - + col2 * tab2.col1 FROM tab2
----
-621
2394
520

query I rowsort
SELECT + col1 + tab1.col2 AS col2 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3565
SELECT DISTINCT + col2 DIV - tab2.col0 + col2 AS col2 FROM tab2
----
24
26
38

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT + col2 / - tab2.col0 + col2 AS col2 FROM tab2
----
24
26
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3566
SELECT col2 + tab1.col1 DIV col2 FROM tab1 WHERE - col2 NOT BETWEEN col2 AND ( NULL )
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3566
SELECT col2 + tab1.col1 / col2 FROM tab1 WHERE - col2 NOT BETWEEN col2 AND ( NULL )
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3567
SELECT DISTINCT - col1 + col1 DIV + col0 FROM tab1
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT - col1 + col1 / + col0 FROM tab1
----
-10
-13
-18

onlyif mysql # use DIV operator for integer division
query I rowsort label-3568
SELECT tab2.col1 + - col1 DIV + col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-3568
SELECT tab2.col1 + - col1 / + col1 FROM tab2
----
16
30
58

query I rowsort
SELECT col0 * col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col2 - + tab0.col0 / col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN col2 * col0 * col2 AND - col1
----

query I rowsort
SELECT 88 FROM tab2 cor0
----
88
88
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3572
SELECT ALL + + ( col2 ) DIV col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL + + ( col2 ) / col2 AS col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3573
SELECT DISTINCT + - cor0.col2 * col1 * cor0.col2 + CAST( NULL AS DECIMAL ) / col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT + - cor0.col2 * col1 * cor0.col2 + CAST ( NULL AS REAL ) / col2 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 41 * + col1 FROM tab0
----
3526
3731
3977

query I rowsort
SELECT + + col2 * 71 FROM tab2 AS cor0
----
1846
1917
2698

query I rowsort
SELECT DISTINCT 0 * - 97 AS col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT col0 + ( + col2 ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + - 40 AS col1 FROM tab2 AS cor0
----
-40
-40
-40

query I rowsort
SELECT - + 50 * col2 FROM tab2 cor0
----
-1300
-1350
-1900

query I rowsort
SELECT DISTINCT 39 AS col1 FROM tab0 AS cor0
----
39

query I rowsort
SELECT + ( - col2 ) * + 46 FROM tab2 AS cor0
----
-1196
-1242
-1748

query I rowsort
SELECT + 39 * - cor0.col1 FROM tab0 AS cor0
----
-3354
-3549
-3783

query I rowsort
SELECT DISTINCT + col1 + cor0.col1 * 54 FROM tab2 AS cor0
----
1705
3245
935

query I rowsort
SELECT DISTINCT 48 AS col1 FROM tab2, tab1, tab0 AS cor0
----
48

query I rowsort
SELECT ALL - ( col1 + col0 ) AS col2 FROM tab2
----
-137
-38
-96

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col2 AS REAL ) - col1 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT ALL ( - col0 ) * col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + col2 * - 95 + col1 AS col0 FROM tab2 AS cor0
----
-2411
-2534
-3593

query I rowsort
SELECT + - col2 + ( col2 + col0 ) AS col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT col1 + ( + col2 * col2 ) AS col2 FROM tab0 AS cor0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 12 col2 FROM tab1 AS cor0
----
36
768
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-3593
SELECT - cor0.col1 DIV - ( col0 * col1 ) + ( col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3593
SELECT - cor0.col1 / - ( col0 * col1 ) + ( col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - col0 * col2 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT col2 - - 72 FROM tab1 AS cor0
----
126
129
168

query I rowsort
SELECT tab0.col0 * col2 * col0 AS col1 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT ( col0 + - col0 ) * + ( col2 + - col0 ) * + 1 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3598
SELECT + col2 - - CAST( col1 AS SIGNED ) * + col0 * 98 FROM tab2
----
131652
21293
451022

skipif mysql # not compatible
query I rowsort label-3598
SELECT + col2 - - CAST ( col1 AS INTEGER ) * + col0 * 98 FROM tab2
----
131652
21293
451022

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3599
SELECT ALL + CAST( cor0.col1 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL + CAST ( cor0.col1 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL + - 0 * + col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 * + col1 - 31 AS col2 FROM tab1 AS cor0
----
-1279
-1435
-601

query I rowsort
SELECT + + cor0.col1 * - col0 + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) + 16 AS col1 FROM tab1 AS cor0
----
-48
-64
13

query I rowsort
SELECT - col2 * col1 - col1 * + col1 FROM tab0 AS cor0
----
-10234
-15743
-9506

query I rowsort
SELECT ALL 24 * + cor0.col1 + 64 AS col1 FROM tab2 AS cor0
----
1480
472
808

query I rowsort
SELECT DISTINCT + col2 - col1 * 53 AS col0 FROM tab0 AS cor0
----
-4525
-4741
-5140

onlyif mysql # use DIV operator for integer division
query I rowsort label-3607
SELECT col1 DIV + cor0.col2 + 56 DIV cor0.col1 FROM tab1 AS cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-3607
SELECT col1 / + cor0.col2 + 56 / cor0.col1 FROM tab1 AS cor0
----
2
4
5

query I rowsort
SELECT 57 + - col1 FROM tab1
----
31
44
47

query I rowsort
SELECT DISTINCT col1 * tab2.col1 - + col0 FROM tab2
----
210
3403
954

query I rowsort
SELECT - col1 + col2 * col0 - + col1 AS col0 FROM tab1
----
110
3628
7654

query I rowsort
SELECT - col2 + col2 + col2 AS col0 FROM tab1
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3612
SELECT + col1 * - 92 + col1 * CAST( NULL AS SIGNED ) + + 36 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3612
SELECT + col1 * - 92 + col1 * CAST ( NULL AS INTEGER ) + + 36 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - tab1.col0 * col1 + - 71 FROM tab1
----
-1111
-149
-711

query I rowsort
SELECT ALL + 61 * col1 AS col0 FROM tab1 cor0
----
1586
610
793

query I rowsort
SELECT ALL - 65 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-2145
-5330
-65

query I rowsort
SELECT DISTINCT + - col1 + + col0 FROM tab1 cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 77 * - 23 col1 FROM tab2
----
1797
1798
1809

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

query I rowsort
SELECT DISTINCT - ( - col1 ) * col1 * - col1 AS col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 + 7 col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 9ffb4aaf972de606a4957894645b6216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col1 * - cor1.col1 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0456bcedc217ad4d7d255310d4eb4931

query I rowsort
SELECT - col1 * 80 AS col0 FROM tab2 AS cor0
----
-1360
-2480
-4720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3623
SELECT DISTINCT + CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT col1 + 83 FROM tab2
----
100
114
142

query I rowsort
SELECT DISTINCT 95 * - cor0.col2 * - 44 AS col2 FROM tab2, tab0 AS cor0
----
137940
342760
4180

query I rowsort
SELECT ALL 96 + - 58 AS col2 FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT + - col0 * - col2 - col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT - - col2 * cor0.col0 - + col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT ( - col1 ) + col2 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - - col0 + + 78 AS col0 FROM tab0 AS cor0
----
102
113
167

query I rowsort
SELECT ALL + ( ( col0 ) ) FROM tab0
----
24
35
89

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 028fd38910121a0fa7c5b9a24c207cf0

query I rowsort
SELECT ALL + ( + 32 ) FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT - col1 * 23 FROM tab2 AS cor0
----
-1357
-391
-713

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3635
SELECT ALL ( - 10 ) + col1 * CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL ( - 10 ) + col1 * CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + + col1 * col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT + 8 + + col1 FROM tab0 AS cor0
----
105
94
99

query I rowsort
SELECT ALL - col0 + col1 * col2 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + col0 - 33 * col1 col0 FROM tab0 AS cor0
----
-1976
-2262
4918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3641
SELECT - CAST( 82 AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to a4fbb6c683f140d68394b15617d2c8fb

skipif mysql # not compatible
query I rowsort label-3641
SELECT - CAST ( 82 AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to a4fbb6c683f140d68394b15617d2c8fb

query I rowsort
SELECT ALL + col2 * col2 * 99 AS col1 FROM tab0
----
107811
665676
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col0 ) * + 60 col0 FROM tab0 AS cor0
----
-1440
-2100
-5340

query I rowsort
SELECT - 48 * - col2 AS col2 FROM tab1 AS cor0
----
2592
2736
4608

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col1 AS col1 FROM tab2, tab0 cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 15 col1 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT DISTINCT col0 * - 32 + col1 FROM tab1 cor0
----
-2038
-2547
-70

query I rowsort
SELECT ALL col2 * - 10 AS col1 FROM tab1 AS cor0
----
-540
-570
-960

query I rowsort
SELECT - - col0 * col1 * - col2 AS col2 FROM tab2 cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + 89 * + 71 FROM tab2 AS cor0
----
6319
6319
6319

onlyif mysql # use DIV operator for integer division
query I rowsort label-3652
SELECT cor0.col2 + - 96 DIV col2 AS col1 FROM tab0 AS cor0
----
-95
31
81

skipif mysql # not compatible
query I rowsort label-3652
SELECT cor0.col2 + - 96 / col2 AS col1 FROM tab0 AS cor0
----
-95
31
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3653
SELECT + col1 * ( + col0 ) + + col1 DIV + tab2.col0 FROM tab2
----
1343
221
4602

skipif mysql # not compatible
query I rowsort label-3653
SELECT + col1 * ( + col0 ) + + col1 / + tab2.col0 FROM tab2
----
1343
221
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3654
SELECT ALL col2 + CAST( + col1 AS SIGNED ) * - col2 - - col0 * 91 * - col2 AS col1 FROM tab1 AS cor0
----
-16092
-332481
-700032

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL col2 + CAST ( + col1 AS INTEGER ) * - col2 - - col0 * 91 * - col2 AS col1 FROM tab1 AS cor0
----
-16092
-332481
-700032

query I rowsort
SELECT ( + 92 ) FROM tab0
----
92
92
92

query I rowsort
SELECT - 82 * - 55 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 0f830037c63d9bdfaeeb0bb409d92189

query I rowsort
SELECT + col2 * 34 AS col1 FROM tab0 AS cor0
----
1122
2788
34

query I rowsort
SELECT DISTINCT col0 * 6 FROM tab1 AS cor0
----
18
384
480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 + 29 * - col0 col2 FROM tab2 AS cor0
----
-2321
-2350
-262

query I rowsort
SELECT cor1.col2 * + 87 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 36dcd02dc5b81910bca290f034031f6a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + col0 * + col1 * col0 AS col1 FROM tab1 cor0
----
234
40960
83200

query I rowsort
SELECT + - 21 * cor0.col2 + cor0.col0 FROM tab2 AS cor0
----
-468
-560
-719

query I rowsort
SELECT + col1 + col0 * col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + 75 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT ALL + col1 + col0 * ( 11 ) + col0 * - col1 FROM tab0
----
-1714
-2913
-7029

query I rowsort
SELECT + 77 + + col1 * + col0 AS col0 FROM tab2
----
1420
294
4679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - 8 + col2 * ( + ( col2 ) ) * - 57 FROM tab2 AS cor0
----
-38540
-41561
-82316

query I rowsort
SELECT + 26 * col0 FROM tab2 AS cor0
----
182
2028
2054

onlyif mysql # use DIV operator for integer division
query I rowsort label-3671
SELECT ALL + col2 + - col1 DIV ( col2 ) FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL + col2 + - col1 / ( col2 ) FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + + col2 * + col2 + - col0 - + cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
-1464
-3429
-999

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3673
SELECT - + cor0.col1 * CAST( 59 AS SIGNED ) FROM tab0 AS cor0
----
-5074
-5369
-5723

skipif mysql # not compatible
query I rowsort label-3673
SELECT - + cor0.col1 * CAST ( 59 AS INTEGER ) FROM tab0 AS cor0
----
-5074
-5369
-5723

query I rowsort
SELECT - col1 + - ( 77 ) AS col2 FROM tab0 AS cor0
----
-163
-168
-174

query I rowsort
SELECT DISTINCT + col1 * col2 + - col1 + col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT - col1 * - 2 * - 25 FROM tab2 cor0
----
-1550
-2950
-850

query I rowsort
SELECT ALL - - col0 * + 65 FROM tab1 AS cor0
----
195
4160
5200

query I rowsort
SELECT DISTINCT + 75 * - col1 * ( - 28 ) AS col1 FROM tab1
----
21000
27300
54600

query I rowsort
SELECT - col0 - col1 * + ( col0 + - col2 ) FROM tab1
----
-134
128
1323

query I rowsort
SELECT ALL - col2 * col0 * cor0.col1 - - col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-116171
-4898
-50745

query I rowsort
SELECT col1 * ( 87 ) AS col2 FROM tab2 AS cor0
----
1479
2697
5133

query I rowsort
SELECT DISTINCT - col2 * + ( 39 ) + col1 FROM tab0 AS cor0
----
-1201
-3107
58

query I rowsort
SELECT + col1 * ( + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - cor0.col0 * 65 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-192
-4096
-5120

query I rowsort
SELECT + 96 + 98 FROM tab1 AS cor0
----
194
194
194

query I rowsort
SELECT 72 + - cor1.col1 * 58 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6472948af8b94dac5045e27dfc7e2663

query I rowsort
SELECT col0 * - ( 25 ) FROM tab1
----
-1600
-2000
-75

query I rowsort
SELECT ALL - + 34 * col2 * - col2 FROM tab2 AS cor0
----
22984
24786
49096

onlyif mysql # use DIV operator for integer division
query I rowsort label-3690
SELECT ALL + col2 DIV + ( col1 ) FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL + col2 / + ( col1 ) FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT DISTINCT - 53 + + 91 FROM tab0 AS cor0
----
38

query I rowsort
SELECT col1 * + cor0.col0 + + cor0.col1 FROM tab2 cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + 93 AS col1 FROM tab2 cor0
----
93
93
93

query I rowsort
SELECT col1 + + cor0.col0 + - 74 * col1 AS col1 FROM tab1 AS cor0
----
-1895
-666
-869

query I rowsort
SELECT - col0 * + 31 AS col2 FROM tab2 AS cor0
----
-217
-2418
-2449

query I rowsort
SELECT 35 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT + + 66 - col0 FROM tab2 AS cor0
----
-12
-13
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3699
SELECT - CAST( NULL AS SIGNED ) + + 94 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3699
SELECT - CAST ( NULL AS INTEGER ) + + 94 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) AS col2 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT - col0 * + col1 - + col2 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT col1 * 40 AS col2 FROM tab2 AS cor0
----
1240
2360
680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3703
SELECT - col0 DIV col0 + - col2 * col2 AS col2 FROM tab2
----
-1445
-677
-730

skipif mysql # not compatible
query I rowsort label-3703
SELECT - col0 / col0 + - col2 * col2 AS col2 FROM tab2
----
-1445
-677
-730

query I rowsort
SELECT DISTINCT col1 * 54 AS col1 FROM tab2
----
1674
3186
918

query I rowsort
SELECT ALL + 44 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT col2 * - col0 + + ( col1 ) AS col2 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + + 36 + - col1 AS col1 FROM tab0 AS cor0
----
-50
-55
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-3708
SELECT DISTINCT + ( col1 ) DIV 20 + - col1 FROM tab1 AS cor0
----
-10
-13
-25

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT + ( col1 ) / 20 + - col1 FROM tab1 AS cor0
----
-10
-13
-25

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) + - col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT 19 + - col2 FROM tab0
----
-14
-63
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-3711
SELECT + col2 DIV - col0 + col1 DIV - 9 AS col1 FROM tab2
----
-1
-6
-6

skipif mysql # not compatible
query I rowsort label-3711
SELECT + col2 / - col0 + col1 / - 9 AS col1 FROM tab2
----
-1
-6
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3712
SELECT - + cor0.col2 * + col1 * 44 + - col2 + + col2 DIV col1 FROM tab0 AS cor0
----
-124905
-328410
-4269

skipif mysql # not compatible
query I rowsort label-3712
SELECT - + cor0.col2 * + col1 * 44 + - col2 + + col2 / col1 FROM tab0 AS cor0
----
-124905
-328410
-4269

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3713
SELECT + - col0 + + cor0.col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT + - col0 + + cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 38 * col0 * col1 FROM tab1 AS cor0
----
-24320
-2964
-39520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 * - col2 col2 FROM tab2 cor0
----
-364
-378
-532

onlyif mysql # use DIV operator for integer division
query I rowsort label-3716
SELECT col1 * cor0.col2 + 60 + col0 DIV col0 FROM tab2 AS cor0
----
1595
707
898

skipif mysql # not compatible
query I rowsort label-3716
SELECT col1 * cor0.col2 + 60 + col0 / col0 FROM tab2 AS cor0
----
1595
707
898

query I rowsort
SELECT - col2 * + 27 FROM tab2 AS cor0
----
-1026
-702
-729

query I rowsort
SELECT + col0 + ( col1 ) AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + ( tab0.col0 * - col2 ) FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3720
SELECT ALL 7 DIV + col0 AS col1 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL 7 / + col0 AS col1 FROM tab1
----
0
0
2

query I rowsort
SELECT 56 * 30 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to fc5539e66d1840234e3d8a4cecdd121e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3722
SELECT - col1 + - CAST( + 14 AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
-1123
-1151
-129

skipif mysql # not compatible
query I rowsort label-3722
SELECT - col1 + - CAST ( + 14 AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
-1123
-1151
-129

query I rowsort
SELECT ALL + col1 + + 3 * col1 FROM tab0
----
344
364
388

query I rowsort
SELECT col0 * - col1 + col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - - 55 AS col0 FROM tab0 cor0
----
55

query I rowsort
SELECT DISTINCT - 20 * - 66 FROM tab1
----
1320

query I rowsort
SELECT DISTINCT cor0.col2 + - 83 AS col1 FROM tab0 AS cor0
----
-1
-50
-82

query I rowsort
SELECT ALL - - col1 + 62 * col2 AS col2 FROM tab2 AS cor0
----
1671
1705
2373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 + col1 col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + - 90 * col1 AS col0 FROM tab1 cor0
----
-1170
-2340
-900

query I rowsort
SELECT DISTINCT + - col1 - - cor0.col2 * + 75 AS col1 FROM tab2 AS cor0
----
1891
1994
2833

onlyif mysql # use DIV operator for integer division
query I rowsort label-3732
SELECT col2 * + col0 + - ( + col1 + + col0 ) DIV col2 AS col0 FROM tab1 AS cor0
----
162
3647
7680

skipif mysql # not compatible
query I rowsort label-3732
SELECT col2 * + col0 + - ( + col1 + + col0 ) / col2 AS col0 FROM tab1 AS cor0
----
162
3647
7680

query I rowsort
SELECT DISTINCT col0 - + col0 * ( col2 ) FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT + - cor0.col1 * cor0.col1 + cor0.col2 * col2 FROM tab0 AS cor0
----
-1557
-6307
-9408

query I rowsort
SELECT - + ( + 83 ) AS col2 FROM tab0 AS cor0
----
-83
-83
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3736
SELECT - col0 DIV + col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3736
SELECT - col0 / + col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + ( + 13 ) + col2 FROM tab0 AS cor0
----
14
46
95

query I rowsort
SELECT ALL - ( col1 ) * col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT ( ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + cor0.col0 * - 74 AS col0 FROM tab0 AS cor0
----
-1776
-2590
-6586

query I rowsort
SELECT - - 7 * col1 FROM tab2 AS cor0
----
119
217
413

query I rowsort
SELECT + col0 + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT + + col2 + ( col1 ) + + col1 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT DISTINCT - ( ( + col1 ) ) * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - - col1 * col2 AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - + 54 * - col1 FROM tab0 AS cor0
----
4644
4914
5238

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3747
SELECT col2 + col1 * + CAST( 21 AS SIGNED ) FROM tab0 AS cor0
----
1839
1993
2038

skipif mysql # not compatible
query I rowsort label-3747
SELECT col2 + col1 * + CAST ( 21 AS INTEGER ) FROM tab0 AS cor0
----
1839
1993
2038

query I rowsort
SELECT ALL + col1 + col2 * - ( col2 ) AS col0 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL + 20 + - 83 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2

query I rowsort
SELECT ALL col0 * + 37 FROM tab0
----
1295
3293
888

onlyif mysql # use DIV operator for integer division
query I rowsort label-3751
SELECT cor0.col0 * - ( col2 * + col2 ) + + col1 DIV + col1 FROM tab2 AS cor0
----
-114075
-5102
-52727

skipif mysql # not compatible
query I rowsort label-3751
SELECT cor0.col0 * - ( col2 * + col2 ) + + col1 / + col1 FROM tab2 AS cor0
----
-114075
-5102
-52727

query I rowsort
SELECT DISTINCT - col0 * 56 FROM tab2 AS cor0
----
-392
-4368
-4424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 - col0 col1 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT - cor0.col1 * - 79 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 648d66fb956fc6f56908417b53d1a5d1

query I rowsort
SELECT ALL 93 * 50 * - col0 AS col1 FROM tab2 AS cor0
----
-32550
-362700
-367350

query I rowsort
SELECT - - col0 * - col0 + + col2 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT col1 - 0 FROM tab2
----
17
31
59

query I rowsort
SELECT + col0 * + col0 + col0 + col0 FROM tab0
----
1295
624
8099

query I rowsort
SELECT + - col2 - ( col1 * - col1 ) FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT ALL 80 * cor0.col2 AS col2 FROM tab0 AS cor0
----
2640
6560
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 29 ) col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * + col0 + - col1 * col1 col1 FROM tab1 AS cor0
----
-598
540
871

query I rowsort
SELECT DISTINCT 28 + + col2 * col0 FROM tab1 AS cor0
----
190
3676
7708

query I rowsort
SELECT - 41 * - col2 - + col1 * ( + 51 ) AS col0 FROM tab0 cor0
----
-1279
-3033
-4906

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab2 AS cor2, tab1 AS cor3
----
13122 values hashing to 9a0bdf2a2045d26626f269b6f4239327

onlyif mysql # use DIV operator for integer division
query I rowsort label-3766
SELECT DISTINCT + 17 DIV 16 + + col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT + 17 / 16 + + col1 FROM tab1
----
11
14
27

query I rowsort
SELECT ALL - col1 * col2 + + col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + 80 col1 FROM tab1 AS cor0
----
106
90
93

query I rowsort
SELECT ALL - + col1 * 15 FROM tab2 AS cor0
----
-255
-465
-885

onlyif mysql # use DIV operator for integer division
query I rowsort label-3770
SELECT + CAST( + col0 AS SIGNED ) DIV + col0 + 66 + cor0.col1 * col1 * + col1 AS col0 FROM tab1 AS cor0
----
1067
17643
2264

skipif mysql # not compatible
query I rowsort label-3770
SELECT + CAST ( + col0 AS INTEGER ) / + col0 + 66 + cor0.col1 * col1 * + col1 AS col0 FROM tab1 AS cor0
----
1067
17643
2264

onlyif mysql # use DIV operator for integer division
query I rowsort label-3771
SELECT DISTINCT 41 * - col2 + col0 * 73 + - col0 DIV - col0 FROM tab1 AS cor0
----
-1994
1905
2336

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT 41 * - col2 + col0 * 73 + - col0 / - col0 FROM tab1 AS cor0
----
-1994
1905
2336

query I rowsort
SELECT - tab0.col0 * col1 - + col0 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT - 72 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888

query I rowsort
SELECT ALL + 25 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 - 55 col2 FROM tab1
----
-2971
-3304
-9271

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 + 63 col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 9ecd0c7aa257f92c701c0e9fed42e1e6

query I rowsort
SELECT + ( cor0.col2 ) * + col1 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + 74 + - col0 AS col1 FROM tab1
----
-6
10
71

query I rowsort
SELECT ALL - col1 - 74 FROM tab0 AS cor0
----
-160
-165
-171

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3780
SELECT col1 * + CAST( NULL AS SIGNED ) * ( + cor0.col0 ) + 23 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3780
SELECT col1 * + CAST ( NULL AS INTEGER ) * ( + cor0.col0 ) + 23 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + 66 FROM tab0 cor0
----
-16
33
65

query I rowsort
SELECT cor0.col0 * - col0 + + 6 * col2 * - col0 FROM tab0 AS cor0
----
-1435
-51709
-5328

query I rowsort
SELECT - + col0 * - cor0.col1 - - 95 FROM tab0 AS cor0
----
2159
3490
8194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + ( - 19 * - col2 ) col1 FROM tab2 AS cor0
----
3591
38532
57038

query I rowsort
SELECT col2 - + 56 * ( - col0 ) * - col1 FROM tab1 AS cor0
----
-35783
-4314
-58144

query I rowsort
SELECT col2 - ( - col0 ) FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 3 * col2 col1 FROM tab1 AS cor0
----
10944
23040
486

query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 * - col1 + col2 AS col2 FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT ALL cor0.col0 - - col0 * - 33 AS col1 FROM tab1 AS cor0
----
-2048
-2560
-96

query I rowsort
SELECT ALL col0 * col2 - col2 * col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3791
SELECT DISTINCT cor0.col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3791
SELECT DISTINCT cor0.col2 / col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + - col2 + col0 * + col0 AS col0 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT ALL col1 * ( ( col2 ) ) AS col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3794
SELECT ALL - col1 DIV ( + col2 + + col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - col1 / ( + col2 + + col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * + col1 + + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + cor0.col2 * + cor0.col2 col1 FROM tab0 AS cor0
----
-34
1065
6635

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col0 * + col1 AS REAL ) FROM tab2
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 79 ) col2 FROM tab1
----
79

query I rowsort
SELECT DISTINCT - col0 * col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT col1 + - 34 FROM tab2
----
-17
-3
25

query I rowsort
SELECT ( - 11 ) FROM tab0
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 col0 FROM tab0
----
10
10
10

query I rowsort
SELECT - - cor0.col2 * col0 AS col1 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3805
SELECT DISTINCT - col2 DIV col1 AS col0 FROM tab2 cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT - col2 / col1 AS col0 FROM tab2 cor0
----
-2
0

query I rowsort
SELECT DISTINCT 68 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1768
680
884

query I rowsort
SELECT cor0.col2 * col0 + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - - 61 * + col0 FROM tab1 AS cor0
----
183
3904
4880

query I rowsort
SELECT DISTINCT - + 6 * - cor0.col2 FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT DISTINCT + - 67 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-32
-43
22

query I rowsort
SELECT + col1 + + 49 * col0 + col2 * - col1 FROM tab0
----
-1576
-3010
1715

onlyif mysql # use DIV operator for integer division
query I rowsort label-3812
SELECT DISTINCT + col0 * 59 DIV 90 FROM tab0 AS cor0
----
15
22
58

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT + col0 * 59 / 90 FROM tab0 AS cor0
----
15
22
58

query I rowsort
SELECT DISTINCT - col2 + col1 * - col0 * + col2 FROM tab1 AS cor0
----
-36537
-4266
-99936

query I rowsort
SELECT ALL col2 * - 12 AS col2 FROM tab2 AS cor0
----
-312
-324
-456

query I rowsort
SELECT + col0 * + 29 FROM tab1
----
1856
2320
87

query I rowsort
SELECT - 58 FROM tab2, tab1 cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT + col0 * cor0.col0 AS col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ALL - + col2 + - col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT cor0.col0 - + col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * 72 * - col0 col2 FROM tab2 AS cor0
----
-13608
-146016
-216144

query I rowsort
SELECT DISTINCT cor0.col2 * - col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col0 + 54 FROM tab0 AS cor0
----
143
78
89

query I rowsort
SELECT ALL col2 + 98 AS col0 FROM tab2 cor0
----
124
125
136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3824
SELECT ALL col1 * + CAST( col1 AS SIGNED ) + + col1 col1 FROM tab2 AS cor0
----
306
3540
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL col1 * + CAST ( col1 AS INTEGER ) + + col1 col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT - col2 * + col2 * col1 FROM tab0 cor0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3826
SELECT - - col0 DIV ( col0 ) AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3826
SELECT - - col0 / ( col0 ) AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col1 + + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT cor0.col0 * - 80 * col2 FROM tab1 AS cor0
----
-12960
-291840
-614400

query I rowsort
SELECT - 61 * + col2 FROM tab0 AS cor0
----
-2013
-5002
-61

query I rowsort
SELECT ALL col0 + 33 * - col0 * col2 FROM tab0 cor0
----
-1120
-240745
-26112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + - col0 * col1 col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT + col1 * col2 + + cor0.col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT col0 + - col1 * - col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + col1 + + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT - col0 * + col2 * + cor0.col2 + col2 AS col1 FROM tab1 AS cor0
----
-207879
-737184
-8694

query I rowsort
SELECT cor0.col2 + - col1 + + col2 AS col2 FROM tab2 cor0
----
-7
23
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3837
SELECT DISTINCT + col2 * col2 DIV - col1 + col0 * col1 col2 FROM tab0
----
2052
3395
8026

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT + col2 * col2 / - col1 + col0 * col1 col2 FROM tab0
----
2052
3395
8026

query I rowsort
SELECT + cor0.col0 + + col0 * + col1 AS col0 FROM tab1 AS cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * cor0.col2 col2 FROM tab0 AS cor0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col1 col2 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( + col2 )
----

query I rowsort
SELECT col2 * col1 + + col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
1586
722
891

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE ( col2 / + col0 + + col1 ) IN ( + col2 / tab0.col1 )
----

query I rowsort
SELECT + col1 * col1 * - col1 FROM tab0
----
-636056
-753571
-912673

query I rowsort
SELECT ALL - - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + col0 * col2 - col1 AS col1 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT ALL cor0.col0 * cor0.col2 + cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
132
14760
3630

onlyif mysql # use DIV operator for integer division
query I rowsort label-3848
SELECT col0 * col0 DIV col1 - - col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
50
6187
6608

skipif mysql # not compatible
query I rowsort label-3848
SELECT col0 * col0 / col1 - - col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
50
6187
6608

query I rowsort
SELECT ALL col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3850
SELECT ALL - col1 DIV col1 + col2 AS col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL - col1 / col1 + col2 AS col2 FROM tab1 AS cor0
----
53
56
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 - col0 col1 FROM tab0 AS cor0
----
-5
49
60

query I rowsort
SELECT + col1 + col0 * + ( 0 ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT cor0.col0 + - cor0.col0 * - col2 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( 2 ) col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL + col2 * 23 AS col0 FROM tab0 AS cor0
----
1886
23
759

query I rowsort
SELECT ALL col1 + 65 AS col1 FROM tab0
----
151
156
162

query I rowsort
SELECT ALL 33 AS col1 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT DISTINCT 81 + - 66 * cor0.col0 AS col2 FROM tab2, tab1 cor0
----
-117
-4143
-5199

query I rowsort
SELECT ALL - cor0.col2 + + col1 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - + ( - 30 ) AS col2 FROM tab0 AS cor0
----
30
30
30

query I rowsort
SELECT + 90 - + 93 AS col2 FROM tab2
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col2 FROM tab1 AS cor0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT col2 * - cor0.col2 + col1 * col1 AS col1 FROM tab2 AS cor0
----
-1155
232
2805

query I rowsort
SELECT DISTINCT - - 13 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-13
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3866
SELECT col2 + - col1 - ( col1 ) DIV col2 AS col2 FROM tab0 AS cor0
----
-10
-193
-55

skipif mysql # not compatible
query I rowsort label-3866
SELECT col2 + - col1 - ( col1 ) / col2 AS col2 FROM tab0 AS cor0
----
-10
-193
-55

query I rowsort
SELECT ALL + + 95 AS col1 FROM tab2 AS cor0
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 81 ) col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

query I rowsort
SELECT DISTINCT + ( col0 ) * - col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - col1 * col0 * + col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ( + tab0.col1 ) * + col2 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL ( - tab1.col1 ) * - col0 * + 1 AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL cor0.col0 * - col0 + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-4153
-63
-6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-3874
SELECT ALL 92 DIV + col0 + + 71 AS col1 FROM tab2 AS cor0
----
72
72
84

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL 92 / + col0 + + 71 AS col1 FROM tab2 AS cor0
----
72
72
84

query I rowsort
SELECT ALL - + col2 + col2 * 48 + cor0.col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
3249
3942
5760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + cor0.col1 col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - + col2 * - col2 + col1 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-3878
SELECT DISTINCT + + 79 DIV - col0 + + 37 * 96 AS col2 FROM tab0 AS cor0
----
3549
3550
3552

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT + + 79 / - col0 + + 37 * 96 AS col2 FROM tab0 AS cor0
----
3549
3550
3552

query I rowsort
SELECT ALL - col2 * col2 + - 44 + col2 * col2 FROM tab2 AS cor0
----
-44
-44
-44

query I rowsort
SELECT ALL + col1 * - col2 + + ( - col0 ) + + col0 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3881
SELECT 19 DIV - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3881
SELECT 19 / - col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL 98 - col1 AS col0 FROM tab2
----
39
67
81

query I rowsort
SELECT - cor0.col2 * col2 + 9 * + cor0.col0 * - col0 AS col2 FROM tab1 AS cor0
----
-2997
-40113
-66816

query I rowsort
SELECT ALL 57 - col0 * - ( - col2 ) FROM tab0
----
-7241
-735
22

query I rowsort
SELECT col0 * col2 + - col2 + tab2.col1 * col2 AS col1 FROM tab2
----
3536
3610
999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 - col2 col2 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT DISTINCT - tab1.col2 * + col0 * ( - col1 ) + col2 AS col1 FROM tab1
----
36537
4266
99936

query I rowsort
SELECT + tab0.col1 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT - col0 * - 92 AS col2 FROM tab2
----
644
7176
7268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor1.col0 ) + 12 col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1d6e9d34edb3135ef48a17cae5cc80d9

query I rowsort
SELECT ALL - col1 + + 62 * - col2 AS col0 FROM tab1 AS cor0
----
-3374
-3544
-5965

query I rowsort
SELECT DISTINCT + 36 + + 17 * cor0.col2 * + 10 + 47 FROM tab1 AS cor0
----
16403
9263
9773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 57 - 76 col1 FROM tab1 AS cor0
----
-19

query I rowsort
SELECT + cor0.col1 * + col0 * + col1 AS col2 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT DISTINCT - cor0.col2 * 63 + col0 * - ( + cor0.col1 ) * - col1 FROM tab0 AS cor0
----
175425
329252
731843

query I rowsort
SELECT DISTINCT + col0 * col2 + col0 * + col2 FROM tab1 AS cor0
----
15360
324
7296

query I rowsort
SELECT - tab1.col2 * col1 + + col0 * col1 AS col0 FROM tab1
----
-1326
-208
70

query I rowsort
SELECT DISTINCT 46 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
46

query I rowsort
SELECT + tab1.col2 + - ( + col1 ) FROM tab1
----
28
47
83

query I rowsort
SELECT + tab2.col2 * tab2.col0 * + col2 + + col1 FROM tab2
----
114093
5134
52787

query I rowsort
SELECT ALL + col0 * + col0 + col0 * col1 + + col2 FROM tab0 AS cor0
----
16102
2673
4621

query I rowsort
SELECT DISTINCT + 24 - col1 FROM tab1 AS cor0
----
-2
11
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3903
SELECT - - CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-3903
SELECT - - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT col0 * col2 * col0 + 42 * col1 AS col1 FROM tab1 AS cor0
----
1578
233892
614946

query I rowsort
SELECT DISTINCT 88 + col1 AS col1 FROM tab0 AS cor0
----
174
179
185

query I rowsort
SELECT ALL + 18 + - col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-144
-3630
-7662

query I rowsort
SELECT ( + col1 ) * cor0.col0 + 82 FROM tab0 AS cor0
----
2146
3477
8181

query I rowsort
SELECT DISTINCT 4 * col1 + col1 FROM tab0 AS cor0
----
430
455
485

query I rowsort
SELECT + 56 + - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1169
-520
-7865

query I rowsort
SELECT + + 3 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-14
-28
-56

query I rowsort
SELECT - col0 * ( + col2 ) AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL 31 * col1 AS col0 FROM tab2
----
1829
527
961

query I rowsort
SELECT ALL + 28 + + col1 FROM tab0 AS cor0
----
114
119
125

query I rowsort
SELECT + 55 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to c59acfbb70996777fa5053195838c3d6

query I rowsort
SELECT ALL - - 57 + - col0 + col1 * + col0 FROM tab2 AS cor0
----
1321
267
4581

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3916
SELECT - CAST( NULL AS SIGNED ) + + col1 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT - CAST ( NULL AS INTEGER ) + + col1 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 col1 FROM tab2
----
86

query I rowsort
SELECT 80 + tab1.col0 FROM tab1
----
144
160
83

query I rowsort
SELECT DISTINCT + col0 * col2 + - 84 AS col2 FROM tab0
----
-49
708
7214

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3920
SELECT + - col1 - - CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3920
SELECT + - col1 - - CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + col1 - ( col0 ) * col2 AS col0 FROM tab2 AS cor0
----
-1150
-3291
-5509

query I rowsort
SELECT cor0.col0 * col0 + + cor0.col1 * col2 * + col2 AS col1 FROM tab1 cor0
----
126208
36586
75825

query I rowsort
SELECT DISTINCT col0 * - 20 AS col0 FROM tab2 AS cor0
----
-140
-1560
-1580

query I rowsort
SELECT DISTINCT - - col2 + col2 + ( col1 * - col1 ) AS col1 FROM tab2 AS cor0
----
-213
-3429
-907

onlyif mysql # use DIV operator for integer division
query I rowsort label-3925
SELECT ALL + col2 + + 0 DIV 21 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL + col2 + + 0 / 21 AS col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3926
SELECT - CAST( - 70 AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to c07fb58c935d7dd3a559c80465f90463

skipif mysql # not compatible
query I rowsort label-3926
SELECT - CAST ( - 70 AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to c07fb58c935d7dd3a559c80465f90463

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + - col1 col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL col0 * 72 + cor0.col1 AS col2 FROM tab0 AS cor0
----
1814
2617
6499

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3929
SELECT DISTINCT + + col0 * CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT + + col0 * CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + col0 * cor0.col2 + col2 AS col0 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT + - cor0.col0 + 82 AS col1 FROM tab2 AS cor0
----
3
4
75

query I rowsort
SELECT ALL col0 * + 18 - + col1 FROM tab2 AS cor0
----
1345
1405
95

query I rowsort
SELECT ALL + col2 + col2 * ( col1 ) * + 52 AS col2 FROM tab2 AS cor0
----
33630
43551
79794

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 + col2 + + col1 col0 FROM tab0 AS cor0
----
-1945
-3297
-7926

query I rowsort
SELECT + 91 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT + col2 * col1 * - col0 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) AS col2 FROM tab1, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + - col2 * - col2 - + 83 AS col2 FROM tab2 AS cor0
----
1361
593
646

query I rowsort
SELECT - + col1 + col1 * - col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3940
SELECT - CAST( + col1 AS SIGNED ) * + cor0.col2 - 15 FROM tab2 AS cor0
----
-1549
-661
-852

skipif mysql # not compatible
query I rowsort label-3940
SELECT - CAST ( + col1 AS INTEGER ) * + cor0.col2 - 15 FROM tab2 AS cor0
----
-1549
-661
-852

query I rowsort
SELECT + col0 * + col0 + - col1 * + col0 * - cor0.col1 FROM tab1 AS cor0
----
10496
19920
2037

query I rowsort
SELECT ALL ( - col2 ) * col0 + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT + + ( col2 ) * col2 + - cor0.col2 * col1 FROM tab2 cor0
----
-108
-858
798

query I rowsort
SELECT ALL + col2 - - 27 AS col2 FROM tab0 AS cor0
----
109
28
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3945
SELECT CAST( NULL AS SIGNED ) * + col1 + + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT CAST ( NULL AS INTEGER ) * + col1 + + col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - ( - 90 ) * - col1 AS col0 FROM tab1
----
-112320
-126360
-51300

query I rowsort
SELECT ALL col2 + 69 * - col2 FROM tab0
----
-2244
-5576
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + tab1.col0 col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT - tab1.col0 * - ( - col1 ) AS col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + 75 + col0 * + col2 FROM tab1 AS cor0
----
237
3723
7755

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3951
SELECT - CAST( cor0.col2 AS SIGNED ) - col0 FROM tab1 cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-3951
SELECT - CAST ( cor0.col2 AS INTEGER ) - col0 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT + col2 + col0 * - 35 AS col0 FROM tab0 AS cor0
----
-1224
-3033
-807

query I rowsort
SELECT ALL - 72 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to 95a1a68628dd064d94b4fe1543a3419f

query I rowsort
SELECT 71 * col0 - col2 FROM tab0 AS cor0
----
1671
2484
6237

query I rowsort
SELECT ALL col1 + col0 * - 63 FROM tab1 cor0
----
-163
-4022
-5027

query I rowsort
SELECT DISTINCT + - col1 * + col0 + - col2 FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-3957
SELECT ALL - col0 DIV + col0 + - 44 * + 8 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-11617
-28865
-353

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL - col0 / + col0 + - 44 * + 8 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-11617
-28865
-353

onlyif mysql # use DIV operator for integer division
query I rowsort label-3958
SELECT DISTINCT - col0 + cor0.col2 DIV + cor0.col0 FROM tab0 AS cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT - col0 + cor0.col2 / + cor0.col0 FROM tab0 AS cor0
----
-23
-35
-89

query I rowsort
SELECT DISTINCT 51 * col2 FROM tab1 cor0
----
2754
2907
4896

onlyif mysql # use DIV operator for integer division
query I rowsort label-3960
SELECT DISTINCT - - cor0.col1 + - cor0.col2 * 32 DIV col1 AS col0 FROM tab2 AS cor0
----
-54
4
45

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT - - cor0.col1 + - cor0.col2 * 32 / col1 AS col0 FROM tab2 AS cor0
----
-54
4
45

query I rowsort
SELECT ALL 73 * + col2 FROM tab2
----
1898
1971
2774

query I rowsort
SELECT - 68 * cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2fdd4cfb0b35b796e309f1b4c404bbf1

query I rowsort
SELECT DISTINCT 20 * col0 FROM tab2 cor0
----
140
1560
1580

query I rowsort
SELECT DISTINCT 70 + + col0 AS col2 FROM tab0 AS cor0
----
105
159
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3965
SELECT + ( + col2 ) - CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-3965
SELECT + ( + col2 ) - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + col2 + col2 * - col2 AS col2 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT - - ( - cor0.col0 ) AS col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT - 24 + col1 FROM tab0 AS cor0
----
62
67
73

query I rowsort
SELECT - ( cor0.col0 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 972d282d6d92f451c90dc8ca51a18f3e

query I rowsort
SELECT - col0 + - 82 * 23 AS col1 FROM tab1 AS cor0
----
-1889
-1950
-1966

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3972
SELECT + col2 / CAST( NULL AS DECIMAL ) + 77 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3972
SELECT + col2 / CAST ( NULL AS REAL ) + 77 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 43 AS REAL ) FROM tab1 AS cor0
----
-43
-43
-43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3974
SELECT ALL + CAST( NULL AS SIGNED ) + col0 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - col0 ) * cor0.col2 - cor0.col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL 77 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 0a3bf4d9642f43f11aad64de0d046e6b

query I rowsort
SELECT ALL + 89 * + col1 + + cor0.col2 FROM tab1 AS cor0
----
1253
2368
947

query I rowsort
SELECT ALL - + ( col2 ) * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - + cor0.col2 + col1 + + col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
134
3601
7597

query I rowsort
SELECT ALL - ( col0 ) * col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - cor0.col2 * ( - col0 ) FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3984
SELECT DISTINCT col2 * - ( col0 ) + - col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
-193
-2028
-3002

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT col2 * - ( col0 ) + - col1 / + col0 AS col1 FROM tab2 AS cor0
----
-193
-2028
-3002

query I rowsort
SELECT DISTINCT + ( + col2 ) * - cor0.col1 + ( - col2 ) FROM tab2 AS cor0
----
-1560
-684
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col2 - cor0.col2 col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT ALL - 91 + cor0.col0 * + col2 FROM tab0 cor0
----
-56
701
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-3988
SELECT ALL - ( col1 ) DIV col2 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL - ( col1 ) / col2 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - ( col0 ) + col0 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL 53 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT - col0 * 63 AS col1 FROM tab0 AS cor0
----
-1512
-2205
-5607

query I rowsort
SELECT ALL col1 + ( + col1 ) * - col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - col1 * col0 * - 52 FROM tab0 AS cor0
----
107328
176540
421148

query I rowsort
SELECT DISTINCT + col1 * ( - col2 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col1 * 51 * - col1 AS col2 FROM tab1 cor0
----
-34476
-5100
-8619

query I rowsort
SELECT + col2 * col2 * col2 + col1 FROM tab2
----
17635
19714
54889

query I rowsort
SELECT DISTINCT - col0 + col2 + - col1 FROM tab2
----
-11
-111
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-3998
SELECT tab0.col0 DIV - col0 - + col1 * - col1 FROM tab0
----
7395
8280
9408

skipif mysql # not compatible
query I rowsort label-3998
SELECT tab0.col0 / - col0 - + col1 * - col1 FROM tab0
----
7395
8280
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 + col1 col0 FROM tab2
----
55
58
85

query I rowsort
SELECT - - 12 + 89 AS col2 FROM tab0 AS cor0
----
101
101
101

query I rowsort
SELECT DISTINCT ( col2 ) * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - 29 * col2 * - col2 FROM tab0 AS cor0
----
194996
29
31581

query I rowsort
SELECT ( col1 ) + - cor0.col0 AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT - 69 * + cor0.col1 FROM tab1 AS cor0
----
-1794
-690
-897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 col0 FROM tab2 cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4006
SELECT - col1 DIV + col0 + 64 DIV - col0 FROM tab1
----
-1
-29
0

skipif mysql # not compatible
query I rowsort label-4006
SELECT - col1 / + col0 + 64 / - col0 FROM tab1
----
-1
-29
0

query I rowsort
SELECT DISTINCT + col0 + + 40 * + 80 + col1 AS col1 FROM tab0
----
3310
3332
3380

query I rowsort
SELECT - col0 + + ( + tab1.col0 * col2 ) FROM tab1
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-4009
SELECT DISTINCT ( col0 ) DIV + 60 col1 FROM tab2 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT ( col0 ) / + 60 col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT ALL + cor0.col0 + + col2 * + 72 FROM tab0 AS cor0
----
107
2400
5993

query I rowsort
SELECT - cor0.col2 * cor0.col1 - - 32 * - 25 FROM tab2 AS cor0
----
-1446
-1637
-2334

query I rowsort
SELECT - + ( - col1 ) + 83 - + col2 FROM tab0 AS cor0
----
136
179
92

query I rowsort
SELECT - col1 * col2 - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT + col2 * + 80 * - 37 FROM tab1 AS cor0
----
-159840
-168720
-284160

query I rowsort
SELECT - 19 * tab1.col1 FROM tab1
----
-190
-247
-494

query I rowsort
SELECT ALL + 24 + col0 + + ( 65 ) FROM tab2
----
167
168
96

query I rowsort
SELECT DISTINCT + col0 * col0 + - col2 AS col0 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT - col2 * - col1 + ( + col2 ) FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT col0 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL col2 + col2 * + 18 + - tab2.col0 AS col2 FROM tab2
----
416
506
643

query I rowsort
SELECT ALL 60 + + col1 FROM tab0
----
146
151
157

query I rowsort
SELECT + ( + col2 * col0 ) AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + + ( + col2 ) AS col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT + ( 97 ) FROM tab2 AS cor0
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 * col1 col2 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT 19 + col2 * col1 AS col0 FROM tab2 cor0
----
1553
665
856

query I rowsort
SELECT ALL + col0 + + col0 AS col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + col1 + + col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT 87 + 34 - + cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 73c29f370d925281b4026bb01ccb264c

query I rowsort
SELECT 98 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT cor0.col0 FROM tab0, tab0 cor0, tab2 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - 10 FROM tab2, tab1 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col1 AS REAL ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 * + col0 + - col0 col0 FROM tab0 AS cor0
----
1896
2765
7031

query I rowsort
SELECT DISTINCT - 27 + - col0 AS col0 FROM tab1 AS cor0
----
-107
-30
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-4036
SELECT + 53 * cor0.col2 DIV col0 AS col2 FROM tab2 cor0
----
17
204
25

skipif mysql # not compatible
query I rowsort label-4036
SELECT + 53 * cor0.col2 / col0 AS col2 FROM tab2 cor0
----
17
204
25

query I rowsort
SELECT + 28 AS col0 FROM tab0 AS cor0
----
28
28
28

query I rowsort
SELECT DISTINCT + col0 * + 57 FROM tab2 AS cor0
----
399
4446
4503

onlyif mysql # use DIV operator for integer division
query I rowsort label-4039
SELECT DISTINCT - col1 DIV + 26 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT - col1 / + 26 FROM tab1 AS cor0
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4040
SELECT - CAST( + ( col1 ) AS SIGNED ) col2 FROM tab1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4040
SELECT - CAST ( + ( col1 ) AS INTEGER ) col2 FROM tab1
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4041
SELECT + col1 * - 18 + - tab1.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT + col1 * - 18 + - tab1.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 * + col2 col1 FROM tab1 AS cor0
----
-2484
-2622
-4416

query I rowsort
SELECT - - cor0.col1 * col2 * col1 AS col0 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT - 27 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * + 66 col1 FROM tab1
----
3564
3762
6336

onlyif mysql # use DIV operator for integer division
query I rowsort label-4046
SELECT - col1 + + col0 DIV 32 FROM tab1 AS cor0
----
-11
-26
-8

skipif mysql # not compatible
query I rowsort label-4046
SELECT - col1 + + col0 / 32 FROM tab1 AS cor0
----
-11
-26
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + cor0.col0 col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + col0 * + 6 * - col1 FROM tab0 cor0
----
-12384
-20370
-48594

query I rowsort
SELECT DISTINCT + cor0.col2 + col1 + cor0.col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT - col2 * + 40 AS col0 FROM tab0 AS cor0
----
-1320
-3280
-40

query I rowsort
SELECT - col1 + + 35 * col1 * - col0 FROM tab0 AS cor0
----
-118922
-283556
-72326

query I rowsort
SELECT ALL col1 + ( + col0 + + col1 ) FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - + 64 * + col0 FROM tab0 AS cor0
----
-1536
-2240
-5696

query I rowsort
SELECT - col0 * - cor0.col2 AS col0 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4056
SELECT + col1 * - CAST( - ( col2 ) * + 9 AS SIGNED ) AS col1 FROM tab1
----
11232
12636
5130

skipif mysql # not compatible
query I rowsort label-4056
SELECT + col1 * - CAST ( - ( col2 ) * + 9 AS INTEGER ) AS col1 FROM tab1
----
11232
12636
5130

query I rowsort
SELECT - 4 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT - col2 * - col0 * col2 + col2 AS col0 FROM tab0
----
26169
36
598518

query I rowsort
SELECT ALL + 16 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 9ffb4aaf972de606a4957894645b6216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 * - cor0.col2 col0 FROM tab2 cor0
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT col1 * col0 * - col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ALL - + col0 + 67 AS col2 FROM tab0 AS cor0
----
-22
32
43

query I rowsort
SELECT + col0 * 16 * + col1 AS col2 FROM tab1 cor0
----
10240
1248
16640

onlyif mysql # use DIV operator for integer division
query I rowsort label-4064
SELECT - col0 DIV 32 FROM tab2 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-4064
SELECT - col0 / 32 FROM tab2 AS cor0
----
-2
-2
0

query I rowsort
SELECT ALL + 43 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT DISTINCT + 86 * + col2 AS col0 FROM tab1
----
4644
4902
8256

onlyif mysql # use DIV operator for integer division
query I rowsort label-4067
SELECT DISTINCT + ( - col1 ) DIV + ( col0 + col2 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT + ( - col1 ) / + ( col0 + col2 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL - col0 * - 57 AS col2 FROM tab0 AS cor0
----
1368
1995
5073

onlyif mysql # use DIV operator for integer division
query I rowsort label-4069
SELECT DISTINCT + - col1 + - col0 DIV col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT + - col1 + - col0 / col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - 64 * col0 FROM tab0 AS cor0
----
-1536
-2240
-5696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + 2 * - col0 col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT tab0.col2 * + 59 - 86 AS col0 FROM tab0
----
-27
1861
4752

query I rowsort
SELECT DISTINCT + col2 * - col2 * 11 FROM tab2
----
-15884
-7436
-8019

query I rowsort
SELECT ALL - 21 + col0 FROM tab2 AS cor0
----
-14
57
58

query I rowsort
SELECT ALL 30 + - col1 AS col0 FROM tab1 AS cor0
----
17
20
4

query I rowsort
SELECT col2 * + ( col2 ) AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT - tab0.col0 - col2 * - 34 FROM tab0
----
-1
1098
2699

onlyif mysql # use DIV operator for integer division
query I rowsort label-4078
SELECT DISTINCT + col0 * col0 DIV - col0 + col1 AS col2 FROM tab1
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT + col0 * col0 / - col0 + col1 AS col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT + ( col2 + 8 ) FROM tab2
----
34
35
46

query I rowsort
SELECT - cor0.col0 * - col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + 43 * + col2 AS col1 FROM tab2 AS cor0
----
1118
1161
1634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4082
SELECT - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4082
SELECT - + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + ( - cor0.col1 ) AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL + + 69 - cor0.col0 FROM tab1 AS cor0
----
-11
5
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4085
SELECT - cor0.col0 DIV + cor0.col0 + 79 FROM tab0 AS cor0
----
78
78
78

skipif mysql # not compatible
query I rowsort label-4085
SELECT - cor0.col0 / + cor0.col0 + 79 FROM tab0 AS cor0
----
78
78
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4086
SELECT DISTINCT col1 * cor0.col1 + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
36
673
89

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT col1 * cor0.col1 + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT ALL - col1 + - 8 AS col0 FROM tab1 AS cor0
----
-18
-21
-34

query I rowsort
SELECT DISTINCT col0 * + ( col1 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + cor0.col1 * ( col1 ) - col2 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT ALL - cor0.col0 + + 42 * + col2 FROM tab1 AS cor0
----
2265
2330
3952

onlyif mysql # use DIV operator for integer division
query I rowsort label-4091
SELECT ALL - cor0.col2 DIV col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL - cor0.col2 / col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 + col2 col2 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-4093
SELECT + col2 * - col1 DIV - tab1.col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4093
SELECT + col2 * - col1 / - tab1.col1 FROM tab1
----
54
57
96

query I rowsort
SELECT col1 * + cor0.col0 * col0 + 18 + - col0 FROM tab0 AS cor0
----
118808
49530
720740

query I rowsort
SELECT + col1 + 17 + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1218
-1361
-543

onlyif mysql # use DIV operator for integer division
query I rowsort label-4096
SELECT - 60 + 76 DIV col0 FROM tab1
----
-35
-59
-60

skipif mysql # not compatible
query I rowsort label-4096
SELECT - 60 + 76 / col0 FROM tab1
----
-35
-59
-60

query I rowsort
SELECT DISTINCT col1 * col2 + col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT + col0 + col0 * - tab2.col0 AS col2 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT + col0 * - col0 - col1 * + 0 FROM tab1 cor0
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4100
SELECT - CAST( + col2 AS SIGNED ) * col2 + + col2 * - col2 - col1 * + ( 69 + col0 ) FROM tab0 AS cor0
----
-10090
-10176
-27826

skipif mysql # not compatible
query I rowsort label-4100
SELECT - CAST ( + col2 AS INTEGER ) * col2 + + col2 * - col2 - col1 * + ( 69 + col0 ) FROM tab0 AS cor0
----
-10090
-10176
-27826

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 * - cor0.col2 + + col0 * + col1 AS col0 FROM tab1 AS cor0
----
-157386
-184553
-883696

query I rowsort
SELECT - ( - cor0.col1 ) - - col2 * col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - + ( col2 ) + - cor0.col0 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT 72 * + cor0.col1 * 1 AS col0 FROM tab1 AS cor0
----
1872
720
936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4105
SELECT ALL + ( col2 ) * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL + ( col2 ) * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 68 AS col1 FROM tab1 AS cor0
----
-68

query I rowsort
SELECT ALL - col0 * - col2 * col2 FROM tab0 cor0
----
26136
35
598436

query I rowsort
SELECT ALL + + 54 + col0 * + 74 FROM tab1 AS cor0
----
276
4790
5974

query I rowsort
SELECT DISTINCT col1 * col2 - - col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT ALL - - col1 * - col2 * cor0.col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT col1 + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + 17 + col1 - col0 AS col0 FROM tab1 AS cor0
----
-37
-50
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 col1 FROM tab2
----
69

query I rowsort
SELECT ALL tab0.col2 - col2 AS col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4115
SELECT col1 + 87 DIV tab0.col2 + + col0 FROM tab0
----
112
181
219

skipif mysql # not compatible
query I rowsort label-4115
SELECT col1 + 87 / tab0.col2 + + col0 FROM tab0
----
112
181
219

query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab2, tab1 AS cor0
----
99

query I rowsort
SELECT ALL - cor0.col0 + 20 AS col2 FROM tab0 AS cor0
----
-15
-4
-69

query I rowsort
SELECT + col0 * - 8 FROM tab2 AS cor0
----
-56
-624
-632

query I rowsort
SELECT ALL + col2 * + 36 + + col2 - col2 AS col2 FROM tab1 AS cor0
----
1944
2052
3456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + cor0.col2 + + 28 col2 FROM tab2 AS cor0
----
1472
704
757

query I rowsort
SELECT + col2 + 95 AS col0 FROM tab2 AS cor0
----
121
122
133

query I rowsort
SELECT col2 + col2 * cor0.col0 * + col0 FROM tab2 AS cor0
----
1350
158210
237196

query I rowsort
SELECT 55 * - col0 + col0 AS col0 FROM tab0 AS cor0
----
-1296
-1890
-4806

onlyif mysql # use DIV operator for integer division
query I rowsort label-4124
SELECT col2 * + 65 + col2 DIV - col0 FROM tab2 AS cor0
----
1690
1752
2470

skipif mysql # not compatible
query I rowsort label-4124
SELECT col2 * + 65 + col2 / - col0 FROM tab2 AS cor0
----
1690
1752
2470

query I rowsort
SELECT DISTINCT + cor1.col1 + + cor0.col0 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
9 values hashing to fb176be5d9b49c1f744e4199c3ae250f

query I rowsort
SELECT - + 52 - + cor0.col2 AS col0 FROM tab2 AS cor0
----
-78
-79
-90

query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - 65 + + tab0.col1 AS col0 FROM tab0
----
21
26
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4129
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / 70 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT + CAST ( NULL AS REAL ) / 70 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT 14 AS col0 FROM tab0, tab2, tab1 AS cor0
----
14

query I rowsort
SELECT tab0.col0 * col1 * + col1 AS col2 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT - col1 * col2 * tab1.col1 AS col1 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT ALL + col0 * + col1 + + col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + col1 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + col0 * col2 * col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT + col2 * col2 * + col0 AS col0 FROM tab1 cor0
----
207936
737280
8748

query I rowsort
SELECT - col1 * col2 + + col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1566
-2090
-2210

query I rowsort
SELECT DISTINCT col1 * col1 + col1 AS col2 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT + col0 * col0 + - col0 AS col2 FROM tab0
----
1190
552
7832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4140
SELECT ALL - CAST( + col0 AS SIGNED ) + - tab2.col0 AS col2 FROM tab2
----
-14
-156
-158

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL - CAST ( + col0 AS INTEGER ) + - tab2.col0 AS col2 FROM tab2
----
-14
-156
-158

query I rowsort
SELECT col1 * col0 - col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT - col0 * - 42 FROM tab1
----
126
2688
3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT + + col1 + col1 * + col1 * col1 AS col0 FROM tab0 AS cor0
----
636142
753662
912770

query I rowsort
SELECT - - col1 * - col1 + col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-7348
-8103
-9339

query I rowsort
SELECT - - 55 - col1 FROM tab2 AS cor0
----
-4
24
38

query I rowsort
SELECT + tab2.col1 * + tab2.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba

query I rowsort
SELECT - 45 * col1 + - col1 AS col1 FROM tab1 AS cor0
----
-1196
-460
-598

query I rowsort
SELECT DISTINCT col2 + 20 FROM tab1
----
116
74
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-4150
SELECT - col0 DIV - 93 - col0 AS col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4150
SELECT - col0 / - 93 - col0 AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + + 63 * col1 FROM tab1 AS cor0
----
1638
630
819

onlyif mysql # use DIV operator for integer division
query I rowsort label-4152
SELECT + 95 DIV col1 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4152
SELECT + 95 / col1 FROM tab0 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 col0 FROM tab2 AS cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT - 46 * col0 AS col0 FROM tab2 AS cor0
----
-322
-3588
-3634

query I rowsort
SELECT ALL 6 + + col1 AS col0 FROM tab2
----
23
37
65

query I rowsort
SELECT ALL - 36 * - col0 + - ( + ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
245
2730
2765

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4157
SELECT ALL 90 - - cor0.col0 * CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
125
7388
882

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL 90 - - cor0.col0 * CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
125
7388
882

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4158
SELECT ALL + + col2 * col2 + CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + + col2 * col2 + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * - col1 + + ( + cor0.col0 ) + + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1076
239
2883

query I rowsort
SELECT DISTINCT + col1 * col2 - - 20 * col0 FROM tab2 cor0
----
2226
3094
977

query I rowsort
SELECT ALL - - 59 AS col2 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT DISTINCT - col1 + - col1 * 1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ALL 81 * + col2 - col1 AS col2 FROM tab0 AS cor0
----
-16
2587
6551

query I rowsort
SELECT DISTINCT + + 89 AS col2 FROM tab0 AS cor0
----
89

query I rowsort
SELECT ( + 13 ) - col2 FROM tab1
----
-41
-44
-83

query I rowsort
SELECT ( col0 ) * + col2 + + col0 AS col1 FROM tab0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4167
SELECT + CAST( + col0 AS SIGNED ) + - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4167
SELECT + CAST ( + col0 AS INTEGER ) + - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + 65 AS col2 FROM tab2 cor0
----
65
65
65

query I rowsort
SELECT - - cor0.col1 + - cor0.col2 - col2 FROM tab2 AS cor0
----
-23
-59
7

query I rowsort
SELECT + col1 * - col0 + + 45 AS col2 FROM tab1 AS cor0
----
-33
-595
-995

query I rowsort
SELECT col2 * col2 + col0 * col1 * col1 AS col1 FROM tab1 AS cor0
----
22736
4944
9649

query I rowsort
SELECT + col0 + 92 FROM tab2 AS cor0
----
170
171
99

query I rowsort
SELECT DISTINCT + + col0 * col0 * - col2 AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT + + cor0.col2 + col1 + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-573
-931
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4175
SELECT cor0.col1 DIV CAST( - 4 AS SIGNED ) FROM tab1 AS cor0
----
-2
-3
-6

skipif mysql # not compatible
query I rowsort label-4175
SELECT cor0.col1 / CAST ( - 4 AS INTEGER ) FROM tab1 AS cor0
----
-2
-3
-6

query I rowsort
SELECT + col2 * - col1 + + 22 * + col1 FROM tab1 AS cor0
----
-350
-832
-962

query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 + - 17 + - col1 FROM tab1 AS cor0
----
-1278
-1447
-597

query I rowsort
SELECT DISTINCT col0 * - 68 FROM tab1 AS cor0
----
-204
-4352
-5440

query I rowsort
SELECT col2 * + 35 AS col2 FROM tab1
----
1890
1995
3360

query I rowsort
SELECT + 1 * 65 AS col1 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT - col1 * 74 AS col2 FROM tab1 AS cor0
----
-1924
-740
-962

query I rowsort
SELECT DISTINCT + + ( + col0 ) + col2 * + col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT tab0.col1 * - col0 * col1 + - col0 FROM tab0
----
-177528
-329350
-737098

query I rowsort
SELECT + col0 * - 63 FROM tab1
----
-189
-4032
-5040

query I rowsort
SELECT ALL col1 + col1 - - 6 * - col0 FROM tab1
----
-364
-454
34

query I rowsort
SELECT DISTINCT - 33 * 58 AS col1 FROM tab0 AS cor0
----
-1914

query I rowsort
SELECT ALL + - ( - col2 ) * + col1 + + col2 * + 81 FROM tab0 AS cor0
----
14104
178
5511

query I rowsort
SELECT DISTINCT + 34 * + col1 FROM tab0 AS cor0
----
2924
3094
3298

onlyif mysql # use DIV operator for integer division
query I rowsort label-4189
SELECT ALL - 81 DIV col0 + col2 AS col1 FROM tab1 cor0
----
27
56
95

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL - 81 / col0 + col2 AS col1 FROM tab1 cor0
----
27
56
95

query I rowsort
SELECT + 59 * - col0 AS col0 FROM tab1 AS cor0
----
-177
-3776
-4720

query I rowsort
SELECT + + cor0.col0 + - col2 * - col1 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4192
SELECT + + CAST( - cor0.col2 AS SIGNED ) - col0 * ( ( + col1 ) ) FROM tab2 AS cor0
----
-1381
-244
-4628

skipif mysql # not compatible
query I rowsort label-4192
SELECT + + CAST ( - cor0.col2 AS INTEGER ) - col0 * ( ( + col1 ) ) FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-4193
SELECT cor0.col2 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4193
SELECT cor0.col2 / cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL - - col1 * col2 * col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL col0 * col1 + + col1 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT - col1 + col1 + col1 AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT col1 + + 11 + + col2 AS col0 FROM tab1
----
120
78
91

query I rowsort
SELECT DISTINCT col2 + + col2 * col1 + - col2 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL + tab1.col0 - col2 * col0 * - col1 FROM tab1
----
36544
4215
99920

query I rowsort
SELECT DISTINCT tab2.col1 + col1 + + col2 * col2 FROM tab2
----
1478
791
794

query I rowsort
SELECT - 57 * + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-399
-4446
-4503

query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col2 * col2 FROM tab1 AS cor0
----
157464
185193
884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-4203
SELECT ALL + col2 DIV col2 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL + col2 / col2 AS col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT - - col1 * + 2 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT DISTINCT - + cor0.col0 * 38 FROM tab0 AS cor0
----
-1330
-3382
-912

query I rowsort
SELECT - 27 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col1 * 98 * col1 col1 FROM tab2
----
28305
341079
94147

query I rowsort
SELECT col0 * - ( + col1 * col2 ) AS col2 FROM tab0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4209
SELECT ALL + col0 * + CAST( NULL AS DECIMAL ) + - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL + col0 * + CAST ( NULL AS REAL ) + - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( cor0.col2 ) FROM tab0, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT + 31 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
31

query I rowsort
SELECT col1 * + 2 AS col2 FROM tab1
----
20
26
52

query I rowsort
SELECT tab0.col1 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT - col0 + col0 + - col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT - col1 + col2 * + ( col2 ) AS col2 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT + cor0.col1 + - col0 FROM tab1 cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4217
SELECT ALL + col2 * - col1 + - col1 DIV cor0.col1 FROM tab1 AS cor0
----
-1249
-1405
-571

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL + col2 * - col1 + - col1 / cor0.col1 FROM tab1 AS cor0
----
-1249
-1405
-571

query I rowsort
SELECT DISTINCT + - col2 + col2 * - 84 * col1 + - col2 AS col0 FROM tab0 AS cor0
----
-238458
-626972
-8150

query I rowsort
SELECT cor0.col2 * - col0 + ( + col2 ) FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + + col0 * 85 AS col2 FROM tab0 AS cor0
----
2040
2975
7565

query I rowsort
SELECT DISTINCT - col2 - - col2 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - cor1.col2 + 89 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 897d5db65df4028e2c64d80cb161115d

query I rowsort
SELECT DISTINCT ( - col2 ) * col0 FROM tab2
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT 45 FROM tab2, tab2 cor0, tab1 AS cor1
----
45

query I rowsort
SELECT ALL col0 + + ( 63 ) FROM tab0 AS cor0
----
152
87
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4227
SELECT DISTINCT - col2 DIV + ( + col1 ) AS col2 FROM tab2
----
-2
0

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT - col2 / + ( + col1 ) AS col2 FROM tab2
----
-2
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4228
SELECT DISTINCT col2 * CAST( - col1 AS SIGNED ) + col1 * - 26 + col0 FROM tab2 AS cor0
----
-1009
-1636
-2990

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT col2 * CAST ( - col1 AS INTEGER ) + col1 * - 26 + col0 FROM tab2 AS cor0
----
-1009
-1636
-2990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4229
SELECT + CAST( col0 + + col2 AS SIGNED ) * - ( col1 ) FROM tab0
----
-15561
-3492
-4902

skipif mysql # not compatible
query I rowsort label-4229
SELECT + CAST ( col0 + + col2 AS INTEGER ) * - ( col1 ) FROM tab0
----
-15561
-3492
-4902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 30 ) col0 FROM tab2, tab1, tab1 cor0
----
-30

query I rowsort
SELECT 94 * + col1 AS col2 FROM tab0
----
8084
8554
9118

onlyif mysql # use DIV operator for integer division
query I rowsort label-4232
SELECT DISTINCT 58 DIV 56 + col1 col1 FROM tab0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT 58 / 56 + col1 col1 FROM tab0
----
87
92
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4233
SELECT ALL CAST( + col2 AS SIGNED ) + col1 AS col0 FROM tab1
----
109
67
80

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL CAST ( + col2 AS INTEGER ) + col1 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT ( 93 * col2 ) AS col2 FROM tab2
----
2418
2511
3534

query I rowsort
SELECT DISTINCT + - col2 * + cor0.col0 * col0 + cor0.col2 * - col2 - col0 AS col2 FROM tab1 AS cor0
----
-236785
-3405
-623696

query I rowsort
SELECT + + ( cor0.col0 ) - cor0.col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL col2 + - 13 FROM tab1 AS cor0
----
41
44
83

query I rowsort
SELECT ALL col2 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + cor0.col1 * col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4240
SELECT DISTINCT - CAST( col2 AS SIGNED ) + cor0.col1 * col2 col2 FROM tab2 cor0
----
1508
608
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + cor0.col1 * col2 col2 FROM tab2 cor0
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-4241
SELECT DISTINCT col2 + col2 DIV 11 FROM tab1 AS cor0
----
104
58
62

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT col2 + col2 / 11 FROM tab1 AS cor0
----
104
58
62

query I rowsort
SELECT DISTINCT + col1 - cor0.col1 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4243
SELECT + + cor0.col1 + col2 / CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4243
SELECT + + cor0.col1 + col2 / CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( - col0 ) + 36 * col2 FROM tab2 AS cor0
----
1289
858
965

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col0 ) + + col0 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + - col2 - + col1 * + col2 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL - + 50 * + col0 + - col0 FROM tab2 AS cor0
----
-357
-3978
-4029

query I rowsort
SELECT ALL col1 * col0 + - ( 45 ) FROM tab0 AS cor0
----
2019
3350
8054

query I rowsort
SELECT DISTINCT - 34 + + col2 FROM tab1
----
20
23
62

query I rowsort
SELECT + col2 * col1 + + 54 FROM tab1 cor0
----
1302
1458
624

query I rowsort
SELECT + 30 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to 1ae25494a21836bac07879aa19fd4615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col2 FROM tab1
----
19
19
19

query I rowsort
SELECT - col2 * + 12 FROM tab1
----
-1152
-648
-684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 67 * - col1 col2 FROM tab1 AS cor0
----
-1742
-670
-871

query I rowsort
SELECT - 79 + col2 FROM tab0
----
-46
-78
3

query I rowsort
SELECT - 82 * col2 AS col2 FROM tab1
----
-4428
-4674
-7872

query I rowsort
SELECT + col0 * col1 - + ( - col2 ) * col1 AS col2 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT col1 + col2 * + 97 FROM tab0 cor0
----
194
3287
8045

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - ( + col0 ) col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4260
SELECT col1 * CAST( + 50 AS SIGNED ) FROM tab2 AS cor0
----
1550
2950
850

skipif mysql # not compatible
query I rowsort label-4260
SELECT col1 * CAST ( + 50 AS INTEGER ) FROM tab2 AS cor0
----
1550
2950
850

query I rowsort
SELECT + col0 * + 97 + + col0 AS col0 FROM tab1 AS cor0
----
294
6272
7840

query I rowsort
SELECT ALL col0 + ( col0 ) * col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + col1 * 95 FROM tab1 AS cor0
----
1235
2470
950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( 52 ) col2 FROM tab2 AS cor0
----
364
4056
4108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 67 col1 FROM tab1 AS cor0
----
-201
-4288
-5360

query I rowsort
SELECT - cor0.col0 * col0 + ( col2 ) AS col2 FROM tab1 cor0
----
-4039
-6304
45

query I rowsort
SELECT cor0.col2 * ( 97 ) FROM tab2 AS cor0
----
2522
2619
3686

query I rowsort
SELECT ALL + 48 * - col0 AS col1 FROM tab2
----
-336
-3744
-3792

query I rowsort
SELECT ( col1 ) * - 36 FROM tab2
----
-1116
-2124
-612

query I rowsort
SELECT - ( 39 ) * cor0.col0 + col1 FROM tab2 AS cor0
----
-242
-2983
-3064

query I rowsort
SELECT + ( col1 ) + + col0 * - 28 FROM tab1 AS cor0
----
-1782
-2227
-58

query I rowsort
SELECT 7 + col0 AS col2 FROM tab0 AS cor0
----
31
42
96

query I rowsort
SELECT 4 FROM tab1, tab1 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT DISTINCT - 96 + + col0 * col0 AS col0 FROM tab2
----
-47
5988
6145

query I rowsort
SELECT + ( col0 ) + col0 - 38 FROM tab0 AS cor0
----
10
140
32

query I rowsort
SELECT ( col1 ) + + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT cor0.col1 + col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE - col2 NOT IN ( - tab2.col2 * + col1 * col0 )
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4279
SELECT ALL + col2 * tab2.col0 DIV - col1 + col2 + + col0 FROM tab2
----
-59
28
70

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL + col2 * tab2.col0 / - col1 + col2 + + col0 FROM tab2
----
-59
28
70

query I rowsort
SELECT ALL - col2 * col0 * col1 + + col2 * col0 FROM tab2 WHERE ( NULL ) IN ( + col1 * - col0 )
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 WHERE NOT + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 * col0 - col0 FROM tab0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 col0 FROM tab1 WHERE NOT col1 IN ( + col2 )
----
2916
3249
9216

query I rowsort
SELECT ALL - col1 * - col2 * + tab0.col2 AS col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT + col0 * col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col1 * - col0 )
----

query I rowsort
SELECT col0 + - col1 * + col2 + - col0 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col2 + col0 * col2 )
----

query I rowsort
SELECT DISTINCT col1 + col2 - + tab2.col1 * col1 * + col2 AS col0 FROM tab2
----
-10927
-25889
-90421

onlyif mysql # use DIV operator for integer division
query I rowsort label-4288
SELECT ALL - col2 DIV - col1 col1 FROM tab1
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL - col2 / - col1 col1 FROM tab1
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 - + col1 col1 FROM tab0
----
-148
-159
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4290
SELECT tab2.col1 * tab2.col0 DIV + col0 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4290
SELECT tab2.col1 * tab2.col0 / + col0 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT col2 + col1 - col2 * tab2.col0 AS col2 FROM tab2
----
-131
-1943
-2947

query I rowsort
SELECT col2 + + col1 * - col0 - col1 AS col0 FROM tab2
----
-1322
-221
-4635

query I rowsort
SELECT ALL + col2 + col1 * + tab1.col1 * + col1 AS col1 FROM tab1
----
1057
17630
2293

query I rowsort
SELECT - col1 - - col0 * + col0 * col2 AS col1 FROM tab1
----
233462
460
614387

query I rowsort
SELECT col0 - + col1 FROM tab2 WHERE NULL NOT IN ( + col0 * - col2 )
----

query I rowsort
SELECT - tab1.col1 + - col2 * col2 FROM tab1
----
-2942
-3259
-9229

query I rowsort
SELECT ALL tab0.col0 * + tab0.col0 AS col1 FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4298
SELECT col2 * col2 + col0 DIV - col0 AS col2 FROM tab1
----
2915
3248
9215

skipif mysql # not compatible
query I rowsort label-4298
SELECT col2 * col2 + col0 / - col0 AS col2 FROM tab1
----
2915
3248
9215

query I rowsort
SELECT col2 * col2 + tab0.col2 * + col1 AS col1 FROM tab0
----
14186
3927
98

query I rowsort
SELECT ALL col2 * + col2 + - tab1.col2 AS col2 FROM tab1
----
2862
3192
9120

query I rowsort
SELECT - col1 + + col1 * tab2.col1 AS col0 FROM tab2
----
272
3422
930

query I rowsort
SELECT - tab2.col1 * - col2 - - col1 AS col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT + col1 - cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT - col0 - + col2 * cor0.col0 FROM tab2 AS cor0
----
-196
-2106
-3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4305
SELECT + - col1 / + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT + - col1 / + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4306
SELECT - col1 * CAST( + col0 AS SIGNED ) DIV - cor0.col1 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4306
SELECT - col1 * CAST ( + col0 AS INTEGER ) / - cor0.col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL - col0 * - 91 AS col0 FROM tab0 AS cor0
----
2184
3185
8099

query I rowsort
SELECT cor0.col1 * cor0.col2 * + 15 FROM tab1 AS cor0
----
18720
21060
8550

query I rowsort
SELECT ALL - - col1 + + 99 * - col0 AS col1 FROM tab0 AS cor0
----
-2290
-3368
-8720

onlyif mysql # use DIV operator for integer division
query I rowsort label-4310
SELECT col2 DIV + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4310
SELECT col2 / + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - + col2 * + cor0.col2 * 34 FROM tab2 AS cor0
----
-22984
-24786
-49096

query I rowsort
SELECT ALL + col1 * - cor0.col2 + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL + col2 * + ( col1 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + + col2 * - 56 + col0 FROM tab1 cor0
----
-3021
-3128
-5296

query I rowsort
SELECT DISTINCT col1 + 21 FROM tab1 AS cor0
----
31
34
47

query I rowsort
SELECT DISTINCT - col1 + 73 * + col0 FROM tab1 AS cor0
----
193
4662
5827

query I rowsort
SELECT ALL 76 * + col1 FROM tab2 AS cor0
----
1292
2356
4484

query I rowsort
SELECT - + col2 * - col1 - col1 FROM tab0 cor0
----
0
2752
7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # use DIV operator for integer division
query I rowsort label-4320
SELECT ALL + col1 DIV ( tab2.col0 ) + - col1 AS col1 FROM tab2
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL + col1 / ( tab2.col0 ) + - col1 AS col1 FROM tab2
----
-17
-27
-59

query I rowsort
SELECT ALL - tab0.col1 * - 90 + 73 + col0 AS col0 FROM tab0
----
7837
8352
8838

query I rowsort
SELECT ALL col0 * cor0.col2 + + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + cor0.col1 + + col2 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - - col2 + col0 * + ( + 48 ) * col0 AS col2 FROM tab0 AS cor0
----
27681
380290
58801

query I rowsort
SELECT DISTINCT + 41 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-4326
SELECT - 94 + + col0 DIV col1 FROM tab0 cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-4326
SELECT - 94 + + col0 / col1 FROM tab0 cor0
----
-94
-94
-94

query I rowsort
SELECT DISTINCT col2 + - col1 * col2 AS col1 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT col0 * col1 * - col1 FROM tab2
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-4329
SELECT ALL col2 * - col0 + col0 DIV col1 AS col0 FROM tab0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL col2 * - col0 + col0 / col1 AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + col2 - tab1.col0 * col1 * col0 FROM tab1
----
-180
-40903
-83104

query I rowsort
SELECT ALL - tab1.col1 * + tab1.col2 * + col0 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT - cor0.col0 + col1 * col0 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-4333
SELECT - 66 DIV - col1 AS col0 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4333
SELECT - 66 / - col1 AS col0 FROM tab2 AS cor0
----
1
2
3

query I rowsort
SELECT + col0 * col0 * - 74 + + col0 * col2 AS col0 FROM tab0
----
-41832
-578856
-90615

query I rowsort
SELECT DISTINCT - ( 33 ) AS col2 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT + - col1 * 12 FROM tab1 AS cor0
----
-120
-156
-312

query I rowsort
SELECT - col0 + + col0 + - col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT col1 * 99 FROM tab2
----
1683
3069
5841

query I rowsort
SELECT DISTINCT col2 + ( 43 ) FROM tab1
----
100
139
97

query I rowsort
SELECT + ( + col2 ) * - 1 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ( + ( + tab2.col1 ) ) AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT 96 + col1 * col1 FROM tab1 AS cor0
----
196
265
772

query I rowsort
SELECT ( 54 ) * col2 AS col1 FROM tab0
----
1782
4428
54

query I rowsort
SELECT 19 * - col0 AS col0 FROM tab2
----
-133
-1482
-1501

query I rowsort
SELECT - col1 * col0 + col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1280
-156
-2080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4346
SELECT + + cor0.col2 * CAST( NULL AS SIGNED ) + + ( - col2 ) * - 45 * 52 - - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT + + cor0.col2 * CAST ( NULL AS INTEGER ) + + ( - col2 ) * - 45 * 52 - - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4347
SELECT tab2.col1 * CAST( ( + col1 ) AS SIGNED ) FROM tab2
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-4347
SELECT tab2.col1 * CAST ( ( + col1 ) AS INTEGER ) FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT - col1 * col1 + col1 * col2 FROM tab0
----
-4558
-819
-9312

query I rowsort
SELECT col2 + - 48 AS col0 FROM tab1 cor0
----
48
6
9

query I rowsort
SELECT cor0.col1 - col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT col1 + - 14 * + col2 - col1 * col1 * + col2 FROM tab0 AS cor0
----
-244444
-680099
-9326

onlyif mysql # use DIV operator for integer division
query I rowsort label-4352
SELECT ALL col1 DIV - ( col0 ) AS col2 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL col1 / - ( col0 ) AS col2 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT ALL - tab2.col0 * ( + tab2.col0 ) FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT - cor0.col1 - 64 FROM tab2 AS cor0
----
-123
-81
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4355
SELECT DISTINCT - col1 DIV - 20 + - col1 FROM tab1 AS cor0
----
-10
-13
-25

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT - col1 / - 20 + - col1 FROM tab1 AS cor0
----
-10
-13
-25

query I rowsort
SELECT col2 - - ( 79 * col2 + + 97 ) AS col1 FROM tab1 cor0
----
4417
4657
7777

query I rowsort
SELECT + col0 + ( - 26 + - col1 ) * - col1 FROM tab0 AS cor0
----
10736
11966
9656

query I rowsort
SELECT ALL - ( col0 ) * + col0 + col1 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT ( 67 ) * - cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 1d196def0a4a7080184d3dcd07e1df43

onlyif mysql # use DIV operator for integer division
query I rowsort label-4360
SELECT tab1.col1 DIV 17 + - col2 + - col0 AS col2 FROM tab1
----
-121
-176
-56

skipif mysql # not compatible
query I rowsort label-4360
SELECT tab1.col1 / 17 + - col2 + - col0 AS col2 FROM tab1
----
-121
-176
-56

query I rowsort
SELECT DISTINCT 77 + 81 FROM tab2
----
158

query I rowsort
SELECT - col0 * - col2 - col2 FROM tab1
----
108
3591
7584

query I rowsort
SELECT tab2.col0 * + 77 AS col1 FROM tab2
----
539
6006
6083

query I rowsort
SELECT - col1 + ( + col1 ) * ( col2 ) + + col0 FROM tab1
----
1315
1381
624

onlyif mysql # use DIV operator for integer division
query I rowsort label-4365
SELECT - col0 DIV col1 + - col1 * col0 FROM tab1
----
-1046
-646
-78

skipif mysql # not compatible
query I rowsort label-4365
SELECT - col0 / col1 + - col1 * col0 FROM tab1
----
-1046
-646
-78

query I rowsort
SELECT ( col2 ) * col1 - - col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - col2 * cor0.col1 * col1 + - 44 * col0 FROM tab0 AS cor0
----
-10949
-245124
-682958

query I rowsort
SELECT DISTINCT + - 72 * - col1 - col2 FROM tab1 AS cor0
----
1818
663
840

query I rowsort
SELECT + col2 * - col1 * + col0 AS col1 FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT tab1.col2 * - col2 AS col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL cor0.col2 * - 26 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to f489df5bf6bb1223a0839fb15215f1c5

query I rowsort
SELECT + - col2 * - 38 AS col0 FROM tab0 AS cor0
----
1254
3116
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4374
SELECT col0 + cor0.col1 * col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-4374
SELECT col0 + cor0.col1 * col1 / - col1 AS col2 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4375
SELECT - 33 + cor0.col0 DIV 90 FROM tab1 cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-4375
SELECT - 33 + cor0.col0 / 90 FROM tab1 cor0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT + col1 + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - 31 + - col0 AS col0 FROM tab1 AS cor0
----
-111
-34
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4378
SELECT ALL cor0.col2 DIV - col0 + - ( - 33 + - col2 * ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
1477
709
759

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL cor0.col2 / - col0 + - ( - 33 + - col2 * ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
1477
709
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-4379
SELECT ALL + col2 DIV + col0 - col2 * col1 FROM tab0
----
-2837
-7462
-97

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL + col2 / + col0 - col2 * col1 FROM tab0
----
-2837
-7462
-97

query I rowsort
SELECT DISTINCT - tab0.col0 * tab0.col2 - - col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT ALL + ( - col2 ) * - col1 + col1 + col2 * - col1 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 * col2 col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + col1 + col2 * ( col2 ) AS col2 FROM tab0 cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT - col2 * + ( - 6 ) - col0 * - col1 AS col1 FROM tab0 AS cor0
----
2262
3401
8591

query I rowsort
SELECT ALL + col0 - + col0 * - ( col0 ) AS col2 FROM tab2
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-4386
SELECT DISTINCT - col2 * + col2 * - col0 + ( + col2 ) + - 26 DIV 21 FROM tab1
----
207992
737375
8801

skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT - col2 * + col2 * - col0 + ( + col2 ) + - 26 / 21 FROM tab1
----
207992
737375
8801

query I rowsort
SELECT DISTINCT ( - tab1.col2 * ( col1 ) ) + + col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT - col1 * col0 - + ( + col0 ) * col2 AS col1 FROM tab1 AS cor0
----
-240
-4288
-8720

query I rowsort
SELECT DISTINCT + 11 * + col2 FROM tab0 AS cor0
----
11
363
902

query I rowsort
SELECT ALL + col0 + + col2 + 15 AS col0 FROM tab2
----
119
132
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-4391
SELECT - col0 + col2 DIV + col0 + + col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4391
SELECT - col0 + col2 / + col0 + + col0 FROM tab2
----
0
0
3

query I rowsort
SELECT ALL - 84 * 55 AS col1 FROM tab2 AS cor0
----
-4620
-4620
-4620

onlyif mysql # use DIV operator for integer division
query I rowsort label-4393
SELECT DISTINCT + 84 DIV + col2 FROM tab0 AS cor0
----
1
2
84

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT + 84 / + col2 FROM tab0 AS cor0
----
1
2
84

query I rowsort
SELECT DISTINCT cor0.col0 + - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT 36 * - col1 * col0 FROM tab2 AS cor0
----
-165672
-48348
-7812

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4396
SELECT ALL + CAST( NULL AS DECIMAL ) * col2 * col0 + ( col2 ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL + CAST ( NULL AS REAL ) * col2 * col0 + ( col2 ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( + col2 ) * - col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + - 16 + col2 * col2 FROM tab1 AS cor0
----
2900
3233
9200

query I rowsort
SELECT ALL - col0 * 82 + + col1 FROM tab0
----
-1882
-2773
-7207

query I rowsort
SELECT + col2 - - col2 * - col1 AS col1 FROM tab2
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-4401
SELECT DISTINCT - col0 DIV ( col1 ) + - col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT - col0 / ( col1 ) + - col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - col2 + - 47 FROM tab2
----
-73
-74
-85

query I rowsort
SELECT DISTINCT + 92 * 63 AS col1 FROM tab0
----
5796

onlyif mysql # use DIV operator for integer division
query I rowsort label-4404
SELECT ALL + col2 DIV + col2 + - col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL + col2 / + col2 + - col0 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT 88 * + col0 AS col1 FROM tab0 AS cor0
----
2112
3080
7832

query I rowsort
SELECT DISTINCT ( + 1 ) FROM tab1 cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4407
SELECT - CAST( NULL AS SIGNED ) / + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4407
SELECT - CAST ( NULL AS INTEGER ) / + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4408
SELECT ALL CAST( col1 AS SIGNED ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL CAST ( col1 AS INTEGER ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * - col2 + - col1 col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL col2 + cor0.col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL 83 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT ( - 23 ) * + col2 AS col1 FROM tab0 AS cor0
----
-1886
-23
-759

query I rowsort
SELECT ALL + 62 * 4 * cor0.col0 FROM tab0 AS cor0
----
22072
5952
8680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4414
SELECT + col1 DIV + ( - col1 ) + - col1 AS col0 FROM tab2
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-4414
SELECT + col1 / + ( - col1 ) + - col1 AS col0 FROM tab2
----
-18
-32
-60

query I rowsort
SELECT DISTINCT - 34 * - tab2.col1 FROM tab2
----
1054
2006
578

query I rowsort
SELECT ALL + col2 * + cor0.col0 + + 73 FROM tab0 cor0
----
108
7371
865

query I rowsort
SELECT DISTINCT col1 + + col1 * - ( col2 ) FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL cor0.col2 + - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 40 + - col2 FROM tab0 AS cor0
----
-42
39
7

query I rowsort
SELECT - - 75 AS col1 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT 83 + - col0 FROM tab0 AS cor0
----
-6
48
59

query I rowsort
SELECT 92 * col0 AS col1 FROM tab0 AS cor0
----
2208
3220
8188

query I rowsort
SELECT col2 * - 85 * + col1 AS col2 FROM tab0 AS cor0
----
-241230
-634270
-8245

query I rowsort
SELECT + col0 * ( + col2 ) FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - col0 + + 70 AS col1 FROM tab0 AS cor0
----
-19
35
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-4426
SELECT ALL - + col2 DIV 53 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL - + col2 / 53 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + col1 + ( 16 ) * - col0 AS col1 FROM tab0 AS cor0
----
-1333
-298
-463

onlyif mysql # use DIV operator for integer division
query I rowsort label-4428
SELECT cor0.col2 * col0 - 48 DIV col0 FROM tab0 AS cor0
----
34
7298
790

skipif mysql # not compatible
query I rowsort label-4428
SELECT cor0.col2 * col0 - 48 / col0 FROM tab0 AS cor0
----
34
7298
790

onlyif mysql # use DIV operator for integer division
query I rowsort label-4429
SELECT DISTINCT - col0 DIV + ( - col1 ) + - col2 FROM tab2 AS cor0
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT - col0 / + ( - col1 ) + - col2 FROM tab2 AS cor0
----
-25
-27
-34

query I rowsort
SELECT ALL - - col1 * col0 - - cor0.col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - col0 + + ( col1 ) AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + col1 + 9 AS col1 FROM tab1 AS cor0
----
19
22
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-4433
SELECT col2 * + col1 + + col2 DIV cor0.col0 FROM tab2 AS cor0
----
1534
646
840

skipif mysql # not compatible
query I rowsort label-4433
SELECT col2 * + col1 + + col2 / cor0.col0 FROM tab2 AS cor0
----
1534
646
840

query I rowsort
SELECT ( - 89 ) * - col1 FROM tab2 cor0
----
1513
2759
5251

query I rowsort
SELECT DISTINCT 52 + col0 + + col2 AS col2 FROM tab0 cor0
----
109
223
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4436
SELECT DISTINCT - 55 DIV col1 AS col1 FROM tab1 AS cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT - 55 / col1 AS col1 FROM tab1 AS cor0
----
-2
-4
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 59 ) * cor0.col1 + + ( + ( col0 ) ) * + col1 col0 FROM tab0 AS cor0
----
-2328
-3010
2730

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) * + col1 * + col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL col1 + ( + 62 ) * - col0 * - col1 FROM tab0
----
128054
210587
502229

query I rowsort
SELECT cor1.col2 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + 13 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # use DIV operator for integer division
query I rowsort label-4442
SELECT ALL tab0.col0 + col2 DIV col0 AS col0 FROM tab0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL tab0.col0 + col2 / col0 AS col0 FROM tab0
----
25
35
89

query I rowsort
SELECT + + col1 + col2 - + col0 AS col2 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT ALL - - 41 * + col1 AS col2 FROM tab1 AS cor0
----
1066
410
533

query I rowsort
SELECT + col2 - cor0.col1 FROM tab2 cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-4446
SELECT DISTINCT - + 80 DIV col0 AS col2 FROM tab0 cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT - + 80 / col0 AS col2 FROM tab0 cor0
----
-2
-3
0

query I rowsort
SELECT + - col2 + + col0 * ( - col1 ) FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT 38 * cor0.col0 AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f9ce05faf477b6ca05ac63c2b1b0530b

query I rowsort
SELECT + 50 + + col0 AS col2 FROM tab0 cor0
----
139
74
85

query I rowsort
SELECT + + 84 - - col1 FROM tab2 AS cor0
----
101
115
143

query I rowsort
SELECT col2 + col1 * 8 FROM tab0 AS cor0
----
721
777
810

query I rowsort
SELECT + col1 + cor0.col2 * col2 + - col0 AS col1 FROM tab1 AS cor0
----
2939
3195
9149

query I rowsort
SELECT col0 + col2 * ( col1 ) AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT col2 * col2 + col1 + - col1 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col0 + 10 * - ( col0 ) FROM tab0 AS cor0
----
-216
-315
-801

query I rowsort
SELECT tab2.col0 * - col1 + - col1 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT - - cor0.col0 * 43 FROM tab1 AS cor0
----
129
2752
3440

query I rowsort
SELECT + - 91 + col1 AS col0 FROM tab1 AS cor0
----
-65
-78
-81

query I rowsort
SELECT DISTINCT - + 40 * 30 AS col1 FROM tab1 AS cor0
----
-1200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * tab0.col2 col1 FROM tab0
----
2838
7462
97

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to fea8fda1882f172d5a5c79e0b39f7225

query I rowsort
SELECT 48 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) * ( + col0 ) AS col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ( col2 + col0 ) FROM tab2
----
104
117
34

query I rowsort
SELECT ( 77 * + tab1.col2 ) AS col1 FROM tab1
----
4158
4389
7392

query I rowsort
SELECT + ( - col2 + - col2 * - col2 ) AS col2 FROM tab2
----
1406
650
702

query I rowsort
SELECT 63 FROM tab0, tab2 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # use DIV operator for integer division
query I rowsort label-4468
SELECT DISTINCT + col2 DIV - 8 FROM tab2
----
-3
-4

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT + col2 / - 8 FROM tab2
----
-3
-4

query I rowsort
SELECT ( + 38 ) AS col0 FROM tab2
----
38
38
38

query I rowsort
SELECT ALL + col1 * + col0 + - cor0.col1 * - col2 AS col2 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT DISTINCT col0 + cor0.col0 AS col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT ALL + 61 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT col1 + + col1 * + col0 FROM tab0 cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-4474
SELECT - 27 DIV + cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4474
SELECT - 27 / + cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( - col1 * + col0 ) FROM tab1
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4476
SELECT - + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4476
SELECT - + col0 / col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 96 AS col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + + col2 col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + 51 + cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c3b814593fecf7f741e46c66e5608a6b

query I rowsort
SELECT ( + 35 ) + col0 AS col1 FROM tab2 cor0
----
113
114
42

query I rowsort
SELECT - col2 * col1 * + col1 + col2 * ( + col1 ) * - col0 FROM tab2 AS cor0
----
-210158
-31806
-62016

query I rowsort
SELECT ( - col2 ) * cor0.col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4483
SELECT - + CAST( NULL AS SIGNED ) * col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4483
SELECT - + CAST ( NULL AS INTEGER ) * col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + cor0.col0 + col0 * cor0.col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - 21 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1

query I rowsort
SELECT - - tab0.col1 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL 44 * 28 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 64e0834af0cdb1cfb7603d7b05926f6f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4488
SELECT ALL - col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL - col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - col2 + 31 AS col2 FROM tab1 cor0
----
-131
-3617
-7649

query I rowsort
SELECT + 20 * cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c78a74fcce2c8a7b46774c5a06b63a8d

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-4492
SELECT ALL + + ( + col2 ) DIV col1 AS col0 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL + + ( + col2 ) / col1 AS col0 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT DISTINCT 18 - col1 FROM tab0 cor0
----
-68
-73
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4494
SELECT DISTINCT - ( - col1 ) DIV + col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - ( - col1 ) / + col1 FROM tab2 AS cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4495
SELECT DISTINCT CAST( 59 AS SIGNED ) * - col1 * col2 AS col0 FROM tab2 AS cor0
----
-38114
-49383
-90506

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT CAST ( 59 AS INTEGER ) * - col1 * col2 AS col0 FROM tab2 AS cor0
----
-38114
-49383
-90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4496
SELECT ALL - + CAST( - 96 AS SIGNED ) + cor0.col1 + ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
134
192
233

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL - + CAST ( - 96 AS INTEGER ) + cor0.col1 + ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
134
192
233

query I rowsort
SELECT DISTINCT + + 27 * - ( - col0 ) FROM tab2 AS cor0
----
189
2106
2133

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4498
SELECT DISTINCT + col0 * col1 - - col2 * CAST( NULL AS SIGNED ) / + ( col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT + col0 * col1 - - col2 * CAST ( NULL AS INTEGER ) / + ( col0 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 37 + - cor0.col0 AS col0 FROM tab2 cor0
----
-41
-42
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4500
SELECT - + CAST( NULL AS SIGNED ) * + cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT - + CAST ( NULL AS INTEGER ) * + cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4501
SELECT DISTINCT + CAST( - col0 AS SIGNED ) - - col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-4501
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) - - col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - + 94 FROM tab2 AS cor0
----
-94
-94
-94

query I rowsort
SELECT + + cor0.col1 * + col1 + ( + col2 ) * col1 + - 45 AS col2 FROM tab1 AS cor0
----
1372
2035
625

onlyif mysql # use DIV operator for integer division
query I rowsort label-4504
SELECT ALL col0 DIV + col2 + col1 * 0 AS col0 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL col0 / + col2 + col1 * 0 AS col0 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT - 9 * + col0 AS col0 FROM tab2 AS cor0
----
-63
-702
-711

query I rowsort
SELECT ALL + col1 * + cor0.col2 + + 36 AS col0 FROM tab2 AS cor0
----
1570
682
873

onlyif mysql # use DIV operator for integer division
query I rowsort label-4507
SELECT + - col2 * col0 + - col2 DIV col0 + - col0 FROM tab1 AS cor0
----
-183
-3712
-7761

skipif mysql # not compatible
query I rowsort label-4507
SELECT + - col2 * col0 + - col2 / col0 + - col0 FROM tab1 AS cor0
----
-183
-3712
-7761

query I rowsort
SELECT - 78 + col0 FROM tab0 cor0
----
-43
-54
11

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - 86 + col2 + + col2 FROM tab2 AS cor0
----
-10
-32
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4511
SELECT CAST( NULL AS SIGNED ) * + col2 col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4511
SELECT CAST ( NULL AS INTEGER ) * + col2 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - col1 * - col2 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL + 28 + col0 * + 50 AS col0 FROM tab1 AS cor0
----
178
3228
4028

onlyif mysql # use DIV operator for integer division
query I rowsort label-4514
SELECT + col0 DIV tab1.col0 - - 77 * + col2 FROM tab1
----
4159
4390
7393

skipif mysql # not compatible
query I rowsort label-4514
SELECT + col0 / tab1.col0 - - 77 * + col2 FROM tab1
----
4159
4390
7393

query I rowsort
SELECT DISTINCT + col1 * + col0 * col0 + + col1 + col1 FROM tab0
----
119019
49708
720993

onlyif mysql # use DIV operator for integer division
query I rowsort label-4516
SELECT - ( tab0.col1 ) + - col1 DIV col2 AS col0 FROM tab0
----
-194
-88
-92

skipif mysql # not compatible
query I rowsort label-4516
SELECT - ( tab0.col1 ) + - col1 / col2 AS col0 FROM tab0
----
-194
-88
-92

query I rowsort
SELECT DISTINCT 85 + col1 AS col1 FROM tab1
----
111
95
98

query I rowsort
SELECT 30 - - tab0.col1 * 94 AS col2 FROM tab0
----
8114
8584
9148

query I rowsort
SELECT + + col1 + + col0 * + col1 + - col0 FROM tab1 AS cor0
----
101
586
973

onlyif mysql # use DIV operator for integer division
query I rowsort label-4520
SELECT + col1 * col1 DIV + col0 FROM tab0 AS cor0
----
268
308
93

skipif mysql # not compatible
query I rowsort label-4520
SELECT + col1 * col1 / + col0 FROM tab0 AS cor0
----
268
308
93

query I rowsort
SELECT ALL tab2.col1 + + col2 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL - col1 + + tab1.col1 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + 33 * + col2 + col1 + 40 * - col1 FROM tab1
----
1491
2661
768

query I rowsort
SELECT 20 + col1 AS col2 FROM tab1
----
30
33
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4525
SELECT DISTINCT - col2 + col0 * + CAST( + col2 AS SIGNED ) * col1 AS col0 FROM tab0
----
3394
664036
68079

skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT - col2 + col0 * + CAST ( + col2 AS INTEGER ) * col1 AS col0 FROM tab0
----
3394
664036
68079

query I rowsort
SELECT + col0 * - ( + 39 ) * - col2 AS col1 FROM tab0
----
1365
284622
30888

onlyif mysql # use DIV operator for integer division
query I rowsort label-4527
SELECT DISTINCT col1 DIV + tab2.col0 col2 FROM tab2
----
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT col1 / + tab2.col0 col2 FROM tab2
----
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4528
SELECT ALL - + col2 + cor0.col1 DIV col2 AS col2 FROM tab0 cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL - + col2 + cor0.col1 / col2 AS col2 FROM tab0 cor0
----
-31
-81
96

query I rowsort
SELECT cor0.col2 + cor0.col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + cor0.col2 * 36 AS col1 FROM tab0 AS cor0
----
1188
2952
36

query I rowsort
SELECT ALL - col2 * ( - cor0.col1 ) + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4532
SELECT ALL cor0.col0 * + CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL cor0.col0 * + CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + ( + col1 ) * - col2 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL - ( 61 ) FROM tab2 AS cor0
----
-61
-61
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 * col1 + col2 * - 95 col0 FROM tab0 AS cor0
----
1037
5207
9314

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 53 ) + + col2 col2 FROM tab2 AS cor0
----
-15
-26
-27

query I rowsort
SELECT ALL ( 35 ) + col0 AS col0 FROM tab2 AS cor0
----
113
114
42

query I rowsort
SELECT ALL + 50 + col0 AS col0 FROM tab0 AS cor0
----
139
74
85

query I rowsort
SELECT ALL - + col2 * col2 - col1 FROM tab0 AS cor0
----
-1175
-6815
-98

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 CROSS JOIN tab0, tab2 cor1, tab2 AS cor2
----
3645 values hashing to bb6428239bf7f3ea361f6a10500a581d

query I rowsort
SELECT DISTINCT - + 19 + + 60 * - cor0.col2 FROM tab0 cor0
----
-1999
-4939
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col1 col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL - - 1 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + ( + col0 ) + - 89 FROM tab1 AS cor0
----
-25
-86
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * - col2 + ( - 7 ) col1 FROM tab1 AS cor0
----
1241
1397
563

query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 + cor0.col1 + 33 FROM tab0 cor0
----
-1095
-457
-7797

query I rowsort
SELECT ALL col0 * + col2 - col0 * col1 FROM tab2 AS cor0
----
-2574
-28
1659

onlyif mysql # use DIV operator for integer division
query I rowsort label-4548
SELECT - + col0 + col2 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
-64
-79
15

skipif mysql # not compatible
query I rowsort label-4548
SELECT - + col0 + col2 / cor0.col0 AS col2 FROM tab1 AS cor0
----
-64
-79
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - col2 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * col2 - + tab1.col1 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT ALL + ( 68 ) FROM tab2
----
68
68
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4552
SELECT ALL + col1 * col1 + CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL + col1 * col1 + CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 70 ) AS col1 FROM tab1
----
-70
-70
-70

query I rowsort
SELECT ( - 54 + - col1 * - col2 ) AS col0 FROM tab2
----
1480
592
783

query I rowsort
SELECT DISTINCT ( 82 ) AS col1 FROM tab1 AS cor0
----
82

query I rowsort
SELECT ALL 26 * col0 FROM tab2
----
182
2028
2054

query I rowsort
SELECT + 61 * + col2 FROM tab2 AS cor0
----
1586
1647
2318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4558
SELECT 54 * + col2 - CAST( - cor0.col2 * - col2 AS SIGNED ) FROM tab1 AS cor0
----
-171
-4032
0

skipif mysql # not compatible
query I rowsort label-4558
SELECT 54 * + col2 - CAST ( - cor0.col2 * - col2 AS INTEGER ) FROM tab1 AS cor0
----
-171
-4032
0

query I rowsort
SELECT - col0 * - cor0.col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col0 * + 51 * + 44 AS col1 FROM tab0 AS cor0
----
199716
53856
78540

query I rowsort
SELECT DISTINCT - + col0 * 38 + col2 * col0 * + 35 AS col1 FROM tab0 AS cor0
----
-105
252048
26808

query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 + 13 FROM tab1 AS cor0
----
13

query I rowsort
SELECT ALL + cor0.col2 * 18 FROM tab1 AS cor0
----
1026
1728
972

query I rowsort
SELECT + 16 * col1 FROM tab1 cor0
----
160
208
416

onlyif mysql # use DIV operator for integer division
query I rowsort label-4565
SELECT + tab0.col1 + CAST( - col1 + - col1 AS SIGNED ) DIV - col1 AS col0 FROM tab0
----
88
93
99

skipif mysql # not compatible
query I rowsort label-4565
SELECT + tab0.col1 + CAST ( - col1 + - col1 AS INTEGER ) / - col1 AS col0 FROM tab0
----
88
93
99

query I rowsort
SELECT - ( + col0 ) + col2 AS col1 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT - 89 FROM tab1 cor0
----
-89
-89
-89

query I rowsort
SELECT + col1 + col0 * cor0.col1 AS col1 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - ( ( + col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4570
SELECT - col2 DIV 5 AS col2 FROM tab2 AS cor0
----
-5
-5
-7

skipif mysql # not compatible
query I rowsort label-4570
SELECT - col2 / 5 AS col2 FROM tab2 AS cor0
----
-5
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 + - col0 col2 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT - col1 * col1 + col2 * - col1 FROM tab2 AS cor0
----
-1798
-5015
-935

query I rowsort
SELECT DISTINCT - ( col1 ) + cor0.col2 * + ( cor0.col2 ) FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT - col0 * ( col2 ) - + 74 * + ( col2 ) AS col1 FROM tab0 AS cor0
----
-109
-13366
-3234

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4575
SELECT + ( - col2 ) + - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT + ( - col2 ) + - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 74 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1924
740
962

query I rowsort
SELECT ( - col2 ) + col0 * col1 FROM tab0 cor0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-4578
SELECT - - col2 DIV 36 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4578
SELECT - - col2 / 36 AS col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT 9 * - 1 * + col2 AS col2 FROM tab0 AS cor0
----
-297
-738
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4580
SELECT ALL + 32 DIV col0 + 68 + - col2 DIV cor0.col0 FROM tab1 AS cor0
----
60
67
68

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL + 32 / col0 + 68 + - col2 / cor0.col0 FROM tab1 AS cor0
----
60
67
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-4581
SELECT DISTINCT - col1 + + col1 DIV - 39 + col2 col2 FROM tab0 AS cor0
----
-11
-55
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT - col1 + + col1 / - 39 + col2 col2 FROM tab0 AS cor0
----
-11
-55
-98

query I rowsort
SELECT + + 98 + cor0.col2 * ( + col0 ) FROM tab0 AS cor0
----
133
7396
890

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4583
SELECT DISTINCT 80 * + col2 + CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT 80 * + col2 + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 49 + - col0 * - col2 AS col2 FROM tab0 cor0
----
7347
84
841

query I rowsort
SELECT col0 * - ( col2 ) + + cor0.col1 - + cor0.col0 FROM tab2 AS cor0
----
-165
-2047
-3064

onlyif mysql # use DIV operator for integer division
query I rowsort label-4586
SELECT col1 DIV ( col0 ) AS col1 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4586
SELECT col1 / ( col0 ) AS col1 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT - col1 + - 96 AS col0 FROM tab0 AS cor0
----
-182
-187
-193

query I rowsort
SELECT DISTINCT + 59 + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
148
83
94

query I rowsort
SELECT DISTINCT col1 * 90 FROM tab1
----
1170
2340
900

query I rowsort
SELECT ALL - 87 + 9 FROM tab2, tab0 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # use DIV operator for integer division
query I rowsort label-4591
SELECT DISTINCT col2 DIV col2 + + col0 + col0 AS col0 FROM tab1
----
129
161
7

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT col2 / col2 + + col0 + col0 AS col0 FROM tab1
----
129
161
7

query I rowsort
SELECT DISTINCT col1 + - 8 FROM tab1
----
18
2
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-4593
SELECT + col2 + tab1.col1 DIV - col2 AS col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4593
SELECT + col2 + tab1.col1 / - col2 AS col1 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4594
SELECT - col2 * tab0.col2 + col2 DIV col0 FROM tab0
----
-1
-1088
-6724

skipif mysql # not compatible
query I rowsort label-4594
SELECT - col2 * tab0.col2 + col2 / col0 FROM tab0
----
-1
-1088
-6724

query I rowsort
SELECT ALL col1 + - col0 + - col2 FROM tab1
----
-111
-163
-31

onlyif mysql # use DIV operator for integer division
query I rowsort label-4596
SELECT DISTINCT + col0 * + col1 + + col0 DIV + col0 - col2 FROM tab1 AS cor0
----
25
584
945

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT + col0 * + col1 + + col0 / + col0 - col2 FROM tab1 AS cor0
----
25
584
945

query I rowsort
SELECT col0 * col0 * + col0 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT ALL - col2 * col2 + col0 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT - col0 * col1 - - col2 * col2 AS col1 FROM tab2 AS cor0
----
-3926
101
512

query I rowsort
SELECT DISTINCT col1 * + col1 * - cor0.col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-4601
SELECT ALL col1 DIV cor0.col1 col1 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL col1 / cor0.col1 col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col2 * - col1 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-4603
SELECT tab1.col0 + col0 * col1 + col1 DIV col2 FROM tab1
----
1120
704
81

skipif mysql # not compatible
query I rowsort label-4603
SELECT tab1.col0 + col0 * col1 + col1 / col2 FROM tab1
----
1120
704
81

query I rowsort
SELECT tab1.col1 * - col0 * - col2 FROM tab1
----
36480
4212
99840

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= NULL AND NOT NULL IN ( tab1.col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4606
SELECT tab0.col2 * col2 DIV col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4606
SELECT tab0.col2 * col2 / col2 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 * col2 col1 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT col0 + col0 + + col0 * - col0 FROM tab0
----
-1155
-528
-7743

query I rowsort
SELECT col2 + col1 * + tab1.col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT - col1 + cor0.col1 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 + + col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + + col1 * col0 * col1 - + col0 FROM tab1 AS cor0
----
13440
2025
6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + - col2 col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + col0 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT - col2 + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT DISTINCT col0 * col0 + + col1 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT - - col2 * cor0.col2 + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-3926
101
512

query I rowsort
SELECT DISTINCT col2 + + col1 - - col1 * + col0 FROM tab1 AS cor0
----
1149
158
707

onlyif mysql # use DIV operator for integer division
query I rowsort label-4619
SELECT ALL + - cor0.col2 DIV col0 + col1 DIV col0 FROM tab0 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL + - cor0.col2 / col0 + col1 / col0 FROM tab0 AS cor0
----
1
2
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4620
SELECT ALL - col0 + col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL - col0 + col0 / col0 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT DISTINCT + - cor0.col2 * - col1 + col1 + col2 FROM tab0 AS cor0
----
195
2957
7635

query I rowsort
SELECT ALL + tab1.col1 - - col1 AS col2 FROM tab1
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4623
SELECT - col0 + col1 DIV + col2 FROM tab0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-4623
SELECT - col0 + col1 / + col2 FROM tab0
----
-22
-88
62

query I rowsort
SELECT ALL col1 - + tab2.col0 AS col2 FROM tab2
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-4625
SELECT + col0 + + col0 DIV col0 col0 FROM tab1 cor0
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4625
SELECT + col0 + + col0 / col0 col0 FROM tab1 cor0
----
4
65
81

query I rowsort
SELECT DISTINCT - + col1 * - col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-4627
SELECT 3 + + col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4627
SELECT 3 + + col0 / + col1 AS col0 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT + 53 + - col1 - 74 * 24 * - col2 FROM tab1 AS cor0
----
101275
170536
95931

query I rowsort
SELECT ALL - 20 - col0 AS col2 FROM tab0 AS cor0
----
-109
-44
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - tab1.col0 + + col0 * + tab1.col2 col0 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4631
SELECT ALL - col1 DIV - col1 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL - col1 / - col1 AS col1 FROM tab2
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + tab0.col0 + - col1 / col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + + cor0.col1 col0 FROM tab2, tab2 cor0
----
118
34
62

query I rowsort
SELECT - 68 * col1 FROM tab0
----
-5848
-6188
-6596

query I rowsort
SELECT - - 95 + + tab2.col0 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 16af739051aed1d08cf32d5c3e2875cc

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col2 * tab1.col2 AND - col0
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 / col2 <> NULL
----

query I rowsort
SELECT DISTINCT col0 + col1 * + tab0.col1 FROM tab0
----
7420
8370
9444

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) >= + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - col1 + - col2
----

query I rowsort
SELECT + col1 * col2 - - col1 AS col0 FROM tab2 WHERE NOT col1 * col1 * col1 NOT IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col0 col1 FROM tab1
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4643
SELECT DISTINCT - col2 DIV + col1 - - col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT - col2 / + col1 - - col2 FROM tab0
----
1
33
82

query I rowsort
SELECT - col2 + - tab0.col2 * col2 AS col2 FROM tab0
----
-1122
-2
-6806

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 <> NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT - col2 / col0 NOT IN ( tab2.col0 )
----

query I rowsort
SELECT DISTINCT - tab0.col2 + col0 AS col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4649
SELECT col1 DIV + tab1.col1 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4649
SELECT col1 / + tab1.col1 AS col0 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 * + col2 col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT col2 * tab0.col0 + col1 AS col1 FROM tab0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-4652
SELECT col1 DIV + col0 + tab1.col1 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-4652
SELECT col1 / + col0 + tab1.col1 FROM tab1
----
10
13
34

query I rowsort
SELECT + col1 * col0 - col2 FROM tab2
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-4654
SELECT tab2.col2 DIV col0 + col1 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-4654
SELECT tab2.col2 / col0 + col1 FROM tab2
----
17
34
59

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT NULL IN ( + col2 * col1 - + col0 )
----

query I rowsort
SELECT col1 FROM tab0 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT - tab0.col2 * + col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col1 + - col2 * col2 + col1 AS col2 FROM tab1
----
-2864
-3229
-9190

query I rowsort
SELECT + col1 * + col0 + - col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT col2 + col2 FROM tab0 WHERE NULL >= ( col2 )
----

query I rowsort
SELECT col0 * + col1 * + tab0.col2 FROM tab0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 * - col2 col1 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT col1 * - ( 16 ) AS col0 FROM tab2 AS cor0
----
-272
-496
-944

query I rowsort
SELECT col1 + ( + cor0.col2 ) * col2 AS col2 FROM tab0 AS cor0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 * col1 * col0 col2 FROM tab0 AS cor0
----
-118824
-49503
-720729

query I rowsort
SELECT col2 + + 14 * col0 AS col1 FROM tab2 cor0
----
1118
1144
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 * + col2 col2 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL + + 40 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT DISTINCT 6 FROM tab1, tab2 AS cor0
----
6

query I rowsort
SELECT + col0 * 16 FROM tab2 cor0
----
112
1248
1264

onlyif mysql # use DIV operator for integer division
query I rowsort label-4671
SELECT - ( tab1.col1 ) DIV col0 AS col0 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4671
SELECT - ( tab1.col1 ) / col0 AS col0 FROM tab1
----
-8
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4672
SELECT 30 DIV col0 FROM tab1
----
0
0
10

skipif mysql # not compatible
query I rowsort label-4672
SELECT 30 / col0 FROM tab1
----
0
0
10

query I rowsort
SELECT + col2 + - 47 AS col0 FROM tab1 AS cor0
----
10
49
7

query I rowsort
SELECT ALL + 53 * - col2 FROM tab0 AS cor0
----
-1749
-4346
-53

query I rowsort
SELECT DISTINCT col1 * + 12 FROM tab0 AS cor0
----
1032
1092
1164

query I rowsort
SELECT + 37 * cor0.col1 + - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-2419
-714
930

query I rowsort
SELECT ALL - col0 * - col2 + - col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT + ( + col2 ) + - ( + col0 ) + - col0 AS col0 FROM tab0 AS cor0
----
-15
-69
-96

query I rowsort
SELECT ( cor0.col0 ) * + ( + 4 ) + + col1 AS col1 FROM tab1 AS cor0
----
266
333
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4680
SELECT DISTINCT + col2 * - tab2.col0 DIV + col0 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT + col2 * - tab2.col0 / + col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT - 19 AS col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 * - col2 + col0 col0 FROM tab1 cor0
----
1040
543
634

query I rowsort
SELECT + 30 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT - ( + col2 ) + col0 * + col1 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-4685
SELECT + 29 DIV + col0 + - cor0.col0 FROM tab0 AS cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-4685
SELECT + 29 / + col0 + - cor0.col0 FROM tab0 AS cor0
----
-23
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4686
SELECT ALL + col2 + + cor0.col1 DIV ( col1 ) AS col1 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL + col2 + + cor0.col1 / ( col1 ) AS col1 FROM tab0 AS cor0
----
2
34
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4687
SELECT - col1 + CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-172
-182
-194

skipif mysql # not compatible
query I rowsort label-4687
SELECT - col1 + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT + 36 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT DISTINCT cor0.col0 * - col2 + col2 FROM tab0 cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-4690
SELECT DISTINCT + col0 * CAST( + ( col0 ) AS SIGNED ) + 63 DIV col1 FROM tab0 cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT + col0 * CAST ( + ( col0 ) AS INTEGER ) + 63 / col1 FROM tab0 cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort
SELECT ALL - ( + col1 ) * - col0 - - CAST ( - 18 AS REAL ) AS col1 FROM tab0
----
2046
3377
8081

onlyif mysql # use DIV operator for integer division
query I rowsort label-4692
SELECT ( - col0 ) DIV col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4692
SELECT ( - col0 ) / col0 FROM tab2
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4693
SELECT ALL 94 * ( + cor0.col2 * CAST( col1 AS SIGNED ) ) FROM tab2 AS cor0
----
144196
60724
78678

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL 94 * ( + cor0.col2 * CAST ( col1 AS INTEGER ) ) FROM tab2 AS cor0
----
144196
60724
78678

query I rowsort
SELECT ALL + - cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT ALL + col2 * col0 - - col1 * 58 FROM tab2 AS cor0
----
1987
3988
5450

query I rowsort
SELECT + 44 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 19a2b9512177749564ba22ea2213fe3f

query I rowsort
SELECT DISTINCT + + col1 * cor0.col2 - 44 FROM tab1 AS cor0
----
1204
1360
526

query I rowsort
SELECT - cor0.col1 * - col1 - col2 * + col0 AS col2 FROM tab0 AS cor0
----
6604
9374
983

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4699
SELECT DISTINCT - + col0 + cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT - + col0 + cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 92 FROM tab0, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL + + col0 - col1 * cor0.col1 * col0 FROM tab2 AS cor0
----
-22752
-271440
-6720

query I rowsort
SELECT ALL - - col2 * col0 + - 15 AS col0 FROM tab2 AS cor0
----
174
2013
2987

query I rowsort
SELECT - col2 * + cor0.col2 - - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-4704
SELECT ALL col1 + - cor0.col0 DIV ( 71 ) col0 FROM tab0 cor0
----
86
90
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL col1 + - cor0.col0 / ( 71 ) col0 FROM tab0 cor0
----
86
90
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 * tab0.col1 col0 FROM tab0
----
1806
1911
2037

query I rowsort
SELECT - col2 * - col0 - - ( - tab1.col0 + + 19 ) AS col1 FROM tab1
----
178
3603
7619

query I rowsort
SELECT ALL ( col2 ) * - col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4708
SELECT ALL CAST( col0 AS SIGNED ) + + col2 * 7 AS col2 FROM tab0 cor0
----
255
42
663

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL CAST ( col0 AS INTEGER ) + + col2 * 7 AS col2 FROM tab0 cor0
----
255
42
663

query I rowsort
SELECT ALL + + 25 * + col1 * - col1 AS col2 FROM tab0 cor0
----
-184900
-207025
-235225

query I rowsort
SELECT DISTINCT 2 * cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 * 89 + - col0 * 50 * - col2 col2 FROM tab1
----
177391
3297
375536

query I rowsort
SELECT DISTINCT col0 + 61 AS col1 FROM tab1
----
125
141
64

query I rowsort
SELECT DISTINCT - col1 * col0 * tab1.col0 + col0 * col1 + + col2 FROM tab1
----
-102
-40263
-82064

query I rowsort
SELECT ALL - + 54 + col1 FROM tab2 AS cor0
----
-23
-37
5

query I rowsort
SELECT - - ( 16 ) * col0 AS col2 FROM tab1 AS cor0
----
1024
1280
48

query I rowsort
SELECT DISTINCT - col2 * ( cor0.col2 ) + 76 * - 48 FROM tab1 AS cor0
----
-12864
-6564
-6897

query I rowsort
SELECT col2 * + 34 + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1135
2635
5486

query I rowsort
SELECT + 2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT + col1 * - col0 + - col1 FROM tab2 cor0
----
-1360
-248
-4661

query I rowsort
SELECT 43 - col1 AS col1 FROM tab2
----
-16
12
26

query I rowsort
SELECT ALL 34 AS col0 FROM tab0
----
34
34
34

query I rowsort
SELECT ALL - cor0.col2 * col0 + cor0.col1 * + col0 AS col2 FROM tab1 cor0
----
-3008
-6640
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4723
SELECT - col2 * cor0.col0 DIV + 23 + - col2 * 44 FROM tab1 AS cor0
----
-2383
-2666
-4557

skipif mysql # not compatible
query I rowsort label-4723
SELECT - col2 * cor0.col0 / + 23 + - col2 * 44 FROM tab1 AS cor0
----
-2383
-2666
-4557

query I rowsort
SELECT - + col1 + ( - cor0.col2 + col0 ) FROM tab0 AS cor0
----
-63
-84
-95

query I rowsort
SELECT ALL cor0.col2 + ( - col1 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL - col2 * col2 * col1 + + cor0.col1 AS col1 FROM tab2 cor0
----
-22568
-24531
-39825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 42 + col1 col0 FROM tab0 AS cor0
----
139
1472
3535

query I rowsort
SELECT ALL col1 * - col0 + 64 AS col0 FROM tab1 AS cor0
----
-14
-576
-976

query I rowsort
SELECT + col1 * 72 + - col0 FROM tab0 AS cor0
----
6168
6463
6949

query I rowsort
SELECT DISTINCT - col0 * - 79 * - col0 - + col2 * + col0 AS col2 FROM tab1 AS cor0
----
-327232
-513280
-873

query I rowsort
SELECT DISTINCT col0 + - col1 * col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - + col2 * col1 + + cor0.col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT + col2 + ( + col0 ) * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT - col1 - + 63 AS col2 FROM tab1 AS cor0
----
-73
-76
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 col2 FROM tab2 cor0
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4737
SELECT ALL + col0 * CAST( NULL AS SIGNED ) + + 71 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) + + 71 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + 15 - col1 FROM tab2 AS cor0
----
238
434
826

query I rowsort
SELECT ALL col1 * col1 + + 97 * + col2 AS col0 FROM tab1 AS cor0
----
5629
5914
9481

query I rowsort
SELECT ALL - - cor0.col1 + - col0 * - col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL col0 * - 72 AS col1 FROM tab2 cor0
----
-504
-5616
-5688

query I rowsort
SELECT + 74 * + col1 * - col0 - - 91 * col2 FROM tab1 AS cor0
----
-42173
-68224
-858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 + col0 col0 FROM tab1 AS cor0
----
140
156
79

query I rowsort
SELECT ALL - - ( + 61 ) + col2 AS col0 FROM tab2 AS cor0
----
87
88
99

query I rowsort
SELECT + + 47 AS col1 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT DISTINCT 19 + - ( cor0.col2 + - col2 ) * - col1 FROM tab0 AS cor0
----
19

query I rowsort
SELECT - col2 * + col2 + + tab1.col2 * - col0 FROM tab1
----
-16896
-3078
-6897

query I rowsort
SELECT DISTINCT - 42 AS col1 FROM tab0, tab2 AS cor0
----
-42

query I rowsort
SELECT DISTINCT - col1 * - col0 + col0 AS col2 FROM tab2
----
1422
224
4680

query I rowsort
SELECT DISTINCT tab0.col1 + 88 AS col0 FROM tab0
----
174
179
185

query I rowsort
SELECT - + col1 + - 41 * col2 FROM tab0 AS cor0
----
-138
-1439
-3453

query I rowsort
SELECT - - 28 * 95 AS col2 FROM tab1 AS cor0
----
2660
2660
2660

query I rowsort
SELECT DISTINCT + - 56 FROM tab2 AS cor0
----
-56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4754
SELECT - - ( + col1 ) + CAST( - 24 AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
-565
-617
-895

skipif mysql # not compatible
query I rowsort label-4754
SELECT - - ( + col1 ) + CAST ( - 24 AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
-565
-617
-895

query I rowsort
SELECT ALL col0 * col1 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col1 * + col1 + col2 * - ( col2 ) FROM tab2 AS cor0
----
-1155
232
2805

onlyif mysql # use DIV operator for integer division
query I rowsort label-4757
SELECT DISTINCT + col0 * col0 DIV ( + 75 * - col0 ) FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT + col0 * col0 / ( + 75 * - col0 ) FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + 60 + - col0 AS col2 FROM tab0 AS cor0
----
-29
25
36

query I rowsort
SELECT - col0 * - col2 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + col2 + col1 + + col0 AS col1 FROM tab1 cor0
----
131
189
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4761
SELECT CAST( NULL AS SIGNED ) + - tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT CAST ( NULL AS INTEGER ) + - tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - ( col2 ) col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT tab0.col2 * + 70 + + col1 FROM tab0
----
167
2396
5831

query I rowsort
SELECT DISTINCT - col2 + 86 AS col0 FROM tab0
----
4
53
85

query I rowsort
SELECT DISTINCT + + col1 + + cor0.col2 * - ( col1 ) AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT - + col0 * col1 + - col2 + + 91 FROM tab1 AS cor0
----
-1045
-41
-606

onlyif mysql # use DIV operator for integer division
query I rowsort label-4767
SELECT ALL 87 DIV col0 AS col0 FROM tab2 AS cor0
----
1
1
12

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL 87 / col0 AS col0 FROM tab2 AS cor0
----
1
1
12

query I rowsort
SELECT - ( col0 ) * col0 + - col0 * - col0 * - col2 AS col1 FROM tab0
----
-19584
-2450
-657443

query I rowsort
SELECT DISTINCT ( + col2 ) * - 46 AS col2 FROM tab0
----
-1518
-3772
-46

query I rowsort
SELECT col2 * - tab0.col1 + col1 * col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 24 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
24

query I rowsort
SELECT - 81 + tab0.col1 AS col1 FROM tab0
----
10
16
5

query I rowsort
SELECT 57 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab0, tab0 AS cor0, tab1, tab1 cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT ( col1 ) * col0 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - tab1.col1 - + 24 * + col0 FROM tab1
----
-1546
-1933
-98

query I rowsort
SELECT DISTINCT + tab0.col0 + ( col1 ) AS col1 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4778
SELECT + col2 DIV 29 + + col0 AS col1 FROM tab0
----
25
35
91

skipif mysql # not compatible
query I rowsort label-4778
SELECT + col2 / 29 + + col0 AS col1 FROM tab0
----
25
35
91

query I rowsort
SELECT ( + 72 ) * col1 AS col1 FROM tab1
----
1872
720
936

onlyif mysql # use DIV operator for integer division
query I rowsort label-4780
SELECT + col2 + + 10 DIV col0 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4780
SELECT + col2 + + 10 / col0 FROM tab0 cor0
----
1
33
82

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT - cor0.col2 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT cor0.col1 * + col0 - col1 * 53 FROM tab2 cor0
----
-1426
1475
442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + col1 col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT ALL + + col1 * - cor0.col0 * - col2 + - col2 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
121186
51680
6696

query I rowsort
SELECT ALL ( - col2 ) * 71 AS col0 FROM tab1 AS cor0
----
-3834
-4047
-6816

query I rowsort
SELECT + col0 * col2 * cor0.col1 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT 42 + col2 AS col1 FROM tab0 cor0
----
124
43
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4788
SELECT ALL + - col1 * + col2 / CAST( NULL AS DECIMAL ) + - ( col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL + - col1 * + col2 / CAST ( NULL AS REAL ) + - ( col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - 65 AS col0 FROM tab2 AS cor0
----
-34
-48
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4790
SELECT - col1 * - CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-4790
SELECT - col1 * - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col0 * col0 * + 88 + col1 FROM tab0 AS cor0
----
107897
50774
697139

onlyif mysql # use DIV operator for integer division
query I rowsort label-4792
SELECT col0 DIV col0 + + 3 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-4792
SELECT col0 / col0 + + 3 FROM tab1
----
4
4
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4793
SELECT + cor0.col1 DIV ( col2 + - col0 ) AS col1 FROM tab2 AS cor0
----
-1
0
1

skipif mysql # not compatible
query I rowsort label-4793
SELECT + cor0.col1 / ( col2 + - col0 ) AS col1 FROM tab2 AS cor0
----
-1
0
1

query I rowsort
SELECT DISTINCT + col2 * + ( - ( col2 ) ) FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT - + col0 - 8 FROM tab1 AS cor0
----
-11
-72
-88

query I rowsort
SELECT ( + tab1.col2 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT + col1 * + 77 FROM tab2
----
1309
2387
4543

query I rowsort
SELECT + ( - col2 ) * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4799
SELECT DISTINCT - CAST( + 68 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
3672
3876
6528

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT - CAST ( + 68 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT - col1 * ( col0 ) + ( col1 ) * col1 - cor0.col0 * + col2 AS col1 FROM tab2 AS cor0
----
-3149
-4056
555

query I rowsort
SELECT ALL + ( + 54 ) * + col1 FROM tab0 AS cor0
----
4644
4914
5238

query I rowsort
SELECT DISTINCT - col0 * - 58 AS col0 FROM tab1 AS cor0
----
174
3712
4640

query I rowsort
SELECT ALL col2 * cor0.col1 + + cor0.col1 + 10 * - col1 AS col2 FROM tab1 AS cor0
----
1131
1170
480

query I rowsort
SELECT DISTINCT - - cor0.col2 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL - - ( + col1 ) * - cor0.col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 71 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT col0 * ( - col0 ) AS col1 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + 85 + + 45 FROM tab0
----
130

query I rowsort
SELECT - + ( - col2 ) + col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - + 80 FROM tab0 cor0
----
-80
-80
-80

query I rowsort
SELECT DISTINCT col0 + cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-86
-91
-97

query I rowsort
SELECT - - cor0.col0 + + 72 * - col0 AS col0 FROM tab0 AS cor0
----
-1704
-2485
-6319

onlyif mysql # use DIV operator for integer division
query I rowsort label-4814
SELECT - col0 DIV - col1 + - col2 * + col0 * + col1 AS col0 FROM tab2 AS cor0
----
-119651
-51030
-5859

skipif mysql # not compatible
query I rowsort label-4814
SELECT - col0 / - col1 + - col2 * + col0 * + col1 AS col0 FROM tab2 AS cor0
----
-119651
-51030
-5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4815
SELECT - col0 * CAST( ( col0 ) + - 13 AS SIGNED ) col2 FROM tab2 AS cor0
----
-5070
-5214
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4815
SELECT - col0 * CAST ( ( col0 ) + - 13 AS INTEGER ) col2 FROM tab2 AS cor0
----
-5070
-5214
42

query I rowsort
SELECT ALL + cor0.col0 + + col0 * col0 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-4817
SELECT DISTINCT - col0 * cor0.col2 + - col0 DIV col0 col1 FROM tab2 AS cor0
----
-190
-2029
-3003

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT - col0 * cor0.col2 + - col0 / col0 col1 FROM tab2 AS cor0
----
-190
-2029
-3003

query I rowsort
SELECT ALL + col2 * - col1 + col2 + - col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4819
SELECT ALL - col0 * 28 * col2 + col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - col0 * 28 * col2 + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + 39 + - col2 FROM tab2 AS cor0
----
39

query I rowsort
SELECT DISTINCT - - col2 + col0 * - cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
-233415
-432
-614304

skipif mysql # not compatible
query I rowsort
SELECT ALL cor0.col0 + + col2 + - CAST ( col2 AS REAL ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + - col2 - - cor0.col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT cor0.col2 * col0 + - col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL col2 * col2 - 27 FROM tab1 AS cor0
----
2889
3222
9189

query I rowsort
SELECT DISTINCT - + col2 - + col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT 4 - col2 * col1 FROM tab0 AS cor0
----
-2834
-7458
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4828
SELECT ALL cor0.col0 + + cor0.col0 DIV 71 FROM tab2 AS cor0
----
7
79
80

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL cor0.col0 + + cor0.col0 / 71 FROM tab2 AS cor0
----
7
79
80

query I rowsort
SELECT ALL - 23 * + col1 FROM tab1 cor0
----
-230
-299
-598

query I rowsort
SELECT - - col0 + - col2 * col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4831
SELECT DISTINCT - 23 DIV col1 FROM tab1 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT - 23 / col1 FROM tab1 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT - col2 * - col2 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT ALL - cor0.col2 * col1 + ( - col2 ) AS col0 FROM tab1 cor0
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT + col2 * - 69 AS col0 FROM tab0 AS cor0
----
-2277
-5658
-69

query I rowsort
SELECT + cor0.col2 * 93 FROM tab1 AS cor0
----
5022
5301
8928

query I rowsort
SELECT + col0 * 19 AS col1 FROM tab2 AS cor0
----
133
1482
1501

query I rowsort
SELECT ALL col1 * col1 + col1 AS col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT ALL col1 * col1 + tab1.col2 * + col2 * tab1.col0 FROM tab1
----
208036
737449
9424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + ( - cor0.col2 ) col0 FROM tab0, tab0 AS cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 col1 FROM tab2 cor0
----
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4841
SELECT + - CAST( NULL AS DECIMAL ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT + - CAST ( NULL AS REAL ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 col0 FROM tab0 AS cor0
----
-85

query I rowsort
SELECT DISTINCT + 26 + col1 FROM tab1 AS cor0
----
36
39
52

query I rowsort
SELECT ALL - col1 + 88 AS col2 FROM tab2 AS cor0
----
29
57
71

query I rowsort
SELECT DISTINCT + cor0.col0 * + col2 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col0 * - 34 + - col1 * tab1.col1 + col0 FROM tab1
----
-571
2140
2631

query I rowsort
SELECT ALL - col1 + - col0 + + col0 AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL + col1 + col1 + - col1 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7
78
79

query I rowsort
SELECT cor1.col0 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-4851
SELECT col2 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4851
SELECT col2 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4852
SELECT DISTINCT CAST( - col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT CAST ( - col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4853
SELECT ALL CAST( + ( col0 ) AS SIGNED ) AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL CAST ( + ( col0 ) AS INTEGER ) AS col1 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) * col1 col1 FROM tab2
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-4855
SELECT ALL - cor0.col2 DIV + tab2.col0 + + 19 FROM tab2, tab1 AS cor0
----
9 values hashing to f7c9b1305bee5a361b733b43cc0278cd

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL - cor0.col2 / + tab2.col0 + + 19 FROM tab2, tab1 AS cor0
----
9 values hashing to f7c9b1305bee5a361b733b43cc0278cd

query I rowsort
SELECT ALL - cor0.col1 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766

onlyif mysql # use DIV operator for integer division
query I rowsort label-4858
SELECT + + 44 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
0
14

skipif mysql # not compatible
query I rowsort label-4858
SELECT + + 44 / + col0 AS col2 FROM tab1 AS cor0
----
0
0
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT + + ( - col0 ) DIV + 88 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4859
SELECT + + ( - col0 ) / + 88 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 97 * - 8 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 3fb9c45ad689cdbf080acab2d573d5e6

query I rowsort
SELECT ALL col1 * + col0 + + col0 + col0 * + 32 FROM tab0
----
11036
2856
4550

query I rowsort
SELECT + col2 + 35 AS col1 FROM tab0
----
117
36
68

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col2 FROM tab2, tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col0 * - col1 col2 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT - col0 * 83 FROM tab1 AS cor0
----
-249
-5312
-6640

query I rowsort
SELECT ALL - col0 + + 85 FROM tab1 cor0
----
21
5
82

query I rowsort
SELECT ALL + col1 * + ( - col1 * col0 ) + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-22752
-271440
-6720

query I rowsort
SELECT - col2 + - col1 + - cor0.col2 * + 87 FROM tab2 AS cor0
----
-2347
-2407
-3361

query I rowsort
SELECT 13 * + cor0.col2 + col2 FROM tab2 AS cor0
----
364
378
532

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4870
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + col2 * + col0 / 47 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT + CAST ( NULL AS REAL ) + + col2 * + col0 / 47 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + + cor0.col1 * + col1 + - col1 * - col1 * - col1 FROM tab1 AS cor0
----
-16846
-1932
-843

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4872
SELECT + - CAST( NULL AS SIGNED ) / + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT + - CAST ( NULL AS INTEGER ) / + col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 * col2 + - col0 AS col1 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT 4 * col0 FROM tab2
----
28
312
316

query I rowsort
SELECT DISTINCT - 14 FROM tab2, tab0, tab1 AS cor0
----
-14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4876
SELECT - 10 * tab1.col0 * CAST( 72 AS SIGNED ) FROM tab1
----
-2160
-46080
-57600

skipif mysql # not compatible
query I rowsort label-4876
SELECT - 10 * tab1.col0 * CAST ( 72 AS INTEGER ) FROM tab1
----
-2160
-46080
-57600

onlyif mysql # use DIV operator for integer division
query I rowsort label-4877
SELECT + cor0.col1 DIV + col0 - - col1 DIV 59 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4877
SELECT + cor0.col1 / + col0 - - col1 / 59 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 24 + col1 col1 FROM tab0 AS cor0
----
62
67
73

query I rowsort
SELECT - col0 * - col2 - 10 AS col1 FROM tab1 AS cor0
----
152
3638
7670

query I rowsort
SELECT 92 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT col0 * - ( cor0.col1 * - col0 ) + col0 + col0 AS col0 FROM tab1 AS cor0
----
240
41088
83360

query I rowsort
SELECT + col2 + col2 + col0 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT ALL cor0.col0 + 21 FROM tab2 AS cor0
----
100
28
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4884
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - cor0.col1 + + 91 * - 35 FROM tab1 AS cor0
----
-3195
-3198
-3211

query I rowsort
SELECT DISTINCT cor0.col2 - col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT 89 + col1 * - col2 + + 77 * col0 AS col1 FROM tab1
----
-1084
4447
5001

query I rowsort
SELECT + 68 * col1 FROM tab2
----
1156
2108
4012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 + col1 col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL + ( 43 ) AS col2 FROM tab2 cor0
----
43
43
43

query I rowsort
SELECT - + 78 + + col2 FROM tab2 AS cor0
----
-40
-51
-52

query I rowsort
SELECT - ( - 37 ) AS col0 FROM tab0 AS cor0
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 25 + + col0 col0 FROM tab1 AS cor0
----
-22
39
55

query I rowsort
SELECT - col0 * 59 AS col0 FROM tab0 AS cor0
----
-1416
-2065
-5251

query I rowsort
SELECT - cor0.col1 * - 84 FROM tab1 AS cor0
----
1092
2184
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col1 ) col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT 52 + - col0 FROM tab0 AS cor0
----
-37
17
28

query I rowsort
SELECT ALL - 66 FROM tab1, tab2 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT ALL 67 * col0 AS col1 FROM tab0 AS cor0
----
1608
2345
5963

query I rowsort
SELECT - 62 * + col2 FROM tab2 AS cor0
----
-1612
-1674
-2356

query I rowsort
SELECT col0 + cor0.col0 * col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-119574
-50955
-5852

query I rowsort
SELECT - + col1 * + col0 + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT 83 AS col2 FROM tab1, tab1 cor0
----
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4904
SELECT DISTINCT - col1 DIV - col2 col1 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT - col1 / - col2 col1 FROM tab0 AS cor0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4905
SELECT - 57 + - cor0.col0 DIV - col1 FROM tab0 AS cor0
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-4905
SELECT - 57 + - cor0.col0 / - col1 FROM tab0 AS cor0
----
-57
-57
-57

query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 FROM tab2 cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - tab0.col1 col2 FROM tab0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col1 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT + col0 * + 17 * + col2 AS col1 FROM tab1
----
130560
2754
62016

query I rowsort
SELECT ALL + 13 FROM tab1, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT + 85 AS col0 FROM tab2 AS cor0
----
85

query I rowsort
SELECT + 51 + col2 + + col2 * col0 AS col2 FROM tab2 AS cor0
----
2105
267
3091

query I rowsort
SELECT col0 * - 63 AS col0 FROM tab0
----
-1512
-2205
-5607

query I rowsort
SELECT - col1 * col0 * 10 FROM tab2
----
-13430
-2170
-46020

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4915
SELECT ALL CAST( 66 AS SIGNED ) * + tab1.col0 FROM tab1
----
198
4224
5280

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL CAST ( 66 AS INTEGER ) * + tab1.col0 FROM tab1
----
198
4224
5280

query I rowsort
SELECT - ( col2 ) + tab0.col2 AS col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4917
SELECT tab2.col2 * tab2.col1 DIV col0 + col2 * + col2 * - col2 AS col1 FROM tab2
----
-17557
-19564
-54864

skipif mysql # not compatible
query I rowsort label-4917
SELECT tab2.col2 * tab2.col1 / col0 + col2 * + col2 * - col2 AS col1 FROM tab2
----
-17557
-19564
-54864

query I rowsort
SELECT 48 + 18 FROM tab0
----
66
66
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4919
SELECT + 12 DIV - cor0.col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4919
SELECT + 12 / - cor0.col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT DISTINCT col0 + 60 AS col2 FROM tab1 AS cor0
----
124
140
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( 37 ) col2 FROM tab1 AS cor0
----
111
2368
2960

query I rowsort
SELECT - col0 * ( col2 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col1 * cor0.col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT DISTINCT + col0 * - col2 - - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1659
2574
28

query I rowsort
SELECT DISTINCT + + col0 - + col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT col0 + col0 - + col1 FROM tab2 AS cor0
----
-17
141
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 54 + 45 * + col2 col1 FROM tab2 cor0
----
1116
1161
1656

onlyif mysql # use DIV operator for integer division
query I rowsort label-4929
SELECT ALL ( col0 ) DIV col1 + + col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
6
7

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL ( col0 ) / col1 + + col0 / + col2 AS col1 FROM tab1 AS cor0
----
0
6
7

query I rowsort
SELECT DISTINCT + - col2 + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 col2 FROM tab0, tab0 AS cor0
----
-22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4932
SELECT + - CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT + - CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 21 AS col2 FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT 26 * col1 FROM tab0 AS cor0
----
2236
2366
2522

query I rowsort
SELECT DISTINCT col2 * - cor0.col0 * col2 FROM tab0 cor0
----
-26136
-35
-598436

query I rowsort
SELECT - col1 * col2 * - ( - col1 ) AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT - 18 + - cor0.col0 * + 59 AS col2 FROM tab0 cor0
----
-1434
-2083
-5269

query I rowsort
SELECT ALL - - 93 + - col2 * + cor0.col2 FROM tab0 AS cor0
----
-6631
-996
92

query I rowsort
SELECT - ( - 82 ) - col0 AS col2 FROM tab2
----
3
4
75

query I rowsort
SELECT ALL - 22 * col0 AS col2 FROM tab2 AS cor0
----
-154
-1716
-1738

query I rowsort
SELECT col1 * col1 * + col0 + col0 FROM tab0
----
177528
329350
737098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 * + 87 col1 FROM tab0
----
7568
8008
8536

query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col0 + + col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT DISTINCT col1 * 3 + + col2 * col0 AS col0 FROM tab0 cor0
----
1050
326
7571

query I rowsort
SELECT ALL tab1.col2 * - 93 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4d2fa05e31c762d2c3608a2933318b69

query I rowsort
SELECT ALL + ( col2 * 60 ) AS col0 FROM tab0
----
1980
4920
60

query I rowsort
SELECT DISTINCT + col0 + - col0 * + 11 FROM tab2
----
-70
-780
-790

query I rowsort
SELECT + - col0 * + ( col0 ) * col0 AS col0 FROM tab0 cor0
----
-13824
-42875
-704969

query I rowsort
SELECT ALL 55 * 47 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 216aa28d4cd87892e9b2feaa723e6e52

query I rowsort
SELECT ( + 48 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + - 80 * + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 02f760529381ca25cbb9e53d6037c8c2

query I rowsort
SELECT DISTINCT + col0 * 18 AS col2 FROM tab0 AS cor0
----
1602
432
630

query I rowsort
SELECT 75 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

onlyif mysql # use DIV operator for integer division
query I rowsort label-4954
SELECT ALL col2 + + ( 48 ) DIV - col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL col2 + + ( 48 ) / - col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col1 * - ( - tab0.col2 ) FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL + col1 + 75 + col1 AS col0 FROM tab1
----
101
127
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4957
SELECT CAST( col2 AS SIGNED ) * col0 + + tab2.col1 + col1 AS col2 FROM tab2
----
2146
251
3036

skipif mysql # not compatible
query I rowsort label-4957
SELECT CAST ( col2 AS INTEGER ) * col0 + + tab2.col1 + col1 AS col2 FROM tab2
----
2146
251
3036

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4958
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 + + col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 + + col2 AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 11 * + col2 col2 FROM tab0 AS cor0
----
11
363
902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4960
SELECT + col2 * cor0.col2 + + CAST( NULL AS SIGNED ) * - ( + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4960
SELECT + col2 * cor0.col2 + + CAST ( NULL AS INTEGER ) * - ( + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4961
SELECT - - col1 DIV - col1 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-163
-3649
-7681

skipif mysql # not compatible
query I rowsort label-4961
SELECT - - col1 / - col1 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-163
-3649
-7681

onlyif mysql # use DIV operator for integer division
query I rowsort label-4962
SELECT ALL + ( col0 ) DIV col1 - 39 * + 97 * - col1 AS col1 FROM tab2
----
117273
223198
64315

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL + ( col0 ) / col1 - 39 * + 97 * - col1 AS col1 FROM tab2
----
117273
223198
64315

query I rowsort
SELECT 52 * - tab1.col0 FROM tab1
----
-156
-3328
-4160

query I rowsort
SELECT + cor1.col1 * tab1.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f1ecce02b56643d011f10eb912aa8a90

query I rowsort
SELECT ALL + cor0.col2 + ( col0 ) AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + ( - col0 ) + + cor0.col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + + 5 * col0 * 7 + tab2.col1 FROM tab2
----
2815
2820
303

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 82 col2 FROM tab2
----
2132
2214
3116

query I rowsort
SELECT ALL 95 * col0 + - col1 * col0 FROM tab0
----
-70
216
356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 * + col0 col1 FROM tab2
----
-511
-5694
-5767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 65 col0 FROM tab0 AS cor0
----
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + col2 col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4973
SELECT + col2 + col0 * CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
2054
216
3040

skipif mysql # not compatible
query I rowsort label-4973
SELECT + col2 + col0 * CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4974
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4975
SELECT - col1 * col1 - + 48 DIV + col0 AS col1 FROM tab2 AS cor0
----
-289
-3481
-967

skipif mysql # not compatible
query I rowsort label-4975
SELECT - col1 * col1 - + 48 / + col0 AS col1 FROM tab2 AS cor0
----
-289
-3481
-967

query I rowsort
SELECT 58 * col0 + col2 AS col1 FROM tab0 cor0
----
1425
2031
5244

query I rowsort
SELECT ALL + - ( col2 ) * 38 FROM tab0 AS cor0
----
-1254
-3116
-38

query I rowsort
SELECT ALL - col2 * + col2 + + col2 FROM tab0 AS cor0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4979
SELECT DISTINCT - cor0.col0 DIV - col1 FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT - cor0.col0 / - col1 FROM tab2 cor0
----
0
1
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4980
SELECT DISTINCT 79 * col0 * CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT 79 * col0 * CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - 43 * col2 - col1 FROM tab0 cor0
----
-140
-1505
-3617

query I rowsort
SELECT DISTINCT + cor0.col1 + + col2 * + col0 AS col2 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT + 58 * - col1 - + 56 AS col2 FROM tab2 AS cor0
----
-1042
-1854
-3478

query I rowsort
SELECT DISTINCT + - 52 * - col0 + + 81 AS col0 FROM tab0 AS cor0
----
1329
1901
4709

onlyif mysql # use DIV operator for integer division
query I rowsort label-4985
SELECT DISTINCT + cor0.col0 * - col1 + + col0 DIV - col0 FROM tab1 AS cor0
----
-1041
-641
-79

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT + cor0.col0 * - col1 + + col0 / - col0 FROM tab1 AS cor0
----
-1041
-641
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4986
SELECT - + 69 DIV + col1 col2 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4986
SELECT - + 69 / + col1 col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT tab2.col2 + + tab2.col0 * cor1.col1 AS col0 FROM tab2, tab1 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 26ae0d56504e8104bb4c5129b37f31b4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 87 + col1 * + 47 ) col0 FROM tab0
----
3955
4190
4472

query I rowsort
SELECT ALL + ( + cor0.col1 ) * - 5 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 0ff57e8c5116a6ad9564f20ab1a0b080

query I rowsort
SELECT ALL - 52 - + col0 * + ( + col1 ) AS col1 FROM tab1
----
-1092
-130
-692

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4991
SELECT - col0 * - col0 + + CAST( - col1 AS SIGNED ) FROM tab2
----
18
6025
6224

skipif mysql # not compatible
query I rowsort label-4991
SELECT - col0 * - col0 + + CAST ( - col1 AS INTEGER ) FROM tab2
----
18
6025
6224

query I rowsort
SELECT DISTINCT - 40 + tab1.col1 FROM tab1, tab1 AS cor0
----
-14
-27
-30

onlyif mysql # use DIV operator for integer division
query I rowsort label-4993
SELECT ALL col0 DIV - ( - col0 + col1 ) FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL col0 / - ( - col0 + col1 ) FROM tab1
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( tab1.col0 ) col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * - col1 * + tab1.col0 col0 FROM tab1
----
-234
-40960
-83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-4996
SELECT - col0 * 76 + col2 DIV col1 FROM tab0 AS cor0
----
-1824
-2660
-6764

skipif mysql # not compatible
query I rowsort label-4996
SELECT - col0 * 76 + col2 / col1 FROM tab0 AS cor0
----
-1824
-2660
-6764

onlyif mysql # use DIV operator for integer division
query I rowsort label-4997
SELECT + - col1 DIV 83 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4997
SELECT + - col1 / 83 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4998
SELECT + - col0 * 74 DIV col2 FROM tab0 AS cor0
----
-2590
-53
-80

skipif mysql # not compatible
query I rowsort label-4998
SELECT + - col0 * 74 / col2 FROM tab0 AS cor0
----
-2590
-53
-80

query I rowsort
SELECT - ( + tab2.col0 ) * tab2.col2 AS col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL + 33 * - tab0.col0 - + 14 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to 62ab8000b4c4fcf4a77d5f5045e26d69

query I rowsort
SELECT ( 91 + + col0 ) AS col2 FROM tab0
----
115
126
180

query I rowsort
SELECT - ( - col2 * + col0 ) + col1 * 63 FROM tab0
----
13031
6146
6210

query I rowsort
SELECT DISTINCT tab1.col2 * - col1 + - col0 + ( + 37 ) FROM tab1
----
-1291
-1370
-597

query I rowsort
SELECT DISTINCT col2 + col2 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-5006
SELECT DISTINCT cor0.col0 + + ( col2 ) DIV cor0.col0 col0 FROM tab1 AS cor0
----
21
64
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5006
SELECT DISTINCT cor0.col0 + + ( col2 ) / cor0.col0 col0 FROM tab1 AS cor0
----
21
64
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 * + col2 col2 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT - - col0 * - cor0.col1 * col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL + col2 * + col1 * + col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - - 4 AS col0 FROM tab2 AS cor0
----
4

query I rowsort
SELECT + 62 + - col0 AS col1 FROM tab0 AS cor0
----
-27
27
38

query I rowsort
SELECT ALL + col1 * + cor0.col1 + 24 * - 94 AS col0 FROM tab2 AS cor0
----
-1295
-1967
1225

query I rowsort
SELECT - + 37 + col0 FROM tab0 AS cor0
----
-13
-2
52

query I rowsort
SELECT DISTINCT - - col1 * - cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - + 90 * col2 FROM tab0 AS cor0
----
-2970
-7380
-90

query I rowsort
SELECT ALL - 40 * - col2 AS col1 FROM tab2 cor0
----
1040
1080
1520

query I rowsort
SELECT - 58 * - col0 AS col2 FROM tab2 AS cor0
----
406
4524
4582

onlyif mysql # use DIV operator for integer division
query I rowsort label-5018
SELECT DISTINCT + - col1 + + col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT + - col1 + + col1 / col2 AS col0 FROM tab0 AS cor0
----
-84
-90
0

query I rowsort
SELECT - - 12 + col1 AS col1 FROM tab2 cor0
----
29
43
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5020
SELECT DISTINCT - CAST( - 12 AS SIGNED ) FROM tab1, tab2, tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT - CAST ( - 12 AS INTEGER ) FROM tab1, tab2, tab1 AS cor0
----
12

query I rowsort
SELECT ( - col0 ) - col0 * col0 AS col2 FROM tab1
----
-12
-4160
-6480

query I rowsort
SELECT DISTINCT col1 * cor0.col1 + col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL - - 64 AS col1 FROM tab2 cor0
----
64
64
64

query I rowsort
SELECT DISTINCT + + 73 + - col1 FROM tab0 AS cor0
----
-13
-18
-24

query I rowsort
SELECT ALL - 59 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-21
-32
-33

query I rowsort
SELECT ALL 0 * + col2 * cor0.col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col0 * 40 + + 0 FROM tab2 AS cor0
----
-280
-3120
-3160

onlyif mysql # use DIV operator for integer division
query I rowsort label-5028
SELECT col0 DIV ( cor0.col1 * col1 ) - + ( + ( + cor0.col0 ) ) * + 32 AS col2 FROM tab1 AS cor0
----
-2048
-2560
-96

skipif mysql # not compatible
query I rowsort label-5028
SELECT col0 / ( cor0.col1 * col1 ) - + ( + ( + cor0.col0 ) ) * + 32 AS col2 FROM tab1 AS cor0
----
-2048
-2560
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5029
SELECT ALL + col0 * CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1, tab0 AS cor2
----
3645 values hashing to b225d3765f33551c12574f545c8c91eb

query I rowsort
SELECT ALL tab0.col0 * col2 * col0 + - col2 + - ( 51 ) FROM tab0
----
1173
18924
649389

query I rowsort
SELECT DISTINCT - - col2 * ( - col0 ) + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 - - col0 * col0 FROM tab2 AS cor0
----
10686
266
7584

query I rowsort
SELECT + + col2 * + col1 + col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
1210
1482
2288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 57 + + col0 - col1 col2 FROM tab1 cor0
----
3055
3303
5539

query I rowsort
SELECT col2 * col0 + - col1 AS col2 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL + col1 * ( col0 * cor0.col2 ) FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT + col0 * - col0 + col2 FROM tab2 cor0
----
-22
-6058
-6203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + cor0.col1 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 29 + tab1.col0 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
109
32
93

query I rowsort
SELECT DISTINCT + cor0.col0 + ( + col1 ) * + col1 FROM tab1 AS cor0
----
164
249
679

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col2 AS REAL ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT 48 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to df6d12001a34fdcf5cfb2ca3a4a22108

query I rowsort
SELECT - + col0 + + col0 + + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col2 * col2 * + col2 AS col2 FROM tab0
----
1
35937
551368

query I rowsort
SELECT + 41 + col0 FROM tab0
----
130
65
76

query I rowsort
SELECT + tab0.col2 * - col2 + + col2 + col1 AS col0 FROM tab0
----
-6551
-970
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5048
SELECT + col0 DIV col2 + + tab1.col1 FROM tab1
----
11
13
26

skipif mysql # not compatible
query I rowsort label-5048
SELECT + col0 / col2 + + tab1.col1 FROM tab1
----
11
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5049
SELECT col0 DIV - tab1.col1 + col0 AS col2 FROM tab1
----
3
58
74

skipif mysql # not compatible
query I rowsort label-5049
SELECT col0 / - tab1.col1 + col0 AS col2 FROM tab1
----
3
58
74

query I rowsort
SELECT tab0.col0 * 23 + ( col2 ) * + 37 FROM tab0
----
1773
5081
842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + + col0 * 34 col1 FROM tab1 cor0
----
2112
2640
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5052
SELECT DISTINCT + cor0.col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT + cor0.col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5053
SELECT - col1 DIV 36 + - cor0.col1 + col1 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5053
SELECT - col1 / 36 + - cor0.col1 + col1 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL col2 * ( col0 ) FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL - cor0.col2 * + 6 FROM tab2 AS cor0
----
-156
-162
-228

query I rowsort
SELECT ALL + 73 + + col2 + - col1 AS col0 FROM tab0
----
-23
20
64

query I rowsort
SELECT - tab1.col1 * - 84 FROM tab1
----
1092
2184
840

query I rowsort
SELECT col0 * - col1 - col2 * 37 * + 10 FROM tab0 AS cor0
----
-14274
-3765
-38439

query I rowsort
SELECT ALL col2 * + col0 + col1 * + ( col1 ) FROM tab2 AS cor0
----
1150
3291
5509

query I rowsort
SELECT DISTINCT + col2 + + 57 FROM tab2 AS cor0
----
83
84
95

query I rowsort
SELECT DISTINCT + col0 + col0 * - col1 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - col1 * + col0 + - col2 * 37 * col0 FROM tab2 cor0
----
-112417
-7210
-79638

query I rowsort
SELECT ALL - + ( col2 ) * + col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + + 83 + + ( + col1 ) * ( - col2 * + col0 ) FROM tab2 AS cor0
----
-119569
-50951
-5776

query I rowsort
SELECT DISTINCT - col1 + col0 * col0 AS col0 FROM tab0 cor0
----
1128
490
7830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5066
SELECT + CAST( NULL AS SIGNED ) / - col2 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT + CAST ( NULL AS INTEGER ) / - col2 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 0 ) FROM tab2, tab2 AS cor0, tab2 cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - col2 * - 68 col0 FROM tab0 AS cor0
----
-29
2158
5485

query I rowsort
SELECT + + ( + col1 ) * col1 + col0 AS col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT - col2 - cor0.col1 * + cor0.col0 AS col0 FROM tab0 cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT 82 + col1 FROM tab0 AS cor0
----
168
173
179

query I rowsort
SELECT + 60 * - col0 + col1 AS col1 FROM tab2 cor0
----
-389
-4621
-4723

query I rowsort
SELECT 28 * + col2 AS col0 FROM tab2
----
1064
728
756

query I rowsort
SELECT ALL 50 + + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b9742db8b1bf309580788cf7f58b30d4

query I rowsort
SELECT 69 * col2 FROM tab2 AS cor0
----
1794
1863
2622

query I rowsort
SELECT DISTINCT - 31 * - cor0.col0 FROM tab2 AS cor0
----
217
2418
2449

onlyif mysql # use DIV operator for integer division
query I rowsort label-5077
SELECT ALL - ( col2 ) DIV - col1 + ( 10 ) * - col0 FROM tab0 AS cor0
----
-240
-350
-890

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL - ( col2 ) / - col1 + ( 10 ) * - col0 FROM tab0 AS cor0
----
-240
-350
-890

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to d95cefa45985203e212af5af5dd9be5b

query IIIIII rowsort
SELECT * FROM tab0, tab1 cor0 WHERE NOT ( NULL ) <> NULL
----

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + cor0.col2 AS REAL ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + - 51 * + ( + cor0.col2 ) FROM tab0 AS cor0
----
-1683
-4182
-51

query I rowsort
SELECT + col0 * - col1 * - col2 AS col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + col1 * - 76 AS col1 FROM tab1
----
-1976
-760
-988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5084
SELECT ALL - CAST( + col1 * col1 AS SIGNED ) AS col2 FROM tab0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL - CAST ( + col1 * col1 AS INTEGER ) AS col2 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5085
SELECT + col2 * + CAST( NULL AS SIGNED ) * + 17 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT + col2 * + CAST ( NULL AS INTEGER ) * + 17 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * + col2 * - ( - tab0.col0 ) FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL - 19 * tab2.col2 FROM tab2
----
-494
-513
-722

query I rowsort
SELECT DISTINCT - + 4 + - 50 FROM tab0 AS cor0
----
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-5089
SELECT DISTINCT + 8 DIV col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT + 8 / col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col0 + 73 FROM tab1 AS cor0
----
-7
70
9

query I rowsort
SELECT DISTINCT - 40 * col1 * col2 + + ( 42 ) * col0 FROM tab1 AS cor0
----
-20112
-46560
-56034

query I rowsort
SELECT DISTINCT + - 96 * col0 FROM tab0 AS cor0
----
-2304
-3360
-8544

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5093
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT - CAST ( NULL AS REAL ) + col0 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - col2 * - col1 * - cor0.col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5095
SELECT DISTINCT - CAST( col2 AS SIGNED ) + + col0 + ( col1 ) * - col1 FROM tab0
----
-7405
-8274
-9375

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + + col0 + ( col1 ) * - col1 FROM tab0
----
-7405
-8274
-9375

query I rowsort
SELECT - col2 * + col0 + + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5097
SELECT - col2 * cor0.col0 + - CAST( 66 AS SIGNED ) FROM tab0 cor0
----
-101
-7364
-858

skipif mysql # not compatible
query I rowsort label-5097
SELECT - col2 * cor0.col0 + - CAST ( 66 AS INTEGER ) FROM tab0 cor0
----
-101
-7364
-858

onlyif mysql # use DIV operator for integer division
query I rowsort label-5098
SELECT + tab0.col2 + - 54 + col0 DIV 32 FROM tab0
----
-21
-52
30

skipif mysql # not compatible
query I rowsort label-5098
SELECT + tab0.col2 + - 54 + col0 / 32 FROM tab0
----
-21
-52
30

query I rowsort
SELECT DISTINCT - 53 AS col1 FROM tab1
----
-53

query I rowsort
SELECT DISTINCT + - ( - 41 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-5101
SELECT col2 + + col1 DIV ( + ( col0 ) ) FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-5101
SELECT col2 + + col1 / ( + ( col0 ) ) FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT + 14 + + col0 * ( col2 ) AS col0 FROM tab2 AS cor0
----
203
2042
3016

query I rowsort
SELECT ALL col1 + - col0 * 43 FROM tab1
----
-103
-2742
-3427

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5104
SELECT DISTINCT + CAST( + tab0.col0 AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5104
SELECT DISTINCT + CAST ( + tab0.col0 AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
24
35
89

query I rowsort
SELECT ALL - ( col0 ) * 48 * + 73 + col0 + - 48 AS col2 FROM tab0
----
-122653
-311815
-84120

query I rowsort
SELECT DISTINCT + tab0.col2 AS col1 FROM tab0, tab1 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5107
SELECT + col2 * CAST( - 68 AS SIGNED ) + col2 FROM tab2 cor0
----
-1742
-1809
-2546

skipif mysql # not compatible
query I rowsort label-5107
SELECT + col2 * CAST ( - 68 AS INTEGER ) + col2 FROM tab2 cor0
----
-1742
-1809
-2546

query I rowsort
SELECT DISTINCT col1 + col1 * + cor0.col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL - col2 * + col0 * + ( + col2 ) FROM tab2
----
-114076
-5103
-52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT DISTINCT + 74 + + tab1.col0 * col0 AS col2 FROM tab1
----
4170
6474
83

query I rowsort
SELECT + 17 * - col0 + col1 + - col1 AS col2 FROM tab0
----
-1513
-408
-595

query I rowsort
SELECT DISTINCT 0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
0

query I rowsort
SELECT 81 * + col2 + col2 FROM tab0
----
2706
6724
82

query I rowsort
SELECT col1 * col1 * + col1 + col2 + - col0 AS col0 FROM tab2
----
205327
29811
4872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * ( col0 * col1 ) col0 FROM tab0
----
1188864
4158875
64152179

onlyif mysql # use DIV operator for integer division
query I rowsort label-5117
SELECT - col2 + col1 + + col0 DIV col0 col2 FROM tab2 AS cor0
----
-20
34
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5117
SELECT - col2 + col1 + + col0 / col0 col2 FROM tab2 AS cor0
----
-20
34
5

query I rowsort
SELECT col0 * ( ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col2 + - 37 * - col1 + - cor0.col0 FROM tab0 AS cor0
----
3125
3196
3553

query I rowsort
SELECT col1 + 23 * 77 FROM tab1 AS cor0
----
1781
1784
1797

onlyif mysql # use DIV operator for integer division
query I rowsort label-5121
SELECT DISTINCT col2 + 7 DIV - 17 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT col2 + 7 / - 17 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col1 * 87 + col2 * col1 AS col1 FROM tab0 AS cor0
----
-455
-4644
-8342

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5123
SELECT + cor0.col0 * + CAST( - col2 AS SIGNED ) + + col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif mysql # not compatible
query I rowsort label-5123
SELECT + cor0.col0 * + CAST ( - col2 AS INTEGER ) + + col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + + col0 + + ( col2 ) + + col2 * - 9 * + ( col0 * ( col1 ) ) FROM tab0 AS cor0
----
-30519
-5976891
-612951

query I rowsort
SELECT DISTINCT - - col2 + + 80 FROM tab2 AS cor0
----
106
107
118

query I rowsort
SELECT ALL - - col2 + 57 AS col2 FROM tab2 AS cor0
----
83
84
95

query I rowsort
SELECT - col2 * ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * ( 11 ) * col0 col1 FROM tab1 AS cor0
----
11440
7040
858

query I rowsort
SELECT ALL cor0.col2 * - ( col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 61 * 97 + - cor0.col2 col2 FROM tab0 AS cor0
----
195228
485112
5916

onlyif mysql # use DIV operator for integer division
query I rowsort label-5131
SELECT ALL + ( - col0 ) + - col1 DIV + col0 AS col2 FROM tab1 AS cor0
----
-11
-64
-80

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL + ( - col0 ) + - col1 / + col0 AS col2 FROM tab1 AS cor0
----
-11
-64
-80

query I rowsort
SELECT - - col0 * - 48 FROM tab2 cor0
----
-336
-3744
-3792

query I rowsort
SELECT DISTINCT - - 73 AS col2 FROM tab1 AS cor0
----
73

query I rowsort
SELECT - + ( + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT col2 * col1 - + ( - 93 ) FROM tab2 AS cor0
----
1627
739
930

query I rowsort
SELECT ALL col0 * - col0 * - col1 AS col0 FROM tab0 AS cor0
----
118825
49536
720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col2 * - cor0.col1 + col2 * col0 col1 FROM tab2 AS cor0
----
-117624
-48032
-5670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * + col0 - col1 col2 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT ALL col0 * + col2 * col0 AS col0 FROM tab2 cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT + - 3 AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 55 * + col1 AS col0 FROM tab1 AS cor0
----
-1430
-550
-715

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 + col0 col0 FROM tab2 AS cor0
----
-41
30
31

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 62086d53b7dd9376121857c3d03027d6

query I rowsort
SELECT DISTINCT + + col0 + col2 * - col1 * - col2 FROM tab1 AS cor0
----
119888
32554
75819

query I rowsort
SELECT ALL - 58 * + col2 * + col2 + + col2 FROM tab1 cor0
----
-169074
-188385
-534432

query I rowsort
SELECT col1 + 60 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1354
-2003
-5249

query I rowsort
SELECT ALL - - 78 * col1 FROM tab0 AS cor0
----
6708
7098
7566

query I rowsort
SELECT DISTINCT + + ( + cor0.col1 ) + - col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + col0 * - col2 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - ( + 70 ) + + col1 - - col2 * + col0 AS col0 FROM tab0 AS cor0
----
62
7319
808

query I rowsort
SELECT ALL 74 AS col2 FROM tab1 cor0
----
74
74
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-5152
SELECT + + 81 DIV col0 FROM tab1 AS cor0
----
1
1
27

skipif mysql # not compatible
query I rowsort label-5152
SELECT + + 81 / col0 FROM tab1 AS cor0
----
1
1
27

query I rowsort
SELECT DISTINCT cor0.col1 + + col0 AS col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT ( cor0.col2 ) * + col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5155
SELECT - 84 + - col2 * col2 * col0 - - col2 DIV - col2 FROM tab0 cor0
----
-120
-26221
-598521

skipif mysql # not compatible
query I rowsort label-5155
SELECT - 84 + - col2 * col2 * col0 - - col2 / - col2 FROM tab0 cor0
----
-120
-26221
-598521

query I rowsort
SELECT + col1 + + ( col1 ) * + tab2.col2 + - col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL col2 * ( - col1 ) + + col1 - ( ( tab1.col1 ) ) AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL + 18 + col2 FROM tab1
----
114
72
75

query I rowsort
SELECT col2 * 49 AS col1 FROM tab1 AS cor0
----
2646
2793
4704

query I rowsort
SELECT DISTINCT + + col0 + ( - ( - col1 ) ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + 43 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT + 51 * - cor1.col0 * 23 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to c594a822201105859c3eaa04ae0810b2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5163
SELECT col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + col2 * - col2 * col2 AS col1 FROM tab1 AS cor0
----
-157518
-185250
-884832

query I rowsort
SELECT ALL 63 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT DISTINCT col1 * - col0 + col2 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + tab2.col2 + col0 + col2 AS col2 FROM tab2
----
130
155
61

query I rowsort
SELECT col2 + 56 AS col2 FROM tab0
----
138
57
89

query I rowsort
SELECT ALL + + cor0.col0 + ( - cor0.col2 ) * + col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5170
SELECT DISTINCT col2 DIV + 70 + col1 AS col1 FROM tab1
----
10
14
26

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT col2 / + 70 + col1 AS col1 FROM tab1
----
10
14
26

query I rowsort
SELECT - col1 * tab0.col2 + col1 + col0 FROM tab0
----
-2728
-7282
35

query I rowsort
SELECT DISTINCT + + cor0.col2 + ( 50 ) * col2 FROM tab1 AS cor0
----
2754
2907
4896

query I rowsort
SELECT ALL - col0 * 95 + - col2 FROM tab2 AS cor0
----
-692
-7436
-7543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5174
SELECT + CAST( NULL AS SIGNED ) * 65 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5174
SELECT + CAST ( NULL AS INTEGER ) * 65 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5175
SELECT - col1 DIV - 38 + col0 - - col0 AS col0 FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-5175
SELECT - col1 / - 38 + col0 - - col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + + col2 * ( cor0.col1 ) + col1 * - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5177
SELECT ALL - + col1 * - CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL - + col1 * - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + + col1 + col0 + col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT ALL col1 * 24 - ( - col1 ) FROM tab2 AS cor0
----
1475
425
775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 col0 FROM tab1
----
32
32
32

query I rowsort
SELECT + ( - cor0.col0 ) - + col1 AS col0 FROM tab0 cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 - col2 col1 FROM tab2 cor0
----
-37
-38
-49

onlyif mysql # use DIV operator for integer division
query I rowsort label-5183
SELECT - - cor0.col0 * col0 DIV col2 FROM tab0 cor0
----
1225
17
96

skipif mysql # not compatible
query I rowsort label-5183
SELECT - - cor0.col0 * col0 / col2 FROM tab0 cor0
----
1225
17
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - 42 col2 FROM tab0 AS cor0
----
-128
-133
-139

query I rowsort
SELECT - col1 * ( col2 ) - col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT - 95 + - col0 AS col2 FROM tab1 AS cor0
----
-159
-175
-98

query I rowsort
SELECT ( col0 ) * - 92 FROM tab1
----
-276
-5888
-7360

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5188
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5188
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - ( - col0 ) + + col1 * 65 FROM tab2 cor0
----
1184
2022
3913

query I rowsort
SELECT DISTINCT - - 40 * + cor0.col0 FROM tab2, tab1 AS cor0
----
120
2560
3200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5191
SELECT - cor0.col2 + CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5191
SELECT - cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 * - 24 AS col2 FROM tab0 AS cor0
----
2064
2184
2328

query I rowsort
SELECT DISTINCT 57 + + cor0.col0 AS col1 FROM tab2, tab1 cor0, tab1 AS cor1
----
121
137
60

query I rowsort
SELECT ALL tab2.col0 + - col1 + col2 FROM tab2
----
100
3
45

query I rowsort
SELECT + col1 * - col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5196
SELECT ( col0 ) / - cor0.col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT ( col0 ) / - cor0.col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5197
SELECT ALL - col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL - col1 / - col1 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + 40 * col2 AS col2 FROM tab1 AS cor0
----
2160
2280
3840

query I rowsort
SELECT - 37 FROM tab1, tab0 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT DISTINCT + 44 + + col0 AS col2 FROM tab0 cor0
----
133
68
79

query I rowsort
SELECT 51 + - col1 * + ( - col0 ) AS col0 FROM tab0 AS cor0
----
2115
3446
8150

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5202
SELECT ALL - col1 * CAST( NULL AS SIGNED ) - - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) - - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 73 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT DISTINCT - - col2 * - col1 - 92 AS col1 FROM tab2 AS cor0
----
-1626
-738
-929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + col0 * - 60 AS col1 FROM tab1 AS cor0
----
-180
-3840
-4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 + 81 + col1 * ( col1 ) col1 FROM tab2 AS cor0
----
1026
354
3546

query I rowsort
SELECT ( - 0 ) * + col1 - - col0 FROM tab2 cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5209
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 * + cor0.col0 + col1 * col0 AS col1 FROM tab0 AS cor0
----
16020
2640
4620

query I rowsort
SELECT col2 * 1 FROM tab2
----
26
27
38

query I rowsort
SELECT col2 + - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5213
SELECT + CAST( NULL AS SIGNED ) * cor0.col1 - col2 * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT + CAST ( NULL AS INTEGER ) * cor0.col1 - col2 * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 19 + col2 + - cor0.col1 FROM tab2 AS cor0
----
-23
-52
2

query I rowsort
SELECT + col1 * + 22 + - col1 FROM tab0 AS cor0
----
1806
1911
2037

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 27 col1 FROM tab0 AS cor0
----
27

query I rowsort
SELECT DISTINCT - - 50 + col0 FROM tab0 AS cor0
----
139
74
85

query I rowsort
SELECT ALL + + col1 * - col1 - - cor0.col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT - col2 * + col2 * col1 + 71 FROM tab2 AS cor0
----
-22528
-24477
-39813

onlyif mysql # use DIV operator for integer division
query I rowsort label-5220
SELECT col2 DIV ( - col1 ) col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5220
SELECT col2 / ( - col1 ) col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 * - 61 - - col2 col1 FROM tab2 AS cor0
----
1075
1918
3625

query I rowsort
SELECT - 95 * + col2 - + col2 AS col1 FROM tab2 cor0
----
-2496
-2592
-3648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5223
SELECT DISTINCT - CAST( col1 AS SIGNED ) * - col2 - col0 FROM tab2 AS cor0
----
1456
567
830

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * - col2 - col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT + - 33 - - col0 FROM tab0 AS cor0
----
-9
2
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-5225
SELECT + + ( 29 ) DIV + col0 - col1 * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-69

skipif mysql # not compatible
query I rowsort label-5225
SELECT + + ( 29 ) / + col0 - col1 * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-69

query I rowsort
SELECT DISTINCT col0 + 0 * - cor0.col2 * + col0 AS col2 FROM tab2 cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5227
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 98 AS col2 FROM tab0 AS cor0
----
-98
-98
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5229
SELECT CAST( NULL AS SIGNED ) * 13 + col0 + - col0 / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT CAST ( NULL AS INTEGER ) * 13 + col0 + - col0 / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col0 - - cor0.col0 * - col0 FROM tab1 AS cor0
----
-14080
-171
-7744

query I rowsort
SELECT DISTINCT - col2 + + 3 FROM tab2 AS cor0
----
-23
-24
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-5232
SELECT - col2 * - col0 - + col1 DIV - col1 FROM tab0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-5232
SELECT - col2 * - col0 - + col1 / - col1 FROM tab0
----
36
7299
793

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 cor2
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT ALL col0 + col0 * col2 AS col1 FROM tab2
----
196
2106
3081

query I rowsort
SELECT DISTINCT - 0 + col0 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT + ( + col0 ) + - col1 + - col2 FROM tab1
----
-29
-3
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5237
SELECT - col1 DIV - col1 col1 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5237
SELECT - col1 / - col1 col1 FROM tab2
----
1
1
1

query I rowsort
SELECT tab0.col2 + col0 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT + col2 * col0 + - col2 - + col2 AS col1 FROM tab2 AS cor0
----
135
1976
2926

query I rowsort
SELECT DISTINCT - 84 + + 51 AS col0 FROM tab2
----
-33

query I rowsort
SELECT DISTINCT + ( + col2 ) * col1 + col1 AS col0 FROM tab0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-5242
SELECT DISTINCT col1 * + col0 + col0 DIV col2 FROM tab1
----
1040
641
78

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT col1 * + col0 + col0 / col2 FROM tab1
----
1040
641
78

query I rowsort
SELECT - col2 * + col2 + col0 * + col1 AS col1 FROM tab2
----
-101
-512
3926

query I rowsort
SELECT - col0 + col2 * - ( + 95 * col2 + - col0 ) AS col0 FROM tab0
----
-102687
-631571
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-5245
SELECT ALL col0 + - col2 DIV + cor0.col0 FROM tab1 AS cor0
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL col0 + - col2 / + cor0.col0 FROM tab1 AS cor0
----
-15
64
79

query I rowsort
SELECT ALL - - cor0.col2 + + col1 * - col2 * col1 AS col0 FROM tab2 cor0
----
-10944
-25920
-90480

onlyif mysql # use DIV operator for integer division
query I rowsort label-5247
SELECT DISTINCT + col2 DIV - col0 + 9 AS col2 FROM tab1 AS cor0
----
-9
8
9

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT + col2 / - col0 + 9 AS col2 FROM tab1 AS cor0
----
-9
8
9

query I rowsort
SELECT + col2 + ( - col1 ) AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - + col1 + + ( + ( + col2 ) ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT 80 - col0 * + col0 FROM tab1
----
-4016
-6320
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-5251
SELECT + col1 DIV + col1 + col0 AS col2 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5251
SELECT + col1 / + col1 + col0 AS col2 FROM tab1
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5252
SELECT DISTINCT 27 DIV + col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT 27 / + col0 FROM tab0
----
0
1

query I rowsort
SELECT - tab1.col0 * - ( + col1 ) + col0 AS col2 FROM tab1
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5254
SELECT DISTINCT - col1 DIV 20 AS col1 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT - col1 / 20 AS col1 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT + + col1 * 41 AS col2 FROM tab2 cor0
----
1271
2419
697

query I rowsort
SELECT DISTINCT + col1 * 71 * 64 AS col1 FROM tab2 AS cor0
----
140864
268096
77248

query I rowsort
SELECT DISTINCT - + cor0.col2 * col0 * - ( col2 ) FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL col2 + 54 AS col1 FROM tab1 AS cor0
----
108
111
150

query I rowsort
SELECT DISTINCT - ( col2 ) * col2 AS col1 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT + - col2 * cor0.col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col2 * - cor0.col2 * + col2 + + cor0.col2 FROM tab0 AS cor0
----
-35904
-551286
0

query I rowsort
SELECT ALL col0 * - col1 + + col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT col1 * 12 + col1 AS col0 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT DISTINCT - col2 * - 13 AS col1 FROM tab0 AS cor0
----
1066
13
429

query I rowsort
SELECT col0 * - ( + 60 ) FROM tab1 AS cor0
----
-180
-3840
-4800

query I rowsort
SELECT ALL col0 * + col2 + - ( 38 ) * - col1 FROM tab1
----
1150
4028
8174

query I rowsort
SELECT DISTINCT 69 + tab2.col2 * col0 FROM tab2
----
2097
258
3071

query I rowsort
SELECT col1 * 28 + + ( col0 ) + - 54 AS col0 FROM tab1 cor0
----
290
390
677

query I rowsort
SELECT + + col1 - col0 * cor0.col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL col1 * + 49 + - col2 AS col0 FROM tab0 AS cor0
----
4181
4377
4752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + - col2 col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - + 14 * ( cor0.col2 ) AS col1 FROM tab0 cor0
----
-1148
-14
-462

query I rowsort
SELECT DISTINCT + + ( col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - + 9 + + col0 * - cor0.col0 + col0 * col0 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT ALL - col0 * col2 + + col2 + 80 AS col0 FROM tab2 AS cor0
----
-1922
-2884
-82

query I rowsort
SELECT ALL - col2 + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT - col0 * - 69 AS col0 FROM tab0 AS cor0
----
1656
2415
6141

query I rowsort
SELECT col1 * ( - col1 + - tab0.col0 ) FROM tab0
----
-12804
-16380
-9460

query I rowsort
SELECT + 16 * 1 FROM tab1 AS cor0
----
16
16
16

query I rowsort
SELECT - 94 + ( + col0 ) FROM tab0
----
-5
-59
-70

query I rowsort
SELECT + + 19 + - col0 * + ( + 93 ) FROM tab1 AS cor0
----
-260
-5933
-7421

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5282
SELECT ALL CAST( NULL AS SIGNED ) * col2 * col1 col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL CAST ( NULL AS INTEGER ) * col2 * col1 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5283
SELECT ALL - col0 * tab1.col2 DIV - col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL - col0 * tab1.col2 / - col0 FROM tab1
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5284
SELECT ALL ( cor0.col2 ) * - CAST( - col0 + + col0 AS SIGNED ) * 3 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL ( cor0.col2 ) * - CAST ( - col0 + + col0 AS INTEGER ) * 3 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + + col1 * - cor0.col1 FROM tab2 AS cor0
----
-3559
-368
-968

onlyif mysql # use DIV operator for integer division
query I rowsort label-5286
SELECT DISTINCT col2 * col2 + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT col2 * col2 + col2 / col1 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + + cor0.col0 + + col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - ( + col2 ) + + cor0.col1 col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - col0 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT - + 3 + + col0 FROM tab1 AS cor0
----
0
61
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5291
SELECT DISTINCT ( col1 + col2 ) DIV - ( + col0 ) FROM tab0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT ( col1 + col2 ) / - ( + col0 ) FROM tab0
----
-1
-2
-4

query I rowsort
SELECT - col0 * 47 * col2 FROM tab2
----
-141094
-8883
-95316

query I rowsort
SELECT - - col2 + col1 + + col1 AS col0 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT 68 * col2 AS col0 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT - col1 * + 15 AS col1 FROM tab0
----
-1290
-1365
-1455

query I rowsort
SELECT DISTINCT col1 - col2 * col1 AS col1 FROM tab2
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5297
SELECT ALL col1 + - col1 DIV col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL col1 + - col1 / col2 FROM tab1
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5298
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 * + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5298
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 * + col1 FROM tab2
----
NULL

query I rowsort
SELECT + col0 - - tab1.col2 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT col2 + + col2 + + col2 FROM tab2
----
114
78
81

query I rowsort
SELECT + col0 + col0 - - col2 AS col1 FROM tab0
----
260
71
81

query I rowsort
SELECT + col1 * - col0 + + tab0.col1 * + 26 FROM tab0
----
-5733
-873
172

onlyif mysql # use DIV operator for integer division
query I rowsort label-5303
SELECT DISTINCT 36 DIV - 26 + col1 AS col2 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT 36 / - 26 + col1 AS col2 FROM tab0 AS cor0
----
85
90
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5304
SELECT ALL CAST( 4 AS SIGNED ) + - col2 DIV col2 AS col0 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL CAST ( 4 AS INTEGER ) + - col2 / col2 AS col0 FROM tab0 AS cor0
----
3
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5305
SELECT 14 DIV - 16 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5305
SELECT 14 / - 16 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( 28 ) * col0 + - 73 * + col1 AS col1 FROM tab2 AS cor0
----
-2067
-2123
971

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 20 - + col0 * + col2 col0 FROM tab0 AS cor0
----
-55
-7318
-812

query I rowsort
SELECT + - 27 + col0 AS col2 FROM tab0 AS cor0
----
-3
62
8

query I rowsort
SELECT DISTINCT + 86 FROM tab2, tab1, tab0 AS cor0
----
86

query I rowsort
SELECT - 22 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

query I rowsort
SELECT + + ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col2 * + 15 AS col0 FROM tab0 cor0
----
1230
15
495

query I rowsort
SELECT + col2 * 37 AS col2 FROM tab1 cor0
----
1998
2109
3552

query I rowsort
SELECT DISTINCT - cor0.col1 + 51 AS col0 FROM tab0, tab2 AS cor0
----
-8
20
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-93

query I rowsort
SELECT DISTINCT col1 * col1 + 51 * col1 AS col1 FROM tab0 AS cor0
----
11782
12922
14356

query I rowsort
SELECT DISTINCT - col0 * - col2 + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT + + col0 + ( - col2 ) AS col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT ALL col0 + - col1 + col2 * - col2 AS col0 FROM tab1 cor0
----
-2939
-3195
-9149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 20 col0 FROM tab0
----
1720
1820
1940

query I rowsort
SELECT DISTINCT - + col1 * + ( 20 ) AS col0 FROM tab2 AS cor0
----
-1180
-340
-620

query I rowsort
SELECT cor0.col1 + - 40 * col1 FROM tab1 AS cor0
----
-1014
-390
-507

query I rowsort
SELECT - + col0 * ( - 81 * - col2 ) FROM tab2 AS cor0
----
-15309
-164268
-243162

query I rowsort
SELECT ALL + col2 + ( 73 ) FROM tab2 AS cor0
----
100
111
99

query I rowsort
SELECT ALL + col2 * 23 + 15 AS col2 FROM tab0 cor0
----
1901
38
774

query I rowsort
SELECT ALL - + col0 * - col0 AS col2 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT 2 * + 13 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT - + cor0.col0 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - 19 * - 62 FROM tab0 AS cor0
----
1178

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) + + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5331
SELECT ALL - + ( - col2 ) - col2 DIV + 79 FROM tab1 AS cor0
----
54
57
95

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL - + ( - col2 ) - col2 / + 79 FROM tab1 AS cor0
----
54
57
95

query I rowsort
SELECT DISTINCT + 60 + col1 * col2 * - 40 AS col0 FROM tab0 AS cor0
----
-113460
-298420
-3820

query I rowsort
SELECT ALL - col1 * - 33 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
1054
2006
578

query I rowsort
SELECT + col0 * col1 * - col0 AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200

skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( 56 AS REAL ) + + col2 - ( - col0 ) FROM tab1 AS cor0
----
1
120
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-5336
SELECT ALL - 16 DIV 10 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL - 16 / 10 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col2 + 21 * col0 FROM tab2 AS cor0
----
1664
1697
174

onlyif mysql # use DIV operator for integer division
query I rowsort label-5338
SELECT col1 DIV - col1 + 29 FROM tab0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-5338
SELECT col1 / - col1 + 29 FROM tab0
----
28
28
28

query I rowsort
SELECT DISTINCT + 78 AS col2 FROM tab2, tab1 AS cor0
----
78

query I rowsort
SELECT ALL - col1 * - col2 - - 9 * - 42 FROM tab2 AS cor0
----
1156
268
459

query I rowsort
SELECT ( - col1 ) * - col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + 76 * - col0 AS col0 FROM tab2 AS cor0
----
-532
-5928
-6004

query I rowsort
SELECT DISTINCT ( col1 ) + 74 * 88 + col1 * cor0.col2 * + col1 FROM tab0 AS cor0
----
16018
250666
685645

query I rowsort
SELECT ALL col2 + + cor0.col0 * col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + col2 + col0 * col0 AS col1 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT 69 * col0 + 79 FROM tab2 AS cor0
----
5461
5530
562

query I rowsort
SELECT ALL ( col0 ) * + cor0.col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5348
SELECT DISTINCT + - col1 DIV col0 + + cor0.col2 FROM tab1 AS cor0
----
46
57
96

skipif mysql # not compatible
query I rowsort label-5348
SELECT DISTINCT + - col1 / col0 + + cor0.col2 FROM tab1 AS cor0
----
46
57
96

query I rowsort
SELECT ALL + 73 + - col2 FROM tab1 AS cor0
----
-23
16
19

query I rowsort
SELECT + col1 + col2 * 82 * col2 FROM tab0 AS cor0
----
179
551459
89384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + cor0.col0 col1 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - 86 * col1 * ( col1 ) + - col1 * - ( col1 ) * cor0.col2 FROM tab1 AS cor0
----
-21632
-2900
1690

query I rowsort
SELECT col2 * col2 * - tab0.col1 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT 80 AS col1 FROM tab2 cor0
----
80
80
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5355
SELECT ALL col2 + + col2 + - CAST( - col0 + col0 AS SIGNED ) FROM tab2
----
52
54
76

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL col2 + + col2 + - CAST ( - col0 + col0 AS INTEGER ) FROM tab2
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - cor0.col0 ) * + ( col2 ) col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT tab2.col2 * tab2.col2 AS col0 FROM tab2, tab1, tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + col0 * - col0 AS col2 FROM tab0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-5359
SELECT col1 * col2 + - col1 DIV col1 AS col0 FROM tab2
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-5359
SELECT col1 * col2 + - col1 / col1 AS col0 FROM tab2
----
1533
645
836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + col1 * col1 col0 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT - col1 + - col2 * + col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT - - col1 * + col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - col1 * cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT - 27 * col2 + + col2 AS col2 FROM tab0 AS cor0
----
-2132
-26
-858

query I rowsort
SELECT DISTINCT col2 * col0 * col0 + col2 * + col2 FROM tab2 AS cor0
----
158860
2052
238602

query I rowsort
SELECT ALL + - 42 FROM tab0 cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT - col1 + col2 * cor0.col0 * + col0 AS col1 FROM tab1 AS cor0
----
233462
460
614387

query I rowsort
SELECT 61 * + col1 + - col0 FROM tab2 AS cor0
----
1884
3521
958

query I rowsort
SELECT ALL - ( - col1 ) - col1 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + 62 * + cor0.col2 - cor0.col1 * - col1 * + col2 AS col2 FROM tab1 AS cor0
----
22176
39852
9234

query I rowsort
SELECT DISTINCT + - cor0.col1 * + cor0.col0 + col0 - col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col2 + - col1 - + col0 AS col1 FROM tab0 cor0
----
-133
-143
-262

onlyif mysql # use DIV operator for integer division
query I rowsort label-5373
SELECT + col0 DIV col2 + col1 * col0 * col2 FROM tab0 AS cor0
----
3430
664119
68112

skipif mysql # not compatible
query I rowsort label-5373
SELECT + col0 / col2 + col1 * col0 * col2 FROM tab0 AS cor0
----
3430
664119
68112

query I rowsort
SELECT ALL - col1 + col0 * col0 * + cor0.col1 - col2 FROM tab0 AS cor0
----
118727
49417
720638

query I rowsort
SELECT + col0 * col1 + - col2 * col2 * + col2 FROM tab2 AS cor0
----
-12974
-19466
-53529

query I rowsort
SELECT DISTINCT + - col0 * col2 + col1 AS col2 FROM tab0 cor0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5377
SELECT ALL - cor0.col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL - cor0.col0 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col0 * + cor0.col0 FROM tab2 cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5379
SELECT col2 DIV + tab1.col2 + - col2 + col0 FROM tab1
----
-15
-50
8

skipif mysql # not compatible
query I rowsort label-5379
SELECT col2 / + tab1.col2 + - col2 + col0 FROM tab1
----
-15
-50
8

query I rowsort
SELECT DISTINCT + tab2.col1 + col1 * + col1 * col2 + - col0 * col2 FROM tab2
----
25789
7997
88537

query I rowsort
SELECT - col2 FROM tab2 WHERE col2 + col0 IN ( + col0 + + col0 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + tab0.col0 * - col0 col2 FROM tab0
----
13824
42875
704969

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + col2 + col0 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 * - col0 col2 FROM tab0
----
-13824
-42875
-704969

query I rowsort
SELECT ALL col1 + + col2 - col1 * - tab1.col0 FROM tab1
----
1149
158
707

query III rowsort
SELECT * FROM tab2 WHERE + col1 * col2 + col1 * tab2.col0 BETWEEN NULL AND col1 * col0 * col2
----

query I rowsort
SELECT col0 + - col0 * - col0 * - col1 FROM tab2
----
-106018
-1512
-358878

query I rowsort
SELECT + col0 FROM tab2 WHERE ( NULL ) < ( - col1 + + col0 - col0 )
----

query I rowsort
SELECT col0 * - col0 + col1 * tab0.col2 AS col2 FROM tab0
----
-1128
-459
2262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + tab2.col0 col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT col1 - + col1 * + col2 AS col2 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT col2 * - col1 + col2 FROM tab2 WHERE - col1 BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5393
SELECT ALL col2 * - col1 + + col0 DIV - col0 AS col1 FROM tab1
----
-1249
-1405
-571

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL col2 * - col1 + + col0 / - col0 AS col1 FROM tab1
----
-1249
-1405
-571

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 ) NOT IN ( - col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( + col1 ) <> - col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5396
SELECT ALL - tab2.col0 DIV col0 + - col0 AS col1 FROM tab2
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL - tab2.col0 / col0 + - col0 AS col1 FROM tab2
----
-79
-8
-80

query I rowsort
SELECT DISTINCT col1 + col2 * - col0 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT col1 + + col1 - + col2 * + col1 FROM tab1 cor0
----
-1222
-1352
-550

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT ( NULL ) IN ( col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( col0 + + col1 )
----

query I rowsort
SELECT - tab0.col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 * + col2 * + col0 + col2 / - col1 AND NULL
----

query I rowsort
SELECT tab1.col1 * col2 + col1 AS col2 FROM tab1
----
1261
1430
580

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - col2 * col2 - col2 AND NULL
----

query I rowsort
SELECT ALL col1 - col2 * col0 AS col2 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT ALL 6 + + cor0.col1 * 26 * + 38 AS col0 FROM tab1 cor0
----
12850
25694
9886

onlyif mysql # use DIV operator for integer division
query I rowsort label-5406
SELECT DISTINCT - col0 + + col1 DIV ( - 41 ) AS col1 FROM tab2 AS cor0
----
-7
-79

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT - col0 + + col1 / ( - 41 ) AS col1 FROM tab2 AS cor0
----
-7
-79

query I rowsort
SELECT DISTINCT + - 74 + col2 FROM tab2 AS cor0
----
-36
-47
-48

query I rowsort
SELECT DISTINCT ( col1 ) * - ( cor0.col2 ) * + col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + 90 AS col2 FROM tab0
----
90
90
90

query I rowsort
SELECT ALL - 77 + col1 FROM tab2 AS cor0
----
-18
-46
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col0 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( col1 ) * 99 - col2 FROM tab1 AS cor0
----
1191
2520
933

query I rowsort
SELECT + + 0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL cor0.col0 + col0 * - col2 * - col0 AS col1 FROM tab0 AS cor0
----
1260
19032
649611

onlyif mysql # use DIV operator for integer division
query I rowsort label-5415
SELECT col1 DIV + tab1.col0 + + 8 FROM tab1
----
16
8
8

skipif mysql # not compatible
query I rowsort label-5415
SELECT col1 / + tab1.col0 + + 8 FROM tab1
----
16
8
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5416
SELECT ALL - col0 DIV - cor0.col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL - col0 / - cor0.col0 AS col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5417
SELECT ALL - - CAST( NULL AS SIGNED ) * ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL - - CAST ( NULL AS INTEGER ) * ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 36 * 84 AS col2 FROM tab0 cor0
----
3024
3024
3024

query I rowsort
SELECT col1 * - ( - cor0.col2 ) AS col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5420
SELECT + col0 * ( col0 ) * tab2.col2 + + 75 * + col2 - col0 DIV 56 FROM tab2
----
160133
240007
3348

skipif mysql # not compatible
query I rowsort label-5420
SELECT + col0 * ( col0 ) * tab2.col2 + + 75 * + col2 - col0 / 56 FROM tab2
----
160133
240007
3348

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab2 cor0 CROSS JOIN tab0, tab2 cor1
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * ( 29 ) col1 FROM tab0
----
2378
29
957

query I rowsort
SELECT ( 44 ) FROM tab2, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # use DIV operator for integer division
query I rowsort label-5424
SELECT DISTINCT 33 DIV 11 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT 33 / 11 FROM tab0
----
3

query I rowsort
SELECT 74 + + col0 AS col2 FROM tab0
----
109
163
98

query I rowsort
SELECT ( col0 * col2 ) FROM tab1
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5427
SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 col2 FROM tab2, tab1 AS cor0
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 * col2 col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT - ( + col1 ) + col1 * - cor0.col1 AS col0 FROM tab0 cor0
----
-7482
-8372
-9506

query I rowsort
SELECT DISTINCT 14 AS col1 FROM tab1, tab2 AS cor0
----
14

query I rowsort
SELECT DISTINCT 15 * - col0 + col2 FROM tab0
----
-1253
-327
-524

query I rowsort
SELECT DISTINCT + - 67 FROM tab0 cor0
----
-67

query I rowsort
SELECT - 37 + col0 + col2 AS col1 FROM tab1 AS cor0
----
139
20
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - 20 col1 FROM tab1 AS cor0
----
-100
-23
-84

query I rowsort
SELECT DISTINCT - + ( - cor0.col2 ) * 69 * + col2 FROM tab0 AS cor0
----
463956
69
75141

onlyif mysql # use DIV operator for integer division
query I rowsort label-5437
SELECT ALL - 14 DIV col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL - 14 / col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - + col2 * + col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT 39 * + col1 FROM tab2 AS cor0
----
1209
2301
663

query I rowsort
SELECT col2 + + col2 * - ( 64 ) * - col1 AS col2 FROM tab2 AS cor0
----
41382
53595
98202

query I rowsort
SELECT + ( - 27 ) * tab0.col2 + + cor0.col2 * + 79 + cor0.col0 * 37 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 20da2a7f7f0afcfc7261ea1ec7f0d27c

onlyif mysql # use DIV operator for integer division
query I rowsort label-5442
SELECT col0 DIV 68 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5442
SELECT col0 / 68 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT + col2 * col2 + 18 FROM tab1
----
2934
3267
9234

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5444
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2 FROM tab2, tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * + col0 + 33 FROM tab2
----
-16
-6051
-6208

query I rowsort
SELECT - col1 * ( - col2 ) FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL + col0 + 8 AS col0 FROM tab1
----
11
72
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 + - 0 * - ( col2 + col0 * 37 ) col0 FROM tab2
----
17
31
59

query I rowsort
SELECT - cor0.col1 - - col0 * 15 FROM tab0 AS cor0
----
1244
274
428

query I rowsort
SELECT DISTINCT - - col1 + - col2 * col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT col0 - 67 FROM tab0 AS cor0
----
-32
-43
22

query I rowsort
SELECT - cor1.col2 * - cor1.col2 + cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f1f8c7bc5109340beeca55bbd997df0f

query I rowsort
SELECT ALL + cor0.col1 * + col0 + - col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL + col1 + 96 FROM tab2 AS cor0
----
113
127
155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 48 col0 FROM tab1 AS cor0
----
102
105
144

query I rowsort
SELECT col2 * - col2 - + 22 AS col1 FROM tab0 AS cor0
----
-1111
-23
-6746

query I rowsort
SELECT DISTINCT 9 * - col1 FROM tab1 AS cor0
----
-117
-234
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 + - 60 + col1 col0 FROM tab1 AS cor0
----
-22
-25
-9

query I rowsort
SELECT + 19 + col1 + + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
7501
8391
9525

onlyif mysql # use DIV operator for integer division
query I rowsort label-5460
SELECT ALL col0 * col2 DIV col1 FROM tab2 AS cor0
----
176
34
6

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL col0 * col2 / col1 FROM tab2 AS cor0
----
176
34
6

query I rowsort
SELECT col2 + - ( - col0 ) + ( - ( col0 ) ) AS col1 FROM tab1 cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 * col0 col1 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT 16 + - col1 + col0 AS col1 FROM tab2 AS cor0
----
-8
35
78

query I rowsort
SELECT + 63 + - col2 AS col1 FROM tab1 AS cor0
----
-33
6
9

query I rowsort
SELECT ALL - ( col0 ) * col1 + cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT + cor0.col2 * - col2 + col1 * - col0 AS col2 FROM tab1 cor0
----
-10256
-2994
-3889

onlyif mysql # use DIV operator for integer division
query I rowsort label-5467
SELECT - col0 DIV + ( ( + col2 ) + tab1.col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5467
SELECT - col0 / + ( ( + col2 ) + tab1.col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT + ( cor0.col2 ) * + col2 * col0 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT - - col1 + col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT cor0.col2 * - 34 FROM tab1 AS cor0
----
-1836
-1938
-3264

query I rowsort
SELECT ALL + col1 * + 92 * col2 AS col1 FROM tab2
----
141128
59432
77004

query I rowsort
SELECT DISTINCT ( + 52 ) AS col0 FROM tab1, tab0 AS cor0
----
52

query I rowsort
SELECT + 25 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT DISTINCT + - col1 + 36 FROM tab2 AS cor0
----
-23
19
5

query I rowsort
SELECT ALL - 81 + 77 FROM tab2
----
-4
-4
-4

query I rowsort
SELECT + col0 + col1 * - col2 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + tab0.col1 + + 61 + - col2 AS col2 FROM tab0
----
114
157
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5478
SELECT DISTINCT + CAST( - ( col1 ) * - col1 AS SIGNED ) + col0 + col1 FROM tab1
----
174
262
705

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT + CAST ( - ( col1 ) * - col1 AS INTEGER ) + col0 + col1 FROM tab1
----
174
262
705

query I rowsort
SELECT 94 * - col2 * + col0 FROM tab2
----
-17766
-190632
-282188

query I rowsort
SELECT 48 * 87 AS col1 FROM tab1, tab1 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb71fa6fe5daeba3e273a966a472f0bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-5481
SELECT DISTINCT - col0 + - 23 DIV col0 FROM tab1
----
-10
-64
-80

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT - col0 + - 23 / col0 FROM tab1
----
-10
-64
-80

query I rowsort
SELECT + 9 + col2 AS col0 FROM tab2
----
35
36
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 * ( col0 ) col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-5484
SELECT ALL col1 + col1 DIV - CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL col1 + col1 / - CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
0
84
90

query I rowsort
SELECT - 93 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-2418
-2511
-3534

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5486
SELECT DISTINCT col0 * col1 - + CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT col0 * col1 - + CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 + + cor0.col2 col2 FROM tab2 AS cor0
----
51
52
63

query I rowsort
SELECT col2 * - col1 + + 2 FROM tab0 AS cor0
----
-2836
-7460
-95

query I rowsort
SELECT DISTINCT col2 + + col0 * - 71 AS col0 FROM tab2 AS cor0
----
-470
-5512
-5571

query I rowsort
SELECT + ( + col2 ) * + ( - col2 ) + col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT ALL - 50 + - col1 AS col1 FROM tab0 AS cor0
----
-136
-141
-147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 2 + + col0 col0 FROM tab0 AS cor0
----
26
37
91

query I rowsort
SELECT DISTINCT + - 39 AS col2 FROM tab2 cor0
----
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-5494
SELECT ALL + 88 DIV tab1.col1 FROM tab1
----
3
6
8

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL + 88 / tab1.col1 FROM tab1
----
3
6
8

query I rowsort
SELECT 27 - col2 * + 13 AS col0 FROM tab1 AS cor0
----
-1221
-675
-714

query I rowsort
SELECT ( + col2 ) - col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + - col2 * col0 * + col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT col0 * + 53 + cor0.col0 + col0 FROM tab1 AS cor0
----
165
3520
4400

onlyif mysql # use DIV operator for integer division
query I rowsort label-5499
SELECT + col0 DIV - 9 FROM tab2 AS cor0
----
-8
-8
0

skipif mysql # not compatible
query I rowsort label-5499
SELECT + col0 / - 9 FROM tab2 AS cor0
----
-8
-8
0

query I rowsort
SELECT - + col0 + + 42 FROM tab1 cor0
----
-22
-38
39

query I rowsort
SELECT ALL col1 * - 73 FROM tab0 AS cor0
----
-6278
-6643
-7081

query I rowsort
SELECT - cor0.col1 + + 17 FROM tab0 cor0
----
-69
-74
-80

query I rowsort
SELECT + + col1 * 96 AS col0 FROM tab2 AS cor0
----
1632
2976
5664

query I rowsort
SELECT DISTINCT col1 * - 74 AS col2 FROM tab1 AS cor0
----
-1924
-740
-962

query I rowsort
SELECT 44 * 52 FROM tab0 AS cor0
----
2288
2288
2288

query I rowsort
SELECT + 61 AS col2 FROM tab1 cor0
----
61
61
61

query I rowsort
SELECT + - col1 * col2 AS col2 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5508
SELECT - 91 + col0 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT - 91 + col0 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * 76 FROM tab0 AS cor0
----
6536
6916
7372

query I rowsort
SELECT DISTINCT + col2 + col0 * + col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5511
SELECT DISTINCT + - col1 + + CAST( NULL AS DECIMAL ) * + col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT + - col1 + + CAST ( NULL AS REAL ) * + col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * 82 AS col1 FROM tab0 AS cor0
----
2706
6724
82

query I rowsort
SELECT ALL - col1 + 73 * - 9 FROM tab0 AS cor0
----
-743
-748
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-5514
SELECT ALL + - col1 DIV col2 - - col0 AS col1 FROM tab0 AS cor0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL + - col1 / col2 - - col0 AS col1 FROM tab0 AS cor0
----
-62
22
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5515
SELECT + - col1 DIV + 65 + 65 FROM tab1 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-5515
SELECT + - col1 / + 65 + 65 FROM tab1 AS cor0
----
65
65
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5516
SELECT ALL col1 + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL col1 + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 + - col1 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5518
SELECT DISTINCT + col2 * CAST( col2 AS SIGNED ) + col0 * 80 col2 FROM tab1 AS cor0
----
15616
3156
8369

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT + col2 * CAST ( col2 AS INTEGER ) + col0 * 80 col2 FROM tab1 AS cor0
----
15616
3156
8369

skipif mysql # not compatible
query I rowsort
SELECT ALL + cor0.col0 * CAST ( 0 AS REAL ) - - cor0.col2 AS col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5520
SELECT DISTINCT - ( col1 ) * col2 + - col2 * - col0 + + cor0.col2 DIV 35 AS col1 FROM tab2 cor0
----
-648
2357
494

skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT - ( col1 ) * col2 + - col2 * - col0 + + cor0.col2 / 35 AS col1 FROM tab2 cor0
----
-648
2357
494

query I rowsort
SELECT DISTINCT col0 - + col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL + col0 * cor0.col1 * - col0 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL ( col1 ) + - col2 + + col0 FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT ALL - 51 + col2 AS col2 FROM tab1 AS cor0
----
3
45
6

query I rowsort
SELECT DISTINCT - - 38 - + col1 AS col0 FROM tab2 cor0
----
-21
21
7

query I rowsort
SELECT ALL + 46 * col1 + - col0 FROM tab0 AS cor0
----
3932
4097
4427

query I rowsort
SELECT DISTINCT + 26 FROM tab0, tab1 AS cor0
----
26

query I rowsort
SELECT - - col0 + cor0.col2 * ( col1 ) FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT 62 * cor0.col1 + 85 - + col0 AS col2 FROM tab0 AS cor0
----
5393
5638
6064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 + col1 col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - - col2 + - col1 * + col2 * - col0 AS col2 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT + - cor0.col0 * - 16 * col0 FROM tab0 AS cor0
----
126736
19600
9216

query I rowsort
SELECT + col2 * - col0 + col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 + col0 * col0 col1 FROM tab0 AS cor0
----
1279
630
7975

query I rowsort
SELECT ALL 60 + col1 FROM tab2
----
119
77
91

query I rowsort
SELECT + col1 + col2 + + col1 * col0 AS col1 FROM tab0
----
2183
3493
8272

onlyif mysql # use DIV operator for integer division
query I rowsort label-5537
SELECT DISTINCT + col2 DIV + 46 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1250
1405
571

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT + col2 / + 46 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1250
1405
571

query I rowsort
SELECT - col0 * + 66 FROM tab0 AS cor0
----
-1584
-2310
-5874

query I rowsort
SELECT - 78 + + col1 * col0 AS col0 FROM tab2
----
1265
139
4524

query I rowsort
SELECT DISTINCT + col2 * 83 * + col0 FROM tab1 AS cor0
----
13446
302784
637440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL ( - col2 ) + 56 + - 66 AS col1 FROM tab1
----
-106
-64
-67

query I rowsort
SELECT + col2 * - col0 + col2 AS col0 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT col0 + + 6 AS col2 FROM tab1
----
70
86
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5545
SELECT ALL - col2 + - CAST( + 77 AS SIGNED ) FROM tab1 AS cor0
----
-131
-134
-173

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL - col2 + - CAST ( + 77 AS INTEGER ) FROM tab1 AS cor0
----
-131
-134
-173

query I rowsort
SELECT col0 + ( + cor0.col2 * col2 ) FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT - col2 * 30 AS col2 FROM tab0 AS cor0
----
-2460
-30
-990

query I rowsort
SELECT ALL + cor0.col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + 56 * - 8 AS col1 FROM tab1
----
-448
-448
-448

query I rowsort
SELECT 73 * cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 80f1b3b22d8186ddc93cf5245cbd6b38

query I rowsort
SELECT col1 + + tab0.col1 * - col2 FROM tab0
----
-2752
-7371
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5552
SELECT + CAST( - col2 AS SIGNED ) * + col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-5552
SELECT + CAST ( - col2 AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 51 AS col1 FROM tab1 cor0
----
51
51
51

query I rowsort
SELECT DISTINCT - 11 AS col1 FROM tab2, tab1 AS cor0
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 36 + cor0.col0 * col2 col0 FROM tab2 AS cor0
----
153
1992
2966

query I rowsort
SELECT DISTINCT - 41 * col0 FROM tab1 AS cor0
----
-123
-2624
-3280

onlyif mysql # use DIV operator for integer division
query I rowsort label-5557
SELECT - cor0.col2 * col2 - + col2 DIV - 23 FROM tab2 AS cor0
----
-1443
-675
-728

skipif mysql # not compatible
query I rowsort label-5557
SELECT - cor0.col2 * col2 - + col2 / - 23 FROM tab2 AS cor0
----
-1443
-675
-728

query I rowsort
SELECT ALL + + col1 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 42 + col0 AS col0 FROM tab1 AS cor0
----
106
122
45

query I rowsort
SELECT col2 * col1 + - col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5561
SELECT - tab0.col1 DIV + col0 AS col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5561
SELECT - tab0.col1 / + col0 AS col0 FROM tab0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5562
SELECT + - col0 * col0 + - col1 - col0 DIV cor0.col1 FROM tab1 AS cor0
----
-35
-4112
-6419

skipif mysql # not compatible
query I rowsort label-5562
SELECT + - col0 * col0 + - col1 - col0 / cor0.col1 FROM tab1 AS cor0
----
-35
-4112
-6419

query I rowsort
SELECT col2 - + col2 AS col0 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 + cor0.col2 col0 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5565
SELECT cor0.col2 * col1 * + CAST( NULL AS SIGNED ) + - ( - col2 ) * ( col2 ) * - cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT cor0.col2 * col1 * + CAST ( NULL AS INTEGER ) + - ( - col2 ) * ( col2 ) * - cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5566
SELECT + col2 + col2 * CAST( + col2 AS SIGNED ) - col0 AS col1 FROM tab1 cor0
----
2967
3242
9232

skipif mysql # not compatible
query I rowsort label-5566
SELECT + col2 + col2 * CAST ( + col2 AS INTEGER ) - col0 AS col1 FROM tab1 cor0
----
2967
3242
9232

query I rowsort
SELECT DISTINCT + ( col0 ) + cor0.col0 * + 74 FROM tab0 cor0
----
1800
2625
6675

query I rowsort
SELECT + 56 + 23 AS col2 FROM tab0 AS cor0
----
79
79
79

query I rowsort
SELECT ALL - tab2.col2 * 86 AS col2 FROM tab2, tab0 cor0, tab1 cor1
----
27 values hashing to 372dc6a667fcb5ef2f17490ad1e5bf19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5570
SELECT - + CAST( NULL AS SIGNED ) * 47 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5570
SELECT - + CAST ( NULL AS INTEGER ) * 47 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 + 69 * - 70 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to c4af303ba07d5857b219b2a5910bf4a4

query I rowsort
SELECT + 48 + tab2.col1 * - col0 * ( col0 ) FROM tab2
----
-106049
-1471
-358908

query I rowsort
SELECT col2 + cor0.col0 * + 24 FROM tab0 AS cor0
----
2218
609
841

query I rowsort
SELECT + 75 * col0 + + col0 FROM tab1 AS cor0
----
228
4864
6080

onlyif mysql # use DIV operator for integer division
query I rowsort label-5575
SELECT - - 61 DIV - cor0.col2 + + 2 FROM tab0 AS cor0
----
-59
1
2

skipif mysql # not compatible
query I rowsort label-5575
SELECT - - 61 / - cor0.col2 + + 2 FROM tab0 AS cor0
----
-59
1
2

query I rowsort
SELECT DISTINCT - ( + 62 ) FROM tab2
----
-62

query I rowsort
SELECT - col0 * - 89 AS col1 FROM tab0
----
2136
3115
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-5578
SELECT - - col0 DIV + 43 col0 FROM tab1 cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5578
SELECT - - col0 / + 43 col0 FROM tab1 cor0
----
0
1
1

query I rowsort
SELECT - col1 + col2 * + 6 FROM tab1 AS cor0
----
298
332
563

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5580
SELECT col0 * - CAST( 86 AS SIGNED ) * + col0 AS col0 FROM tab2 AS cor0
----
-4214
-523224
-536726

skipif mysql # not compatible
query I rowsort label-5580
SELECT col0 * - CAST ( 86 AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0
----
-4214
-523224
-536726

query I rowsort
SELECT DISTINCT - + col0 + - 4 * - col2 AS col2 FROM tab2 cor0
----
101
26
73

query I rowsort
SELECT DISTINCT + col2 * 88 + 15 FROM tab2 AS cor0
----
2303
2391
3359

query I rowsort
SELECT cor0.col1 * 49 FROM tab1 cor0
----
1274
490
637

query I rowsort
SELECT ALL 82 * + col1 FROM tab1
----
1066
2132
820

query I rowsort
SELECT + col1 * + col1 + - ( + tab0.col0 ) FROM tab0
----
7372
8192
9374

query I rowsort
SELECT + 66 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to adaea38eae032c1639715f21831dd376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL + col0 + - 24 * 81 AS col2 FROM tab1
----
-1864
-1880
-1941

query I rowsort
SELECT - col1 * + col1 * - ( col2 ) FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT + tab0.col0 * ( col2 ) FROM tab0
----
35
7298
792

query I rowsort
SELECT - cor0.col0 * - col2 + - col1 FROM tab1 cor0
----
136
3638
7667

query I rowsort
SELECT ALL 13 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT + col0 * 83 FROM tab0
----
1992
2905
7387

query I rowsort
SELECT - col1 * col0 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - 95 * tab2.col0 FROM tab2
----
-665
-7410
-7505

query I rowsort
SELECT + - ( col1 ) + + cor0.col1 * + 73 AS col1 FROM tab2 AS cor0
----
1224
2232
4248

query I rowsort
SELECT + col0 * + 93 FROM tab2 AS cor0
----
651
7254
7347

query I rowsort
SELECT - ( - 9 ) * col0 FROM tab1 cor0
----
27
576
720

query I rowsort
SELECT + - col1 + - ( - col1 * 83 ) AS col1 FROM tab1 AS cor0
----
1066
2132
820

query I rowsort
SELECT - col2 + - 85 - col2 * 1 * + col1 FROM tab1 AS cor0
----
-1429
-1543
-712

query I rowsort
SELECT cor0.col1 + 43 FROM tab2 AS cor0
----
102
60
74

query I rowsort
SELECT + col1 + + 98 FROM tab1 AS cor0
----
108
111
124

query I rowsort
SELECT + cor0.col0 + + col0 * 71 AS col2 FROM tab0 AS cor0
----
1728
2520
6408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 94 col2 FROM tab2 cor0
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col0 col2 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT ALL + + cor0.col1 + col1 AS col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + cor1.col2 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5609
SELECT DISTINCT col1 + - col2 * col1 DIV col2 col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT col1 + - col2 * col1 / col2 col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * col1 col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + col0 + + col0 * - ( col0 ) + col1 FROM tab0
----
-1093
-466
-7741

query I rowsort
SELECT - 2 * - col0 AS col1 FROM tab2
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-5613
SELECT DISTINCT + col1 DIV - col0 + col2 FROM tab1
----
46
57
96

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT + col1 / - col0 + col2 FROM tab1
----
46
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 + - col1 * + 20 + - col0 col1 FROM tab1
----
-349
-425
-608

query I rowsort
SELECT ALL + 21 + + col1 * + 98 FROM tab2
----
1687
3059
5803

query I rowsort
SELECT + col0 * col0 + col0 + 98 FROM tab0
----
1358
698
8108

query I rowsort
SELECT - cor0.col0 + - col2 + + col1 FROM tab0 AS cor0
----
-80
29
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5619
SELECT ALL cor0.col1 * CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL cor0.col1 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + col0 + - ( + col0 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5621
SELECT ALL - col0 * + ( - ( col0 ) ) + - CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1128
490
7830

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL - col0 * + ( - ( col0 ) ) + - CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1128
490
7830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5622
SELECT + col1 * CAST( NULL AS SIGNED ) + + col0 * col2 + + 3 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5622
SELECT + col1 * CAST ( NULL AS INTEGER ) + + col0 * col2 + + 3 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + col2 * + cor0.col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT col2 + - 18 FROM tab2 AS cor0
----
20
8
9

query I rowsort
SELECT ALL col2 + - ( col0 ) FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + col1 * - 82 + - col1 FROM tab0 AS cor0
----
-7138
-7553
-8051

query I rowsort
SELECT + - col0 * cor0.col0 + 93 FROM tab0 AS cor0
----
-1132
-483
-7828

query I rowsort
SELECT ALL + col0 * ( 69 ) FROM tab0 AS cor0
----
1656
2415
6141

query I rowsort
SELECT - col1 * col1 + col0 * col1 - col2 AS col0 FROM tab0
----
-264
-5365
-6015

query I rowsort
SELECT DISTINCT + col0 + col1 * col2 + col1 FROM tab2
----
1671
742
875

onlyif mysql # use DIV operator for integer division
query I rowsort label-5631
SELECT - col2 + col0 * col0 - - col1 DIV col0 AS col0 FROM tab1
----
-37
4039
6304

skipif mysql # not compatible
query I rowsort label-5631
SELECT - col2 + col0 * col0 - - col1 / col0 AS col0 FROM tab1
----
-37
4039
6304

onlyif mysql # use DIV operator for integer division
query I rowsort label-5632
SELECT ALL col1 * col2 DIV col0 + col0 FROM tab2
----
126
87
97

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL col1 * col2 / col0 + col0 FROM tab2
----
126
87
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5633
SELECT col2 DIV col2 + col2 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-5633
SELECT col2 / col2 + col2 FROM tab1
----
55
58
97

query I rowsort
SELECT ALL - col0 + col0 + - col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT + tab0.col2 * + tab0.col1 * + col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT col1 * - col2 * - col0 AS col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT + col0 / - col2 + col0 * - tab1.col1 AS col1 FROM tab1 WHERE NOT NULL IN ( + col1 * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab2 WHERE NOT - col2 < - col2
----
17
31
59

query I rowsort
SELECT ALL col2 * col0 + + col2 AS col2 FROM tab0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 + - col2 * + col2 col0 FROM tab1
----
-2913
-3185
-9136

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + col1 * col2 )
----

query I rowsort
SELECT DISTINCT col1 * - col2 * + col1 + - col0 AS col2 FROM tab0
----
-244092
-679131
-9444

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL col0 * - tab2.col0 + + col1 AS col1 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT + col2 * + tab1.col2 FROM tab1 WHERE - col2 * col1 NOT BETWEEN NULL AND col2 + - col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5646
SELECT + - cor0.col1 - col2 DIV ( col2 ) AS col2 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-5646
SELECT + - cor0.col1 - col2 / ( col2 ) AS col2 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT + ( + col0 ) + 25 * col1 AS col2 FROM tab0 AS cor0
----
2174
2364
2460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 * + cor0.col1 * col2 + col0 col0 FROM tab2 AS cor0
----
-21885
-28451
-52078

query I rowsort
SELECT DISTINCT - - ( col0 ) + - 65 * col1 FROM tab2 AS cor0
----
-1026
-2008
-3757

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col1 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT ALL col2 * - col1 + - tab0.col0 FROM tab0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-5652
SELECT - col1 DIV col0 + col0 AS col2 FROM tab1
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-5652
SELECT - col1 / col0 + col0 AS col2 FROM tab1
----
-5
64
80

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * + col2 >= ( NULL )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5654
SELECT DISTINCT col0 + - col2 * + CAST( col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
-1365
-598
-722

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT col0 + - col2 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
-1365
-598
-722

query I rowsort
SELECT - + cor0.col2 - - col0 * col1 AS col0 FROM tab1 cor0
----
24
583
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT tab2.col0 * col0 + col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT + 82 * - cor0.col2 FROM tab1 AS cor0
----
-4428
-4674
-7872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5659
SELECT - - col0 * + col1 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5659
SELECT - - col0 * + col1 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5660
SELECT ALL + col1 DIV - col0 + + 73 FROM tab0 AS cor0
----
70
71
72

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL + col1 / - col0 + + 73 FROM tab0 AS cor0
----
70
71
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5661
SELECT ALL - cor0.col0 * - col1 * 68 - ( + col0 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL - cor0.col0 * - col1 * 68 - ( + col0 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 90 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT - 86 + - col1 FROM tab1 AS cor0
----
-112
-96
-99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5664
SELECT - col2 * + col2 * ( 6 ) + + col1 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5664
SELECT - col2 * + col2 * ( 6 ) + + col1 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5665
SELECT DISTINCT 43 * + col1 + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1144
440
572

skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT 43 * + col1 + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1144
440
572

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + - col2 * cor0.col2 * - col1 col1 FROM tab1 AS cor0
----
119888
32554
75819

onlyif mysql # use DIV operator for integer division
query I rowsort label-5668
SELECT ALL - 82 DIV + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-11

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL - 82 / + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-11

onlyif mysql # use DIV operator for integer division
query I rowsort label-5669
SELECT ALL + 10 * col0 + + 24 DIV - col2 AS col2 FROM tab0 AS cor0
----
240
326
890

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL + 10 * col0 + + 24 / - col2 AS col2 FROM tab0 AS cor0
----
240
326
890

query I rowsort
SELECT ALL - - col2 + 37 AS col0 FROM tab1 AS cor0
----
133
91
94

query I rowsort
SELECT + 69 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT 74 + col1 AS col2 FROM tab2
----
105
133
91

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 AS REAL ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5674
SELECT DISTINCT - col2 + - ( + col2 ) * CAST( - col2 AS SIGNED ) FROM tab2 cor0
----
1406
650
702

skipif mysql # not compatible
query I rowsort label-5674
SELECT DISTINCT - col2 + - ( + col2 ) * CAST ( - col2 AS INTEGER ) FROM tab2 cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT - - 4 AS col1 FROM tab1 cor0
----
4

query I rowsort
SELECT + + ( - 8 ) FROM tab2 AS cor0
----
-8
-8
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5677
SELECT ALL - ( + 49 ) + col0 DIV col0 + - col2 * col2 FROM tab1 AS cor0
----
-2964
-3297
-9264

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL - ( + 49 ) + col0 / col0 + - col2 * col2 FROM tab1 AS cor0
----
-2964
-3297
-9264

query I rowsort
SELECT + 4 * cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to c869b379fe98cdee67da4c5f4278bf85

query I rowsort
SELECT ALL - 48 * 81 * + col0 FROM tab1
----
-11664
-248832
-311040

query I rowsort
SELECT + 80 + col1 FROM tab1
----
106
90
93

query I rowsort
SELECT + 49 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to e587c122dea39a2488ff88b884cea462

query I rowsort
SELECT cor0.col1 * 79 FROM tab0 cor0
----
6794
7189
7663

query I rowsort
SELECT ALL + ( + 45 ) * col1 + col0 FROM tab1 AS cor0
----
1173
514
665

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 col1 FROM tab0, tab1, tab0 AS cor0, tab2
----
-62

query I rowsort
SELECT ALL + 18 + - col1 AS col1 FROM tab1 AS cor0
----
-8
5
8

query I rowsort
SELECT + - 71 * col0 AS col0 FROM tab1 AS cor0
----
-213
-4544
-5680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 * - tab1.col0 * - tab1.col0 col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT col0 + + col1 - col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col1 * col0 + - cor0.col0 + col1 FROM tab2 AS cor0
----
1281
241
4583

query I rowsort
SELECT + - cor0.col1 * cor0.col2 + col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT col1 * col2 - - cor0.col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - - ( col2 ) + - col1 * + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 + - col2 AS col1 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT + 64 + cor0.col0 * + col2 AS col2 FROM tab2 AS cor0
----
2092
253
3066

query I rowsort
SELECT ALL + 22 * - cor0.col0 + - col1 FROM tab0 AS cor0
----
-2049
-614
-867

query I rowsort
SELECT ALL col0 * 37 FROM tab1 AS cor0
----
111
2368
2960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5697
SELECT + CAST( cor0.col2 AS SIGNED ) FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5697
SELECT + CAST ( cor0.col2 AS INTEGER ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + ( + tab2.col0 ) * + col1 + + col2 AS col1 FROM tab2
----
1381
244
4628

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 * + col1 * - cor0.col2 - col2 )
----

query I rowsort
SELECT col1 + col1 + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 * col0 = NULL
----

query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 + col1 + - col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5702
SELECT DISTINCT - col1 DIV - col0 - col1 AS col2 FROM tab0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT - col1 / - col0 - col1 AS col2 FROM tab0
----
-83
-90
-95

query I rowsort
SELECT ALL tab0.col2 - col0 FROM tab0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 col0 FROM tab2
----
104
117
34

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + col0 * + col2 )
----

query I rowsort
SELECT DISTINCT + col2 * + col0 * - col0 + - col0 FROM tab0
----
-1260
-19032
-649611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + tab1.col2 col2 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL + col2 * col0 + col0 AS col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT col0 * col1 + - col0 * - cor0.col2 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT tab1.col2 * - tab1.col0 FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * col1 + - col1 col0 FROM tab0
----
0
2752
7371

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + - tab1.col0 IN ( - col0 ) AND col2 <= + col2 + col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * col1 + - col0 < ( NULL )
----

query I rowsort
SELECT - col1 * col0 * - col0 + - col2 AS col2 FROM tab1 cor0
----
180
40903
83104

query I rowsort
SELECT ALL col0 * + tab0.col0 * + tab0.col1 + col0 * - col0 FROM tab0
----
117600
48960
712890

query I rowsort
SELECT + col0 * - tab0.col1 + tab0.col2 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT - col0 + - col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ( - col0 ) + col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL 63 * + 70 FROM tab2 cor0
----
4410
4410
4410

query I rowsort
SELECT 38 + - 86 - + col0 FROM tab1 AS cor0
----
-112
-128
-51

query I rowsort
SELECT + 25 + + cor0.col1 * col2 * 22 + - col0 AS col2 FROM tab2 AS cor0
----
14158
18432
33695

query I rowsort
SELECT ALL - cor0.col2 + + ( col0 ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - 7 AS col1 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT ALL + cor0.col2 + + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5725
SELECT + ( - col2 ) - col0 DIV + col1 FROM tab2 cor0
----
-27
-27
-42

skipif mysql # not compatible
query I rowsort label-5725
SELECT + ( - col2 ) - col0 / + col1 FROM tab2 cor0
----
-27
-27
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 col2 FROM tab1 cor0
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * + col0 - - col2 col2 FROM tab2 AS cor0
----
2132
223
3119

query I rowsort
SELECT ALL 82 * - 5 FROM tab1 AS cor0
----
-410
-410
-410

query I rowsort
SELECT + 49 + + cor0.col1 * - col2 - col1 AS col0 FROM tab1 AS cor0
----
-1212
-1381
-531

query I rowsort
SELECT ALL col0 + - col2 * col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - - 34 - - col0 FROM tab1 AS cor0
----
114
37
98

query I rowsort
SELECT - col1 * - 9 FROM tab2
----
153
279
531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + tab2.col2 col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT col2 * col0 * + tab1.col2 - + col1 FROM tab1
----
207926
737267
8722

onlyif mysql # use DIV operator for integer division
query I rowsort label-5735
SELECT DISTINCT ( col2 ) + + col2 + col1 DIV col1 AS col1 FROM tab2
----
53
55
77

skipif mysql # not compatible
query I rowsort label-5735
SELECT DISTINCT ( col2 ) + + col2 + col1 / col1 AS col1 FROM tab2
----
53
55
77

query I rowsort
SELECT - 27 + - 82 FROM tab1 AS cor0
----
-109
-109
-109

query I rowsort
SELECT ALL - + col1 * + 34 - + col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-10392
-3333
-3716

query I rowsort
SELECT ALL - col2 * 45 FROM tab1 AS cor0
----
-2430
-2565
-4320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5739
SELECT DISTINCT + CAST( + 79 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT + CAST ( + 79 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
79

query I rowsort
SELECT col1 * - ( + cor0.col0 ) + + ( col2 * + col0 ) FROM tab0 AS cor0
----
-1272
-3360
-801

onlyif mysql # use DIV operator for integer division
query I rowsort label-5741
SELECT + - col1 + cor0.col1 DIV col0 col0 FROM tab2 AS cor0
----
-17
-27
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5741
SELECT + - col1 + cor0.col1 / col0 col0 FROM tab2 AS cor0
----
-17
-27
-59

query I rowsort
SELECT + cor0.col2 * + col2 FROM tab1 cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-5743
SELECT + cor0.col0 + - 47 DIV + col1 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-5743
SELECT + cor0.col0 + - 47 / + col1 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT DISTINCT + ( - 34 ) FROM tab2, tab2 AS cor0
----
-34

query I rowsort
SELECT + 88 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # use DIV operator for integer division
query I rowsort label-5746
SELECT ALL col1 DIV 94 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL col1 / 94 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * col1 * col1 AS col0 FROM tab2 AS cor0
----
-205379
-29791
-4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-5748
SELECT DISTINCT - - col0 DIV ( col0 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT - - col0 / ( col0 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - col1 * ( - col2 ) FROM tab2 cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5750
SELECT DISTINCT + - cor0.col1 - cor0.col2 * CAST( NULL AS SIGNED ) * - 71 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT + - cor0.col1 - cor0.col2 * CAST ( NULL AS INTEGER ) * - 71 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT col0 * ( col0 ) + - col2 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT tab1.col2 + - 79 AS col2 FROM tab1
----
-22
-25
17

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to a6775d4c5b4880512ff9492a52ee0905

query I rowsort
SELECT ALL + - col0 * - ( - col1 ) + cor0.col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + col2 * ( + 27 ) FROM tab0 AS cor0
----
2214
27
891

onlyif mysql # use DIV operator for integer division
query I rowsort label-5756
SELECT DISTINCT + col1 DIV + 79 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT + col1 / + 79 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5757
SELECT ALL cor0.col0 DIV + col0 + + 16 FROM tab0 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL cor0.col0 / + col0 + + 16 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT DISTINCT - col1 * 60 - 96 FROM tab0 AS cor0
----
-5256
-5556
-5916

query I rowsort
SELECT ALL - - cor0.col0 * - 68 AS col2 FROM tab0 AS cor0
----
-1632
-2380
-6052

onlyif mysql # use DIV operator for integer division
query I rowsort label-5760
SELECT DISTINCT + - col2 + ( + col0 ) DIV + cor0.col0 FROM tab0 cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-5760
SELECT DISTINCT + - col2 + ( + col0 ) / + cor0.col0 FROM tab0 cor0
----
-32
-81
0

query I rowsort
SELECT DISTINCT col0 + col0 * + col2 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - 30 * + col0 + col0 * + col1 AS col0 FROM tab1 AS cor0
----
-12
-1280
-1360

onlyif mysql # use DIV operator for integer division
query I rowsort label-5763
SELECT + - col1 DIV 28 FROM tab0 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-5763
SELECT + - col1 / 28 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT + - ( - 57 ) * - col1 AS col0 FROM tab2 AS cor0
----
-1767
-3363
-969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 + + ( - col0 ) * col1 col2 FROM tab1 AS cor0
----
-1030
-630
-68

query I rowsort
SELECT DISTINCT + col1 * col2 + + col2 + col0 FROM tab2 AS cor0
----
1638
763
871

query I rowsort
SELECT ALL + - 97 + - col2 * col0 FROM tab2 AS cor0
----
-2125
-286
-3099

query I rowsort
SELECT - + col2 + col1 * cor0.col0 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-5769
SELECT 89 DIV 18 FROM tab0 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-5769
SELECT 89 / 18 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5770
SELECT + col1 DIV - cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5770
SELECT + col1 / - cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 45 AS col0 FROM tab2 cor0
----
45

query I rowsort
SELECT DISTINCT + col2 * + col1 + ( - col2 + + col2 ) * 29 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - + 38 + cor0.col2 FROM tab1 AS cor0
----
16
19
58

query I rowsort
SELECT DISTINCT - + col0 * col0 + col2 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ( col1 ) - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + 82 * + col1 AS col1 FROM tab0 AS cor0
----
7052
7462
7954

query I rowsort
SELECT DISTINCT - ( - col2 * col2 ) + + 48 FROM tab0
----
1137
49
6772

onlyif mysql # use DIV operator for integer division
query I rowsort label-5778
SELECT - col1 * tab1.col0 + + col1 DIV 64 FROM tab1
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-5778
SELECT - col1 * tab1.col0 + + col1 / 64 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - - cor0.col2 * ( 50 ) - + cor0.col0 AS col2 FROM tab0 AS cor0
----
15
1626
4011

query I rowsort
SELECT DISTINCT + col0 + + 45 FROM tab1 AS cor0
----
109
125
48

query I rowsort
SELECT - 68 AS col2 FROM tab1
----
-68
-68
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5782
SELECT DISTINCT col2 * col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT col2 * col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + 25 + + col2 * ( col2 * col1 ) FROM tab2
----
22624
24573
39909

query I rowsort
SELECT ALL + ( cor0.col1 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL 1 FROM tab1, tab2 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5786
SELECT - CAST( NULL AS SIGNED ) * tab2.col0 + - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5786
SELECT - CAST ( NULL AS INTEGER ) * tab2.col0 + - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 71 ) + col0 AS col0 FROM tab0
----
106
160
95

query I rowsort
SELECT DISTINCT 48 * tab0.col0 AS col1 FROM tab0, tab1 AS cor0
----
1152
1680
4272

query I rowsort
SELECT DISTINCT col1 * col2 * - tab1.col0 AS col0 FROM tab1
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col2 FROM tab0
----
69
69
69

query I rowsort
SELECT DISTINCT - 31 * - col0 AS col1 FROM tab2
----
217
2418
2449

query I rowsort
SELECT - 82 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0

query I rowsort
SELECT DISTINCT + 90 AS col1 FROM tab2
----
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5794
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5794
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 96 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT + col0 + col2 * col1 AS col0 FROM tab2 AS cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 * - tab1.col1 col2 FROM tab1
----
-13520
-2028
-6400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5798
SELECT DISTINCT + - col1 + - CAST( col0 + col1 * ( col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-7506
-8461
-9541

skipif mysql # not compatible
query I rowsort label-5798
SELECT DISTINCT + - col1 + - CAST ( col0 + col1 * ( col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-7506
-8461
-9541

query I rowsort
SELECT ALL col0 + + 48 * + col0 * + col1 AS col0 FROM tab1 AS cor0
----
30784
3747
50000

query I rowsort
SELECT ALL + - col2 * + 54 AS col2 FROM tab1 AS cor0
----
-2916
-3078
-5184

query I rowsort
SELECT + - col0 * 32 AS col1 FROM tab2 AS cor0
----
-224
-2496
-2528

query I rowsort
SELECT ALL - 54 + col2 AS col2 FROM tab0 AS cor0
----
-21
-53
28

query I rowsort
SELECT DISTINCT - col1 + - col0 * col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT DISTINCT + 12 AS col1 FROM tab2 AS cor0
----
12

query I rowsort
SELECT + ( 25 ) FROM tab1, tab2 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT + + ( - 33 ) * col0 + 44 + - ( - col2 ) FROM tab2 AS cor0
----
-160
-2504
-2525

query I rowsort
SELECT + 74 + col1 * - col0 + + 37 * + ( col0 + ( + col1 ) ) FROM tab2 AS cor0
----
1263
2283
541

query I rowsort
SELECT + 64 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT DISTINCT - col2 * 12 + tab0.col0 AS col1 FROM tab0
----
-372
-895
23

query I rowsort
SELECT + 15 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT col1 * 36 + col0 FROM tab2 AS cor0
----
1123
2202
691

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5812
SELECT ALL + col1 + + col0 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL + col1 + + col0 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 99 * col0 AS col1 FROM tab1 AS cor0
----
297
6336
7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col1 col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - 23 * cor0.col2 + ( - col0 ) FROM tab2 AS cor0
----
-628
-676
-953

query I rowsort
SELECT + + 91 + - col0 FROM tab1 AS cor0
----
11
27
88

query I rowsort
SELECT ALL ( tab1.col2 ) AS col2 FROM tab1
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5818
SELECT cor0.col2 * + CAST( col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5818
SELECT cor0.col2 * + CAST ( col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col0 + + 94 FROM tab1 cor0
----
158
174
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5820
SELECT col2 DIV ( col0 ) + + col1 AS col1 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-5820
SELECT col2 / ( col0 ) + + col1 AS col1 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT - col2 - + 23 AS col1 FROM tab0 AS cor0
----
-105
-24
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 * + col1 col0 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT + + col0 + + 30 FROM tab1 AS cor0
----
110
33
94

query I rowsort
SELECT ALL + - 20 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT DISTINCT - col2 * + col0 + - col1 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT 65 + + 36 AS col1 FROM tab1, tab1 AS cor0
----
101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 95 col1 FROM tab0 AS cor0
----
119
130
184

query I rowsort
SELECT ALL - ( cor1.col2 ) + + ( 3 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 944ef75d60bfafe25d1f097c079d1be4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5829
SELECT ALL - col0 * - col1 + CAST( + col1 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
1280
156
2080

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL - col0 * - col1 + CAST ( + col1 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
1280
156
2080

query I rowsort
SELECT DISTINCT col2 + col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT + + col1 + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT 47 AS col2 FROM tab1, tab1 cor0, tab0 cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT DISTINCT - 93 + - col1 * col0 FROM tab1 cor0
----
-1133
-171
-733

query I rowsort
SELECT ALL + + col1 * col1 + col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL + col1 + col1 * col1 * - 86 AS col0 FROM tab2 AS cor0
----
-24837
-299307
-82615

query I rowsort
SELECT + 49 * 26 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to bf72c9afd2f391390603dc0dbd5b59af

query I rowsort
SELECT ALL + col1 + - cor0.col2 * col1 - col0 * - col0 AS col0 FROM tab2 AS cor0
----
-757
4609
5612

query I rowsort
SELECT ALL + - col2 * - col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + ( + col2 ) * + cor0.col0 + 90 FROM tab1 AS cor0
----
252
3738
7770

onlyif mysql # use DIV operator for integer division
query I rowsort label-5840
SELECT DISTINCT - col0 DIV ( cor0.col0 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5840
SELECT DISTINCT - col0 / ( cor0.col0 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + col1 * col2 - + col2 AS col1 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL + col1 + - 97 FROM tab1 cor0
----
-71
-84
-87

query I rowsort
SELECT DISTINCT col0 + - ( cor0.col1 ) FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5844
SELECT cor0.col1 DIV - 59 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5844
SELECT cor0.col1 / - 59 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * col1 + - col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT - col0 - - 43 FROM tab1 AS cor0
----
-21
-37
40

query I rowsort
SELECT DISTINCT + - col0 + - col2 * - col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - ( col0 ) + 32 AS col0 FROM tab2
----
-46
-47
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-5849
SELECT ALL - col2 * 51 DIV cor0.col0 + col2 FROM tab2 AS cor0
----
-169
14
9

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL - col2 * 51 / cor0.col0 + col2 FROM tab2 AS cor0
----
-169
14
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5850
SELECT ALL - CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL - CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - - ( col1 ) + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT + ( - ( - col0 ) ) FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT + + col2 + ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + ( col1 ) * col0 + col2 * cor0.col2 FROM tab2 AS cor0
----
2787
5278
946

query I rowsort
SELECT col0 + 48 AS col2 FROM tab1 AS cor0
----
112
128
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5856
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 * - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 * - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( - ( - col0 ) ) FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL ( + 15 ) + col0 * 82 AS col2 FROM tab1 AS cor0
----
261
5263
6575

query I rowsort
SELECT DISTINCT 26 - col2 FROM tab1 AS cor0
----
-28
-31
-70

query I rowsort
SELECT ALL col0 + - ( + 11 ) * - tab1.col0 * col1 FROM tab1
----
11520
7104
861

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5861
SELECT + col0 * CAST( 46 AS SIGNED ) * col1 FROM tab1
----
29440
3588
47840

skipif mysql # not compatible
query I rowsort label-5861
SELECT + col0 * CAST ( 46 AS INTEGER ) * col1 FROM tab1
----
29440
3588
47840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5862
SELECT DISTINCT CAST( - 12 AS SIGNED ) * cor0.col2 * + ( col2 + + col0 ) FROM tab1 AS cor0
----
-202752
-36936
-82764

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT CAST ( - 12 AS INTEGER ) * cor0.col2 * + ( col2 + + col0 ) FROM tab1 AS cor0
----
-202752
-36936
-82764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + col0 col2 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT + col1 - + 47 FROM tab0
----
39
44
50

query I rowsort
SELECT + col1 + - 89 FROM tab2 cor0
----
-30
-58
-72

query I rowsort
SELECT DISTINCT + 69 * ( col0 ) AS col2 FROM tab1 cor0
----
207
4416
5520

onlyif mysql # use DIV operator for integer division
query I rowsort label-5867
SELECT - col0 * col2 + + 3 DIV ( - col0 ) FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-5867
SELECT - col0 * col2 + + 3 / ( - col0 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - ( 23 ) + tab1.col1 * col1 * + col2 + col2 AS col2 FROM tab1
----
16297
36535
5734

query I rowsort
SELECT DISTINCT 98 + - 30 FROM tab2
----
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-5870
SELECT DISTINCT ( ( col1 ) ) DIV + ( - col0 ) AS col2 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT ( ( col1 ) ) / + ( - col0 ) AS col2 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT col1 * - col1 + col2 * col0 FROM tab0
----
-6604
-9374
-983

onlyif mysql # use DIV operator for integer division
query I rowsort label-5872
SELECT + ( col1 ) DIV col0 + 56 AS col1 FROM tab2
----
56
56
60

skipif mysql # not compatible
query I rowsort label-5872
SELECT + ( col1 ) / col0 + 56 AS col1 FROM tab2
----
56
56
60

query I rowsort
SELECT - - ( + 26 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT DISTINCT + + col0 * col2 + ( col0 ) * col0 AS col1 FROM tab2 AS cor0
----
238
8112
9243

query I rowsort
SELECT + - ( col0 ) * + 73 AS col1 FROM tab0 cor0
----
-1752
-2555
-6497

query I rowsort
SELECT DISTINCT + 40 + col2 - - ( + 42 ) AS col1 FROM tab0 AS cor0
----
115
164
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5877
SELECT col1 + - col2 * - CAST( - ( cor0.col1 ) AS SIGNED ) FROM tab0 cor0
----
-2752
-7371
0

skipif mysql # not compatible
query I rowsort label-5877
SELECT col1 + - col2 * - CAST ( - ( cor0.col1 ) AS INTEGER ) FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT col0 + col1 * - col1 + col0 AS col0 FROM tab1 AS cor0
----
-670
-9
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 * + col1 + col2 col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + col0 * + col0 + + col0 + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-905
2681
6031

query I rowsort
SELECT DISTINCT - col0 + + ( + 64 * col0 ) AS col1 FROM tab2
----
441
4914
4977

query I rowsort
SELECT + col1 + col1 * - col1 + - col0 AS col1 FROM tab0
----
-7334
-8279
-9347

query I rowsort
SELECT DISTINCT - col2 * ( + ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( + col0 * col2 ) col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT - cor0.col0 + + cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - 80 * - col2 AS col0 FROM tab2
----
2080
2160
3040

query I rowsort
SELECT DISTINCT - col0 * - 74 FROM tab2 AS cor0
----
518
5772
5846

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5888
SELECT + CAST( NULL AS SIGNED ) + + col2 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5888
SELECT + CAST ( NULL AS INTEGER ) + + col2 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
1
33
82

query I rowsort
SELECT col1 + + 56 FROM tab1 AS cor0
----
66
69
82

query I rowsort
SELECT + col0 * 70 AS col2 FROM tab2 AS cor0
----
490
5460
5530

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5892
SELECT - col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5892
SELECT - col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - 31 + col2 FROM tab1 AS cor0
----
-1620
-1710
-2880

query I rowsort
SELECT - col1 + col2 * cor0.col1 AS col0 FROM tab2 cor0
----
1475
629
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5895
SELECT + CAST( NULL AS SIGNED ) + - col1 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5895
SELECT + CAST ( NULL AS INTEGER ) + - col1 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 69 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT + tab2.col0 + tab2.col1 * - tab2.col0 FROM tab2, tab0 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - 5 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # use DIV operator for integer division
query I rowsort label-5899
SELECT DISTINCT - col2 DIV ( + tab1.col1 ) FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT - col2 / ( + tab1.col1 ) FROM tab1
----
-2
-5
-7

query I rowsort
SELECT - 60 - - col2 AS col2 FROM tab2 AS cor0
----
-22
-33
-34

query I rowsort
SELECT col2 * col1 + col0 * + col0 FROM tab2
----
6887
7618
886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 39 + + tab1.col2 * + 57 col0 FROM tab1
----
2064
2859
4965

query I rowsort
SELECT ALL + col1 * col1 * + 96 AS col1 FROM tab2
----
27744
334176
92256

query I rowsort
SELECT + tab2.col1 * tab2.col1 AS col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
3
64
80

query I rowsort
SELECT DISTINCT - tab2.col2 * + 28 FROM tab2, tab1 AS cor0
----
-1064
-728
-756

query I rowsort
SELECT 24 * col2 FROM tab2
----
624
648
912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + cor0.col1 col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + 46 FROM tab2, tab1, tab0 AS cor0
----
46

query I rowsort
SELECT - ( + cor0.col2 ) * col1 + col1 * - col2 FROM tab1 AS cor0
----
-1140
-2496
-2808

query I rowsort
SELECT cor2.col1 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to c6425afc100dd55de8d45dec18c469ea

query I rowsort
SELECT DISTINCT cor0.col2 * 40 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
1040
1080
1520

query I rowsort
SELECT + col1 * + tab0.col1 AS col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT col0 * 84 * + col1 + col0 * - col1 FROM tab1 AS cor0
----
53120
6474
86320

query I rowsort
SELECT 4 + + 37 FROM tab0, tab1 cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT col2 + col1 - - col1 FROM tab1
----
106
122
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5917
SELECT + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5917
SELECT + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + + CAST ( cor0.col2 AS REAL ) * - col1 - col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col2 - + 59 * col0 FROM tab0 AS cor0
----
-1383
-2064
-5169

query I rowsort
SELECT + cor0.col1 * - 48 FROM tab0 AS cor0
----
-4128
-4368
-4656

query I rowsort
SELECT - col0 * + 14 AS col1 FROM tab0 AS cor0
----
-1246
-336
-490

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5922
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5923
SELECT DISTINCT tab1.col0 DIV tab1.col1 AS col2 FROM tab1
----
0
6

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT tab1.col0 / tab1.col1 AS col2 FROM tab1
----
0
6

query I rowsort
SELECT DISTINCT 7 * col1 FROM tab0
----
602
637
679

query I rowsort
SELECT DISTINCT + - ( + 63 ) FROM tab2, tab1, tab0 cor0
----
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-5926
SELECT + ( col2 ) DIV - cor0.col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5926
SELECT + ( col2 ) / - cor0.col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5927
SELECT - + col0 + + col2 DIV ( + 1 ) FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-5927
SELECT - + col0 + + col2 / ( + 1 ) FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + + 83 * col2 + col2 FROM tab2 AS cor0
----
2184
2268
3192

query I rowsort
SELECT ALL col2 + - cor0.col1 AS col0 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + + ( col2 ) * - 48 FROM tab0 AS cor0
----
-1584
-3936
-48

query I rowsort
SELECT DISTINCT - - 56 * col2 AS col1 FROM tab0 AS cor0
----
1848
4592
56

query I rowsort
SELECT + ( col2 ) + - ( col1 ) * - col1 * + col1 FROM tab0 AS cor0
----
636089
753653
912674

query I rowsort
SELECT col2 + - col2 * col2 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT col2 * 6 * + tab0.col2 + tab0.col2 * ( + 70 ) AS col2 FROM tab0
----
46084
76
8844

query I rowsort
SELECT cor0.col1 * - 86 FROM tab0, tab0 AS cor0
----
9 values hashing to 04a170f65198f5aba25bb0c4c0eba313

onlyif mysql # use DIV operator for integer division
query I rowsort label-5936
SELECT - col1 * + tab2.col0 DIV - col0 - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5936
SELECT - col1 * + tab2.col0 / - col0 - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT tab0.col0 * 78 * 95 AS col2 FROM tab0
----
177840
259350
659490

query I rowsort
SELECT col1 + + 31 AS col1 FROM tab1
----
41
44
57

query I rowsort
SELECT cor0.col2 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - tab2.col0 + - 11 FROM tab2
----
-18
-89
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5941
SELECT DISTINCT + col1 DIV 17 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT + col1 / 17 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + col0 + - col1 * + col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL col1 + + 56 AS col2 FROM tab2 AS cor0
----
115
73
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-5944
SELECT cor0.col1 + 17 DIV col2 AS col0 FROM tab0 AS cor0
----
114
86
91

skipif mysql # not compatible
query I rowsort label-5944
SELECT cor0.col1 + 17 / col2 AS col0 FROM tab0 AS cor0
----
114
86
91

query I rowsort
SELECT DISTINCT - + 55 * 40 FROM tab0 cor0
----
-2200

query I rowsort
SELECT ALL - 56 + + col2 FROM tab2 AS cor0
----
-18
-29
-30

query I rowsort
SELECT ALL - 55 + - col2 * + col2 FROM tab1 AS cor0
----
-2971
-3304
-9271

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5948
SELECT - CAST( NULL AS SIGNED ) * col0 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5948
SELECT - CAST ( NULL AS INTEGER ) * col0 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 46 * + col0 FROM tab2 AS cor0
----
-322
-3588
-3634

query I rowsort
SELECT ALL + - 18 * 95 AS col2 FROM tab2 AS cor0
----
-1710
-1710
-1710

query I rowsort
SELECT ( 61 ) FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT + 51 * - col2 * col0 AS col1 FROM tab2 AS cor0
----
-103428
-153102
-9639

query I rowsort
SELECT ALL - 8 * - col2 AS col0 FROM tab1 AS cor0
----
432
456
768

query I rowsort
SELECT DISTINCT + 9 + + col1 FROM tab2 cor0
----
26
40
68

query I rowsort
SELECT + ( col1 ) * + col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5956
SELECT + CAST( NULL AS SIGNED ) + + col2 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5956
SELECT + CAST ( NULL AS INTEGER ) + + col2 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 7 AS col1 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT DISTINCT + 77 AS col1 FROM tab2 cor0
----
77

query I rowsort
SELECT col0 * + 33 * + cor0.col1 FROM tab0 AS cor0
----
112035
267267
68112

query I rowsort
SELECT ALL - - cor0.col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col0 + col0 * col2 AS col1 FROM tab0 cor0
----
0
7209
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 col2 FROM tab1 cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) + ( 14 ) col2 FROM tab1 AS cor0
----
-12
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5964
SELECT ALL - 65 DIV - col1 + col2 AS col2 FROM tab2 cor0
----
27
29
41

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL - 65 / - col1 + col2 AS col2 FROM tab2 cor0
----
27
29
41

query I rowsort
SELECT ALL - - 57 + cor0.col2 * - col0 FROM tab1 AS cor0
----
-105
-3591
-7623

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 * ( col2 ) + + col0 * - ( col1 * + col2 ) AS col1 FROM tab1 cor0
----
148713
153252
784896

query I rowsort
SELECT col0 - + col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 66 * col2 FROM tab1 AS cor0
----
3564
3762
6336

query I rowsort
SELECT - ( cor0.col2 ) * ( col0 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - + ( + col2 ) * col2 + - col1 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT + + 19 + + cor0.col2 FROM tab1 AS cor0
----
115
73
76

query I rowsort
SELECT + - col0 - - col0 * ( cor0.col0 ) AS col0 FROM tab0 cor0
----
1190
552
7832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5973
SELECT ALL - 19 + - col1 + - CAST( + col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
-112
-48
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL - 19 + - col1 + - CAST ( + col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
-112
-48
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5974
SELECT ALL - + col1 * + col1 + CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-36
-673
-89

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL - + col1 * + col1 + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT ALL - col2 + + 55 FROM tab1 cor0
----
-2
-41
1

query I rowsort
SELECT - cor0.col2 + 86 AS col0 FROM tab1 AS cor0
----
-10
29
32

query I rowsort
SELECT DISTINCT + col0 * + tab0.col1 + col1 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT - + 10 * - 77 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f45d34a1cba3c01966ab2c7c538c0bc5

query I rowsort
SELECT - 32 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT DISTINCT - 73 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * + col1 * - col0 col1 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT col1 * ( 2 ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL - + col2 * - 24 FROM tab0 AS cor0
----
1968
24
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + col2 col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - col0 * col1 * - 44 + col1 AS col0 FROM tab1 AS cor0
----
28170
3458
45773

query I rowsort
SELECT DISTINCT - - col2 * + 61 FROM tab1 cor0
----
3294
3477
5856

onlyif mysql # use DIV operator for integer division
query I rowsort label-5987
SELECT + col0 * + col1 * + col1 + col1 DIV - cor0.col2 AS col0 FROM tab1 AS cor0
----
13520
2028
6400

skipif mysql # not compatible
query I rowsort label-5987
SELECT + col0 * + col1 * + col1 + col1 / - cor0.col2 AS col0 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT ALL - col2 * + col2 + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-14022
-1881
-36

query I rowsort
SELECT DISTINCT - - cor0.col0 * - 63 + col0 - + cor0.col0 FROM tab2 AS cor0
----
-441
-4914
-4977

query I rowsort
SELECT - + col1 + + ( ( + col1 ) ) * col2 FROM tab0 AS cor0
----
0
2752
7371

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 974a92f740f5f08d18564d29c05f7692

query I rowsort
SELECT ALL + tab2.col1 * - 55 FROM tab2
----
-1705
-3245
-935

query I rowsort
SELECT ALL - + col1 * col1 * - col0 + col2 FROM tab1 cor0
----
13616
2082
6457

query I rowsort
SELECT DISTINCT - cor0.col2 * ( cor0.col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5995
SELECT - col2 DIV + ( col1 ) + col2 FROM tab1 AS cor0
----
52
52
89

skipif mysql # not compatible
query I rowsort label-5995
SELECT - col2 / + ( col1 ) + col2 FROM tab1 AS cor0
----
52
52
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 99 - col2 col0 FROM tab2 AS cor0
----
1645
3042
5815

query I rowsort
SELECT ALL ( 2 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to 9044210e7dc2a764fe944d925f222728

query I rowsort
SELECT DISTINCT - 46 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 * col2 + col0 col0 FROM tab1
----
4755
5080
8528

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col1 AS REAL ) col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col1 + tab1.col0 * + 38 FROM tab1
----
140
2442
3053

query I rowsort
SELECT DISTINCT - col0 * col1 + + ( - ( col1 ) ) + - tab2.col0 FROM tab2
----
-1439
-255
-4739

query I rowsort
SELECT DISTINCT col2 + col2 * + 11 AS col1 FROM tab0
----
12
396
984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 + col1 col0 FROM tab0 AS cor0
----
13
2
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6006
SELECT ALL tab0.col2 + col1 / - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL tab0.col2 + col1 / - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * col2 * + col2 + tab1.col2 AS col1 FROM tab1
----
-157410
-185136
-884640

query I rowsort
SELECT - + cor0.col1 * - col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + - 60 * col2 + cor0.col0 FROM tab1 AS cor0
----
-3237
-3356
-5680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 + col2 * - col1 col2 FROM tab0 AS cor0
----
-774
3298
637

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6011
SELECT ALL - col1 + col1 * CAST( 75 AS SIGNED ) - + col0 FROM tab2 AS cor0
----
1179
2287
4288

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL - col1 + col1 * CAST ( 75 AS INTEGER ) - + col0 FROM tab2 AS cor0
----
1179
2287
4288

query I rowsort
SELECT DISTINCT - 71 * col2 * col0 + + cor0.col1 + - col2 AS col2 FROM tab0 AS cor0
----
-2389
-518149
-56179

query I rowsort
SELECT DISTINCT + col0 * - col2 - - col0 AS col2 FROM tab0 cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6014
SELECT + 67 + cor0.col2 DIV 65 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cbe59383e641eb9660e52d9baacd847d

skipif mysql # not compatible
query I rowsort label-6014
SELECT + 67 + cor0.col2 / 65 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cbe59383e641eb9660e52d9baacd847d

onlyif mysql # use DIV operator for integer division
query I rowsort label-6015
SELECT tab1.col0 DIV tab1.col2 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6015
SELECT tab1.col0 / tab1.col2 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT + ( - col0 ) - + col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ( + col2 ) + - col1 AS col0 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT ( - col2 ) * - col1 + + col1 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-6019
SELECT + - 7 DIV col0 - + col1 FROM tab2 AS cor0
----
-17
-32
-59

skipif mysql # not compatible
query I rowsort label-6019
SELECT + - 7 / col0 - + col1 FROM tab2 AS cor0
----
-17
-32
-59

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 cor2
----
3645 values hashing to 97b43fbe79eecd0bc6921392403b666d

query I rowsort
SELECT + tab0.col0 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - col2 * ( - 96 ) * + col0 AS col1 FROM tab1 AS cor0
----
15552
350208
737280

query I rowsort
SELECT ALL cor0.col2 + col1 * - col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT DISTINCT + - col2 + 37 FROM tab2 AS cor0
----
-1
10
11

query I rowsort
SELECT ALL + tab0.col2 + + 42 FROM tab0
----
124
43
75

query I rowsort
SELECT - 1 * col2 + + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6027
SELECT - - ( + col0 ) * cor0.col2 + + 74 * col1 DIV - col1 FROM tab1 AS cor0
----
3574
7606
88

skipif mysql # not compatible
query I rowsort label-6027
SELECT - - ( + col0 ) * cor0.col2 + + 74 * col1 / - col1 FROM tab1 AS cor0
----
3574
7606
88

query I rowsort
SELECT DISTINCT 19 AS col0 FROM tab0, tab2 AS cor0
----
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6029
SELECT DISTINCT - CAST( col0 AS SIGNED ) + + col1 * 50 AS col1 FROM tab0 AS cor0
----
4276
4461
4815

skipif mysql # not compatible
query I rowsort label-6029
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + + col1 * 50 AS col1 FROM tab0 AS cor0
----
4276
4461
4815

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6030
SELECT + + CAST( NULL AS SIGNED ) * + 15 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6030
SELECT + + CAST ( NULL AS INTEGER ) * + 15 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - cor0.col0 + - 21 AS col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
-100
-28
-99

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - 14 AS REAL ) * + cor0.col2 FROM tab1 cor0
----
-1344
-756
-798

query I rowsort
SELECT DISTINCT + 52 FROM tab1, tab2, tab0 cor0
----
52

query I rowsort
SELECT col1 + - tab2.col2 + tab2.col0 AS col2 FROM tab2
----
11
111
58

query I rowsort
SELECT ALL col0 - + col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT + ( + col1 ) * col1 * CAST ( + 59 AS REAL ) FROM tab2
----
17051
205379
56699

query I rowsort
SELECT + 61 FROM tab0, tab0 cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 9b52d3939da22c8931e3d5a72ddfb1b1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6039
SELECT ALL CAST( NULL AS SIGNED ) * - 88 - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL CAST ( NULL AS INTEGER ) * - 88 - col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 - + col0 * col2 col1 FROM tab1
----
-3562
-7594
-76

query I rowsort
SELECT ALL 37 * - col2 - col1 FROM tab2
----
-1021
-1030
-1423

query I rowsort
SELECT 22 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT 16 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT DISTINCT col1 * - ( - col0 ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-6045
SELECT ALL - col2 * col2 DIV 93 AS col0 FROM tab0
----
-11
-72
0

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL - col2 * col2 / 93 AS col0 FROM tab0
----
-11
-72
0

query I rowsort
SELECT DISTINCT - 10 + + col0 * - ( 14 ) * + col1 FROM tab1
----
-1102
-14570
-8970

query I rowsort
SELECT - - cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + col1 - tab2.col0 AS col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT + 14 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT + 29 * col0 AS col0 FROM tab0
----
1015
2581
696

query I rowsort
SELECT DISTINCT - 90 * + cor0.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-630
-7020
-7110

onlyif mysql # use DIV operator for integer division
query I rowsort label-6052
SELECT col0 + 27 DIV col0 FROM tab1 AS cor0
----
12
64
80

skipif mysql # not compatible
query I rowsort label-6052
SELECT col0 + 27 / col0 FROM tab1 AS cor0
----
12
64
80

query I rowsort
SELECT DISTINCT + col0 + 83 * - col1 AS col0 FROM tab1 cor0
----
-2155
-766
-999

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6054
SELECT cor0.col1 * + CAST( NULL AS SIGNED ) * - ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6054
SELECT cor0.col1 * + CAST ( NULL AS INTEGER ) * - ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - cor0.col2 * + 87 AS col2 FROM tab2 AS cor0
----
2262
2349
3306

query I rowsort
SELECT col0 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + + cor0.col1 * ( 66 + + cor0.col0 ) FROM tab2 AS cor0
----
2263
2465
8496

query I rowsort
SELECT - col2 * + ( + col2 ) + + col1 FROM tab2 AS cor0
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 * + CAST ( + col0 AS REAL ) col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + cor0.col1 + - 87 FROM tab2, tab1 AS cor0
----
9 values hashing to 6d368dfa953cca81a35b361d177fd95c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6061
SELECT + - col0 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6061
SELECT + - col0 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6062
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6063
SELECT ALL - + col2 DIV - col1 AS col2 FROM tab2 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL - + col2 / - col1 AS col2 FROM tab2 cor0
----
0
0
2

query I rowsort
SELECT ( col2 ) * 35 FROM tab2
----
1330
910
945

query I rowsort
SELECT ALL 16 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT ALL 45 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT DISTINCT col2 * + 82 FROM tab0
----
2706
6724
82

query I rowsort
SELECT - col1 + 22 AS col2 FROM tab0
----
-64
-69
-75

query I rowsort
SELECT col2 * + ( cor0.col1 ) FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6070
SELECT DISTINCT - - cor0.col2 DIV - col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT - - cor0.col2 / - col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + col2 * + col1 + - col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-6072
SELECT ALL + cor0.col1 DIV - col1 + 46 * - col1 col2 FROM tab1 AS cor0
----
-1197
-461
-599

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL + cor0.col1 / - col1 + 46 * - col1 col2 FROM tab1 AS cor0
----
-1197
-461
-599

query I rowsort
SELECT + ( col0 ) - col2 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6074
SELECT DISTINCT 18 DIV 62 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT 18 / 62 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL - ( + 60 ) - col2 FROM tab1
----
-114
-117
-156

query I rowsort
SELECT DISTINCT 21 - 58 FROM tab2
----
-37

query I rowsort
SELECT + ( cor0.col2 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT - 62 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 98946dcadb23f354040593c91d9c8559

onlyif mysql # use DIV operator for integer division
query I rowsort label-6079
SELECT - ( - col0 ) + col1 * - ( - col1 ) DIV + col1 AS col0 FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort label-6079
SELECT - ( - col0 ) + col1 * - ( - col1 ) / + col1 AS col0 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6080
SELECT + ( - col1 ) + CAST( - cor0.col2 + + col0 AS SIGNED ) DIV 42 AS col0 FROM tab1 cor0
----
-10
-13
-27

skipif mysql # not compatible
query I rowsort label-6080
SELECT + ( - col1 ) + CAST ( - cor0.col2 + + col0 AS INTEGER ) / 42 AS col0 FROM tab1 cor0
----
-10
-13
-27

query I rowsort
SELECT ALL - cor0.col0 + 85 FROM tab2, tab0 AS cor0
----
9 values hashing to c333dbacd6df68425f723e05778a1518

query I rowsort
SELECT DISTINCT - 38 * + col1 FROM tab1 AS cor0
----
-380
-494
-988

query I rowsort
SELECT + ( col2 ) + ( + col2 ) - col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6084
SELECT 57 * + col0 + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6084
SELECT 57 * + col0 + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6085
SELECT DISTINCT - + cor0.col2 * + col1 + col0 + ( + col0 ) * 92 DIV ( - cor0.col0 ) FROM tab0 AS cor0
----
-154
-2906
-7465

skipif mysql # not compatible
query I rowsort label-6085
SELECT DISTINCT - + cor0.col2 * + col1 + col0 + ( + col0 ) * 92 / ( - cor0.col0 ) FROM tab0 AS cor0
----
-154
-2906
-7465

query I rowsort
SELECT DISTINCT + 13 * - col2 AS col1 FROM tab0 AS cor0
----
-1066
-13
-429

query I rowsort
SELECT DISTINCT - + 84 + col0 FROM tab1 AS cor0
----
-20
-4
-81

query I rowsort
SELECT - + col1 - col1 AS col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT ALL + - col2 * - col0 + - ( cor0.col0 ) - col1 AS col2 FROM tab2 AS cor0
----
151
1891
2906

query I rowsort
SELECT DISTINCT 77 * - col1 AS col0 FROM tab2
----
-1309
-2387
-4543

query I rowsort
SELECT 73 * tab1.col2 AS col0 FROM tab1
----
3942
4161
7008

query I rowsort
SELECT - ( col2 + + col1 ) AS col1 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT ALL col2 * - col0 * - col1 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + col1 + + col0 * + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT - ( - col0 ) * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6096
SELECT DISTINCT - - 91 * - col1 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT - - 91 * - col1 + - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 + - cor0.col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT + + col2 * col1 + + 82 * - col0 FROM tab1 AS cor0
----
-4678
-5312
1158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6099
SELECT - - col0 DIV col1 + + 30 AS col1 FROM tab0 AS cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-6099
SELECT - - col0 / col1 + + 30 AS col1 FROM tab0 AS cor0
----
30
30
30

query I rowsort
SELECT col2 + 76 - 59 FROM tab0 AS cor0
----
18
50
99

query I rowsort
SELECT DISTINCT - col2 + 58 AS col1 FROM tab1 AS cor0
----
-38
1
4

query I rowsort
SELECT + col1 + 62 * cor0.col2 FROM tab0 AS cor0
----
159
2132
5175

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6103
SELECT + col0 - CAST( cor0.col0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6103
SELECT + col0 - CAST ( cor0.col0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - cor0.col1 * 43 AS col1 FROM tab0 AS cor0
----
3698
3913
4171

query I rowsort
SELECT ALL 70 + col1 FROM tab0
----
156
161
167

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
60

query I rowsort
SELECT + col1 * 16 + col2 * col2 AS col2 FROM tab0 AS cor0
----
1553
2465
8180

query I rowsort
SELECT col1 * col1 + + col2 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT - ( cor0.col1 ) * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * - col2 + col0 + - ( 64 + + col2 * ( + col2 ) ) col1 FROM tab2 AS cor0
----
-1623
-2075
-2196

query I rowsort
SELECT DISTINCT - 82 - cor0.col1 AS col0 FROM tab2 AS cor0
----
-113
-141
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6112
SELECT DISTINCT - + col2 * + col1 + + col1 * + col0 DIV cor0.col0 col1 FROM tab0 AS cor0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT - + col2 * + col1 + + col1 * + col0 / cor0.col0 col1 FROM tab0 AS cor0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( cor0.col2 ) col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 33 * col1 + col2 AS col2 FROM tab2 AS cor0
----
1050
1973
599

query I rowsort
SELECT + col0 * + col1 + + col1 * cor0.col0 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT ALL - + 96 * col2 FROM tab0 cor0
----
-3168
-7872
-96

query I rowsort
SELECT DISTINCT ( - col1 ) * + col2 + 70 AS col2 FROM tab0 AS cor0
----
-27
-2768
-7392

query I rowsort
SELECT DISTINCT - 12 AS col2 FROM tab0 AS cor0
----
-12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6119
SELECT ALL CAST( NULL AS SIGNED ) * + col0 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( 79 ) FROM tab2 AS cor0
----
-79
-79
-79

query I rowsort
SELECT ALL - ( + 73 ) - col2 AS col2 FROM tab1 AS cor0
----
-127
-130
-169

query I rowsort
SELECT - col0 * - ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + 56 * col1 * col0 AS col1 FROM tab0 AS cor0
----
115584
190120
453544

query I rowsort
SELECT 15 + + col0 * + col2 * - tab0.col2 FROM tab0
----
-20
-26121
-598421

query I rowsort
SELECT ALL - 85 * + 63 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6f19abc14f7720732d3e05b14903d8e3

query I rowsort
SELECT - ( col2 ) * + col0 - col0 * 0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 * + col1 col1 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6128
SELECT DISTINCT CAST( col2 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT CAST ( col2 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - + tab2.col2 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT tab2.col2 + + 93 + + col0 AS col2 FROM tab2
----
127
197
210

query I rowsort
SELECT ALL + ( 66 ) * col1 - tab0.col1 AS col2 FROM tab0
----
5590
5915
6305

query I rowsort
SELECT col1 + col2 + + col1 AS col0 FROM tab2
----
144
72
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6133
SELECT CAST( + 99 + col2 AS SIGNED ) * + col2 AS col2 FROM tab1
----
18720
8262
8892

skipif mysql # not compatible
query I rowsort label-6133
SELECT CAST ( + 99 + col2 AS INTEGER ) * + col2 AS col2 FROM tab1
----
18720
8262
8892

query I rowsort
SELECT + ( - col0 ) - cor0.col1 * - col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - ( ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + cor0.col0 * + col2 + - col2 AS col0 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT - col2 * + cor0.col1 - - cor0.col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT 70 * ( col1 ) + ( + col1 ) AS col2 FROM tab2 AS cor0
----
1207
2201
4189

query I rowsort
SELECT + tab1.col1 * + col1 * - col2 AS col1 FROM tab1
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-6140
SELECT + col2 DIV - col1 AS col2 FROM tab2 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6140
SELECT + col2 / - col1 AS col2 FROM tab2 cor0
----
-2
0
0

query I rowsort
SELECT + cor0.col1 + col1 + col1 AS col2 FROM tab0 AS cor0
----
258
273
291

onlyif mysql # use DIV operator for integer division
query I rowsort label-6142
SELECT DISTINCT - col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT - col1 / + col1 AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - - col2 * + col1 + - 55 AS col1 FROM tab0 AS cor0
----
2783
42
7407

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6144
SELECT - col1 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6144
SELECT - col1 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6145
SELECT + cor0.col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6145
SELECT + cor0.col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - 98 + col2 AS col0 FROM tab0 cor0
----
-2319
-3429
-8640

onlyif mysql # use DIV operator for integer division
query I rowsort label-6147
SELECT + col1 DIV - 14 FROM tab0 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-6147
SELECT + col1 / - 14 FROM tab0 AS cor0
----
-6
-6
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6148
SELECT DISTINCT col2 + + ( col2 ) DIV - col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-6148
SELECT DISTINCT col2 + + ( col2 ) / - col2 FROM tab1 AS cor0
----
53
56
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6149
SELECT col2 DIV cor0.col1 + col2 * + col2 FROM tab2 AS cor0
----
1446
676
729

skipif mysql # not compatible
query I rowsort label-6149
SELECT col2 / cor0.col1 + col2 * + col2 FROM tab2 AS cor0
----
1446
676
729

query I rowsort
SELECT + col1 + 60 AS col1 FROM tab0 AS cor0
----
146
151
157

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6151
SELECT DISTINCT - - col2 - + CAST( + 35 + + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-19
-42
16

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT - - col2 - + CAST ( + 35 + + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-19
-42
16

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 * + col1 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-6153
SELECT col0 * col1 DIV + ( - col1 ) FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6153
SELECT col0 * col1 / + ( - col1 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + - ( 61 ) AS col1 FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT ALL + - 59 * + col0 + - col2 AS col1 FROM tab0 AS cor0
----
-1449
-2066
-5333

onlyif mysql # use DIV operator for integer division
query I rowsort label-6156
SELECT ALL - + col2 DIV 89 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL - + col2 / 89 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6157
SELECT ALL + 10 + col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL + 10 + col0 / + col1 AS col2 FROM tab0 AS cor0
----
10
10
10

query I rowsort
SELECT ALL col2 * + col0 + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + 90 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 38 col1 FROM tab2 AS cor0
----
-38

query I rowsort
SELECT + col1 * col1 + + col2 AS col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT 15 * + col1 + col0 AS col0 FROM tab0 AS cor0
----
1314
1454
1490

query I rowsort
SELECT DISTINCT - col0 * + col0 * + col0 + col0 AS col0 FROM tab2 AS cor0
----
-336
-474474
-492960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6165
SELECT DISTINCT + col1 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT + col1 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 + 28 AS col2 FROM tab0 AS cor0
----
-58
-63
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * + tab0.col1 col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT ( + col0 ) + 94 AS col0 FROM tab1
----
158
174
97

query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT 54 - + 18 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e09b197365a04fabbaaf0718d2ae88c5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 21 + 0 col0 FROM tab2 AS cor0
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) - cor0.col2 col0 FROM tab2 cor0
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6173
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6173
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 + col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL cor0.col1 + - col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT col1 - + ( + cor0.col2 ) * col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT 29 * + col2 FROM tab0 AS cor0
----
2378
29
957

query I rowsort
SELECT DISTINCT - 45 * - col1 FROM tab2 AS cor0
----
1395
2655
765

onlyif mysql # use DIV operator for integer division
query I rowsort label-6179
SELECT ALL ( col2 ) + - col2 DIV + col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL ( col2 ) + - col2 / + col1 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 46 col0 FROM tab0
----
132
137
143

query I rowsort
SELECT ALL - 73 * 94 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 50c632e36714227df5183a2c25ea0b8f

query I rowsort
SELECT ALL 1 * 13 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT - ( col2 * col1 ) + col2 AS col1 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT 78 * 10 AS col0 FROM tab2
----
780
780
780

query I rowsort
SELECT DISTINCT + tab0.col0 + col1 * col0 AS col2 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - 71 + cor0.col2 * col2 FROM tab0 cor0
----
-70
1018
6653

query I rowsort
SELECT DISTINCT + 58 + 10 FROM tab2
----
68

query I rowsort
SELECT col1 + 20 FROM tab0
----
106
111
117

query I rowsort
SELECT DISTINCT col2 * + col0 + + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL + col1 + 86 AS col2 FROM tab1 AS cor0
----
112
96
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + ( + col0 * - col2 ) col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT col0 * - col0 - + col0 AS col0 FROM tab0
----
-1260
-600
-8010

query I rowsort
SELECT DISTINCT + 95 * - col2 FROM tab0
----
-3135
-7790
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col0 FROM tab1
----
69
69
69

query I rowsort
SELECT DISTINCT + ( - col0 ) * - col1 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col1 * col2 * ( + tab0.col2 ) + + col2 AS col2 FROM tab0
----
611966
93687
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6197
SELECT + col1 DIV - col0 + - ( + 46 + col0 ) FROM tab1
----
-110
-126
-57

skipif mysql # not compatible
query I rowsort label-6197
SELECT + col1 / - col0 + - ( + 46 + col0 ) FROM tab1
----
-110
-126
-57

query I rowsort
SELECT col1 + 86 AS col2 FROM tab1
----
112
96
99

query I rowsort
SELECT 81 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT ALL + col0 + + col2 * - 39 AS col0 FROM tab1 AS cor0
----
-2103
-2159
-3664

query I rowsort
SELECT + col2 + col1 * + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT col1 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + col2 * + col1 - col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL - col2 * + 55 AS col0 FROM tab1 AS cor0
----
-2970
-3135
-5280

query I rowsort
SELECT DISTINCT col2 - 97 * + 46 FROM tab2 AS cor0
----
-4424
-4435
-4436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 8 * + col1 col1 FROM tab0 AS cor0
----
646
655
775

query I rowsort
SELECT ALL - + col1 + col0 * - col0 FROM tab2 AS cor0
----
-6143
-6258
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 63 col0 FROM tab1 AS cor0
----
3402
3591
6048

query I rowsort
SELECT ALL + 82 FROM tab2, tab2 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL - tab2.col2 * + ( 23 ) AS col2 FROM tab2
----
-598
-621
-874

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6211
SELECT ALL - CAST( - 24 AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL - CAST ( - 24 AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL - ( - 26 ) AS col2 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT 8 * - ( col2 ) FROM tab2 AS cor0
----
-208
-216
-304

query I rowsort
SELECT ALL + + 24 AS col1 FROM tab1 AS cor0
----
24
24
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6215
SELECT DISTINCT - col0 DIV + col2 AS col1 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT - col0 / + col2 AS col1 FROM tab0 cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + 33 * col1 col1 FROM tab1 AS cor0
----
320
416
832

query I rowsort
SELECT ALL - + ( + 25 ) FROM tab1 AS cor0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT - - 85 AS col2 FROM tab1 AS cor0
----
85

query I rowsort
SELECT + 26 * + col0 FROM tab0 AS cor0
----
2314
624
910

query I rowsort
SELECT - - 12 * - 89 FROM tab1 AS cor0
----
-1068
-1068
-1068

query I rowsort
SELECT + - ( col2 ) + cor0.col1 * + col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6222
SELECT - CAST( + 59 AS SIGNED ) * col1 AS col2 FROM tab0 cor0
----
-5074
-5369
-5723

skipif mysql # not compatible
query I rowsort label-6222
SELECT - CAST ( + 59 AS INTEGER ) * col1 AS col2 FROM tab0 cor0
----
-5074
-5369
-5723

query I rowsort
SELECT ALL + ( col2 ) * col1 + - 40 FROM tab2 AS cor0
----
1494
606
797

query I rowsort
SELECT DISTINCT + 42 * - col1 + 59 + - ( col2 ) * - ( 63 ) AS col2 FROM tab0 AS cor0
----
-1474
-3952
1403

query I rowsort
SELECT ALL + col2 + cor0.col0 * 74 AS col2 FROM tab1 cor0
----
276
4793
6016

onlyif mysql # use DIV operator for integer division
query I rowsort label-6226
SELECT DISTINCT - cor0.col1 + cor0.col1 DIV col1 AS col1 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT - cor0.col1 + cor0.col1 / col1 AS col1 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT + col1 + - col2 * + 6 FROM tab1 AS cor0
----
-298
-332
-563

query I rowsort
SELECT DISTINCT col1 + + col1 * col1 AS col0 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT col1 * cor0.col2 * + col0 + + 81 * - col1 AS col2 FROM tab2 AS cor0
----
114873
3348
49657

onlyif mysql # use DIV operator for integer division
query I rowsort label-6230
SELECT ALL col1 + - col0 DIV - col1 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL col1 + - col0 / - col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT + + 24 * - col1 FROM tab2 AS cor0
----
-1416
-408
-744

query I rowsort
SELECT + col2 + + col2 * - 66 AS col1 FROM tab2 AS cor0
----
-1690
-1755
-2470

query I rowsort
SELECT DISTINCT - col1 * + col1 * - col0 + + col1 FROM tab1
----
13533
2054
6410

query I rowsort
SELECT ALL ( col0 ) + + tab0.col2 + 63 FROM tab0
----
120
234
99

query I rowsort
SELECT + ( col2 ) * col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6237
SELECT ALL - CAST( + ( col0 ) AS SIGNED ) AS col0 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL - CAST ( + ( col0 ) AS INTEGER ) AS col0 FROM tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + col1 col0 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT ALL + 77 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT - tab0.col0 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT + - ( - 65 ) * col2 AS col1 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT DISTINCT - - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
24
35
89

query I rowsort
SELECT + col2 * 65 AS col2 FROM tab1
----
3510
3705
6240

query I rowsort
SELECT ALL 69 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT 10 + - 17 FROM tab2, tab1 cor0
----
-7

query I rowsort
SELECT ALL col1 + ( 82 ) * + cor0.col2 AS col1 FROM tab0 cor0
----
179
2792
6815

query I rowsort
SELECT - col2 * 61 AS col1 FROM tab1
----
-3294
-3477
-5856

query I rowsort
SELECT DISTINCT 51 * 10 AS col0 FROM tab0, tab1, tab1 cor0
----
510

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6249
SELECT - cor0.col2 * - cor0.col0 * CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6249
SELECT - cor0.col2 * - cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col0 * 73 FROM tab1
----
219
4672
5840

query I rowsort
SELECT ALL - ( - tab2.col1 ) AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT col2 * + ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + 8 + 27 AS col0 FROM tab1 AS cor0
----
35
35
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6254
SELECT - CAST( col0 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-6254
SELECT - CAST ( col0 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col1 * 14 FROM tab2 AS cor0
----
238
434
826

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6256
SELECT - cor0.col0 + cor0.col1 + col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6256
SELECT - cor0.col0 + cor0.col1 + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 76 + - col1 AS col1 FROM tab0
----
-162
-167
-173

query I rowsort
SELECT ALL - col0 + + col1 * 44 AS col2 FROM tab1 AS cor0
----
1141
376
492

query I rowsort
SELECT + tab1.col2 + col1 * - ( ( col2 ) ) FROM tab1
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-6260
SELECT DISTINCT - - col0 DIV - cor0.col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT - - col0 / - cor0.col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ALL col0 * - 16 * - col1 FROM tab1
----
10240
1248
16640

query I rowsort
SELECT + 33 * - ( + cor1.col0 + - 11 ) FROM tab0, tab2 cor0, tab0 cor1
----
27 values hashing to 45eaa4023ff6aea1ed96e39f50048422

query I rowsort
SELECT ALL - - col0 * cor0.col2 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6264
SELECT + col1 - CAST( - col2 AS SIGNED ) * + col0 * cor0.col0 FROM tab0 AS cor0
----
1322
19094
649613

skipif mysql # not compatible
query I rowsort label-6264
SELECT + col1 - CAST ( - col2 AS INTEGER ) * + col0 * cor0.col0 FROM tab0 AS cor0
----
1322
19094
649613

query I rowsort
SELECT + col2 + 92 FROM tab0 AS cor0
----
125
174
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col2 col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6267
SELECT ALL - col0 DIV - col0 - col1 AS col2 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL - col0 / - col0 - col1 AS col2 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT DISTINCT + col0 + + 43 FROM tab2 AS cor0
----
121
122
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-6269
SELECT ALL - col0 + ( + cor0.col1 ) DIV - col0 FROM tab2 AS cor0
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL - col0 + ( + cor0.col1 ) / - col0 FROM tab2 AS cor0
----
-11
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - ( col2 ) * col1 - ( col1 ) col2 FROM tab2 AS cor0
----
-119711
-51051
-5890

onlyif mysql # use DIV operator for integer division
query I rowsort label-6271
SELECT ALL - col0 * col1 DIV + col0 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL - col0 * col1 / + col0 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col2 * col0 + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL ( + col2 ) + + cor0.col1 * col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-6274
SELECT ALL col1 + cor0.col0 DIV col1 AS col0 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL col1 + cor0.col0 / col1 AS col0 FROM tab1 AS cor0
----
16
19
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6275
SELECT + CAST( NULL AS SIGNED ) * - ( + col1 ) + col0 * 26 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6275
SELECT + CAST ( NULL AS INTEGER ) * - ( + col1 ) + col0 * 26 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 8 * - cor0.col2 + col0 + + 80 * col0 FROM tab0 AS cor0
----
1680
2827
6553

onlyif mysql # use DIV operator for integer division
query I rowsort label-6277
SELECT - col1 DIV 56 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6277
SELECT - col1 / 56 AS col2 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - 5 + - col1 AS col2 FROM tab1 AS cor0
----
-15
-18
-31

query I rowsort
SELECT + col1 * + 93 * col0 AS col1 FROM tab0 AS cor0
----
191952
315735
753207

query I rowsort
SELECT ALL - - col0 * - 48 + + col2 AS col0 FROM tab2 AS cor0
----
-309
-3718
-3754

query I rowsort
SELECT cor0.col1 * 57 + col2 * + ( col0 * col2 ) + col1 FROM tab0 AS cor0
----
31124
5661
603714

query I rowsort
SELECT DISTINCT col1 * 64 AS col0 FROM tab0 AS cor0
----
5504
5824
6208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6284
SELECT DISTINCT + tab2.col0 DIV - 1 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT + tab2.col0 / - 1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab2, tab1 AS cor0
----
87

query I rowsort
SELECT ALL - ( - 94 ) FROM tab1, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT col2 * - ( 23 ) * - col0 AS col2 FROM tab2
----
4347
46644
69046

query I rowsort
SELECT 67 + + tab0.col1 FROM tab0
----
153
158
164

query I rowsort
SELECT DISTINCT + - 25 * + col0 AS col1 FROM tab2 AS cor0
----
-175
-1950
-1975

onlyif mysql # use DIV operator for integer division
query I rowsort label-6290
SELECT DISTINCT + 97 * col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6290
SELECT DISTINCT + 97 * col0 / + col0 AS col0 FROM tab2 AS cor0
----
97

query I rowsort
SELECT DISTINCT - col1 * col2 + ( 7 ) * + col2 AS col0 FROM tab1 AS cor0
----
-1026
-171
-576

query I rowsort
SELECT DISTINCT - - 91 * col2 AS col0 FROM tab1 AS cor0
----
4914
5187
8736

query I rowsort
SELECT ALL + + 52 + col1 AS col0 FROM tab1 AS cor0
----
62
65
78

query I rowsort
SELECT - + 25 * - col0 FROM tab1 AS cor0
----
1600
2000
75

query I rowsort
SELECT ALL - cor0.col2 - + 54 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to ae315c92bf5beec90bc01dde5a7889f4

query I rowsort
SELECT - + 63 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6297
SELECT DISTINCT + + col0 * col2 / CAST( NULL AS SIGNED ) + col2 * + col1 * - ( - col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT + + col0 * col2 / CAST ( NULL AS INTEGER ) + col2 * + col1 * - ( - col2 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + cor0.col0 col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col1 * + ( + col0 + + col0 ) * + col1 AS col1 FROM tab0 AS cor0
----
1474018
355008
658630

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
86
91
97

query I rowsort
SELECT ALL - ( cor0.col0 ) + + 35 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 39485aff7f743fa63854142a97231d6c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 * + col1 col1 FROM tab2 cor0
----
327
3507
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 * col2 col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6304
SELECT col0 + - CAST( col2 AS SIGNED ) * cor0.col2 - col2 AS col2 FROM tab1 AS cor0
----
-2967
-3242
-9232

skipif mysql # not compatible
query I rowsort label-6304
SELECT col0 + - CAST ( col2 AS INTEGER ) * cor0.col2 - col2 AS col2 FROM tab1 AS cor0
----
-2967
-3242
-9232

query I rowsort
SELECT ALL col0 * + 15 FROM tab2 AS cor0
----
105
1170
1185

query I rowsort
SELECT DISTINCT col2 * ( 17 ) * + col2 AS col1 FROM tab1 AS cor0
----
156672
49572
55233

query I rowsort
SELECT + col1 - - ( col2 ) * cor0.col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT cor0.col2 * + cor0.col1 + ( - col0 * 64 ) - - cor0.col2 FROM tab1 AS cor0
----
-3469
-3776
1266

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6309
SELECT ALL - + CAST( NULL AS SIGNED ) / 83 col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL - + CAST ( NULL AS INTEGER ) / 83 col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ( + col0 ) * cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col0 * cor0.col1 col0 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6313
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 19 + + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 19 + + col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6314
SELECT 57 DIV col2 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6314
SELECT 57 / col2 AS col1 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ALL - ( col2 ) + + cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-6316
SELECT ALL + + 47 + ( col1 ) * 96 DIV col1 AS col2 FROM tab1 AS cor0
----
143
143
143

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL + + 47 + ( col1 ) * 96 / col1 AS col2 FROM tab1 AS cor0
----
143
143
143

query I rowsort
SELECT ALL - col1 + + 83 * col2 AS col2 FROM tab0 AS cor0
----
-14
2653
6715

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) * col1 + - 34 col0 FROM tab1 AS cor0
----
1006
44
606

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6319
SELECT col1 + - col2 / CAST( NULL AS SIGNED ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6319
SELECT col1 + - col2 / CAST ( NULL AS INTEGER ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 * col2 * - col0 col2 FROM tab1 AS cor0
----
-14256
-321024
-675840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 col1 FROM tab0 cor0
----
-40

query I rowsort
SELECT + + 39 AS col2 FROM tab1 cor0
----
39
39
39

query I rowsort
SELECT 44 + - col0 AS col1 FROM tab2 AS cor0
----
-34
-35
37

query I rowsort
SELECT col1 * col0 + col0 * - ( tab0.col1 ) FROM tab0
----
0
0
0

query I rowsort
SELECT 5 + 17 * col2 AS col1 FROM tab1
----
1637
923
974

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6326
SELECT CAST( 52 AS SIGNED ) + - col1 FROM tab2
----
-7
21
35

skipif mysql # not compatible
query I rowsort label-6326
SELECT CAST ( 52 AS INTEGER ) + - col1 FROM tab2
----
-7
21
35

query I rowsort
SELECT + col1 + + 65 * - col2 AS col2 FROM tab2
----
-1631
-1724
-2453

query I rowsort
SELECT 13 * - col1 FROM tab2 AS cor0
----
-221
-403
-767

query I rowsort
SELECT - 13 * col0 FROM tab2 AS cor0
----
-1014
-1027
-91

query I rowsort
SELECT DISTINCT 88 * cor1.col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
1496
2728
5192

query I rowsort
SELECT - 44 * col1 AS col0 FROM tab2 AS cor0
----
-1364
-2596
-748

query I rowsort
SELECT + ( 21 ) + + tab0.col1 * tab0.col0 * + 64 AS col2 FROM tab0
----
132117
217301
518357

query I rowsort
SELECT DISTINCT - ( + col2 ) * col2 AS col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT 71 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT + col1 * - 7 * col1 FROM tab0 AS cor0
----
-51772
-57967
-65863

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 * col0 col1 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT + 61 + col2 AS col2 FROM tab1 cor0
----
115
118
157

query I rowsort
SELECT ALL - col1 * - ( + col0 ) + col1 AS col2 FROM tab2
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6340
SELECT + CAST( NULL AS SIGNED ) * col0 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6340
SELECT + CAST ( NULL AS INTEGER ) * col0 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 1 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT DISTINCT col1 + - ( + col2 ) AS col0 FROM tab0
----
53
9
96

query I rowsort
SELECT ALL - cor0.col1 * col0 - col0 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6344
SELECT - col0 DIV - ( - 70 ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6344
SELECT - col0 / - ( - 70 ) FROM tab2
----
-1
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6345
SELECT + col0 * ( - 76 ) DIV - col0 AS col2 FROM tab2
----
76
76
76

skipif mysql # not compatible
query I rowsort label-6345
SELECT + col0 * ( - 76 ) / - col0 AS col2 FROM tab2
----
76
76
76

query I rowsort
SELECT DISTINCT - col1 + col1 * col2 + - col2 AS col0 FROM tab2
----
1449
591
779

query I rowsort
SELECT - tab1.col1 * col1 * col1 AS col1 FROM tab1
----
-1000
-17576
-2197

query I rowsort
SELECT 86 * tab2.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 4a425fd1fe865edf3d551d399e553ffe

query I rowsort
SELECT DISTINCT + 47 + + 60 * - col2 AS col2 FROM tab1 AS cor0
----
-3193
-3373
-5713

query I rowsort
SELECT ALL 27 * + col1 FROM tab2 cor0
----
1593
459
837

query I rowsort
SELECT - + col2 * + 4 FROM tab2 AS cor0
----
-104
-108
-152

query I rowsort
SELECT - - 68 * col2 AS col1 FROM tab2 AS cor0
----
1768
1836
2584

query I rowsort
SELECT ( ( + cor0.col2 ) ) * - 54 AS col2 FROM tab2 AS cor0
----
-1404
-1458
-2052

query I rowsort
SELECT ALL - - ( 85 ) * col2 FROM tab0 AS cor0
----
2805
6970
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6355
SELECT DISTINCT + + col1 DIV - cor0.col0 AS col0 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT + + col1 / - cor0.col0 AS col0 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT col1 + ( - cor0.col2 * + ( col1 ) ) - + col0 AS col2 FROM tab2 AS cor0
----
-1553
-708
-813

query I rowsort
SELECT DISTINCT + col2 * col1 + ( tab0.col0 ) + + col0 FROM tab0
----
167
2886
7640

query I rowsort
SELECT col0 + 75 + 62 FROM tab0 AS cor0
----
161
172
226

query I rowsort
SELECT ALL + col1 * + ( - 17 ) FROM tab2
----
-1003
-289
-527

onlyif mysql # use DIV operator for integer division
query I rowsort label-6360
SELECT + col1 DIV ( + col1 ) - col0 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-6360
SELECT + col1 / ( + col1 ) - col0 FROM tab1
----
-2
-63
-79

query I rowsort
SELECT DISTINCT + col2 * + col2 * col0 + - tab2.col2 * - col1 + - tab2.col2 FROM tab2
----
114684
54236
5913

query I rowsort
SELECT ALL col1 * 24 FROM tab1 AS cor0
----
240
312
624

onlyif mysql # use DIV operator for integer division
query I rowsort label-6363
SELECT ( - cor0.col1 ) DIV col0 col2 FROM tab2 AS cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6363
SELECT ( - cor0.col1 ) / col0 col2 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT ALL - ( + 15 ) * - col1 FROM tab1 AS cor0
----
150
195
390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * + 24 col0 FROM tab0 AS cor0
----
1800
1800
1800

query I rowsort
SELECT + 28 * cor0.col1 AS col0 FROM tab1 AS cor0
----
280
364
728

query I rowsort
SELECT DISTINCT ( + ( + col0 ) ) + 20 FROM tab2 AS cor0
----
27
98
99

query I rowsort
SELECT 9 * 32 + col0 + + col1 FROM tab1 AS cor0
----
317
362
381

query I rowsort
SELECT + - col1 - col0 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - + col2 - col2 * col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT + + col0 * - col2 + col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ( + cor0.col2 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 col1 FROM tab0
----
-54
-54
-54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6374
SELECT + col0 * - cor0.col1 - CAST( NULL AS SIGNED ) / 83 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT + col0 * - cor0.col1 - CAST ( NULL AS INTEGER ) / 83 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 95 + col1 FROM tab0 AS cor0
----
181
186
192

query I rowsort
SELECT DISTINCT + 73 + col2 FROM tab2 AS cor0
----
100
111
99

query I rowsort
SELECT col0 * col0 * tab2.col2 AS col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT + col0 * cor0.col1 + ( col2 ) + + 37 AS col0 FROM tab2 AS cor0
----
1418
281
4665

query I rowsort
SELECT DISTINCT + col2 * + 27 FROM tab0 AS cor0
----
2214
27
891

query I rowsort
SELECT - 55 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6381
SELECT + 11 DIV - 91 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6381
SELECT + 11 / - 91 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + col0 - ( - cor0.col1 ) AS col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT col2 * cor0.col2 * + 27 FROM tab0 AS cor0
----
181548
27
29403

query I rowsort
SELECT - cor0.col2 + + col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL - + col2 * + ( col1 ) + - col1 * ( cor0.col2 ) + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-22386
-291
-8514

query I rowsort
SELECT - col1 * col2 * col0 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-6387
SELECT ALL col2 + + cor0.col0 * col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
-11
-5
27

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL col2 + + cor0.col0 * col0 / - col1 AS col1 FROM tab0 AS cor0
----
-11
-5
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-6388
SELECT ALL + + col0 - + col2 DIV col0 col2 FROM tab2 cor0
----
4
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL + + col0 - + col2 / col0 col2 FROM tab2 cor0
----
4
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6389
SELECT + 91 DIV col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6389
SELECT + 91 / col2 FROM tab1
----
0
1
1

query I rowsort
SELECT + 43 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT - tab0.col1 + + col2 - col1 * + col1 FROM tab0
----
-7449
-8290
-9505

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6393
SELECT DISTINCT 99 DIV + 9 FROM tab1, tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT 99 / + 9 FROM tab1, tab2 AS cor0
----
11

query I rowsort
SELECT - col2 - + col1 * ( + col1 + - ( 85 ) ) AS col0 FROM tab1 AS cor0
----
1480
693
840

query I rowsort
SELECT ALL - col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col0 + cor0.col2 * col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT col2 + - col1 * - col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - + ( + ( - col1 ) ) * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + 47 * col2 AS col0 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT ALL 57 * col1 FROM tab1
----
1482
570
741

query I rowsort
SELECT DISTINCT tab2.col0 - col2 AS col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT col2 - col0 * ( + ( - col2 ) ) FROM tab0
----
36
7380
825

query I rowsort
SELECT 0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6404
SELECT DISTINCT - col0 / cor0.col1 - CAST( NULL AS DECIMAL ) / col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6404
SELECT DISTINCT - col0 / cor0.col1 - CAST ( NULL AS REAL ) / col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 - col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - 23 FROM tab0, tab0 AS cor0, tab2 cor1
----
-23

query I rowsort
SELECT DISTINCT + ( col2 ) * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE col1 NOT BETWEEN + col1 AND col0 - + col0 / col2
----
26

query I rowsort
SELECT tab2.col1 + - col0 + - col2 * - col1 FROM tab2
----
1515
584
861

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 * col2 col0 FROM tab0 WHERE NULL NOT IN ( + col1 * - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + col0 * - col1 + + col2 * - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 > NULL
----

query I rowsort
SELECT - col0 + col0 - - col0 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT + tab1.col0 + - col1 AS col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT - col0 * tab0.col2 + col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT ALL + tab1.col0 + col1 * col2 FROM tab1
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 + - col0 col2 FROM tab0
----
2814
62
7373

query III rowsort
SELECT * FROM tab1 WHERE col1 * + col2 * + col0 <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6419
SELECT + col0 + tab0.col2 DIV col2 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-6419
SELECT + col0 + tab0.col2 / col2 FROM tab0
----
25
36
90

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

query I rowsort
SELECT ALL + col0 * col1 - + col1 FROM tab1
----
1027
52
630

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <= ( NULL )
----

query I rowsort
SELECT ALL - col2 * - col0 + - col2 AS col1 FROM tab0
----
34
7216
759

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( col1 * + col0 ) AND ( NULL )
----

query I rowsort
SELECT - tab0.col1 * + col0 + - col0 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT col0 * - col1 * - col2 AS col0 FROM tab1
----
36480
4212
99840

query III rowsort
SELECT * FROM tab1 WHERE tab1.col1 + - col0 NOT IN ( col1 * - col0 * - col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT ALL - cor0.col2 * + col0 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6429
SELECT col0 * + col1 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6429
SELECT col0 * + col1 / cor0.col1 AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + cor0.col2 FROM tab2, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT col1 + - cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT col1 * - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col1 FROM tab2 AS cor0 WHERE col2 + col2 NOT BETWEEN + col0 AND - col1 / + col0
----
137
38
96

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + col2 * + col1 IN ( col2 + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL tab2.col0 + col1 * + col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT ALL + col0 * - col1 + + col0 * col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6437
SELECT ALL - col2 + col2 DIV col2 AS col1 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL - col2 + col2 / col2 AS col1 FROM tab1
----
-53
-56
-95

query I rowsort
SELECT - col0 * - col0 + tab2.col1 AS col2 FROM tab2
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6439
SELECT ALL - tab2.col1 * + col1 + - tab2.col0 + - col0 DIV - col1 FROM tab2
----
-3558
-364
-968

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL - tab2.col1 * + col1 + - tab2.col0 + - col0 / - col1 FROM tab2
----
-3558
-364
-968

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> ( - col2 + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + - col2 col1 FROM tab2
----
251
3455
934

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( col1 * - tab1.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6443
SELECT DISTINCT col1 + col2 DIV + col1 AS col2 FROM tab2
----
19
31
59

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT col1 + col2 / + col1 AS col2 FROM tab2
----
19
31
59

query I rowsort
SELECT col1 + tab0.col2 * col2 + col0 FROM tab0
----
1199
133
6904

query I rowsort
SELECT ALL cor1.col1 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6446
SELECT CAST( 76 AS SIGNED ) * + col0 FROM tab1
----
228
4864
6080

skipif mysql # not compatible
query I rowsort label-6446
SELECT CAST ( 76 AS INTEGER ) * + col0 FROM tab1
----
228
4864
6080

query I rowsort
SELECT ALL - + col0 + 77 FROM tab1 AS cor0
----
-3
13
74

query I rowsort
SELECT - + col1 * col1 * + cor0.col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT col2 * col2 - col1 FROM tab0 AS cor0
----
-96
1003
6633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 - + tab2.col2 col2 FROM tab2, tab1 AS cor0
----
19
30
31

query I rowsort
SELECT cor0.col1 * col2 + + 71 * - col0 + col1 * 18 AS col1 FROM tab0 AS cor0
----
-642
2682
2781

query I rowsort
SELECT - 90 + col0 * col1 * 91 AS col0 FROM tab1 cor0
----
58150
7008
94550

onlyif mysql # use DIV operator for integer division
query I rowsort label-6453
SELECT ALL col2 DIV - 13 FROM tab0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL col2 / - 13 FROM tab0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + ( col1 ) AS REAL ) AS col0 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6455
SELECT + col0 DIV + ( col1 ) + 55 * 9 + col0 AS col2 FROM tab1
----
498
565
581

skipif mysql # not compatible
query I rowsort label-6455
SELECT + col0 / + ( col1 ) + 55 * 9 + col0 AS col2 FROM tab1
----
498
565
581

query I rowsort
SELECT DISTINCT + - col2 + - 77 AS col1 FROM tab2 AS cor0
----
-103
-104
-115

onlyif mysql # use DIV operator for integer division
query I rowsort label-6457
SELECT DISTINCT - col0 + + ( - 16 + cor0.col0 ) DIV + col2 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT - col0 + + ( - 16 + cor0.col0 ) / + col2 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6458
SELECT DISTINCT + col1 + - ( - ( cor0.col2 ) ) / - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT + col1 + - ( - ( cor0.col2 ) ) / - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 * col1 + - col0 * 58 FROM tab2
----
-2990
-3936
431

query I rowsort
SELECT 21 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ( cor0.col1 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6462
SELECT DISTINCT - cor1.col2 + - CAST( 34 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1
----
-60
-61
-72

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT - cor1.col2 + - CAST ( 34 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1
----
-60
-61
-72

query I rowsort
SELECT DISTINCT col1 * - 34 FROM tab2 AS cor0
----
-1054
-2006
-578

onlyif mysql # use DIV operator for integer division
query I rowsort label-6464
SELECT DISTINCT - col1 + + col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT - col1 + + col1 / col0 AS col2 FROM tab1 AS cor0
----
-10
-13
-18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6465
SELECT DISTINCT - - col1 + CAST( col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT - - col1 + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6466
SELECT ALL - + col2 + CAST( col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL - + col2 + CAST ( col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6467
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col0 FROM tab0
----
NULL

query I rowsort
SELECT + 96 * col0 FROM tab2
----
672
7488
7584

query I rowsort
SELECT DISTINCT 55 * ( col0 + + col1 * + col1 ) FROM tab1
----
13695
37345
9020

query I rowsort
SELECT + 15 + col2 AS col0 FROM tab0 AS cor0
----
16
48
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6471
SELECT ALL + ( col2 ) DIV col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL + ( col2 ) / col0 FROM tab0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6472
SELECT ALL - ( - tab0.col2 ) DIV col1 - col2 DIV col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL - ( - tab0.col2 ) / col1 - col2 / col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 85 + col0 * - cor0.col1 FROM tab2 AS cor0
----
-1258
-132
-4517

query I rowsort
SELECT - + ( + col1 ) * + col2 + + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - 49 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1294
168
4553

query I rowsort
SELECT - 6 * cor0.col2 * + col2 AS col0 FROM tab2 AS cor0
----
-4056
-4374
-8664

query I rowsort
SELECT DISTINCT + col2 * col1 + - col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL - + cor0.col2 * - col0 * col0 - col0 AS col0 FROM tab1 AS cor0
----
233408
483
614320

query I rowsort
SELECT - + col0 + - col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - col1 + col0 * cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
233462
460
614387

query I rowsort
SELECT col2 + + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1482
702
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-6482
SELECT + 61 DIV + col1 col1 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6482
SELECT + 61 / + col1 col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 70 AS col1 FROM tab2, tab0 cor0
----
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6484
SELECT + col1 + col2 DIV + col2 FROM tab1 cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-6484
SELECT + col1 + col2 / + col2 FROM tab1 cor0
----
11
14
27

query I rowsort
SELECT - - col1 * ( - cor0.col1 + col0 ) FROM tab0 AS cor0
----
-182
-5332
-6014

query I rowsort
SELECT + + cor0.col2 + 14 - + col0 * - col2 * + col0 FROM tab2 AS cor0
----
1364
158224
237210

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6487
SELECT ALL - - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL - - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - col2 + + col0 + col0 col2 FROM tab0 AS cor0
----
105
7476
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * col2 + + col0 * + col2 col0 FROM tab0 cor0
----
14022
1881
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - col1 * col2 col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT + col0 * col0 * col0 + col2 * col1 AS col0 FROM tab0 AS cor0
----
16662
42972
712431

query I rowsort
SELECT ALL - col0 * col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT col2 * + col0 + cor0.col0 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT + + col0 * + col2 + + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 - - col2 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 + + col1 col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL + col2 - col2 * col2 FROM tab1
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-6498
SELECT DISTINCT col2 - col2 DIV col0 FROM tab1
----
36
57
95

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT col2 - col2 / col0 FROM tab1
----
36
57
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6499
SELECT cor0.col0 * - col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6499
SELECT cor0.col0 * - col1 / col1 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT tab0.col1 - col0 AS col1 FROM tab0
----
2
62
62

query I rowsort
SELECT col0 * col2 * col0 AS col0 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT + col1 - + col0 AS col2 FROM tab2
----
-19
-62
24

query I rowsort
SELECT DISTINCT + - col2 * - col0 * + col2 - - col2 FROM tab2 AS cor0
----
114114
5130
52754

query I rowsort
SELECT + - col2 * - col0 + - col1 AS col2 FROM tab1 cor0
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-6505
SELECT ALL - col1 * col1 + - col0 DIV - col1 + col0 FROM tab2 AS cor0
----
-206
-3402
-954

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL - col1 * col1 + - col0 / - col1 + col0 FROM tab2 AS cor0
----
-206
-3402
-954

query I rowsort
SELECT 80 * + tab0.col0 FROM tab0
----
1920
2800
7120

query I rowsort
SELECT DISTINCT 97 * col1 AS col1 FROM tab1
----
1261
2522
970

onlyif mysql # use DIV operator for integer division
query I rowsort label-6508
SELECT - tab0.col2 DIV col2 - col0 AS col0 FROM tab0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-6508
SELECT - tab0.col2 / col2 - col0 AS col0 FROM tab0
----
-25
-36
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6509
SELECT col0 DIV col2 + col1 AS col0 FROM tab0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-6509
SELECT col0 / col2 + col1 AS col0 FROM tab0
----
132
86
92

query I rowsort
SELECT tab0.col2 + tab0.col0 * col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT - col0 * tab1.col2 + - tab1.col0 * tab1.col1 AS col0 FROM tab1
----
-240
-4288
-8720

query I rowsort
SELECT - cor0.col0 + - col2 FROM tab0 cor0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6513
SELECT ALL + col2 + - CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL + col2 + - CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + col0 * col0 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + - cor0.col0 + - 37 + + col1 FROM tab1 AS cor0
----
-104
-14
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + + col0 * + col2 + col1 + col0 FROM tab0 AS cor0
----
167
7478
902

query I rowsort
SELECT cor0.col1 * col1 + + col2 AS col1 FROM tab0 cor0
----
7429
8363
9410

query I rowsort
SELECT ALL col0 * + cor0.col0 + col1 FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-6520
SELECT col2 + ( + col1 ) DIV col1 AS col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-6520
SELECT col2 + ( + col1 ) / col1 AS col0 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT + col1 + - 2 AS col0 FROM tab1 AS cor0
----
11
24
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 * col2 + - col0 * - col1 col0 FROM tab1 cor0
----
1200
1456
2275

onlyif mysql # use DIV operator for integer division
query I rowsort label-6523
SELECT + col1 + cor0.col0 DIV 58 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6523
SELECT + col1 + cor0.col0 / 58 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6524
SELECT - + 83 * + cor0.col1 DIV + col1 - col0 * - col1 * 12 FROM tab0 AS cor0
----
24685
40657
97105

skipif mysql # not compatible
query I rowsort label-6524
SELECT - + 83 * + cor0.col1 / + col1 - col0 * - col1 * 12 FROM tab0 AS cor0
----
24685
40657
97105

query I rowsort
SELECT DISTINCT + - cor0.col2 - - col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( 10 ) * + col2 FROM tab0
----
10
330
820

onlyif mysql # use DIV operator for integer division
query I rowsort label-6527
SELECT ALL cor0.col2 DIV 95 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL cor0.col2 / 95 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT ALL + 68 + + col1 FROM tab2
----
127
85
99

query I rowsort
SELECT + col0 + + col1 * + ( col1 ) + col1 AS col0 FROM tab2
----
3618
385
999

query I rowsort
SELECT ALL + col2 * col1 + + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT col0 * + col2 + 53 AS col1 FROM tab0 AS cor0
----
7351
845
88

query I rowsort
SELECT DISTINCT col0 * cor0.col1 * col1 + col1 FROM tab0 AS cor0
----
177590
329412
737100

query I rowsort
SELECT ALL col2 * + col0 + ( ( col2 ) ) + + 85 AS col2 FROM tab0 AS cor0
----
121
7465
910

query I rowsort
SELECT DISTINCT col0 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - 43 - - col0 AS col0 FROM tab1 cor0
----
-40
21
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-6536
SELECT + + ( - col2 ) DIV col0 - + 48 * - col0 FROM tab1 AS cor0
----
126
3072
3839

skipif mysql # not compatible
query I rowsort label-6536
SELECT + + ( - col2 ) / col0 - + 48 * - col0 FROM tab1 AS cor0
----
126
3072
3839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6537
SELECT DISTINCT 69 - col2 * - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
104
7367
861

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT 69 - col2 * - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
104
7367
861

query I rowsort
SELECT ALL col0 * col2 * 43 FROM tab0
----
1505
313814
34056

query I rowsort
SELECT - - cor0.col0 - - col1 FROM tab2 cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6540
SELECT DISTINCT - + ( ( col0 ) ) DIV ( col1 ) col0 FROM tab2 AS cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6540
SELECT DISTINCT - + ( ( col0 ) ) / ( col1 ) col0 FROM tab2 AS cor0
----
-1
-4
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6541
SELECT ALL + + CAST( NULL AS DECIMAL ) + ( col0 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL + + CAST ( NULL AS REAL ) + ( col0 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 col0 FROM tab0, tab1, tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col0 col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT 27 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6545
SELECT CAST( NULL AS DECIMAL ) / 0 + - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6545
SELECT CAST ( NULL AS REAL ) / 0 + - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 * + col1 * - col1 FROM tab1 AS cor0
----
1000
17576
2197

onlyif mysql # use DIV operator for integer division
query I rowsort label-6547
SELECT DISTINCT - + cor0.col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT - + cor0.col1 / - col0 AS col2 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT ALL - 25 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 6f83d63ca9889b3b99826987c718bda8

query I rowsort
SELECT + 44 * + 44 FROM tab1 AS cor0
----
1936
1936
1936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6550
SELECT DISTINCT - col0 * + 34 + + col2 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT - col0 * + 34 + + col2 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 90 * + col0 - + col1 * - col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
107040
42240
4482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 35 ) col1 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT ALL col1 + cor0.col0 * - col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL col2 + + ( + col1 + col2 * + col2 ) FROM tab0 AS cor0
----
1208
6897
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6555
SELECT ALL - cor0.col2 DIV cor0.col0 + - col0 FROM tab1 cor0
----
-21
-64
-81

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL - cor0.col2 / cor0.col0 + - col0 FROM tab1 cor0
----
-21
-64
-81

query I rowsort
SELECT + + 41 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6557
SELECT + - CAST( col2 AS SIGNED ) * col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6557
SELECT + - CAST ( col2 AS INTEGER ) * col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6558
SELECT DISTINCT - 38 - col1 DIV + col2 FROM tab0
----
-135
-39
-40

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT - 38 - col1 / + col2 FROM tab0
----
-135
-39
-40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6559
SELECT CAST( + col2 AS SIGNED ) * - col2 + col1 * col1 FROM tab2
----
-1155
232
2805

skipif mysql # not compatible
query I rowsort label-6559
SELECT CAST ( + col2 AS INTEGER ) * - col2 + col1 * col1 FROM tab2
----
-1155
232
2805

query I rowsort
SELECT ALL + tab1.col0 - col2 * + tab1.col1 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT 53 * + col2 * col0 + + col2 FROM tab1
----
193401
407136
8640

onlyif mysql # use DIV operator for integer division
query I rowsort label-6562
SELECT - tab2.col2 DIV - 3 AS col1 FROM tab2
----
12
8
9

skipif mysql # not compatible
query I rowsort label-6562
SELECT - tab2.col2 / - 3 AS col1 FROM tab2
----
12
8
9

query I rowsort
SELECT - col2 * tab0.col1 * tab0.col2 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT col0 * + col2 - col1 AS col2 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-6565
SELECT ALL ( col1 ) DIV col0 - + col0 * 83 DIV col1 AS col2 FROM tab1
----
-1
-510
-531

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL ( col1 ) / col0 - + col0 * 83 / col1 AS col2 FROM tab1
----
-1
-510
-531

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6566
SELECT ALL CAST( NULL AS SIGNED ) - - 37 / col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL CAST ( NULL AS INTEGER ) - - 37 / col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 - - cor0.col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + ( - col2 ) * + col0 AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + - cor0.col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT DISTINCT - 1 + col1 AS col0 FROM tab1
----
12
25
9

query I rowsort
SELECT DISTINCT + col1 * + col0 * + col0 + col1 * + col0 AS col2 FROM tab0
----
122220
51600
728910

query I rowsort
SELECT + 93 - - col2 AS col0 FROM tab2
----
119
120
131

query I rowsort
SELECT ALL - + 53 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col2 col0 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6575
SELECT + col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6575
SELECT + col0 / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col0 + 28 + 79 FROM tab1 AS cor0
----
104
27
43

query I rowsort
SELECT - col0 * 34 AS col0 FROM tab0 cor0
----
-1190
-3026
-816

query I rowsort
SELECT tab0.col2 * col0 + tab0.col0 * col1 AS col0 FROM tab0
----
15397
2856
3430

query I rowsort
SELECT - tab2.col0 * - 90 - ( - col0 + ( 93 ) ) FROM tab2
----
544
7005
7096

onlyif mysql # use DIV operator for integer division
query I rowsort label-6580
SELECT ALL col0 DIV - 30 AS col1 FROM tab2
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL col0 / - 30 AS col1 FROM tab2
----
-2
-2
0

query I rowsort
SELECT DISTINCT col0 + col1 * col1 AS col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT + ( col0 ) * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL 66 * 38 AS col2 FROM tab1 cor0
----
2508
2508
2508

query I rowsort
SELECT DISTINCT + 97 + col2 FROM tab0 AS cor0
----
130
179
98

query I rowsort
SELECT DISTINCT - col1 - - col2 * + cor0.col2 * 18 FROM tab0 AS cor0
----
-79
120941
19516

query I rowsort
SELECT ALL + col2 - 14 * col0 AS col1 FROM tab1 cor0
----
-1024
-839
12

query I rowsort
SELECT + + 48 AS col1 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT - - col2 * + 18 FROM tab1 AS cor0
----
1026
1728
972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 + col0 col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - - 72 * - col0 FROM tab2 AS cor0
----
-504
-5616
-5688

query I rowsort
SELECT col0 * + col2 - 24 FROM tab1
----
138
3624
7656

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6592
SELECT DISTINCT + - CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6592
SELECT DISTINCT + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - ( + col1 ) * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6594
SELECT + CAST( 22 AS SIGNED ) * + col1 AS col2 FROM tab1 AS cor0
----
220
286
572

skipif mysql # not compatible
query I rowsort label-6594
SELECT + CAST ( 22 AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0
----
220
286
572

query I rowsort
SELECT - ( - col1 ) * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + 47 - + col1 AS col0 FROM tab1 AS cor0
----
21
34
37

query I rowsort
SELECT + + col0 * col0 + cor0.col0 FROM tab2 cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-6598
SELECT DISTINCT + 77 + - col2 DIV - col1 FROM tab2 AS cor0
----
77
79

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT + 77 + - col2 / - col1 FROM tab2 AS cor0
----
77
79

query I rowsort
SELECT DISTINCT - 81 + col0 FROM tab1 AS cor0
----
-1
-17
-78

query I rowsort
SELECT - + 11 FROM tab0 cor0
----
-11
-11
-11

query I rowsort
SELECT - 76 * col1 - + col2 FROM tab2 AS cor0
----
-1330
-2383
-4510

query I rowsort
SELECT DISTINCT - 34 + col2 FROM tab1 AS cor0
----
20
23
62

query I rowsort
SELECT ( + col2 ) * + 75 + 35 + col2 AS col1 FROM tab0 AS cor0
----
111
2543
6267

query I rowsort
SELECT DISTINCT + + 90 + col1 FROM tab1 cor0
----
100
103
116

query I rowsort
SELECT DISTINCT + ( col0 ) + + ( 9 ) AS col2 FROM tab0 AS cor0
----
33
44
98

query I rowsort
SELECT + col0 * - col0 + - 63 AS col1 FROM tab1 AS cor0
----
-4159
-6463
-72

query I rowsort
SELECT + col2 * col2 + 46 FROM tab2 cor0
----
1490
722
775

query I rowsort
SELECT ALL - 75 * col2 FROM tab1 AS cor0
----
-4050
-4275
-7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 + col0 * col0 + + col0 * ( - 41 ) col1 FROM tab1 AS cor0
----
10800
48
5120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 39 + - col2 col2 FROM tab1 AS cor0
----
-135
-93
-96

query I rowsort
SELECT - + col1 * 30 FROM tab2 AS cor0
----
-1770
-510
-930

query I rowsort
SELECT DISTINCT col2 * 43 AS col0 FROM tab2 cor0
----
1118
1161
1634

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
1
33
82

query I rowsort
SELECT col2 + col0 * ( col1 ) + tab1.col0 FROM tab1
----
1216
135
761

query I rowsort
SELECT + 42 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT - tab1.col2 * col2 * + 71 AS col1 FROM tab1
----
-207036
-230679
-654336

query I rowsort
SELECT ALL + col1 + 5 FROM tab0 AS cor0
----
102
91
96

query I rowsort
SELECT - 82 * 7 + col2 - col1 FROM tab1 AS cor0
----
-491
-527
-546

query I rowsort
SELECT DISTINCT + ( - 73 ) + + col2 FROM tab1 AS cor0
----
-16
-19
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 * + 10 col1 FROM tab1 AS cor0
----
10

query I rowsort
SELECT - 47 - + cor0.col2 FROM tab1 AS cor0
----
-101
-104
-143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) + col0 * cor0.col0 col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT ALL tab2.col2 + ( tab2.col2 ) * ( + col0 ) AS col1 FROM tab2
----
2054
216
3040

query I rowsort
SELECT col0 * + 34 AS col1 FROM tab2
----
238
2652
2686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 11 col1 FROM tab2 AS cor0
----
-11
-11
-11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6626
SELECT - - CAST( 0 AS SIGNED ) * cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6626
SELECT - - CAST ( 0 AS INTEGER ) * cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 66 * ( - col1 ) + col0 * + 69 FROM tab0 cor0
----
-3987
-4020
135

query I rowsort
SELECT ALL - 83 + + 37 * col2 AS col1 FROM tab1 AS cor0
----
1915
2026
3469

query I rowsort
SELECT DISTINCT 82 + - col1 * + col0 FROM tab2 AS cor0
----
-1261
-135
-4520

query I rowsort
SELECT ALL - cor0.col2 * col2 - + col1 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT + ( 28 ) + + col2 * col0 AS col1 FROM tab0 cor0
----
63
7326
820

onlyif mysql # use DIV operator for integer division
query I rowsort label-6632
SELECT DISTINCT - cor0.col2 DIV - 79 AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT - cor0.col2 / - 79 AS col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL + 88 + - cor0.col1 FROM tab1 AS cor0
----
62
75
78

query I rowsort
SELECT + 87 - col1 AS col2 FROM tab1 AS cor0
----
61
74
77

query I rowsort
SELECT DISTINCT 50 + - col2 * col1 AS col0 FROM tab2
----
-1484
-596
-787

query I rowsort
SELECT tab1.col2 * cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 1e358219bf03c93d7085a65107d13cf1

query I rowsort
SELECT + col1 * + col0 + - col2 * + 2 FROM tab1
----
-30
526
848

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 55 + col2 * col1 col1 FROM tab2 cor0
----
1667
780
899

query I rowsort
SELECT DISTINCT - - col0 + - 35 + - col2 FROM tab1 AS cor0
----
-28
-51
-86

query I rowsort
SELECT DISTINCT - + col1 * col1 * - col0 + col0 FROM tab0 AS cor0
----
177528
329350
737098

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT cor0.col0 + - CAST ( + 1 AS REAL ) FROM tab1 AS cor0
----
2
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6642
SELECT ALL - col0 DIV + col0 + + ( - col1 * + col1 ) AS col2 FROM tab0 AS cor0
----
-7397
-8282
-9410

skipif mysql # not compatible
query I rowsort label-6642
SELECT ALL - col0 / + col0 + + ( - col1 * + col1 ) AS col2 FROM tab0 AS cor0
----
-7397
-8282
-9410

query I rowsort
SELECT ALL + col2 * - col2 + + col1 FROM tab2 cor0
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 10 col2 FROM tab0
----
34
45
99

query I rowsort
SELECT col1 * + ( - col2 ) + - col0 * + ( col0 ) FROM tab1
----
-1413
-4666
-7648

onlyif mysql # use DIV operator for integer division
query I rowsort label-6646
SELECT + + col1 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6646
SELECT + + col1 / - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 * - 97 * - cor0.col1 FROM tab2 AS cor0
----
28033
337657
93217

query I rowsort
SELECT + 93 + cor0.col2 * + col1 AS col1 FROM tab0 cor0
----
190
2931
7555

query I rowsort
SELECT + + 97 AS col2 FROM tab0 cor0
----
97
97
97

query I rowsort
SELECT DISTINCT col2 * + col1 * ( - 29 ) FROM tab2
----
-18734
-24273
-44486

query I rowsort
SELECT ALL - col1 * + col0 * col2 AS col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - ( + col0 ) + + ( - col0 ) FROM tab1 cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col0 + 99 AS col2 FROM tab0 AS cor0
----
134
7397
891

query I rowsort
SELECT ALL tab2.col1 AS col1 FROM tab1, tab0, tab0 cor0, tab2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT + - col0 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
0
7209
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + col1 + 74 + col1 FROM tab0 AS cor0
----
246
256
268

query I rowsort
SELECT ALL col2 + cor0.col2 AS col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT - 84 + + col2 FROM tab2
----
-46
-57
-58

query I rowsort
SELECT - + cor0.col1 + cor0.col0 + ( - col1 ) * col1 FROM tab0 AS cor0
----
-7458
-8283
-9471

query I rowsort
SELECT DISTINCT 81 + col2 * 33 AS col1 FROM tab2 AS cor0
----
1335
939
972

onlyif mysql # use DIV operator for integer division
query I rowsort label-6662
SELECT ALL - col0 + col2 DIV col2 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL - col0 + col2 / col2 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT ALL + + 51 + col1 * - col2 FROM tab1 cor0
----
-1197
-1353
-519

query I rowsort
SELECT DISTINCT col1 * + ( - col0 ) * col0 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT 68 * + tab0.col0 AS col2 FROM tab0
----
1632
2380
6052

query I rowsort
SELECT ALL cor0.col2 * col1 * - 89 FROM tab1 AS cor0
----
-111072
-124956
-50730

query I rowsort
SELECT DISTINCT cor0.col0 + 50 * 27 FROM tab1 AS cor0
----
1353
1414
1430

onlyif mysql # use DIV operator for integer division
query I rowsort label-6668
SELECT DISTINCT + 65 DIV + col2 FROM tab0
----
0
1
65

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT + 65 / + col2 FROM tab0
----
0
1
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-6669
SELECT + col2 - tab1.col1 DIV 97 AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6669
SELECT + col2 - tab1.col1 / 97 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT + col2 + + 4 AS col1 FROM tab0 AS cor0
----
37
5
86

query I rowsort
SELECT + 62 * - col2 AS col2 FROM tab0 cor0
----
-2046
-5084
-62

query I rowsort
SELECT + ( + col2 ) + col0 * 80 AS col1 FROM tab0 AS cor0
----
1953
2801
7202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( col1 * + col0 ) + col2 col1 FROM tab2 AS cor0
----
22869
271544
6754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
74

query I rowsort
SELECT DISTINCT - 60 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-6676
SELECT - - 75 DIV 36 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to 6d1be3904d6870ba21bc766b979d1110

skipif mysql # not compatible
query I rowsort label-6676
SELECT - - 75 / 36 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to 6d1be3904d6870ba21bc766b979d1110

query I rowsort
SELECT + col1 * - ( col2 + tab2.col0 ) FROM tab2
----
-1054
-1989
-6136

query I rowsort
SELECT - 0 * col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT 56 * + col1 FROM tab1
----
1456
560
728

query I rowsort
SELECT ( + col0 + - col0 ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 * 23 + col0 FROM tab2 AS cor0
----
1435
470
720

query I rowsort
SELECT DISTINCT + col2 + - col1 * col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT col1 + col0 * cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - col0 * + 55 + + col1 * col2 AS col1 FROM tab1
----
-2950
-3152
1239

query I rowsort
SELECT + ( - ( - col0 ) ) FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT col2 + 37 FROM tab1
----
133
91
94

query I rowsort
SELECT ALL - tab2.col2 + 23 + col2 * - col0 FROM tab2
----
-193
-2031
-3017

query I rowsort
SELECT ALL + tab0.col1 + - col0 * col2 AS col2 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT ALL - 56 + 12 + col0 * col0 FROM tab0
----
1181
532
7877

query I rowsort
SELECT - - cor0.col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - - 27 FROM tab2 cor0
----
27
27
27

query I rowsort
SELECT - + col2 * col2 + + 10 FROM tab0 AS cor0
----
-1079
-6714
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6693
SELECT DISTINCT + col0 + + col2 * CAST( 24 * + col1 AS SIGNED ) FROM tab2 AS cor0
----
15583
20095
36894

skipif mysql # not compatible
query I rowsort label-6693
SELECT DISTINCT + col0 + + col2 * CAST ( 24 * + col1 AS INTEGER ) FROM tab2 AS cor0
----
15583
20095
36894

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT + - col0 + - cor0.col1 * - 2 AS col1 FROM tab0 AS cor0
----
148
159
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6696
SELECT DISTINCT col0 + col2 * + CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT col0 + col2 * + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-6697
SELECT DISTINCT col0 DIV col0 + + col2 + 96 * col1 * col0 FROM tab0 AS cor0
----
198178
325922
777587

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT col0 / col0 + + col2 + 96 * col1 * col0 FROM tab0 AS cor0
----
198178
325922
777587

query I rowsort
SELECT ALL + col2 + - col0 * - col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL + + 58 FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT - + ( col2 ) * col2 * col2 FROM tab1 AS cor0
----
-157464
-185193
-884736

query I rowsort
SELECT ALL + 46 * - col2 FROM tab0 AS cor0
----
-1518
-3772
-46

query I rowsort
SELECT DISTINCT - 50 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2, tab2 AS cor3
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - ( 94 ) col1 FROM tab0
----
-5
-59
-70

query I rowsort
SELECT tab1.col0 + + col2 * - col0 + + col1 AS col1 FROM tab1
----
-133
-3574
-7587

query I rowsort
SELECT + col0 * ( - cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT 75 - - ( col2 ) FROM tab2 AS cor0
----
101
102
113

onlyif mysql # use DIV operator for integer division
query I rowsort label-6707
SELECT ALL + col1 + col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL + col1 + col1 / - col0 AS col0 FROM tab0 AS cor0
----
83
90
95

query I rowsort
SELECT DISTINCT cor0.col1 * 9 FROM tab1 AS cor0
----
117
234
90

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( + col1 AS REAL ) / col1 FROM tab2 cor0
----
1

query I rowsort
SELECT + - ( col0 ) * cor0.col0 + col1 FROM tab0 cor0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT - + 81 * - cor0.col1 AS col0 FROM tab2 cor0
----
1377
2511
4779

query I rowsort
SELECT ALL - col1 + + col2 * + col0 AS col1 FROM tab0 AS cor0
----
-62
706
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 + + col1 * cor0.col0 col0 FROM tab0 AS cor0
----
14823
3153
3396

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6714
SELECT CAST( - 41 AS SIGNED ) * col1 FROM tab2 cor0
----
-1271
-2419
-697

skipif mysql # not compatible
query I rowsort label-6714
SELECT CAST ( - 41 AS INTEGER ) * col1 FROM tab2 cor0
----
-1271
-2419
-697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6715
SELECT ALL + CAST( + 4 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL + CAST ( + 4 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
4
4
4

query III rowsort
SELECT * FROM tab2 WHERE + col0 >= - col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 NOT IN ( - tab0.col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN col2 AND NULL
----

query I rowsort
SELECT - col2 FROM tab0 WHERE NULL NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL + cor0.col0 * - col0 * col0 + col0 FROM tab0 AS cor0
----
-13800
-42840
-704880

query I rowsort
SELECT col0 - + col0 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= col0 * - col1 * + col1 - + col1
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( col2 + col2 / + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6724
SELECT DISTINCT - tab2.col2 DIV + col1 - col2 FROM tab2
----
-26
-27
-40

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT - tab2.col2 / + col1 - col2 FROM tab2
----
-26
-27
-40

query I rowsort
SELECT ALL + col1 + - tab2.col2 * + col2 FROM tab2
----
-1427
-617
-698

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT IN ( tab0.col0 * col1 / - col2 )
----

query I rowsort
SELECT tab1.col1 * - col1 AS col2 FROM tab1 WHERE NOT ( NULL ) >= col1
----

query I rowsort
SELECT ALL + col0 * col0 + - tab0.col2 FROM tab0
----
1224
543
7839

query I rowsort
SELECT col1 * col1 + - tab2.col1 AS col1 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL + cor0.col1 + + cor0.col2 * + col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT + col0 * - col2 * - col0 AS col2 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT + col0 * col2 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
132
14760
3630

query I rowsort
SELECT DISTINCT + col1 * col2 + - col1 * - col0 AS col2 FROM tab2 AS cor0
----
1054
1989
6136

onlyif mysql # use DIV operator for integer division
query I rowsort label-6734
SELECT DISTINCT + cor0.col0 DIV + col2 col2 FROM tab0 AS cor0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT + cor0.col0 / + col2 col2 FROM tab0 AS cor0
----
0
1
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-6735
SELECT - cor0.col1 DIV + col0 + - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-66

skipif mysql # not compatible
query I rowsort label-6735
SELECT - cor0.col1 / + col0 + - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-66

query I rowsort
SELECT - col1 + col0 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 * - col1 + col2 + col1 AND NULL
----

query I rowsort
SELECT DISTINCT col2 + - col0 * col2 FROM tab0 AS cor0
----
-34
-7216
-759

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - col0 - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6740
SELECT ALL col2 DIV - col0 col2 FROM tab2
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL col2 / - col0 col2 FROM tab2
----
-3
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6741
SELECT col1 * cor0.col0 DIV ( col0 * + ( cor0.col1 ) ) AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6741
SELECT col1 * cor0.col0 / ( col0 * + ( cor0.col1 ) ) AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT col0 + cor0.col0 * 18 FROM tab1 AS cor0
----
1216
1520
57

query I rowsort
SELECT - cor0.col2 * cor0.col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT + - col1 + col2 * + col2 AS col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT - col1 + 55 FROM tab1 AS cor0
----
29
42
45

query I rowsort
SELECT + col0 * col1 + col0 * cor0.col1 * 19 FROM tab0 AS cor0
----
161980
41280
67900

query I rowsort
SELECT + - col0 + col1 * - 87 * - col0 FROM tab2 AS cor0
----
116762
18872
400296

query I rowsort
SELECT - col0 * col2 + - col2 * cor0.col1 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT + 78 AS col0 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT + 17 + - col2 AS col1 FROM tab0 AS cor0
----
-16
-65
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-6751
SELECT cor0.col2 * col0 + - 84 * col1 DIV col0 FROM tab2 cor0
----
-183
1965
2984

skipif mysql # not compatible
query I rowsort label-6751
SELECT cor0.col2 * col0 + - 84 * col1 / col0 FROM tab2 cor0
----
-183
1965
2984

query I rowsort
SELECT - + 76 * cor0.col2 FROM tab1 AS cor0
----
-4104
-4332
-7296

query I rowsort
SELECT - col1 * + col2 * + col2 + + tab2.col1 AS col1 FROM tab2
----
-22568
-24531
-39825

query I rowsort
SELECT DISTINCT col1 + - tab1.col2 * - col0 * + col0 FROM tab1
----
233482
512
614413

query I rowsort
SELECT + col2 + - col2 AS col2 FROM tab2 WHERE col0 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * tab2.col2 col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - col0 * col0 * - tab1.col2 + col2 * col2 FROM tab1
----
236721
3402
623616

query I rowsort
SELECT + col2 * col2 * - tab1.col2 + - col0 * + col2 AS col2 FROM tab1
----
-157626
-188841
-892416

query I rowsort
SELECT DISTINCT col2 * col2 * 19 FROM tab0
----
127756
19
20691

query I rowsort
SELECT - col0 * + col2 * col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT + tab1.col1 * 31 FROM tab1
----
310
403
806

query I rowsort
SELECT col0 + - 70 * col0 - tab0.col1 FROM tab0
----
-1742
-2512
-6232

query I rowsort
SELECT + + col2 * + ( - col1 + + col2 ) FROM tab0 AS cor0
----
-1749
-738
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6764
SELECT + col1 * CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-6764
SELECT + col1 * CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6765
SELECT + col2 DIV 57 + + col2 FROM tab1 cor0
----
54
58
97

skipif mysql # not compatible
query I rowsort label-6765
SELECT + col2 / 57 + + col2 FROM tab1 cor0
----
54
58
97

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab1, tab2, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + + col0 * 48 + col2 AS col2 FROM tab2 cor0
----
363
3770
3830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 col2 FROM tab2
----
-51

query I rowsort
SELECT ALL + col2 * - ( cor0.col0 ) * col0 AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT col1 * col2 * + col0 AS col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col0 * - 26 + - col1 FROM tab2 AS cor0
----
-2071
-2087
-213

query I rowsort
SELECT ALL - 3 * 32 FROM tab0 cor0
----
-96
-96
-96

query I rowsort
SELECT ALL - - 96 + 99 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cc364d2df4024f0a990ece7b404016fe

query I rowsort
SELECT ( col1 ) * - 45 + - col1 * col1 FROM tab2 AS cor0
----
-1054
-2356
-6136

query I rowsort
SELECT + col0 * + col1 - ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-6776
SELECT DISTINCT - + col0 + + cor0.col1 DIV + 66 + + col2 FROM tab0 cor0
----
-33
-6
10

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT - + col0 + + cor0.col1 / + 66 + + col2 FROM tab0 cor0
----
-33
-6
10

query I rowsort
SELECT col2 * col0 - + col2 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT - col0 * - ( 77 ) + - cor0.col1 AS col1 FROM tab0 AS cor0
----
1762
2598
6762

query I rowsort
SELECT 72 * col0 AS col2 FROM tab2
----
504
5616
5688

query I rowsort
SELECT ALL + 47 * col0 FROM tab1
----
141
3008
3760

query I rowsort
SELECT ALL - cor0.col2 - - ( + 48 ) AS col0 FROM tab1 AS cor0
----
-48
-6
-9

query I rowsort
SELECT DISTINCT + + cor0.col2 + 27 * - col1 AS col1 FROM tab1 AS cor0
----
-213
-255
-648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + 96 * + ( + col1 + col0 ) col0 FROM tab0 cor0
----
10536
12637
17191

query I rowsort
SELECT DISTINCT + 40 AS col2 FROM tab2
----
40

query I rowsort
SELECT tab0.col0 + col1 + + ( + col2 ) FROM tab0
----
133
143
262

query I rowsort
SELECT + col1 * + col2 + + col0 - + col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + cor0.col2 * cor0.col0 - - col0 AS col1 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT col0 * - col2 + col2 * + col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * col2 - - col1 AS col0 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT - col1 * + col1 - - col0 * + cor0.col0 FROM tab2 cor0
----
-912
2603
5952

query I rowsort
SELECT DISTINCT + col2 + - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT col2 + - col1 + col0 * col0 AS col0 FROM tab2
----
45
6051
6262

query I rowsort
SELECT ALL tab2.col0 + col1 * col0 * col1 FROM tab2
----
22910
271596
6734

query I rowsort
SELECT ALL - col2 + - col2 * tab0.col2 * + col0 AS col2 FROM tab0
----
-26169
-36
-598518

query I rowsort
SELECT ALL + col0 + col0 + - col1 AS col0 FROM tab0
----
-27
-38
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-6797
SELECT + col1 DIV col1 + col2 * col1 * col0 AS col0 FROM tab2
----
119653
51035
5860

skipif mysql # not compatible
query I rowsort label-6797
SELECT + col1 / col1 + col2 * col1 * col0 AS col0 FROM tab2
----
119653
51035
5860

query I rowsort
SELECT - col1 + + col0 + col0 * col1 AS col1 FROM tab2 cor0
----
1405
193
4621

onlyif mysql # use DIV operator for integer division
query I rowsort label-6799
SELECT ALL + col2 DIV col1 + - col0 * tab1.col2 FROM tab1
----
-160
-3643
-7673

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL + col2 / col1 + - col0 * tab1.col2 FROM tab1
----
-160
-3643
-7673

query I rowsort
SELECT DISTINCT - col2 + - col2 + col0 FROM tab1
----
-105
-112
-50

query I rowsort
SELECT DISTINCT tab1.col2 * + col1 + + tab1.col1 * col0 FROM tab1
----
1210
1482
2288

query I rowsort
SELECT + col2 * + col1 * - col2 AS col0 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT DISTINCT - col0 + + col2 * col2 AS col0 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT DISTINCT col0 + col0 * - col1 FROM tab1
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-6805
SELECT DISTINCT tab0.col1 DIV tab0.col2 + - col2 DIV col2 FROM tab0
----
0
1
96

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT tab0.col1 / tab0.col2 + - col2 / col2 FROM tab0
----
0
1
96

query I rowsort
SELECT ALL + cor0.col2 * + cor0.col0 + - col2 * col2 FROM tab1 cor0
----
-1536
-2754
399

query I rowsort
SELECT ALL + col0 * - col2 + - col1 + col2 * + cor0.col1 AS col1 FROM tab1 cor0
----
-3088
-6445
1216

onlyif mysql # use DIV operator for integer division
query I rowsort label-6808
SELECT DISTINCT - 2 DIV col2 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT - 2 / col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - 55 * + col1 FROM tab1 AS cor0
----
1430
550
715

query I rowsort
SELECT - 37 * - col2 + col1 * col2 * col0 AS col2 FROM tab1
----
103392
38589
6210

query I rowsort
SELECT ( col1 + - col2 ) AS col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT col2 * + 69 - col0 FROM tab1
----
3723
3869
6544

onlyif mysql # use DIV operator for integer division
query I rowsort label-6813
SELECT - col0 DIV 18 + col0 FROM tab2
----
7
74
75

skipif mysql # not compatible
query I rowsort label-6813
SELECT - col0 / 18 + col0 FROM tab2
----
7
74
75

query I rowsort
SELECT ALL ( 70 ) * + tab2.col2 AS col1 FROM tab2
----
1820
1890
2660

query I rowsort
SELECT + ( + 79 ) FROM tab1
----
79
79
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6816
SELECT col2 + + col0 * - col0 DIV - tab2.col0 AS col2 FROM tab2
----
104
117
34

skipif mysql # not compatible
query I rowsort label-6816
SELECT col2 + + col0 * - col0 / - tab2.col0 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT ( col1 ) + - col0 * col2 AS col0 FROM tab1
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col1 FROM tab1 cor0
----
84
84
84

query I rowsort
SELECT DISTINCT col0 + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - + 32 + col0 * + col0 AS col1 FROM tab1 AS cor0
----
-23
4064
6368

query I rowsort
SELECT ALL - 85 * cor0.col2 - cor0.col0 AS col0 FROM tab1 AS cor0
----
-4593
-4909
-8240

query I rowsort
SELECT + + 95 * - col2 FROM tab1 AS cor0
----
-5130
-5415
-9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 * col2 col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL 31 * col1 AS col1 FROM tab0 AS cor0
----
2666
2821
3007

query I rowsort
SELECT ALL - col1 * + col0 + + col2 - + cor0.col1 * + col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1583
-17600
-3141

query I rowsort
SELECT col2 * col1 + + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - - 87 * + col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
1144
2288
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col0 FROM tab1
----
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6829
SELECT + col2 + + col0 * + CAST( col0 AS SIGNED ) FROM tab2 cor0
----
6110
6279
76

skipif mysql # not compatible
query I rowsort label-6829
SELECT + col2 + + col0 * + CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
6110
6279
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6830
SELECT CAST( 41 + - col0 AS SIGNED ) FROM tab1
----
-23
-39
38

skipif mysql # not compatible
query I rowsort label-6830
SELECT CAST ( 41 + - col0 AS INTEGER ) FROM tab1
----
-23
-39
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 57 col1 FROM tab2
----
1482
1539
2166

onlyif mysql # use DIV operator for integer division
query I rowsort label-6832
SELECT col0 * col2 DIV col2 + - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6832
SELECT col0 * col2 / col2 + - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - + 59 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT ALL + + 89 - - col2 FROM tab1 AS cor0
----
143
146
185

query I rowsort
SELECT DISTINCT - + col0 * col2 + + 23 AS col1 FROM tab1 AS cor0
----
-139
-3625
-7657

query I rowsort
SELECT + - col2 + + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 12 FROM tab0 AS cor0
----
12

query I rowsort
SELECT ALL - cor0.col2 + - col1 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + + cor0.col2 col0 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL - - col2 - col2 * + 95 AS col1 FROM tab1 AS cor0
----
-5076
-5358
-9024

query I rowsort
SELECT DISTINCT - col1 + + 13 FROM tab0
----
-73
-78
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6842
SELECT ALL + col1 + CAST( col0 + - col1 AS SIGNED ) * col1 FROM tab0
----
-5246
-5917
-91

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL + col1 + CAST ( col0 + - col1 AS INTEGER ) * col1 FROM tab0
----
-5246
-5917
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-6843
SELECT + col1 DIV 17 + col0 * - col2 + - 56 AS col1 FROM tab0
----
-7349
-843
-86

skipif mysql # not compatible
query I rowsort label-6843
SELECT + col1 / 17 + col0 * - col2 + - 56 AS col1 FROM tab0
----
-7349
-843
-86

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 cor2, tab1 AS cor3
----
3645 values hashing to 35707ade138fec4b370f5140a4cd2963

query I rowsort
SELECT + - col0 * - 33 + col1 - col1 AS col1 FROM tab0 AS cor0
----
1155
2937
792

query I rowsort
SELECT + col1 + - 85 - 95 FROM tab2 AS cor0
----
-121
-149
-163

query I rowsort
SELECT DISTINCT + col2 * col0 + col1 * cor0.col1 FROM tab1 AS cor0
----
3748
7849
838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 56 - 85 col0 FROM tab0 AS cor0
----
-1429
-2045
-5069

query I rowsort
SELECT + col0 + + 7 * - col1 * - col1 FROM tab2 AS cor0
----
2102
24445
6734

query I rowsort
SELECT DISTINCT - 4 * + cor0.col1 FROM tab0 AS cor0
----
-344
-364
-388

query I rowsort
SELECT ALL - col2 * + 16 AS col0 FROM tab0 AS cor0
----
-1312
-16
-528

query I rowsort
SELECT DISTINCT + + col0 - - cor0.col2 * - col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + cor0.col0 * cor0.col2 * col1 + cor0.col2 FROM tab0 AS cor0
----
3396
664200
68145

query I rowsort
SELECT ALL col2 * col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT - 36 AS col1 FROM tab1, tab1 AS cor0, tab2, tab0 cor1
----
81 values hashing to aea3eb70e9270b660d4c81f39b11409b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6856
SELECT DISTINCT ( 30 ) DIV col1 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT ( 30 ) / col1 AS col1 FROM tab0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6857
SELECT - + CAST( NULL AS SIGNED ) - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT - + CAST ( NULL AS INTEGER ) - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 75 * - 18 FROM tab2
----
1350
1350
1350

query I rowsort
SELECT ( + 2 ) FROM tab2 cor0
----
2
2
2

query I rowsort
SELECT + col0 + 2 * col1 AS col1 FROM tab2 AS cor0
----
113
196
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-6861
SELECT - 79 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-6861
SELECT - 79 / cor0.col0 AS col1 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT + + 41 + + col1 FROM tab2 AS cor0
----
100
58
72

query I rowsort
SELECT DISTINCT + - 68 * - 81 AS col1 FROM tab1, tab1 AS cor0
----
5508

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab1, tab1 cor1
----
3645 values hashing to ca91d1f523a87017f672304548e91a77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 + + col0 * col1 + - cor0.col2 col2 FROM tab2 cor0
----
1267
163
4550

query I rowsort
SELECT + ( - col2 ) * cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6867
SELECT + + cor0.col0 DIV col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6867
SELECT + + cor0.col0 / col0 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6868
SELECT col0 + - col0 DIV cor0.col2 FROM tab0 cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-6868
SELECT col0 + - col0 / cor0.col2 FROM tab0 cor0
----
0
24
88

query I rowsort
SELECT 84 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to 3c092ed1a99ddb5afc7049fd2b9427f9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6870
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 col2 FROM tab0, tab2 AS cor0
----
62

query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab0, tab1 AS cor0
----
40

query I rowsort
SELECT DISTINCT col2 + col1 * - ( col0 ) AS col2 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT col2 + tab0.col0 * tab0.col0 AS col2 FROM tab0
----
1226
609
8003

query I rowsort
SELECT + + col1 * - 68 - - ( - col1 ) * - cor0.col1 FROM tab1 AS cor0
----
-1092
-580
-715

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * col2 col1 FROM tab1 cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6878
SELECT - - col1 + CAST( - ( col2 ) AS SIGNED ) FROM tab0 cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-6878
SELECT - - col1 + CAST ( - ( col2 ) AS INTEGER ) FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT - cor0.col1 * col0 * - col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT DISTINCT - 15 * col0 FROM tab0
----
-1335
-360
-525

onlyif mysql # use DIV operator for integer division
query I rowsort label-6881
SELECT DISTINCT 97 DIV + col1 FROM tab1
----
3
7
9

skipif mysql # not compatible
query I rowsort label-6881
SELECT DISTINCT 97 / + col1 FROM tab1
----
3
7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6882
SELECT DISTINCT + CAST( 34 AS SIGNED ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT + CAST ( 34 AS INTEGER ) FROM tab1
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col1 FROM tab2
----
-12
-12
-12

query I rowsort
SELECT DISTINCT 14 * col1 AS col1 FROM tab2
----
238
434
826

query I rowsort
SELECT - col2 + col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT - 10 - col2 FROM tab1 AS cor0
----
-106
-64
-67

query I rowsort
SELECT + col2 - col2 AS col2 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - col0 * col2 - - 87 * ( col2 ) * - CAST ( - col2 AS REAL ) col2 FROM tab1 AS cor0
----
253530
279015
794112

query I rowsort
SELECT 9 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT - ( + 63 ) FROM tab1
----
-63

query I rowsort
SELECT 40 * + col2 FROM tab2 cor0
----
1040
1080
1520

query I rowsort
SELECT + cor0.col2 + + 44 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to ed1ad1804e730ce90987aa20668d41a6

query I rowsort
SELECT DISTINCT - 20 + col1 * - col0 FROM tab2 AS cor0
----
-1363
-237
-4622

query I rowsort
SELECT ALL - 35 AS col0 FROM tab0 cor0
----
-35
-35
-35

query I rowsort
SELECT + 28 * col2 FROM tab2 cor0
----
1064
728
756

query I rowsort
SELECT + + 30 * col1 AS col0 FROM tab1 AS cor0
----
300
390
780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 + col2 col0 FROM tab1 AS cor0
----
136
139
178

query I rowsort
SELECT + ( + col2 ) * + ( + 37 ) FROM tab0 AS cor0
----
1221
3034
37

query I rowsort
SELECT DISTINCT + col1 * col2 + ( col1 ) + col2 AS col1 FROM tab2 AS cor0
----
1619
701
895

query I rowsort
SELECT DISTINCT + cor0.col0 + - col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - + 13 AS col2 FROM tab2 AS cor0
----
-13

query I rowsort
SELECT ALL 74 + col2 * + col0 FROM tab2 AS cor0
----
2102
263
3076

query I rowsort
SELECT + col2 * col0 - + col0 AS col1 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT + + col1 * 66 + 23 * - col0 * - col2 AS col0 FROM tab2 AS cor0
----
50538
6393
70168

query I rowsort
SELECT cor0.col0 * + ( col1 ) + + col0 * - 30 - col0 FROM tab2 cor0
----
-1106
0
2184

onlyif mysql # use DIV operator for integer division
query I rowsort label-6906
SELECT ALL - col2 + - cor0.col2 DIV col2 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL - col2 + - cor0.col2 / col2 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT - - cor0.col2 * ( - cor0.col0 ) - - cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - col0 * 76 FROM tab0 AS cor0
----
-1824
-2660
-6764

query I rowsort
SELECT + cor0.col1 + 81 * ( col2 ) AS col1 FROM tab0 cor0
----
178
2759
6733

query I rowsort
SELECT + col2 + col0 * - cor0.col1 - col1 FROM tab2 AS cor0
----
-1322
-221
-4635

query I rowsort
SELECT DISTINCT - col0 - col0 AS col0 FROM tab0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6912
SELECT col1 DIV col0 + ( - col0 ) * - col2 AS col2 FROM tab2
----
193
2028
3002

skipif mysql # not compatible
query I rowsort label-6912
SELECT col1 / col0 + ( - col0 ) * - col2 AS col2 FROM tab2
----
193
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6913
SELECT col2 - + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6913
SELECT col2 - + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 53 + col1 FROM tab2 AS cor0
----
112
70
84

query I rowsort
SELECT DISTINCT - 36 + - col2 FROM tab0 AS cor0
----
-118
-37
-69

query I rowsort
SELECT ALL + + col2 + + col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL 19 * col2 + col0 AS col1 FROM tab1 AS cor0
----
1029
1147
1904

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6918
SELECT CAST( NULL AS DECIMAL ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6918
SELECT CAST ( NULL AS REAL ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 * col0 + col0 * - ( + col1 ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
-122220
-51600
-728910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6920
SELECT ALL CAST( NULL AS SIGNED ) + + col2 * - col1 / - 91 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL CAST ( NULL AS INTEGER ) + + col2 * - col1 / - 91 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + 53 ) * col1 + - col0 FROM tab2 AS cor0
----
1636
3049
822

query I rowsort
SELECT ALL - 32 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-2048
-2560
-96

query I rowsort
SELECT - cor0.col0 + + ( - col2 ) * - 33 AS col0 FROM tab2 AS cor0
----
1175
780
884

query I rowsort
SELECT ALL + + ( + col0 ) + col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - ( 93 ) FROM tab1, tab2 AS cor0
----
-93

query I rowsort
SELECT DISTINCT - 2 AS col1 FROM tab1
----
-2

query I rowsort
SELECT 98 + + col2 FROM tab1 AS cor0
----
152
155
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-6928
SELECT ALL - 79 DIV - col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL - 79 / - col2 FROM tab1
----
0
1
1

query I rowsort
SELECT + 98 * cor0.col0 FROM tab1 AS cor0
----
294
6272
7840

query I rowsort
SELECT - col1 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT - + col0 * col2 - col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT + - col1 * - col2 + - 99 FROM tab2 AS cor0
----
1435
547
738

query I rowsort
SELECT - + cor0.col1 + + 98 AS col0 FROM tab0 AS cor0
----
1
12
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6934
SELECT col2 - - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6934
SELECT col2 - - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col0 + col2 * - col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6936
SELECT + tab1.col1 * + col2 + - col2 DIV + col1 FROM tab1
----
1241
1402
565

skipif mysql # not compatible
query I rowsort label-6936
SELECT + tab1.col1 * + col2 + - col2 / + col1 FROM tab1
----
1241
1402
565

query I rowsort
SELECT tab2.col0 * col2 * - col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT - tab1.col0 * col0 * 38 AS col0 FROM tab1
----
-155648
-243200
-342

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6939
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6939
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + 57 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT + ( col0 ) + ( col2 * + col1 ) FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-6942
SELECT + + col0 * col0 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6942
SELECT + + col0 * col0 / cor0.col0 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + col0 * col1 + col2 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT + col2 + - col0 * col1 * ( + col2 + col0 ) AS col2 FROM tab2
----
-157093
-478582
-7351

query I rowsort
SELECT + 46 + - col2 FROM tab2 cor0
----
19
20
8

query I rowsort
SELECT + col2 * ( tab0.col2 ) + + tab0.col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT 34 * 28 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to fa4f35dfa461373d42fe60a74729acd0

query I rowsort
SELECT cor0.col0 * - col1 + 42 FROM tab0 AS cor0
----
-2022
-3353
-8057

query I rowsort
SELECT cor0.col2 * cor0.col2 * - col2 - col1 FROM tab0 AS cor0
----
-36023
-551459
-98

query I rowsort
SELECT ALL col1 + - col0 * + 68 FROM tab1 AS cor0
----
-178
-4342
-5427

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + + 11 * - col2 col0 FROM tab0 AS cor0
----
-387
-46
-991

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 + col2 col1 FROM tab0 AS cor0
----
-1224
-543
-7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-6953
SELECT DISTINCT - cor0.col1 + ( + 27 + col1 ) * col0 DIV - 45 FROM tab2 AS cor0
----
-208
-40
-94

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT - cor0.col1 + ( + 27 + col1 ) * col0 / - 45 FROM tab2 AS cor0
----
-208
-40
-94

query I rowsort
SELECT 57 * tab1.col2 + + tab1.col1 FROM tab1
----
3104
3259
5485

query I rowsort
SELECT - 82 + col0 FROM tab0
----
-47
-58
7

query I rowsort
SELECT - col0 - tab2.col1 AS col0 FROM tab2
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col1 + + 67 col1 FROM tab1, tab0, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to f809aa4460170514894df78df839bb57

query I rowsort
SELECT - col1 - - 62 FROM tab1 AS cor0
----
36
49
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 76 + col1 col2 FROM tab2 AS cor0
----
563
5987
6021

query I rowsort
SELECT col2 + ( - col2 ) AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6961
SELECT cor0.col1 * + 50 - col0 DIV - col2 FROM tab1 AS cor0
----
1300
501
650

skipif mysql # not compatible
query I rowsort label-6961
SELECT cor0.col1 * + 50 - col0 / - col2 FROM tab1 AS cor0
----
1300
501
650

query I rowsort
SELECT + + col1 * col0 + col1 * col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
672217
6790
70176

query I rowsort
SELECT 52 * col2 AS col2 FROM tab1 cor0
----
2808
2964
4992

query I rowsort
SELECT ALL - 79 * ( col2 ) FROM tab2 AS cor0
----
-2054
-2133
-3002

query I rowsort
SELECT - 44 * col2 * - col1 FROM tab1 cor0
----
25080
54912
61776

query I rowsort
SELECT + 52 + cor0.col0 * - col2 * - col0 AS col1 FROM tab1 AS cor0
----
233524
538
614452

query I rowsort
SELECT ALL + cor0.col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL - + col0 * col2 + + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + ( - 34 ) AS col0 FROM tab0
----
-34
-34
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6970
SELECT - CAST( NULL AS SIGNED ) + + 66 * col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6970
SELECT - CAST ( NULL AS INTEGER ) + + 66 * col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( + cor0.col0 ) * - cor0.col1 col0 FROM tab2 cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL - + 83 FROM tab0 AS cor0
----
-83
-83
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6973
SELECT ALL - CAST( NULL AS DECIMAL ) + - 8 * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL - CAST ( NULL AS REAL ) + - 8 * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6974
SELECT DISTINCT CAST( NULL AS SIGNED ) * cor0.col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col0 ) col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL - - 98 + cor0.col1 * + col2 AS col0 FROM tab1 AS cor0
----
1346
1502
668

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( + col1 AS REAL ) + + cor0.col1 / 38 AS col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - col1 * - ( col2 ) AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL - ( - col0 ) * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + ( + col2 ) + cor0.col0 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT cor0.col0 * col1 * + col2 FROM tab0 cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6982
SELECT ALL col0 DIV - col2 + + col1 * col0 + + col2 col2 FROM tab0 AS cor0
----
2097
3361
8180

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL col0 / - col2 + + col1 * col0 + + col2 col2 FROM tab0 AS cor0
----
2097
3361
8180

query I rowsort
SELECT + ( - 36 ) AS col2 FROM tab2 AS cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT - col0 * col0 + + cor0.col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT + col2 - + col2 * - tab2.col2 AS col1 FROM tab2
----
1482
702
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) * cor0.col1 col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ( col0 ) + - col2 * col2 FROM tab0 cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT - ( - col0 ) * + col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col1 + - 60 AS col2 FROM tab0 AS cor0
----
26
31
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-6990
SELECT DISTINCT + col1 * col0 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT + col1 * col0 / cor0.col1 AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6992
SELECT DISTINCT col1 * - ( + 61 ) + + col1 DIV - 3 AS col2 FROM tab0 AS cor0
----
-5274
-5581
-5949

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT col1 * - ( + 61 ) + + col1 / - 3 AS col2 FROM tab0 AS cor0
----
-5274
-5581
-5949

query I rowsort
SELECT 9 * - cor0.col2 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 492513a1fb5e45e7f1f8a0871b411119

query I rowsort
SELECT DISTINCT - col1 * + 63 FROM tab0
----
-5418
-5733
-6111

onlyif mysql # use DIV operator for integer division
query I rowsort label-6995
SELECT col0 DIV - 65 + col0 AS col1 FROM tab0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-6995
SELECT col0 / - 65 + col0 AS col1 FROM tab0
----
24
35
88

query I rowsort
SELECT DISTINCT + 64 * - 63 AS col0 FROM tab2, tab1 AS cor0
----
-4032

onlyif mysql # use DIV operator for integer division
query I rowsort label-6997
SELECT col0 DIV col0 + - col2 AS col1 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-6997
SELECT col0 / col0 + - col2 AS col1 FROM tab0
----
-32
-81
0

query I rowsort
SELECT ALL cor0.col2 * col0 * - 77 FROM tab2 AS cor0
----
-14553
-156156
-231154

query I rowsort
SELECT + tab0.col1 + ( col2 * col2 ) AS col2 FROM tab0
----
1175
6815
98

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab0 AS cor2, tab0
----
13122 values hashing to 3142821cbdaa38ff786874f70cff1756

query I rowsort
SELECT + - col0 * - 6 AS col1 FROM tab1 AS cor0
----
18
384
480

onlyif mysql # use DIV operator for integer division
query I rowsort label-7002
SELECT col0 + col2 DIV - ( - col2 ) FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-7002
SELECT col0 + col2 / - ( - col2 ) FROM tab1
----
4
65
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7003
SELECT + CAST( NULL AS SIGNED ) - - 60 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7003
SELECT + CAST ( NULL AS INTEGER ) - - 60 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + ( tab1.col2 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL + + ( col2 ) * + col1 * col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
119711
51051
5890

query I rowsort
SELECT DISTINCT - ( col0 ) * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + cor0.col0 * - 33 + - col2 * + col1 FROM tab1 AS cor0
----
-1503
-2682
-3888

onlyif mysql # use DIV operator for integer division
query I rowsort label-7008
SELECT + 38 * col0 * col1 + col0 DIV + tab1.col0 FROM tab1
----
24321
2965
39521

skipif mysql # not compatible
query I rowsort label-7008
SELECT + 38 * col0 * col1 + col0 / + tab1.col0 FROM tab1
----
24321
2965
39521

query I rowsort
SELECT ALL tab2.col0 + - ( tab2.col2 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 363494b33b4d1826f58e179e26d91c4a

query I rowsort
SELECT ALL 76 * + col0 AS col2 FROM tab1 AS cor0
----
228
4864
6080

query I rowsort
SELECT - 82 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-246
-5248
-6560

query I rowsort
SELECT DISTINCT 90 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
125
7388
882

onlyif mysql # use DIV operator for integer division
query I rowsort label-7013
SELECT DISTINCT - - 56 DIV - col0 FROM tab1 AS cor0
----
-18
0

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT - - 56 / - col0 FROM tab1 AS cor0
----
-18
0

query I rowsort
SELECT DISTINCT - 72 * col2 + - 73 FROM tab0 AS cor0
----
-145
-2449
-5977

query I rowsort
SELECT + col1 * + col0 + col0 - - cor0.col2 * + col2 FROM tab1 AS cor0
----
10336
2997
3953

query I rowsort
SELECT ALL col2 + - col1 * - col0 FROM tab0 cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col2 col2 FROM tab0 cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + col2 + 68 col2 FROM tab1 AS cor0
----
-1180
-1336
-502

query I rowsort
SELECT ALL col0 * + 43 FROM tab1 AS cor0
----
129
2752
3440

query I rowsort
SELECT col0 * col2 + - col1 AS col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL + col2 + ( + col0 ) + col2 FROM tab1 AS cor0
----
111
178
272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 78 - col1 * col0 col1 FROM tab1 AS cor0
----
-312
-5632
-7280

query I rowsort
SELECT DISTINCT + col1 * - 25 + - col1 FROM tab0 AS cor0
----
-2236
-2366
-2522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 46 + + col2 * - col1 col2 FROM tab1 cor0
----
-110
-208
-650

query I rowsort
SELECT DISTINCT - col1 + - 70 * - col2 AS col0 FROM tab2 AS cor0
----
1761
1859
2643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 + 61 col1 FROM tab2 AS cor0
----
165
178
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-7027
SELECT ALL + col0 DIV + col0 - 76 AS col2 FROM tab0 AS cor0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL + col0 / + col0 - 76 AS col2 FROM tab0 AS cor0
----
-75
-75
-75

query I rowsort
SELECT DISTINCT + col2 * - ( - col2 ) - cor0.col0 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT ALL + col0 + 75 FROM tab1 AS cor0
----
139
155
78

query I rowsort
SELECT col0 * 80 AS col1 FROM tab1 cor0
----
240
5120
6400

query I rowsort
SELECT - col1 * - 80 FROM tab0
----
6880
7280
7760

query I rowsort
SELECT DISTINCT tab0.col1 - tab0.col0 FROM tab0, tab1 AS cor0
----
2
62

query I rowsort
SELECT DISTINCT + col1 * col2 * col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT ALL ( col2 + - col2 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + 21 AS col0 FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT ALL - 74 * + 64 AS col0 FROM tab1 AS cor0
----
-4736
-4736
-4736

query I rowsort
SELECT ALL 26 + col2 FROM tab0 AS cor0
----
108
27
59

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + col0 AS REAL ) * col1 * col2 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - - col2 + - col0 * col2 * - col2 FROM tab0 AS cor0
----
26169
36
598518

query I rowsort
SELECT + + col1 * + col0 - 95 * - col0 AS col2 FROM tab0 AS cor0
----
16554
4344
6720

query I rowsort
SELECT ALL - col1 + col2 + - col0 AS col2 FROM tab0
----
-131
-77
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 + 3 * + col1 * + col0 col2 FROM tab1
----
2010
3210
324

query I rowsort
SELECT + - col1 + - col1 AS col0 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT - + col0 + - col2 - col2 AS col1 FROM tab1 AS cor0
----
-111
-178
-272

query I rowsort
SELECT ALL tab0.col0 * - cor0.col1 FROM tab0, tab0 cor0
----
9 values hashing to 5e05f50cc51e966d7e055a113d30a5e0

query I rowsort
SELECT ALL - col2 * + 23 + - 80 FROM tab1 AS cor0
----
-1322
-1391
-2288

query I rowsort
SELECT DISTINCT - + col2 + + 69 AS col1 FROM tab2 AS cor0
----
31
42
43

query I rowsort
SELECT col0 + 11 * col2 * col1 FROM tab1 AS cor0
----
13808
15447
6334

onlyif mysql # use DIV operator for integer division
query I rowsort label-7049
SELECT - col0 DIV - col0 col2 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7049
SELECT - col0 / - col0 col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 * - ( - col1 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7051
SELECT col2 DIV - ( + ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7051
SELECT col2 / - ( + ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + + cor0.col0 + ( + col1 * col0 ) AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - 12 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT ALL + col2 * - 74 FROM tab2 AS cor0
----
-1924
-1998
-2812

query I rowsort
SELECT DISTINCT + cor0.col0 * 10 + + cor0.col2 FROM tab2 AS cor0
----
806
828
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7056
SELECT DISTINCT col1 DIV ( col1 * col0 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT col1 / ( col1 * col0 ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7057
SELECT - cor0.col0 DIV cor0.col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-7057
SELECT - cor0.col0 / cor0.col1 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT ALL + col2 * 68 FROM tab0 cor0
----
2244
5576
68

query I rowsort
SELECT + col2 * - 73 + - 6 * + col1 AS col2 FROM tab1 AS cor0
----
-4098
-4221
-7086

query I rowsort
SELECT cor0.col2 + - col0 * 41 FROM tab1 AS cor0
----
-2567
-3184
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 23 col0 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT ALL + 0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT 67 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT ALL 1 + col2 AS col0 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT + - col1 * - col2 AS col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab1, tab2, tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + col2 * col2 + cor0.col0 + + col0 AS col0 FROM tab1 AS cor0
----
2922
3377
9376

query I rowsort
SELECT ALL - - 6 + + col1 AS col0 FROM tab1 AS cor0
----
16
19
32

query I rowsort
SELECT ALL col1 * - tab2.col2 AS col2 FROM tab2
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col1 FROM tab1
----
-17
-17
-17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7071
SELECT - CAST( col0 AS SIGNED ) col1 FROM tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7071
SELECT - CAST ( col0 AS INTEGER ) col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + ( + ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - cor0.col0 + - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT ( - cor0.col1 ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - col1 * - 76 AS col1 FROM tab1 AS cor0
----
1976
760
988

query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col0 AS col2 FROM tab0, tab1, tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + 81 + + col1 AS col1 FROM tab0
----
167
172
178

query I rowsort
SELECT ALL - 72 * + cor0.col1 * + col2 FROM tab0 AS cor0
----
-204336
-537264
-6984

query I rowsort
SELECT ALL 68 * + col1 + col1 FROM tab2 AS cor0
----
1173
2139
4071

onlyif mysql # use DIV operator for integer division
query I rowsort label-7080
SELECT ALL + col0 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7080
SELECT ALL + col0 / - col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - + col1 * - col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL + col1 + + cor0.col0 * 29 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-211551
-22882
-918

onlyif mysql # use DIV operator for integer division
query I rowsort label-7083
SELECT + 90 DIV col2 AS col2 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7083
SELECT + 90 / col2 AS col2 FROM tab1 cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 * col2 col1 FROM tab0 AS cor0
----
2079
5166
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-7085
SELECT ALL - + 92 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-92

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL - + 92 / col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-92

query I rowsort
SELECT 16 + col1 + + ( - col0 ) FROM tab0 AS cor0
----
18
78
78

query I rowsort
SELECT DISTINCT + 66 + + col2 FROM tab2 AS cor0
----
104
92
93

query I rowsort
SELECT DISTINCT + cor0.col2 + 32 AS col0 FROM tab0 AS cor0
----
114
33
65

query I rowsort
SELECT ALL + col1 + ( + cor0.col2 ) FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7090
SELECT DISTINCT + col2 - CAST( col2 AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT + col2 - CAST ( col2 AS INTEGER ) / col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT ALL col0 * - 18 - cor0.col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-10656
-2970
-4401

query I rowsort
SELECT + ( - ( col1 ) ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + ( col1 ) * + col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * cor0.col1 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 1169b7fcf13ac18999dec49812e378f5

query I rowsort
SELECT ALL + 7 * col2 * col0 AS col0 FROM tab1 AS cor0
----
1134
25536
53760

query I rowsort
SELECT DISTINCT + col0 * col1 + 41 FROM tab1 AS cor0
----
1081
119
681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + tab0.col2 ) + + col1 col2 FROM tab0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) * col0 * + ( - col1 ) + - tab0.col1 col0 FROM tab0
----
177418
329218
736918

query I rowsort
SELECT 49 + - col0 AS col2 FROM tab1
----
-15
-31
46

query I rowsort
SELECT DISTINCT ( 77 ) + col0 * col2 AS col2 FROM tab1
----
239
3725
7757

query I rowsort
SELECT col1 * + tab2.col1 * - 40 + - 77 AS col1 FROM tab2
----
-11637
-139317
-38517

onlyif mysql # use DIV operator for integer division
query I rowsort label-7102
SELECT + col2 DIV col2 + col1 AS col0 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-7102
SELECT + col2 / col2 + col1 AS col0 FROM tab1
----
11
14
27

query I rowsort
SELECT DISTINCT + cor0.col0 * col0 - 7 FROM tab2 AS cor0
----
42
6077
6234

onlyif mysql # use DIV operator for integer division
query I rowsort label-7104
SELECT ALL cor0.col1 + + cor0.col1 * 89 DIV + col1 FROM tab1 AS cor0
----
102
115
99

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL cor0.col1 + + cor0.col1 * 89 / + col1 FROM tab1 AS cor0
----
102
115
99

query I rowsort
SELECT + col2 + 51 + + col0 AS col1 FROM tab1
----
108
172
227

query I rowsort
SELECT col0 + ( + 46 ) + + col0 * + 32 FROM tab2
----
2620
2653
277

query I rowsort
SELECT DISTINCT - col2 - - 59 * - col1 AS col0 FROM tab1
----
-1588
-647
-863

query I rowsort
SELECT ALL col0 - 26 FROM tab1
----
-23
38
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-7109
SELECT DISTINCT col2 DIV + col1 - - tab1.col0 * col1 FROM tab1
----
1047
645
80

skipif mysql # not compatible
query I rowsort label-7109
SELECT DISTINCT col2 / + col1 - - tab1.col0 * col1 FROM tab1
----
1047
645
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7110
SELECT col1 DIV - tab1.col0 + col1 + tab1.col0 * col1 AS col0 FROM tab1
----
1053
650
96

skipif mysql # not compatible
query I rowsort label-7110
SELECT col1 / - tab1.col0 + col1 + tab1.col0 * col1 AS col0 FROM tab1
----
1053
650
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7111
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col1 + cor0.col2 col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 + cor0.col2 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + ( + col1 ) * - col1 + col1 AS col0 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT - 67 * cor0.col1 * + col2 + ( - col1 * col0 ) FROM tab1 AS cor0
----
-38830
-84656
-94146

onlyif mysql # use DIV operator for integer division
query I rowsort label-7114
SELECT ALL + - col2 DIV + col2 - cor0.col1 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL + - col2 / + col2 - cor0.col1 FROM tab1 AS cor0
----
-11
-14
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + col0 col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - ( + 19 ) FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT ( cor0.col1 ) AS col2 FROM tab1, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ( col1 ) + - col2 AS col1 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7119
SELECT DISTINCT col2 * + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT col2 * + col0 / col0 AS col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7120
SELECT cor0.col1 + + col1 DIV - col0 AS col0 FROM tab1 cor0
----
10
13
18

skipif mysql # not compatible
query I rowsort label-7120
SELECT cor0.col1 + + col1 / - col0 AS col0 FROM tab1 cor0
----
10
13
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-7121
SELECT + - col1 * col1 + cor0.col2 + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-42
-621
-72

skipif mysql # not compatible
query I rowsort label-7121
SELECT + - col1 * col1 + cor0.col2 + col1 / col1 AS col2 FROM tab1 AS cor0
----
-42
-621
-72

query I rowsort
SELECT 60 * + ( - col1 ) FROM tab1 AS cor0
----
-1560
-600
-780

query I rowsort
SELECT DISTINCT + - ( col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col0 - - col1 * cor0.col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - cor0.col1 - cor0.col1 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT 34 + ( + col0 ) FROM tab0 AS cor0
----
123
58
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-7127
SELECT - 15 DIV 82 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7127
SELECT - 15 / 82 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7128
SELECT DISTINCT + 9 * 6 DIV col1 FROM tab2
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7128
SELECT DISTINCT + 9 * 6 / col1 FROM tab2
----
0
1
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7129
SELECT cor0.col1 DIV - tab0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 6112deff45c23c2311a09b6e15d4231f

skipif mysql # not compatible
query I rowsort label-7129
SELECT cor0.col1 / - tab0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 6112deff45c23c2311a09b6e15d4231f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7130
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 7 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 7 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - ( 82 ) * col1 AS col2 FROM tab1 AS cor0
----
-1066
-2132
-820

query I rowsort
SELECT DISTINCT 34 * + col0 * + col2 AS col1 FROM tab1
----
124032
261120
5508

query I rowsort
SELECT ALL + 90 * - col1 * col2 FROM tab2 AS cor0
----
-138060
-58140
-75330

query I rowsort
SELECT 20 + cor1.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 147781a9387d237fe4f8a375ec5c47bb

query I rowsort
SELECT DISTINCT + - 49 AS col1 FROM tab2 cor0
----
-49

query I rowsort
SELECT ALL + - 59 * col0 AS col1 FROM tab2 AS cor0
----
-413
-4602
-4661

query I rowsort
SELECT + 89 * - col0 FROM tab0
----
-2136
-3115
-7921

query I rowsort
SELECT + cor0.col2 * + col0 + col0 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT - + col0 * 72 + + col0 AS col2 FROM tab0 AS cor0
----
-1704
-2485
-6319

query I rowsort
SELECT ALL col0 * cor0.col1 + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT 74 * - col1 FROM tab0
----
-6364
-6734
-7178

query I rowsort
SELECT col0 + 94 AS col1 FROM tab2 AS cor0
----
101
172
173

query I rowsort
SELECT ALL tab1.col1 * - 33 * + col2 + - col1 FROM tab1
----
-18820
-41197
-46358

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7144
SELECT + + col0 * + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-7144
SELECT + + col0 * + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - col2 * 17 AS col1 FROM tab1 AS cor0
----
-1632
-918
-969

query I rowsort
SELECT DISTINCT 31 * + cor0.col2 FROM tab1, tab1 cor0
----
1674
1767
2976

query I rowsort
SELECT DISTINCT - + 82 + + col0 FROM tab2 AS cor0
----
-3
-4
-75

query I rowsort
SELECT DISTINCT col1 * col2 * col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT + + 40 + col2 - col0 AS col0 FROM tab2 AS cor0
----
-1
-12
60

query I rowsort
SELECT ALL + + col0 + - col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT - cor0.col1 + 17 * col1 FROM tab2 AS cor0
----
272
496
944

query I rowsort
SELECT - + ( + col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ( + col0 ) + - col0 * + 29 FROM tab1 AS cor0
----
-1792
-2240
-84

query I rowsort
SELECT ALL ( - ( cor0.col0 ) ) * - ( col2 ) + - col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL - + col1 - col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - tab1.col2 * 74 * - tab1.col2 AS col1 FROM tab1
----
215784
240426
681984

query I rowsort
SELECT - - 40 AS col1 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 09624b9180d40f03a4dda4b4c17356c0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7158
SELECT - + CAST( NULL AS SIGNED ) * + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7158
SELECT - + CAST ( NULL AS INTEGER ) * + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col2 + cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT cor0.col2 + + col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT col2 - - col0 * - 5 AS col2 FROM tab0 AS cor0
----
-174
-363
-87

query I rowsort
SELECT + col1 + - col0 AS col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT col1 * col2 - - cor0.col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - col1 * + col0 + + ( + col0 ) * col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( col0 ) - - cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + - col1 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT ALL + col0 + + col1 * col1 FROM tab1
----
164
249
679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7168
SELECT col1 * col1 + CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
7429
8363
9410

skipif mysql # not compatible
query I rowsort label-7168
SELECT col1 * col1 + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-7169
SELECT + 17 DIV - col0 + + col2 FROM tab1 AS cor0
----
49
57
96

skipif mysql # not compatible
query I rowsort label-7169
SELECT + 17 / - col0 + + col2 FROM tab1 AS cor0
----
49
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7170
SELECT ALL + - 32 * - col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL + - 32 * - col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7171
SELECT DISTINCT + + col1 DIV col0 AS col1 FROM tab2 cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT + + col1 / col0 AS col1 FROM tab2 cor0
----
0
4

query I rowsort
SELECT DISTINCT + col1 * ( cor0.col1 ) * col0 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-7173
SELECT ALL col2 DIV + col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL col2 / + col2 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ALL - ( + cor1.col2 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT ALL + col2 * + col1 + - tab0.col1 FROM tab0
----
0
2752
7371

query I rowsort
SELECT ALL 77 + - tab0.col2 * + col2 FROM tab0
----
-1012
-6647
76

query I rowsort
SELECT DISTINCT + - col0 - + col0 * 11 FROM tab2 cor0
----
-84
-936
-948

query I rowsort
SELECT 14 * + col1 FROM tab2 AS cor0
----
238
434
826

query I rowsort
SELECT tab2.col0 * + col0 + - col2 AS col1 FROM tab2
----
22
6058
6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-7180
SELECT ALL col1 + - col0 DIV col0 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL col1 + - col0 / col0 FROM tab0
----
85
90
96

query I rowsort
SELECT ALL + cor0.col0 - cor0.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to b4cba4f278386334ce9a7cc0fa9e286a

query I rowsort
SELECT ( + ( col0 ) ) * - ( col0 ) FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT ALL + tab1.col0 * + 65 FROM tab1, tab1 AS cor0
----
9 values hashing to 7a6255f826acaf2d31e3f32491824e83

query I rowsort
SELECT ALL - + 80 * + col0 + - col1 * + ( col1 * - ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
-10820
-22624
-36744

onlyif mysql # use DIV operator for integer division
query I rowsort label-7185
SELECT DISTINCT cor0.col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT cor0.col0 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7186
SELECT + CAST( NULL AS DECIMAL ) - - cor0.col1 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7186
SELECT + CAST ( NULL AS REAL ) - - cor0.col1 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-7187
SELECT DISTINCT + col0 DIV col0 AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT + col0 / col0 AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + 6 * - col2 + - col0 FROM tab2 AS cor0
----
-169
-234
-307

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col2 col2 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-7190
SELECT DISTINCT - col1 + - col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT - col1 + - col1 / - col0 AS col2 FROM tab0 AS cor0
----
-83
-90
-95

query I rowsort
SELECT - + 58 + + cor0.col0 * - 76 FROM tab2 AS cor0
----
-590
-5986
-6062

query I rowsort
SELECT DISTINCT - - ( - col0 ) * + col0 + col1 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-7193
SELECT DISTINCT - ( - col2 ) DIV - col0 + col0 * col1 AS col2 FROM tab2 cor0
----
1343
214
4602

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT - ( - col2 ) / - col0 + col0 * col1 AS col2 FROM tab2 cor0
----
1343
214
4602

query I rowsort
SELECT DISTINCT - col0 + + col1 * col0 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 + - 20 AS col0 FROM tab0 AS cor0
----
-1245
-596
-7941

query I rowsort
SELECT ALL + col2 - 95 FROM tab2
----
-57
-68
-69

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
7
78
79

query I rowsort
SELECT DISTINCT + 54 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
54

query I rowsort
SELECT ALL tab2.col1 * 89 - tab2.col1 * + col0 FROM tab2
----
170
2542
649

query I rowsort
SELECT + col1 + - tab2.col0 + col0 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT + cor0.col1 + col0 * col2 - + col2 FROM tab2 AS cor0
----
193
2061
2981

query I rowsort
SELECT - - col1 * + 9 FROM tab2 AS cor0
----
153
279
531

query I rowsort
SELECT DISTINCT cor0.col1 * 22 AS col1 FROM tab1 AS cor0
----
220
286
572

query I rowsort
SELECT + - col1 + col2 * + col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT - + col1 - + ( col2 + col2 ) FROM tab1 AS cor0
----
-124
-134
-205

query I rowsort
SELECT ALL + 57 * col2 FROM tab0 AS cor0
----
1881
4674
57

query I rowsort
SELECT 3 * col1 AS col2 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT ALL + col0 + + 32 * + col2 FROM tab2 AS cor0
----
1295
871
910

onlyif mysql # use DIV operator for integer division
query I rowsort label-7209
SELECT - col1 DIV - 38 - + col0 AS col1 FROM tab0 AS cor0
----
-22
-33
-87

skipif mysql # not compatible
query I rowsort label-7209
SELECT - col1 / - 38 - + col0 AS col1 FROM tab0 AS cor0
----
-22
-33
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * col0 + + col1 * ( - cor0.col2 ) col0 FROM tab2 AS cor0
----
-6887
-7618
-886

query I rowsort
SELECT - cor0.col1 - cor0.col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT + - col1 + - 40 * col2 FROM tab0 AS cor0
----
-137
-1406
-3371

query I rowsort
SELECT ( 70 ) - - col0 FROM tab0 AS cor0
----
105
159
94

query I rowsort
SELECT - - 71 AS col1 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT + col2 + cor0.col0 + + col2 FROM tab2 AS cor0
----
130
155
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-7216
SELECT col0 DIV - col1 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7216
SELECT col0 / - col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - ( col1 ) + col2 * + 74 FROM tab1 AS cor0
----
4022
4228
7117

onlyif mysql # use DIV operator for integer division
query I rowsort label-7218
SELECT - CAST( - ( + col2 ) AS SIGNED ) DIV - col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-7218
SELECT - CAST ( - ( + col2 ) AS INTEGER ) / - col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT + 11 + col0 AS col2 FROM tab1 AS cor0
----
14
75
91

query I rowsort
SELECT DISTINCT - ( + 1 ) * + col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + - 95 + - col1 AS col0 FROM tab1 cor0
----
-105
-108
-121

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab2 AS cor1
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 28 col2 FROM tab0 cor0
----
2296
28
924

query I rowsort
SELECT cor0.col1 * + ( col0 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 67 - + col1 FROM tab2
----
36
50
8

query I rowsort
SELECT + tab2.col2 + + ( tab2.col2 ) AS col0 FROM tab2
----
52
54
76

query I rowsort
SELECT col1 + + 19 FROM tab2
----
36
50
78

query I rowsort
SELECT + col2 + col0 * col1 AS col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT - col1 + ( - col0 ) * - col0 AS col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT ALL - - tab2.col1 * 71 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 07d93cbd447915c86639cf3368f6f0c4

query I rowsort
SELECT ALL + col0 * ( 66 + + col1 * col1 ) AS col1 FROM tab1
----
10624
18800
2226

query I rowsort
SELECT + tab0.col1 * col2 + - col2 * - col2 * col0 FROM tab0
----
132
28974
605898

query I rowsort
SELECT ALL col1 + 59 * + col0 FROM tab2
----
444
4661
4678

query I rowsort
SELECT ALL + col1 * 4 + tab0.col1 * col0 AS col0 FROM tab0
----
2408
3783
8463

query I rowsort
SELECT + col0 + + col2 * col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - col1 * - col1 + - col0 AS col2 FROM tab0
----
7372
8192
9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-7237
SELECT ALL + col2 DIV + 36 + col0 FROM tab0 AS cor0
----
24
35
91

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL + col2 / + 36 + col0 FROM tab0 AS cor0
----
24
35
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-7238
SELECT DISTINCT + cor0.col2 + col1 DIV - col1 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT + cor0.col2 + col1 / - col1 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT - ( - col2 ) * col1 + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT cor0.col2 * - col0 + - col0 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT - ( + col2 ) + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT ALL + cor0.col0 * col0 + - col1 AS col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT + ( 59 ) FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT ALL - col2 * col2 + - col0 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT + col2 + - 26 * - col0 FROM tab2 AS cor0
----
2054
209
2092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 + - col2 col2 FROM tab1 AS cor0
----
-105
-63
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( col0 ) ) + col0 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 34 * 6 * col2 FROM tab1
----
-11016
-11628
-19584

query I rowsort
SELECT ALL 63 * - col0 FROM tab1
----
-189
-4032
-5040

query I rowsort
SELECT ( col1 ) + + col1 AS col2 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7251
SELECT - CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7251
SELECT - CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - col1 + - col2 - col0 FROM tab0 AS cor0
----
-7453
-8452
-9445

query I rowsort
SELECT + cor0.col0 * col0 * cor0.col0 + - col1 FROM tab1 AS cor0
----
1
262134
511987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 * + col2 - + col2 * + 33 col2 FROM tab1 AS cor0
----
2376
2508
4224

query I rowsort
SELECT DISTINCT - 99 * col0 FROM tab1 AS cor0
----
-297
-6336
-7920

query I rowsort
SELECT ALL + 2 * + col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT col2 * - 41 AS col1 FROM tab1 cor0
----
-2214
-2337
-3936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7258
SELECT cor0.col2 * + CAST( + col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7258
SELECT cor0.col2 * + CAST ( + col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col2 * + 71 FROM tab0 cor0
----
2343
5822
71

query I rowsort
SELECT - col1 * cor0.col0 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT - - 3 * - col0 FROM tab0 cor0
----
-105
-267
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-7262
SELECT col2 * col1 + + col2 DIV col0 AS col2 FROM tab1 AS cor0
----
1249
1422
570

skipif mysql # not compatible
query I rowsort label-7262
SELECT col2 * col1 + + col2 / col0 AS col2 FROM tab1 AS cor0
----
1249
1422
570

query I rowsort
SELECT - 60 - col0 FROM tab1 cor0
----
-124
-140
-63

query I rowsort
SELECT + - 99 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 761f5f1a166a00db99360141565a85da

query I rowsort
SELECT col1 + - col0 * cor0.col1 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-375
-4328
-6571

onlyif mysql # use DIV operator for integer division
query I rowsort label-7266
SELECT ALL - + col2 DIV - cor0.col0 + col0 * cor0.col1 FROM tab0 AS cor0
----
2065
3395
8099

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL - + col2 / - cor0.col0 + col0 * cor0.col1 FROM tab0 AS cor0
----
2065
3395
8099

query I rowsort
SELECT ALL - col0 + 69 AS col2 FROM tab2 AS cor0
----
-10
-9
62

query I rowsort
SELECT DISTINCT col2 * - col0 + - col1 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT ALL - - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - col2 * + col0 + + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT col1 + + col2 * + 6 FROM tab2 cor0
----
193
215
245

query I rowsort
SELECT - + col2 * - 87 - 31 * - col2 * - col0 FROM tab0 AS cor0
----
-21681
-219104
-998

query I rowsort
SELECT + cor0.col1 * 23 FROM tab0 AS cor0
----
1978
2093
2231

query I rowsort
SELECT DISTINCT + col0 * col1 - + col0 AS col1 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-7275
SELECT + col0 * ( + cor0.col2 ) + + col1 * col1 DIV - col2 FROM tab0 AS cor0
----
-9374
568
7198

skipif mysql # not compatible
query I rowsort label-7275
SELECT + col0 * ( + cor0.col2 ) + + col1 * col1 / - col2 FROM tab0 AS cor0
----
-9374
568
7198

query I rowsort
SELECT - col2 * col1 * col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT + 19 * + col2 - col0 AS col1 FROM tab2
----
416
506
643

onlyif mysql # use DIV operator for integer division
query I rowsort label-7278
SELECT DISTINCT 28 DIV tab2.col1 - + col2 FROM tab2
----
-26
-27
-37

skipif mysql # not compatible
query I rowsort label-7278
SELECT DISTINCT 28 / tab2.col1 - + col2 FROM tab2
----
-26
-27
-37

query I rowsort
SELECT DISTINCT + col0 - + col2 AS col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT col2 * + ( col1 ) + tab1.col0 FROM tab1
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-7281
SELECT - col2 + + 12 - col0 DIV col0 AS col0 FROM tab1
----
-43
-46
-85

skipif mysql # not compatible
query I rowsort label-7281
SELECT - col2 + + 12 - col0 / col0 AS col0 FROM tab1
----
-43
-46
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
24
35
89

query I rowsort
SELECT DISTINCT col0 + col1 + tab2.col2 FROM tab2
----
134
163
65

query I rowsort
SELECT ALL col0 * 36 + 79 FROM tab0 AS cor0
----
1339
3283
943

query I rowsort
SELECT - cor0.col2 * col2 + + col0 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL - - col0 + cor0.col1 + ( + col2 ) AS col0 FROM tab1 cor0
----
131
189
83

query I rowsort
SELECT ALL + col0 * cor0.col1 + - col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT + col1 + 21 FROM tab1
----
31
34
47

query I rowsort
SELECT - 66 FROM tab0, tab2 cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # use DIV operator for integer division
query I rowsort label-7290
SELECT - col0 * col2 + - col0 DIV col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-7290
SELECT - col0 * col2 + - col0 / col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - - cor0.col0 + cor0.col1 * - col0 AS col1 FROM tab2 cor0
----
-1264
-210
-4524

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to e660b5944e34dd8d75740286862b3252

query I rowsort
SELECT + 15 * 27 AS col2 FROM tab1 cor0
----
405
405
405

query I rowsort
SELECT - ( - 99 ) FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT DISTINCT - col0 - tab2.col0 FROM tab2
----
-14
-156
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 + + tab0.col2 + + 95 * - 0 * col0 col2 FROM tab0
----
-30
2
51

query I rowsort
SELECT tab2.col2 * tab2.col1 + col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT ALL 1 - - col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT ALL 32 - col1 FROM tab1 AS cor0
----
19
22
6

query I rowsort
SELECT DISTINCT cor0.col1 + + col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT 55 * + col1 + col2 * 0 FROM tab0 AS cor0
----
4730
5005
5335

query I rowsort
SELECT DISTINCT col0 * - col2 + - ( 34 ) AS col0 FROM tab2 AS cor0
----
-2062
-223
-3036

query I rowsort
SELECT + col0 + - col2 * + 23 FROM tab1 AS cor0
----
-1239
-1247
-2128

query I rowsort
SELECT - 62 AS col2 FROM tab1 cor0
----
-62
-62
-62

query I rowsort
SELECT ALL - col0 + - col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 * col0 * + col0 col0 FROM tab2 AS cor0
----
109512
112338
882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + ( col2 ) * + cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 - + ( + col0 + col2 ) col0 FROM tab1 AS cor0
----
-185
-256
-60

query I rowsort
SELECT ALL - - col0 * col2 + - col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT + + col2 + ( 76 ) FROM tab0 AS cor0
----
109
158
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-7312
SELECT - - col2 DIV - 48 + - col0 * - col0 * + col2 FROM tab2 AS cor0
----
1323
158184
237158

skipif mysql # not compatible
query I rowsort label-7312
SELECT - - col2 / - 48 + - col0 * - col0 * + col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT - 78 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT DISTINCT - 22 * ( col1 ) FROM tab0 AS cor0
----
-1892
-2002
-2134

onlyif mysql # use DIV operator for integer division
query I rowsort label-7315
SELECT ALL col2 DIV + col0 FROM tab2 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL col2 / + col0 FROM tab2 cor0
----
0
0
3

query I rowsort
SELECT DISTINCT + 25 + - col2 FROM tab1 AS cor0
----
-29
-32
-71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7317
SELECT + - CAST( - col0 AS SIGNED ) * col0 * ( 94 ) AS col1 FROM tab0 AS cor0
----
115150
54144
744574

skipif mysql # not compatible
query I rowsort label-7317
SELECT + - CAST ( - col0 AS INTEGER ) * col0 * ( 94 ) AS col1 FROM tab0 AS cor0
----
115150
54144
744574

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + + ( - col2 ) * + 73 * col1 AS col2 FROM tab0 AS cor0
----
-207174
-544726
-7081

query I rowsort
SELECT DISTINCT + ( + 12 + - tab1.col0 ) AS col1 FROM tab1
----
-52
-68
9

query I rowsort
SELECT - tab1.col0 + col0 * - col0 FROM tab1
----
-12
-4160
-6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - tab0.col2 col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL + - ( + col0 ) + 37 AS col1 FROM tab2 AS cor0
----
-41
-42
30

query I rowsort
SELECT 18 * cor0.col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d47a4b66c4f0a43c447c25a26e1bb27b

query I rowsort
SELECT - col0 * + col2 + + col2 * 98 FROM tab0
----
2442
63
738

query I rowsort
SELECT ( + col2 ) * + col0 + 16 FROM tab1
----
178
3664
7696

query I rowsort
SELECT - col0 * col0 + col2 FROM tab1
----
-4039
-6304
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col1 FROM tab1, tab0 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT - - col0 * ( col1 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + col2 + - ( - col2 ) * col1 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT cor0.col0 * col0 + + 47 FROM tab1 cor0
----
4143
56
6447

onlyif mysql # use DIV operator for integer division
query I rowsort label-7332
SELECT - cor0.col1 - + col0 DIV 65 AS col2 FROM tab2 AS cor0
----
-18
-31
-60

skipif mysql # not compatible
query I rowsort label-7332
SELECT - cor0.col1 - + col0 / 65 AS col2 FROM tab2 AS cor0
----
-18
-31
-60

query I rowsort
SELECT DISTINCT - - ( + col0 ) + + col0 * - 78 AS col1 FROM tab0 AS cor0
----
-1848
-2695
-6853

query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
30

query I rowsort
SELECT 21 AS col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

onlyif mysql # use DIV operator for integer division
query I rowsort label-7336
SELECT col2 DIV - col0 AS col1 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7336
SELECT col2 / - col0 AS col1 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT + + ( - col1 ) + col1 * col2 AS col2 FROM tab1 AS cor0
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-7338
SELECT - col2 + col0 + 27 DIV col0 FROM tab0
----
-8
34
7

skipif mysql # not compatible
query I rowsort label-7338
SELECT - col2 + col0 + 27 / col0 FROM tab0
----
-8
34
7

query I rowsort
SELECT - 56 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

query I rowsort
SELECT - col1 * - col1 + - col1 AS col2 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT + col1 * col2 * + col0 AS col0 FROM tab1
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7342
SELECT DISTINCT - 66 * - tab0.col0 * CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
38016
522786
80850

skipif mysql # not compatible
query I rowsort label-7342
SELECT DISTINCT - 66 * - tab0.col0 * CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
38016
522786
80850

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab0 AS cor0, tab2 cor1
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

onlyif mysql # use DIV operator for integer division
query I rowsort label-7344
SELECT DISTINCT + cor0.col2 DIV + 84 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT + cor0.col2 / + 84 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 32 * col2 col0 FROM tab1 AS cor0
----
103968
294912
93312

query I rowsort
SELECT - - col1 * - col1 - + 23 AS col1 FROM tab0 AS cor0
----
-7419
-8304
-9432

query I rowsort
SELECT DISTINCT - col0 + - col1 - ( - col0 ) * + 39 AS col0 FROM tab2
----
235
2905
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col2 col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col1 - - ( 7 ) FROM tab0
----
104
93
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7350
SELECT - - cor0.col1 DIV - col0 + 63 - col0 FROM tab0 AS cor0
----
-27
26
36

skipif mysql # not compatible
query I rowsort label-7350
SELECT - - cor0.col1 / - col0 + 63 - col0 FROM tab0 AS cor0
----
-27
26
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7351
SELECT ALL + col2 - + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL + col2 - + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - col1 * tab1.col2 * + col1 AS col0 FROM tab1
----
-16211
-36478
-5690

query I rowsort
SELECT - 28 * + col2 AS col0 FROM tab1 AS cor0
----
-1512
-1596
-2688

query I rowsort
SELECT DISTINCT 66 * col2 * + ( + col2 ) - col0 AS col2 FROM tab0 cor0
----
31
443695
71850

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7355
SELECT ALL CAST( + col0 AS SIGNED ) + + col1 FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL CAST ( + col0 AS INTEGER ) + + col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL + col2 + + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + col1 + - col0 + col1 FROM tab2 cor0
----
-45
40
55

query I rowsort
SELECT DISTINCT ( + col0 ) * cor0.col0 + - col2 FROM tab1 cor0
----
-45
4039
6304

query I rowsort
SELECT + - 32 * col1 FROM tab2 AS cor0
----
-1888
-544
-992

query I rowsort
SELECT ALL + col2 * + col0 * col1 FROM tab2
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-7361
SELECT DISTINCT + - col0 + col1 + col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
1
61

skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT + - col0 + col1 + col0 / - col0 AS col2 FROM tab0 AS cor0
----
1
61

query I rowsort
SELECT ALL - - col1 - 9 FROM tab2 AS cor0
----
22
50
8

query I rowsort
SELECT col0 + - 22 * col0 AS col2 FROM tab2
----
-147
-1638
-1659

query I rowsort
SELECT ALL + 60 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL - col2 * + ( + cor0.col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - + 75 + - cor0.col1 * col1 FROM tab2 AS cor0
----
-1036
-3556
-364

query I rowsort
SELECT ALL 7 + + col1 + + col2 * - ( - cor0.col0 + - col2 ) FROM tab0 AS cor0
----
140
14120
1974

query I rowsort
SELECT - cor1.col0 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

query I rowsort
SELECT DISTINCT ( - 92 ) AS col1 FROM tab1 cor0
----
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7370
SELECT DISTINCT - - col0 DIV + cor0.col0 + col1 * col1 + - col1 AS col0 FROM tab2 AS cor0
----
273
3423
931

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT - - col0 / + cor0.col0 + col1 * col1 + - col1 AS col0 FROM tab2 AS cor0
----
273
3423
931

query I rowsort
SELECT - 76 * - col0 + - ( col1 ) AS col2 FROM tab2 AS cor0
----
501
5869
5987

query I rowsort
SELECT ALL + cor0.col2 * - col0 + 85 FROM tab2 AS cor0
----
-104
-1943
-2917

query I rowsort
SELECT ALL 92 * - col2 AS col1 FROM tab0 AS cor0
----
-3036
-7544
-92

query I rowsort
SELECT ALL + 99 AS col1 FROM tab0 cor0
----
99
99
99

query I rowsort
SELECT DISTINCT - 78 * - col0 FROM tab2 AS cor0
----
546
6084
6162

query I rowsort
SELECT - tab0.col1 + 58 AS col2 FROM tab0
----
-28
-33
-39

query I rowsort
SELECT DISTINCT + ( tab1.col2 + 76 ) FROM tab1, tab2 AS cor0
----
130
133
172

onlyif mysql # use DIV operator for integer division
query I rowsort label-7378
SELECT ALL ( ( + col0 ) ) * ( col2 ) DIV col2 - + 39 AS col1 FROM tab1
----
-36
25
41

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL ( ( + col0 ) ) * ( col2 ) / col2 - + 39 AS col1 FROM tab1
----
-36
25
41

query I rowsort
SELECT DISTINCT ( tab0.col2 ) - col1 FROM tab0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7380
SELECT 51 + - 9 * col2 - - CAST( 39 AS SIGNED ) FROM tab2
----
-144
-153
-252

skipif mysql # not compatible
query I rowsort label-7380
SELECT 51 + - 9 * col2 - - CAST ( 39 AS INTEGER ) FROM tab2
----
-144
-153
-252

query I rowsort
SELECT ALL - cor0.col0 * + 52 + col0 AS col2 FROM tab2 AS cor0
----
-357
-3978
-4029

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + + col0 + - col0 * + col0 * + col1 AS col2 FROM tab1 AS cor0
----
-231
-40896
-83120

onlyif mysql # use DIV operator for integer division
query I rowsort label-7384
SELECT DISTINCT + cor0.col0 DIV - col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7384
SELECT DISTINCT + cor0.col0 / - col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL - col2 + ( cor0.col2 ) * + col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL + + col2 * + 26 FROM tab2 AS cor0
----
676
702
988

query I rowsort
SELECT DISTINCT - col2 * - 33 * col1 FROM tab1 AS cor0
----
18810
41184
46332

query I rowsort
SELECT ALL + col1 + 67 * - col1 * cor0.col1 FROM tab1 cor0
----
-11310
-45266
-6690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 col0 FROM tab1
----
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-7390
SELECT - col2 + - cor0.col1 DIV cor0.col0 FROM tab1 AS cor0
----
-57
-62
-96

skipif mysql # not compatible
query I rowsort label-7390
SELECT - col2 + - cor0.col1 / cor0.col0 FROM tab1 AS cor0
----
-57
-62
-96

query I rowsort
SELECT DISTINCT col0 * - col0 + 33 AS col0 FROM tab0 AS cor0
----
-1192
-543
-7888

query I rowsort
SELECT ALL - col1 * + 0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + - col1 + + col1 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - ( col0 ) * col1 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7395
SELECT DISTINCT - col1 DIV + tab1.col0 col2 FROM tab1
----
-8
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT - col1 / + tab1.col0 col2 FROM tab1
----
-8
0

query I rowsort
SELECT - - col1 * + 30 FROM tab0 AS cor0
----
2580
2730
2910

query I rowsort
SELECT ALL + - cor0.col2 * col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-7399
SELECT 51 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
7

skipif mysql # not compatible
query I rowsort label-7399
SELECT 51 / col0 AS col0 FROM tab2 AS cor0
----
0
0
7

query I rowsort
SELECT ALL + col0 * - col0 * - 65 AS col0 FROM tab2
----
3185
395460
405665

query I rowsort
SELECT DISTINCT ( 25 ) AS col0 FROM tab2, tab2 AS cor0
----
25

query I rowsort
SELECT col2 * ( 5 ) AS col1 FROM tab2
----
130
135
190

query I rowsort
SELECT DISTINCT + col1 + + ( - col0 ) * col1 AS col0 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT - col1 * ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ( - col2 + + col0 ) AS col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL ( - ( - col1 ) ) + cor0.col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + - col2 + + col0 * - col1 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT 50 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2700
2850
4800

query I rowsort
SELECT DISTINCT 24 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
24

query I rowsort
SELECT - + cor1.col2 * + 24 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd9195e0c03d0b6ef1aaa26277ba72

onlyif mysql # use DIV operator for integer division
query I rowsort label-7411
SELECT ALL 36 * + cor0.col2 + + col0 DIV + 67 AS col1 FROM tab0 AS cor0
----
1188
2953
36

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL 36 * + cor0.col2 + + col0 / + 67 AS col1 FROM tab0 AS cor0
----
1188
2953
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-7412
SELECT + col2 DIV + col1 - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7412
SELECT + col2 / + col1 - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + col0 * 77 AS col0 FROM tab1 AS cor0
----
231
4928
6160

query I rowsort
SELECT DISTINCT - + col1 + + col0 AS col0 FROM tab0 AS cor0
----
-2
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7415
SELECT DISTINCT - col0 + + ( + col1 ) DIV + col0 FROM tab1 AS cor0
----
-64
-80
5

skipif mysql # not compatible
query I rowsort label-7415
SELECT DISTINCT - col0 + + ( + col1 ) / + col0 FROM tab1 AS cor0
----
-64
-80
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7416
SELECT + col1 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT + col1 + + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - tab2.col0 * col1 * tab2.col1 AS col0 FROM tab2 WHERE NOT col2 * col2 IN ( - tab2.col2 )
----
-22752
-271440
-6720

query I rowsort
SELECT DISTINCT col1 + tab1.col1 * col0 AS col0 FROM tab1
----
104
1053
650

query I rowsort
SELECT DISTINCT - - col1 + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT tab2.col0 + col0 + + col0 FROM tab2
----
21
234
237

onlyif mysql # use DIV operator for integer division
query I rowsort label-7421
SELECT DISTINCT tab0.col1 DIV col0 AS col2 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7421
SELECT DISTINCT tab0.col1 / col0 AS col2 FROM tab0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7422
SELECT + col0 DIV col2 - col2 col1 FROM tab1 AS cor0
----
-54
-56
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7422
SELECT + col0 / col2 - col2 col1 FROM tab1 AS cor0
----
-54
-56
-96

query I rowsort
SELECT cor0.col2 + - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5b9ded363f55d1d4bbc85491d2b84046

query I rowsort
SELECT - cor0.col1 * col0 + - cor0.col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - - ( col2 ) + - col2 * cor0.col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-7426
SELECT 96 DIV - col1 AS col2 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7426
SELECT 96 / - col1 AS col2 FROM tab0 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col1 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + - cor0.col2 AS col2 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT ALL - col2 * - ( col1 ) - + col1 * cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * col0 * + 15 FROM tab2 AS cor0
----
735
91260
93615

query I rowsort
SELECT DISTINCT - col2 * + col2 AS col0 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - - col2 + col2 * - ( col1 ) AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7433
SELECT DISTINCT - + col1 DIV cor0.col0 + cor0.col0 + cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
1328
1399
634

skipif mysql # not compatible
query I rowsort label-7433
SELECT DISTINCT - + col1 / cor0.col0 + cor0.col0 + cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
1328
1399
634

query I rowsort
SELECT ( + col2 + + tab1.col1 ) FROM tab1
----
109
67
80

query I rowsort
SELECT col1 * - tab0.col0 - + col1 FROM tab0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-7436
SELECT DISTINCT - col0 DIV col2 col0 FROM tab0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT - col0 / col2 col0 FROM tab0
----
-1
-35
0

query I rowsort
SELECT DISTINCT + 3 AS col1 FROM tab2, tab0, tab0 AS cor0
----
3

query I rowsort
SELECT + col2 + + col0 * - tab2.col1 * - col2 FROM tab2 WHERE NOT ( - col1 * - col2 ) BETWEEN NULL AND + col1 * + col1
----
51072

query I rowsort
SELECT + col2 + + tab1.col1 + - col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN col2 * col0 * - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < ( col2 + - col0 - + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7441
SELECT DISTINCT col2 + - tab0.col2 DIV - col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7441
SELECT DISTINCT col2 + - tab0.col2 / - col1 FROM tab0
----
1
33
82

query I rowsort
SELECT col2 * + col2 * + col0 + - col0 FROM tab1
----
207872
737200
8745

query I rowsort
SELECT col1 FROM tab0 WHERE col0 <= NULL
----

query I rowsort
SELECT ALL - col2 * col2 - - col2 * col0 FROM tab0
----
-297
34
574

query I rowsort
SELECT DISTINCT - col0 * col1 + - col0 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT + col0 * - col1 * col1 + col1 FROM tab1
----
-13507
-2002
-6390

onlyif mysql # use DIV operator for integer division
query I rowsort label-7447
SELECT DISTINCT tab0.col1 * + tab0.col2 + tab0.col1 * col1 DIV - col0 - col1 * + col1 FROM tab0 WHERE ( col1 DIV col1 ) <> - col2 + col0
----
-4866
-912
-9580

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT tab0.col1 * + tab0.col2 + tab0.col1 * col1 / - col0 - col1 * + col1 FROM tab0 WHERE ( col1 / col1 ) <> - col2 + col0
----
-4866
-912
-9580

query I rowsort
SELECT col0 * - col2 + + col2 / col1 + + col1 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 - - tab0.col2 col0 FROM tab0
----
-2805
-7380
-96

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 + col0 ) IN ( + col1 + - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-7451
SELECT DISTINCT - col2 + col0 DIV col1 AS col1 FROM tab1
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT - col2 + col0 / col1 AS col1 FROM tab1
----
-51
-54
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 col0 FROM tab1 WHERE NOT ( NULL ) < - col1 - + col1 * - col0
----

query I rowsort
SELECT + tab0.col2 - - tab0.col1 * - col2 AS col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT tab2.col1 * col1 AS col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL col1 * - col0 + col2 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT ALL col1 - tab0.col0 AS col1 FROM tab0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7457
SELECT - tab0.col1 + - col0 DIV - CAST( 27 AS SIGNED ) AS col1 FROM tab0
----
-86
-88
-96

skipif mysql # not compatible
query I rowsort label-7457
SELECT - tab0.col1 + - col0 / - CAST ( 27 AS INTEGER ) AS col1 FROM tab0
----
-86
-88
-96

query I rowsort
SELECT ALL 75 * - col2 FROM tab0
----
-2475
-6150
-75

query I rowsort
SELECT ALL - 98 * - col1 FROM tab2
----
1666
3038
5782

query I rowsort
SELECT DISTINCT + - 26 * + col2 FROM tab0 AS cor0
----
-2132
-26
-858

query I rowsort
SELECT + col1 * + col1 + 86 AS col1 FROM tab0
----
7482
8367
9495

query I rowsort
SELECT + col2 * - col2 * - tab0.col0 AS col1 FROM tab0
----
26136
35
598436

query I rowsort
SELECT ALL + - 29 AS col0 FROM tab1 AS cor0
----
-29
-29
-29

query I rowsort
SELECT ALL col1 * - 59 + + cor0.col1 * - col1 FROM tab0 AS cor0
----
-12470
-13650
-15132

onlyif mysql # use DIV operator for integer division
query I rowsort label-7465
SELECT DISTINCT col0 DIV ( + col2 * + col1 + + col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT col0 / ( + col2 * + col1 + + col0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 * col0 * col0 + col2 FROM tab2 cor0
----
-1296
-158158
-237120

query I rowsort
SELECT ALL col1 + + ( col0 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + + col1 - - col2 * col1 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-7469
SELECT ALL cor0.col2 * col1 DIV col0 AS col2 FROM tab1 cor0
----
15
468
8

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL cor0.col2 * col1 / col0 AS col2 FROM tab1 cor0
----
15
468
8

query I rowsort
SELECT ALL col0 + 55 FROM tab2 AS cor0
----
133
134
62

query I rowsort
SELECT DISTINCT - - col1 * col0 + - cor0.col0 - cor0.col1 AS col1 FROM tab2 AS cor0
----
1247
179
4465

query I rowsort
SELECT DISTINCT - col1 * - col1 + + col1 * col2 FROM tab2 cor0
----
1798
5015
935

onlyif mysql # use DIV operator for integer division
query I rowsort label-7473
SELECT ALL col1 DIV + 67 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL col1 / + 67 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + cor0.col0 + ( 82 ) * - col2 * - col0 AS col0 FROM tab0 AS cor0
----
2835
598347
64920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 * + col2 + + col0 col0 FROM tab0 AS cor0
----
-35913
-551279
34

query I rowsort
SELECT DISTINCT col1 * + col1 + 28 FROM tab2 cor0
----
317
3509
989

query I rowsort
SELECT ( - col1 ) * col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + ( 71 ) * col2 AS col2 FROM tab1 AS cor0
----
3834
4047
6816

query I rowsort
SELECT ALL 95 * col0 FROM tab1 AS cor0
----
285
6080
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - ( - col0 ) col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT col2 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT tab0.col1 * + col0 + col0 AS col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT col0 * + 40 AS col0 FROM tab0 AS cor0
----
1400
3560
960

query I rowsort
SELECT - ( ( - col1 ) ) * col0 - col2 FROM tab0 AS cor0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - ( - col2 ) ) col0 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - + 21 * + col2 FROM tab1 AS cor0
----
-1134
-1197
-2016

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7487
SELECT CAST( - 5 AS SIGNED ) + cor0.col2 * + CAST( - col2 AS SIGNED ) * - col2 AS col1 FROM tab2 AS cor0
----
17571
19678
54867

skipif mysql # not compatible
query I rowsort label-7487
SELECT CAST ( - 5 AS INTEGER ) + cor0.col2 * + CAST ( - col2 AS INTEGER ) * - col2 AS col1 FROM tab2 AS cor0
----
17571
19678
54867

query I rowsort
SELECT DISTINCT + 25 * + col1 AS col2 FROM tab1 AS cor0
----
250
325
650

query I rowsort
SELECT ALL 76 * ( cor0.col0 * - 13 ) FROM tab2 AS cor0
----
-6916
-77064
-78052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 + + ( + col1 ) col1 FROM tab1 AS cor0
----
-18
-21
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7491
SELECT CAST( NULL AS DECIMAL ) * - col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7491
SELECT CAST ( NULL AS REAL ) * - col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7492
SELECT - 66 DIV col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-6

skipif mysql # not compatible
query I rowsort label-7492
SELECT - 66 / col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7493
SELECT DISTINCT + col2 - + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT + col2 - + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( + col2 ) * col2 AS col2 FROM tab0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7495
SELECT CAST( col0 AS SIGNED ) + - col0 * + col2 + - tab2.col2 FROM tab2
----
-1976
-209
-2961

skipif mysql # not compatible
query I rowsort label-7495
SELECT CAST ( col0 AS INTEGER ) + - col0 * + col2 + - tab2.col2 FROM tab2
----
-1976
-209
-2961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7496
SELECT DISTINCT - CAST( NULL AS SIGNED ) * tab1.col2 + - col1 col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * tab1.col2 + - col1 col0 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7497
SELECT DISTINCT tab1.col0 DIV 15 + - tab1.col1 * col2 FROM tab1
----
-1243
-1404
-566

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT tab1.col0 / 15 + - tab1.col1 * col2 FROM tab1
----
-1243
-1404
-566

query I rowsort
SELECT DISTINCT + col2 + - 23 + col2 AS col0 FROM tab2
----
29
31
53

query I rowsort
SELECT 66 * col2 FROM tab0 AS cor0
----
2178
5412
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 * + col1 col2 FROM tab0 AS cor0
----
-3440
-3640
-3880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 + - col0 + - col0 col0 FROM tab1 AS cor0
----
-168
-3776
-7840

query I rowsort
SELECT DISTINCT - + 87 FROM tab1 cor0
----
-87

query I rowsort
SELECT DISTINCT + 46 + - col0 FROM tab0 AS cor0
----
-43
11
22

query I rowsort
SELECT + col1 * + col1 + cor0.col0 * + cor0.col2 * - col2 FROM tab1 AS cor0
----
-207836
-737111
-8072

query I rowsort
SELECT DISTINCT - col2 * col0 + - col0 FROM tab1 cor0
----
-165
-3712
-7760

query I rowsort
SELECT + col1 * col2 - + cor0.col1 FROM tab1 AS cor0
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-7507
SELECT 61 + col1 * col2 + col0 DIV + col0 FROM tab1 AS cor0
----
1310
1466
632

skipif mysql # not compatible
query I rowsort label-7507
SELECT 61 + col1 * col2 + col0 / + col0 FROM tab1 AS cor0
----
1310
1466
632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col1 + - col2 + col1 * col2 col1 FROM tab2 AS cor0
----
1254
1647
3042

onlyif mysql # use DIV operator for integer division
query I rowsort label-7509
SELECT - cor0.col0 + - col0 + col1 DIV + col1 FROM tab0 AS cor0
----
-177
-47
-69

skipif mysql # not compatible
query I rowsort label-7509
SELECT - cor0.col0 + - col0 + col1 / + col1 FROM tab0 AS cor0
----
-177
-47
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-7510
SELECT ALL + col2 DIV + col2 col2 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL + col2 / + col2 col2 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7511
SELECT 27 DIV - ( + col1 ) AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7511
SELECT 27 / - ( + col1 ) AS col0 FROM tab2
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7512
SELECT 44 * cor0.col2 + col0 DIV col0 FROM tab0 AS cor0
----
1453
3609
45

skipif mysql # not compatible
query I rowsort label-7512
SELECT 44 * cor0.col2 + col0 / col0 FROM tab0 AS cor0
----
1453
3609
45

query I rowsort
SELECT ALL + ( - 51 ) + col0 AS col2 FROM tab2
----
-44
27
28

query I rowsort
SELECT - 46 FROM tab0, tab0 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT tab2.col2 * - col1 + tab2.col2 + + col1 FROM tab2
----
-1449
-591
-779

query I rowsort
SELECT ALL col0 * + cor0.col0 + - cor0.col0 * + col2 AS col0 FROM tab0 AS cor0
----
-216
1190
623

query I rowsort
SELECT DISTINCT col2 * 62 FROM tab0 AS cor0
----
2046
5084
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7518
SELECT DISTINCT + - 96 + - col2 DIV col1 FROM tab1 AS cor0
----
-101
-103
-98

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT + - 96 + - col2 / col1 FROM tab1 AS cor0
----
-101
-103
-98

query I rowsort
SELECT + + ( col0 ) - + col1 * col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + 1 * 49 + - col1 FROM tab1 AS cor0
----
23
36
39

query I rowsort
SELECT DISTINCT + 96 + col1 FROM tab0 AS cor0
----
182
187
193

onlyif mysql # use DIV operator for integer division
query I rowsort label-7522
SELECT DISTINCT col0 DIV 29 + col1 FROM tab2 AS cor0
----
19
31
61

skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT col0 / 29 + col1 FROM tab2 AS cor0
----
19
31
61

query I rowsort
SELECT + col2 - col2 * col1 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7524
SELECT + CAST( 68 AS SIGNED ) + col1 FROM tab1 cor0
----
78
81
94

skipif mysql # not compatible
query I rowsort label-7524
SELECT + CAST ( 68 AS INTEGER ) + col1 FROM tab1 cor0
----
78
81
94

query I rowsort
SELECT - 19 * ( + col0 ) FROM tab2 AS cor0
----
-133
-1482
-1501

query I rowsort
SELECT - - 30 * - col2 AS col2 FROM tab2 AS cor0
----
-1140
-780
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-7527
SELECT - 63 DIV + col0 col0 FROM tab0 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7527
SELECT - 63 / + col0 col0 FROM tab0 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col2 ) col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT DISTINCT col1 * 39 AS col1 FROM tab0
----
3354
3549
3783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) * - col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - 45 + col1 * col2 * + ( + col1 ) FROM tab2 AS cor0
----
10937
25902
90461

query I rowsort
SELECT ALL + + col1 + - col2 * - cor0.col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + tab1.col1 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7535
SELECT - CAST( - ( col2 ) AS SIGNED ) FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7535
SELECT - CAST ( - ( col2 ) AS INTEGER ) FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7536
SELECT - + cor0.col0 DIV + ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-7536
SELECT - + cor0.col0 / + ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-35
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7537
SELECT - ( col0 ) DIV - cor0.col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7537
SELECT - ( col0 ) / - cor0.col1 FROM tab2 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 * + col1 * + col1 col0 FROM tab1
----
18928
2800
4732

query I rowsort
SELECT col0 * col1 * tab0.col1 AS col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT ALL - cor0.col0 * cor0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f7e57a354e4e5925116b9650d1011609

query I rowsort
SELECT + ( - 34 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 56 col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT 5 * col0 + ( col1 ) AS col1 FROM tab0 AS cor0
----
206
272
536

query I rowsort
SELECT DISTINCT - col1 + col0 * col1 * + col0 FROM tab0
----
118728
49450
720720

query I rowsort
SELECT ALL col0 * - col1 + col0 FROM tab1
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 * col2 col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT + ( + 36 ) FROM tab2, tab1 AS cor0
----
36

query I rowsort
SELECT ALL 19 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT cor0.col2 + + 27 FROM tab2 AS cor0
----
53
54
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-7550
SELECT col1 + + 52 * ( - col1 ) DIV col0 col0 FROM tab2 cor0
----
-199
20
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7550
SELECT col1 + + 52 * ( - col1 ) / col0 col0 FROM tab2 cor0
----
-199
20
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7551
SELECT col0 DIV + 84 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7551
SELECT col0 / + 84 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + tab1.col2 * ( + col1 ) FROM tab1
----
1344
1458
627

query I rowsort
SELECT + col1 + + col1 - - col1 AS col0 FROM tab2
----
177
51
93

query I rowsort
SELECT 37 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT + col1 + ( + tab0.col1 ) FROM tab0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 58 + - cor0.col1 col1 FROM tab1 AS cor0
----
3106
3296
5555

query I rowsort
SELECT - col2 + 93 AS col0 FROM tab1
----
-3
36
39

query I rowsort
SELECT cor0.col1 + cor0.col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + 96 + + col0 AS col0 FROM tab1 AS cor0
----
160
176
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-7560
SELECT + col0 DIV ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7560
SELECT + col0 / ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 * 62 col2 FROM tab2 AS cor0
----
2480
2480
2480

query I rowsort
SELECT + col2 + col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL + + cor0.col0 + + col1 * + col0 + + 63 FROM tab0 AS cor0
----
2151
3493
8251

onlyif mysql # use DIV operator for integer division
query I rowsort label-7564
SELECT DISTINCT + col2 DIV + col0 AS col1 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT + col2 / + col0 AS col1 FROM tab1 cor0
----
0
1
18

query I rowsort
SELECT ALL + - col2 + + ( + col0 * col2 + + col0 * - col0 ) AS col1 FROM tab0 AS cor0
----
-1191
-705
183

query I rowsort
SELECT DISTINCT cor0.col2 * + 18 FROM tab1 cor0
----
1026
1728
972

query I rowsort
SELECT ALL col2 * col1 + - cor0.col1 * ( ( col2 ) ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 23 - + col1 * tab0.col1 FROM tab0
----
-7373
-8258
-9386

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 * + col0 + col0 + + 35 * col1 * - col1 col1 FROM tab2
----
-129089
-17462
-34286

query I rowsort
SELECT - col0 * col0 - + col1 AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 * ( + col1 + + col1 ) * col2 col2 FROM tab2 AS cor0
----
-45171
-49058
-79742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + ( col1 ) col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7573
SELECT ALL - col1 * col0 * 66 + cor0.col2 - CAST( - 96 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-11319
-298042
-86968

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL - col1 * col0 * 66 + cor0.col2 - CAST ( - 96 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-11319
-298042
-86968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7574
SELECT - - col1 / - CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT - - col1 / - CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7575
SELECT DISTINCT + col1 + 2 * + ( - col2 ) DIV CAST( col0 * col0 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT + col1 + 2 * + ( - col2 ) / CAST ( col0 * col0 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col2 * + 89 AS col0 FROM tab2 AS cor0
----
2314
2403
3382

onlyif mysql # use DIV operator for integer division
query I rowsort label-7577
SELECT DISTINCT 72 - - col0 DIV - col1 FROM tab1
----
66
72

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT 72 - - col0 / - col1 FROM tab1
----
66
72

query I rowsort
SELECT - - tab2.col2 AS col1 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT - - 66 + col0 * + ( + col2 ) FROM tab1 cor0
----
228
3714
7746

query I rowsort
SELECT DISTINCT 21 AS col0 FROM tab2, tab0 AS cor0
----
21

query I rowsort
SELECT DISTINCT - ( col1 ) + + col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL col2 + col2 * tab2.col0 FROM tab2
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-7583
SELECT DISTINCT tab0.col2 DIV - tab0.col2 AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT tab0.col2 / - tab0.col2 AS col2 FROM tab0
----
-1

query I rowsort
SELECT + 12 AS col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7585
SELECT ALL + 97 DIV + cor0.col1 FROM tab2 AS cor0
----
1
3
5

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL + 97 / + cor0.col1 FROM tab2 AS cor0
----
1
3
5

query I rowsort
SELECT DISTINCT - 42 AS col1 FROM tab1 cor0
----
-42

query I rowsort
SELECT DISTINCT + - cor0.col2 * + col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT ( - col2 ) * + 53 AS col1 FROM tab0
----
-1749
-4346
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * col1 * col0 - col2 col0 FROM tab1
----
36423
4158
99744

query I rowsort
SELECT - col2 + - 17 + tab0.col0 FROM tab0
----
-10
-26
17

query I rowsort
SELECT ALL + col1 * + 69 - + 36 FROM tab1
----
1758
654
861

query I rowsort
SELECT - tab1.col0 * + 3 * col0 FROM tab1
----
-12288
-19200
-27

query I rowsort
SELECT ALL col0 - - col1 AS col0 FROM tab0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * ( + cor0.col0 ) col1 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-7595
SELECT + tab1.col0 DIV + col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7595
SELECT + tab1.col0 / + col0 FROM tab1
----
1
1
1

query I rowsort
SELECT 12 + + col1 FROM tab2 AS cor0
----
29
43
71

query I rowsort
SELECT DISTINCT - - cor0.col0 + ( + col0 ) * ( col2 ) + cor0.col1 FROM tab2 cor0
----
2165
227
3098

query I rowsort
SELECT DISTINCT - 3 + - 85 FROM tab1 AS cor0
----
-88

query I rowsort
SELECT DISTINCT col2 + + 19 FROM tab0 AS cor0
----
101
20
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7600
SELECT - col2 * - ( col2 ) + - col2 * + col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
2862
3192
9120

skipif mysql # not compatible
query I rowsort label-7600
SELECT - col2 * - ( col2 ) + - col2 * + col0 / + col0 AS col1 FROM tab1 AS cor0
----
2862
3192
9120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7601
SELECT ALL CAST( col1 AS SIGNED ) + - col2 * ( cor0.col2 ) FROM tab2 AS cor0
----
-1427
-617
-698

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL CAST ( col1 AS INTEGER ) + - col2 * ( cor0.col2 ) FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL + + ( 69 ) FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT + col2 * - col2 + - col1 * 43 FROM tab2 AS cor0
----
-2062
-2175
-3213

query I rowsort
SELECT DISTINCT - - ( col0 ) * + col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - - cor0.col1 + 26 * - col1 * col0 AS col1 FROM tab1 AS cor0
----
-16630
-2002
-27027

query I rowsort
SELECT ALL + cor0.col0 + + 25 * col2 AS col0 FROM tab1 cor0
----
1353
1489
2480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7607
SELECT - col2 * 43 - - col0 * + CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-291
-944
3484

skipif mysql # not compatible
query I rowsort label-7607
SELECT - col2 * 43 - - col0 * + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-291
-944
3484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 col0 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT 93 + - col2 * - col1 AS col2 FROM tab0 AS cor0
----
190
2931
7555

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7610
SELECT CAST( NULL AS SIGNED ) / + 84 + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7610
SELECT CAST ( NULL AS INTEGER ) / + 84 + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - col0 * col2 AS col1 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT ( col2 + col0 ) FROM tab1
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7613
SELECT + CAST( - 96 AS SIGNED ) * col1 - + cor0.col1 FROM tab0 AS cor0
----
-8342
-8827
-9409

skipif mysql # not compatible
query I rowsort label-7613
SELECT + CAST ( - 96 AS INTEGER ) * col1 - + cor0.col1 FROM tab0 AS cor0
----
-8342
-8827
-9409

query I rowsort
SELECT DISTINCT + col2 * col2 - col1 * col2 AS col1 FROM tab0 AS cor0
----
-1749
-738
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7615
SELECT DISTINCT - - cor0.col1 * ( col2 ) - CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2805
7380
96

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT - - cor0.col1 * ( col2 ) - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT + col0 + + cor0.col2 AS col0 FROM tab1 cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7617
SELECT - col0 + col1 - + CAST( - ( - col1 ) AS SIGNED ) DIV - 15 AS col0 FROM tab0 AS cor0
----
67
68
8

skipif mysql # not compatible
query I rowsort label-7617
SELECT - col0 + col1 - + CAST ( - ( - col1 ) AS INTEGER ) / - 15 AS col0 FROM tab0 AS cor0
----
67
68
8

query I rowsort
SELECT - ( 75 ) AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 + + 19 * col2 * + ( col0 ) col0 FROM tab2
----
3618
38558
57076

query I rowsort
SELECT - 26 + col0 AS col1 FROM tab1 AS cor0
----
-23
38
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-7621
SELECT DISTINCT col1 DIV 25 col1 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT col1 / 25 col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT - cor0.col1 * + 34 AS col1 FROM tab0 AS cor0
----
-2924
-3094
-3298

query I rowsort
SELECT ALL - col1 + 19 FROM tab0 AS cor0
----
-67
-72
-78

query I rowsort
SELECT DISTINCT - - cor0.col1 + col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL - + cor0.col2 + col1 * col0 AS col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL + col1 + + ( col2 ) AS col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-7627
SELECT cor0.col0 * col0 DIV 17 AS col0 FROM tab0 AS cor0
----
33
465
72

skipif mysql # not compatible
query I rowsort label-7627
SELECT cor0.col0 * col0 / 17 AS col0 FROM tab0 AS cor0
----
33
465
72

query I rowsort
SELECT col2 * - ( cor0.col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + col1 + + col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7630
SELECT - + col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT - + col2 * CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 61 * col1 AS col0 FROM tab1
----
-1586
-610
-793

query I rowsort
SELECT - col2 * 70 FROM tab0 AS cor0
----
-2310
-5740
-70

query I rowsort
SELECT col0 + + ( 96 ) * - col1 AS col0 FROM tab2 cor0
----
-1553
-2969
-5586

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col1 ) col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - 44 FROM tab2, tab1 cor0, tab0 AS cor1, tab2 cor2
----
-44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7636
SELECT - col2 + col2 * - CAST( + col0 AS SIGNED ) + - cor0.col1 FROM tab1 AS cor0
----
-242
-3715
-7789

skipif mysql # not compatible
query I rowsort label-7636
SELECT - col2 + col2 * - CAST ( + col0 AS INTEGER ) + - cor0.col1 FROM tab1 AS cor0
----
-242
-3715
-7789

query I rowsort
SELECT + 11 * + col0 AS col2 FROM tab1 cor0
----
33
704
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 + - col0 * 64 + - 40 col1 FROM tab2 AS cor0
----
-5114
-5178
-570

query I rowsort
SELECT + col1 * col0 + - col2 + - 28 AS col0 FROM tab1 AS cor0
----
-4
555
916

query I rowsort
SELECT ALL + col1 + - col0 * ( col0 ) FROM tab1 cor0
----
-4086
-6387
17

query I rowsort
SELECT 66 + - col2 AS col1 FROM tab0 AS cor0
----
-16
33
65

query I rowsort
SELECT - + 51 + col0 + - ( - col1 ) AS col1 FROM tab2 AS cor0
----
-13
45
86

query I rowsort
SELECT DISTINCT - cor0.col0 * - 63 AS col2 FROM tab0 AS cor0
----
1512
2205
5607

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7644
SELECT + CAST( NULL AS SIGNED ) + + cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7644
SELECT + CAST ( NULL AS INTEGER ) + + cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 74 * col1 - + col1 FROM tab1 AS cor0
----
1898
730
949

query I rowsort
SELECT + tab1.col2 * ( + 32 * - col1 + col2 ) FROM tab1
----
-14991
-30720
-42012

query I rowsort
SELECT DISTINCT col0 * - col2 + col0 AS col1 FROM tab2
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-7648
SELECT DISTINCT + col0 DIV tab0.col0 + - col0 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT + col0 / tab0.col0 + - col0 FROM tab0
----
-23
-34
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-7649
SELECT ALL + 71 DIV - 6 FROM tab1, tab0 AS cor0, tab0, tab2 cor1
----
81 values hashing to b479c2926237a341642edb92c755a9f3

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL + 71 / - 6 FROM tab1, tab0 AS cor0, tab0, tab2 cor1
----
81 values hashing to b479c2926237a341642edb92c755a9f3

query I rowsort
SELECT ( tab0.col0 + col2 * + ( - 53 ) ) FROM tab0
----
-1725
-18
-4257

query I rowsort
SELECT ( - cor0.col0 ) + - ( + 43 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d39c29053d174bc3b2a9979ab74d83fa

query I rowsort
SELECT 53 * - col1 * - col1 AS col0 FROM tab1
----
35828
5300
8957

query I rowsort
SELECT - 31 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
1984
2480
93

query I rowsort
SELECT - + col1 * 56 * + col1 FROM tab2 AS cor0
----
-16184
-194936
-53816

query I rowsort
SELECT DISTINCT - 75 AS col2 FROM tab2, tab0 AS cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 71 ) col1 FROM tab0
----
71
71
71

query I rowsort
SELECT ALL + col1 * 56 FROM tab0
----
4816
5096
5432

onlyif mysql # use DIV operator for integer division
query I rowsort label-7658
SELECT DISTINCT ( col0 * tab2.col1 ) - 22 DIV col0 FROM tab2
----
1343
214
4602

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT ( col0 * tab2.col1 ) - 22 / col0 FROM tab2
----
1343
214
4602

query I rowsort
SELECT ALL + col2 * tab1.col2 - + col2 * - 43 FROM tab1
----
13344
5238
5700

query I rowsort
SELECT DISTINCT - tab2.col0 + tab2.col1 FROM tab2
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-7661
SELECT - cor0.col1 DIV - tab0.col1 FROM tab0, tab1, tab1 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-7661
SELECT - cor0.col1 / - tab0.col1 FROM tab0, tab1, tab1 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT + 14 * + col0 + ( + 15 ) + - col2 * col0 FROM tab2
----
-1881
-76
-921

query I rowsort
SELECT DISTINCT + 68 + col0 AS col0 FROM tab2
----
146
147
75

query I rowsort
SELECT ALL + 56 * col0 + + col0 FROM tab1
----
171
3648
4560

query I rowsort
SELECT ALL 1 + col2 AS col2 FROM tab1
----
55
58
97

query I rowsort
SELECT ALL col0 * col0 + tab2.col1 AS col2 FROM tab2
----
6143
6258
80

query I rowsort
SELECT ALL + + 44 AS col1 FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT + col2 * cor0.col0 + 98 + 71 * - col2 FROM tab1 AS cor0
----
-301
-3574
962

query I rowsort
SELECT cor0.col0 * 45 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 751a9b3d74d10c25f99bf08bc8a5c350

query I rowsort
SELECT + col0 + 83 FROM tab0
----
107
118
172

query I rowsort
SELECT DISTINCT + col1 * + ( - tab2.col1 * col2 ) AS col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT + cor0.col1 + tab2.col1 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 92e3b258bb05c688aeabd5d16aba9daf

query I rowsort
SELECT - col0 + + cor0.col0 * + col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT + col2 + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT - - col0 * col2 - + col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT + 63 - + 6 FROM tab0 AS cor0
----
57

query I rowsort
SELECT ALL + + ( col1 ) * col1 + 76 + col0 * cor0.col1 FROM tab2 AS cor0
----
1254
1708
8159

onlyif mysql # use DIV operator for integer division
query I rowsort label-7678
SELECT DISTINCT col1 * - col1 + col2 DIV + col0 FROM tab1 cor0
----
-100
-168
-658

skipif mysql # not compatible
query I rowsort label-7678
SELECT DISTINCT col1 * - col1 + col2 / + col0 FROM tab1 cor0
----
-100
-168
-658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) * + col1 - - 40 col2 FROM tab0 AS cor0
----
2104
3435
8139

query I rowsort
SELECT ( - col1 ) + cor0.col1 * 62 FROM tab1 AS cor0
----
1586
610
793

query I rowsort
SELECT ALL cor0.col2 * col1 + + cor0.col0 * ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
15561
3492
4902

onlyif mysql # use DIV operator for integer division
query I rowsort label-7682
SELECT DISTINCT + + col0 DIV - col1 + + col2 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT + + col0 / - col1 + + col2 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL 81 * + col2 AS col1 FROM tab1 AS cor0
----
4374
4617
7776

query I rowsort
SELECT ALL col2 * - col2 + + 80 AS col0 FROM tab2 AS cor0
----
-1364
-596
-649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 36 col0 FROM tab2 AS cor0
----
-1368
-936
-972

query I rowsort
SELECT ALL col2 + + 70 * + col0 FROM tab0 AS cor0
----
1713
2451
6312

query I rowsort
SELECT + cor0.col2 * 39 + cor0.col1 AS col1 FROM tab2 AS cor0
----
1073
1084
1499

query I rowsort
SELECT ALL - + cor0.col2 * col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - col0 + col1 * - 94 FROM tab0
----
-8108
-8643
-9153

query I rowsort
SELECT - col2 + - ( - col1 ) AS col0 FROM tab0
----
53
9
96

query I rowsort
SELECT ALL - col0 + - ( col2 ) AS col2 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT 1 * + tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT 45 + + cor0.col0 FROM tab2 AS cor0
----
123
124
52

query I rowsort
SELECT - + 10 * - col0 + col0 AS col1 FROM tab1 AS cor0
----
33
704
880

query I rowsort
SELECT + ( - cor0.col2 ) * col1 * - col0 + col0 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT ALL col2 * + col2 + 69 + col1 FROM tab2
----
1530
804
829

query I rowsort
SELECT ALL - tab0.col0 * - col2 AS col2 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-7698
SELECT DISTINCT col1 DIV - ( + col1 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT col1 / - ( + col1 ) FROM tab1
----
-1

query I rowsort
SELECT ALL + col0 + 42 FROM tab0
----
131
66
77

query I rowsort
SELECT ALL col0 * col1 * - col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT - 11 + - col1 AS col0 FROM tab2 AS cor0
----
-28
-42
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 + - 5 col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT ALL ( - 48 ) FROM tab2
----
-48
-48
-48

query I rowsort
SELECT DISTINCT 13 * col2 FROM tab0
----
1066
13
429

query I rowsort
SELECT DISTINCT - 94 + + col0 AS col0 FROM tab1 AS cor0
----
-14
-30
-91

query I rowsort
SELECT - 30 + - col2 AS col1 FROM tab1 AS cor0
----
-126
-84
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + + col2 col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT 15 + col2 FROM tab1 AS cor0
----
111
69
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 * col0 col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + + ( cor0.col1 ) * - 57 AS col1 FROM tab1 AS cor0
----
-1482
-570
-741

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7711
SELECT - - ( col1 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7711
SELECT - - ( col1 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + col0 * - 62 FROM tab2 AS cor0
----
-3038
-377208
-386942

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7713
SELECT - tab1.col0 * + col0 * CAST( NULL AS DECIMAL ) + + tab1.col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT - tab1.col0 * + col0 * CAST ( NULL AS REAL ) + + tab1.col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col0 * col2 + + tab1.col0 AS col0 FROM tab1
----
-207872
-737200
-8745

query I rowsort
SELECT DISTINCT ( col1 + col0 ) * col2 AS col2 FROM tab2
----
1026
3562
3648

query I rowsort
SELECT ALL - col1 + + col0 * - ( col0 ) AS col1 FROM tab1 cor0
----
-35
-4106
-6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-7717
SELECT ALL - + col0 DIV col1 + ( + col0 + - col2 ) * col0 * + col0 AS col1 FROM tab0 AS cor0
----
-5184
41650
55447

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL - + col0 / col1 + ( + col0 + - col2 ) * col0 * + col0 AS col1 FROM tab0 AS cor0
----
-5184
41650
55447

query I rowsort
SELECT DISTINCT - col0 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-7719
SELECT + col1 + - 9 DIV + 28 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-7719
SELECT + col1 + - 9 / + 28 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - cor0.col2 + col2 - - 18 * - col0 FROM tab0 AS cor0
----
-1602
-432
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - ( + col1 ) - - col2 col1 FROM tab1 AS cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + ( + col2 ) col1 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL 48 * col1 * + col1 + 82 * col1 AS col1 FROM tab2 AS cor0
----
15266
171926
48670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 - - cor0.col2 col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT + 36 * + 89 FROM tab2 AS cor0
----
3204

onlyif mysql # use DIV operator for integer division
query I rowsort label-7727
SELECT ALL + - 53 DIV cor0.col1 FROM tab2 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7727
SELECT ALL + - 53 / cor0.col1 FROM tab2 AS cor0
----
-1
-3
0

query I rowsort
SELECT DISTINCT + cor0.col0 + - col0 + + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + col2 + - col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col2 col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7731
SELECT - - CAST( + col2 AS SIGNED ) * + col0 + 86 FROM tab0 AS cor0
----
121
7384
878

skipif mysql # not compatible
query I rowsort label-7731
SELECT - - CAST ( + col2 AS INTEGER ) * + col0 + 86 FROM tab0 AS cor0
----
121
7384
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7732
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7733
SELECT DISTINCT - + 64 * cor0.col2 * col0 + col0 * col2 DIV cor0.col0 FROM tab0 cor0
----
-2239
-466990
-50655

skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT - + 64 * cor0.col2 * col0 + col0 * col2 / cor0.col0 FROM tab0 cor0
----
-2239
-466990
-50655

query I rowsort
SELECT + cor0.col1 - + 48 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 82063f8aac7033f05c7d1700ae11d314

onlyif mysql # use DIV operator for integer division
query I rowsort label-7735
SELECT DISTINCT - cor0.col2 + col0 DIV ( + col0 * col0 ) FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT - cor0.col2 + col0 / ( + col0 * col0 ) FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT - - 31 * col0 FROM tab0 AS cor0
----
1085
2759
744

onlyif mysql # use DIV operator for integer division
query I rowsort label-7737
SELECT DISTINCT + col1 - col2 DIV col0 FROM tab1
----
10
12
8

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT + col1 - col2 / col0 FROM tab1
----
10
12
8

query I rowsort
SELECT + cor0.col0 * col0 * - col0 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-13791
-42874
-704887

query I rowsort
SELECT cor0.col1 * col0 - col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-7740
SELECT ALL + tab1.col0 * + tab1.col1 - tab1.col1 DIV - col1 FROM tab1
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL + tab1.col0 * + tab1.col1 - tab1.col1 / - col1 FROM tab1
----
1041
641
79

query I rowsort
SELECT col1 * col2 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT + col0 * col2 + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT tab1.col1 * col2 + col1 * + col1 * col0 AS col1 FROM tab1
----
14768
3432
6970

query I rowsort
SELECT + - col2 * col0 + + col2 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL cor0.col2 * + cor0.col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT + - col1 + cor0.col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - 21 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2043
3374
8078

query I rowsort
SELECT - col0 + - cor0.col2 * - col0 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT 17 * col1 AS col1 FROM tab1
----
170
221
442

query I rowsort
SELECT DISTINCT + col2 * col1 + col1 AS col0 FROM tab1
----
1261
1430
580

query I rowsort
SELECT ALL + col2 * col0 + col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL + col1 * tab0.col2 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + col0 * + col1 * col0 AS col1 FROM tab1
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-7754
SELECT col1 DIV - col0 - + col2 AS col2 FROM tab2
----
-26
-31
-38

skipif mysql # not compatible
query I rowsort label-7754
SELECT col1 / - col0 - + col2 AS col2 FROM tab2
----
-26
-31
-38

query I rowsort
SELECT ALL col1 + tab1.col0 * + tab1.col2 AS col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT ALL - col0 + col1 + + col0 AS col1 FROM tab1 WHERE - col0 * + col2 * - tab1.col2 <= + col2
----

query I rowsort
SELECT - tab2.col0 + col1 - - col0 FROM tab2
----
17
31
59

query I rowsort
SELECT + col0 * col2 * col1 AS col1 FROM tab2
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-7759
SELECT ALL - col1 * col1 DIV col1 AS col0 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL - col1 * col1 / col1 AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT col0 + + col1 + col0 * + col0 AS col2 FROM tab2
----
6221
6337
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-7761
SELECT DISTINCT - col2 DIV + tab1.col0 AS col2 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT - col2 / + tab1.col0 AS col2 FROM tab1
----
-1
-18
0

query I rowsort
SELECT + col0 * col0 * - col0 + - col2 AS col0 FROM tab2
----
-370
-474578
-493077

query I rowsort
SELECT - tab1.col1 * - col2 * col1 FROM tab1
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-7764
SELECT ALL col1 + col2 * col2 DIV + col1 + + col0 * - col2 col1 FROM tab0
----
-694
-7134
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL col1 + col2 * col2 / + col1 + + col0 * - col2 col1 FROM tab0
----
-694
-7134
62

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 * col1 + col0 ) < + col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL + col0 * col1 + + col2 + col1 * - tab2.col2 AS col2 FROM tab2
----
-593
3094
735

onlyif mysql # use DIV operator for integer division
query I rowsort label-7767
SELECT DISTINCT col2 DIV - tab0.col2 + col0 + col2 AS col2 FROM tab0
----
170
35
56

skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT col2 / - tab0.col2 + col0 + col2 AS col2 FROM tab0
----
170
35
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-7768
SELECT ALL col0 DIV - col2 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL col0 / - col2 AS col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT col0 * - col1 * - col2 + + col1 AS col0 FROM tab2
----
119711
51051
5890

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( tab0.col2 )
----

query I rowsort
SELECT col0 * + col1 * + col0 AS col0 FROM tab0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-7772
SELECT ALL cor0.col2 * col0 + + cor0.col2 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
180
3648
7681

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL cor0.col2 * col0 + + cor0.col2 / cor0.col0 AS col2 FROM tab1 AS cor0
----
180
3648
7681

query I rowsort
SELECT + col2 + + tab2.col0 AS col2 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 * col0 + - col0 * + tab0.col2 col1 FROM tab0
----
13032
42840
697671

query I rowsort
SELECT + tab2.col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col1 + col2 * tab0.col2 + + col1 )
----

query I rowsort
SELECT tab1.col1 + + col1 * col2 AS col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT col2 + col2 + + col2 FROM tab1
----
162
171
288

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * col0 col2 FROM tab0
----
1260
600
8010

query I rowsort
SELECT col0 * tab1.col0 + col1 AS col2 FROM tab1 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT tab0.col2 * + col2 AS col1 FROM tab0
----
1
1089
6724

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col0 + + col0 )
----

query I rowsort
SELECT DISTINCT + col1 + - ( + col0 + - 94 ) FROM tab2 AS cor0
----
118
32
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7785
SELECT ALL - - CAST( NULL AS SIGNED ) * - cor0.col2 - + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL - - CAST ( NULL AS INTEGER ) * - cor0.col2 - + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 25 * + col0 + col1 FROM tab2 AS cor0
----
1992
2009
206

onlyif mysql # use DIV operator for integer division
query I rowsort label-7787
SELECT ALL col0 DIV + ( - col1 * + 24 ) + col1 AS col2 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL col0 / + ( - col1 * + 24 ) + col1 AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT ALL col2 + col2 * - col2 FROM tab0 cor0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7789
SELECT DISTINCT - col1 + - col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT - col1 + - col0 / - col0 AS col0 FROM tab1 AS cor0
----
-12
-25
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7790
SELECT ALL - 58 * cor0.col1 DIV - cor0.col0 AS col0 FROM tab1 AS cor0
----
502
9
9

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL - 58 * cor0.col1 / - cor0.col0 AS col0 FROM tab1 AS cor0
----
502
9
9

query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 AS col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT + + col1 * - cor0.col2 - col0 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT - + col2 + col2 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT - col1 * col2 - - col1 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-7795
SELECT + cor0.col2 DIV col2 + col1 * 41 AS col1 FROM tab1 cor0
----
1067
411
534

skipif mysql # not compatible
query I rowsort label-7795
SELECT + cor0.col2 / col2 + col1 * 41 AS col1 FROM tab1 cor0
----
1067
411
534

query I rowsort
SELECT 91 * col1 + + col2 AS col0 FROM tab2 AS cor0
----
1585
2848
5395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # use DIV operator for integer division
query I rowsort label-7798
SELECT + 76 DIV - cor0.col2 - - 51 col0 FROM tab1 AS cor0
----
50
50
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7798
SELECT + 76 / - cor0.col2 - - 51 col0 FROM tab1 AS cor0
----
50
50
51

query I rowsort
SELECT + col1 + 71 * col1 FROM tab0 AS cor0
----
6192
6552
6984

query I rowsort
SELECT - cor0.col2 * + 86 FROM tab2 AS cor0
----
-2236
-2322
-3268

skipif mysql # not compatible
query I rowsort
SELECT col0 + CAST ( col0 AS REAL ) AS col1 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL col2 + - 43 * cor0.col0 * col1 FROM tab1 AS cor0
----
-27463
-3300
-44624

onlyif mysql # use DIV operator for integer division
query I rowsort label-7803
SELECT DISTINCT - col1 DIV - 59 + - cor0.col1 AS col0 FROM tab0 cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT - col1 / - 59 + - cor0.col1 AS col0 FROM tab0 cor0
----
-85
-90
-96

query I rowsort
SELECT DISTINCT col0 + + 61 + + 37 FROM tab1 AS cor0
----
101
162
178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 62 * + col0 - col0 col2 FROM tab0 cor0
----
35688
491013
75915

query I rowsort
SELECT + ( - col2 ) * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7807
SELECT ALL CAST( col0 AS SIGNED ) + cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL CAST ( col0 AS INTEGER ) + cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT 26 * - 37 - col1 AS col1 FROM tab1 AS cor0
----
-972
-975
-988

query I rowsort
SELECT + + 90 * 38 AS col0 FROM tab1 AS cor0
----
3420
3420
3420

query I rowsort
SELECT - col2 * - col0 * + tab0.col0 AS col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT + 94 + - cor0.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 65e74166736b30da80792e474fd96f21

query I rowsort
SELECT + 65 + 29 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT col2 + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT - 15 * - col0 AS col2 FROM tab0 AS cor0
----
1335
360
525

query I rowsort
SELECT + + col1 * col2 * - col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT - col1 * 35 AS col0 FROM tab0 AS cor0
----
-3010
-3185
-3395

query I rowsort
SELECT DISTINCT + 39 AS col0 FROM tab0
----
39

query I rowsort
SELECT + 62 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT DISTINCT 26 * - tab1.col2 FROM tab1
----
-1404
-1482
-2496

query I rowsort
SELECT ALL + 33 * - tab0.col1 AS col0 FROM tab0
----
-2838
-3003
-3201

query I rowsort
SELECT - + ( + col0 ) * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL 26 * ( + col1 ) AS col2 FROM tab2
----
1534
442
806

query I rowsort
SELECT ALL ( - tab0.col1 ) * + tab0.col0 * col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT + 78 + col0 * col1 * - tab2.col0 + - col2 AS col1 FROM tab2
----
-106057
-1468
-358904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 + + col0 col2 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT - - col0 * 70 FROM tab2 AS cor0
----
490
5460
5530

query I rowsort
SELECT - col1 + + 41 AS col0 FROM tab2 AS cor0
----
-18
10
24

query I rowsort
SELECT DISTINCT 32 * + col0 FROM tab2
----
224
2496
2528

query I rowsort
SELECT ALL - 50 + col0 + + 95 * 43 FROM tab0
----
4059
4070
4124

query I rowsort
SELECT DISTINCT + + 23 + + tab2.col0 AS col0 FROM tab2, tab1, tab2 AS cor0
----
101
102
30

query I rowsort
SELECT ALL + 19 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7832
SELECT ALL - tab2.col2 * col2 + - CAST( 42 AS SIGNED ) * - col2 FROM tab2
----
152
405
416

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL - tab2.col2 * col2 + - CAST ( 42 AS INTEGER ) * - col2 FROM tab2
----
152
405
416

query I rowsort
SELECT DISTINCT col1 * - col2 + + col1 * - col2 + - col1 AS col2 FROM tab2 AS cor0
----
-1309
-1705
-3127

query I rowsort
SELECT + col0 * ( col2 ) * - col1 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - cor0.col2 * + 88 + - cor0.col2 + col1 FROM tab0 AS cor0
----
-2851
-7207
8

query I rowsort
SELECT col1 + ( col0 ) AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + cor0.col0 * ( - col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - + cor0.col2 + col0 * cor0.col0 + col1 FROM tab0 AS cor0
----
1321
629
7930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7839
SELECT ALL cor0.col0 + CAST( col0 AS SIGNED ) * col2 FROM tab1 AS cor0
----
165
3712
7760

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL cor0.col0 + CAST ( col0 AS INTEGER ) * col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT col1 - 74 FROM tab0 AS cor0
----
12
17
23

query I rowsort
SELECT DISTINCT - - col2 + + ( ( col0 ) + + col1 ) AS col0 FROM tab2 AS cor0
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-7842
SELECT + - col1 + col0 DIV - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-7842
SELECT + - col1 + col0 / - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-11
-14
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-7843
SELECT ALL + - col0 DIV - 35 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL + - col0 / - 35 FROM tab0 cor0
----
0
1
2

query I rowsort
SELECT DISTINCT + + col2 + + 41 * + 26 AS col1 FROM tab2 AS cor0
----
1092
1093
1104

query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-2970
-3306
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-7846
SELECT - col0 - - col2 DIV 25 FROM tab1
----
-1
-62
-77

skipif mysql # not compatible
query I rowsort label-7846
SELECT - col0 - - col2 / 25 FROM tab1
----
-1
-62
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-7847
SELECT DISTINCT - 8 * col2 DIV + CAST( ( col1 ) AS SIGNED ) AS col1 FROM tab0
----
-3
-7
0

skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT - 8 * col2 / + CAST ( ( col1 ) AS INTEGER ) AS col1 FROM tab0
----
-3
-7
0

query I rowsort
SELECT ALL tab0.col1 - 76 * + col0 * + col2 FROM tab0
----
-2563
-554557
-60106

query I rowsort
SELECT + col1 * - ( - col2 ) * + col2 AS col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT - col2 * col0 + col2 * col1 FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT - - col0 * + col1 + - 24 AS col2 FROM tab2 AS cor0
----
1319
193
4578

onlyif mysql # use DIV operator for integer division
query I rowsort label-7852
SELECT + col1 - col2 DIV + 30 FROM tab2 cor0
----
16
31
59

skipif mysql # not compatible
query I rowsort label-7852
SELECT + col1 - col2 / + 30 FROM tab2 cor0
----
16
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 + cor0.col2 col0 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT cor0.col2 + 56 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-4783
-5014
-5431

query I rowsort
SELECT + cor0.col1 + + 44 FROM tab0 AS cor0
----
130
135
141

query I rowsort
SELECT DISTINCT - 63 * col2 * tab0.col1 + - ( - col2 ) FROM tab0
----
-178761
-470024
-6110

query I rowsort
SELECT ( + 92 ) AS col1 FROM tab1 cor0
----
92
92
92

query I rowsort
SELECT ALL + col2 + col0 * - col0 + - 0 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT + + cor0.col0 + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - - col2 + - col0 * 31 AS col2 FROM tab0 cor0
----
-1084
-2677
-711

onlyif mysql # use DIV operator for integer division
query I rowsort label-7861
SELECT ALL - col1 DIV - cor0.col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL - col1 / - cor0.col0 FROM tab0 AS cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 col2 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT ALL col0 * + col0 + 67 AS col0 FROM tab2 AS cor0
----
116
6151
6308

query I rowsort
SELECT DISTINCT + col0 + + col0 - 93 AS col0 FROM tab2 AS cor0
----
-79
63
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-7865
SELECT ALL - cor0.col0 * - col2 - col0 DIV - 63 AS col2 FROM tab0 AS cor0
----
35
7299
792

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL - cor0.col0 * - col2 - col0 / - 63 AS col2 FROM tab0 AS cor0
----
35
7299
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7866
SELECT DISTINCT col1 * col2 * CAST( NULL AS SIGNED ) + - 18 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT col1 * col2 * CAST ( NULL AS INTEGER ) + - 18 FROM tab0 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7867
SELECT DISTINCT col2 - - col1 DIV + 10 FROM tab2 AS cor0
----
30
31
39

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT col2 - - col1 / + 10 FROM tab2 AS cor0
----
30
31
39

query I rowsort
SELECT DISTINCT + col0 * - ( + col1 ) + col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 + col1 * col1 col0 FROM tab1 cor0
----
-540
-871
598

query I rowsort
SELECT ALL col1 * col1 + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL + cor0.col1 - + 51 FROM tab0 AS cor0
----
35
40
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
38

query I rowsort
SELECT DISTINCT col0 * + col0 - - col1 AS col2 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL - 92 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

query I rowsort
SELECT DISTINCT - - col1 * 84 - + col1 * + col0 * - ( + cor0.col1 ) FROM tab0 AS cor0
----
184728
337463
744653

query I rowsort
SELECT DISTINCT - - 52 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7877
SELECT + 8 + - ( col0 ) DIV 61 AS col1 FROM tab2 AS cor0
----
7
7
8

skipif mysql # not compatible
query I rowsort label-7877
SELECT + 8 + - ( col0 ) / 61 AS col1 FROM tab2 AS cor0
----
7
7
8

query I rowsort
SELECT - + 81 + + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
1983
3314
8018

query I rowsort
SELECT 16 - - cor0.col1 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 429f987de5a6e3891594359a05702e4a

query I rowsort
SELECT + col1 + col1 * + col2 + col0 AS col2 FROM tab1 AS cor0
----
1341
1433
644

query I rowsort
SELECT ALL - + col2 * col0 * - cor0.col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT 36 * - col0 FROM tab2 AS cor0
----
-252
-2808
-2844

query I rowsort
SELECT - col2 + + cor0.col1 * col2 + - col1 AS col1 FROM tab2 cor0
----
1449
591
779

query I rowsort
SELECT DISTINCT - col1 * col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + ( + col0 * col0 ) AS col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab0, tab1 AS cor0
----
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7888
SELECT ALL CAST( NULL AS DECIMAL ) + 55 + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL CAST ( NULL AS REAL ) + 55 + + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * 39 + + col0 FROM tab0
----
-1330
-3382
-912

query I rowsort
SELECT ALL - 86 + - col1 AS col0 FROM tab1
----
-112
-96
-99

query I rowsort
SELECT ALL + col2 * + col1 + col1 AS col0 FROM tab2
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 26 * - 60 col0 FROM tab2 AS cor0
----
-1560
-1560
-1560

query I rowsort
SELECT + 35 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7894
SELECT - col1 * - CAST( NULL AS SIGNED ) + 97 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7894
SELECT - col1 * - CAST ( NULL AS INTEGER ) + 97 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7895
SELECT ALL - cor0.col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL - cor0.col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7896
SELECT DISTINCT + - col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT DISTINCT + - col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 69 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT + - ( col2 ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 91 AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col2 AS REAL ) FROM tab0
----
-1
-33
-82

query I rowsort
SELECT - 87 FROM tab1, tab0 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT ( ( + col0 ) ) * col2 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + cor0.col1 * + col2 col0 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT ALL 14 * + col0 FROM tab0 AS cor0
----
1246
336
490

query I rowsort
SELECT ALL + 29 * + col1 + - cor0.col2 FROM tab1 cor0
----
233
281
700

query I rowsort
SELECT ALL - ( col2 ) + - col0 * + col1 AS col2 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT + ( col0 ) * + cor0.col0 - col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT DISTINCT - + col2 - col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL + cor0.col0 + col1 * col2 AS col1 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT ALL + col1 + + col2 + col0 FROM tab1 AS cor0
----
131
189
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7911
SELECT DISTINCT col2 * + cor0.col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT col2 * + cor0.col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - col2 * - col1 + - col0 AS col1 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT - col1 + + col2 * - col1 FROM tab1 AS cor0
----
-1261
-1430
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 2 + - ( col1 * - col0 ) col1 FROM tab1 AS cor0
----
512
72
880

onlyif mysql # use DIV operator for integer division
query I rowsort label-7915
SELECT ALL col1 DIV cor0.col0 - cor0.col2 * - cor0.col0 * - 89 FROM tab1 AS cor0
----
-14410
-324672
-683520

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL col1 / cor0.col0 - cor0.col2 * - cor0.col0 * - 89 FROM tab1 AS cor0
----
-14410
-324672
-683520

query I rowsort
SELECT DISTINCT + col0 * + ( + col0 ) FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - + col1 * - 99 + + 53 FROM tab0 AS cor0
----
8567
9062
9656

query I rowsort
SELECT ALL + cor0.col0 * - col2 * - col0 AS col0 FROM tab0 cor0
----
1225
19008
649522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7919
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col1 + - ( - cor0.col0 ) FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - col2 + - col1 * col1 FROM tab1
----
-157
-265
-730

query I rowsort
SELECT DISTINCT tab1.col1 * - col0 + 94 * col2 FROM tab1
----
4718
4998
7984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT + col0 * - col0 * - col2 FROM tab0 AS cor0
----
1225
19008
649522

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NULL IN ( cor0.col1 )
----

query I rowsort
SELECT DISTINCT + 10 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
10

query I rowsort
SELECT + cor0.col0 * + 87 FROM tab0 AS cor0
----
2088
3045
7743

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7928
SELECT - + col2 * - CAST( col0 AS SIGNED ) + + col0 * - ( + col1 + - col0 ) FROM tab0 AS cor0
----
-2135
-696
7120

skipif mysql # not compatible
query I rowsort label-7928
SELECT - + col2 * - CAST ( col0 AS INTEGER ) + + col0 * - ( + col1 + - col0 ) FROM tab0 AS cor0
----
-2135
-696
7120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7929
SELECT CAST( NULL AS SIGNED ) * + 24 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT CAST ( NULL AS INTEGER ) * + 24 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( cor0.col0 ) * col1 col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT + 59 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7932
SELECT + 47 + + col0 DIV cor0.col0 FROM tab1 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-7932
SELECT + 47 + + col0 / cor0.col0 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT + + cor0.col2 * 57 + + col1 FROM tab1 AS cor0
----
3104
3259
5485

query I rowsort
SELECT - tab1.col0 * + tab1.col2 AS col1 FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col1 FROM tab0 AS cor0
----
-10
-10
-10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7936
SELECT col0 + col1 - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
175
215
45

skipif mysql # not compatible
query I rowsort label-7936
SELECT col0 + col1 - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
175
215
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-7937
SELECT + col1 DIV - col1 + col0 AS col0 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-7937
SELECT + col1 / - col1 + col0 AS col0 FROM tab0
----
23
34
88

query I rowsort
SELECT - ( col0 ) * 61 AS col1 FROM tab0
----
-1464
-2135
-5429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col1 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT - + col0 + col1 AS col1 FROM tab0 cor0
----
2
62

query I rowsort
SELECT col0 + - col2 - + cor0.col1 AS col2 FROM tab2 AS cor0
----
-51
-7
24

query I rowsort
SELECT 56 + - col0 * + ( + 10 ) * cor0.col0 FROM tab0 AS cor0
----
-12194
-5704
-79154

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7943
SELECT DISTINCT cor0.col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7943
SELECT DISTINCT cor0.col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7944
SELECT 45 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7944
SELECT 45 / col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ( 96 ) FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT tab2.col2 + - 64 * - col2 AS col1 FROM tab2
----
1690
1755
2470

query I rowsort
SELECT + 57 * + cor0.col2 FROM tab2 AS cor0
----
1482
1539
2166

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 69 AS REAL ) * col1 - ( + col2 ) * col0 FROM tab1 AS cor0
----
-2958
-6783
1632

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7949
SELECT ALL CAST( NULL AS SIGNED ) + col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL CAST ( NULL AS INTEGER ) + col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7950
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL col0 + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT - + ( - col0 ) + - col0 * + cor0.col2 - col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + + 26 FROM tab1 cor0
----
26
26
26

query I rowsort
SELECT ALL - col0 * cor0.col1 - - col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-7955
SELECT DISTINCT col0 DIV col2 - - cor0.col0 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT col0 / col2 - - cor0.col0 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT tab1.col1 + ( - col1 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 96 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT DISTINCT - cor1.col0 * + 22 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-154
-1716
-1738

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7959
SELECT ALL - - col0 * - CAST( 75 AS SIGNED ) col0 FROM tab0 AS cor0
----
-1800
-2625
-6675

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL - - col0 * - CAST ( 75 AS INTEGER ) col0 FROM tab0 AS cor0
----
-1800
-2625
-6675

onlyif mysql # use DIV operator for integer division
query I rowsort label-7960
SELECT - col2 DIV - col2 + col1 DIV + col0 + ( col1 ) AS col1 FROM tab1 AS cor0
----
11
14
35

skipif mysql # not compatible
query I rowsort label-7960
SELECT - col2 / - col2 + col1 / + col0 + ( col1 ) AS col1 FROM tab1 AS cor0
----
11
14
35

query I rowsort
SELECT DISTINCT + - col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - col1 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * col2 + - cor0.col0 * cor0.col0 * col1 FROM tab0 cor0
----
-118860
-50328
-728109

query I rowsort
SELECT col0 * 42 + - 54 FROM tab1 AS cor0
----
2634
3306
72

query I rowsort
SELECT - tab0.col1 + ( - col2 ) * + col0 FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT col0 * 48 FROM tab1 AS cor0
----
144
3072
3840

query I rowsort
SELECT ALL + col2 + 74 FROM tab0
----
107
156
75

query I rowsort
SELECT DISTINCT + 18 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
18

query I rowsort
SELECT ALL - col2 * - 26 + - col2 * col0 FROM tab2
----
-1352
-2014
513

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) + col1 AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT col0 + + 49 FROM tab1
----
113
129
52

query I rowsort
SELECT DISTINCT + cor0.col1 + ( col2 ) * col0 AS col0 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT tab1.col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4

query I rowsort
SELECT DISTINCT - 58 * + col1 AS col0 FROM tab0 AS cor0
----
-4988
-5278
-5626

query I rowsort
SELECT col1 * + 23 + - col0 * col1 + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-156
-510
-910

query I rowsort
SELECT DISTINCT + col0 * 2 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - ( - 80 ) FROM tab0 cor0
----
80
80
80

query I rowsort
SELECT ALL + col0 * 17 * col1 FROM tab2 AS cor0
----
22831
3689
78234

query I rowsort
SELECT - col1 + col2 * + col2 * ( col2 ) AS col1 FROM tab0 AS cor0
----
-96
35851
551277

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7980
SELECT ALL ( col1 ) * + col0 + + CAST( ( + col0 ) AS SIGNED ) FROM tab0 AS cor0
----
2088
3430
8188

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL ( col1 ) * + col0 + + CAST ( ( + col0 ) AS INTEGER ) FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7981
SELECT DISTINCT + ( + col0 ) * cor0.col1 + + CAST( + col0 * - col0 AS SIGNED ) FROM tab0 AS cor0
----
1488
178
2170

skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT + ( + col0 ) * cor0.col1 + + CAST ( + col0 * - col0 AS INTEGER ) FROM tab0 AS cor0
----
1488
178
2170

onlyif mysql # use DIV operator for integer division
query I rowsort label-7982
SELECT ALL - col0 DIV col1 + - col2 + col1 AS col1 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL - col0 / col1 + - col2 + col1 AS col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7983
SELECT ALL - + ( - col0 ) DIV col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL - + ( - col0 ) / col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT col1 * ( + col1 ) * col0 AS col2 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT + cor0.col0 * - 92 FROM tab2, tab0 AS cor0
----
9 values hashing to cbb5d28133da4d9c70e018a6f6f668b0

query I rowsort
SELECT cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL + col2 + col0 * - cor0.col1 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT + col0 * + col1 - + col1 AS col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ALL col2 - col1 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT col2 * cor0.col1 + - col2 * + col0 FROM tab1 cor0
----
-3078
-6432
1242

query I rowsort
SELECT DISTINCT - col1 * - col1 * - 46 AS col0 FROM tab2 AS cor0
----
-13294
-160126
-44206

query I rowsort
SELECT DISTINCT - - col1 + col2 + ( 91 ) * col0 AS col2 FROM tab0 cor0
----
2303
3283
8272

onlyif mysql # use DIV operator for integer division
query I rowsort label-7993
SELECT + cor0.col1 DIV col1 - col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-7993
SELECT + cor0.col1 / col1 - col0 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT 61 * + col1 + 12 * col0 FROM tab2 AS cor0
----
1975
1985
4535

onlyif mysql # use DIV operator for integer division
query I rowsort label-7995
SELECT - cor0.col2 DIV col1 - ( + col2 ) * 14 FROM tab2 AS cor0
----
-364
-378
-534

skipif mysql # not compatible
query I rowsort label-7995
SELECT - cor0.col2 / col1 - ( + col2 ) * 14 FROM tab2 AS cor0
----
-364
-378
-534

query I rowsort
SELECT ALL + col2 * - cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 + + cor0.col0 col1 FROM tab2 cor0
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 6 * 52 - - cor0.col1 col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 557fdbd891daf65826ecedc38ec1333b

query I rowsort
SELECT ALL col0 * ( 45 + + col0 ) * + col0 FROM tab1 AS cor0
----
432
446464
800000

query I rowsort
SELECT + - 88 + + col0 + + col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
2000
3342
8100

query I rowsort
SELECT + 47 * + col1 FROM tab2 cor0
----
1457
2773
799

query I rowsort
SELECT DISTINCT - col0 * col2 + col1 * col0 FROM tab1 AS cor0
----
-3008
-6640
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-8003
SELECT + col0 * - col0 + - CAST( cor0.col1 AS SIGNED ) DIV - col0 FROM tab0 AS cor0
----
-1223
-573
-7920

skipif mysql # not compatible
query I rowsort label-8003
SELECT + col0 * - col0 + - CAST ( cor0.col1 AS INTEGER ) / - col0 FROM tab0 AS cor0
----
-1223
-573
-7920

query I rowsort
SELECT ALL - ( - col0 ) * col1 FROM tab1 cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 53 + + col1 * 81 col1 FROM tab1 AS cor0
----
1000
2053
757

query I rowsort
SELECT + - 52 * col1 FROM tab1 AS cor0
----
-1352
-520
-676

query I rowsort
SELECT ALL + 69 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT - 77 * col1 * col2 + 42 FROM tab0
----
-218484
-574532
-7427

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8009
SELECT ( cor0.col2 ) * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT ( cor0.col2 ) * - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 43 + - col0 AS col2 FROM tab1 cor0
----
-21
-37
40

query I rowsort
SELECT - cor0.col2 * - ( + col0 ) AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col1 + 0 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + ( col0 ) + col1 FROM tab2
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8014
SELECT DISTINCT + cor0.col2 + - col0 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT + cor0.col2 + - col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col2 col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - - cor1.col2 + 91 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aae7faa1d960eba037051845044ac278

onlyif mysql # use DIV operator for integer division
query I rowsort label-8017
SELECT - CAST( - col1 AS SIGNED ) DIV + col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8017
SELECT - CAST ( - col1 AS INTEGER ) / + col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8018
SELECT col1 * 89 + col0 DIV + 71 - - 50 AS col2 FROM tab0 cor0
----
7704
8150
8683

skipif mysql # not compatible
query I rowsort label-8018
SELECT col1 * 89 + col0 / + 71 - - 50 AS col2 FROM tab0 cor0
----
7704
8150
8683

query I rowsort
SELECT ALL col0 * 87 AS col1 FROM tab1
----
261
5568
6960

query I rowsort
SELECT ALL ( col1 ) + col1 * 86 + 28 FROM tab1
----
1159
2290
898

query I rowsort
SELECT ALL col1 * 31 + col0 AS col2 FROM tab2
----
1907
606
968

query I rowsort
SELECT ALL + tab1.col0 + - col2 FROM tab1
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
1
33
82

query I rowsort
SELECT - col1 + ( + cor0.col1 ) * + col0 FROM tab0 cor0
----
1978
3298
8008

query I rowsort
SELECT ALL + 63 * - col1 AS col1 FROM tab2 AS cor0
----
-1071
-1953
-3717

onlyif mysql # use DIV operator for integer division
query I rowsort label-8026
SELECT - - col0 DIV - 41 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8026
SELECT - - col0 / - 41 FROM tab2 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( - col1 ) - 15 col2 FROM tab1 AS cor0
----
-1263
-1419
-585

query I rowsort
SELECT DISTINCT - ( col1 ) * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - ( - 28 ) AS col0 FROM tab0 AS cor0
----
28
28
28

query I rowsort
SELECT DISTINCT + col1 * 16 * col1 AS col1 FROM tab1 AS cor0
----
10816
1600
2704

query I rowsort
SELECT ALL - - col1 * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - col1 * + 56 AS col0 FROM tab2 AS cor0
----
-1736
-3304
-952

query I rowsort
SELECT DISTINCT cor1.col2 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
26
27
38

query I rowsort
SELECT tab1.col2 * 59 AS col0 FROM tab1
----
3186
3363
5664

query I rowsort
SELECT + ( ( col1 ) ) FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT 73 * tab0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c8687928d3acbb49cbfebd1a3e3d1773

query I rowsort
SELECT - col0 - - cor0.col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + ( col0 ) + - 96 FROM tab1
----
-16
-32
-93

query I rowsort
SELECT DISTINCT - 19 + cor0.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
19
7
8

query I rowsort
SELECT + 44 * - cor0.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 10bb092d939bc1567823e7ec4f80acd2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8041
SELECT - CAST( 30 AS SIGNED ) FROM tab1 AS cor0
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-8041
SELECT - CAST ( 30 AS INTEGER ) FROM tab1 AS cor0
----
-30
-30
-30

query I rowsort
SELECT - + 50 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT ALL + col2 * + col1 + 43 * tab2.col0 AS col0 FROM tab2
----
1138
4043
4888

query I rowsort
SELECT + col2 * col1 * - col2 AS col1 FROM tab1 cor0
----
-119808
-32490
-75816

query I rowsort
SELECT ALL ( - col0 ) + ( + col0 * - col0 ) FROM tab1
----
-12
-4160
-6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 - - cor0.col0 col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8047
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8047
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * + col0 + + col2 - + col1 FROM tab0 AS cor0
----
1129
523
7912

query I rowsort
SELECT DISTINCT - + col2 + 64 * - col0 FROM tab1 AS cor0
----
-246
-4153
-5216

query I rowsort
SELECT DISTINCT - col2 + 91 * 92 - - cor0.col1 FROM tab2 AS cor0
----
8351
8376
8405

query I rowsort
SELECT cor0.col1 * + 37 FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT DISTINCT + col2 + ( + 37 ) AS col1 FROM tab2 AS cor0
----
63
64
75

query I rowsort
SELECT DISTINCT - col1 * - 94 FROM tab1 AS cor0
----
1222
2444
940

onlyif mysql # use DIV operator for integer division
query I rowsort label-8054
SELECT + 16 DIV + 59 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8054
SELECT + 16 / + 59 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT 49 + cor0.col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1089
127
689

query I rowsort
SELECT ALL col1 + - 72 AS col1 FROM tab0
----
14
19
25

query I rowsort
SELECT - + col2 * + 90 - col0 AS col2 FROM tab0 AS cor0
----
-125
-2994
-7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col2 ) col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + col2 * 24 AS col1 FROM tab0
----
1968
24
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-8060
SELECT + col1 DIV 53 AS col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8060
SELECT + col1 / 53 AS col2 FROM tab0 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8061
SELECT - - ( col2 ) + - col2 * 71 DIV 86 AS col2 FROM tab0 AS cor0
----
1
15
6

skipif mysql # not compatible
query I rowsort label-8061
SELECT - - ( col2 ) + - col2 * 71 / 86 AS col2 FROM tab0 AS cor0
----
1
15
6

query I rowsort
SELECT ALL + 81 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2145
3476
8180

onlyif mysql # use DIV operator for integer division
query I rowsort label-8063
SELECT DISTINCT + col0 DIV - col2 + - 94 FROM tab1 AS cor0
----
-94
-95

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT + col0 / - col2 + - 94 FROM tab1 AS cor0
----
-94
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-8064
SELECT + + ( - col0 ) + - cor0.col2 DIV - col1 FROM tab1 cor0
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-8064
SELECT + + ( - col0 ) + - cor0.col2 / - col1 FROM tab1 cor0
----
-1
-59
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-8065
SELECT col1 + col2 DIV col1 + col1 AS col1 FROM tab0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-8065
SELECT col1 + col2 / col1 + col1 AS col1 FROM tab0
----
172
182
194

query I rowsort
SELECT + + cor0.col1 * + col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - cor0.col1 * + col2 + + col1 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL + 4 * - col0 AS col1 FROM tab2 AS cor0
----
-28
-312
-316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 + + col0 col2 FROM tab2 AS cor0
----
143
144
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-8070
SELECT ALL cor0.col0 * + col1 + + col1 DIV - ( col1 ) col1 FROM tab2 AS cor0
----
1342
216
4601

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL cor0.col0 * + col1 + + col1 / - ( col1 ) col1 FROM tab2 AS cor0
----
1342
216
4601

query I rowsort
SELECT col0 * col2 + + 24 * - col0 AS col0 FROM tab0 cor0
----
-805
216
5162

query I rowsort
SELECT ALL 8 * - col0 FROM tab0 AS cor0
----
-192
-280
-712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col1 col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL 68 * - col1 AS col0 FROM tab0 AS cor0
----
-5848
-6188
-6596

query I rowsort
SELECT col1 - col1 * - cor0.col2 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col2 FROM tab1 AS cor0
----
22

query I rowsort
SELECT DISTINCT - col0 + col2 * + col0 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT + col0 * col1 + 96 FROM tab2 AS cor0
----
1439
313
4698

query I rowsort
SELECT DISTINCT - 22 - + col0 FROM tab1
----
-102
-25
-86

query I rowsort
SELECT + 30 + - col0 + - col0 FROM tab0
----
-148
-18
-40

query I rowsort
SELECT DISTINCT col0 * - col1 * col0 + 52 * ( col0 ) - col1 FROM tab1
----
-104
-37642
-79053

query I rowsort
SELECT DISTINCT - ( col1 ) * col2 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-8083
SELECT DISTINCT + 83 DIV 81 - col1 FROM tab1
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT + 83 / 81 - col1 FROM tab1
----
-12
-25
-9

query I rowsort
SELECT ( tab2.col2 ) * ( + col1 ) * - col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT + 59 + col2 + col2 FROM tab1
----
167
173
251

query I rowsort
SELECT DISTINCT - col0 * - col2 + col0 + - col2 FROM tab2
----
169
2080
3043

query I rowsort
SELECT col2 * + col2 * - col0 + col1 AS col0 FROM tab0
----
-26050
-598345
62

query I rowsort
SELECT DISTINCT - - 8 * + col1 AS col1 FROM tab2 AS cor0
----
136
248
472

query I rowsort
SELECT DISTINCT - + col2 * + col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT + 88 + + col2 * + ( cor0.col2 * - col1 + + cor0.col2 ) FROM tab0 AS cor0
----
-605072
-8
-92477

query I rowsort
SELECT DISTINCT + + ( - col2 ) + col1 * col2 * - col0 FROM tab2 AS cor0
----
-119678
-51072
-5886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - col2 * + col1 col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL 78 + - col2 * + col1 FROM tab2 AS cor0
----
-1456
-568
-759

query I rowsort
SELECT ALL + - ( cor0.col1 ) + + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8095
SELECT DISTINCT col2 DIV - 92 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT col2 / - 92 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col0 * + cor0.col0 * col2 + - col1 AS col2 FROM tab0 AS cor0
----
-1322
-19094
-649613

query I rowsort
SELECT + - col2 * 60 FROM tab2 AS cor0
----
-1560
-1620
-2280

onlyif mysql # use DIV operator for integer division
query I rowsort label-8098
SELECT + ( - 45 ) DIV cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8098
SELECT + ( - 45 ) / cor0.col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8099
SELECT ALL 24 DIV - col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL 24 / - col0 FROM tab2 AS cor0
----
-3
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8100
SELECT + - col0 DIV 26 + 10 * col0 - - ( col1 ) FROM tab1 AS cor0
----
56
648
810

skipif mysql # not compatible
query I rowsort label-8100
SELECT + - col0 / 26 + 10 * col0 - - ( col1 ) FROM tab1 AS cor0
----
56
648
810

query I rowsort
SELECT + - col0 * 19 FROM tab1 AS cor0
----
-1216
-1520
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( - 49 ) col0 FROM tab1
----
-2646
-2793
-4704

query I rowsort
SELECT 38 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-8105
SELECT + tab1.col0 DIV 93 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8105
SELECT + tab1.col0 / 93 FROM tab1
----
0
0
0

query I rowsort
SELECT + cor0.col0 * 21 - 84 * cor0.col0 * - col1 FROM tab2 AS cor0
----
114471
18375
388206

query I rowsort
SELECT ALL + + col1 + 58 - - col2 FROM tab0 AS cor0
----
156
177
231

query I rowsort
SELECT DISTINCT + col2 * 29 FROM tab1 AS cor0
----
1566
1653
2784

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8109
SELECT ALL col2 + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL col2 + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8110
SELECT - col2 * - ( col1 ) * col2 - ( col0 ) * col2 DIV ( + 59 + - col2 ) AS col0 FROM tab1 AS cor0
----
120015
30666
75784

skipif mysql # not compatible
query I rowsort label-8110
SELECT - col2 * - ( col1 ) * col2 - ( col0 ) * col2 / ( + 59 + - col2 ) AS col0 FROM tab1 AS cor0
----
120015
30666
75784

query I rowsort
SELECT 57 + + ( - cor0.col0 ) * 42 FROM tab2 AS cor0
----
-237
-3219
-3261

query I rowsort
SELECT tab0.col1 + col2 + col1 * - col2 AS col1 FROM tab0
----
-2719
-7289
1

query I rowsort
SELECT ALL + col1 + 32 AS col0 FROM tab2
----
49
63
91

query I rowsort
SELECT ALL + ( cor0.col0 ) FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT - ( + col0 ) + - tab0.col1 * col1 AS col2 FROM tab0
----
-7420
-8370
-9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-8116
SELECT ALL - col1 DIV + col0 col0 FROM tab1
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL - col1 / + col0 col0 FROM tab1
----
-8
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8117
SELECT + tab0.col2 DIV - col0 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8117
SELECT + tab0.col2 / - col0 AS col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT col2 + + col1 - tab2.col1 * - col2 AS col2 FROM tab2
----
1619
701
895

query I rowsort
SELECT DISTINCT + tab1.col2 * col2 * col1 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL ( 15 ) * cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 928aaf725c32823660515d7f1332f381

query I rowsort
SELECT ALL + 3 AS col0 FROM tab2
----
3
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-8122
SELECT ALL col0 * col2 DIV + col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL col0 * col2 / + col0 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT + col0 * 24 FROM tab0
----
2136
576
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col1 ) col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - ( 5 ) * + cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 0ff57e8c5116a6ad9564f20ab1a0b080

query I rowsort
SELECT ( + col1 ) + + col0 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT col0 + + col0 AS col0 FROM tab2 cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-8128
SELECT - 8 DIV - ( cor0.col2 ) + - col1 FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-8128
SELECT - 8 / - ( cor0.col2 ) + - col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col1 FROM tab1, tab1 AS cor0
----
29
74
93

query I rowsort
SELECT col2 * + tab2.col2 * - col0 FROM tab2
----
-114076
-5103
-52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8131
SELECT - CAST( col0 * tab2.col2 + col0 * - col2 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8131
SELECT - CAST ( col0 * tab2.col2 + col0 * - col2 AS INTEGER ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + + col1 * + col2 + col0 * 24 AS col2 FROM tab0 AS cor0
----
3414
937
9598

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8133
SELECT ALL - - cor1.col0 * - CAST( 17 AS SIGNED ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4809fa9604e2772ef8b92e64bc1c01e8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL - - cor1.col0 * - CAST ( 17 AS INTEGER ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4809fa9604e2772ef8b92e64bc1c01e8

query I rowsort
SELECT - cor0.col1 + 85 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aae9731d8a0cbe3a4e3a9312cd78613

query I rowsort
SELECT + 49 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8136
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col1 + + col1 * col1 * col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 + + col1 * col1 * col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - col0 * - tab1.col2 col0 FROM tab1
----
136
3638
7667

query I rowsort
SELECT ALL col2 * tab2.col0 * + col1 - ( + col1 ) * - tab2.col2 * ( col1 ) FROM tab2
----
210158
31806
62016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + tab2.col2 + col1 * - col0 col2 FROM tab2
----
-3926
101
512

query I rowsort
SELECT DISTINCT + 49 * - col2 FROM tab1 cor0
----
-2646
-2793
-4704

query I rowsort
SELECT - cor0.col1 + col0 * + ( - col2 ) FROM tab0 cor0
----
-132
-7389
-878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 * col1 col1 FROM tab1 AS cor0
----
-1638
-630
-819

query I rowsort
SELECT ALL + 54 + - col0 AS col2 FROM tab1 AS cor0
----
-10
-26
51

query I rowsort
SELECT + cor0.col2 * + col0 + col0 * + 29 * + col2 FROM tab2 cor0
----
5670
60840
90060

query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 * + col2 + col0 * col1 AS col0 FROM tab0 AS cor0
----
3492
619983
95718

query I rowsort
SELECT DISTINCT + 57 + cor0.col0 AS col0 FROM tab1 AS cor0
----
121
137
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-8147
SELECT - + col1 DIV col1 + + col1 DIV col0 FROM tab2 AS cor0
----
-1
-1
3

skipif mysql # not compatible
query I rowsort label-8147
SELECT - + col1 / col1 + + col1 / col0 FROM tab2 AS cor0
----
-1
-1
3

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( ( col2 ) AS REAL ) * + 33 - - col2 * + col2 FROM tab1 AS cor0
----
12384
4698
5130

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8149
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * - ( ( - col2 ) ) FROM tab2
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col1 ) col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT DISTINCT - col1 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-8153
SELECT ALL 13 DIV - col0 + + col1 * + 99 * - col1 FROM tab0 AS cor0
----
-732204
-819819
-931491

skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL 13 / - col0 + + col1 * + 99 * - col1 FROM tab0 AS cor0
----
-732204
-819819
-931491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + col0 - + col0 * col2 * 42 col2 FROM tab0 AS cor0
----
-314615
-35328
-4865

query I rowsort
SELECT ALL col1 * + 75 + - col0 FROM tab2 AS cor0
----
1196
2318
4347

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + col1 AS REAL ) * + col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - col2 * 57 AS col1 FROM tab1 cor0
----
-3078
-3249
-5472

query I rowsort
SELECT DISTINCT 35 + cor0.col0 FROM tab2 AS cor0
----
113
114
42

query I rowsort
SELECT DISTINCT 10 + 17 FROM tab1
----
27

query I rowsort
SELECT + 29 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8161
SELECT DISTINCT + CAST( col1 AS SIGNED ) * - col2 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * - col2 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8162
SELECT DISTINCT CAST( 27 AS SIGNED ) FROM tab1 cor0
----
27

skipif mysql # not compatible
query I rowsort label-8162
SELECT DISTINCT CAST ( 27 AS INTEGER ) FROM tab1 cor0
----
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8163
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) * + cor0.col0 col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT col0 * - col0 * col1 + - 18 FROM tab1 AS cor0
----
-252
-40978
-83218

query I rowsort
SELECT + + 89 - + col0 AS col2 FROM tab2 cor0
----
10
11
82

query I rowsort
SELECT - + 57 * col0 + col1 * ( col0 * 25 ) FROM tab1 AS cor0
----
12352
1779
21440

onlyif mysql # use DIV operator for integer division
query I rowsort label-8169
SELECT ALL + 42 * + cor0.col0 + col2 DIV + ( + cor0.col1 ) + CAST( col0 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
343
9360
9561

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL + 42 * + cor0.col0 + col2 / + ( + cor0.col1 ) + CAST ( col0 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
343
9360
9561

onlyif mysql # use DIV operator for integer division
query I rowsort label-8170
SELECT ALL + - col2 * - col0 + col0 DIV + col2 FROM tab1 AS cor0
----
162
3649
7680

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL + - col2 * - col0 + col0 / + col2 FROM tab1 AS cor0
----
162
3649
7680

query I rowsort
SELECT ALL col1 + + cor0.col1 * ( - cor0.col0 ) FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 * + col0 - col1 col0 FROM tab2 AS cor0
----
-444
-4661
-4678

query I rowsort
SELECT DISTINCT + ( 85 ) - - col2 FROM tab1
----
139
142
181

query I rowsort
SELECT - 34 * + col1 + col0 * ( 79 ) * + col0 AS col1 FROM tab0
----
42580
622665
93477

query I rowsort
SELECT tab2.col0 + - col2 * + tab2.col1 * + ( + col1 ) + col1 FROM tab2
----
-10886
-25909
-90369

onlyif mysql # use DIV operator for integer division
query I rowsort label-8176
SELECT DISTINCT tab2.col0 DIV + col1 - col1 FROM tab2
----
-13
-31
-58

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT tab2.col0 / + col1 - col1 FROM tab2
----
-13
-31
-58

query I rowsort
SELECT DISTINCT - col1 + - 82 * col0 FROM tab1 AS cor0
----
-272
-5258
-6573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 5 col0 FROM tab1 AS cor0
----
69
8
85

query I rowsort
SELECT col0 + - ( + col2 ) + col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - cor0.col0 * + col1 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8181
SELECT - + col1 * CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-8181
SELECT - + col1 * CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col1 + col2 - cor0.col0 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT DISTINCT - + col0 * + 38 AS col0 FROM tab1 AS cor0
----
-114
-2432
-3040

query I rowsort
SELECT + col0 * - 88 AS col1 FROM tab1 AS cor0
----
-264
-5632
-7040

onlyif mysql # use DIV operator for integer division
query I rowsort label-8185
SELECT ALL col2 * + col1 + - col0 DIV - col1 FROM tab1
----
1254
1404
576

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL col2 * + col1 + - col0 / - col1 FROM tab1
----
1254
1404
576

query I rowsort
SELECT DISTINCT - 57 + - tab2.col0 + + 59 FROM tab2
----
-5
-76
-77

query I rowsort
SELECT DISTINCT col1 + col0 * 70 FROM tab2 AS cor0
----
521
5519
5547

query I rowsort
SELECT DISTINCT 72 * - 52 FROM tab2 AS cor0
----
-3744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8189
SELECT DISTINCT - col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT - col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 + ( - cor0.col2 + col0 * + col0 ) FROM tab2 AS cor0
----
29
6136
6282

query I rowsort
SELECT + 46 AS col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT + cor0.col0 * tab2.col1 + - 57 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to df778efad2757619ba8d88c923690bd9

query I rowsort
SELECT DISTINCT ( col2 ) * - col0 AS col2 FROM tab2
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8194
SELECT DISTINCT + - col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT + - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8195
SELECT cor0.col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8195
SELECT cor0.col0 / - col2 AS col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ( - tab0.col1 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT + col2 * col1 * 75 FROM tab0 AS cor0
----
212850
559650
7275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 - - col2 col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL col1 * - col0 * col1 + tab2.col0 FROM tab2
----
-22752
-271440
-6720

query I rowsort
SELECT tab0.col0 * col0 + col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT DISTINCT - col0 * - col1 + - col1 FROM tab2
----
1326
186
4543

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT col1 IN ( - col0 )
----
3
64
80

query I rowsort
SELECT + tab0.col2 + - tab0.col2 * + col1 + - col1 * col0 FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 * tab2.col1 + + col2 AS col2 FROM tab2
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col2 * + col1 + + col0 * + tab0.col2 col1 FROM tab0
----
14671
3606
97

query I rowsort
SELECT + col0 + col2 * + tab1.col0 FROM tab1
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-8207
SELECT - col0 - col0 * tab1.col0 DIV + tab1.col0 FROM tab1
----
-128
-160
-6

skipif mysql # not compatible
query I rowsort label-8207
SELECT - col0 - col0 * tab1.col0 / + tab1.col0 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT ALL - tab1.col1 * + col1 * - col2 + tab1.col0 FROM tab1 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT - col2 + col0 * + col2 FROM tab1
----
108
3591
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
65

query I rowsort
SELECT ALL tab0.col0 + - tab0.col1 * - col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL - tab2.col1 * col0 * col0 FROM tab2 WHERE ( NULL ) NOT IN ( + tab2.col1 )
----

query I rowsort
SELECT col2 + - col1 * col1 AS col2 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT - col2 + col2 * col2 * + col0 AS col1 FROM tab0
----
26103
34
598354

query I rowsort
SELECT + 26 * col2 * ( 74 ) AS col2 FROM tab2 cor0
----
50024
51948
73112

query I rowsort
SELECT - 79 * - col2 AS col0 FROM tab2 AS cor0
----
2054
2133
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 + - col1 col1 FROM tab0 AS cor0
----
1
12
7

query I rowsort
SELECT - - col1 * cor0.col1 + col2 FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT ALL + + 65 - col1 FROM tab1 AS cor0
----
39
52
55

query I rowsort
SELECT ALL - - 4 + col1 FROM tab1 AS cor0
----
14
17
30

query I rowsort
SELECT ALL + col1 * + 33 FROM tab1
----
330
429
858

query I rowsort
SELECT 67 * col1 * ( - cor0.col1 ) FROM tab0 AS cor0
----
-495532
-554827
-630403

query I rowsort
SELECT + + 74 * + 90 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 938e6f535e9ca924e44e3adebd0c5d1c

onlyif mysql # use DIV operator for integer division
query I rowsort label-8224
SELECT DISTINCT + col0 * - col2 + - 49 DIV + col0 FROM tab0 AS cor0
----
-36
-7298
-794

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT + col0 * - col2 + - 49 / + col0 FROM tab0 AS cor0
----
-36
-7298
-794

onlyif mysql # use DIV operator for integer division
query I rowsort label-8225
SELECT DISTINCT cor0.col1 DIV col0 + - cor0.col2 - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1381
-240
-4628

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT cor0.col1 / col0 + - cor0.col2 - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1381
-240
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-8226
SELECT ( + col0 ) + + col1 DIV ( col0 ) AS col2 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-8226
SELECT ( + col0 ) + + col1 / ( col0 ) AS col2 FROM tab1 AS cor0
----
11
64
80

query I rowsort
SELECT ALL - 80 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to a3c8e513c78e2eef41ad24aabcbeff52

query I rowsort
SELECT + 76 + - col1 FROM tab2 cor0
----
17
45
59

query I rowsort
SELECT - + 21 * + col2 FROM tab2 AS cor0
----
-546
-567
-798

query I rowsort
SELECT 9 * - cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b13631e14af2ec729d44f427da6301f4

query I rowsort
SELECT ( - 24 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # use DIV operator for integer division
query I rowsort label-8232
SELECT col1 DIV ( + col0 ) FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-8232
SELECT col1 / ( + col0 ) FROM tab2
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 col1 FROM tab0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) * col1 col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL + 77 FROM tab0, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL + ( + 42 ) FROM tab2
----
42
42
42

query I rowsort
SELECT ALL tab1.col0 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - col1 * 48 - col1 * + 63 AS col0 FROM tab1 AS cor0
----
-1110
-1443
-2886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - col0 * col1 + 20 FROM tab1
----
-1020
-58
-620

onlyif mysql # use DIV operator for integer division
query I rowsort label-8241
SELECT - 45 DIV 79 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-8241
SELECT - 45 / 79 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - col0 + col0 + + tab2.col0 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT col2 * + ( + col2 * col1 ) - col1 FROM tab2
----
22568
24531
39825

query I rowsort
SELECT DISTINCT - col0 - 66 FROM tab0
----
-101
-155
-90

query I rowsort
SELECT ALL tab0.col2 * + 18 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d20dd6c8945b123490a13aed2c0b1bd8

query I rowsort
SELECT + col0 * - 62 FROM tab2
----
-434
-4836
-4898

query I rowsort
SELECT + col2 + - 82 * + col2 + col1 FROM tab2
----
-2047
-2156
-3061

skipif mysql # not compatible
query I rowsort
SELECT col2 * - CAST ( ( col1 ) AS REAL ) FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - col1 * 28 FROM tab0
----
-2408
-2548
-2716

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8250
SELECT ALL - col0 + + CAST( NULL AS SIGNED ) - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL - col0 + + CAST ( NULL AS INTEGER ) - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col1 * - 97 + col2 AS col2 FROM tab0 AS cor0
----
-8309
-8745
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-8252
SELECT ALL col2 DIV col2 + tab1.col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL col2 / col2 + tab1.col1 FROM tab1
----
11
14
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-8253
SELECT col0 * col0 DIV col0 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8253
SELECT col0 * col0 / col0 AS col1 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 + col0 * ( + ( - col1 ) ) col1 FROM tab0 AS cor0
----
-2002
-3333
-8037

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8255
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col0 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL ( + col2 ) + + col1 + col0 * ( col1 + + ( - col0 ) * - col0 ) FROM tab0
----
16007
46368
713241

query I rowsort
SELECT ALL 2 AS col0 FROM tab0
----
2
2
2

query I rowsort
SELECT + ( 74 ) - cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 33fe26addf5ae7d1fafebfda74d37a31

query I rowsort
SELECT 67 * - tab0.col1 + + tab0.col0 AS col1 FROM tab0
----
-5738
-6008
-6464

query I rowsort
SELECT + + 71 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT + cor0.col1 * col1 + col0 AS col2 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL - col2 * - col1 * ( 61 * cor0.col0 ) FROM tab2 cor0
----
3113074
357399
7298772

query I rowsort
SELECT ALL - 50 * col2 AS col0 FROM tab0 AS cor0
----
-1650
-4100
-50

query I rowsort
SELECT + 35 + col2 AS col2 FROM tab0 AS cor0
----
117
36
68

query I rowsort
SELECT DISTINCT + 54 AS col1 FROM tab1
----
54

query I rowsort
SELECT ALL - - 19 * col0 * - col2 FROM tab0 AS cor0
----
-138662
-15048
-665

query I rowsort
SELECT ALL col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL + col0 * cor0.col2 * ( col0 ) + cor0.col1 + col1 AS col2 FROM tab2 cor0
----
1385
158302
237192

query I rowsort
SELECT - ( col0 + col2 ) FROM tab0
----
-171
-36
-57

query I rowsort
SELECT + 97 + - col1 AS col2 FROM tab2 AS cor0
----
38
66
80

query I rowsort
SELECT ALL - + col0 + - ( + cor0.col1 ) FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL - col2 * - col2 * - 10 AS col2 FROM tab0 AS cor0
----
-10
-10890
-67240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8273
SELECT cor0.col1 * + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8273
SELECT cor0.col1 * + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8274
SELECT DISTINCT col1 + col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT col1 + col2 / + col1 AS col1 FROM tab2 AS cor0
----
19
31
59

query I rowsort
SELECT ALL - + cor0.col0 + - col1 * 26 FROM tab0 AS cor0
----
-2260
-2455
-2557

query I rowsort
SELECT - tab2.col2 + - 63 * + ( + col0 * - 76 ) AS col2 FROM tab2
----
33489
373438
378214

onlyif mysql # use DIV operator for integer division
query I rowsort label-8277
SELECT + col2 DIV + 97 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8277
SELECT + col2 / + 97 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8278
SELECT DISTINCT - + col2 DIV col0 + + col2 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT - + col2 / col0 + + col2 FROM tab0 AS cor0
----
1
32
82

query I rowsort
SELECT ALL + + col1 + col0 AS col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + - col0 + col2 * cor0.col0 AS col2 FROM tab0 cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT col2 + - col2 AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT + + col1 + - col0 * - cor0.col0 * col0 FROM tab0 AS cor0
----
13910
42972
705060

query I rowsort
SELECT ALL + cor0.col0 + col0 * - 98 AS col2 FROM tab2 AS cor0
----
-679
-7566
-7663

onlyif mysql # use DIV operator for integer division
query I rowsort label-8284
SELECT DISTINCT - - col2 DIV - ( col1 * + col2 ) + - col2 + - col1 FROM tab0 AS cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-8284
SELECT DISTINCT - - col2 / - ( col1 * + col2 ) + - col2 + - col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + - col2 * - col1 * 6 FROM tab0 AS cor0
----
17028
44772
582

query I rowsort
SELECT + cor0.col2 + - col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT DISTINCT - 21 * col1 AS col1 FROM tab0 AS cor0
----
-1806
-1911
-2037

onlyif mysql # use DIV operator for integer division
query I rowsort label-8288
SELECT DISTINCT ( + col1 ) DIV col0 AS col0 FROM tab2 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT ( + col1 ) / col0 AS col0 FROM tab2 AS cor0
----
0
4

query I rowsort
SELECT DISTINCT + col1 * + col2 * col2 AS col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT 3 * + col0 + col2 AS col0 FROM tab0
----
105
106
349

query I rowsort
SELECT ALL + col1 * - cor0.col1 + cor0.col2 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT ALL + + ( + col1 ) * - col0 + + col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL col2 + + col0 * + col0 AS col1 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL + + 74 * col0 + cor0.col0 FROM tab1 AS cor0
----
225
4800
6000

query I rowsort
SELECT - 36 + col2 AS col1 FROM tab1 AS cor0
----
18
21
60

query I rowsort
SELECT DISTINCT - col2 - + col0 * - col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT - col1 * - cor0.col0 * cor0.col0 + - ( col2 ) AS col1 FROM tab0 AS cor0
----
118824
49503
720729

query I rowsort
SELECT ALL + 94 * + col1 AS col0 FROM tab1 cor0
----
1222
2444
940

query I rowsort
SELECT + ( 24 ) * + col2 AS col1 FROM tab2 AS cor0
----
624
648
912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8300
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + col2 ) + col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT - + col2 + - 90 * col0 FROM tab1 cor0
----
-324
-5817
-7296

query I rowsort
SELECT ALL + cor0.col2 - - col0 * - col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT col1 * + 81 FROM tab0 cor0
----
6966
7371
7857

query I rowsort
SELECT + col0 * cor0.col0 - + col2 AS col0 FROM tab1 AS cor0
----
-45
4039
6304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 22ab9bd3b5f4877e4ba3d3f7269d563e

query I rowsort
SELECT - 80 * - col2 AS col0 FROM tab2 AS cor0
----
2080
2160
3040

query I rowsort
SELECT ALL + col1 + tab0.col0 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT col0 * col1 + + ( - col2 ) * cor0.col1 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT DISTINCT + - col2 + - col0 + + 11 AS col1 FROM tab1 AS cor0
----
-110
-165
-46

query I rowsort
SELECT + ( col2 ) * - col2 + col0 + + 49 AS col1 FROM tab1 AS cor0
----
-2864
-3136
-9087

onlyif mysql # use DIV operator for integer division
query I rowsort label-8312
SELECT - + ( - cor0.col2 ) DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8312
SELECT - + ( - cor0.col2 ) / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
17
31
59

query I rowsort
SELECT DISTINCT col1 * + ( - col2 ) AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - tab2.col2 * tab2.col1 AS col2 FROM tab2
----
-1534
-646
-837

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to ea1a922b7fccb9d184b31eb4689e063b

query I rowsort
SELECT DISTINCT - 12 AS col0 FROM tab1, tab2 AS cor0
----
-12

query I rowsort
SELECT DISTINCT + col1 * + col1 * + col1 FROM tab0
----
636056
753571
912673

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8319
SELECT ALL - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 68 * - col1 AS col1 FROM tab0 cor0
----
-5848
-6188
-6596

onlyif mysql # use DIV operator for integer division
query I rowsort label-8321
SELECT ALL - 61 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL - 61 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 40 + - col1 AS col0 FROM tab2 AS cor0
----
-57
-71
-99

query I rowsort
SELECT ALL 58 + - 45 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-2372
-2507
-4262

query I rowsort
SELECT DISTINCT ( col0 ) * col2 - - ( col0 + col1 ) AS col0 FROM tab1 AS cor0
----
191
3722
7773

query I rowsort
SELECT DISTINCT ( + tab0.col0 ) + 46 AS col0 FROM tab0
----
135
70
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 * col2 * - tab0.col1 + + col1 col0 FROM tab0
----
-243958
-678862
-9277

onlyif mysql # use DIV operator for integer division
query I rowsort label-8327
SELECT col1 DIV + col0 + + 67 * 21 + col1 FROM tab0
----
1496
1499
1506

skipif mysql # not compatible
query I rowsort label-8327
SELECT col1 / + col0 + + 67 * 21 + col1 FROM tab0
----
1496
1499
1506

query I rowsort
SELECT ALL - + col0 + - col2 * 30 * col1 FROM tab0 AS cor0
----
-223949
-2945
-85164

query I rowsort
SELECT 88 * col0 + col0 + col2 AS col0 FROM tab1 AS cor0
----
321
5753
7216

query I rowsort
SELECT ALL - + col0 + - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT - 23 * + col1 AS col0 FROM tab2 cor0
----
-1357
-391
-713

query I rowsort
SELECT ALL - - 14 * col2 + - col2 FROM tab0 AS cor0
----
1066
13
429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 + 84 col2 FROM tab2 AS cor0
----
1427
301
4686

onlyif mysql # use DIV operator for integer division
query I rowsort label-8334
SELECT DISTINCT col2 * col0 DIV cor0.col1 col2 FROM tab0 AS cor0
----
0
80
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT col2 * col0 / cor0.col1 col2 FROM tab0 AS cor0
----
0
80
9

query I rowsort
SELECT DISTINCT 99 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
99

query I rowsort
SELECT ALL - 36 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # use DIV operator for integer division
query I rowsort label-8337
SELECT col2 * + 65 + 23 DIV col0 + - col1 * col0 * + col0 FROM tab0 cor0
----
-118760
-47391
-715481

skipif mysql # not compatible
query I rowsort label-8337
SELECT col2 * + 65 + 23 / col0 + - col1 * col0 * + col0 FROM tab0 cor0
----
-118760
-47391
-715481

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 cor2, tab1 AS cor3
----
3645 values hashing to f464d40c605db608927f2c4d66190a23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT + - col1 * + 18 - - col2 * col1 AS col0 FROM tab2 AS cor0
----
279
340
472

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8341
SELECT + col1 + - CAST( NULL AS SIGNED ) * - ( - col0 ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT + col1 + - CAST ( NULL AS INTEGER ) * - ( - col0 ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8342
SELECT + cor0.col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8342
SELECT + cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col1 + - cor0.col0 * col2 col2 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT col1 + - 40 AS col0 FROM tab1 AS cor0
----
-14
-27
-30

query I rowsort
SELECT ALL + col0 * cor0.col1 + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
2686
434
9204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col2 ) * + col0 + - col0 col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT - 98 + + col0 AS col2 FROM tab1 AS cor0
----
-18
-34
-95

query I rowsort
SELECT - 19 AS col1 FROM tab2 cor0
----
-19
-19
-19

query I rowsort
SELECT ( 21 ) AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT ALL + col1 + + ( cor0.col1 ) - cor0.col0 AS col1 FROM tab2 AS cor0
----
-45
40
55

query I rowsort
SELECT ALL + col1 * - tab2.col1 + - 9 AS col2 FROM tab2
----
-298
-3490
-970

query I rowsort
SELECT + col1 * 12 + col0 FROM tab0 cor0
----
1056
1181
1199

query I rowsort
SELECT - col2 * col2 + + col1 AS col1 FROM tab2 AS cor0
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col2 col2 FROM tab1 cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8355
SELECT + CAST( NULL AS SIGNED ) + tab0.col1 * - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8355
SELECT + CAST ( NULL AS INTEGER ) + tab0.col1 * - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( col1 ) + + col0 * ( - 62 + col2 * col2 ) FROM tab2 AS cor0
----
109195
4700
47951

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8357
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * col2 + + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * col2 + + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL cor0.col0 + + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL - col2 * - col0 + - col2 AS col0 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT ALL - 30 * - 95 + cor0.col2 + + ( - col1 + - col2 ) AS col2 FROM tab2 AS cor0
----
2791
2819
2833

query I rowsort
SELECT ALL - + col1 + + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-8362
SELECT DISTINCT col0 + - col2 DIV - col0 - - col0 FROM tab0 cor0
----
178
49
70

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT col0 + - col2 / - col0 - - col0 FROM tab0 cor0
----
178
49
70

query I rowsort
SELECT - + col0 * cor0.col0 AS col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL + - ( 52 ) * col2 + 42 * col0 AS col2 FROM tab1 AS cor0
----
-1632
-2682
-276

query I rowsort
SELECT ALL - col0 * - col2 * 74 AS col2 FROM tab0 AS cor0
----
2590
540052
58608

query I rowsort
SELECT ALL cor0.col2 * col2 + ( cor0.col1 + col1 * ( col0 ) ) AS col2 FROM tab1 AS cor0
----
10269
3020
3899

onlyif mysql # use DIV operator for integer division
query I rowsort label-8367
SELECT ALL 91 + - col1 * ( col0 ) DIV - col2 col0 FROM tab1 AS cor0
----
101
102
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL 91 + - col1 * ( col0 ) / - col2 col0 FROM tab1 AS cor0
----
101
102
92

query I rowsort
SELECT DISTINCT col1 + + col1 * col1 AS col2 FROM tab2 AS cor0
----
306
3540
992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8369
SELECT ALL - cor0.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL - cor0.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 13 + + col2 * col2 AS col2 FROM tab1
----
2929
3262
9229

query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col1 * + col2 AS col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT + col0 * + 34 FROM tab2 AS cor0
----
238
2652
2686

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8374
SELECT ALL + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - + col2 + 56 AS col0 FROM tab0 AS cor0
----
-26
23
55

query I rowsort
SELECT ALL + col1 * - 27 AS col2 FROM tab0 cor0
----
-2322
-2457
-2619

skipif mysql # not compatible
query I rowsort
SELECT - col2 + + CAST ( ( + cor0.col1 ) AS REAL ) * 69 AS col0 FROM tab2 AS cor0
----
1135
2112
4045

query I rowsort
SELECT - 77 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8379
SELECT DISTINCT + + CAST( 43 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT + + CAST ( 43 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
43

query I rowsort
SELECT DISTINCT 73 * cor0.col0 + col1 FROM tab0 AS cor0
----
1838
2652
6588

query I rowsort
SELECT DISTINCT - 78 * col0 * col0 - col0 FROM tab2 AS cor0
----
-3829
-474630
-486877

query I rowsort
SELECT - col1 * - 81 AS col2 FROM tab0 AS cor0
----
6966
7371
7857

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) + - col2 col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL + col1 + - ( + ( col0 ) ) * col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL - col0 * col1 + + col0 AS col2 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT + 18 AS col0 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

skipif mysql # not compatible
query I rowsort
SELECT col1 - + CAST ( col0 AS REAL ) FROM tab1
----
-54
-67
23

query I rowsort
SELECT - col0 + - 84 + col1 FROM tab2 AS cor0
----
-103
-146
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-8389
SELECT - col2 DIV col2 + col0 DIV ( 17 * col1 ) + col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-8389
SELECT - col2 / col2 + col0 / ( 17 * col1 ) + col0 FROM tab0 AS cor0
----
23
34
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-8390
SELECT ALL - ( col1 ) DIV + col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL - ( col1 ) / + col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + 21 FROM tab0 cor0
----
21
21
21

query I rowsort
SELECT DISTINCT col1 + + 14 FROM tab0
----
100
105
111

query I rowsort
SELECT + tab1.col1 * + tab1.col0 AS col1 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8394
SELECT DISTINCT tab0.col0 + + col1 DIV + ( col1 * ( 5 ) ) + + col1 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT tab0.col0 + + col1 / + ( col1 * ( 5 ) ) + + col1 FROM tab0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * col2 col1 FROM tab2
----
1216
832
864

query I rowsort
SELECT - col1 * 38 * col1 FROM tab0
----
-281048
-314678
-357542

query I rowsort
SELECT ( 28 ) FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT DISTINCT 0 + col2 * col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + 84 * + cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
7248
7733
8183

query I rowsort
SELECT DISTINCT - ( 40 ) * - col0 FROM tab1
----
120
2560
3200

onlyif mysql # use DIV operator for integer division
query I rowsort label-8401
SELECT DISTINCT 19 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8401
SELECT DISTINCT 19 / col2 FROM tab1
----
0

query I rowsort
SELECT + ( col1 ) * - col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + 29 * col1 AS col2 FROM tab2 AS cor0
----
1711
493
899

query I rowsort
SELECT DISTINCT - 97 * - 25 FROM tab0 AS cor0
----
2425

query I rowsort
SELECT - col2 + col2 * - 12 AS col2 FROM tab0
----
-1066
-13
-429

query I rowsort
SELECT + col1 + col1 + 47 FROM tab2
----
109
165
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8407
SELECT ALL + col1 DIV + col1 - ( - col0 * col1 + 87 ) FROM tab2
----
1257
131
4516

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL + col1 / + col1 - ( - col0 * col1 + 87 ) FROM tab2
----
1257
131
4516

query I rowsort
SELECT + col1 + col2 + + col1 FROM tab1
----
106
122
77

query I rowsort
SELECT col2 + - col2 * ( - tab0.col2 ) + tab0.col2 FROM tab0
----
1155
3
6888

query I rowsort
SELECT ALL + 53 - col2 FROM tab1
----
-1
-4
-43

query I rowsort
SELECT DISTINCT col2 + col1 * + 18 AS col0 FROM tab2 AS cor0
----
1088
344
585

query I rowsort
SELECT 61 * - col0 FROM tab1
----
-183
-3904
-4880

query I rowsort
SELECT + col0 + + tab1.col1 + + 78 FROM tab1
----
107
152
171

query I rowsort
SELECT - - col2 + + col2 * + 64 FROM tab0 AS cor0
----
2145
5330
65

query I rowsort
SELECT col0 * - col1 + - ( - col1 ) * + ( col1 ) + + col2 FROM tab1 AS cor0
----
-483
-775
652

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8416
SELECT ALL - + col1 + - CAST( + 50 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-60
-63
-76

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL - + col1 + - CAST ( + 50 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-60
-63
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8417
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 * cor0.col1 * + col2 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL + - col0 * 47 FROM tab2 AS cor0
----
-329
-3666
-3713

query I rowsort
SELECT col0 * col1 + - cor0.col1 * col2 + + col0 AS col1 FROM tab2 cor0
----
-613
3146
776

query I rowsort
SELECT ALL cor0.col0 + + 48 FROM tab2 AS cor0
----
126
127
55

query I rowsort
SELECT DISTINCT cor0.col2 * + col1 + + col1 FROM tab1 AS cor0
----
1261
1430
580

skipif mysql # not compatible
query I rowsort
SELECT - 84 * - col2 * CAST ( col2 AS REAL ) AS col1 FROM tab0 AS cor0
----
564816
84
91476

query I rowsort
SELECT + 55 * col2 AS col2 FROM tab1
----
2970
3135
5280

query I rowsort
SELECT cor0.col1 * - col2 + + col1 * - 29 * + col1 AS col0 FROM tab2 AS cor0
----
-102483
-28706
-9027

query I rowsort
SELECT col2 * + ( 23 ) FROM tab1 AS cor0
----
1242
1311
2208

onlyif mysql # use DIV operator for integer division
query I rowsort label-8427
SELECT + - col0 DIV 47 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8427
SELECT + - col0 / 47 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT col2 * col2 * - col2 + + col2 FROM tab0 AS cor0
----
-35904
-551286
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8429
SELECT + col2 * - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-8429
SELECT + col2 * - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - - col1 + ( col2 ) - ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + col2 * col1 + col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT + tab1.col0 * ( + col1 ) AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT - col0 * - 93 FROM tab0
----
2232
3255
8277

query I rowsort
SELECT ALL - ( 27 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT cor0.col0 - 73 FROM tab2 AS cor0
----
-66
5
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 * col2 col1 FROM tab1
----
-1261
-1430
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col1 FROM tab1, tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT - 98 * col0 FROM tab2
----
-686
-7644
-7742

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8439
SELECT - ( col1 ) * cor0.col0 + CAST( NULL AS SIGNED ) * - 74 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT - ( col1 ) * cor0.col0 + CAST ( NULL AS INTEGER ) * - 74 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8440
SELECT ALL 3 DIV cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL 3 / cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + 46 + cor0.col0 FROM tab2 cor0
----
124
125
53

query I rowsort
SELECT ALL - 0 + col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - - 31 * - col2 FROM tab2 AS cor0
----
-1178
-806
-837

query I rowsort
SELECT col2 - - col0 * + col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-3394
-664036
-68079

query I rowsort
SELECT + cor0.col1 - - col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT - 28 * - col1 + ( col2 ) AS col1 FROM tab2 cor0
----
1678
514
895

query I rowsort
SELECT ALL + col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL + ( + col0 ) * 86 FROM tab2 AS cor0
----
602
6708
6794

query I rowsort
SELECT + + ( - cor0.col0 ) * + col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 * col1 ) col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT tab0.col0 * col2 + col2 FROM tab0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-8452
SELECT ALL col2 DIV 1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL col2 / 1 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8453
SELECT + tab1.col0 DIV - col1 AS col0 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-8453
SELECT + tab1.col0 / - col1 AS col0 FROM tab1
----
-6
-6
0

query I rowsort
SELECT ALL 81 * col1 + - col2 * col2 - + col0 FROM tab0
----
558
5853
7821

query I rowsort
SELECT - cor0.col0 - + col2 * ( - col1 + - col0 ) FROM tab0 cor0
----
14671
3606
97

query I rowsort
SELECT + + col2 * col1 AS col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT + col1 * - col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT col1 * col2 + - col2 - - 60 FROM tab1 AS cor0
----
1212
1410
573

onlyif mysql # use DIV operator for integer division
query I rowsort label-8459
SELECT col0 DIV - col1 col0 FROM tab2 AS cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8459
SELECT col0 / - col1 col0 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL 55 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT - ( 40 ) + col2 * col0 AS col2 FROM tab0 AS cor0
----
-5
7258
752

query I rowsort
SELECT - - 83 * - cor0.col1 FROM tab0 AS cor0
----
-7138
-7553
-8051

onlyif mysql # use DIV operator for integer division
query I rowsort label-8463
SELECT ALL 13 DIV - ( - col1 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL 13 / - ( - col1 ) AS col0 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8464
SELECT CAST( NULL AS DECIMAL ) * + 10 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8464
SELECT CAST ( NULL AS REAL ) * + 10 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8465
SELECT DISTINCT + CAST( ( - col1 ) AS SIGNED ) * - col0 + 58 + + cor0.col1 * - 77 FROM tab1 AS cor0
----
-1866
-72
97

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT + CAST ( ( - col1 ) AS INTEGER ) * - col0 + 58 + + cor0.col1 * - 77 FROM tab1 AS cor0
----
-1866
-72
97

query I rowsort
SELECT DISTINCT 49 FROM tab0, tab2 AS cor0, tab1, tab1 AS cor1
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 + + ( col1 ) * - col1 col1 FROM tab1 AS cor0
----
-154
-661
-85

query I rowsort
SELECT 57 * - col0 FROM tab2 AS cor0
----
-399
-4446
-4503

query I rowsort
SELECT DISTINCT - col2 * - col0 + col0 * - col2 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - ( 26 ) * - col0 FROM tab0 AS cor0
----
2314
624
910

query I rowsort
SELECT DISTINCT tab2.col2 * + col1 + - col0 * + col0 AS col0 FROM tab2
----
-4550
-5595
788

query I rowsort
SELECT + - 21 + - col1 + + col2 FROM tab0 AS cor0
----
-117
-30
-74

query I rowsort
SELECT cor0.col2 * + col1 + - col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT 11 * + col0 + col1 FROM tab2
----
108
886
917

onlyif mysql # use DIV operator for integer division
query I rowsort label-8475
SELECT DISTINCT - col1 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT - col1 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT ALL + - col2 * cor0.col1 * col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-119795
-32480
-75790

query I rowsort
SELECT DISTINCT + col1 * col1 * + col1 AS col0 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT DISTINCT col1 * col0 + - cor0.col2 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-8479
SELECT ALL + col0 DIV col0 + - col1 FROM tab2 cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL + col0 / col0 + - col1 FROM tab2 cor0
----
-16
-30
-58

query I rowsort
SELECT ( - col2 + + col2 ) * col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 0 + ( col2 ) FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 77 ) + col2 * col1 col0 FROM tab0
----
20
2761
7385

query I rowsort
SELECT + ( col0 ) * col2 + + col2 + - tab2.col0 * - col2 FROM tab2
----
405
4082
6042

query I rowsort
SELECT 37 * col0 * + col2 + col1 AS col2 FROM tab0
----
1392
270117
29390

query I rowsort
SELECT DISTINCT - col1 + - 1 * + tab2.col1 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT + col0 * col2 + - col1 AS col0 FROM tab0 cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 * + cor0.col1 col2 FROM tab1 AS cor0
----
1066
2132
820

query I rowsort
SELECT - 51 + - 48 * - col1 FROM tab1 AS cor0
----
1197
429
573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 col0 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 74 + + cor0.col2 col2 FROM tab1 cor0
----
-17
-20
22

query I rowsort
SELECT DISTINCT - - 91 * + col1 + + col1 * col1 + col0 * col2 FROM tab2 AS cor0
----
10878
3971
4838

query I rowsort
SELECT - 12 + + cor0.col1 FROM tab1 cor0
----
-2
1
14

query I rowsort
SELECT - cor0.col2 * col2 + + col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-513
1197
1224

query I rowsort
SELECT DISTINCT + col2 + - cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL col1 * + col1 * col2 AS col0 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-8497
SELECT ALL ( + col0 ) + col0 DIV - col1 FROM tab2 AS cor0
----
7
75
77

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL ( + col0 ) + col0 / - col1 FROM tab2 AS cor0
----
7
75
77

query I rowsort
SELECT ALL cor0.col0 * + col0 + col2 AS col1 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT - col1 - + 49 AS col0 FROM tab0
----
-135
-140
-146

onlyif mysql # use DIV operator for integer division
query I rowsort label-8500
SELECT col2 DIV - 39 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8500
SELECT col2 / - 39 FROM tab0
----
-2
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8501
SELECT - col0 - + col1 DIV col2 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-8501
SELECT - col0 - + col1 / col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL col0 * + col0 - col2 FROM tab2
----
22
6058
6203

query I rowsort
SELECT - col0 * col2 * col2 AS col2 FROM tab0
----
-26136
-35
-598436

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + col2 * - col1
----

query I rowsort
SELECT DISTINCT cor0.col2 * + col0 * col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + col2 * tab2.col0 + col2 FROM tab2
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 * + col0 col1 FROM tab2 AS cor0
----
114076
5103
52728

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - - col0 * - col2 = NULL
----

query I rowsort
SELECT DISTINCT - col2 + col2 + tab2.col1 FROM tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * col1 col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL - col2 * - col2 + col1 * - col1 AS col0 FROM tab2
----
-232
-2805
1155

query I rowsort
SELECT + col1 + - tab0.col2 * col1 AS col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT - col0 * - tab0.col1 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - tab1.col2 + - col1 AS col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT tab1.col0 FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND col1 + col0 * + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 ) IN ( - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT + col2 * - tab2.col1 * + col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL NOT IN ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - tab0.col1 * col2 + col1 + - tab0.col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8520
SELECT DISTINCT - cor0.col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT - cor0.col0 / col0 AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT tab1.col0 * + col2 * + tab1.col2 + tab1.col1 * col2 * col0 AS col1 FROM tab1
----
12960
244416
837120

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL + col2 * col2 * col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT col1 * tab1.col1 - col1 AS col1 FROM tab1
----
156
650
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT col2 + col0 * - col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8527
SELECT col1 + + col2 + + col2 DIV col1 FROM tab2
----
57
58
85

skipif mysql # not compatible
query I rowsort label-8527
SELECT col1 + + col2 + + col2 / col1 FROM tab2
----
57
58
85

query I rowsort
SELECT ALL col0 * col0 + col0 * + col0 * + tab2.col2 AS col0 FROM tab2
----
1372
164268
243399

query I rowsort
SELECT ALL + col1 * - col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - col0 + col2 * + col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT col2 + - col2 + tab2.col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL + col1 * col1 * col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
16320
36558
5757

query I rowsort
SELECT ALL + col1 + - col1 * col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - col1 * col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT + col2 * 41 + - col0 FROM tab0 AS cor0
----
1329
3273
6

query I rowsort
SELECT - - 96 * + col1 * - col2 + + ( col0 * col2 ) FROM tab1 AS cor0
----
-112128
-134622
-51072

query I rowsort
SELECT cor0.col1 * + ( col0 ) + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-774
3298
637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col2 * col1 col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL col1 * col0 + + col1 AS col2 FROM tab2
----
1360
248
4661

query I rowsort
SELECT DISTINCT col0 + + 7 + col2 FROM tab2
----
111
124
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8541
SELECT DISTINCT - col1 + + CAST( - col1 AS SIGNED ) + - col0 AS col2 FROM tab0
----
-196
-229
-271

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT - col1 + + CAST ( - col1 AS INTEGER ) + - col0 AS col2 FROM tab0
----
-196
-229
-271

query I rowsort
SELECT ( col1 ) * col1 + + ( col2 + + col0 ) FROM tab0 AS cor0
----
7453
8452
9445

query I rowsort
SELECT DISTINCT + + ( + col0 ) - + col2 AS col2 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - 20 * col0 + ( - col2 ) * col1 * col2 AS col0 FROM tab2 AS cor0
----
-22739
-26128
-41444

query I rowsort
SELECT DISTINCT + - col0 * col0 + 56 FROM tab0 AS cor0
----
-1169
-520
-7865

query I rowsort
SELECT DISTINCT + 91 - - col2 * - 33 FROM tab2 AS cor0
----
-1163
-767
-800

query I rowsort
SELECT + 36 AS col1 FROM tab2 cor0
----
36
36
36

query I rowsort
SELECT ALL ( + cor0.col0 ) + cor0.col1 * + 37 AS col2 FROM tab0 AS cor0
----
3206
3456
3624

query I rowsort
SELECT ( 99 ) FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( tab1.col0 * col2 ) + 10 * 27 col0 FROM tab1
----
-3378
-7410
108

query I rowsort
SELECT - + col1 * - 65 - + 0 * - col2 AS col0 FROM tab1 AS cor0
----
1690
650
845

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * cor0.col1 col2 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 * 47 col0 FROM tab2 AS cor0
----
-1457
-2773
-799

query I rowsort
SELECT - col1 * ( col2 + + col2 ) AS col0 FROM tab2 cor0
----
-1292
-1674
-3068

onlyif mysql # use DIV operator for integer division
query I rowsort label-8555
SELECT + col0 DIV ( col1 ) AS col2 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-8555
SELECT + col0 / ( col1 ) AS col2 FROM tab2 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * 16 col2 FROM tab2 AS cor0
----
272
496
944

query I rowsort
SELECT col0 * - ( - ( + col1 ) * col1 ) FROM tab2
----
22831
271518
6727

query I rowsort
SELECT + col2 * 56 AS col1 FROM tab2 AS cor0
----
1456
1512
2128

onlyif mysql # use DIV operator for integer division
query I rowsort label-8559
SELECT + col2 DIV tab0.col0 - ( col1 ) FROM tab0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-8559
SELECT + col2 / tab0.col0 - ( col1 ) FROM tab0
----
-85
-91
-97

query I rowsort
SELECT ALL - col2 * 19 AS col1 FROM tab1
----
-1026
-1083
-1824

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8561
SELECT ALL CAST( 31 AS SIGNED ) * col2 * + col1 AS col2 FROM tab0
----
231322
3007
87978

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL CAST ( 31 AS INTEGER ) * col2 * + col1 AS col2 FROM tab0
----
231322
3007
87978

onlyif mysql # use DIV operator for integer division
query I rowsort label-8562
SELECT ALL + tab1.col0 DIV - col1 AS col2 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL + tab1.col0 / - col1 AS col2 FROM tab1
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 72 ) col1 FROM tab1
----
72
72
72

query I rowsort
SELECT + 24 + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 9a83ca53593488bcca71a5d47c662302

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8565
SELECT DISTINCT CAST( + 77 AS SIGNED ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT CAST ( + 77 AS INTEGER ) FROM tab1
----
77

query I rowsort
SELECT DISTINCT + 5 AS col1 FROM tab0, tab1, tab1 cor0
----
5

query I rowsort
SELECT DISTINCT - 12 * + 36 FROM tab1, tab2 cor0, tab1 AS cor1
----
-432

query I rowsort
SELECT + + col1 * - col2 + col1 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-8569
SELECT DISTINCT + col1 DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT + col1 / - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT ALL - + 83 AS col0 FROM tab2 AS cor0
----
-83
-83
-83

query I rowsort
SELECT DISTINCT + + col1 + + col0 * col2 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-8572
SELECT DISTINCT 73 DIV col2 + cor0.col2 * col1 FROM tab0 AS cor0
----
170
2840
7462

skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT 73 / col2 + cor0.col2 * col1 FROM tab0 AS cor0
----
170
2840
7462

onlyif mysql # use DIV operator for integer division
query I rowsort label-8573
SELECT + col0 DIV + cor0.col0 - + col2 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-8573
SELECT + col0 / + cor0.col0 - + col2 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT DISTINCT + 67 * col1 + - col1 AS col0 FROM tab1 AS cor0
----
1716
660
858

query I rowsort
SELECT DISTINCT - col2 * cor0.col0 * ( - 89 ) - + cor0.col1 AS col1 FROM tab2 AS cor0
----
16790
180433
267161

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8576
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + 74 + col0 - col0 FROM tab0
----
74
74
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8578
SELECT - CAST( NULL AS SIGNED ) + - tab0.col1 * tab0.col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8578
SELECT - CAST ( NULL AS INTEGER ) + - tab0.col1 * tab0.col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col1 * - col1 col2 FROM tab0
----
7429
8363
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-8580
SELECT DISTINCT col2 + - col0 DIV col1 FROM tab1
----
51
54
90

skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT col2 + - col0 / col1 FROM tab1
----
51
54
90

query I rowsort
SELECT ALL + tab1.col0 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-8582
SELECT + col0 DIV cor0.col1 + 16 FROM tab0 cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-8582
SELECT + col0 / cor0.col1 + 16 FROM tab0 cor0
----
16
16
16

query I rowsort
SELECT ALL 96 * - col0 AS col1 FROM tab0 AS cor0
----
-2304
-3360
-8544

query I rowsort
SELECT - + col1 * + cor0.col0 + + col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + col0 * - col0 + col2 * - ( - col0 ) * ( col2 ) AS col0 FROM tab0 cor0
----
-1190
25560
590515

query I rowsort
SELECT ALL + col1 * col0 + ( - col2 ) AS col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT col0 * 76 - + ( + col0 ) FROM tab1
----
225
4800
6000

query I rowsort
SELECT + ( - col0 ) * col2 * col0 AS col2 FROM tab2 cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT - 17 AS col0 FROM tab2, tab2 AS cor0
----
-17

query I rowsort
SELECT ALL + ( 91 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT ALL - - 27 * + 17 FROM tab0 AS cor0
----
459
459
459

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8592
SELECT - col2 * col0 + col0 * - CAST( NULL AS SIGNED ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8592
SELECT - col2 * col0 + col0 * - CAST ( NULL AS INTEGER ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # use DIV operator for integer division
query I rowsort label-8594
SELECT - ( + col1 ) DIV + col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8594
SELECT - ( + col1 ) / + col1 FROM tab2
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8595
SELECT + col1 + - col2 - + col2 DIV 76 FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-8595
SELECT + col1 + - col2 - + col2 / 76 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL + col0 + col2 + col2 AS col2 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT ALL - + 96 * + 69 AS col2 FROM tab2 cor0
----
-6624
-6624
-6624

query I rowsort
SELECT + + col1 + + col0 - col1 * 95 * col1 AS col1 FROM tab0 AS cor0
----
-702510
-786515
-893723

query I rowsort
SELECT DISTINCT + + ( + 39 ) + + col0 * ( - col2 ) FROM tab2 AS cor0
----
-150
-1989
-2963

query I rowsort
SELECT ALL + ( - col2 ) + cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8601
SELECT ALL + CAST( NULL AS DECIMAL ) + + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL + CAST ( NULL AS REAL ) + + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 3 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT DISTINCT - 32 + - col1 AS col2 FROM tab0 AS cor0
----
-118
-123
-129

query I rowsort
SELECT DISTINCT + - 16 + col2 + cor0.col1 FROM tab2 AS cor0
----
39
42
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 * col1 + col2 col1 FROM tab1 AS cor0
----
-1636
-593
-749

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 - 51 * - col1 col0 FROM tab1 AS cor0
----
1360
544
697

query I rowsort
SELECT ALL - - ( col2 ) + + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-8608
SELECT + - 37 DIV col0 FROM tab2 cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-8608
SELECT + - 37 / col0 FROM tab2 cor0
----
-5
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 + col1 ) col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - - ( + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT col0 * col1 * - col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL + ( + col1 ) + + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + 28 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1064
728
756

query I rowsort
SELECT + col1 - + col0 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT - ( col2 ) - 60 FROM tab1 AS cor0
----
-114
-117
-156

query I rowsort
SELECT DISTINCT col1 + - col0 * col1 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8617
SELECT DISTINCT - + col2 * CAST( + 9 * col2 AS SIGNED ) FROM tab0 AS cor0
----
-60516
-9
-9801

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT - + col2 * CAST ( + 9 * col2 AS INTEGER ) FROM tab0 AS cor0
----
-60516
-9
-9801

query I rowsort
SELECT col1 + + col2 AS col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT cor0.col1 + col0 * + cor0.col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + 90 FROM tab0, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT + col2 + col2 * 97 FROM tab0 AS cor0
----
3234
8036
98

query I rowsort
SELECT ALL - cor0.col2 + + 48 FROM tab0 AS cor0
----
-34
15
47

query I rowsort
SELECT ALL + - col2 * - 45 AS col0 FROM tab1 AS cor0
----
2430
2565
4320

query I rowsort
SELECT ALL - col2 * col2 + - col0 + - col0 AS col1 FROM tab1 AS cor0
----
-2922
-3377
-9376

query I rowsort
SELECT - + ( ( col1 ) ) * - 0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 49 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT ALL tab1.col1 * col0 * - col0 AS col1 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT ALL - ( 85 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT - col0 - - ( - col0 ) * col0 AS col2 FROM tab2
----
-56
-6162
-6320

query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT 71 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8632
SELECT + col2 + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8632
SELECT + col2 + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col1 * + col2 AS col0 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-8634
SELECT DISTINCT ( tab0.col2 ) DIV col1 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT ( tab0.col2 ) / col1 AS col2 FROM tab0
----
0

query I rowsort
SELECT + col0 + 58 AS col1 FROM tab1
----
122
138
61

query I rowsort
SELECT DISTINCT 28 AS col2 FROM tab2 cor0
----
28

query I rowsort
SELECT + col0 * + col2 + col2 * + ( - 32 ) FROM tab2 AS cor0
----
-675
1196
1786

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8638
SELECT - - CAST( 88 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-8638
SELECT - - CAST ( 88 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT DISTINCT cor0.col1 + col1 * col0 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8640
SELECT + - CAST( - ( col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-8640
SELECT + - CAST ( - ( col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL cor1.col0 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT + cor0.col1 * - col2 AS col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT - tab2.col2 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT + col0 + tab1.col0 + + 42 FROM tab1
----
170
202
48

query I rowsort
SELECT ALL - 44 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 cor2
----
81 values hashing to 9c887509d218271b9365009eba440976

query I rowsort
SELECT DISTINCT - 66 AS col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-8648
SELECT col1 DIV + cor0.col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8648
SELECT col1 / + cor0.col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col0 + - 40 FROM tab2 AS cor0
----
-33
38
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-8650
SELECT ALL - col1 DIV CAST( 84 AS SIGNED ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL - col1 / CAST ( 84 AS INTEGER ) FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8651
SELECT DISTINCT + col0 * CAST( 16 AS SIGNED ) FROM tab2 cor0
----
112
1248
1264

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT + col0 * CAST ( 16 AS INTEGER ) FROM tab2 cor0
----
112
1248
1264

query I rowsort
SELECT - - col0 + 21 * ( - col1 ) * 45 AS col1 FROM tab0 AS cor0
----
-81246
-85906
-91630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8653
SELECT ALL - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * 87 AS col0 FROM tab0 AS cor0
----
2088
3045
7743

query I rowsort
SELECT DISTINCT - col2 + + ( + col0 ) + col2 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8656
SELECT CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8656
SELECT CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 29 * + col2 - + col2 AS col1 FROM tab1 AS cor0
----
1512
1596
2688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT + col2 + + 61 FROM tab1 AS cor0
----
115
118
157

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8660
SELECT DISTINCT - CAST( col1 AS SIGNED ) + + col0 AS col1 FROM tab1 cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + + col0 AS col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL tab1.col0 * + 32 * tab1.col2 FROM tab1
----
116736
245760
5184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 col0 FROM tab0 cor0
----
-81
-81
-81

query I rowsort
SELECT - - col1 - + 60 FROM tab1 AS cor0
----
-34
-47
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-8664
SELECT ALL - cor0.col0 DIV + 42 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL - cor0.col0 / + 42 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ( 46 ) + cor0.col0 FROM tab0 AS cor0
----
135
70
81

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1 cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242

query I rowsort
SELECT DISTINCT - 79 + + col0 AS col0 FROM tab1 AS cor0
----
-15
-76
1

query I rowsort
SELECT DISTINCT 74 * - col0 + col0 FROM tab1
----
-219
-4672
-5840

query I rowsort
SELECT ALL 82 * col0 + col1 * 14 * + col1 FROM tab1
----
6648
8926
9710

query I rowsort
SELECT DISTINCT + cor0.col1 * + col0 * cor0.col2 - cor0.col0 FROM tab1 AS cor0
----
36416
4209
99760

query I rowsort
SELECT ALL + + col1 + 36 FROM tab0 cor0
----
122
127
133

query I rowsort
SELECT DISTINCT - + col2 - ( col1 ) * - col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
3394
664036
68079

query I rowsort
SELECT ALL + - col1 - 35 AS col0 FROM tab1 AS cor0
----
-45
-48
-61

query I rowsort
SELECT DISTINCT - + col2 * - ( col2 ) FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT col0 + col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-8676
SELECT ALL - col2 DIV + col1 + ( - col0 + - col0 ) AS col1 FROM tab0 AS cor0
----
-178
-48
-70

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL - col2 / + col1 + ( - col0 + - col0 ) AS col1 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT - - col1 * 10 + - 7 FROM tab1 AS cor0
----
123
253
93

query I rowsort
SELECT DISTINCT - cor0.col2 * 9 FROM tab0 cor0
----
-297
-738
-9

skipif mysql # not compatible
query I rowsort
SELECT col2 + CAST ( - col0 AS REAL ) * + col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL col1 + + 91 FROM tab2 AS cor0
----
108
122
150

query I rowsort
SELECT col2 + + cor0.col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + - cor0.col0 * 37 AS col0 FROM tab0 cor0
----
-1295
-3293
-888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * - ( col2 ) col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + col0 + - ( - ( + col2 ) ) * + col0 * 78 AS col1 FROM tab2 cor0
----
14749
158262
234235

query I rowsort
SELECT ALL cor0.col0 * - ( col0 ) AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT col1 * + 73 AS col1 FROM tab0 cor0
----
6278
6643
7081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 9 col1 FROM tab1 cor0
----
-55
-71
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 col0 FROM tab1 AS cor0
----
2

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to f9101173abc9e524c6310e6c0eeefb0c

query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - + cor0.col1 * - col1 * col0 + col0 AS col1 FROM tab2 AS cor0
----
22910
271596
6734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 - - col2 col1 FROM tab1 AS cor0
----
2970
3306
9312

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0 CROSS JOIN tab1, tab1 AS cor1
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19

query I rowsort
SELECT DISTINCT col1 + + ( col0 ) FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-8695
SELECT + col2 DIV + col2 + col1 AS col0 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-8695
SELECT + col2 / + col2 + col1 AS col0 FROM tab1
----
11
14
27

query I rowsort
SELECT DISTINCT - 40 + col1 AS col1 FROM tab2 AS cor0
----
-23
-9
19

query I rowsort
SELECT DISTINCT - + col0 + col0 * - ( ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL col1 * + col0 - ( + col0 ) AS col1 FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT - 97 + - col0 AS col2 FROM tab0
----
-121
-132
-186

query I rowsort
SELECT DISTINCT + ( - tab2.col0 ) AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + + ( + cor1.col1 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
10
13
26

query I rowsort
SELECT ALL 51 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT ALL + col2 * + col1 * - col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT - col2 * + col2 * 28 AS col2 FROM tab2
----
-18928
-20412
-40432

query I rowsort
SELECT ALL + col1 + ( + col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + col2 * 29 FROM tab2 AS cor0
----
1102
754
783

query I rowsort
SELECT DISTINCT - + col1 * - col2 + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - col1 * + col2 + ( col1 ) FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + tab2.col2 * tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0

query I rowsort
SELECT DISTINCT tab0.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
24
35
89

query I rowsort
SELECT 53 FROM tab0, tab2 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - 42 AS REAL ) FROM tab2 AS cor0
----
-42

query I rowsort
SELECT DISTINCT + + 52 * 22 * col2 FROM tab2 AS cor0
----
29744
30888
43472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 40 + cor0.col0 col1 FROM tab1 AS cor0
----
114
133
69

query I rowsort
SELECT + cor0.col0 + 75 AS col1 FROM tab2 AS cor0
----
153
154
82

query I rowsort
SELECT ALL + 42 * col0 - - col2 FROM tab0 AS cor0
----
1041
1471
3820

onlyif mysql # use DIV operator for integer division
query I rowsort label-8717
SELECT col2 + col1 DIV col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8717
SELECT col2 + col1 / col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8718
SELECT + + cor0.col1 * - col1 + CAST( col2 * col1 AS SIGNED ) FROM tab2 AS cor0
----
-124
-1947
357

skipif mysql # not compatible
query I rowsort label-8718
SELECT + + cor0.col1 * - col1 + CAST ( col2 * col1 AS INTEGER ) FROM tab2 AS cor0
----
-124
-1947
357

query I rowsort
SELECT DISTINCT ( + col2 ) + + 59 FROM tab1 AS cor0
----
113
116
155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 35 * + col0 + + col2 col0 FROM tab1 AS cor0
----
-2183
-2704
-51

query I rowsort
SELECT DISTINCT col2 * col1 + + 70 FROM tab0 AS cor0
----
167
2908
7532

query I rowsort
SELECT ALL + - col2 + - col1 AS col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT 53 * cor0.col1 AS col2 FROM tab0 AS cor0
----
4558
4823
5141

onlyif mysql # use DIV operator for integer division
query I rowsort label-8724
SELECT + - ( + col2 ) DIV + col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-8724
SELECT + - ( + col2 ) / + col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT ALL + - col2 + + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - col2 + - col1 + ( - col2 ) * - cor0.col1 FROM tab2 AS cor0
----
1449
591
779

onlyif mysql # use DIV operator for integer division
query I rowsort label-8728
SELECT DISTINCT 62 DIV 26 + + col2 * ( col0 ) FROM tab0
----
37
7300
794

skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT 62 / 26 + + col2 * ( col0 ) FROM tab0
----
37
7300
794

query I rowsort
SELECT DISTINCT + 83 * tab0.col0 * col0 + ( + col2 ) FROM tab0
----
101676
47841
657525

query I rowsort
SELECT ALL col1 + 49 FROM tab1
----
59
62
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-8731
SELECT + col0 + + 23 DIV col0 + col2 * + col2 FROM tab2
----
1523
739
754

skipif mysql # not compatible
query I rowsort label-8731
SELECT + col0 + + 23 / col0 + col2 * + col2 FROM tab2
----
1523
739
754

query I rowsort
SELECT + 99 + col1 * - col1 FROM tab1
----
-1
-577
-70

query I rowsort
SELECT - cor0.col1 + - cor0.col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT + col2 * - ( + cor0.col0 ) FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT - 63 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to 0a6489496517f27fb746473909f2b76b

query I rowsort
SELECT ALL 78 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT ALL - cor0.col2 + + col0 + + col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - - ( + col2 ) + + ( 0 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT 5 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT DISTINCT col0 * + 61 FROM tab2
----
427
4758
4819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT - ( + col1 ) + - 2 AS col2 FROM tab2
----
-19
-33
-61

query I rowsort
SELECT col2 + 93 * col2 AS col0 FROM tab2 cor0
----
2444
2538
3572

query I rowsort
SELECT col0 * + 5 + col2 AS col0 FROM tab1 AS cor0
----
377
496
69

query I rowsort
SELECT + col1 + - col0 + - col1 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8746
SELECT + col1 DIV 46 + tab2.col2 FROM tab2
----
27
27
38

skipif mysql # not compatible
query I rowsort label-8746
SELECT + col1 / 46 + tab2.col2 FROM tab2
----
27
27
38

query I rowsort
SELECT - col2 * 47 AS col0 FROM tab2 AS cor0
----
-1222
-1269
-1786

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8748
SELECT DISTINCT - col0 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT - col0 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 34 + 36 * - col2 col0 FROM tab2
----
-1317
-843
-907

onlyif mysql # use DIV operator for integer division
query I rowsort label-8750
SELECT ALL col2 DIV - 83 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL col2 / - 83 AS col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT col0 * 36 FROM tab0
----
1260
3204
864

query I rowsort
SELECT - col0 * - 57 AS col0 FROM tab1 AS cor0
----
171
3648
4560

onlyif mysql # use DIV operator for integer division
query I rowsort label-8753
SELECT col1 + - 60 - - tab2.col2 DIV col0 FROM tab2
----
-1
-26
-43

skipif mysql # not compatible
query I rowsort label-8753
SELECT col1 + - 60 - - tab2.col2 / col0 FROM tab2
----
-1
-26
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) col1 FROM tab1, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + 69 FROM tab2, tab1, tab2 AS cor0, tab0
----
69

query I rowsort
SELECT ALL 23 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8757
SELECT - - ( + cor0.col1 ) * col2 + CAST( NULL AS SIGNED ) / + col0 + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8757
SELECT - - ( + cor0.col1 ) * col2 + CAST ( NULL AS INTEGER ) / + col0 + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8758
SELECT - col0 DIV 30 col1 FROM tab1 cor0
----
-2
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8758
SELECT - col0 / 30 col1 FROM tab1 cor0
----
-2
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8759
SELECT col2 * + col0 + - col0 DIV + cor0.col0 col1 FROM tab1 AS cor0
----
161
3647
7679

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8759
SELECT col2 * + col0 + - col0 / + cor0.col0 col1 FROM tab1 AS cor0
----
161
3647
7679

query I rowsort
SELECT - - 24 * - col1 + cor0.col1 + + col1 AS col0 FROM tab2 AS cor0
----
-1298
-374
-682

onlyif mysql # use DIV operator for integer division
query I rowsort label-8761
SELECT DISTINCT 38 + - col0 DIV - tab0.col0 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT 38 + - col0 / - tab0.col0 FROM tab0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 45 col2 FROM tab1 AS cor0
----
-1170
-450
-585

query I rowsort
SELECT DISTINCT - 61 + + col0 * + col2 FROM tab2 AS cor0
----
128
1967
2941

query I rowsort
SELECT ( - col1 ) + col2 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT ALL + col1 * col2 + col2 AS col1 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT - cor0.col0 * + 43 AS col0 FROM tab1 AS cor0
----
-129
-2752
-3440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 29 col2 FROM tab1 AS cor0
----
1856
2320
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 + col1 * ( + cor0.col2 ) col2 FROM tab2 AS cor0
----
1638
763
871

query I rowsort
SELECT ALL + 79 * 48 * col2 + ( col1 ) FROM tab0 AS cor0
----
125222
311035
3889

query I rowsort
SELECT ALL col1 + 87 FROM tab2 cor0
----
104
118
146

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8771
SELECT + - 17 * col0 + - CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8771
SELECT + - 17 * col0 + - CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 * col0 * col1 col1 FROM tab2 AS cor0
----
-142662
-41633
-6727

query I rowsort
SELECT + + 57 * + col0 * ( col2 ) FROM tab0 AS cor0
----
1995
415986
45144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 45 * col1 col0 FROM tab1 AS cor0
----
-28800
-3510
-46800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + ( + 62 ) col1 FROM tab2 AS cor0
----
434
4836
4898

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( - 52 ) col0 FROM tab0 AS cor0
----
-4472
-4732
-5044

onlyif mysql # use DIV operator for integer division
query I rowsort label-8778
SELECT cor0.col0 + + CAST( 39 AS SIGNED ) * cor0.col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
117
118
46

skipif mysql # not compatible
query I rowsort label-8778
SELECT cor0.col0 + + CAST ( 39 AS INTEGER ) * cor0.col1 / + col1 AS col1 FROM tab2 AS cor0
----
117
118
46

query I rowsort
SELECT DISTINCT + col2 + + 95 FROM tab1 AS cor0
----
149
152
191

query I rowsort
SELECT + col0 + + tab2.col2 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL - col2 * ( + col2 ) AS col0 FROM tab2
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - ( - col2 ) col0 FROM tab1
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-8783
SELECT DISTINCT + col0 DIV col1 + cor0.col1 * col1 FROM tab1 AS cor0
----
106
175
676

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT + col0 / col1 + cor0.col1 * col1 FROM tab1 AS cor0
----
106
175
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8784
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8785
SELECT + CAST( 14 AS SIGNED ) + - col2 * cor0.col1 FROM tab0 AS cor0
----
-2824
-7448
-83

skipif mysql # not compatible
query I rowsort label-8785
SELECT + CAST ( 14 AS INTEGER ) + - col2 * cor0.col1 FROM tab0 AS cor0
----
-2824
-7448
-83

query I rowsort
SELECT ALL 12 + 13 FROM tab0 AS cor0
----
25
25
25

query I rowsort
SELECT tab2.col2 + 75 * - col0 AS col2 FROM tab2
----
-498
-5824
-5887

onlyif mysql # use DIV operator for integer division
query I rowsort label-8788
SELECT DISTINCT + - ( + col0 ) + cor0.col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT + - ( + col0 ) + cor0.col1 / col0 AS col2 FROM tab2 AS cor0
----
-3
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) * - col1 col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL + - 6 + col1 * cor0.col0 FROM tab0 AS cor0
----
2058
3389
8093

query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 + - col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT ALL + 84 AS col0 FROM tab0 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT - col0 * cor0.col1 * - col1 AS col1 FROM tab2 cor0
----
22831
271518
6727

query I rowsort
SELECT col1 * 33 + + col1 * col0 FROM tab1
----
1469
936
970

query I rowsort
SELECT ALL ( col1 ) + cor0.col2 * + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT 70 * col2 FROM tab2 AS cor0
----
1820
1890
2660

onlyif mysql # use DIV operator for integer division
query I rowsort label-8797
SELECT + cor0.col2 DIV col2 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8797
SELECT + cor0.col2 / col2 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col2 + + ( - cor0.col0 ) FROM tab2 AS cor0
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 col2 FROM tab0, tab0 AS cor0
----
-26

query I rowsort
SELECT ALL col0 * 28 * col2 AS col1 FROM tab2 AS cor0
----
5292
56784
84056

query I rowsort
SELECT ALL - col2 + ( 24 ) FROM tab1 cor0
----
-30
-33
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8802
SELECT ALL - + cor0.col0 * CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL - + cor0.col0 * CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT col1 * 65 + + 66 AS col1 FROM tab2 AS cor0
----
1171
2081
3901

query I rowsort
SELECT DISTINCT + cor0.col1 + - 8 FROM tab2 AS cor0
----
23
51
9

query I rowsort
SELECT DISTINCT col2 + - col0 - + col1 AS col1 FROM tab2 cor0
----
-11
-111
-58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8806
SELECT DISTINCT - cor0.col0 * - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT - cor0.col0 * - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + + col1 + + 47 FROM tab2 AS cor0
----
106
64
78

query I rowsort
SELECT col0 * + 23 AS col1 FROM tab2 AS cor0
----
161
1794
1817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 col1 FROM tab1 AS cor0
----
38
38
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8810
SELECT DISTINCT + CAST( + col1 AS SIGNED ) FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT tab0.col1 * + ( + col0 ) * col0 + - col2 AS col2 FROM tab0
----
118824
49503
720729

query I rowsort
SELECT ALL + 5 * - cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 7f76b558ea0c1469f3f93af2a005e865

onlyif mysql # use DIV operator for integer division
query I rowsort label-8813
SELECT col2 DIV 41 + col0 AS col2 FROM tab1
----
4
65
82

skipif mysql # not compatible
query I rowsort label-8813
SELECT col2 / 41 + col0 AS col2 FROM tab1
----
4
65
82

query I rowsort
SELECT DISTINCT + col1 * col1 * + 63 + col2 * col2 * - col0 AS col2 FROM tab1
----
-201636
-726633
33840

query I rowsort
SELECT + - col0 * + col0 + col1 FROM tab1 cor0
----
-4086
-6387
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-8816
SELECT DISTINCT - col2 DIV col0 + - col0 + - col0 AS col2 FROM tab1 AS cor0
----
-128
-161
-24

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT - col2 / col0 + - col0 + - col0 AS col2 FROM tab1 AS cor0
----
-128
-161
-24

query I rowsort
SELECT ALL + col0 * + col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT col0 * - col2 * - col1 + col1 FROM tab1
----
36490
4238
99853

query I rowsort
SELECT ALL - col0 + + tab1.col1 AS col1 FROM tab1
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-8820
SELECT ALL + col1 + col2 DIV col2 AS col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL + col1 + col2 / col2 AS col1 FROM tab1
----
11
14
27

query I rowsort
SELECT col2 * col2 + - cor0.col2 FROM tab2 AS cor0
----
1406
650
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * + tab1.col0 col0 FROM tab1
----
-576
-75
-960

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8824
SELECT + col1 DIV cor0.col0 + + col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1412
570

skipif mysql # not compatible
query I rowsort label-8824
SELECT + col1 / cor0.col0 + + col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1412
570

query I rowsort
SELECT col1 / col2 FROM tab1 WHERE tab1.col2 * - col0 > + col2
----

query I rowsort
SELECT - col1 FROM tab1 WHERE - col2 * col0 IN ( - col2 / - col2 + + col1 + - tab1.col2 )
----

query I rowsort
SELECT - + cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT - col0 * + col1 - col1 * col1 FROM tab2 AS cor0
----
-1178
-1632
-8083

query I rowsort
SELECT + + col1 * col2 + - col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL - col1 + - col0 * - col2 * + col1 + + col1 AS col2 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-8831
SELECT ALL + col1 + + col0 DIV + col1 FROM tab1
----
16
19
26

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL + col1 + + col0 / + col1 FROM tab1
----
16
19
26

query I rowsort
SELECT ALL + tab1.col1 + - col1 * col1 * col1 FROM tab1
----
-17550
-2184
-990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * cor0.col0 col1 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-8834
SELECT - + col1 DIV - col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8834
SELECT - + col1 / - col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT col1 * - col2 + cor0.col0 * + col1 * col1 AS col0 FROM tab2 AS cor0
----
22185
269984
5890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + - col2 col0 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - col0 * + cor0.col0 FROM tab1 cor0
----
-4096
-6400
-9

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + cor0.col0 AND NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8840
SELECT ALL 50 * col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL 50 * col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + col0 * ( col2 * col1 + col0 ) AS col0 FROM tab2 AS cor0
----
125795
57292
5939

query I rowsort
SELECT - + col1 * - cor0.col1 + ( + col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
10634
16202
7972

query I rowsort
SELECT + col1 * + 55 * col1 FROM tab0 AS cor0
----
406780
455455
517495

onlyif mysql # use DIV operator for integer division
query I rowsort label-8844
SELECT cor0.col2 * col1 + col2 DIV + cor0.col1 + col0 * 73 FROM tab2 AS cor0
----
1348
6415
7228

skipif mysql # not compatible
query I rowsort label-8844
SELECT cor0.col2 * col1 + col2 / + cor0.col1 + col0 * 73 FROM tab2 AS cor0
----
1348
6415
7228

query I rowsort
SELECT col1 * + col1 + - 67 AS col1 FROM tab2 AS cor0
----
222
3414
894

query I rowsort
SELECT ALL - col1 * 81 + - 48 FROM tab2 AS cor0
----
-1425
-2559
-4827

query I rowsort
SELECT + - ( 54 ) AS col0 FROM tab1 AS cor0
----
-54
-54
-54

query I rowsort
SELECT - col1 - 34 FROM tab2 AS cor0
----
-51
-65
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8849
SELECT - 46 * + ( col2 ) * - CAST( NULL AS SIGNED ) - + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8849
SELECT - 46 * + ( col2 ) * - CAST ( NULL AS INTEGER ) - + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 + cor1.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 765c355751486dd5ae8b94ab5a99bf9a

query I rowsort
SELECT DISTINCT + 68 AS col2 FROM tab1, tab2 AS cor0
----
68

query I rowsort
SELECT DISTINCT col2 * - col2 + 18 * + cor0.col0 * col0 FROM tab2 cor0
----
108836
110894
153

onlyif mysql # use DIV operator for integer division
query I rowsort label-8853
SELECT + tab0.col0 DIV + tab0.col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8853
SELECT + tab0.col0 / + tab0.col0 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 + col2 col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT col0 * 22 AS col0 FROM tab2
----
154
1716
1738

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 81 * - col1 col2 FROM tab2
----
124254
52326
67797

query I rowsort
SELECT - col0 * + cor0.col2 * + col2 AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + - cor0.col2 + col2 * col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL 17 * + col1 FROM tab1 AS cor0
----
170
221
442

onlyif mysql # use DIV operator for integer division
query I rowsort label-8860
SELECT + ( col2 ) DIV col2 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8860
SELECT + ( col2 ) / col2 AS col0 FROM tab1
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8861
SELECT ALL CAST( + col1 AS SIGNED ) col0 FROM tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL CAST ( + col1 AS INTEGER ) col0 FROM tab2
----
17
31
59

query I rowsort
SELECT - + 97 * col1 AS col0 FROM tab0 AS cor0
----
-8342
-8827
-9409

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) * 66 * 48 - + col1 FROM tab0 AS cor0
----
-272534
-288379
-307393

query I rowsort
SELECT ALL - col1 + + col2 * col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT 89 + + col2 + 89 FROM tab1
----
232
235
274

query I rowsort
SELECT DISTINCT col2 - col1 * + ( - col0 ) FROM tab2
----
1381
244
4628

query I rowsort
SELECT ALL 3 * col0 * 35 - col1 * col0 * + tab2.col0 AS col0 FROM tab2
----
-350766
-784
-97802

query I rowsort
SELECT DISTINCT col0 * - tab0.col1 + col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT ( col1 ) + col1 - + col2 AS col1 FROM tab0
----
100
139
193

query I rowsort
SELECT - col2 + + 10 FROM tab0 AS cor0
----
-23
-72
9

query I rowsort
SELECT + col0 + - col0 * - col1 AS col1 FROM tab2
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 + col2 col0 FROM tab1
----
29
3
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * tab1.col1 - + col2 col1 FROM tab1
----
43
622
73

query I rowsort
SELECT DISTINCT - ( tab0.col2 ) * col0 + col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT col1 * col0 + + 10 * - col0 AS col0 FROM tab2
----
147
3822
553

query I rowsort
SELECT + 94 * tab2.col1 FROM tab2
----
1598
2914
5546

query I rowsort
SELECT 75 * - col2 + + col2 AS col2 FROM tab1
----
-3996
-4218
-7104

query I rowsort
SELECT ALL ( + tab0.col1 ) + + col2 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL - - col1 * col0 - - col0 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8881
SELECT + CAST( ( col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-8881
SELECT + CAST ( ( col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - - ( col2 ) * + col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - + col0 * + ( col1 ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col2 FROM tab2 AS cor0
----
-72
-72
-72

query I rowsort
SELECT + - col2 * 37 AS col2 FROM tab0 AS cor0
----
-1221
-3034
-37

query I rowsort
SELECT DISTINCT col1 + col0 * col1 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT - ( - 83 ) * - col1 FROM tab0 AS cor0
----
-7138
-7553
-8051

query I rowsort
SELECT - - ( - col1 ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-8889
SELECT - - ( - ( col1 ) ) + + col2 DIV + col1 FROM tab2 AS cor0
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-8889
SELECT - - ( - ( col1 ) ) + + col2 / + col1 FROM tab2 AS cor0
----
-15
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 * - col2 col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT ALL col1 * - 24 + col1 AS col0 FROM tab1
----
-230
-299
-598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + tab0.col0 col0 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL - col1 + - 35 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-3096
-3276
-3492

query I rowsort
SELECT DISTINCT 70 + 72 AS col1 FROM tab0 AS cor0
----
142

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8895
SELECT + + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-8895
SELECT + + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + col1 + - col1 + col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL 24 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ( cor0.col2 + + cor0.col2 ) FROM tab2, tab0 AS cor0
----
9 values hashing to e5ee086d16e1b2450d3f7ac8d26a0f7b

query I rowsort
SELECT DISTINCT - col0 * ( - 38 ) FROM tab1 AS cor0
----
114
2432
3040

query I rowsort
SELECT ALL - ( + col1 ) AS col1 FROM tab2 cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8901
SELECT DISTINCT - CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8902
SELECT col1 + 52 * - col1 + + CAST( + 22 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1559
-2987
-845

skipif mysql # not compatible
query I rowsort label-8902
SELECT col1 + 52 * - col1 + + CAST ( + 22 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1559
-2987
-845

onlyif mysql # use DIV operator for integer division
query I rowsort label-8903
SELECT + + col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8903
SELECT + + col2 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 17 + + col0 + col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
1439
241
4697

query I rowsort
SELECT - ( + col2 ) * + col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * + col0 col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - col0 * - col0 - + col0 FROM tab1
----
4032
6
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col2 * - col2 - + ( - col2 ) col0 FROM tab2 AS cor0
----
114114
5130
52754

query I rowsort
SELECT ALL - 76 * + col2 * - 55 + 21 * + col0 FROM tab2 AS cor0
----
110318
113007
160499

query I rowsort
SELECT DISTINCT - 24 - - col0 * col2 AS col1 FROM tab0 AS cor0
----
11
7274
768

query I rowsort
SELECT 73 * + col0 - col0 * col1 * - col2 AS col1 FROM tab1 AS cor0
----
105680
41152
4431

query I rowsort
SELECT DISTINCT + 31 * + col1 + - cor0.col1 AS col1 FROM tab2 cor0
----
1770
510
930

query I rowsort
SELECT - - cor0.col2 + - col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL 30 + + col1 AS col2 FROM tab2 AS cor0
----
47
61
89

query I rowsort
SELECT ALL - col0 * ( col1 + col0 ) FROM tab0 AS cor0
----
-16020
-2640
-4620

query I rowsort
SELECT + + col2 * - col0 + cor0.col1 + col1 FROM tab1 AS cor0
----
-110
-3628
-7654

onlyif mysql # use DIV operator for integer division
query I rowsort label-8917
SELECT col1 + + col2 DIV 58 + - 36 AS col1 FROM tab2
----
-19
-5
23

skipif mysql # not compatible
query I rowsort label-8917
SELECT col1 + + col2 / 58 + - 36 AS col1 FROM tab2
----
-19
-5
23

query I rowsort
SELECT + - cor0.col1 * - 64 AS col2 FROM tab2 AS cor0
----
1088
1984
3776

query I rowsort
SELECT ALL col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + - col1 * col0 + col2 * + col1 AS col2 FROM tab1 AS cor0
----
-70
1326
208

query I rowsort
SELECT ALL + col2 + 97 * + cor0.col0 * + col1 AS col1 FROM tab0 AS cor0
----
200241
329316
785685

query I rowsort
SELECT ALL + col1 + cor0.col2 * - cor0.col0 + + col0 AS col1 FROM tab2 AS cor0
----
-151
-1891
-2906

query I rowsort
SELECT + cor0.col0 * col0 - col1 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT col0 * + col2 + 29 FROM tab1 AS cor0
----
191
3677
7709

query I rowsort
SELECT ALL + cor0.col2 - col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT + col0 * col0 * 32 + col2 + - cor0.col1 FROM tab1 AS cor0
----
131119
204883
316

onlyif mysql # use DIV operator for integer division
query I rowsort label-8927
SELECT + col1 + - ( 86 ) DIV col1 FROM tab0 AS cor0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-8927
SELECT + col1 + - ( 86 ) / col1 FROM tab0 AS cor0
----
85
91
97

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col2 * + ( - col0 ) + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT + - 58 + + ( col0 ) FROM tab0 AS cor0
----
-23
-34
31

query I rowsort
SELECT 18 + + col1 AS col0 FROM tab2 AS cor0
----
35
49
77

query I rowsort
SELECT + tab2.col2 + + col1 * + col2 + + col2 * 26 AS col0 FROM tab2
----
1566
1672
2236

onlyif mysql # use DIV operator for integer division
query I rowsort label-8933
SELECT DISTINCT col2 * ( + col1 ) DIV + col2 AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT col2 * ( + col1 ) / + col2 AS col1 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8934
SELECT DISTINCT - col2 * ( + 23 ) + col2 DIV + 74 AS col2 FROM tab0
----
-1885
-23
-759

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT - col2 * ( + 23 ) + col2 / + 74 AS col2 FROM tab0
----
-1885
-23
-759

query I rowsort
SELECT ALL - 24 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT ALL + - 54 + - col0 FROM tab0 AS cor0
----
-143
-78
-89

query I rowsort
SELECT DISTINCT - col0 * col1 - col0 FROM tab0 cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL + col1 + cor0.col1 * col2 * + cor0.col1 FROM tab0 AS cor0
----
244154
679133
9506

query I rowsort
SELECT ALL - 34 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

query I rowsort
SELECT DISTINCT 71 * cor0.col0 FROM tab1, tab1 cor0
----
213
4544
5680

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2, tab1 AS cor1
----
243 values hashing to 3e2b81ca10484cbfc66f186955e0e920

query I rowsort
SELECT DISTINCT 0 * col0 + ( tab0.col1 + col1 ) AS col0 FROM tab0
----
172
182
194

query I rowsort
SELECT col0 + + 69 * - 91 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-106664
-194642
-370383

query I rowsort
SELECT - 6 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8be8910507908e6353d02a545b748252

query I rowsort
SELECT + ( + tab1.col1 ) + tab1.col2 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab2, tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - + ( cor0.col0 ) + - col2 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT ALL - - 1 * cor0.col0 + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT col2 * - col1 * - tab0.col1 AS col2 FROM tab0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT - col1 - tab2.col1 * - col0 AS col1 FROM tab2 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 * - tab0.col1 * col0 AS col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL col0 * - col0 + - col1 + col0 AS col1 FROM tab1
----
-32
-4042
-6333

query I rowsort
SELECT col0 + col0 + - col2 AS col0 FROM tab0
----
15
69
96

query I rowsort
SELECT DISTINCT - col0 + + col2 + - col2 AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + col1 + tab1.col2 * col1 - tab1.col0 FROM tab1
----
1181
1427
516

query I rowsort
SELECT col1 * col0 + col2 * + tab2.col1 FROM tab2
----
1054
1989
6136

query I rowsort
SELECT DISTINCT col0 * col0 + + col0 + + col1 * - col2 * col1 FROM tab2
----
-25891
-4662
-84344

query I rowsort
SELECT ALL - tab2.col1 AS col0 FROM tab2 WHERE NOT ( - col0 * col2 ) = ( NULL )
----

query I rowsort
SELECT ALL - tab0.col2 + + col0 AS col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT col1 + + col1 * col1 FROM tab2
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-8961
SELECT col0 * - col0 + + col2 DIV col2 FROM tab1
----
-4095
-6399
-8

skipif mysql # not compatible
query I rowsort label-8961
SELECT col0 * - col0 + + col2 / col2 FROM tab1
----
-4095
-6399
-8

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab2 cor1, tab0 cor2
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - + ( + col0 ) * + col2 - + 70 AS col0 FROM tab0 AS cor0
----
-105
-7368
-862

query I rowsort
SELECT - 48 * + col1 FROM tab2 AS cor0
----
-1488
-2832
-816

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 * col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 * - col1 <> col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > - col2 * + col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( - col1 + + col1 )
----

query I rowsort
SELECT ALL + cor0.col2 + cor0.col1 * + col1 * + col1 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT tab2.col0 + + col2 AS col1 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 * col1 col2 FROM tab0
----
611884
93654
97

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * col1 + + col1 - col1 BETWEEN col1 * col0 + + col1 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8976
SELECT ALL col2 * + col1 DIV + col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL col2 * + col1 / + col1 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8977
SELECT ALL - col2 * - col1 DIV - col1 + col0 + + tab0.col0 AS col2 FROM tab0
----
15
69
96

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL - col2 * - col1 / - col1 + col0 + + tab0.col0 AS col2 FROM tab0
----
15
69
96

query I rowsort
SELECT DISTINCT col0 + + col2 * + tab0.col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT - col0 * col1 + + col1 AS col2 FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL - col1 * - col1 + col0 AS col2 FROM tab0
----
7420
8370
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT - col0 - - col0 * col2 AS col2 FROM tab1
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-8983
SELECT DISTINCT + col1 * col1 DIV + col0 + col2 * + col1 FROM tab2
----
1578
649
974

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT + col1 * col1 / + col0 + col2 * + col1 FROM tab2
----
1578
649
974

onlyif mysql # use DIV operator for integer division
query I rowsort label-8984
SELECT ALL + col2 * col2 - tab2.col2 DIV tab2.col1 AS col0 FROM tab2
----
1442
676
729

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL + col2 * col2 - tab2.col2 / tab2.col1 AS col0 FROM tab2
----
1442
676
729

query I rowsort
SELECT ALL - - ( + cor0.col0 ) + - cor0.col1 * ( col0 ) FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8986
SELECT ALL - CAST( 46 AS SIGNED ) + - col1 AS col2 FROM tab0 AS cor0
----
-132
-137
-143

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL - CAST ( 46 AS INTEGER ) + - col1 AS col2 FROM tab0 AS cor0
----
-132
-137
-143

query I rowsort
SELECT col0 + 14 * + col2 FROM tab2 cor0
----
385
442
611

query I rowsort
SELECT DISTINCT + 26 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
26

query I rowsort
SELECT ALL - 83 - col2 FROM tab1 AS cor0
----
-137
-140
-179

query I rowsort
SELECT DISTINCT - 82 + col2 - - col1 AS col0 FROM tab0 AS cor0
----
16
37
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8991
SELECT ALL + + CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL + + CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + + col0 * col1 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL + col2 * col1 * cor0.col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - ( col2 ) * + 20 + 68 FROM tab2 cor0
----
-452
-472
-692

query I rowsort
SELECT 29 * col0 * col1 AS col0 FROM tab2 AS cor0
----
133458
38947
6293

query I rowsort
SELECT DISTINCT + 80 * col1 FROM tab1 AS cor0
----
1040
2080
800

onlyif mysql # use DIV operator for integer division
query I rowsort label-8997
SELECT + + 33 DIV - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8997
SELECT + + 33 / - col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + - col1 AS col2 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT col1 * + col1 - 72 * cor0.col2 FROM tab2 AS cor0
----
-2447
-983
1609

query I rowsort
SELECT col1 * col1 - + tab1.col1 AS col0 FROM tab1
----
156
650
90

query I rowsort
SELECT + tab0.col2 + 85 FROM tab0
----
118
167
86

query I rowsort
SELECT ALL - col2 * 29 * col1 AS col2 FROM tab1
----
-16530
-36192
-40716

onlyif mysql # use DIV operator for integer division
query I rowsort label-9003
SELECT DISTINCT + col0 * col1 + - col0 - - col0 * - ( - col0 ) DIV col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT + col0 * col1 + - col0 - - col0 * - ( - col0 ) / col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - col0 * col0 * + col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT + col1 + cor0.col2 * 35 AS col1 FROM tab1 AS cor0
----
1916
2005
3373

query I rowsort
SELECT + col1 + cor0.col0 * - col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT - cor0.col2 + - ( col0 + col2 ) * col1 AS col1 FROM tab1 AS cor0
----
-1267
-1536
-2384

query I rowsort
SELECT col0 * 45 - 79 AS col2 FROM tab1
----
2801
3521
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - + col0 * - col2 AS col2 FROM tab0 cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort
SELECT - col2 * CAST ( col0 AS REAL ) AS col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + 89 * - col1 + 18 FROM tab1 AS cor0
----
-1139
-2296
-872

query I rowsort
SELECT - cor0.col0 - - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 + - cor0.col0 col2 FROM tab0 AS cor0
----
-6
48
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-9015
SELECT ALL 46 DIV col1 FROM tab1 AS cor0
----
1
3
4

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL 46 / col1 FROM tab1 AS cor0
----
1
3
4

query I rowsort
SELECT DISTINCT 12 * col0 + + ( + 9 ) FROM tab1
----
45
777
969

query I rowsort
SELECT 44 * - col0 AS col1 FROM tab0
----
-1056
-1540
-3916

onlyif mysql # use DIV operator for integer division
query I rowsort label-9018
SELECT + col1 DIV 13 AS col2 FROM tab0 AS cor0
----
6
7
7

skipif mysql # not compatible
query I rowsort label-9018
SELECT + col1 / 13 AS col2 FROM tab0 AS cor0
----
6
7
7

query I rowsort
SELECT ALL 41 AS col1 FROM tab1, tab0 cor0, tab1 cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT DISTINCT + 41 FROM tab2, tab1, tab1 AS cor0
----
41

query I rowsort
SELECT ALL - + ( - cor0.col0 ) + + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL col1 + 85 FROM tab2 AS cor0
----
102
116
144

query I rowsort
SELECT DISTINCT 74 * ( + col2 ) FROM tab1 cor0
----
3996
4218
7104

query I rowsort
SELECT ALL + col1 + + 32 + + col1 FROM tab1 AS cor0
----
52
58
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9025
SELECT - + tab0.col0 + CAST( NULL AS SIGNED ) FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9025
SELECT - + tab0.col0 + CAST ( NULL AS INTEGER ) FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-9026
SELECT DISTINCT - col1 DIV 26 + + col1 AS col1 FROM tab0
----
83
88
94

skipif mysql # not compatible
query I rowsort label-9026
SELECT DISTINCT - col1 / 26 + + col1 AS col1 FROM tab0
----
83
88
94

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab1, tab1 cor1
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

query I rowsort
SELECT ALL - - ( + 89 ) * col0 AS col0 FROM tab1 AS cor0
----
267
5696
7120

query I rowsort
SELECT ALL + + 10 + 26 * col0 FROM tab1 cor0
----
1674
2090
88

query I rowsort
SELECT DISTINCT ( + ( col0 ) ) * + 46 FROM tab2 AS cor0
----
322
3588
3634

query I rowsort
SELECT + col0 + col2 * col2 AS col1 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT - + col0 * col0 * col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9033
SELECT ALL CAST( 31 AS SIGNED ) AS col1 FROM tab1 cor0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL CAST ( 31 AS INTEGER ) AS col1 FROM tab1 cor0
----
31
31
31

query I rowsort
SELECT DISTINCT + - ( + 1 ) AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9035
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( + col0 ) + col0 * col2 - - col0 * - col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( + col0 ) + col0 * col2 - - col0 * - col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - col0 * - cor0.col0 + - col2 AS col0 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT - 75 * - col2 - col0 AS col0 FROM tab0 cor0
----
2451
40
6061

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col2 col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9039
SELECT + cor0.col1 DIV ( cor0.col1 * - cor0.col2 ) + + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9039
SELECT + cor0.col1 / ( cor0.col1 * - cor0.col2 ) + + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + + 47 AS col1 FROM tab0 AS cor0
----
47

query I rowsort
SELECT ALL - 92 FROM tab2, tab2 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT 38 FROM tab0, tab1 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ALL ( + 67 ) * - col2 * + ( col0 + col0 ) AS col0 FROM tab1
----
-1029120
-21708
-488832

query I rowsort
SELECT DISTINCT - 65 * - col0 * col2 AS col2 FROM tab2 AS cor0
----
12285
131820
195130

query I rowsort
SELECT ALL - - ( + ( col0 ) ) AS col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL col1 + + 44 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1366
-3517
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-9047
SELECT - 9 DIV + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9047
SELECT - 9 / + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( + tab0.col0 * col1 + - tab0.col2 * + col1 ) FROM tab0
----
-774
3298
637

query I rowsort
SELECT - cor0.col0 * col0 + - col1 * - col2 FROM tab2 AS cor0
----
-4550
-5595
788

query I rowsort
SELECT - cor0.col1 - 98 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 38806c59892b902480bf92ccc08c365e

query I rowsort
SELECT - - 4 * + col1 + col2 - - col1 AS col2 FROM tab0 AS cor0
----
463
486
537

query I rowsort
SELECT + ( + col2 ) * - cor0.col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + ( + col2 ) + 1 * + col2 - - col0 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT - 76 * col2 + ( - 6 + - col1 ) AS col2 FROM tab1 AS cor0
----
-4136
-4348
-7315

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9055
SELECT cor0.col1 * + CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT cor0.col1 * + CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 + - col0 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9057
SELECT ALL col1 * CAST( NULL AS DECIMAL ) + col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL col1 * CAST ( NULL AS REAL ) + col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + cor0.col2 * ( + col0 + col0 ) FROM tab0 AS cor0
----
14596
1584
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + cor0.col0 + + col1 col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT + + col2 + cor0.col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - cor1.col0 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT + + ( col1 ) * + col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - 96 * col2 AS col2 FROM tab0 AS cor0
----
-3168
-7872
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9064
SELECT DISTINCT - col2 DIV 17 AS col1 FROM tab1
----
-3
-5

skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT - col2 / 17 AS col1 FROM tab1
----
-3
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-9065
SELECT DISTINCT - col0 * col1 + + 80 DIV col2 FROM tab1 cor0
----
-1040
-639
-77

skipif mysql # not compatible
query I rowsort label-9065
SELECT DISTINCT - col0 * col1 + + 80 / col2 FROM tab1 cor0
----
-1040
-639
-77

query I rowsort
SELECT - cor0.col1 + - 21 FROM tab0 AS cor0
----
-107
-112
-118

query I rowsort
SELECT ALL col0 + + col0 * - cor0.col1 - col2 FROM tab1 AS cor0
----
-1056
-129
-633

query I rowsort
SELECT - ( - col0 * - col0 ) AS col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT - 94 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f

query I rowsort
SELECT - col0 * - ( - 79 ) FROM tab1 AS cor0
----
-237
-5056
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-9071
SELECT DISTINCT col0 DIV cor0.col1 + 87 AS col0 FROM tab1 cor0
----
87
93

skipif mysql # not compatible
query I rowsort label-9071
SELECT DISTINCT col0 / cor0.col1 + 87 AS col0 FROM tab1 cor0
----
87
93

query I rowsort
SELECT ALL + + col0 - - col1 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( tab2.col2 ) col2 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT + 4 * tab1.col0 AS col1 FROM tab1
----
12
256
320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9075
SELECT ALL CAST( NULL AS DECIMAL ) * 42 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL CAST ( NULL AS REAL ) * 42 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * ( + tab1.col1 ) * col1 AS col2 FROM tab1
----
16224
36504
5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - ( - 79 ) * + col2 col1 FROM tab2
----
-2080
-2160
-3040

query I rowsort
SELECT - 46 * col2 + + cor0.col2 * col1 + col0 FROM tab2 AS cor0
----
-1023
-398
416

query I rowsort
SELECT DISTINCT - col0 - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
1
33
82

query I rowsort
SELECT + 29 * col2 + col1 * col1 FROM tab0 AS cor0
----
10659
8353
9438

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1, tab0 AS cor1
----
3645 values hashing to 2e3240e8d3c0c7c6ff427f9572ba362d

query I rowsort
SELECT ALL - ( 18 ) + - col0 FROM tab1
----
-21
-82
-98

query I rowsort
SELECT 89 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT - tab2.col1 * 13 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 9ee612aae72ee403dc7807f4390c8529

query I rowsort
SELECT DISTINCT - 85 FROM tab1, tab2 cor0, tab1 AS cor1
----
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9088
SELECT DISTINCT + col1 DIV tab2.col0 + + 7 FROM tab2
----
11
7

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT + col1 / tab2.col0 + + 7 FROM tab2
----
11
7

query I rowsort
SELECT + 79 AS col0 FROM tab2
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col1 * col1 + - col2 + col2 AS col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT - 69 + cor0.col1 AS col0 FROM tab2 cor0
----
-10
-38
-52

query I rowsort
SELECT col0 * col1 * 52 AS col0 FROM tab1 AS cor0
----
33280
4056
54080

query I rowsort
SELECT ALL - - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT col1 + - 23 * col0 AS col1 FROM tab0 AS cor0
----
-1956
-466
-708

query I rowsort
SELECT DISTINCT + - col2 + + col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL col2 * + col0 + + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * + CAST ( - 27 AS REAL ) AS col1 FROM tab0 AS cor0
----
-2403
-648
-945

query I rowsort
SELECT + cor0.col1 * + col1 * 32 AS col1 FROM tab2 cor0
----
111392
30752
9248

query I rowsort
SELECT ALL - + col1 * col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col1 * 85 + - col0 FROM tab2 AS cor0
----
1366
2628
4937

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9102
SELECT - cor0.col1 * - ( col2 ) - CAST( ( + col1 ) + + CAST( NULL AS SIGNED ) AS DECIMAL ) * col0 * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT - cor0.col1 * - ( col2 ) - CAST ( ( + col1 ) + + CAST ( NULL AS INTEGER ) AS REAL ) * col0 * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + 56 ) + tab2.col2 FROM tab2
----
82
83
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 + 10 + - col1 col0 FROM tab2
----
-20
22
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-9105
SELECT 10 + col0 * + col1 DIV col1 AS col1 FROM tab0
----
34
45
99

skipif mysql # not compatible
query I rowsort label-9105
SELECT 10 + col0 * + col1 / col1 AS col1 FROM tab0
----
34
45
99

query I rowsort
SELECT DISTINCT - ( + tab2.col2 ) + col0 AS col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + - ( + 36 ) AS col0 FROM tab2 AS cor0
----
-36
-36
-36

query I rowsort
SELECT ALL - col1 * 72 + col2 AS col1 FROM tab0 AS cor0
----
-6159
-6470
-6983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 * - col1 + 82 + - col2 col1 FROM tab0 AS cor0
----
1941
2002
2215

query I rowsort
SELECT ALL col0 + col2 * col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT + - 55 * + col2 FROM tab1 AS cor0
----
-2970
-3135
-5280

query I rowsort
SELECT ALL - - 0 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9114
SELECT - col0 + col0 + - cor0.col2 DIV cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9114
SELECT - col0 + col0 + - cor0.col2 / cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - + 33 * - col1 FROM tab0 AS cor0
----
2838
3003
3201

query I rowsort
SELECT DISTINCT - col2 * - col2 + - col2 AS col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT col0 * col0 + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + 14 * col2 AS col2 FROM tab2 AS cor0
----
364
378
532

query I rowsort
SELECT DISTINCT + ( - 89 * col2 ) + 97 AS col1 FROM tab2
----
-2217
-2306
-3285

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9120
SELECT ALL + CAST( col1 AS SIGNED ) * + col1 FROM tab1
----
100
169
676

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL + CAST ( col1 AS INTEGER ) * + col1 FROM tab1
----
100
169
676

query I rowsort
SELECT - 11 * - tab0.col2 FROM tab0
----
11
363
902

query I rowsort
SELECT ALL - 81 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT 14 * - 57 FROM tab0
----
-798
-798
-798

query I rowsort
SELECT ALL col0 * tab0.col1 * 34 + col1 + col2 FROM tab0
----
115528
275539
70295

query I rowsort
SELECT ALL - + col2 * - col2 + - 41 * + cor0.col2 FROM tab2 cor0
----
-114
-378
-390

query I rowsort
SELECT col0 + 36 + 66 * col0 AS col1 FROM tab0
----
1644
2381
5999

query I rowsort
SELECT ALL - 46 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9

query I rowsort
SELECT ALL 14 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9129
SELECT ALL - col1 DIV 70 + col1 * cor0.col0 FROM tab2 cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL - col1 / 70 + col1 * cor0.col0 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-9130
SELECT 39 DIV 97 + + col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-9130
SELECT 39 / 97 + + col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - 65 - - col0 FROM tab1 AS cor0
----
-1
-62
15

query I rowsort
SELECT 68 * - 9 + col2 + ( + col1 + + col1 ) FROM tab0 AS cor0
----
-348
-407
-417

query I rowsort
SELECT col0 * - cor0.col0 + + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT + 55 + cor0.col0 * col2 FROM tab1 AS cor0
----
217
3703
7735

query I rowsort
SELECT DISTINCT + + col1 * col1 * - cor0.col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT - col0 * - col2 - - col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT + - ( - 52 ) AS col0 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT col1 + 59 FROM tab0
----
145
150
156

query I rowsort
SELECT DISTINCT - col1 + - ( - col2 ) * - col1 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT col0 + 64 AS col0 FROM tab2
----
142
143
71

query I rowsort
SELECT - tab0.col0 + ( col0 * col1 ) + - 77 FROM tab0
----
1963
3283
7933

onlyif mysql # use DIV operator for integer division
query I rowsort label-9142
SELECT - 24 * 89 DIV col0 FROM tab0 AS cor0
----
-24
-61
-89

skipif mysql # not compatible
query I rowsort label-9142
SELECT - 24 * 89 / col0 FROM tab0 AS cor0
----
-24
-61
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9143
SELECT DISTINCT - col0 + ( - tab1.col2 ) DIV - col0 - 83 * 45 FROM tab1
----
-3720
-3799
-3814

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT - col0 + ( - tab1.col2 ) / - col0 - 83 * 45 FROM tab1
----
-3720
-3799
-3814

query I rowsort
SELECT + col0 + 30 * col1 FROM tab1
----
364
470
783

query I rowsort
SELECT + col2 * + tab2.col2 + 98 * col1 AS col2 FROM tab2
----
3110
3767
6458

query I rowsort
SELECT ALL 61 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 + + 66 col2 FROM tab1 cor0
----
1314
1470
636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) * 87 + col2 + col1 col1 FROM tab0 AS cor0
----
185
2990
7307

query I rowsort
SELECT ALL + - 46 - - col0 AS col2 FROM tab2 AS cor0
----
-39
32
33

query I rowsort
SELECT ALL + + 76 AS col2 FROM tab1 AS cor0
----
76
76
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9151
SELECT ALL - col1 + col0 * - CAST( NULL AS SIGNED ) + ( col2 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL - col1 + col0 * - CAST ( NULL AS INTEGER ) + ( col2 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9152
SELECT ALL + col0 * col0 DIV + 54 FROM tab1 cor0
----
0
118
75

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL + col0 * col0 / + 54 FROM tab1 cor0
----
0
118
75

query I rowsort
SELECT DISTINCT + col0 * - col2 + 45 FROM tab1 AS cor0
----
-117
-3603
-7635

query I rowsort
SELECT DISTINCT - cor0.col1 + col2 * ( col1 ) * + cor0.col1 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
14963
35074
5120

query I rowsort
SELECT - 53 * col2 * + col0 + col1 * + col1 AS col0 FROM tab2
----
-104003
-158817
-9056

onlyif mysql # use DIV operator for integer division
query I rowsort label-9156
SELECT ALL - col1 + col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
-194
-88
-92

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL - col1 + col1 / - col2 AS col1 FROM tab0 AS cor0
----
-194
-88
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-9157
SELECT DISTINCT - 45 DIV + col2 - + ( - col0 * col0 ) FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT - 45 / + col2 - + ( - col0 * col0 ) FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - ( + 95 ) * + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dfbebc3f3a5c79a8908257607519817f

onlyif mysql # use DIV operator for integer division
query I rowsort label-9159
SELECT - col1 * 38 DIV col1 FROM tab1 cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-9159
SELECT - col1 * 38 / col1 FROM tab1 cor0
----
-38
-38
-38

query I rowsort
SELECT col0 * - 77 AS col0 FROM tab1 AS cor0
----
-231
-4928
-6160

query I rowsort
SELECT DISTINCT ( col2 ) * + col1 + 15 * cor0.col0 * 95 FROM tab2 AS cor0
----
10812
112684
113221

query I rowsort
SELECT + 14 * col0 FROM tab1 AS cor0
----
1120
42
896

query I rowsort
SELECT ALL 88 * + col2 FROM tab2
----
2288
2376
3344

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL - + cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT ALL col2 * - 36 + + col0 FROM tab1 AS cor0
----
-1941
-1988
-3376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + 78 * + col2 col2 FROM tab0 AS cor0
----
221364
582036
7566

query I rowsort
SELECT ALL 24 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT ALL + 26 + tab1.col2 FROM tab1
----
122
80
83

query I rowsort
SELECT ALL + 28 + cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to a13ac77fbd00de8891970bd9d521b962

query I rowsort
SELECT 72 * 92 + - col0 AS col0 FROM tab1 AS cor0
----
6544
6560
6621

query I rowsort
SELECT ALL ( + col2 ) * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9173
SELECT DISTINCT - cor0.col1 * col2 + cor0.col0 DIV - col0 FROM tab0 cor0
----
-2839
-7463
-98

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT - cor0.col1 * col2 + cor0.col0 / - col0 FROM tab0 cor0
----
-2839
-7463
-98

query I rowsort
SELECT DISTINCT + + col2 + + 16 * + col2 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT ALL - - cor0.col0 * - 50 FROM tab1 AS cor0
----
-150
-3200
-4000

query I rowsort
SELECT + 28 - 31 FROM tab0 AS cor0
----
-3
-3
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9177
SELECT DISTINCT + - CAST( + col1 AS SIGNED ) * col1 * + ( 93 ) + - col1 + - 98 FROM tab2 AS cor0
----
-26992
-323890
-89502

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) * col1 * + ( 93 ) + - col1 + - 98 FROM tab2 AS cor0
----
-26992
-323890
-89502

onlyif mysql # use DIV operator for integer division
query I rowsort label-9178
SELECT ALL - col0 DIV + ( col0 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL - col0 / + ( col0 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9179
SELECT DISTINCT + col0 DIV - col0 + - col0 * - col1 AS col1 FROM tab0 cor0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT + col0 / - col0 + - col0 * - col1 AS col1 FROM tab0 cor0
----
2063
3394
8098

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9180
SELECT CAST( col0 AS SIGNED ) + col1 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-9180
SELECT CAST ( col0 AS INTEGER ) + col1 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) col2 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT + col1 * - col1 * 5 FROM tab0
----
-36980
-41405
-47045

query I rowsort
SELECT + - ( col0 ) + + col1 + 87 * col0 FROM tab1 AS cor0
----
284
5514
6893

query I rowsort
SELECT ( cor0.col1 ) + - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + - col1 * - col1 * cor0.col2 AS col1 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT ALL - col1 - col2 * col2 * - ( - col0 ) AS col0 FROM tab2 AS cor0
----
-114093
-5134
-52787

query I rowsort
SELECT DISTINCT + - col0 * 35 + + col2 + - 38 AS col0 FROM tab0 AS cor0
----
-1262
-3071
-845

query I rowsort
SELECT - 94 * col0 + col0 FROM tab1 AS cor0
----
-279
-5952
-7440

query I rowsort
SELECT ALL - + ( + col1 ) - cor0.col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT + - col2 * + 24 AS col1 FROM tab1 AS cor0
----
-1296
-1368
-2304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9191
SELECT + CAST( col0 AS SIGNED ) + + col0 AS col0 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-9191
SELECT + CAST ( col0 AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + col0 * 68 + col2 FROM tab2 AS cor0
----
503
5330
5410

query I rowsort
SELECT - - col1 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT ALL + col2 * + col1 + + col1 * col1 AS col2 FROM tab2 AS cor0
----
1798
5015
935

query I rowsort
SELECT DISTINCT + cor0.col0 * col1 AS col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - cor0.col0 + + 53 AS col1 FROM tab1 AS cor0
----
-11
-27
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9197
SELECT + col0 * CAST( 73 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
511
5694
5767

skipif mysql # not compatible
query I rowsort label-9197
SELECT + col0 * CAST ( 73 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
511
5694
5767

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9198
SELECT col0 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9198
SELECT col0 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 92 + + cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 147e757ceb9575e13e0d8753ee260213

query I rowsort
SELECT DISTINCT ( + col1 + col1 ) FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT + 11 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
11

query I rowsort
SELECT ALL ( - 82 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT - + col2 * 7 * + col1 FROM tab1 AS cor0
----
-3990
-8736
-9828

query I rowsort
SELECT + col0 + ( + cor0.col1 ) + ( 98 ) FROM tab1 AS cor0
----
127
172
191

query I rowsort
SELECT DISTINCT ( + 95 ) + + col1 FROM tab0 AS cor0
----
181
186
192

query I rowsort
SELECT - + 3 * col1 + + col0 FROM tab1 AS cor0
----
-75
34
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9207
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col1 * col0 * col1 + - col0 AS col0 FROM tab2 AS cor0
----
22752
271440
6720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9209
SELECT + CAST( - cor0.col2 AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

skipif mysql # not compatible
query I rowsort label-9209
SELECT + CAST ( - cor0.col2 AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT ALL col2 * + tab0.col2 + col2 + + col2 * 86 FROM tab0
----
13858
3960
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9211
SELECT ALL col0 * CAST( + col1 AS SIGNED ) + - col2 + ( col1 ) FROM tab1
----
50
593
957

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL col0 * CAST ( + col1 AS INTEGER ) + - col2 + ( col1 ) FROM tab1
----
50
593
957

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9212
SELECT + col1 + - CAST( NULL AS SIGNED ) - + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT + col1 + - CAST ( NULL AS INTEGER ) - + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + - tab0.col1 AS col0 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL ( - 52 ) + tab0.col1 AS col1 FROM tab0
----
34
39
45

query I rowsort
SELECT 78 * col2 AS col2 FROM tab2
----
2028
2106
2964

query I rowsort
SELECT + cor1.col0 + 82 * - 70 + + cor0.col0 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to bc981f29babc8081360266e549bb0738

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 32 * col1 col1 FROM tab0 AS cor0
----
-2752
-2912
-3104

query I rowsort
SELECT ALL + ( col0 ) + + cor0.col2 * col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL - cor1.col1 AS col2 FROM tab2, tab0, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

onlyif mysql # use DIV operator for integer division
query I rowsort label-9220
SELECT col2 * + col2 * ( + col2 ) + - col0 DIV ( + col0 + col0 * col2 ) FROM tab2
----
17576
19683
54872

skipif mysql # not compatible
query I rowsort label-9220
SELECT col2 * + col2 * ( + col2 ) + - col0 / ( + col0 + col0 * col2 ) FROM tab2
----
17576
19683
54872

onlyif mysql # use DIV operator for integer division
query I rowsort label-9221
SELECT - - 54 DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9221
SELECT - - 54 / + cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 + ( + col0 ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT + col2 * + 12 + col1 AS col0 FROM tab0 AS cor0
----
1075
109
482

query I rowsort
SELECT DISTINCT + - col1 + + 21 AS col0 FROM tab0 AS cor0
----
-65
-70
-76

query I rowsort
SELECT ALL - + col2 * - col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL 45 + tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 57be4eadf9cd535e0e5804b571bca7ac

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - ( - 47 ) col1 FROM tab0 AS cor0
----
133
138
144

query I rowsort
SELECT - col2 + - col0 - ( col0 * ( + 85 ) ) FROM tab1 AS cor0
----
-312
-5561
-6976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9229
SELECT - + col0 * - CAST( NULL AS SIGNED ) + + 52 * col0 - CAST( - col0 * + col2 AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9229
SELECT - + col0 * - CAST ( NULL AS INTEGER ) + + 52 * col0 - CAST ( - col0 * + col2 AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9230
SELECT col1 DIV CAST( col1 + col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9230
SELECT col1 / CAST ( col1 + col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + 49 FROM tab2 AS cor0
----
1519
2891
833

query I rowsort
SELECT ALL - - col1 + + 80 * - col1 AS col0 FROM tab0 AS cor0
----
-6794
-7189
-7663

query I rowsort
SELECT + col0 * 20 AS col2 FROM tab1 AS cor0
----
1280
1600
60

query I rowsort
SELECT DISTINCT - col0 * col1 * 61 AS col0 FROM tab1 AS cor0
----
-39040
-4758
-63440

query I rowsort
SELECT col0 * + col1 - + col2 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9236
SELECT + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9236
SELECT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT cor0.col0 * + col1 + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + col2 * + ( - col1 * col1 ) AS col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
49

query I rowsort
SELECT ALL col0 - + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - cor0.col1 * + 41 FROM tab0 cor0
----
-3526
-3731
-3977

query I rowsort
SELECT ALL - col1 * - col0 * - col2 AS col2 FROM tab1
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 39 col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9245
SELECT ALL CAST( col1 AS SIGNED ) * + col1 AS col0 FROM tab1
----
100
169
676

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL CAST ( col1 AS INTEGER ) * + col1 AS col0 FROM tab1
----
100
169
676

query I rowsort
SELECT 77 + col0 + col1 FROM tab2
----
115
173
214

query I rowsort
SELECT - ( 35 ) FROM tab1 AS cor0
----
-35
-35
-35

query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9249
SELECT ALL + + CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL + + CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 1 AS col1 FROM tab1 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + cor0.col1 col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL + - 51 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-20
-34
8

query I rowsort
SELECT DISTINCT - ( + col0 ) * 14 + + col2 AS col2 FROM tab0 AS cor0
----
-1164
-303
-489

query I rowsort
SELECT DISTINCT - 20 * col0 FROM tab1 AS cor0
----
-1280
-1600
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-9255
SELECT col2 DIV cor0.col1 + - 94 + 63 FROM tab1 AS cor0
----
-24
-26
-29

skipif mysql # not compatible
query I rowsort label-9255
SELECT col2 / cor0.col1 + - 94 + 63 FROM tab1 AS cor0
----
-24
-26
-29

query I rowsort
SELECT ALL - col2 * + col2 + + cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9257
SELECT DISTINCT - cor0.col2 DIV + col2 AS col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT - cor0.col2 / + col2 AS col2 FROM tab1 cor0
----
-1

query I rowsort
SELECT + 42 * - col2 + col0 AS col2 FROM tab2
----
-1014
-1127
-1517

query I rowsort
SELECT ALL tab0.col1 + - col1 + + col2 AS col0 FROM tab0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9260
SELECT col2 * col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9260
SELECT col2 * col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9261
SELECT col0 * + col2 + CAST( NULL AS SIGNED ) + + 70 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9261
SELECT col0 * + col2 + CAST ( NULL AS INTEGER ) + + 70 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9262
SELECT ( - col1 ) + ( cor0.col2 ) DIV - col0 AS col0 FROM tab0 AS cor0
----
-87
-91
-97

skipif mysql # not compatible
query I rowsort label-9262
SELECT ( - col1 ) + ( cor0.col2 ) / - col0 AS col0 FROM tab0 AS cor0
----
-87
-91
-97

query I rowsort
SELECT + col2 + ( 91 ) * - col1 * col0 FROM tab0 AS cor0
----
-187791
-308944
-736927

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + ( col0 ) * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - col1 * - col0 - + col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - - ( 48 ) - col2 FROM tab1 AS cor0
----
-48
-6
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9268
SELECT + CAST( NULL AS SIGNED ) + - col1 * col1 * + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT + CAST ( NULL AS INTEGER ) + - col1 * col1 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col1 ) - + col2 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9270
SELECT - col0 DIV 48 - col0 * ( + 51 * col1 + - col1 ) FROM tab0 AS cor0
----
-103200
-169750
-404951

skipif mysql # not compatible
query I rowsort label-9270
SELECT - col0 / 48 - col0 * ( + 51 * col1 + - col1 ) FROM tab0 AS cor0
----
-103200
-169750
-404951

query I rowsort
SELECT tab2.col1 * col0 + col2 AS col0 FROM tab2
----
1381
244
4628

query I rowsort
SELECT + + 83 + 56 AS col0 FROM tab2 AS cor0
----
139
139
139

query I rowsort
SELECT ALL tab1.col0 + col0 * - col0 AS col1 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT - 77 FROM tab0, tab2 AS cor0
----
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-9275
SELECT DISTINCT - col1 DIV + 84 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT - col1 / + 84 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9276
SELECT ALL + col2 * 61 DIV col1 - col2 FROM tab2 AS cor0
----
0
26
98

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL + col2 * 61 / col1 - col2 FROM tab2 AS cor0
----
0
26
98

query I rowsort
SELECT DISTINCT - + 96 + col1 AS col1 FROM tab1 AS cor0
----
-70
-83
-86

query I rowsort
SELECT + 65 - - col1 FROM tab1 cor0
----
75
78
91

query I rowsort
SELECT ALL + 52 * col0 + - col0 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT + + 11 * - cor0.col0 FROM tab2 AS cor0
----
-77
-858
-869

onlyif mysql # use DIV operator for integer division
query I rowsort label-9281
SELECT DISTINCT + col1 * col1 - col1 DIV ( col0 ) AS col2 FROM tab0 cor0
----
7393
8280
9407

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT + col1 * col1 - col1 / ( col0 ) AS col2 FROM tab0 cor0
----
7393
8280
9407

query I rowsort
SELECT DISTINCT - 12 + - cor0.col2 FROM tab2, tab1 AS cor0
----
-108
-66
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-9283
SELECT - 88 DIV ( + col2 ) AS col2 FROM tab0
----
-1
-2
-88

skipif mysql # not compatible
query I rowsort label-9283
SELECT - 88 / ( + col2 ) AS col2 FROM tab0
----
-1
-2
-88

query I rowsort
SELECT - col1 * col2 + + col2 * col0 FROM tab1
----
-1242
3078
6432

query I rowsort
SELECT DISTINCT + col0 + + col2 + col2 FROM tab1
----
111
178
272

onlyif mysql # use DIV operator for integer division
query I rowsort label-9286
SELECT ALL - col1 - - col1 DIV + col0 FROM tab1
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL - col1 - - col1 / + col0 FROM tab1
----
-10
-13
-18

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND ( - col2 )
----

query I rowsort
SELECT DISTINCT + col1 + + col0 + tab1.col0 AS col2 FROM tab1
----
138
173
32

query I rowsort
SELECT DISTINCT tab2.col2 * col1 * col2 FROM tab2
----
22599
24548
39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 AS cor0 WHERE NOT ( + col0 * col2 + - col2 ) > ( col2 )
----

query I rowsort
SELECT ALL col0 * col1 * col1 AS col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE col1 * col1 + + col1 < ( NULL )
----

query I rowsort
SELECT - tab0.col2 * + col2 + - col2 * tab0.col1 AS col1 FROM tab0
----
-14186
-3927
-98

query I rowsort
SELECT ALL - col0 * col1 + tab1.col0 * col2 + + col2 * col1 AS col1 FROM tab1
----
1488
3578
7888

query I rowsort
SELECT ALL col2 * + col2 * - col0 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT - tab0.col1 + tab0.col0 AS col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + col1 * + col2 + col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT DISTINCT + col2 * + col0 + - col0 FROM tab0 WHERE NOT col1 = + col2 * col2
----
0
7209
768

query I rowsort
SELECT tab2.col2 * - col2 AS col1 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT col2 + col2 + col2 * + col1 AS col1 FROM tab2
----
1586
722
891

query I rowsort
SELECT - tab0.col0 * col0 AS col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + col0 * - col2 + col1 AS col2 FROM tab2
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-9303
SELECT col2 + - col0 DIV - col2 AS col2 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-9303
SELECT col2 + - col0 / - col2 AS col2 FROM tab0
----
33
36
83

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 >= ( NULL )
----

query I rowsort
SELECT DISTINCT - tab2.col1 + + col2 - col2 AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT cor0.col1 + - col0 * + col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + col1 * col0 * + tab1.col1 + col2 - col0 FROM tab1
----
13536
2079
6393

query I rowsort
SELECT + col0 * - col0 + col2 FROM tab0 AS cor0
----
-1224
-543
-7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-9309
SELECT DISTINCT + + col0 + - col0 DIV col2 FROM tab0 AS cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT + + col0 + - col0 / col2 FROM tab0 AS cor0
----
0
24
88

query I rowsort
SELECT cor0.col1 * - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-9312
SELECT + col2 * col1 DIV col1 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-9312
SELECT + col2 * col1 / col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT col0 * + col0 FROM tab2 AS cor0 WHERE ( + col1 ) <= NULL
----

query I rowsort
SELECT + col1 * tab0.col2 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - cor0.col0 - col0 * + col2 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL + col0 * 16 AS col1 FROM tab2 AS cor0
----
112
1248
1264

query I rowsort
SELECT - + col0 * col0 + + 67 AS col1 FROM tab0 AS cor0
----
-1158
-509
-7854

onlyif mysql # use DIV operator for integer division
query I rowsort label-9318
SELECT DISTINCT - + col0 + - ( - col0 ) DIV - col0 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT - + col0 + - ( - col0 ) / - col0 FROM tab0 AS cor0
----
-25
-36
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9319
SELECT + col1 * - CAST( + col2 AS SIGNED ) - + col2 * + col1 FROM tab2 AS cor0
----
-1292
-1674
-3068

skipif mysql # not compatible
query I rowsort label-9319
SELECT + col1 * - CAST ( + col2 AS INTEGER ) - + col2 * + col1 FROM tab2 AS cor0
----
-1292
-1674
-3068

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * - ( col1 ) - - col0 col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT + - cor0.col2 + col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - + col0 * + col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL col0 * + col0 + + col0 * - col1 FROM tab0 AS cor0
----
-1488
-178
-2170

query I rowsort
SELECT ALL - col0 + - 88 FROM tab2 AS cor0
----
-166
-167
-95

query I rowsort
SELECT DISTINCT + col1 - + 1 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT DISTINCT + + cor0.col2 * + 76 FROM tab1 AS cor0
----
4104
4332
7296

query I rowsort
SELECT ALL + col2 + ( cor0.col0 ) FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-9328
SELECT col1 DIV col0 + cor0.col0 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-9328
SELECT col1 / col0 + cor0.col0 FROM tab0 AS cor0
----
27
37
90

query I rowsort
SELECT ALL - col0 + cor0.col2 FROM tab0 cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9330
SELECT DISTINCT - + col0 DIV + 94 - + 26 * cor0.col1 FROM tab2 AS cor0
----
-1534
-442
-806

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT - + col0 / + 94 - + 26 * cor0.col1 FROM tab2 AS cor0
----
-1534
-442
-806

query I rowsort
SELECT DISTINCT - 92 * - 42 FROM tab0 AS cor0
----
3864

query I rowsort
SELECT ALL - 93 * 2 FROM tab0 AS cor0
----
-186
-186
-186

onlyif mysql # use DIV operator for integer division
query I rowsort label-9333
SELECT DISTINCT - CAST( + cor0.col0 AS SIGNED ) * col2 + col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
-162
-3649
-7680

skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT - CAST ( + cor0.col0 AS INTEGER ) * col2 + col0 / - col2 AS col0 FROM tab1 AS cor0
----
-162
-3649
-7680

query I rowsort
SELECT - col2 + - 64 AS col0 FROM tab0 AS cor0
----
-146
-65
-97

query I rowsort
SELECT + col2 * - col1 + col2 FROM tab1 cor0
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-9336
SELECT ALL col2 * col0 DIV + col1 + + col0 AS col0 FROM tab1
----
428
670
9

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL col2 * col0 / + col1 + + col0 AS col0 FROM tab1
----
428
670
9

query I rowsort
SELECT DISTINCT + 79 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
79

query I rowsort
SELECT ALL col1 * + col2 + cor0.col0 * col2 - cor0.col0 FROM tab2 AS cor0
----
1019
3484
3569

query I rowsort
SELECT 51 * col1 AS col1 FROM tab1 AS cor0
----
1326
510
663

query I rowsort
SELECT DISTINCT + 55 AS col2 FROM tab0 AS cor0
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - - 5 + col2 FROM tab0 AS cor0
----
38
6
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-9343
SELECT DISTINCT + + 43 * col0 + col2 + ( + col1 ) DIV - ( + 69 ) FROM tab2 AS cor0
----
328
3380
3435

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT + + 43 * col0 + col2 + ( + col1 ) / - ( + 69 ) FROM tab2 AS cor0
----
328
3380
3435

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 IN ( col0 * col0 + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND col1 + col1
----

query I rowsort
SELECT col1 FROM tab1 WHERE col2 IN ( - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9347
SELECT col1 DIV col0 + col0 + + col1 AS col1 FROM tab1
----
37
74
93

skipif mysql # not compatible
query I rowsort label-9347
SELECT col1 / col0 + col0 + + col1 AS col1 FROM tab1
----
37
74
93

query I rowsort
SELECT col0 * + col2 FROM tab2 WHERE NOT + col0 + - col2 * + tab2.col0 <> NULL
----

query I rowsort
SELECT ALL + - col0 * - col2 + - col2 * 22 FROM tab2 AS cor0
----
-405
1456
2166

query I rowsort
SELECT DISTINCT ( 49 ) FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-9351
SELECT ALL - 29 * col2 + col2 DIV 66 AS col1 FROM tab2 AS cor0
----
-1102
-754
-783

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL - 29 * col2 + col2 / 66 AS col1 FROM tab2 AS cor0
----
-1102
-754
-783

query I rowsort
SELECT DISTINCT + col1 + cor0.col0 * col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT 13 + col0 * - col2 FROM tab1 AS cor0
----
-149
-3635
-7667

query I rowsort
SELECT DISTINCT - 42 * col0 * - col2 AS col2 FROM tab2 AS cor0
----
126084
7938
85176

onlyif mysql # use DIV operator for integer division
query I rowsort label-9355
SELECT ALL - col1 + - col0 DIV col0 FROM tab2 AS cor0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL - col1 + - col0 / col0 FROM tab2 AS cor0
----
-18
-32
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-9356
SELECT ALL - cor0.col0 DIV cor0.col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL - cor0.col0 / cor0.col2 FROM tab0 AS cor0
----
-1
-35
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9357
SELECT - CAST( col0 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-9357
SELECT - CAST ( col0 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT 4 * 75 FROM tab1, tab2 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to 8d616ceb1e839f4325605ed91050cdfc

query I rowsort
SELECT DISTINCT + tab2.col1 + - col2 + + ( col0 ) * col2 AS col2 FROM tab2
----
193
2061
2981

query I rowsort
SELECT DISTINCT - cor2.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
-7
-78
-79

query I rowsort
SELECT ALL ( - 24 ) * col2 * ( - col1 * + col1 ) AS col2 FROM tab1 cor0
----
136800
389376
876096

query I rowsort
SELECT DISTINCT + 2 * ( + cor0.col1 ) * col2 + col1 FROM tab2 AS cor0
----
1309
1705
3127

query I rowsort
SELECT ALL - 60 * + col0 AS col1 FROM tab1 cor0
----
-180
-3840
-4800

query I rowsort
SELECT DISTINCT - 60 * col1 FROM tab1 AS cor0
----
-1560
-600
-780

query I rowsort
SELECT ( - col2 + col1 ) FROM tab2
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-9367
SELECT DISTINCT - col0 DIV + col1 + ( 17 * + col2 + 83 ) col0 FROM tab2
----
524
542
725

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9367
SELECT DISTINCT - col0 / + col1 + ( 17 * + col2 + 83 ) col0 FROM tab2
----
524
542
725

query I rowsort
SELECT DISTINCT - col2 + col0 * col2 AS col2 FROM tab1
----
108
3591
7584

query I rowsort
SELECT + col2 + + col0 * col0 FROM tab1
----
4153
63
6496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9370
SELECT + 24 * - col2 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT + 24 * - col2 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - + 45 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371

query I rowsort
SELECT col0 + + col1 * col2 + 42 AS col0 FROM tab2
----
1654
767
886

query I rowsort
SELECT DISTINCT tab2.col2 + col2 * ( - tab2.col0 * col1 ) + col1 AS col2 FROM tab2
----
-119567
-50979
-5801

query I rowsort
SELECT + 85 + + col0 AS col1 FROM tab1
----
149
165
88

query I rowsort
SELECT ALL - 84 + - col0 FROM tab0
----
-108
-119
-173

query I rowsort
SELECT DISTINCT - col0 + col0 * + cor0.col0 FROM tab0 cor0
----
1190
552
7832

query I rowsort
SELECT DISTINCT 48 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
48

query I rowsort
SELECT DISTINCT - col1 + + col0 + - 31 FROM tab0
----
-33
-93

query I rowsort
SELECT - 44 * - tab2.col0 AS col1 FROM tab2
----
308
3432
3476

query I rowsort
SELECT DISTINCT + col0 * - col1 + - col2 AS col0 FROM tab0
----
-2097
-3396
-8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-9381
SELECT ALL col1 - col2 DIV - 69 FROM tab1 AS cor0
----
10
14
26

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL col1 - col2 / - 69 FROM tab1 AS cor0
----
10
14
26

query I rowsort
SELECT DISTINCT + col1 * col0 + + col0 + col2 FROM tab1 cor0
----
1216
135
761

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9383
SELECT DISTINCT col1 + CAST( + col2 AS SIGNED ) * cor0.col1 * - col2 FROM tab2 AS cor0
----
-22568
-24531
-39825

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT col1 + CAST ( + col2 AS INTEGER ) * cor0.col1 * - col2 FROM tab2 AS cor0
----
-22568
-24531
-39825

query I rowsort
SELECT + col2 * + ( 57 ) AS col0 FROM tab1 AS cor0
----
3078
3249
5472

query I rowsort
SELECT col1 + - ( 80 ) FROM tab1
----
-54
-67
-70

query I rowsort
SELECT col0 * - col2 - + col2 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + col2 + - 70 col2 FROM tab1 AS cor0
----
1178
1334
500

query I rowsort
SELECT - - col0 * + 80 * - 38 + col2 * col0 AS col1 FROM tab2 cor0
----
-21091
-235092
-237158

query I rowsort
SELECT - col1 + col0 * + cor0.col1 * - cor0.col1 FROM tab1 AS cor0
----
-13533
-2054
-6410

query I rowsort
SELECT - col1 * 81 FROM tab0 AS cor0
----
-6966
-7371
-7857

query I rowsort
SELECT DISTINCT - + col1 + col0 * col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL + col2 * - col1 * col1 FROM tab1 cor0
----
-16224
-36504
-5700

query I rowsort
SELECT - col2 + + col1 * - col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT - + col2 - + 74 * cor0.col1 FROM tab0 AS cor0
----
-6397
-6816
-7179

query I rowsort
SELECT + col0 * ( col1 ) * + col1 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT + col1 * 25 FROM tab1 AS cor0
----
250
325
650

query I rowsort
SELECT - - ( cor0.col2 ) + cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT - ( - 67 ) * - cor0.col2 + - 39 AS col1 FROM tab0 cor0
----
-106
-2250
-5533

query I rowsort
SELECT + - 52 + + cor0.col0 + + col0 FROM tab1 AS cor0
----
-46
108
76

query I rowsort
SELECT 8 * + 94 FROM tab0 AS cor0
----
752
752
752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 92 ) + col0 * + 9 + + col1 col1 FROM tab0 AS cor0
----
394
504
984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * 3 + col0 col2 FROM tab1 AS cor0
----
-75
34
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9403
SELECT DISTINCT tab2.col1 + + CAST( NULL AS SIGNED ) * + col1 / - col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT tab2.col1 + + CAST ( NULL AS INTEGER ) * + col1 / - col1 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - 38 + col1 * col0 FROM tab2 AS cor0
----
1305
179
4564

query I rowsort
SELECT - col0 * ( + ( tab0.col2 ) * - col0 ) + - col0 FROM tab0
----
1190
18984
649433

query I rowsort
SELECT + + cor0.col1 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT col1 * 35 FROM tab0 AS cor0
----
3010
3185
3395

query I rowsort
SELECT ALL + col0 + - cor0.col2 * col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL + 54 + col2 AS col1 FROM tab2 AS cor0
----
80
81
92

query I rowsort
SELECT 19 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1691
456
665

query I rowsort
SELECT DISTINCT - col0 + col2 * 61 FROM tab2 AS cor0
----
1508
1640
2239

query I rowsort
SELECT ALL - 74 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT ALL + 91 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT - - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL - - col2 * col1 * - cor0.col0 + col0 + col0 FROM tab2 AS cor0
----
-119496
-50876
-5845

query I rowsort
SELECT ALL - - tab2.col1 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - + cor0.col2 + + col2 - - cor0.col1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT 58 * + col0 AS col1 FROM tab0 AS cor0
----
1392
2030
5162

query I rowsort
SELECT DISTINCT - 44 AS col0 FROM tab1 AS cor0
----
-44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9420
SELECT DISTINCT + col1 + cor0.col0 * + CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9420
SELECT DISTINCT + col1 + cor0.col0 * + CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 17 + + cor0.col1 * ( col2 ) FROM tab2 AS cor0
----
1551
663
854

query I rowsort
SELECT ALL - col2 + - cor0.col0 - col2 AS col1 FROM tab1 cor0
----
-111
-178
-272

query I rowsort
SELECT ALL - 8 - - col0 AS col1 FROM tab2
----
-1
70
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9424
SELECT DISTINCT CAST( - 91 AS SIGNED ) - + col2 AS col0 FROM tab2
----
-117
-118
-129

skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT CAST ( - 91 AS INTEGER ) - + col2 AS col0 FROM tab2
----
-117
-118
-129

query I rowsort
SELECT + ( + 92 ) + + col0 + + col2 FROM tab1
----
149
213
268

query I rowsort
SELECT cor0.col0 AS col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT - ( 4 ) AS col0 FROM tab1, tab2, tab2 AS cor0
----
-4

query I rowsort
SELECT ALL - col0 * - col2 * - 74 + 10 * + col2 FROM tab2
----
-13716
-149812
-221768

query I rowsort
SELECT 78 * - col0 AS col2 FROM tab2
----
-546
-6084
-6162

query I rowsort
SELECT ALL 73 * col2 + 99 AS col0 FROM tab2
----
1997
2070
2873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 * - 82 col0 FROM tab1 AS cor0
----
300
5305
6656

query I rowsort
SELECT - ( col0 ) - - col2 * col0 * col2 AS col1 FROM tab2 cor0
----
113997
5096
52650

query I rowsort
SELECT + - col0 * + col1 + 91 FROM tab2 AS cor0
----
-1252
-126
-4511

query I rowsort
SELECT col1 * + 70 AS col2 FROM tab1 AS cor0
----
1820
700
910

query I rowsort
SELECT - + col0 * + 67 FROM tab2 AS cor0
----
-469
-5226
-5293

query I rowsort
SELECT ALL cor0.col1 * cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

query I rowsort
SELECT - col0 + 95 * - col1 * tab1.col2 FROM tab1
----
-118640
-133383
-54214

onlyif mysql # use DIV operator for integer division
query I rowsort label-9438
SELECT - 2 DIV - 4 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9438
SELECT - 2 / - 4 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 25 + ( col0 ) FROM tab1 AS cor0
----
105
28
89

query I rowsort
SELECT - 79 * - ( col2 ) FROM tab1 AS cor0
----
4266
4503
7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9441
SELECT CAST( ( + col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9441
SELECT CAST ( ( + col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9442
SELECT ALL - cor0.col1 DIV 46 FROM tab0 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL - cor0.col1 / 46 FROM tab0 AS cor0
----
-1
-1
-2

query I rowsort
SELECT DISTINCT col1 + + 20 + col0 AS col2 FROM tab1 AS cor0
----
113
49
94

query I rowsort
SELECT ALL - cor0.col2 + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-52
-54
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + - col2 col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - + col0 * + col2 + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT - col0 + - cor0.col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL - - ( col0 ) * col2 * col2 + 72 AS col0 FROM tab2 AS cor0
----
114148
5175
52800

query I rowsort
SELECT + + 39 + - col0 AS col1 FROM tab0 AS cor0
----
-50
15
4

query I rowsort
SELECT ALL + ( - 4 ) AS col2 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT + col2 * + col0 + + cor0.col1 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9452
SELECT + CAST( col2 AS SIGNED ) + + col1 AS col1 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-9452
SELECT + CAST ( col2 AS INTEGER ) + + col1 AS col1 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9453
SELECT ALL + CAST( + 36 AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
108
2304
2880

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL + CAST ( + 36 AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
108
2304
2880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 * col1 col0 FROM tab0 AS cor0
----
8256
8736
9312

query I rowsort
SELECT cor0.col2 * + ( 5 ) FROM tab2, tab1 AS cor0
----
9 values hashing to eb014d3b44bcefac101824b69ab75e3d

query I rowsort
SELECT DISTINCT - col0 * ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-9457
SELECT DISTINCT - + col0 DIV ( + col0 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT - + col0 / ( + col0 ) FROM tab0 cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9458
SELECT ALL col1 * + ( - col2 ) DIV + col2 + - 61 AS col2 FROM tab1 AS cor0
----
-71
-74
-87

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL col1 * + ( - col2 ) / + col2 + - 61 AS col2 FROM tab1 AS cor0
----
-71
-74
-87

query I rowsort
SELECT DISTINCT + col0 * - col0 + - cor0.col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL - + cor0.col2 + - 76 FROM tab1 AS cor0
----
-130
-133
-172

query I rowsort
SELECT - col1 + + 82 FROM tab0 AS cor0
----
-15
-4
-9

query I rowsort
SELECT DISTINCT - col1 * - col1 * - ( + col2 ) FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT ALL - cor0.col1 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT - + 44 * 20 FROM tab0 AS cor0
----
-880
-880
-880

onlyif mysql # use DIV operator for integer division
query I rowsort label-9465
SELECT ALL - 17 DIV + 75 + col2 * + 58 FROM tab2 AS cor0
----
1508
1566
2204

skipif mysql # not compatible
query I rowsort label-9465
SELECT ALL - 17 / + 75 + col2 * + 58 FROM tab2 AS cor0
----
1508
1566
2204

onlyif mysql # use DIV operator for integer division
query I rowsort label-9466
SELECT - + ( + col1 ) * + ( cor0.col2 ) + cor0.col2 DIV 18 AS col0 FROM tab1 cor0
----
-1243
-1401
-567

skipif mysql # not compatible
query I rowsort label-9466
SELECT - + ( + col1 ) * + ( cor0.col2 ) + cor0.col2 / 18 AS col0 FROM tab1 cor0
----
-1243
-1401
-567

query I rowsort
SELECT DISTINCT - 84 + col1 * col1 AS col2 FROM tab1 AS cor0
----
16
592
85

query I rowsort
SELECT + cor0.col2 + cor0.col1 + - 39 * + col2 AS col1 FROM tab0 AS cor0
----
-1168
-3025
59

query I rowsort
SELECT + 48 * col0 AS col1 FROM tab0
----
1152
1680
4272

query I rowsort
SELECT col2 * col1 * + col1 - + col0 FROM tab2 AS cor0
----
10903
25940
90428

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - col2 * col2 + col1 + + col0 FROM tab0 AS cor0
----
-6544
-979
131

query I rowsort
SELECT + 97 * col2 FROM tab1 cor0
----
5238
5529
9312

query I rowsort
SELECT - + col0 * - 81 + col2 FROM tab2 AS cor0
----
594
6344
6437

query I rowsort
SELECT - col2 * - ( - 55 ) + - col1 + 97 FROM tab1 AS cor0
----
-2899
-3048
-5196

query I rowsort
SELECT + col1 * 89 * - 89 AS col1 FROM tab2 AS cor0
----
-134657
-245551
-467339

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( col0 ) + - col2 col1 FROM tab2 cor0
----
-47
26
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT + col0 * 9 + col0 FROM tab0 AS cor0
----
240
350
890

query I rowsort
SELECT ALL + + col1 * + 40 - + col1 AS col1 FROM tab0 AS cor0
----
3354
3549
3783

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS cor2
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474

onlyif mysql # use DIV operator for integer division
query I rowsort label-9482
SELECT DISTINCT col0 DIV tab0.col2 + tab0.col0 * 81 AS col2 FROM tab0
----
1944
2870
7210

skipif mysql # not compatible
query I rowsort label-9482
SELECT DISTINCT col0 / tab0.col2 + tab0.col0 * 81 AS col2 FROM tab0
----
1944
2870
7210

query I rowsort
SELECT DISTINCT - 28 + - tab0.col2 FROM tab0
----
-110
-29
-61

query I rowsort
SELECT 88 + - col0 AS col1 FROM tab0 AS cor0
----
-1
53
64

query I rowsort
SELECT + 24 + 63 FROM tab0
----
87
87
87

query I rowsort
SELECT DISTINCT + col1 + - col2 * - col2 AS col0 FROM tab0 cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT col2 - col1 * col1 AS col0 FROM tab1 cor0
----
-43
-622
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 + + 1 col1 FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT DISTINCT 10 * + col2 + col0 FROM tab1 AS cor0
----
1040
543
634

query I rowsort
SELECT DISTINCT col0 + + col1 * tab2.col0 AS col1 FROM tab2
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9491
SELECT DISTINCT CAST( NULL AS DECIMAL ) + col1 col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT CAST ( NULL AS REAL ) + col1 col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 94 + tab0.col0 AS col1 FROM tab0
----
118
129
183

query I rowsort
SELECT - col0 + - col1 + col0 * + col2 FROM tab0
----
-97
682
7118

onlyif mysql # use DIV operator for integer division
query I rowsort label-9494
SELECT - - 82 - col0 DIV 50 FROM tab2 AS cor0
----
81
81
82

skipif mysql # not compatible
query I rowsort label-9494
SELECT - - 82 - col0 / 50 FROM tab2 AS cor0
----
81
81
82

query I rowsort
SELECT - 71 AS col1 FROM tab0 cor0
----
-71
-71
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-9496
SELECT col2 * col0 - col2 DIV col1 AS col2 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-9496
SELECT col2 * col0 - col2 / col1 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT - col1 + tab0.col2 - + col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL col0 * tab0.col2 - col0 AS col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT - col0 * - col2 * ( - col1 ) FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - col2 * col1 * col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL + tab2.col1 + 11 FROM tab2, tab1 AS cor0
----
9 values hashing to 35d675b12daeeedaff0e73beb4adf032

query I rowsort
SELECT DISTINCT + 75 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
75

query I rowsort
SELECT ALL + 93 + 46 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ec60c4a1fe63bc8e6608e204b0ee0405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col2 FROM tab0 cor0
----
-24
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( cor0.col2 ) + - col1 col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT col0 * col0 * - cor0.col2 FROM tab0 cor0
----
-1225
-19008
-649522

query I rowsort
SELECT + 31 * + cor0.col0 FROM tab1 AS cor0
----
1984
2480
93

query I rowsort
SELECT + ( 52 ) + + col2 + cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
1433
296
4680

query I rowsort
SELECT - + col1 + - cor0.col1 FROM tab0 AS cor0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( + 9 ) * - col1 col2 FROM tab1 AS cor0
----
-104
-208
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL col1 * + col1 * + col0 AS col1 FROM tab0 cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - - col1 + 22 AS col0 FROM tab1 AS cor0
----
32
35
48

query I rowsort
SELECT ALL + ( col1 ) * + col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col0 * ( col2 ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + + cor0.col2 FROM tab2, tab0, tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 col1 FROM tab1 AS cor0
----
8

query I rowsort
SELECT col2 * - cor0.col2 + col1 FROM tab2 AS cor0
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + col1 + cor0.col0 * col1 col0 FROM tab2 AS cor0
----
1178
1632
8083

onlyif mysql # use DIV operator for integer division
query I rowsort label-9520
SELECT - 38 * ( - col2 ) + 29 DIV + col1 FROM tab1 cor0
----
2053
2168
3650

skipif mysql # not compatible
query I rowsort label-9520
SELECT - 38 * ( - col2 ) + 29 / + col1 FROM tab1 cor0
----
2053
2168
3650

query I rowsort
SELECT DISTINCT + - 68 * - col0 FROM tab2 AS cor0
----
476
5304
5372

onlyif mysql # use DIV operator for integer division
query I rowsort label-9522
SELECT DISTINCT col1 DIV col0 AS col0 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT col1 / col0 AS col0 FROM tab1 AS cor0
----
0
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9523
SELECT + CAST( + 99 AS SIGNED ) - col1 FROM tab2 AS cor0
----
40
68
82

skipif mysql # not compatible
query I rowsort label-9523
SELECT + CAST ( + 99 AS INTEGER ) - col1 FROM tab2 AS cor0
----
40
68
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9524
SELECT ALL - CAST( col2 AS SIGNED ) + col1 * + col2 FROM tab1 AS cor0
----
1152
1350
513

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL - CAST ( col2 AS INTEGER ) + col1 * + col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + col1 - + col2 * 25 FROM tab0
----
-1959
-739
72

query I rowsort
SELECT DISTINCT - tab0.col2 * - col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT - - 2 FROM tab1 AS cor0
----
2

query I rowsort
SELECT ALL col2 + + cor0.col1 * + col2 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - 2 * + col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL 90 * + col1 * + col1 + - col1 AS col0 FROM tab0 AS cor0
----
665554
745199
846713

query I rowsort
SELECT - 16 + + col1 AS col2 FROM tab1 AS cor0
----
-3
-6
10

query I rowsort
SELECT DISTINCT - 14 AS col1 FROM tab2, tab1 AS cor0
----
-14

query I rowsort
SELECT + + 86 + - col1 AS col2 FROM tab2 AS cor0
----
27
55
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col1 FROM tab0
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - col0 col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT cor0.col2 * 47 FROM tab0 AS cor0
----
1551
3854
47

query I rowsort
SELECT ALL 53 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT - 26 + tab2.col1 AS col0 FROM tab2
----
-9
33
5

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2, tab0 cor3
----
3645 values hashing to ed0ce6de90f51f6f9035da5f66a6f197

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to b62c1ebc681aca72d13feadb888b3be7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9542
SELECT ALL + cor0.col0 DIV + cor0.col2 + col2 AS col1 FROM tab0 cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL + cor0.col0 / + cor0.col2 + col2 AS col1 FROM tab0 cor0
----
33
36
83

query I rowsort
SELECT DISTINCT + - col0 + ( col0 ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL + - cor0.col0 * - col2 + col2 * + col1 * col2 AS col1 FROM tab0 AS cor0
----
132
619182
94446

query I rowsort
SELECT ALL - col2 + ( - 26 ) AS col0 FROM tab0 AS cor0
----
-108
-27
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9546
SELECT + col1 + CAST( NULL AS SIGNED ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT + col1 + CAST ( NULL AS INTEGER ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col1 + - 75 FROM tab2 cor0
----
-16
-44
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 * + ( - col1 ) + + col0 - + 55 col2 FROM tab1 AS cor0
----
36489
4160
99865

query I rowsort
SELECT col1 + + 84 AS col0 FROM tab0 AS cor0
----
170
175
181

query I rowsort
SELECT ALL - col0 * col2 + - col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT ALL - cor0.col1 + col0 + - col2 AS col1 FROM tab0 cor0
----
-63
-84
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 83 col0 FROM tab0 cor0
----
2739
6806
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9553
SELECT ALL + col2 + col1 DIV col1 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL + col2 + col1 / col1 FROM tab2
----
27
28
39

query I rowsort
SELECT DISTINCT 54 + + cor0.col2 AS col2 FROM tab2, tab2 cor0 CROSS JOIN tab1
----
80
81
92

query I rowsort
SELECT - 96 * + col0 + col0 AS col2 FROM tab1 cor0
----
-285
-6080
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-9556
SELECT col2 * cor0.col1 DIV col1 + + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-9556
SELECT col2 * cor0.col1 / col1 + + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL - + col2 * 34 AS col2 FROM tab1 AS cor0
----
-1836
-1938
-3264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - cor0.col0 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9559
SELECT ALL cor0.col2 + - col1 DIV col0 col0 FROM tab2 AS cor0
----
23
26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL cor0.col2 + - col1 / col0 col0 FROM tab2 AS cor0
----
23
26
38

query I rowsort
SELECT + - 56 * + col2 + - col1 FROM tab1 cor0
----
-3050
-3202
-5389

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9561
SELECT - col0 - ( cor0.col1 + CAST( NULL AS SIGNED ) ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9561
SELECT - col0 - ( cor0.col1 + CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 * col1 AS col1 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9563
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * col0 * col2 AS col1 FROM tab0 AS cor0
----
26136
35
598436

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * col0 * col2 AS col1 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT + - col2 * - 72 - col1 * - col0 FROM tab2 AS cor0
----
2161
4079
6474

query I rowsort
SELECT col2 + col0 * - cor0.col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL - - cor0.col2 * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - col0 + - col2 * col2 + col0 * + col2 AS col1 FROM tab2 cor0
----
-547
1274
1479

query I rowsort
SELECT DISTINCT + 76 * - col1 AS col2 FROM tab2 AS cor0
----
-1292
-2356
-4484

query I rowsort
SELECT ALL - col1 + col2 * + 83 FROM tab2 cor0
----
2099
2210
3137

onlyif mysql # use DIV operator for integer division
query I rowsort label-9570
SELECT ALL + cor0.col2 DIV col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL + cor0.col2 / col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL + col0 * + col0 * col2 FROM tab1
----
233472
486
614400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9572
SELECT DISTINCT - CAST( 5 * cor0.col0 AS SIGNED ) FROM tab1, tab0 cor0
----
-120
-175
-445

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT - CAST ( 5 * cor0.col0 AS INTEGER ) FROM tab1, tab0 cor0
----
-120
-175
-445

onlyif mysql # use DIV operator for integer division
query I rowsort label-9573
SELECT + - col2 DIV + cor0.col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9573
SELECT + - col2 / + cor0.col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL col2 * 50 + + cor0.col0 AS col0 FROM tab2 cor0
----
1357
1378
1979

query I rowsort
SELECT DISTINCT + + col1 * - 14 AS col1 FROM tab1 AS cor0
----
-140
-182
-364

query I rowsort
SELECT DISTINCT - tab1.col2 AS col2 FROM tab1, tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT - col2 + - 99 * + col0 FROM tab1 AS cor0
----
-351
-6393
-8016

query I rowsort
SELECT ALL col0 * + 71 AS col1 FROM tab0 AS cor0
----
1704
2485
6319

query I rowsort
SELECT DISTINCT cor0.col1 * + ( cor0.col1 ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + 48 * ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
4128
4368
4656

query I rowsort
SELECT DISTINCT - ( + col0 ) * tab0.col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - - col1 * col2 * + col2 FROM tab2 cor0
----
22599
24548
39884

query I rowsort
SELECT DISTINCT + - 28 + 87 FROM tab1 AS cor0
----
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9585
SELECT CAST( NULL AS SIGNED ) + + col2 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT CAST ( NULL AS INTEGER ) + + col2 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( - col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - - 26 * - col2 FROM tab1 AS cor0
----
-1404
-1482
-2496

query I rowsort
SELECT - 58 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col2 * cor0.col0 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 844087611670bb7fd62286733e4f81ac

query I rowsort
SELECT ALL col0 + col1 * col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL + + 30 AS col1 FROM tab0 cor0
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col2 col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - + col1 * - 21 AS col2 FROM tab2 AS cor0
----
1239
357
651

query I rowsort
SELECT ALL - + col2 + - 94 AS col0 FROM tab2 AS cor0
----
-120
-121
-132

query I rowsort
SELECT + - col2 * - 94 AS col2 FROM tab1 cor0
----
5076
5358
9024

query I rowsort
SELECT ALL 71 AS col1 FROM tab0
----
71
71
71

query I rowsort
SELECT - 30 * - col1 AS col1 FROM tab2
----
1770
510
930

query I rowsort
SELECT DISTINCT tab0.col0 * col1 * - col1 AS col0 FROM tab0
----
-177504
-329315
-737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-9599
SELECT DISTINCT - col1 DIV - tab1.col1 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT - col1 / - tab1.col1 AS col2 FROM tab1
----
1

query I rowsort
SELECT ALL + + col0 + cor0.col1 + + col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT + col0 + - 90 AS col0 FROM tab0
----
-1
-55
-66

query I rowsort
SELECT DISTINCT ( col0 ) * + tab1.col1 + + col1 AS col0 FROM tab1
----
104
1053
650

query I rowsort
SELECT + 34 * + col2 FROM tab1 cor0
----
1836
1938
3264

query I rowsort
SELECT + - 61 + - col0 * + col0 FROM tab2 AS cor0
----
-110
-6145
-6302

query I rowsort
SELECT - + 72 * col1 * - col0 + - col0 FROM tab2 AS cor0
----
15617
331266
96617

query I rowsort
SELECT - tab2.col0 * cor1.col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 9b18637ecf482b591b08df91eceff9a6

query I rowsort
SELECT ALL - 34 AS col0 FROM tab0
----
-34
-34
-34

query I rowsort
SELECT ( - cor0.col0 ) + - col0 FROM tab2 AS cor0
----
-14
-156
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 * + col0 col1 FROM tab2 AS cor0
----
490
5460
5530

query I rowsort
SELECT ALL + col0 * col0 + - col0 FROM tab0 cor0
----
1190
552
7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col0 + + col0 col0 FROM tab0 AS cor0
----
-1190
-552
-7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col1 * 45 col2 FROM tab1
----
-1170
-450
-585

query I rowsort
SELECT ALL + 0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col2 + + 88 * col1 FROM tab1 AS cor0
----
1240
2342
937

onlyif mysql # use DIV operator for integer division
query I rowsort label-9615
SELECT ALL + 90 DIV + cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL + 90 / + cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

query I rowsort
SELECT ALL - 1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT ALL col1 * + col0 + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL - 72 * - col1 AS col2 FROM tab0 AS cor0
----
6192
6552
6984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 + - col0 col0 FROM tab0 AS cor0
----
-105
-159
-94

query I rowsort
SELECT DISTINCT - col0 * - col0 * 89 FROM tab0 AS cor0
----
109025
51264
704969

query I rowsort
SELECT ALL 97 + cor0.col1 FROM tab2 AS cor0
----
114
128
156

query I rowsort
SELECT DISTINCT - tab0.col1 * - col1 AS col0 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9623
SELECT DISTINCT ( col0 ) DIV col0 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT ( col0 ) / col0 AS col1 FROM tab1
----
1

query I rowsort
SELECT 55 + col0 FROM tab1
----
119
135
58

query I rowsort
SELECT - col2 * col2 * + ( 38 ) FROM tab1 cor0
----
-110808
-123462
-350208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 27 ) col2 FROM tab1
----
-27
-27
-27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9627
SELECT cor0.col1 + + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-9627
SELECT cor0.col1 + + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT cor0.col0 * - col0 + 72 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-4034
-6341
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 72 + cor0.col1 * col2 * col0 col2 FROM tab0 AS cor0
----
3564
664281
68270

query I rowsort
SELECT + col1 * - col1 - - col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT col0 + + 67 FROM tab1
----
131
147
70

query I rowsort
SELECT + - col0 * col0 + 84 FROM tab1 AS cor0
----
-4012
-6316
75

query I rowsort
SELECT col0 - 13 AS col0 FROM tab2 AS cor0
----
-6
65
66

query I rowsort
SELECT - col0 + col1 * ( - col1 ) AS col1 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT ALL - - cor0.col0 + - cor0.col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 * col2 + - col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL - col0 + - col1 * + 55 FROM tab0 AS cor0
----
-4754
-5094
-5370

query I rowsort
SELECT ALL - col0 + + 69 + - col1 FROM tab1 AS cor0
----
-24
-5
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9639
SELECT + col1 + - CAST( col2 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

skipif mysql # not compatible
query I rowsort label-9639
SELECT + col1 + - CAST ( col2 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 * - 48 AS col0 FROM tab2 AS cor0
----
-1274
-1323
-1862

query I rowsort
SELECT - + col0 + + ( - 32 ) FROM tab1 AS cor0
----
-112
-35
-96

query I rowsort
SELECT ALL - col2 + col2 * col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT + col1 * 96 + + col1 AS col0 FROM tab1 cor0
----
1261
2522
970

onlyif mysql # use DIV operator for integer division
query I rowsort label-9644
SELECT - col2 DIV - col2 + col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-9644
SELECT - col2 / - col2 + col1 FROM tab1 AS cor0
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 46 + col0 col1 FROM tab0 cor0
----
1542
3861
81

query I rowsort
SELECT DISTINCT + cor0.col0 + - 0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9647
SELECT DISTINCT + CAST( col2 AS SIGNED ) * col2 + - col2 col0 FROM tab1 AS cor0
----
2862
3192
9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * col2 + - col2 col0 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT DISTINCT - col2 * - col2 + col2 * + col2 + col0 FROM tab1 AS cor0
----
18512
5835
6562

query I rowsort
SELECT col1 + cor0.col2 * col0 * col2 FROM tab2 AS cor0
----
114093
5134
52787

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 cor2, tab2 AS cor3
----
3645 values hashing to f1682f477bbed24d681925c633bed9db

query I rowsort
SELECT DISTINCT + col1 * + col2 + col0 FROM tab0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-9652
SELECT DISTINCT col2 DIV - 36 + + col0 FROM tab0 AS cor0
----
24
35
87

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT col2 / - 36 + + col0 FROM tab0 AS cor0
----
24
35
87

query I rowsort
SELECT - - 63 * 8 AS col1 FROM tab2 AS cor0
----
504
504
504

query I rowsort
SELECT ALL col1 + 98 * - col2 AS col0 FROM tab2 AS cor0
----
-2489
-2615
-3707

query I rowsort
SELECT DISTINCT + col2 + + col1 - + cor0.col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + + ( + 22 ) + - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-267
-3459
-939

onlyif mysql # use DIV operator for integer division
query I rowsort label-9657
SELECT ALL - - 49 + - col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL - - 49 + - col1 / - col1 AS col1 FROM tab0 AS cor0
----
50
50
50

query I rowsort
SELECT - + cor0.col2 * col1 * - col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL - col0 * - col2 - col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT - ( + col0 ) * + col2 + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL - + 59 * col2 AS col2 FROM tab0 AS cor0
----
-1947
-4838
-59

query I rowsort
SELECT DISTINCT - col2 * 55 + - ( - col1 * + col0 ) FROM tab1
----
-2495
-2892
-4240

onlyif mysql # use DIV operator for integer division
query I rowsort label-9663
SELECT DISTINCT - col1 + - col1 DIV + col0 AS col0 FROM tab1
----
-10
-13
-34

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT - col1 + - col1 / + col0 AS col0 FROM tab1
----
-10
-13
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9664
SELECT col0 - CAST( NULL AS DECIMAL ) * col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9664
SELECT col0 - CAST ( NULL AS REAL ) * col0 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9665
SELECT + col1 - ( - col2 ) DIV col1 AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9665
SELECT + col1 - ( - col2 ) / col1 AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT col2 * - 49 + - 49 + tab2.col2 FROM tab2
----
-1297
-1345
-1873

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9667
SELECT tab2.col0 - + CAST( col1 AS SIGNED ) FROM tab2
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-9667
SELECT tab2.col0 - + CAST ( col1 AS INTEGER ) FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT col1 * ( col0 ) + col1 AS col0 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL col0 * + col0 + col1 * - 55 - cor0.col1 FROM tab1 AS cor0
----
-1447
3536
5672

query I rowsort
SELECT 94 * 57 + col1 FROM tab0 AS cor0
----
5444
5449
5455

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 + - col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT + - 22 * col1 FROM tab2 AS cor0
----
-1298
-374
-682

query I rowsort
SELECT ALL + + cor0.col0 - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0 cor1
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

query I rowsort
SELECT - col1 + + 11 FROM tab0
----
-75
-80
-86

query I rowsort
SELECT ALL tab1.col0 + + cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 17e6537ffee10dccd14f4a1f12215238

query I rowsort
SELECT 19 * + col1 AS col1 FROM tab2 AS cor0
----
1121
323
589

query I rowsort
SELECT col1 + 35 AS col2 FROM tab0
----
121
126
132

query I rowsort
SELECT DISTINCT col1 + + ( - col1 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL col0 + + col0 * + 31 + - col2 FROM tab2 AS cor0
----
197
2470
2490

query I rowsort
SELECT DISTINCT + col1 - - 45 FROM tab1 AS cor0
----
55
58
71

query I rowsort
SELECT - col2 - ( + 32 ) * col2 FROM tab2 AS cor0
----
-1254
-858
-891

query I rowsort
SELECT - col1 + - 78 AS col2 FROM tab0
----
-164
-169
-175

onlyif mysql # use DIV operator for integer division
query I rowsort label-9684
SELECT + col2 DIV - ( tab0.col2 + + col2 ) AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9684
SELECT + col2 / - ( tab0.col2 + + col2 ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + col0 + ( 41 ) * - col0 + + col0 AS col0 FROM tab0
----
-1365
-3471
-936

query I rowsort
SELECT tab2.col1 * - 85 AS col2 FROM tab2
----
-1445
-2635
-5015

onlyif mysql # use DIV operator for integer division
query I rowsort label-9687
SELECT col0 DIV col0 - cor0.col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-9687
SELECT col0 / col0 - cor0.col1 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT ALL - col2 * + 18 AS col1 FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT - col1 - + col0 * - col2 * col1 FROM tab2 AS cor0
----
119593
51017
5828

query I rowsort
SELECT DISTINCT col0 * - ( col0 ) + - col1 - + col0 AS col2 FROM tab1 cor0
----
-38
-4170
-6493

query I rowsort
SELECT + col0 + col2 * - 6 FROM tab1 AS cor0
----
-278
-321
-496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 col1 FROM tab1
----
-2
-2
-2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9693
SELECT ALL col2 * CAST( - col2 AS SIGNED ) FROM tab1
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-9693
SELECT ALL col2 * CAST ( - col2 AS INTEGER ) FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - col1 + 0 AS col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL 81 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # use DIV operator for integer division
query I rowsort label-9697
SELECT col0 + cor0.col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-9697
SELECT col0 + cor0.col1 / - col0 AS col1 FROM tab2 AS cor0
----
3
78
79

query I rowsort
SELECT ( - cor0.col0 ) + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 91 FROM tab2 cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 + - col0 * col2 col1 FROM tab2 AS cor0
----
-2111
-272
-3085

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9701
SELECT + CAST( - 96 AS SIGNED ) * - col1 AS col1 FROM tab0
----
8256
8736
9312

skipif mysql # not compatible
query I rowsort label-9701
SELECT + CAST ( - 96 AS INTEGER ) * - col1 AS col1 FROM tab0
----
8256
8736
9312

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 col1 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL 36 * + 95 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2a55aea20e9098a866906c44f37b437e

query I rowsort
SELECT + + 82 + - 80 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 * + col2 * col2 col1 FROM tab0
----
1
35937
551368

query I rowsort
SELECT DISTINCT - 11 * - 43 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
473

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9709
SELECT + col0 * - col2 * CAST( - 65 AS SIGNED ) AS col0 FROM tab2
----
12285
131820
195130

skipif mysql # not compatible
query I rowsort label-9709
SELECT + col0 * - col2 * CAST ( - 65 AS INTEGER ) AS col0 FROM tab2
----
12285
131820
195130

skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 * CAST ( + col0 * col1 AS REAL ) + 59 - + col1 FROM tab0 AS cor0
----
-118863
-49563
-720843

query I rowsort
SELECT DISTINCT col1 + + col2 AS col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL col0 * + col2 * col1 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + 0 * col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT 72 + - col1 * col1 AS col1 FROM tab0 AS cor0
----
-7324
-8209
-9337

onlyif mysql # use DIV operator for integer division
query I rowsort label-9715
SELECT - ( col1 ) DIV - col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9715
SELECT - ( col1 ) / - col1 FROM tab1
----
1
1
1

query I rowsort
SELECT + col0 - - 93 AS col0 FROM tab0 AS cor0
----
117
128
182

query I rowsort
SELECT + + 78 + - 94 * - col0 AS col2 FROM tab0 AS cor0
----
2334
3368
8444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9718
SELECT ALL ( col2 ) + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL ( col2 ) + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 22 * - col0 AS col2 FROM tab0
----
-1958
-528
-770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 + cor0.col2 * + col1 + 80 col0 FROM tab2 cor0
----
1634
746
937

query I rowsort
SELECT + col2 + cor0.col2 + + cor0.col2 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col0 AS col1 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT col2 * 2 FROM tab0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 col1 FROM tab0, tab1 AS cor0
----
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-9725
SELECT ALL ( col1 ) DIV col0 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL ( col1 ) / col0 FROM tab2
----
0
0
4

query I rowsort
SELECT ALL + ( + col2 ) * - tab2.col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ALL + ( col1 + col0 ) AS col0 FROM tab1
----
29
74
93

query I rowsort
SELECT col1 + 3 * col0 FROM tab0 AS cor0
----
158
202
358

onlyif mysql # use DIV operator for integer division
query I rowsort label-9729
SELECT DISTINCT - col1 + + col2 DIV - cor0.col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT - col1 + + col2 / - cor0.col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - 16 + ( cor0.col1 * + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
1518
630
821

query I rowsort
SELECT ALL cor0.col1 * col2 - + col2 * - col1 * + 59 AS col0 FROM tab1 cor0
----
34200
74880
84240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9732
SELECT - col2 * - CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-9732
SELECT - col2 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT DISTINCT - 36 * + col2 AS col1 FROM tab0
----
-1188
-2952
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-9734
SELECT DISTINCT + cor0.col0 + + cor0.col0 DIV col2 FROM tab1 cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT + cor0.col0 + + cor0.col0 / col2 FROM tab1 cor0
----
3
65
80

query I rowsort
SELECT DISTINCT col2 * col2 + col1 FROM tab0 AS cor0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9736
SELECT col1 DIV + col0 + 3 - - ( col1 ) AS col1 FROM tab2
----
20
38
62

skipif mysql # not compatible
query I rowsort label-9736
SELECT col1 / + col0 + 3 - - ( col1 ) AS col1 FROM tab2
----
20
38
62

query I rowsort
SELECT 36 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

onlyif mysql # use DIV operator for integer division
query I rowsort label-9738
SELECT ALL col1 * col2 DIV tab0.col0 AS col1 FROM tab0
----
118
2
83

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL col1 * col2 / tab0.col0 AS col1 FROM tab0
----
118
2
83

query I rowsort
SELECT ALL - ( col0 ) + + col2 - + col2 * - col0 * 37 FROM tab2
----
111033
7013
74984

query I rowsort
SELECT ALL 26 * col0 * col1 FROM tab0
----
210574
53664
88270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT - - cor0.col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - + col1 * col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-9744
SELECT DISTINCT - col1 DIV 69 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT - col1 / 69 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - cor0.col1 * + cor0.col0 + - col0 * col1 FROM tab0 AS cor0
----
-16198
-4128
-6790

query I rowsort
SELECT + - col1 * col2 + + cor0.col0 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT - col0 + + ( col2 ) - col2 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9748
SELECT DISTINCT col2 DIV + ( + col1 ) - + col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT col2 / + ( + col1 ) - + col0 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9749
SELECT col0 * - col0 + - col2 * - col1 DIV col1 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839

skipif mysql # not compatible
query I rowsort label-9749
SELECT col0 * - col0 + - col2 * - col1 / col1 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT + + col0 - ( + col2 ) FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT col1 * ( col0 * - col2 ) + - col2 AS col2 FROM tab1 AS cor0
----
-36537
-4266
-99936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9752
SELECT + col0 * CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-9752
SELECT + col0 * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col1 - + ( - cor0.col1 ) FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 + col0 col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT col2 * col2 - - ( - col1 ) AS col2 FROM tab1 AS cor0
----
2890
3239
9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-9756
SELECT ALL - cor0.col2 DIV 85 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL - cor0.col2 / 85 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col0 - - col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT cor0.col1 - col1 * - col1 FROM tab1 cor0
----
110
182
702

query I rowsort
SELECT ALL col1 + + 4 * + 56 AS col1 FROM tab0 AS cor0
----
310
315
321

query I rowsort
SELECT DISTINCT + col2 + 65 * + 35 + + col0 AS col1 FROM tab0
----
2311
2332
2446

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9761
SELECT DISTINCT col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT col0 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 * 5 AS col2 FROM tab2 AS cor0
----
130
135
190

onlyif mysql # use DIV operator for integer division
query I rowsort label-9763
SELECT - col0 DIV + CAST( 76 AS SIGNED ) AS col2 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9763
SELECT - col0 / + CAST ( 76 AS INTEGER ) AS col2 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT - cor0.col2 * cor0.col1 * - col0 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-9765
SELECT - col1 DIV 59 AS col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9765
SELECT - col1 / 59 AS col1 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9766
SELECT - - CAST( NULL AS DECIMAL ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT - - CAST ( NULL AS REAL ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9767
SELECT + CAST( NULL AS SIGNED ) * - 3 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT + CAST ( NULL AS INTEGER ) * - 3 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + cor0.col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT + - col1 + col2 * cor0.col2 * + col1 + col1 FROM tab1 AS cor0
----
119808
32490
75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 90 ) * col2 * cor0.col2 col0 FROM tab2 AS cor0
----
129960
60840
65610

onlyif mysql # use DIV operator for integer division
query I rowsort label-9771
SELECT - col2 DIV + ( col0 ) AS col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-9771
SELECT - col2 / + ( col0 ) AS col0 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 col0 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-9773
SELECT DISTINCT col2 * col2 + + ( col1 ) DIV - 23 AS col0 FROM tab0
----
-3
1086
6721

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT col2 * col2 + + ( col1 ) / - 23 AS col0 FROM tab0
----
-3
1086
6721

query I rowsort
SELECT col2 * - col0 + 78 AS col1 FROM tab2
----
-111
-1950
-2924

query I rowsort
SELECT col2 * ( + ( + col1 ) * - col2 ) + col2 * col0 + + col2 FROM tab0
----
-604504
-61
-92829

query I rowsort
SELECT DISTINCT + 25 AS col1 FROM tab2, tab0 AS cor0
----
25

query I rowsort
SELECT DISTINCT + - 56 - col0 AS col2 FROM tab1 AS cor0
----
-120
-136
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( cor0.col2 ) col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT 22 * - col1 - 10 FROM tab0 AS cor0
----
-1902
-2012
-2144

query I rowsort
SELECT + 66 * - col0 * - 44 FROM tab1 AS cor0
----
185856
232320
8712

query I rowsort
SELECT - - 67 * col1 + cor0.col1 FROM tab1 AS cor0
----
1768
680
884

onlyif mysql # use DIV operator for integer division
query I rowsort label-9782
SELECT ALL - col2 DIV col2 + + 58 AS col1 FROM tab1 cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL - col2 / col2 + + 58 AS col1 FROM tab1 cor0
----
57
57
57

query I rowsort
SELECT ALL + - col1 * - col1 * ( + 95 ) AS col0 FROM tab2 AS cor0
----
27455
330695
91295

query I rowsort
SELECT DISTINCT + col0 + - 74 AS col2 FROM tab1
----
-10
-71
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9785
SELECT - CAST( NULL AS SIGNED ) + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT - CAST ( NULL AS INTEGER ) + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9786
SELECT DISTINCT - CAST( + col1 AS SIGNED ) + col2 AS col0 FROM tab1
----
28
47
83

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + col2 AS col0 FROM tab1
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9787
SELECT col2 DIV + col0 + col0 AS col2 FROM tab2
----
10
78
79

skipif mysql # not compatible
query I rowsort label-9787
SELECT col2 / + col0 + col0 AS col2 FROM tab2
----
10
78
79

query I rowsort
SELECT DISTINCT - + col0 * col2 * col1 + 87 * - cor0.col0 * + col1 FROM tab2 AS cor0
----
-167875
-24738
-520026

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * + 11 col1 FROM tab1 AS cor0
----
59
714
893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 3 * col2 + + ( ( col2 ) ) col2 FROM tab0 cor0
----
132
328
4

query I rowsort
SELECT - 45 + col1 * - col0 AS col0 FROM tab0
----
-2109
-3440
-8144

query I rowsort
SELECT DISTINCT - - 53 FROM tab2 AS cor0
----
53

query I rowsort
SELECT - 65 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT + col0 * + col1 * ( - col1 ) + + col1 FROM tab2
----
-22814
-271459
-6696

query I rowsort
SELECT - col2 * - cor0.col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT + - 71 + 81 * col0 FROM tab1 cor0
----
172
5113
6409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9797
SELECT DISTINCT + CAST( + col0 AS SIGNED ) + col2 AS col1 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) + col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + ( cor0.col2 ) + + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + + cor0.col0 * col1 + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL + cor0.col2 + 63 AS col1 FROM tab1 cor0
----
117
120
159

query I rowsort
SELECT col0 + + 64 FROM tab1 AS cor0
----
128
144
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9802
SELECT ALL col2 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - tab1.col2 + col0 * col1 * col0 + ( col1 ) AS col2 FROM tab1
----
206
40913
83117

query I rowsort
SELECT - 33 FROM tab2, tab0 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT DISTINCT - 24 * 38 FROM tab1, tab0 AS cor0
----
-912

query I rowsort
SELECT - 38 * + col0 + + col2 AS col2 FROM tab0 AS cor0
----
-1329
-3300
-879

query I rowsort
SELECT - 95 + + cor0.col2 * - col0 FROM tab1 cor0
----
-257
-3743
-7775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9808
SELECT ALL + CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT + col0 * col0 + 14 AS col0 FROM tab0 AS cor0
----
1239
590
7935

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9810
SELECT cor0.col2 * CAST( - ( + cor0.col0 ) AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9810
SELECT cor0.col2 * CAST ( - ( + cor0.col0 ) AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 * 18 * + cor0.col2 - - col2 AS col0 FROM tab2 AS cor0
----
12194
13149
26030

query I rowsort
SELECT ALL - - col2 * 82 AS col1 FROM tab1 AS cor0
----
4428
4674
7872

query I rowsort
SELECT + + 62 + + col1 AS col2 FROM tab0 cor0
----
148
153
159

query I rowsort
SELECT DISTINCT - - 68 FROM tab1 cor0
----
68

query I rowsort
SELECT 61 + 66 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 6df2347df290cfbb844a217cae9f5e64

query I rowsort
SELECT col1 * - 60 + + col2 AS col2 FROM tab2 AS cor0
----
-1833
-3514
-982

query I rowsort
SELECT 86 * col2 + + col1 FROM tab1 AS cor0
----
4670
4912
8269

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 + + col1 col0 FROM tab0
----
111
116
122

query I rowsort
SELECT - col0 - + ( col1 ) AS col2 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT - tab0.col2 + tab0.col1 * + col1 * col0 + - col1 AS col0 FROM tab0
----
177385
329217
736836

query I rowsort
SELECT + 83 * cor0.col0 + + col0 AS col2 FROM tab2 AS cor0
----
588
6552
6636

query I rowsort
SELECT 35 + - 16 AS col2 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT ALL - 11 AS col2 FROM tab1
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 * 79 col1 FROM tab1
----
110916
45030
98592

onlyif mysql # use DIV operator for integer division
query I rowsort label-9825
SELECT + col0 + + col0 DIV + 98 AS col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-9825
SELECT + col0 + + col0 / + 98 AS col1 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9826
SELECT - col2 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9826
SELECT - col2 / cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col2 + col2 * col0 * col1 - col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT col0 + ( col0 ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - col0 + + col1 * + ( + 77 ) * - cor0.col2 FROM tab1 AS cor0
----
-108111
-43954
-96176

query I rowsort
SELECT ALL + col1 * cor0.col1 * col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT + col0 * - cor0.col2 - - 95 AS col0 FROM tab1 AS cor0
----
-3553
-67
-7585

query I rowsort
SELECT DISTINCT col2 - col2 * + col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT tab2.col1 - col0 * + col2 AS col1 FROM tab2
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 + - col1 * col1 col1 FROM tab1 AS cor0
----
-128
-59
-635

query I rowsort
SELECT ( 3 ) AS col2 FROM tab0
----
3
3
3

query I rowsort
SELECT DISTINCT 69 + - col0 AS col0 FROM tab0
----
-20
34
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-9838
SELECT tab1.col2 DIV + tab1.col1 AS col0 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-9838
SELECT tab1.col2 / + tab1.col1 AS col0 FROM tab1
----
2
5
7

query I rowsort
SELECT DISTINCT 14 + col0 * - ( - col1 ) + - tab0.col1 AS col2 FROM tab0
----
1992
3312
8022

query I rowsort
SELECT DISTINCT + col2 + - col1 * - col1 + - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1117
259
2831

query I rowsort
SELECT + 2 * col1 AS col2 FROM tab0
----
172
182
194

query I rowsort
SELECT - + col2 * col2 - - col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT col1 + + col2 + col2 * + col0 FROM tab2
----
2113
247
3057

query I rowsort
SELECT DISTINCT - col0 + - col1 + col2 * - ( col2 ) FROM tab0
----
-1199
-133
-6904

query I rowsort
SELECT - col2 * + col2 * + col2 AS col2 FROM tab2
----
-17576
-19683
-54872

query I rowsort
SELECT DISTINCT 11 FROM tab1, tab2, tab2 AS cor0
----
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9847
SELECT DISTINCT + CAST( 69 AS SIGNED ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-9847
SELECT DISTINCT + CAST ( 69 AS INTEGER ) FROM tab2 AS cor0
----
69

query I rowsort
SELECT ALL - col2 * - ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT 49 * 34 AS col2 FROM tab0 AS cor0
----
1666

query I rowsort
SELECT + 79 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 * 77 col1 FROM tab1
----
1001
2002
770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * tab1.col0 + + col2 col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL 18 + + col2 AS col2 FROM tab0 AS cor0
----
100
19
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-9854
SELECT ALL cor0.col0 DIV cor0.col0 - col2 AS col1 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL cor0.col0 / cor0.col0 - col2 AS col1 FROM tab0 AS cor0
----
-32
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 31 ) + - col0 col0 FROM tab2 cor0
----
-109
-110
-38

query I rowsort
SELECT + + ( + col1 ) * - col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col2 * col0 - + col2 AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT + 4 AS col1 FROM tab0 AS cor0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 * - col0 col1 FROM tab2 AS cor0
----
-189
-2106
-2133

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9860
SELECT + CAST( + 23 AS SIGNED ) + cor0.col0 AS col1 FROM tab1 cor0
----
103
26
87

skipif mysql # not compatible
query I rowsort label-9860
SELECT + CAST ( + 23 AS INTEGER ) + cor0.col0 AS col1 FROM tab1 cor0
----
103
26
87

query I rowsort
SELECT - 80 FROM tab1, tab1 cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT ALL + ( + col0 + - col1 ) AS col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT + col2 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT col1 * cor0.col1 - col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT + col0 - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + 59 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 * + col0 col2 FROM tab0 cor0
----
1780
480
700

query I rowsort
SELECT ALL + ( col2 ) * - 25 FROM tab2 AS cor0
----
-650
-675
-950

query I rowsort
SELECT + 94 * + col0 AS col1 FROM tab0 AS cor0
----
2256
3290
8366

query I rowsort
SELECT DISTINCT col1 * + col2 * + 6 FROM tab2 AS cor0
----
3876
5022
9204

query I rowsort
SELECT + 31 * cor0.col0 FROM tab0 AS cor0
----
1085
2759
744

query I rowsort
SELECT DISTINCT - 80 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-113
-162
-81

query I rowsort
SELECT ALL cor0.col1 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + col1 + + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT - + col0 * col0 + - 6 AS col1 FROM tab2 AS cor0
----
-55
-6090
-6247

query I rowsort
SELECT DISTINCT - ( col2 ) * 32 - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1233
-891
-895

query I rowsort
SELECT 11 * col2 FROM tab0 AS cor0
----
11
363
902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9878
SELECT ALL col1 * + CAST( - 26 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-1475
-425
-775

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL col1 * + CAST ( - 26 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-1475
-425
-775

query I rowsort
SELECT + col2 + - 46 FROM tab2 AS cor0
----
-19
-20
-8

query I rowsort
SELECT ALL - cor0.col0 * cor0.col2 + col1 + col0 * - 6 FROM tab1 cor0
----
-154
-4022
-8147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 84 + - col2 col0 FROM tab2 cor0
----
-2210
-2295
-3230

query I rowsort
SELECT DISTINCT cor0.col1 + col1 * col1 AS col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT - + col1 + - col0 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9884
SELECT - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9884
SELECT - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + col0 * 81 AS col0 FROM tab0 AS cor0
----
1944
2835
7209

query I rowsort
SELECT + cor0.col2 * - ( - col0 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col1 * 9 FROM tab0 cor0
----
774
819
873

query I rowsort
SELECT ALL + col2 + - 52 FROM tab2 AS cor0
----
-14
-25
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col1 * - col0 + + col1 col1 FROM tab0 AS cor0
----
3492
664209
68198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( 47 ) + - col2 * + 30 col1 FROM tab1 AS cor0
----
-1240
-2269
-398

query I rowsort
SELECT DISTINCT - + col2 * col2 AS col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL - - col1 + + ( col2 ) AS col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9893
SELECT - + col1 DIV ( col0 ) + - col0 * - 96 + col2 AS col2 FROM tab1 AS cor0
----
334
6201
7776

skipif mysql # not compatible
query I rowsort label-9893
SELECT - + col1 / ( col0 ) + - col0 * - 96 + col2 AS col2 FROM tab1 AS cor0
----
334
6201
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + + cor0.col1 col1 FROM tab2 AS cor0
----
306
3540
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * cor0.col0 col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + col1 * ( col0 * - col1 ) + col1 FROM tab2 AS cor0
----
-22814
-271459
-6696

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9897
SELECT DISTINCT - ( cor0.col0 ) + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT - ( cor0.col0 ) + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col1 FROM tab1 cor0
----
74
74
74

query I rowsort
SELECT ALL - 83 * + col2 FROM tab0 AS cor0
----
-2739
-6806
-83

query I rowsort
SELECT + 26 + 73 * - col0 FROM tab0 AS cor0
----
-1726
-2529
-6471

query I rowsort
SELECT DISTINCT + col2 + col2 + col1 * + col2 FROM tab2
----
1586
722
891

query I rowsort
SELECT DISTINCT 51 * tab1.col2 AS col2 FROM tab1, tab0 AS cor0
----
2754
2907
4896

query I rowsort
SELECT 46 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT ALL 72 * + col1 FROM tab1
----
1872
720
936

query I rowsort
SELECT cor0.col2 + - 22 FROM tab1, tab2 AS cor0
----
9 values hashing to 73a332c1fbdbb864420393cedc97e8ec

query I rowsort
SELECT DISTINCT tab0.col1 * + col0 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL 77 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT DISTINCT col1 + + col2 * - ( col2 ) * col2 AS col1 FROM tab0 AS cor0
----
-35851
-551277
96

query I rowsort
SELECT - cor0.col1 * + col0 - - ( col1 + col0 ) FROM tab1 AS cor0
----
-49
-566
-947

query I rowsort
SELECT - - col1 + + col2 * + ( col2 * - cor0.col2 ) FROM tab0 AS cor0
----
-35851
-551277
96

query I rowsort
SELECT - col1 + 47 AS col2 FROM tab0 AS cor0
----
-39
-44
-50

skipif mysql # not compatible
query I rowsort
SELECT - col1 * CAST ( + 55 AS REAL ) + + col2 FROM tab1 AS cor0
----
-1376
-493
-619

query I rowsort
SELECT - col0 * - 82 + + 78 AS col2 FROM tab0 AS cor0
----
2046
2948
7376

query I rowsort
SELECT + - col0 * 8 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-21
-448
-560

query I rowsort
SELECT ALL cor0.col2 * - col0 + + col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT - col0 - + 32 FROM tab0 AS cor0
----
-121
-56
-67

query I rowsort
SELECT - 83 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

query I rowsort
SELECT ALL - ( - col0 + - tab1.col1 ) FROM tab1
----
29
74
93

query I rowsort
SELECT - col2 + col0 * col2 FROM tab0
----
34
7216
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + cor0.col0 col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - 54 + col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
7342
8227
9355

onlyif mysql # use DIV operator for integer division
query I rowsort label-9922
SELECT DISTINCT + 56 + cor0.col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
52
56

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT + 56 + cor0.col1 / - col0 AS col1 FROM tab2 AS cor0
----
52
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 * 96 col0 FROM tab1
----
-288
-6144
-7680

query I rowsort
SELECT ALL + 78 * + tab2.col0 FROM tab2, tab1 cor0
----
9 values hashing to a106d8f054a02f1e78fedfafd8e2cbbe

query I rowsort
SELECT ALL - col2 * 75 + + col1 AS col2 FROM tab2 AS cor0
----
-1891
-1994
-2833

query I rowsort
SELECT DISTINCT + + 88 * col2 AS col2 FROM tab2 AS cor0
----
2288
2376
3344

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9927
SELECT ALL - CAST( NULL AS SIGNED ) / - 99 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL - CAST ( NULL AS INTEGER ) / - 99 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 + - cor0.col0 col1 FROM tab1 AS cor0
----
-112
-128
-51

onlyif mysql # use DIV operator for integer division
query I rowsort label-9929
SELECT - CAST( col1 AS SIGNED ) * col2 DIV - 36 FROM tab2 AS cor0
----
17
23
42

skipif mysql # not compatible
query I rowsort label-9929
SELECT - CAST ( col1 AS INTEGER ) * col2 / - 36 FROM tab2 AS cor0
----
17
23
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-9930
SELECT + col0 DIV - 95 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9930
SELECT + col0 / - 95 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( cor0.col0 ) FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # use DIV operator for integer division
query I rowsort label-9932
SELECT 0 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9932
SELECT 0 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 CROSS JOIN tab2, tab0 AS cor1
----
972 values hashing to deaaa983f771be544ffdc26f04a18657

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 50 * - tab2.col2 col2 FROM tab2
----
101400
150100
9450

query I rowsort
SELECT ALL col0 + + col2 * - col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT col1 * - cor0.col0 - col2 FROM tab0 cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT ( - cor0.col1 ) + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL - 46 + + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-1007
-335
-3527

query I rowsort
SELECT 69 * + col1 FROM tab2 cor0
----
1173
2139
4071

query I rowsort
SELECT 34 + - cor0.col1 FROM tab2 cor0
----
-25
17
3

query I rowsort
SELECT + ( col1 + col0 * + tab1.col0 ) FROM tab1
----
35
4106
6413

query I rowsort
SELECT - - col0 + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL ( - 86 ) AS col1 FROM tab0
----
-86
-86
-86

query I rowsort
SELECT ALL ( col2 + col1 ) FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT + 9 - + col1 * - col0 FROM tab2
----
1352
226
4611

query I rowsort
SELECT - col0 + + col1 - col0 * col0 FROM tab0
----
-1163
-514
-7919

query I rowsort
SELECT DISTINCT col0 + col0 - tab0.col1 FROM tab0
----
-27
-38
87

query I rowsort
SELECT DISTINCT + col2 * 77 AS col1 FROM tab0
----
2541
6314
77

query I rowsort
SELECT ALL - col1 * 75 + + col0 - col0 AS col1 FROM tab0 AS cor0
----
-6450
-6825
-7275

onlyif mysql # use DIV operator for integer division
query I rowsort label-9950
SELECT ALL col0 * col0 + col0 DIV col1 FROM tab1 AS cor0
----
4102
6406
9

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL col0 * col0 + col0 / col1 FROM tab1 AS cor0
----
4102
6406
9

query I rowsort
SELECT + + cor0.col0 + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + col0 - - col2 * - col2 * + col1 FROM tab2 AS cor0
----
-22592
-24469
-39806

query I rowsort
SELECT ALL + col0 * col0 + + col2 FROM tab0
----
1226
609
8003

query I rowsort
SELECT DISTINCT 67 + tab0.col0 AS col0 FROM tab0, tab2 AS cor0
----
102
156
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col2 ) col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + + ( col2 ) * col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + cor0.col1 * + 4 * 18 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1
----
27 values hashing to b17d67bfae071d4f4915cb046f6991b0

query I rowsort
SELECT - col0 * + ( 72 * col1 ) AS col2 FROM tab1 cor0
----
-46080
-5616
-74880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9959
SELECT ALL col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + 78 FROM tab0 AS cor0
----
6708
7098
7566

query I rowsort
SELECT DISTINCT col2 * - 12 FROM tab0
----
-12
-396
-984

query I rowsort
SELECT + col0 * + col1 - - 53 * + col2 AS col2 FROM tab2
----
1648
3357
5980

query I rowsort
SELECT DISTINCT + 48 AS col2 FROM tab1, tab1 AS cor0
----
48

query I rowsort
SELECT + col0 + + 26 * - col1 AS col1 FROM tab0 AS cor0
----
-2212
-2277
-2487

query I rowsort
SELECT DISTINCT cor0.col1 * 95 * cor0.col0 AS col2 FROM tab0 AS cor0
----
196080
322525
769405

query I rowsort
SELECT DISTINCT - + cor0.col2 * ( + col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT cor0.col2 * - ( + col0 ) FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-9968
SELECT + col2 + + 81 DIV cor0.col0 col0 FROM tab0 AS cor0
----
3
36
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9968
SELECT + col2 + + 81 / cor0.col0 col0 FROM tab0 AS cor0
----
3
36
82

query I rowsort
SELECT ALL - + col2 + - 39 FROM tab1 AS cor0
----
-135
-93
-96

query I rowsort
SELECT DISTINCT + col2 * 51 FROM tab2 cor0
----
1326
1377
1938

query I rowsort
SELECT - + col1 * 30 AS col0 FROM tab0 AS cor0
----
-2580
-2730
-2910

query I rowsort
SELECT col2 + cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL + - col2 * + ( + col0 + col2 ) FROM tab0 AS cor0
----
-14022
-1881
-36

query I rowsort
SELECT ALL + 88 * + 34 AS col1 FROM tab1 AS cor0
----
2992
2992
2992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9975
SELECT DISTINCT - CAST( 48 AS SIGNED ) + cor0.col2 * col2 FROM tab1 AS cor0
----
2868
3201
9168

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT - CAST ( 48 AS INTEGER ) + cor0.col2 * col2 FROM tab1 AS cor0
----
2868
3201
9168

onlyif mysql # use DIV operator for integer division
query I rowsort label-9976
SELECT ALL 9 * 48 DIV - col0 AS col1 FROM tab1 AS cor0
----
-144
-5
-6

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL 9 * 48 / - col0 AS col1 FROM tab1 AS cor0
----
-144
-5
-6

query I rowsort
SELECT 0 * + cor0.col2 + col1 * 9 - - 13 FROM tab1 cor0
----
103
130
247

query I rowsort
SELECT - col1 + + 33 FROM tab0
----
-53
-58
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-9979
SELECT col2 - + 69 DIV + col1 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-9979
SELECT col2 - + 69 / + col1 AS col2 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9980
SELECT 70 DIV col1 FROM tab2 cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-9980
SELECT 70 / col1 FROM tab2 cor0
----
1
2
4

query I rowsort
SELECT + 74 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9982
SELECT DISTINCT + 76 DIV + 43 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT + 76 / + 43 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * col1 col1 FROM tab2 AS cor0
----
210
3403
954

onlyif mysql # use DIV operator for integer division
query I rowsort label-9984
SELECT col0 DIV - col0 + col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-9984
SELECT col0 / - col0 + col2 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT 87 - col2 FROM tab2
----
49
60
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col0 col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - + col2 + + col0 * cor0.col0 * + col1 FROM tab2 AS cor0
----
106059
1492
358930

onlyif mysql # use DIV operator for integer division
query I rowsort label-9988
SELECT DISTINCT + col1 * col0 + - col2 DIV col1 FROM tab2 AS cor0
----
1341
217
4602

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT + col1 * col0 + - col2 / col1 FROM tab2 AS cor0
----
1341
217
4602

query I rowsort
SELECT - 12 * col0 * 97 + col1 AS col0 FROM tab0
----
-103505
-27850
-40643

query I rowsort
SELECT - col2 + 90 * + col1 FROM tab2 AS cor0
----
1492
2763
5284

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9991
SELECT ALL - col2 + - CAST( - 87 + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
11
33
35

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL - col2 + - CAST ( - 87 + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
11
33
35

query I rowsort
SELECT ALL + col0 + + col1 * ( col0 ) + col1 AS col2 FROM tab1
----
107
1133
714

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9993
SELECT ALL col0 + col0 * - CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL col0 + col0 * - CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab0.col0 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-9995
SELECT - col1 * 84 DIV col0 col2 FROM tab2 AS cor0
----
-18
-372
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9995
SELECT - col1 * 84 / col0 col2 FROM tab2 AS cor0
----
-18
-372
-63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9996
SELECT DISTINCT cor0.col1 * - CAST( - col2 AS SIGNED ) * col1 + col2 + 84 * - col1 AS col2 FROM tab0 cor0
----
1262
236877
671480

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT cor0.col1 * - CAST ( - col2 AS INTEGER ) * col1 + col2 + 84 * - col1 AS col2 FROM tab0 cor0
----
1262
236877
671480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + ( - col2 ) col2 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-9998
SELECT DISTINCT + col1 DIV - 52 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT + col1 / - 52 AS col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 97 col2 FROM tab2 AS cor0
----
-2522
-2619
-3686

