sqllogictest

Artifact [3bccb5e90b]
Login

Artifact 3bccb5e90b6e1068ed149ecec26508c83716ad33:


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 + 58 - + 10 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT - - cor0.col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + tab0.col2 + 70 * 97 FROM tab0
----
6791
6823
6872

query I rowsort
SELECT col0 * col1 * + 36 - tab2.col2 FROM tab2
----
165646
48310
7785

query I rowsort
SELECT - col0 * - col2 + - tab0.col0 FROM tab0
----
0
7209
768

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

skipif mysql # not compatible
query I rowsort label-5
SELECT - CAST ( + col1 AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6
SELECT CAST( + col0 AS SIGNED ) - - col2 AS col2 FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-6
SELECT CAST ( + col0 AS INTEGER ) - - col2 AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT tab1.col1 * col1 + tab1.col2 * tab1.col1 + + 16 FROM tab1
----
1433
2096
686

query I rowsort
SELECT DISTINCT ( 47 ) + col1 AS col2 FROM tab0 AS cor0
----
133
138
144

query I rowsort
SELECT + 15 * 15 FROM tab1 AS cor0
----
225
225
225

query I rowsort
SELECT - + col1 * - col2 * + col2 AS col1 FROM tab0 cor0
----
611884
93654
97

query I rowsort
SELECT ALL - cor0.col0 + + 52 FROM tab1 AS cor0
----
-12
-28
49

query I rowsort
SELECT ALL + col2 * col1 * + col1 + 35 * - col2 AS col0 FROM tab0 AS cor0
----
242913
676172
9374

query I rowsort
SELECT - - 14 * + col1 FROM tab0 AS cor0
----
1204
1274
1358

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

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

query I rowsort
SELECT DISTINCT + col0 + - 58 FROM tab0 AS cor0
----
-23
-34
31

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-17
SELECT - tab1.col2 DIV - 99 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-17
SELECT - tab1.col2 / - 99 FROM tab1
----
0
0
0

query I rowsort
SELECT - cor0.col1 * + 66 - - col1 AS col2 FROM tab2 AS cor0
----
-1105
-2015
-3835

query I rowsort
SELECT - + col0 + ( col1 ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + col1 * col1 * 66 AS col0 FROM tab2
----
19074
229746
63426

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

query I rowsort
SELECT - col1 - 30 * col2 AS col2 FROM tab1 AS cor0
----
-1646
-1720
-2893

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

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

query I rowsort
SELECT 62 FROM tab1, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT - col1 + + 91 FROM tab2 AS cor0
----
32
60
74

query I rowsort
SELECT ALL - col2 * 78 + + ( col1 ) AS col2 FROM tab1 AS cor0
----
-4186
-4436
-7475

query I rowsort
SELECT ALL - col2 + 30 AS col0 FROM tab2 AS cor0
----
-8
3
4

query I rowsort
SELECT + col2 * - col2 + col1 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT - - ( col2 ) + col1 + - ( col1 * - col1 ) FROM tab0 cor0
----
7515
8454
9507

query I rowsort
SELECT + col0 - - col0 AS col1 FROM tab0 AS cor0
----
178
48
70

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

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

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

query I rowsort
SELECT 5 * col1 + - col1 FROM tab2 cor0
----
124
236
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col2 col1 FROM tab1 AS cor0
----
108
114
192

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

skipif mysql # not compatible
query I rowsort label-35
SELECT - col2 / col0 + col2 FROM tab0 AS cor0
----
1
32
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-36
SELECT DISTINCT col1 + + CAST( col1 AS SIGNED ) DIV - col0 AS col0 FROM tab0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT col1 + + CAST ( col1 AS INTEGER ) / - col0 AS col0 FROM tab0
----
83
90
95

query I rowsort
SELECT - 10 - tab2.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 9ab5e6ccbdc1a17b335983e06cf3a6ab

query I rowsort
SELECT ALL + col0 + - ( tab2.col2 * tab2.col2 ) AS col2 FROM tab2
----
-1365
-598
-722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 * - 10 col1 FROM tab1 AS cor0
----
-1056
-594
-627

query I rowsort
SELECT ALL - ( - col0 ) AS col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - cor0.col2 - - cor0.col0 * + 28 * col2 FROM tab2 AS cor0
----
5265
56758
84018

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

query I rowsort
SELECT ALL + 14 * + col0 FROM tab1 cor0
----
1120
42
896

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 * + col1 col1 FROM tab1
----
-1742
-670
-871

query I rowsort
SELECT + 51 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( col1 ) * ( + col0 ) col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT - col1 + + 59 FROM tab0
----
-27
-32
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col0 ) * cor0.col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + 9 + + col2 AS col1 FROM tab1 AS cor0
----
105
63
66

query I rowsort
SELECT col0 + ( 29 ) AS col0 FROM tab0 AS cor0
----
118
53
64

query I rowsort
SELECT ALL - 43 * + col0 FROM tab1
----
-129
-2752
-3440

onlyif mysql # use DIV operator for integer division
query I rowsort label-53
SELECT ALL tab2.col2 DIV + col1 AS col0 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL tab2.col2 / + col1 AS col0 FROM tab2
----
0
0
2

query I rowsort
SELECT - 17 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT DISTINCT - 55 FROM tab1, tab1 AS cor0
----
-55

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 DISTINCT - cor0.col1 AS col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-17
-31
-59

query I rowsort
SELECT 56 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0, tab1 AS cor1
----
243 values hashing to f78ab7f4ab7761f90d40be7050808ae6

onlyif mysql # use DIV operator for integer division
query I rowsort label-59
SELECT DISTINCT - col2 + + col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT - col2 + + col1 / col2 AS col2 FROM tab0 AS cor0
----
-31
-81
96

query I rowsort
SELECT ALL + - col2 * 30 + col0 * - col0 FROM tab1 AS cor0
----
-1629
-5806
-9280

query I rowsort
SELECT DISTINCT + 92 * - col2 + col1 FROM tab1 AS cor0
----
-4942
-5234
-8819

onlyif mysql # use DIV operator for integer division
query I rowsort label-62
SELECT + col1 + col2 DIV col0 AS col2 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-62
SELECT + col1 + col2 / col0 AS col2 FROM tab0 AS cor0
----
87
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-63
SELECT ALL col1 * col2 DIV - col1 AS col1 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL col1 * col2 / - col1 AS col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ( col1 ) * + col2 + - col2 * cor0.col2 FROM tab2 AS cor0
----
-798
108
858

query I rowsort
SELECT + 44 + - col2 FROM tab1 AS cor0
----
-10
-13
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * col0 + - 30 * - 72 col0 FROM tab1 AS cor0
----
2163
2224
2240

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

query I rowsort
SELECT DISTINCT col1 + - col0 * 19 AS col1 FROM tab1 AS cor0
----
-1206
-1507
-31

query I rowsort
SELECT - 75 + cor0.col1 * cor0.col0 * - col1 FROM tab1 AS cor0
----
-13595
-2103
-6475

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

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

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

query I rowsort
SELECT ALL + 87 + tab0.col0 * tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 7ff62e192e8eec0f9ae10858e53aef78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * 4 col2 FROM tab1
----
272
272
272

query I rowsort
SELECT 24 * - col2 FROM tab2
----
-624
-648
-912

query I rowsort
SELECT ( - col2 ) * + col2 AS col0 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ( ( + col1 ) ) * col1 - - 46 AS col2 FROM tab1
----
146
215
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-77
SELECT DISTINCT tab2.col1 DIV 25 - col0 AS col2 FROM tab2
----
-6
-76
-79

skipif mysql # not compatible
query I rowsort label-77
SELECT DISTINCT tab2.col1 / 25 - col0 AS col2 FROM tab2
----
-6
-76
-79

query I rowsort
SELECT - 71 - + col2 AS col0 FROM tab0
----
-104
-153
-72

query I rowsort
SELECT 33 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT - - 92 AS col1 FROM tab1 AS cor0
----
92

query I rowsort
SELECT ALL 43 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1118
-1161
-1634

query I rowsort
SELECT - col2 * col2 * + col1 + col1 AS col2 FROM tab2 AS cor0
----
-22568
-24531
-39825

query I rowsort
SELECT - 68 + cor0.col1 AS col2 FROM tab1 cor0
----
-42
-55
-58

query I rowsort
SELECT DISTINCT - 68 * - col2 AS col2 FROM tab2 AS cor0
----
1768
1836
2584

query I rowsort
SELECT col1 + - cor0.col1 * col1 + col0 FROM tab2 AS cor0
----
-193
-3344
-923

query I rowsort
SELECT 3 - + col0 AS col2 FROM tab2 AS cor0
----
-4
-75
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-87
SELECT ALL + + 94 DIV col2 AS col0 FROM tab0 AS cor0
----
1
2
94

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL + + 94 / col2 AS col0 FROM tab0 AS cor0
----
1
2
94

query I rowsort
SELECT cor0.col2 * + ( 1 ) AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT 20 * 9 FROM tab1 AS cor0
----
180

query I rowsort
SELECT DISTINCT col1 + 99 AS col2 FROM tab2 AS cor0
----
116
130
158

query I rowsort
SELECT + col0 * col2 + - col1 - - col0 FROM tab0 AS cor0
----
-27
7296
730

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

query I rowsort
SELECT - ( - col0 ) * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + ( 23 ) * col1 FROM tab1 AS cor0
----
230
299
598

onlyif mysql # use DIV operator for integer division
query I rowsort label-95
SELECT + col2 + col0 DIV + col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-95
SELECT + col2 + col0 / + col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + col0 AS REAL ) + col1 / - col1 AS col1 FROM tab2 AS cor0
----
6
77
78

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-98
SELECT DISTINCT + + 67 DIV - tab0.col2 FROM tab0, tab0 AS cor0, tab1, tab2 AS cor1
----
-2
-67
0

skipif mysql # not compatible
query I rowsort label-98
SELECT DISTINCT + + 67 / - tab0.col2 FROM tab0, tab0 AS cor0, tab1, tab2 AS cor1
----
-2
-67
0

query I rowsort
SELECT DISTINCT - - ( - ( + col2 ) ) * + cor0.col2 + 26 FROM tab0 cor0
----
-1063
-6698
25

query I rowsort
SELECT ALL - col2 * + 22 AS col0 FROM tab1 AS cor0
----
-1188
-1254
-2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 76 col0 FROM tab0 AS cor0
----
162
167
173

query I rowsort
SELECT DISTINCT - 8 + + col2 FROM tab2 AS cor0
----
18
19
30

query I rowsort
SELECT ALL + - ( col1 ) FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - 9 AS col1 FROM tab1 cor0
----
-9
-9
-9

query I rowsort
SELECT + - col1 * 64 + col1 AS col0 FROM tab0 AS cor0
----
-5418
-5733
-6111

query I rowsort
SELECT ALL - - 31 * + ( - cor0.col1 ) FROM tab0 AS cor0
----
-2666
-2821
-3007

query I rowsort
SELECT DISTINCT - 3 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-21
-234
-237

query I rowsort
SELECT 55 * col2 + col2 AS col1 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT ALL - + 13 + + col2 FROM tab0 AS cor0
----
-12
20
69

query I rowsort
SELECT - - col2 * + col0 * col0 + - col2 AS col2 FROM tab0 AS cor0
----
1224
18975
649440

query I rowsort
SELECT ALL + col2 * col2 + + 63 AS col0 FROM tab0 AS cor0
----
1152
64
6787

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 * col0 + ( + col1 ) col0 FROM tab1 AS cor0
----
-233462
-460
-614387

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

query I rowsort
SELECT DISTINCT + col2 * ( - 39 * col2 ) AS col0 FROM tab2 AS cor0
----
-26364
-28431
-56316

query I rowsort
SELECT DISTINCT cor0.col0 + - col0 * 47 AS col1 FROM tab0 AS cor0
----
-1104
-1610
-4094

query I rowsort
SELECT ALL + + col2 * - ( + col0 ) + + col1 * + col2 FROM tab2 AS cor0
----
-2356
-494
648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + col1 col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL + col0 + col0 * col1 - cor0.col0 * + 84 FROM tab1 AS cor0
----
-171
-4672
-5600

query I rowsort
SELECT col0 + 52 * + 47 AS col2 FROM tab2
----
2451
2522
2523

query I rowsort
SELECT ALL 5 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # use DIV operator for integer division
query I rowsort label-122
SELECT + col0 DIV CAST( 4 AS SIGNED ) + col0 * - col2 * col1 FROM tab1
----
-36464
-4212
-99820

skipif mysql # not compatible
query I rowsort label-122
SELECT + col0 / CAST ( 4 AS INTEGER ) + col0 * - col2 * col1 FROM tab1
----
-36464
-4212
-99820

onlyif mysql # use DIV operator for integer division
query I rowsort label-123
SELECT cor0.col0 * col2 DIV col0 AS col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-123
SELECT cor0.col0 * col2 / col0 AS col2 FROM tab2 AS cor0
----
26
27
38

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

skipif mysql # not compatible
query I rowsort label-124
SELECT - col1 + + col2 / + col2 AS col0 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT + col1 * col1 AS col0 FROM tab2 WHERE NOT + col0 NOT IN ( col2 * tab2.col1 )
----

query I rowsort
SELECT cor0.col2 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col2 / + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 NOT IN ( col0 + col0 )
----

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT ( NULL ) <= tab2.col1
----

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

query I rowsort
SELECT DISTINCT col0 * col0 - + col0 * col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col0 - - col1 * col0 FROM tab1
----
576
75
960

query I rowsort
SELECT col1 * + col2 + col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL col0 * - col2 AS col0 FROM tab0 WHERE NULL > col1 AND NULL < ( col0 - col0 * + col1 * - tab0.col0 )
----

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

query I rowsort
SELECT ALL - cor0.col1 + col0 + - col2 FROM tab1 AS cor0
----
-29
-3
-77

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-140
SELECT + cor0.col1 DIV col1 + col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-140
SELECT + cor0.col1 / col1 + col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL 7 + - tab0.col2 AS col0 FROM tab0
----
-26
-75
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-142
SELECT ALL cor0.col1 + + CAST( col1 AS SIGNED ) * + cor0.col0 + + col2 * + 84 FROM tab0 cor0
----
15078
3576
4922

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL cor0.col1 + + CAST ( col1 AS INTEGER ) * + cor0.col0 + + col2 * + 84 FROM tab0 cor0
----
15078
3576
4922

query I rowsort
SELECT DISTINCT + col0 - col1 * - cor0.col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL + col1 + 94 FROM tab0 AS cor0
----
180
185
191

query I rowsort
SELECT ALL + cor0.col1 * ( + 93 ) + + col0 * + ( col0 ) FROM tab2 cor0
----
11571
2932
7822

query I rowsort
SELECT - col0 * 91 FROM tab0 AS cor0
----
-2184
-3185
-8099

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-149
SELECT DISTINCT + - col2 DIV - col2 + col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT + - col2 / - col2 + col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 * CAST ( cor0.col2 AS REAL ) + + cor0.col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - ( + col1 ) * - ( + col1 * - col1 ) AS col0 FROM tab2
----
-205379
-29791
-4913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 + col1 col1 FROM tab1
----
-44
-54
49

query I rowsort
SELECT ALL col1 * tab0.col0 + col2 * col0 + col2 FROM tab0
----
15479
2889
3431

query I rowsort
SELECT + tab0.col0 * col2 + col1 * + col1 AS col0 FROM tab0
----
15579
8188
9444

query I rowsort
SELECT col1 * - tab2.col2 * col1 FROM tab2
----
-10982
-25947
-90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 + - tab0.col0 * col2 + - col0 col1 FROM tab0
----
-7296
-730
27

query I rowsort
SELECT + col2 * tab2.col1 + - col2 AS col2 FROM tab2
----
1508
608
810

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

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( + col0 + - col0 * + col2 )
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-161
SELECT col0 * col1 DIV col1 + col0 AS col0 FROM tab0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-161
SELECT col0 * col1 / col1 + col0 AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT tab1.col1 + - col0 * + col0 * col2 FROM tab1
----
-233462
-460
-614387

query I rowsort
SELECT col1 * tab0.col2 + - col2 * col2 FROM tab0
----
1749
738
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 NOT IN ( col0 + + tab0.col1 * col0 )
----

query I rowsort
SELECT ALL col1 * - col0 + tab1.col0 FROM tab1
----
-576
-75
-960

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + col1 IN ( col2 * col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT - tab1.col0 * col0 - col2 FROM tab1
----
-4153
-63
-6496

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

query I rowsort
SELECT - col2 * - col2 - col2 FROM tab2
----
1406
650
702

query I rowsort
SELECT - col2 * + tab0.col2 + - col2 AS col1 FROM tab0
----
-1122
-2
-6806

query I rowsort
SELECT DISTINCT col2 + col1 * col0 * col2 + col1 FROM tab0
----
3493
664291
68231

query I rowsort
SELECT DISTINCT - col0 + - tab2.col1 * tab2.col1 + + col2 * tab2.col2 * - col1 FROM tab2
----
-23567
-24916
-43443

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 * col1 - + col0 / - col0 ) NOT IN ( - tab0.col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-175
SELECT col2 * - col0 DIV + col0 - - tab2.col1 AS col1 FROM tab2
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-175
SELECT col2 * - col0 / + col0 - - tab2.col1 AS col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT + col1 + + col2 * col1 AS col0 FROM tab2
----
1593
663
868

query I rowsort
SELECT ALL + col0 * col1 + - col1 AS col0 FROM tab2
----
1326
186
4543

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

query I rowsort
SELECT DISTINCT col2 + 30 * - cor0.col2 * + col1 FROM tab2 AS cor0
----
-19342
-25083
-45994

query I rowsort
SELECT ALL - + cor0.col0 * ( + 31 ) AS col2 FROM tab2 AS cor0
----
-217
-2418
-2449

query I rowsort
SELECT DISTINCT + col1 + 3 + col0 * col1 * + 14 AS col0 FROM tab0 AS cor0
----
113480
28985
47630

onlyif mysql # use DIV operator for integer division
query I rowsort label-182
SELECT col1 - - col0 DIV + col2 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-182
SELECT col1 - - col0 / + col2 FROM tab0 AS cor0
----
132
86
92

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

skipif mysql # not compatible
query I rowsort label-183
SELECT + - col1 - - col2 / col2 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT - - col0 + ( col0 ) * + col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT - + 23 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

query I rowsort
SELECT ALL + col2 + - ( - col2 ) * col1 + col2 FROM tab1 AS cor0
----
1440
1512
684

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

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

query I rowsort
SELECT + col0 + - 90 AS col0 FROM tab1 AS cor0
----
-10
-26
-87

query I rowsort
SELECT - - col1 * 34 AS col2 FROM tab2 cor0
----
1054
2006
578

query I rowsort
SELECT col0 * + ( col2 ) * - col1 + 92 - - col2 * + col1 FROM tab1 AS cor0
----
-2716
-35818
-98500

query I rowsort
SELECT col0 * 13 - col2 * - col0 FROM tab2
----
280
3042
4029

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-194
SELECT DISTINCT CAST( col1 AS SIGNED ) + col2 AS col0 FROM tab1
----
109
67
80

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT CAST ( col1 AS INTEGER ) + col2 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL - col2 * tab0.col1 + + col0 * + ( 54 ) * + col0 + 32 * - col1 AS col1 FROM tab0
----
25514
417360
62949

query I rowsort
SELECT + col1 * - col1 + tab1.col0 * col1 AS col1 FROM tab1
----
-598
540
871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * cor0.col1 col2 FROM tab0, tab2 cor0
----
9 values hashing to 06f1aa65839c1bfc8581580bacdb6787

query I rowsort
SELECT DISTINCT + 19 * + col0 * - col0 AS col1 FROM tab2
----
-115596
-118579
-931

query I rowsort
SELECT ALL + 18 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to a13db73ec93475d2821cb4a6d0eff298

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 + cor0.col1 * - col2 col0 FROM tab1 AS cor0
----
-1238
-1394
-560

query I rowsort
SELECT ALL + cor0.col0 * col1 * col0 + col0 * + col2 AS col1 FROM tab0 AS cor0
----
118860
50328
728109

query I rowsort
SELECT col2 * col2 + - col0 AS col2 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT + - col1 + - col1 * 19 FROM tab2 AS cor0
----
-1180
-340
-620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 + - cor0.col0 * cor0.col0 col2 FROM tab1 AS cor0
----
-4040
-6344
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-206
SELECT ALL col2 DIV col2 col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-206
SELECT ALL col2 / col2 col1 FROM tab1
----
1
1
1

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-209
SELECT DISTINCT + 31 DIV ( + tab1.col0 * 47 ) + - 26 AS col2 FROM tab1, tab1 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-209
SELECT DISTINCT + 31 / ( + tab1.col0 * 47 ) + - 26 AS col2 FROM tab1, tab1 cor0
----
-26

query I rowsort
SELECT + 3 * - 93 FROM tab2, tab2 AS cor0
----
9 values hashing to 42687e721c3d885871859e807e22efd8

onlyif mysql # use DIV operator for integer division
query I rowsort label-211
SELECT col2 + 97 DIV 45 AS col1 FROM tab2 AS cor0
----
28
29
40

skipif mysql # not compatible
query I rowsort label-211
SELECT col2 + 97 / 45 AS col1 FROM tab2 AS cor0
----
28
29
40

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

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

query I rowsort
SELECT DISTINCT - + col2 * - 21 FROM tab0 AS cor0
----
1722
21
693

onlyif mysql # use DIV operator for integer division
query I rowsort label-214
SELECT + - col2 + cor0.col0 DIV + col1 FROM tab2 AS cor0
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-214
SELECT + - col2 + cor0.col0 / + col1 FROM tab2 AS cor0
----
-25
-27
-34

query I rowsort
SELECT DISTINCT - col0 + 84 AS col2 FROM tab1
----
20
4
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-216
SELECT + ( - col0 ) DIV + col1 + - 71 AS col1 FROM tab2 AS cor0
----
-71
-72
-75

skipif mysql # not compatible
query I rowsort label-216
SELECT + ( - col0 ) / + col1 + - 71 AS col1 FROM tab2 AS cor0
----
-71
-72
-75

query I rowsort
SELECT + + col2 * - col1 - col1 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT 16 * + cor0.col1 + col2 FROM tab2 AS cor0
----
310
523
970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-219
SELECT ALL - + CAST( - 3 AS SIGNED ) + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1346
220
4605

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL - + CAST ( - 3 AS INTEGER ) + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1346
220
4605

onlyif mysql # use DIV operator for integer division
query I rowsort label-220
SELECT - col2 DIV col2 + col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-220
SELECT - col2 / col2 + col0 / - col0 AS col0 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT col0 + 78 FROM tab0
----
102
113
167

query I rowsort
SELECT 25 * tab0.col0 + - col2 AS col0 FROM tab0
----
2143
567
874

onlyif mysql # use DIV operator for integer division
query I rowsort label-223
SELECT col1 + ( - col1 ) DIV col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-223
SELECT col1 + ( - col1 ) / col1 FROM tab2
----
16
30
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-224
SELECT 24 * + col0 DIV + col0 + - col2 * + ( - col1 * - ( + col2 ) ) FROM tab1
----
-119784
-32466
-75792

skipif mysql # not compatible
query I rowsort label-224
SELECT 24 * + col0 / + col0 + - col2 * + ( - col1 * - ( + col2 ) ) FROM tab1
----
-119784
-32466
-75792

query I rowsort
SELECT ALL + 38 + ( col2 + - ( - col2 ) * - col0 ) FROM tab0
----
-7178
-721
4

query I rowsort
SELECT ALL + - col0 + 49 * - col1 FROM tab1 AS cor0
----
-1277
-554
-717

query I rowsort
SELECT ALL - col2 + + 42 * - col1 * col0 + col1 FROM tab2 AS cor0
----
-193251
-56427
-9110

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-229
SELECT DISTINCT - - CAST( 1 AS SIGNED ) * + col2 - + 49 AS col0 FROM tab1 AS cor0
----
47
5
8

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT - - CAST ( 1 AS INTEGER ) * + col2 - + 49 AS col0 FROM tab1 AS cor0
----
47
5
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-230
SELECT + CAST( col1 AS SIGNED ) - col2 AS col0 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-230
SELECT + CAST ( col1 AS INTEGER ) - col2 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT col1 + col0 + col0 FROM tab0 AS cor0
----
134
167
269

query I rowsort
SELECT + 99 + - 17 * + col1 FROM tab2 cor0
----
-190
-428
-904

query I rowsort
SELECT ALL + 1 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT DISTINCT - col2 + col1 * - ( - ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT DISTINCT + col1 * + col1 + 88 AS col1 FROM tab0 cor0
----
7484
8369
9497

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 86 - + col1 col1 FROM tab0 AS cor0
----
-172
-177
-183

query I rowsort
SELECT + col0 * - col0 + + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT + - 33 + col2 + ( 98 ) FROM tab0 AS cor0
----
147
66
98

query I rowsort
SELECT ALL + - 29 * - col0 + + col0 AS col1 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT DISTINCT + - col0 * + col1 + col2 * cor0.col1 FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT ALL + - cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - 47 * - col2 AS col2 FROM tab0 AS cor0
----
1551
3854
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-243
SELECT - + col1 DIV + col0 + - col2 FROM tab2 cor0
----
-26
-31
-38

skipif mysql # not compatible
query I rowsort label-243
SELECT - + col1 / + col0 + - col2 FROM tab2 cor0
----
-26
-31
-38

query I rowsort
SELECT DISTINCT + + col1 - col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL ( 73 ) + - tab0.col0 * ( + col1 + + tab0.col0 ) FROM tab0
----
-15947
-2567
-4547

query I rowsort
SELECT ALL - col1 * col1 + col2 * + 6 FROM tab2
----
-3325
-61
-799

onlyif mysql # use DIV operator for integer division
query I rowsort label-247
SELECT + col0 DIV cor0.col2 + col0 + - cor0.col0 col1 FROM tab0 AS cor0
----
0
1
35

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

query I rowsort
SELECT ALL + cor1.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - col0 + 40 FROM tab1 cor0
----
-24
-40
37

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

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

query I rowsort
SELECT cor1.col0 * cor1.col0 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 368b2268fa85c1d99bbd086f4591b02b

query I rowsort
SELECT + 48 * 13 FROM tab0 AS cor0
----
624
624
624

query I rowsort
SELECT - ( - col2 + 71 ) * col0 AS col0 FROM tab1
----
-51
-896
2000

query I rowsort
SELECT + col0 + ( - 95 ) + col2 AS col2 FROM tab1 AS cor0
----
-38
26
81

query I rowsort
SELECT DISTINCT col1 * tab1.col0 + col2 + 80 AS col1 FROM tab1
----
1216
212
777

query I rowsort
SELECT - ( - col0 + + ( - col1 ) ) * - col0 AS col0 FROM tab0
----
-16020
-2640
-4620

onlyif mysql # use DIV operator for integer division
query I rowsort label-258
SELECT ALL col2 + CAST( col0 AS SIGNED ) * + cor0.col2 DIV + col2 + ( - col1 ) AS col0 FROM tab1 AS cor0
----
111
163
31

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL col2 + CAST ( col0 AS INTEGER ) * + cor0.col2 / + col2 + ( - col1 ) AS col0 FROM tab1 AS cor0
----
111
163
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-259
SELECT DISTINCT - + cor0.col0 DIV col0 + - ( - col2 * + col0 ) FROM tab0 AS cor0
----
34
7297
791

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT - + cor0.col0 / col0 + - ( - col2 * + col0 ) FROM tab0 AS cor0
----
34
7297
791

query I rowsort
SELECT DISTINCT + col0 + - 52 * + 40 AS col2 FROM tab1 cor0
----
-2000
-2016
-2077

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

query I rowsort
SELECT + tab1.col1 * + col2 * - col1 FROM tab1
----
-16224
-36504
-5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 63 col1 FROM tab1
----
3402
3591
6048

query I rowsort
SELECT + 98 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT - cor0.col2 * - ( col0 ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-266
SELECT + + cor0.col0 + ( ( + col2 ) ) + CAST( 16 AS SIGNED ) * + col1 col2 FROM tab0 AS cor0
----
1433
1588
1627

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-266
SELECT + + cor0.col0 + ( ( + col2 ) ) + CAST ( 16 AS INTEGER ) * + col1 col2 FROM tab0 AS cor0
----
1433
1588
1627

query I rowsort
SELECT - col1 + ( 13 ) AS col1 FROM tab0 AS cor0
----
-73
-78
-84

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

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

query I rowsort
SELECT + cor0.col0 * - ( - 62 ) FROM tab2 cor0
----
434
4836
4898

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-271
SELECT col2 * + CAST( + 54 AS SIGNED ) FROM tab1 AS cor0
----
2916
3078
5184

skipif mysql # not compatible
query I rowsort label-271
SELECT col2 * + CAST ( + 54 AS INTEGER ) FROM tab1 AS cor0
----
2916
3078
5184

query I rowsort
SELECT DISTINCT + col1 + ( + ( - col1 ) ) * - 26 AS col1 FROM tab0 AS cor0
----
2322
2457
2619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 88 col0 FROM tab1 AS cor0
----
142
145
184

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

query I rowsort
SELECT ALL - col0 - - 83 FROM tab0
----
-6
48
59

query I rowsort
SELECT - tab1.col2 + + col1 - + 27 FROM tab1
----
-110
-55
-74

query I rowsort
SELECT 88 * - cor0.col2 FROM tab1 AS cor0
----
-4752
-5016
-8448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + 17 col0 FROM tab2 AS cor0
----
43
44
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * + col2 + col2 + col2 col2 FROM tab1 AS cor0
----
-378
-399
-672

query I rowsort
SELECT + col1 + ( cor0.col2 + + col1 * cor0.col2 ) AS col0 FROM tab0 AS cor0
----
195
2957
7635

query I rowsort
SELECT ALL + ( + 36 ) * col2 FROM tab0 cor0
----
1188
2952
36

query I rowsort
SELECT - - 94 * + col2 + + col1 + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-179
2119
2186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 * col0 col1 FROM tab1 AS cor0
----
2048
2560
96

query I rowsort
SELECT + + 74 * col2 AS col0 FROM tab2 cor0
----
1924
1998
2812

query I rowsort
SELECT - ( - col2 ) + 30 AS col1 FROM tab1 AS cor0
----
126
84
87

query I rowsort
SELECT - 25 AS col0 FROM tab2 cor0
----
-25
-25
-25

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

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT + col1 + col0 * col2 * - 31 AS col1 FROM tab1
----
-113078
-238067
-4996

onlyif mysql # use DIV operator for integer division
query I rowsort label-290
SELECT CAST( col2 AS SIGNED ) DIV - col1 + col1 AS col0 FROM tab2
----
15
31
59

skipif mysql # not compatible
query I rowsort label-290
SELECT CAST ( col2 AS INTEGER ) / - col1 + col1 AS col0 FROM tab2
----
15
31
59

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

query I rowsort
SELECT + ( tab1.col0 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 + - 27 col1 FROM tab0
----
-3
62
8

query I rowsort
SELECT 95 + col2 * col1 * - col2 AS col1 FROM tab1
----
-119713
-32395
-75721

query I rowsort
SELECT ALL - ( - col2 ) * - col0 + 55 FROM tab2 cor0
----
-134
-1973
-2947

query I rowsort
SELECT - 23 * 30 FROM tab1 cor0
----
-690
-690
-690

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col0 * - col1 col2 FROM tab1 cor0
----
-104
-1053
-650

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

query I rowsort
SELECT ALL + col2 + - cor0.col1 * ( - col1 ) FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT + - 95 + col1 FROM tab2 AS cor0
----
-36
-64
-78

query I rowsort
SELECT DISTINCT col1 + + col0 * + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT col0 * col1 * - col1 + - 4 + col1 * cor0.col2 * + 65 AS col1 FROM tab2 AS cor0
----
-171812
19155
47674

query I rowsort
SELECT ALL + - col1 + col1 + 51 FROM tab2 cor0
----
51
51
51

query I rowsort
SELECT ALL + 35 + + col0 FROM tab2 AS cor0
----
113
114
42

query I rowsort
SELECT DISTINCT + 13 + + cor0.col0 * - 47 + + col0 * col0 FROM tab1 AS cor0
----
-119
1101
2653

query I rowsort
SELECT DISTINCT tab0.col1 FROM tab0, tab2, tab2 AS cor0
----
86
91
97

query I rowsort
SELECT 25 * - col1 + col1 FROM tab0
----
-2064
-2184
-2328

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

query I rowsort
SELECT DISTINCT - + col2 * col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT - ( + col2 ) * - col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT 68 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT + col1 + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT - col1 * 57 + - col2 FROM tab1 AS cor0
----
-1536
-627
-837

query I rowsort
SELECT DISTINCT col1 * 57 FROM tab1 cor0
----
1482
570
741

query I rowsort
SELECT DISTINCT - col1 * - 16 * + 94 + col0 * 27 FROM tab0 cor0
----
129992
139267
146833

query I rowsort
SELECT ALL cor0.col1 + - col1 * + 81 AS col1 FROM tab0 AS cor0
----
-6880
-7280
-7760

query I rowsort
SELECT ALL col2 * 52 FROM tab0 AS cor0
----
1716
4264
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-319
SELECT ALL + col1 * + CAST( + col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-319
SELECT ALL + col1 * + CAST ( + col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
7396
8281
9409

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-321
SELECT ALL + + col0 + - col1 DIV - 81 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL + + col0 + - col1 / - 81 FROM tab0 AS cor0
----
25
36
90

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

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

query I rowsort
SELECT - col1 + - ( col2 ) * + col1 * - col1 FROM tab0 AS cor0
----
243982
678951
9312

query I rowsort
SELECT ALL + + col0 + - 27 * - col1 FROM tab1 AS cor0
----
334
431
705

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

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

query I rowsort
SELECT - 42 + col2 AS col2 FROM tab2 AS cor0
----
-15
-16
-4

query I rowsort
SELECT + 32 + col0 FROM tab0 cor0
----
121
56
67

query I rowsort
SELECT ALL - 76 + + col1 FROM tab2 AS cor0
----
-17
-45
-59

query I rowsort
SELECT 17 * col1 FROM tab0 cor0
----
1462
1547
1649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 * + col0 col2 FROM tab2 cor0
----
-532
-5928
-6004

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

skipif mysql # not compatible
query I rowsort label-331
SELECT DISTINCT cor0.col1 / - col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT + col2 + col2 * col1 AS col0 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT + col1 * 28 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
2432
2637
2751

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-334
SELECT ALL ( col1 ) * + col1 + 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-334
SELECT ALL ( col1 ) * + col1 + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-335
SELECT + + ( + col2 ) * col2 DIV 20 FROM tab2 AS cor0
----
33
36
72

skipif mysql # not compatible
query I rowsort label-335
SELECT + + ( + col2 ) * col2 / 20 FROM tab2 AS cor0
----
33
36
72

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col0 * + col2 AS REAL ) + - 36 FROM tab0
----
-71
-7334
-828

onlyif mysql # use DIV operator for integer division
query I rowsort label-337
SELECT 6 * 3 * col1 + 4 DIV col0 FROM tab0
----
1548
1638
1746

skipif mysql # not compatible
query I rowsort label-337
SELECT 6 * 3 * col1 + 4 / col0 FROM tab0
----
1548
1638
1746

query I rowsort
SELECT + 20 + 62 AS col1 FROM tab2 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( + col0 AS REAL ) * + cor0.col1 * + ( + 57 ) AS col0 FROM tab1 AS cor0
----
-36480
-4446
-59280

query I rowsort
SELECT DISTINCT 5 - + col2 FROM tab2 AS cor0
----
-21
-22
-33

query I rowsort
SELECT - 50 * cor0.col2 FROM tab2 AS cor0
----
-1300
-1350
-1900

query I rowsort
SELECT ALL ( col2 ) - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT 48 + - cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 2f94366069767c040525fd4474959da7

onlyif mysql # use DIV operator for integer division
query I rowsort label-344
SELECT - + col2 * 23 DIV 48 AS col1 FROM tab0 AS cor0
----
-15
-39
0

skipif mysql # not compatible
query I rowsort label-344
SELECT - + col2 * 23 / 48 AS col1 FROM tab0 AS cor0
----
-15
-39
0

query I rowsort
SELECT DISTINCT + 4 AS col0 FROM tab2 AS cor0
----
4

query I rowsort
SELECT ALL - - 91 FROM tab0 cor0
----
91
91
91

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-348
SELECT ALL - col1 * - CAST( + col2 AS SIGNED ) + cor0.col0 * col0 FROM tab1 AS cor0
----
1413
4666
7648

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL - col1 * - CAST ( + col2 AS INTEGER ) + cor0.col0 * col0 FROM tab1 AS cor0
----
1413
4666
7648

query I rowsort
SELECT - col0 * - col0 * - cor0.col0 + col2 * col0 FROM tab2 AS cor0
----
-154
-472524
-490037

query I rowsort
SELECT col1 + col0 + - 64 FROM tab1
----
-35
10
29

query I rowsort
SELECT DISTINCT - col0 + tab1.col1 + - col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL col2 * col2 + - tab2.col2 FROM tab2
----
1406
650
702

query I rowsort
SELECT DISTINCT - col2 + + col0 * col1 * col2 FROM tab0
----
3394
664036
68079

query I rowsort
SELECT + col1 * + 60 FROM tab1
----
1560
600
780

query I rowsort
SELECT + + col2 * ( - col1 ) + col1 * col1 * + 14 FROM tab1 AS cor0
----
1118
8060
830

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

query I rowsort
SELECT ALL + col1 * col2 * + col1 AS col2 FROM tab2 cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT + - col0 * - 30 AS col1 FROM tab2 AS cor0
----
210
2340
2370

query I rowsort
SELECT ALL + col0 - - col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + - cor0.col2 - col0 FROM tab2 AS cor0
----
-104
-117
-34

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

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

query I rowsort
SELECT DISTINCT col2 + ( - col1 ) * - col0 * 21 AS col2 FROM tab0 AS cor0
----
170161
43377
71296

query I rowsort
SELECT DISTINCT col1 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - col0 * col1 + - ( col0 ) * - col2 AS col1 FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT 64 + - col0 AS col1 FROM tab2 cor0
----
-14
-15
57

query I rowsort
SELECT - col1 + col0 * - ( + col1 ) AS col1 FROM tab1 AS cor0
----
-104
-1053
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-367
SELECT - col0 DIV col1 + - col0 FROM tab2 AS cor0
----
-7
-79
-83

skipif mysql # not compatible
query I rowsort label-367
SELECT - col0 / col1 + - col0 FROM tab2 AS cor0
----
-7
-79
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 25 col0 FROM tab2 AS cor0
----
51
52
63

query I rowsort
SELECT - cor0.col1 * 54 AS col2 FROM tab1 AS cor0
----
-1404
-540
-702

query I rowsort
SELECT tab1.col1 * tab1.col1 AS col1 FROM tab1
----
100
169
676

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

query I rowsort
SELECT - 2 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to fbbdc69ed4bc9a68f44d1ba867b620b3

query I rowsort
SELECT + + col1 + ( cor0.col1 + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT ALL + ( + col2 ) * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-376
SELECT - 84 DIV 33 - col2 AS col0 FROM tab1 AS cor0
----
-56
-59
-98

skipif mysql # not compatible
query I rowsort label-376
SELECT - 84 / 33 - col2 AS col0 FROM tab1 AS cor0
----
-56
-59
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-377
SELECT DISTINCT + cor0.col2 DIV - col2 + - col2 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT + cor0.col2 / - col2 + - col2 FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT + - 29 * - cor0.col2 + col1 * col1 FROM tab0 AS cor0
----
10659
8353
9438

query I rowsort
SELECT col0 * + 56 + col1 FROM tab2
----
423
4427
4441

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

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

query I rowsort
SELECT ALL + 11 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT + + col1 - col2 * - 75 * - cor0.col0 FROM tab0 AS cor0
----
-2528
-547259
-59314

query I rowsort
SELECT ALL - 86 + col2 FROM tab1
----
-29
-32
10

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + col0 * 41 - + col2 * - col2 col0 FROM tab2 AS cor0
----
3848
4645
989

query I rowsort
SELECT ALL + - ( + col1 ) + ( - cor0.col2 ) FROM tab2 cor0
----
-55
-58
-85

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

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

query I rowsort
SELECT DISTINCT + - col0 + col1 AS col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT 83 AS col0 FROM tab2, tab2 AS cor0
----
83

query I rowsort
SELECT 26 * + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to be6822a5beb60dd05700c5edd2c682b6

query I rowsort
SELECT DISTINCT col2 + col2 - + ( col1 ) FROM tab1
----
104
179
82

query I rowsort
SELECT ALL col1 - - col0 * ( + ( col1 ) ) AS col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT 46 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT - ( tab0.col0 ) * 61 * + tab0.col2 FROM tab0
----
-2135
-445178
-48312

query I rowsort
SELECT + + ( + col2 ) * - col1 + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-398
SELECT ALL - col1 DIV + ( - 57 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL - col1 / + ( - 57 ) FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 38 col2 FROM tab2
----
266
2964
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-400
SELECT col1 DIV - 80 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-400
SELECT col1 / - 80 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 66 FROM tab1, tab0 cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT col0 + ( + 69 ) FROM tab0
----
104
158
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-403
SELECT - cor0.col1 + + cor0.col2 DIV cor0.col1 FROM tab1 cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-403
SELECT - cor0.col1 + + cor0.col2 / cor0.col1 FROM tab1 cor0
----
-24
-5
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-404
SELECT - 10 DIV 24 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-404
SELECT - 10 / 24 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * col1 * col1 AS col1 FROM tab1 AS cor0
----
1000
17576
2197

query I rowsort
SELECT - col0 * 62 AS col1 FROM tab2 AS cor0
----
-434
-4836
-4898

query I rowsort
SELECT col2 * 53 FROM tab1 cor0
----
2862
3021
5088

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

query I rowsort
SELECT + - col2 * - 19 * col1 FROM tab2 AS cor0
----
12274
15903
29146

onlyif mysql # use DIV operator for integer division
query I rowsort label-410
SELECT 87 DIV - col0 FROM tab1 AS cor0
----
-1
-1
-29

skipif mysql # not compatible
query I rowsort label-410
SELECT 87 / - col0 FROM tab1 AS cor0
----
-1
-1
-29

query I rowsort
SELECT + - 1 * - 57 * - col2 FROM tab1 AS cor0
----
-3078
-3249
-5472

query I rowsort
SELECT - - 70 * col0 AS col2 FROM tab2 AS cor0
----
490
5460
5530

onlyif mysql # use DIV operator for integer division
query I rowsort label-413
SELECT ALL col2 DIV + col1 + col0 * - col0 FROM tab0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL col2 / + col1 + col0 * - col0 FROM tab0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-414
SELECT ALL + col2 DIV col1 + col2 + col0 AS col0 FROM tab2
----
104
119
34

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL + col2 / col1 + col2 + col0 AS col0 FROM tab2
----
104
119
34

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-416
SELECT + + 33 + cor0.col0 + 24 DIV ( - col1 ) AS col0 FROM tab2 AS cor0
----
111
111
40

skipif mysql # not compatible
query I rowsort label-416
SELECT + + 33 + cor0.col0 + 24 / ( - col1 ) AS col0 FROM tab2 AS cor0
----
111
111
40

query I rowsort
SELECT + 34 + + col0 * col2 + col2 AS col1 FROM tab1 cor0
----
250
3739
7810

query I rowsort
SELECT DISTINCT col1 * col2 + - 36 FROM tab0
----
2802
61
7426

query I rowsort
SELECT - ( col0 ) - + col0 AS col1 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT ALL - ( - tab1.col1 ) + 61 + + col1 FROM tab1
----
113
81
87

query I rowsort
SELECT DISTINCT - col0 * - col0 + - 5 + + col1 FROM tab1
----
30
4101
6408

query I rowsort
SELECT + - 63 AS col2 FROM tab0, tab2, tab2 cor0
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + 0 + col1 col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT - col0 + ( + col1 ) + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1181
1427
516

query I rowsort
SELECT ALL col1 * - 59 FROM tab2 cor0
----
-1003
-1829
-3481

query I rowsort
SELECT DISTINCT 66 AS col2 FROM tab2, tab2 AS cor0
----
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-427
SELECT col2 DIV 70 + + col0 AS col2 FROM tab1
----
3
64
81

skipif mysql # not compatible
query I rowsort label-427
SELECT col2 / 70 + + col0 AS col2 FROM tab1
----
3
64
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-428
SELECT + 85 - + col2 * + col1 * CAST( - 72 AS SIGNED ) FROM tab1 AS cor0
----
101173
41125
89941

skipif mysql # not compatible
query I rowsort label-428
SELECT + 85 - + col2 * + col1 * CAST ( - 72 AS INTEGER ) FROM tab1 AS cor0
----
101173
41125
89941

query I rowsort
SELECT DISTINCT - + 77 AS col0 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ALL - col1 * 50 AS col0 FROM tab2 AS cor0
----
-1550
-2950
-850

query I rowsort
SELECT DISTINCT + col2 * 45 * cor0.col1 + 21 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
128403
337512
4386

query I rowsort
SELECT - + col0 - col2 * - col0 AS col1 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-433
SELECT ALL + col0 * + col2 + col2 * 49 DIV + col0 col0 FROM tab1 AS cor0
----
1044
3691
7738

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-433
SELECT ALL + col0 * + col2 + col2 * 49 / + col0 col0 FROM tab1 AS cor0
----
1044
3691
7738

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 + col2 * + col2 col1 FROM tab0 AS cor0
----
1157
6792
69

query I rowsort
SELECT - col2 + col0 + - col1 AS col2 FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT col2 + cor0.col2 + + col2 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT 37 + - col2 * - col1 FROM tab0 AS cor0
----
134
2875
7499

query I rowsort
SELECT + + col0 + - 16 * + col0 FROM tab1 AS cor0
----
-1200
-45
-960

query I rowsort
SELECT DISTINCT + 12 AS col2 FROM tab2 cor0
----
12

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

query I rowsort
SELECT DISTINCT - - col2 + col2 * 77 AS col0 FROM tab0 AS cor0
----
2574
6396
78

query I rowsort
SELECT ALL - - 86 * col2 + col2 AS col2 FROM tab1 AS cor0
----
4698
4959
8352

query I rowsort
SELECT 59 * cor0.col2 AS col0 FROM tab1 AS cor0
----
3186
3363
5664

query I rowsort
SELECT ALL - 0 + - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT 27 FROM tab1, tab0 cor0 CROSS JOIN tab0
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT ALL - 41 * + 57 * + col0 FROM tab1
----
-149568
-186960
-7011

onlyif mysql # use DIV operator for integer division
query I rowsort label-447
SELECT DISTINCT col2 DIV - col1 + col2 + + col0 AS col1 FROM tab1 AS cor0
----
116
169
55

skipif mysql # not compatible
query I rowsort label-447
SELECT DISTINCT col2 / - col1 + col2 + + col0 AS col1 FROM tab1 AS cor0
----
116
169
55

query I rowsort
SELECT col0 * col1 + col1 AS col2 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - - 98 FROM tab2 cor0
----
98

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

query I rowsort
SELECT DISTINCT + col1 + col1 * + col0 FROM tab1 AS cor0
----
104
1053
650

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-453
SELECT - col1 DIV col2 + col2 AS col1 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-453
SELECT - col1 / col2 + col2 AS col1 FROM tab0 AS cor0
----
-96
31
81

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

query I rowsort
SELECT col0 * - ( - col1 ) * col1 + + col0 FROM tab2
----
22910
271596
6734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col1 ) col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT cor0.col0 + - cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + 28 * col0 + col1 FROM tab2 AS cor0
----
2229
2243
227

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 * + cor0.col2 + + cor0.col2 col2 FROM tab1 AS cor0
----
-1139
-1324
-503

query I rowsort
SELECT ALL col2 - col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + 29 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-9
2
3

query I rowsort
SELECT DISTINCT 15 + - col1 FROM tab1
----
-11
2
5

query I rowsort
SELECT 46 * - tab0.col0 * tab0.col2 AS col0 FROM tab0
----
-1610
-335708
-36432

onlyif mysql # use DIV operator for integer division
query I rowsort label-465
SELECT ALL + 75 DIV col0 + col2 FROM tab2
----
26
37
38

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL + 75 / col0 + col2 FROM tab2
----
26
37
38

query I rowsort
SELECT DISTINCT + 87 + col0 FROM tab2
----
165
166
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 * col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-468
SELECT ALL - CAST( NULL AS DECIMAL ) + + col1 / cor0.col2 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-468
SELECT ALL - CAST ( NULL AS REAL ) + + col1 / cor0.col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-469
SELECT + - col2 DIV + 75 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-469
SELECT + - col2 / + 75 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL col2 * + 18 FROM tab2
----
468
486
684

query I rowsort
SELECT ALL col1 * 6 FROM tab1
----
156
60
78

query I rowsort
SELECT ALL - tab0.col0 * - 33 FROM tab0
----
1155
2937
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-473
SELECT DISTINCT 37 * tab2.col1 - col0 DIV col0 AS col0 FROM tab2
----
1146
2182
628

skipif mysql # not compatible
query I rowsort label-473
SELECT DISTINCT 37 * tab2.col1 - col0 / col0 AS col0 FROM tab2
----
1146
2182
628

query I rowsort
SELECT ALL - ( - 96 ) - - col1 FROM tab0
----
182
187
193

query I rowsort
SELECT DISTINCT ( col0 ) - + tab1.col1 * - col1 * col1 FROM tab1
----
1064
17579
2277

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

query I rowsort
SELECT + col2 + + col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-86
-91
-97

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

query I rowsort
SELECT - col1 * ( col2 ) + col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - col2 + 63 AS col2 FROM tab1 AS cor0
----
-33
6
9

query I rowsort
SELECT DISTINCT + col2 * - 87 FROM tab2 AS cor0
----
-2262
-2349
-3306

query I rowsort
SELECT + col0 - + 24 AS col1 FROM tab1 AS cor0
----
-21
40
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col0 * + cor0.col0 col2 FROM tab1 cor0
----
-17
4086
6387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + 56 ) * - col0 col1 FROM tab0 AS cor0
----
-1344
-1960
-4984

query I rowsort
SELECT - col0 * 25 AS col0 FROM tab1 AS cor0
----
-1600
-2000
-75

query I rowsort
SELECT cor0.col1 * cor1.col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4307a5c67912e63c47b74283c0988b96

query I rowsort
SELECT - col1 * - col2 + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-490
SELECT + ( col1 ) DIV + cor0.col1 - 3 * ( + col2 ) AS col1 FROM tab2 AS cor0
----
-113
-77
-80

skipif mysql # not compatible
query I rowsort label-490
SELECT + ( col1 ) / + cor0.col1 - 3 * ( + col2 ) AS col1 FROM tab2 AS cor0
----
-113
-77
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-491
SELECT col0 * col1 + CAST( - cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
24
583
944

skipif mysql # not compatible
query I rowsort label-491
SELECT col0 * col1 + CAST ( - cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT 2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
2

query I rowsort
SELECT + 80 + col0 AS col0 FROM tab0 AS cor0
----
104
115
169

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

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

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

query I rowsort
SELECT ALL + tab0.col1 * + col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col1 * ( + 81 ) AS col1 FROM tab0 AS cor0
----
-6966
-7371
-7857

query I rowsort
SELECT cor1.col2 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - col2 * 7 AS col2 FROM tab2 cor0
----
-182
-189
-266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * ( col1 * col2 ) + 68 col0 FROM tab2 AS cor0
----
11050
26015
90574

onlyif mysql # use DIV operator for integer division
query I rowsort label-501
SELECT DISTINCT + cor0.col2 DIV col0 + col1 * + cor0.col2 - 61 col0 FROM tab2 AS cor0
----
1473
585
779

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-501
SELECT DISTINCT + cor0.col2 / col0 + col1 * + cor0.col2 - 61 col0 FROM tab2 AS cor0
----
1473
585
779

query I rowsort
SELECT ALL + col1 * 3 AS col0 FROM tab0
----
258
273
291

query I rowsort
SELECT DISTINCT ( col0 ) + col0 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-504
SELECT DISTINCT col2 * - cor0.col1 + + col1 + + col1 DIV + col0 FROM tab1 AS cor0
----
-1235
-1370
-560

skipif mysql # not compatible
query I rowsort label-504
SELECT DISTINCT col2 * - cor0.col1 + + col1 + + col1 / + col0 FROM tab1 AS cor0
----
-1235
-1370
-560

query I rowsort
SELECT col0 * - 79 + col2 AS col1 FROM tab2
----
-526
-6136
-6203

query I rowsort
SELECT DISTINCT - 70 * + col2 AS col2 FROM tab1 AS cor0
----
-3780
-3990
-6720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 col1 FROM tab0
----
72

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

query I rowsort
SELECT 51 * - 86 + col0 AS col2 FROM tab2
----
-4307
-4308
-4379

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 72 col1 FROM tab1
----
3888
4104
6912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 * - col2 col2 FROM tab0
----
0

query I rowsort
SELECT ALL ( 92 + tab2.col0 ) FROM tab2
----
170
171
99

query I rowsort
SELECT 19 * + 83 FROM tab2
----
1577
1577
1577

query I rowsort
SELECT col2 * 67 * + col2 FROM tab1
----
195372
217683
617472

query I rowsort
SELECT DISTINCT ( col2 ) * - col2 AS col0 FROM tab0
----
-1
-1089
-6724

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

query I rowsort
SELECT DISTINCT + 27 * 35 FROM tab2, tab1, tab1 cor0
----
945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * col0 * + tab1.col0 col0 FROM tab1
----
16384
25600
36

query I rowsort
SELECT col0 + + cor0.col1 + + col0 FROM tab1 cor0
----
138
173
32

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

query I rowsort
SELECT ( cor0.col2 ) * ( + col0 ) - cor0.col1 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-522
SELECT ALL - col2 DIV + cor0.col1 + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL - col2 / + cor0.col1 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - + col1 * col1 - 60 FROM tab0 AS cor0
----
-7456
-8341
-9469

query I rowsort
SELECT - col0 * - col0 * - ( - ( + col2 ) ) AS col1 FROM tab0 cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 * col0 + cor0.col1 AS col2 FROM tab1 cor0
----
260
40970
83213

query I rowsort
SELECT - cor0.col0 + 93 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 46c569df08c862dfe896f44f77a27313

query I rowsort
SELECT ALL + 1 - col1 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT ALL 85 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT ALL - 87 * col1 + - 7 AS col2 FROM tab0 AS cor0
----
-7489
-7924
-8446

query I rowsort
SELECT DISTINCT - ( col1 ) - col2 * col2 AS col0 FROM tab1 cor0
----
-2942
-3259
-9229

query I rowsort
SELECT - 40 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6

query I rowsort
SELECT ALL - - 77 + col0 FROM tab2 cor0
----
155
156
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 55 * + cor0.col2 col0 FROM tab1 cor0
----
-2970
-3135
-5280

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

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

query I rowsort
SELECT + ( 54 ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT DISTINCT + col0 * - ( col2 + col2 ) FROM tab0
----
-14596
-1584
-70

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

skipif mysql # not compatible
query I rowsort label-537
SELECT + tab2.col1 + - CAST ( NULL AS INTEGER ) * + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-538
SELECT col1 DIV + col0 - - ( col2 ) FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort label-538
SELECT col1 / + col0 - - ( col2 ) FROM tab2
----
26
31
38

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

query I rowsort
SELECT ALL 18 * - ( col0 ) + - col0 FROM tab0 cor0
----
-1691
-456
-665

query I rowsort
SELECT ALL - + cor0.col0 - - col1 * cor0.col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT + col1 * - col1 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

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

query I rowsort
SELECT ALL + - col0 + ( + col0 ) * - 16 - 63 AS col1 FROM tab1 cor0
----
-114
-1151
-1423

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 46 * + col1 col1 FROM tab0 AS cor0
----
3870
4095
4365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 + - col2 col2 FROM tab1 AS cor0
----
-56
-59
-98

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - 29 * cor0.col1 + - col1 * + 58 + ( cor0.col2 ) * CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
-2716
344
4823

query I rowsort
SELECT ALL - 26 - col0 FROM tab1 AS cor0
----
-106
-29
-90

query I rowsort
SELECT col2 * col0 + col1 AS col2 FROM tab2
----
2087
220
3019

query I rowsort
SELECT 58 * col1 + col2 FROM tab0
----
5021
5360
5627

query I rowsort
SELECT DISTINCT + ( - 36 ) * col0 * - col2 AS col0 FROM tab1
----
131328
276480
5832

query I rowsort
SELECT DISTINCT col1 * ( col0 ) * 34 AS col2 FROM tab2
----
156468
45662
7378

onlyif mysql # use DIV operator for integer division
query I rowsort label-556
SELECT - tab2.col2 * - 40 + col1 DIV - col1 FROM tab2
----
1039
1079
1519

skipif mysql # not compatible
query I rowsort label-556
SELECT - tab2.col2 * - 40 + col1 / - col1 FROM tab2
----
1039
1079
1519

query I rowsort
SELECT - 84 * col1 * col0 FROM tab1 AS cor0
----
-53760
-6552
-87360

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

query I rowsort
SELECT + 95 * + ( + col2 ) AS col1 FROM tab0 AS cor0
----
3135
7790
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 95 col1 FROM tab2 AS cor0
----
2470
2565
3610

query I rowsort
SELECT ALL + - ( col0 ) + cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT cor0.col1 * - col0 + 66 - col0 AS col2 FROM tab0 AS cor0
----
-2022
-3364
-8122

query I rowsort
SELECT cor0.col2 + col2 - 95 * + 7 AS col2 FROM tab2 AS cor0
----
-589
-611
-613

query I rowsort
SELECT - + col2 * - col0 + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 92 * col0 col0 FROM tab2 AS cor0
----
-644
-7176
-7268

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

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

query I rowsort
SELECT ALL + - col0 * col2 * - 91 AS col2 FROM tab2 AS cor0
----
17199
184548
273182

query I rowsort
SELECT DISTINCT + - col2 + - ( 21 ) AS col1 FROM tab2 AS cor0
----
-47
-48
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-570
SELECT DISTINCT col2 DIV + ( col1 ) AS col0 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-570
SELECT DISTINCT col2 / + ( col1 ) AS col0 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL - col1 * 94 AS col0 FROM tab1 cor0
----
-1222
-2444
-940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * - col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-573
SELECT - CAST( + 76 AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

skipif mysql # not compatible
query I rowsort label-573
SELECT - CAST ( + 76 AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 col0 FROM tab0 AS cor0
----
1225
576
7921

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

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL - col2 + cor0.col2 / - col0 FROM tab2 AS cor0
----
-26
-30
-38

query I rowsort
SELECT ALL - - col2 + - 76 * - col2 FROM tab1 AS cor0
----
4158
4389
7392

query I rowsort
SELECT - + col2 * + 46 FROM tab1 AS cor0
----
-2484
-2622
-4416

query I rowsort
SELECT DISTINCT + col0 + 12 * col0 FROM tab2 AS cor0
----
1014
1027
91

query I rowsort
SELECT ALL + col2 * col2 - + col1 * cor0.col0 * + col0 FROM tab0 AS cor0
----
-118824
-48447
-714087

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - col0 col1 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-582
SELECT DISTINCT + col1 * - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT + col1 * - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
1248
1404
570

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

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

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

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

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

query I rowsort
SELECT - 42 FROM tab2, tab2 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT + col0 * ( + 53 + col1 * 20 ) AS col0 FROM tab1 AS cor0
----
16192
1719
25040

query I rowsort
SELECT - col1 * 3 * col1 AS col2 FROM tab0 AS cor0
----
-22188
-24843
-28227

query I rowsort
SELECT - - col0 + + 73 AS col1 FROM tab0 AS cor0
----
108
162
97

query I rowsort
SELECT col0 * - 98 AS col1 FROM tab1 AS cor0
----
-294
-6272
-7840

query I rowsort
SELECT - cor0.col0 FROM tab1, tab2, tab0 cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-592
SELECT - CAST ( NULL AS INTEGER ) + + 88 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT ALL + 73 * + tab2.col0 * + col2 AS col2 FROM tab2
----
13797
148044
219146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 + - ( - col1 ) col0 FROM tab0
----
105
94
99

query I rowsort
SELECT - + col0 + 79 * + col0 AS col0 FROM tab1 AS cor0
----
234
4992
6240

onlyif mysql # use DIV operator for integer division
query I rowsort label-597
SELECT DISTINCT - - col0 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT - - col0 / col2 AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT 28 * col1 + col2 + cor0.col1 FROM tab2 AS cor0
----
1737
531
926

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

query I rowsort
SELECT DISTINCT col0 * + tab1.col0 * + col1 AS col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT + 38 * + col1 AS col1 FROM tab2 AS cor0
----
1178
2242
646

onlyif mysql # use DIV operator for integer division
query I rowsort label-602
SELECT DISTINCT - 85 + col2 DIV col0 FROM tab0
----
-84
-85

skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT - 85 + col2 / col0 FROM tab0
----
-84
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-603
SELECT - col1 * - cor0.col2 + 68 * - col0 + + col0 * col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
-3725
-4096
1254

skipif mysql # not compatible
query I rowsort label-603
SELECT - col1 * - cor0.col2 + 68 * - col0 + + col0 * col2 / + col0 AS col1 FROM tab1 AS cor0
----
-3725
-4096
1254

query I rowsort
SELECT - + col0 * + col2 * col0 + col2 AS col2 FROM tab2 AS cor0
----
-1296
-158158
-237120

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-606
SELECT DISTINCT 90 DIV cor0.col0 - cor0.col2 AS col2 FROM tab1, tab1 cor0
----
-24
-56
-95

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT 90 / cor0.col0 - cor0.col2 AS col2 FROM tab1, tab1 cor0
----
-24
-56
-95

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

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

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

query I rowsort
SELECT + + col1 * 30 FROM tab1 cor0
----
300
390
780

query I rowsort
SELECT + + cor0.col0 + 26 FROM tab0 AS cor0
----
115
50
61

query I rowsort
SELECT ALL col0 * 30 AS col0 FROM tab2 AS cor0
----
210
2340
2370

query I rowsort
SELECT ALL col2 + ( 51 + - col1 ) FROM tab2 AS cor0
----
18
47
72

query I rowsort
SELECT DISTINCT col2 * col0 * - col1 + col1 FROM tab0 cor0
----
-3298
-664027
-68026

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-614
SELECT CAST( + 51 AS SIGNED ) - col1 AS col1 FROM tab1 AS cor0
----
25
38
41

skipif mysql # not compatible
query I rowsort label-614
SELECT CAST ( + 51 AS INTEGER ) - col1 AS col1 FROM tab1 AS cor0
----
25
38
41

query I rowsort
SELECT tab1.col1 + 79 FROM tab1
----
105
89
92

query I rowsort
SELECT - ( - col1 ) + + cor0.col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL - 59 FROM tab0, tab2 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col2 * + 36 col1 FROM tab2 AS cor0
----
1351
877
941

query I rowsort
SELECT - - 15 * col0 * + 73 + + 14 FROM tab1 AS cor0
----
3299
70094
87614

query I rowsort
SELECT - 59 + cor0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to bc7383f31b424571a4eb4609bfe84860

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

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

skipif mysql # not compatible
query I rowsort label-623
SELECT - col2 * + col0 + 19 * + 88 + + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( + col2 ) * ( 77 ) AS col0 FROM tab2 cor0
----
-2002
-2079
-2926

query I rowsort
SELECT DISTINCT ( - col0 ) - + col0 * col0 FROM tab0
----
-1260
-600
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-626
SELECT DISTINCT + col1 - col1 * + tab0.col1 DIV + col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT + col1 - col1 * + tab0.col1 / + col1 FROM tab0
----
0

query I rowsort
SELECT - ( - 42 ) FROM tab2
----
42
42
42

query I rowsort
SELECT 59 * col2 * col0 FROM tab1
----
215232
453120
9558

query I rowsort
SELECT ALL - col1 + 9 FROM tab2 AS cor0
----
-22
-50
-8

query I rowsort
SELECT tab1.col1 + 25 + col2 AS col2 FROM tab1
----
105
134
92

query I rowsort
SELECT ALL tab2.col0 * ( tab2.col1 ) * tab2.col2 + col1 * col0 FROM tab2
----
124254
52377
6076

onlyif mysql # use DIV operator for integer division
query I rowsort label-632
SELECT DISTINCT - col1 DIV - 65 + 61 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1586
610
793

skipif mysql # not compatible
query I rowsort label-632
SELECT DISTINCT - col1 / - 65 + 61 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1586
610
793

query I rowsort
SELECT DISTINCT + col0 * col2 - - col1 FROM tab0 AS cor0
----
132
7389
878

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-635
SELECT DISTINCT col1 * + 12 - 34 DIV - col1 AS col2 FROM tab0 AS cor0
----
1032
1092
1164

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT col1 * + 12 - 34 / - col1 AS col2 FROM tab0 AS cor0
----
1032
1092
1164

query I rowsort
SELECT DISTINCT - - col1 * 95 AS col0 FROM tab1 AS cor0
----
1235
2470
950

onlyif mysql # use DIV operator for integer division
query I rowsort label-637
SELECT ALL col1 + col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-637
SELECT ALL col1 + col0 / + col0 AS col1 FROM tab2 AS cor0
----
18
32
60

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

query I rowsort
SELECT DISTINCT + 16 * + 78 AS col0 FROM tab1 AS cor0
----
1248

query I rowsort
SELECT + col0 * - 47 + col0 - col2 FROM tab1
----
-192
-3001
-3776

query I rowsort
SELECT + tab0.col0 + + col2 + + col0 FROM tab0
----
260
71
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-642
SELECT ( + 15 ) * cor0.col2 + CAST( col2 AS SIGNED ) * col0 FROM tab1 AS cor0
----
4503
9120
972

skipif mysql # not compatible
query I rowsort label-642
SELECT ( + 15 ) * cor0.col2 + CAST ( col2 AS INTEGER ) * col0 FROM tab1 AS cor0
----
4503
9120
972

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) + col1 AS col0 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + 8 * + col1 FROM tab1 AS cor0
----
104
208
80

query I rowsort
SELECT DISTINCT - + col0 + col0 * + col1 * col1 FROM tab0 AS cor0
----
177480
329280
736920

query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 + - col0 + ( - cor0.col2 ) * col0 AS col0 FROM tab2 cor0
----
-413
-4424
-6708

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

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

query I rowsort
SELECT ALL - col0 + 60 * ( col2 * col2 ) FROM tab0
----
25
403351
65316

query I rowsort
SELECT col2 + - 41 * col2 AS col2 FROM tab1
----
-2160
-2280
-3840

onlyif mysql # use DIV operator for integer division
query I rowsort label-650
SELECT col1 * col2 + col0 DIV col2 + col1 FROM tab0 AS cor0
----
229
2924
7554

skipif mysql # not compatible
query I rowsort label-650
SELECT col1 * col2 + col0 / col2 + col1 FROM tab0 AS cor0
----
229
2924
7554

query I rowsort
SELECT ( - col1 ) * 25 FROM tab0 AS cor0
----
-2150
-2275
-2425

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + col2 col2 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + + col1 col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + + 23 * - col0 + col2 AS col1 FROM tab2 AS cor0
----
-134
-1768
-1779

query I rowsort
SELECT DISTINCT - col1 * + col2 + - col2 + - cor0.col2 FROM tab0 AS cor0
----
-2904
-7626
-99

query I rowsort
SELECT ALL cor0.col0 + + col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT - 62 + - col0 * col2 FROM tab1
----
-224
-3710
-7742

onlyif mysql # use DIV operator for integer division
query I rowsort label-659
SELECT ALL - 70 DIV + 93 + col2 AS col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL - 70 / + 93 + col2 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT col0 + + 97 FROM tab0
----
121
132
186

query I rowsort
SELECT + 65 * col1 FROM tab0
----
5590
5915
6305

query I rowsort
SELECT 29 + col1 FROM tab2
----
46
60
88

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-664
SELECT ALL - cor0.col0 DIV + 87 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-664
SELECT ALL - cor0.col0 / + 87 col0 FROM tab2 AS cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT - col0 * - CAST ( NULL AS REAL ) * - 13 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * + 51 + 27 * + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-160290
-164478
-966

query I rowsort
SELECT ALL + col2 - - 67 AS col2 FROM tab2 AS cor0
----
105
93
94

query I rowsort
SELECT DISTINCT - col0 * ( - col2 ) * + col2 AS col2 FROM tab2 cor0
----
114076
5103
52728

query I rowsort
SELECT + - col0 + + col2 * 20 AS col1 FROM tab2 AS cor0
----
442
533
681

query I rowsort
SELECT ALL - - col1 * - ( - 79 ) - cor0.col2 AS col1 FROM tab0 AS cor0
----
6761
7107
7662

query I rowsort
SELECT + col2 * + 68 AS col2 FROM tab2
----
1768
1836
2584

onlyif mysql # use DIV operator for integer division
query I rowsort label-672
SELECT DISTINCT ( + col2 ) + - col0 + ( ( col0 ) ) DIV 61 FROM tab0
----
-34
-6
9

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT ( + col2 ) + - col0 + ( ( col0 ) ) / 61 FROM tab0
----
-34
-6
9

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

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL - - CAST ( NULL AS INTEGER ) * - 22 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 14 ) * + col1 AS col2 FROM tab1 AS cor0
----
140
182
364

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

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

query I rowsort
SELECT + ( 52 ) + + col0 * - ( + col1 ) FROM tab1 cor0
----
-26
-588
-988

query I rowsort
SELECT DISTINCT + col0 + 25 FROM tab1 AS cor0
----
105
28
89

query I rowsort
SELECT - - col2 + col1 + - col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - - col0 * col2 * - col2 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

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

query I rowsort
SELECT - 3 + - col1 * + col0 AS col2 FROM tab1 cor0
----
-1043
-643
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 31 * 47 * - col1 col1 FROM tab0 cor0
----
125302
132587
141329

query I rowsort
SELECT 76 * col0 FROM tab1 cor0
----
228
4864
6080

query I rowsort
SELECT cor0.col0 + + 89 FROM tab0, tab1 AS cor0
----
9 values hashing to 683b4451b3c75bd03b278308f38beae4

query I rowsort
SELECT ALL - col2 * - col1 + ( ( + cor0.col2 ) + cor0.col2 ) FROM tab1 AS cor0
----
1440
1512
684

query I rowsort
SELECT 59 * - col0 + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-1392
-2030
-5162

query I rowsort
SELECT 20 * - 14 FROM tab2 AS cor0
----
-280
-280
-280

query I rowsort
SELECT + - col0 + - 80 * - col0 AS col2 FROM tab1 AS cor0
----
237
5056
6320

query I rowsort
SELECT + - 43 AS col1 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT - col2 + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT + 23 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT - 70 + - 27 FROM tab0 AS cor0
----
-97
-97
-97

query I rowsort
SELECT ( 69 ) + - col0 * ( + col1 ) AS col0 FROM tab1 AS cor0
----
-571
-9
-971

query I rowsort
SELECT ALL 32 FROM tab0, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL col1 + col1 * 22 AS col2 FROM tab2 AS cor0
----
1357
391
713

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-696
SELECT - CAST( - 42 * + col1 AS SIGNED ) AS col1 FROM tab1
----
1092
420
546

skipif mysql # not compatible
query I rowsort label-696
SELECT - CAST ( - 42 * + col1 AS INTEGER ) AS col1 FROM tab1
----
1092
420
546

query I rowsort
SELECT - cor0.col2 * + col2 - col0 * - cor0.col0 FROM tab2 AS cor0
----
-680
4797
5408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-698
SELECT CAST( 33 AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

skipif mysql # not compatible
query I rowsort label-698
SELECT CAST ( 33 AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT - col2 * - ( col0 + - col0 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT + ( 40 ) AS col0 FROM tab1, tab2 AS cor0
----
40

query I rowsort
SELECT DISTINCT col1 * + 82 FROM tab1
----
1066
2132
820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-703
SELECT DISTINCT col0 * CAST( 28 AS SIGNED ) - + col2 * + col2 AS col1 FROM tab0 AS cor0
----
-417
-4232
979

skipif mysql # not compatible
query I rowsort label-703
SELECT DISTINCT col0 * CAST ( 28 AS INTEGER ) - + col2 * + col2 AS col1 FROM tab0 AS cor0
----
-417
-4232
979

onlyif mysql # use DIV operator for integer division
query I rowsort label-704
SELECT - cor0.col2 DIV col1 + col0 AS col2 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-704
SELECT - cor0.col2 / col1 + col0 AS col2 FROM tab2 AS cor0
----
7
77
78

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

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

query I rowsort
SELECT ALL col0 * + 73 * + col0 AS col2 FROM tab2
----
3577
444132
455593

query I rowsort
SELECT - + col0 * + 21 + + col0 AS col0 FROM tab1 cor0
----
-1280
-1600
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-708
SELECT ALL col1 DIV col2 - - 88 FROM tab0
----
185
89
90

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL col1 / col2 - - 88 FROM tab0
----
185
89
90

query I rowsort
SELECT - + col2 + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT - - ( cor0.col0 ) + col1 * col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

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

skipif mysql # not compatible
query I rowsort label-711
SELECT 78 * + 36 + - col2 * + CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + 94 * cor0.col2 AS col1 FROM tab1 AS cor0
----
5050
5348
9011

query I rowsort
SELECT col0 - - tab0.col1 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT + tab0.col1 * - 37 AS col0 FROM tab0, tab0 AS cor0
----
-3182
-3367
-3589

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-717
SELECT + col0 DIV ( col0 ) - - col0 DIV col0 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-717
SELECT + col0 / ( col0 ) - - col0 / col0 FROM tab2 AS cor0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 + col0 col2 FROM tab1 AS cor0
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-719
SELECT + col2 + - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-719
SELECT + col2 + - col0 / col0 AS col1 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT col0 * 17 - - 0 AS col2 FROM tab2 cor0
----
119
1326
1343

query I rowsort
SELECT - col2 + - 68 FROM tab0 AS cor0
----
-101
-150
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-722
SELECT - col0 * CAST( 17 AS SIGNED ) DIV - col0 AS col2 FROM tab1 cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-722
SELECT - col0 * CAST ( 17 AS INTEGER ) / - col0 AS col2 FROM tab1 cor0
----
17
17
17

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

query I rowsort
SELECT - - col2 + - 69 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1135
-2112
-4045

onlyif mysql # use DIV operator for integer division
query I rowsort label-725
SELECT ALL - 45 DIV + tab2.col1 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL - 45 / + tab2.col1 FROM tab2
----
-1
-2
0

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

query I rowsort
SELECT DISTINCT + col2 * 81 + - col2 * col2 AS col1 FROM tab2 AS cor0
----
1430
1458
1634

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

query I rowsort
SELECT ALL col1 + + 48 * - col2 * - cor0.col2 FROM tab2 AS cor0
----
32507
35023
69329

query I rowsort
SELECT - col0 * + col0 * - col2 AS col1 FROM tab0 AS cor0
----
1225
19008
649522

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

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL col2 / - col2 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 83 AS REAL ) * - col0 FROM tab1
----
249
5312
6640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - ( col0 ) ) col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL cor0.col1 * - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9be0dab92dd50faf37ee99ac8db7c57d

query I rowsort
SELECT - col2 + - ( col2 * 26 ) FROM tab1 AS cor0
----
-1458
-1539
-2592

query I rowsort
SELECT ALL col0 + 36 AS col2 FROM tab0 AS cor0
----
125
60
71

query I rowsort
SELECT ( 86 ) + - col2 * - col0 AS col0 FROM tab2 AS cor0
----
2114
275
3088

query I rowsort
SELECT DISTINCT - - 62 * 58 FROM tab0 AS cor0
----
3596

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

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

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

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

query I rowsort
SELECT - ( tab2.col0 ) * - col1 * tab2.col0 FROM tab2
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-743
SELECT DISTINCT - + 2 DIV col0 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT - + 2 / col0 AS col2 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT cor0.col0 + - col1 * col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 col1 FROM tab2
----
81
81
81

query I rowsort
SELECT DISTINCT - col1 + ( - col1 ) AS col1 FROM tab1
----
-20
-26
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-748
SELECT DISTINCT + cor0.col2 + - CAST( + 12 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
14
15
26

skipif mysql # not compatible
query I rowsort label-748
SELECT DISTINCT + cor0.col2 + - CAST ( + 12 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
14
15
26

query I rowsort
SELECT ALL - col0 + 82 + - tab2.col2 FROM tab2
----
-22
-35
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 * + 26 col1 FROM tab1
----
132
1721
2176

query I rowsort
SELECT ALL col2 + - col0 + col0 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT + cor0.col2 * 24 + 84 + - col0 * + col0 FROM tab0 AS cor0
----
-1117
-5869
300

query I rowsort
SELECT DISTINCT - + col1 * ( ( col1 ) ) + - ( + cor0.col2 ) FROM tab2 AS cor0
----
-327
-3507
-988

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

query I rowsort
SELECT col0 - col0 * 98 AS col1 FROM tab2 AS cor0
----
-679
-7566
-7663

onlyif mysql # use DIV operator for integer division
query I rowsort label-756
SELECT + col0 DIV + col0 + col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-756
SELECT + col0 / + col0 + col0 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT DISTINCT + - col0 * col2 + 87 AS col1 FROM tab1 AS cor0
----
-3561
-75
-7593

onlyif mysql # use DIV operator for integer division
query I rowsort label-758
SELECT DISTINCT + - cor0.col0 + - col0 DIV + cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
-20
-66
24

skipif mysql # not compatible
query I rowsort label-758
SELECT DISTINCT + - cor0.col0 + - col0 / + cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
-20
-66
24

query I rowsort
SELECT - col0 * + 84 + ( col0 ) FROM tab0 AS cor0
----
-1992
-2905
-7387

query I rowsort
SELECT DISTINCT col0 + - ( col2 ) * + cor0.col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL - col0 * - 74 + col0 FROM tab1 AS cor0
----
225
4800
6000

query I rowsort
SELECT DISTINCT - - cor0.col1 * col1 * - col0 FROM tab0 cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL col0 * 12 + col2 + cor0.col1 * col2 * + col2 AS col2 FROM tab1 AS cor0
----
120864
33315
75906

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-764
SELECT DISTINCT CAST( + 24 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-1416
-408
-744

skipif mysql # not compatible
query I rowsort label-764
SELECT DISTINCT CAST ( + 24 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-1416
-408
-744

query I rowsort
SELECT - + col2 * - col2 * col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT + 1 * - 3 AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - - ( - col1 ) * col1 * + 90 AS col1 FROM tab1 cor0
----
-15210
-60840
-9000

query I rowsort
SELECT 57 + col1 FROM tab0 AS cor0
----
143
148
154

query I rowsort
SELECT DISTINCT ( - col2 ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-771
SELECT ALL ( 9 ) DIV cor0.col2 FROM tab0 AS cor0
----
0
0
9

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL ( 9 ) / cor0.col2 FROM tab0 AS cor0
----
0
0
9

query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 col2 FROM tab0
----
119
173
98

query I rowsort
SELECT + cor0.col2 * 74 FROM tab0, tab1 AS cor0
----
9 values hashing to 217f34269dc067351ad01dc43449f514

query I rowsort
SELECT DISTINCT - col2 + - 63 FROM tab2
----
-101
-89
-90

query I rowsort
SELECT col2 - + 72 FROM tab1
----
-15
-18
24

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-779
SELECT DISTINCT 17 + + col0 + col2 DIV - col1 FROM tab2 AS cor0
----
24
94
95

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT 17 + + col0 + col2 / - col1 FROM tab2 AS cor0
----
24
94
95

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

query I rowsort
SELECT + 98 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT DISTINCT tab0.col1 + 93 * 36 FROM tab0
----
3434
3439
3445

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

query I rowsort
SELECT + - 31 * + col0 FROM tab2 AS cor0
----
-217
-2418
-2449

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col1 AS REAL ) * tab0.col2 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - 73 * ( col2 * col2 + tab1.col0 * + col2 ) AS col0 FROM tab1
----
-1233408
-224694
-503481

query I rowsort
SELECT - ( col0 * + col0 + col0 * col2 ) AS col2 FROM tab0
----
-1260
-1368
-15219

query I rowsort
SELECT - 25 * 35 FROM tab1
----
-875
-875
-875

query I rowsort
SELECT ALL tab0.col0 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

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

skipif mysql # not compatible
query I rowsort label-790
SELECT - CAST ( NULL AS INTEGER ) * - 83 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT - - cor0.col2 - - 13 FROM tab1 AS cor0
----
109
67
70

query I rowsort
SELECT ALL - col1 * + ( 17 ) + col2 FROM tab0 AS cor0
----
-1429
-1465
-1648

query I rowsort
SELECT + + cor0.col2 + + 30 AS col0 FROM tab0 AS cor0
----
112
31
63

query I rowsort
SELECT - col1 - col1 * - col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT DISTINCT + 2 AS col2 FROM tab2
----
2

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

query I rowsort
SELECT ALL col0 + - col0 - 90 AS col0 FROM tab1
----
-90
-90
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 39 col1 FROM tab2
----
1209
2301
663

query I rowsort
SELECT - col1 * 9 FROM tab1
----
-117
-234
-90

query I rowsort
SELECT DISTINCT - col0 + col0 * + tab2.col0 AS col2 FROM tab2
----
42
6006
6162

query I rowsort
SELECT ALL + + col1 + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - - col2 * 80 AS col0 FROM tab0 AS cor0
----
2640
6560
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-804
SELECT ALL + col2 + col2 DIV col1 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL + col2 + col2 / col1 FROM tab1 AS cor0
----
103
56
62

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

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

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

query I rowsort
SELECT + 62 * - col1 * ( col1 + col1 ) AS col0 FROM tab1
----
-12400
-20956
-83824

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

query I rowsort
SELECT DISTINCT + 53 * col0 FROM tab1
----
159
3392
4240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 * ( + 36 * + tab1.col2 ) col0 FROM tab1
----
26542080
314928
7485696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 * + tab1.col2 + 19 col0 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 29c4395dbdb67fb6872cbbe61cd86451

onlyif mysql # use DIV operator for integer division
query I rowsort label-812
SELECT - - col0 DIV col1 + - col1 * - 28 AS col0 FROM tab1 AS cor0
----
286
370
728

skipif mysql # not compatible
query I rowsort label-812
SELECT - - col0 / col1 + - col1 * - 28 AS col0 FROM tab1 AS cor0
----
286
370
728

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

query I rowsort
SELECT + 16 + + col0 AS col2 FROM tab0 AS cor0
----
105
40
51

query I rowsort
SELECT ALL 23 + + tab0.col2 - - col2 * + col2 AS col0 FROM tab0
----
1145
25
6829

query I rowsort
SELECT DISTINCT + 52 - + col0 FROM tab1
----
-12
-28
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL - col0 - - col2 * - col1 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT + + col1 * - cor0.col2 + 81 FROM tab0 AS cor0
----
-16
-2757
-7381

query I rowsort
SELECT DISTINCT 33 * - col1 * - 3 FROM tab2
----
1683
3069
5841

query I rowsort
SELECT col1 + col2 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT DISTINCT - col2 * 64 AS col2 FROM tab0 AS cor0
----
-2112
-5248
-64

query I rowsort
SELECT DISTINCT col0 * col0 * + 41 + - col1 * - col1 AS col0 FROM tab0 AS cor0
----
31012
333042
59634

query I rowsort
SELECT + col2 + col1 * - 1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
100
3
45

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

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

query I rowsort
SELECT ALL col1 * ( col0 + col1 ) FROM tab0 cor0
----
12804
16380
9460

query I rowsort
SELECT - + col1 * + col0 + col2 + col1 FROM tab0 AS cor0
----
-1945
-3297
-7926

query I rowsort
SELECT + 36 + col1 FROM tab1 AS cor0
----
46
49
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-829
SELECT - col2 DIV - 37 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-829
SELECT - col2 / - 37 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT - 24 + + 35 AS col2 FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT 34 * - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-1190
-3026
-816

query I rowsort
SELECT 43 * cor0.col0 * ( col0 ) FROM tab1 AS cor0
----
176128
275200
387

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-833
SELECT DISTINCT cor0.col0 + - col0 * CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT cor0.col0 + - col0 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT 0 + ( + col1 ) FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 * col1 col0 FROM tab2 AS cor0
----
-1767
-3363
-969

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

query I rowsort
SELECT ALL - col1 * 94 FROM tab2
----
-1598
-2914
-5546

query I rowsort
SELECT col0 * + col2 + - 35 FROM tab2 AS cor0
----
154
1993
2967

query I rowsort
SELECT DISTINCT 67 + + col1 + ( cor0.col0 ) FROM tab1 cor0
----
141
160
96

query I rowsort
SELECT DISTINCT 20 * - col1 AS col1 FROM tab1 AS cor0
----
-200
-260
-520

query I rowsort
SELECT - - col1 - + col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + 60 + - col0 FROM tab2 AS cor0
----
-18
-19
53

query I rowsort
SELECT 21 + + col2 AS col1 FROM tab1 AS cor0
----
117
75
78

query I rowsort
SELECT ALL + 81 AS col2 FROM tab0
----
81
81
81

query I rowsort
SELECT ALL - col2 + col1 + - ( col0 ) FROM tab2 AS cor0
----
-100
-3
-45

query I rowsort
SELECT - 15 + col0 AS col2 FROM tab2 cor0
----
-8
63
64

query I rowsort
SELECT DISTINCT - col0 + - col0 * - ( col2 ) AS col2 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-848
SELECT ALL ( - col0 ) DIV 24 - - col1 AS col2 FROM tab2
----
14
31
56

skipif mysql # not compatible
query I rowsort label-848
SELECT ALL ( - col0 ) / 24 - - col1 AS col2 FROM tab2
----
14
31
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-849
SELECT ALL + cor0.col0 * + CAST( - col2 + - col2 AS SIGNED ) FROM tab2 AS cor0
----
-378
-4056
-6004

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL + cor0.col0 * + CAST ( - col2 + - col2 AS INTEGER ) FROM tab2 AS cor0
----
-378
-4056
-6004

query I rowsort
SELECT + col0 - + col2 * ( col1 + + col1 ) FROM tab2 cor0
----
-1213
-1667
-2990

query I rowsort
SELECT DISTINCT + 42 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
42

query I rowsort
SELECT DISTINCT col2 * + 52 AS col2 FROM tab2
----
1352
1404
1976

query I rowsort
SELECT DISTINCT + 37 FROM tab2, tab1 cor0
----
37

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

query I rowsort
SELECT DISTINCT 51 AS col0 FROM tab2, tab0 AS cor0
----
51

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

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

query I rowsort
SELECT DISTINCT + col0 + + 90 AS col2 FROM tab2
----
168
169
97

query I rowsort
SELECT ALL + col1 * - ( - col2 ) AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - - col2 * 94 + col0 AS col2 FROM tab2 AS cor0
----
2522
2545
3651

query I rowsort
SELECT ALL - col2 + 59 FROM tab0 AS cor0
----
-23
26
58

query I rowsort
SELECT 7 + + col1 * col1 FROM tab1 AS cor0
----
107
176
683

query I rowsort
SELECT ALL - - cor0.col0 FROM tab2, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

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

query I rowsort
SELECT + ( + col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

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

query I rowsort
SELECT ALL - col2 * tab1.col0 + 66 AS col2 FROM tab1
----
-3582
-7614
-96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( col0 ) * - col2 ) col2 FROM tab0
----
-35
-7298
-792

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

query I rowsort
SELECT - col1 * 52 + + col1 * 31 FROM tab0
----
-1806
-1911
-2037

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

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

skipif mysql # not compatible
query I rowsort label-872
SELECT CAST ( NULL AS REAL ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * - col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-874
SELECT ALL + CAST( - cor0.col2 AS SIGNED ) + col2 * col1 FROM tab0 AS cor0
----
2805
7380
96

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL + CAST ( - cor0.col2 AS INTEGER ) + col2 * col1 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-875
SELECT DISTINCT - - cor0.col1 * + col2 - - cor0.col2 DIV col1 FROM tab1 AS cor0
----
1255
1406
575

skipif mysql # not compatible
query I rowsort label-875
SELECT DISTINCT - - cor0.col1 * + col2 - - cor0.col2 / col1 FROM tab1 AS cor0
----
1255
1406
575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * + ( - col2 ) + - col1 col0 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT ( - col0 * - ( col1 ) ) + + col0 - - col2 FROM tab1
----
1216
135
761

query I rowsort
SELECT 56 * col1 AS col2 FROM tab0
----
4816
5096
5432

query I rowsort
SELECT DISTINCT col2 - tab1.col0 * 66 AS col2 FROM tab1
----
-144
-4167
-5184

query I rowsort
SELECT - + col1 * col2 - col0 FROM tab1 cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT 41 * + col1 AS col2 FROM tab0 AS cor0
----
3526
3731
3977

query I rowsort
SELECT ALL - 90 * + col2 FROM tab0 AS cor0
----
-2970
-7380
-90

query I rowsort
SELECT ALL + col0 * col1 + 79 FROM tab2
----
1422
296
4681

query I rowsort
SELECT + col0 * - 36 AS col2 FROM tab2 AS cor0
----
-252
-2808
-2844

query I rowsort
SELECT ALL - col1 * 15 AS col0 FROM tab0 AS cor0
----
-1290
-1365
-1455

query I rowsort
SELECT DISTINCT + - col0 + 58 * + 36 FROM tab1 AS cor0
----
2008
2024
2085

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 + 54 col0 FROM tab1 AS cor0
----
216
3702
7734

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

query I rowsort
SELECT + col1 * 33 + col2 * col2 AS col1 FROM tab0 AS cor0
----
3202
3927
9727

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

query I rowsort
SELECT 0 * col2 FROM tab2
----
0
0
0

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

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

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

skipif mysql # not compatible
query I rowsort label-895
SELECT col2 / cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + + 63 FROM tab0 cor0
----
145
64
96

query I rowsort
SELECT ALL + - col1 * 26 + col0 AS col2 FROM tab0 AS cor0
----
-2212
-2277
-2487

query I rowsort
SELECT ALL + col2 * 11 FROM tab0 AS cor0
----
11
363
902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * 84 col1 FROM tab1
----
1092
2184
840

query I rowsort
SELECT col0 * - ( 66 * col1 ) - ( col1 ) * col2 AS col2 FROM tab2 cor0
----
-15159
-305266
-89284

query I rowsort
SELECT ALL col2 + - cor0.col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT ALL col1 * 61 + + 79 FROM tab2 AS cor0
----
1116
1970
3678

query I rowsort
SELECT DISTINCT - col2 + + 67 FROM tab2 AS cor0
----
29
40
41

query I rowsort
SELECT - col0 + 96 AS col1 FROM tab1
----
16
32
93

query I rowsort
SELECT + col2 * - ( 43 ) - col2 AS col1 FROM tab2 AS cor0
----
-1144
-1188
-1672

query I rowsort
SELECT cor0.col1 - + col2 * 23 FROM tab1 AS cor0
----
-1216
-1301
-2195

query I rowsort
SELECT + - cor0.col2 * cor0.col0 - - col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

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

query I rowsort
SELECT DISTINCT - - col1 + - ( - col2 ) * - col0 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT col2 * col0 + + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-911
SELECT + col2 * col0 - + col1 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-911
SELECT + col2 * col0 - + col1 / cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT 28 * + 41 AS col0 FROM tab2 AS cor0
----
1148
1148
1148

query I rowsort
SELECT + - 70 * + col2 FROM tab0 AS cor0
----
-2310
-5740
-70

query I rowsort
SELECT ( 13 ) - col1 AS col2 FROM tab2 AS cor0
----
-18
-4
-46

query I rowsort
SELECT + 29 + + col0 * col0 * - ( + col2 ) FROM tab0 AS cor0
----
-1196
-18979
-649493

query I rowsort
SELECT - col1 + ( + col1 ) + - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ( - col1 ) + col2 * - 19 * - 19 + col0 FROM tab2 AS cor0
----
13780
9405
9723

query I rowsort
SELECT ALL col1 + + 84 AS col1 FROM tab1
----
110
94
97

query I rowsort
SELECT ALL - col0 * col1 + + 49 FROM tab2
----
-1294
-168
-4553

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

query I rowsort
SELECT - 39 + + 20 * col2 FROM tab1 AS cor0
----
1041
1101
1881

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col1 col0 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-923
SELECT - + 76 * cor0.col0 DIV cor0.col0 + col1 * col1 * + col1 FROM tab2 cor0
----
205303
29715
4837

skipif mysql # not compatible
query I rowsort label-923
SELECT - + 76 * cor0.col0 / cor0.col0 + col1 * col1 * + col1 FROM tab2 cor0
----
205303
29715
4837

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - cor0.col2 col2 FROM tab0 AS cor0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * + cor0.col0 + - col1 * - 55 col2 FROM tab1 AS cor0
----
1592
4198
8395

query I rowsort
SELECT DISTINCT + 77 - col2 FROM tab1 AS cor0
----
-19
20
23

query I rowsort
SELECT DISTINCT - + col0 * - col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + + 0 + + col2 * col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT ( - col0 ) + - col0 - - col1 AS col1 FROM tab1 AS cor0
----
-118
-147
20

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + cor0.col0 * 75 col1 FROM tab1 AS cor0
----
222
4736
5920

query I rowsort
SELECT ALL + col1 * - col0 - cor0.col1 * - cor0.col2 FROM tab2 AS cor0
----
-3068
-697
620

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

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

query I rowsort
SELECT + 15 * col0 FROM tab0 AS cor0
----
1335
360
525

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

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT + 15 * col1 + - CAST ( NULL AS INTEGER ) * 32 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + col0 + + col2 AS col1 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT col1 + + col1 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL + col1 * - col2 + + col0 * - col2 + + col1 * col0 FROM tab0
----
-1566
-6661
3263

query I rowsort
SELECT ALL col2 + col0 * - col2 FROM tab0
----
-34
-7216
-759

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 - col1 < ( col0 / col0 + + col2 ) AND col1 * + col1 <> NULL
----

query I rowsort
SELECT + tab0.col2 * - col0 * + tab0.col0 AS col0 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT col0 + col0 - - col1 FROM tab1
----
138
173
32

query I rowsort
SELECT col0 + col0 - col0 * - col0 FROM tab0
----
1295
624
8099

query I rowsort
SELECT col1 * - col1 + col2 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

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

query I rowsort
SELECT - + col1 + + col2 * - cor0.col1 FROM tab2 cor0
----
-1593
-663
-868

query I rowsort
SELECT + - cor0.col2 * + col2 + - col0 * cor0.col2 * col0 FROM tab1 AS cor0
----
-236721
-3402
-623616

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col1 FROM tab2
----
-26
-27
-38

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

skipif mysql # not compatible
query I rowsort label-950
SELECT - - col2 / - col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + cor0.col2 + - col0 * col0 * col1 AS col1 FROM tab2 AS cor0
----
-106059
-1492
-358930

onlyif mysql # use DIV operator for integer division
query I rowsort label-952
SELECT ALL + - col2 * + col1 + + col2 * col2 DIV + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2793
-7387
-97

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL + - col2 * + col1 + + col2 * col2 / + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2793
-7387
-97

query I rowsort
SELECT DISTINCT + cor0.col1 + + cor0.col0 * col1 AS col0 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT + 89 + col0 FROM tab2 AS cor0
----
167
168
96

query I rowsort
SELECT ALL + 16 + - col2 * col0 * col0 AS col1 FROM tab1 AS cor0
----
-233456
-470
-614384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT + col0 > NULL
----

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

query I rowsort
SELECT DISTINCT col2 * - col2 + + col2 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND col2 + col1
----

query I rowsort
SELECT - col1 - col1 * col0 * col0 AS col1 FROM tab0
----
-118922
-49622
-720902

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= col2
----

query I rowsort
SELECT tab1.col1 * - col2 + col0 AS col2 FROM tab1 WHERE NOT - col1 = NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE col2 < ( NULL )
----

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

query I rowsort
SELECT DISTINCT - col2 + col0 FROM tab1 WHERE NOT col0 NOT IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT IN ( col0 + col0 * col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT + col0 + col0 AS col0 FROM tab2 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * tab2.col1 + tab2.col2 * col1 col2 FROM tab2
----
1292
1674
3068

query I rowsort
SELECT ALL + col2 + - col1 * + col1 * - col2 FROM tab0
----
244101
679124
9410

query I rowsort
SELECT DISTINCT - col0 * + col2 * + col0 + tab1.col0 FROM tab1
----
-233408
-483
-614320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-972
SELECT DISTINCT - cor0.col2 * col0 + + CAST( 0 + - col2 AS SIGNED ) * - cor0.col1 FROM tab2 AS cor0
----
-2356
-494
648

skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT - cor0.col2 * col0 + + CAST ( 0 + - col2 AS INTEGER ) * - cor0.col1 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT DISTINCT col2 * + cor0.col1 + - col1 AS col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT - + col2 + + cor0.col0 FROM tab0 AS cor0
----
-9
34
7

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

query I rowsort
SELECT ALL + - ( - col2 ) + col1 * + 30 FROM tab2 AS cor0
----
1796
548
957

query I rowsort
SELECT ALL - col2 * + cor0.col2 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-611884
-93654
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 + + cor0.col2 + col2 col1 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE col0 * - col1 BETWEEN NULL AND ( col1 * + col1 )
----

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

query I rowsort
SELECT ALL col2 * col2 * + col2 + col0 * + col2 FROM tab2
----
19604
19872
57874

query I rowsort
SELECT col0 * col1 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + col1 + - tab0.col2 - col2 FROM tab0
----
-73
20
95

query I rowsort
SELECT DISTINCT + col2 * + col0 * col2 AS col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL col2 + col2 + col2 FROM tab1 cor0
----
162
171
288

query I rowsort
SELECT col1 + col2 * + col0 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-988
SELECT DISTINCT cor0.col0 DIV col2 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-988
SELECT DISTINCT cor0.col0 / col2 FROM tab0 cor0
----
0
1
35

query I rowsort
SELECT DISTINCT tab1.col0 * + tab1.col0 * + col0 - - col2 FROM tab1
----
262201
512096
81

query I rowsort
SELECT DISTINCT + col2 + - tab2.col0 * - tab2.col2 AS col1 FROM tab2
----
2054
216
3040

query I rowsort
SELECT - col2 * + col0 + - col0 AS col2 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT - col2 FROM tab2 WHERE ( NULL ) IN ( + col1 * col2 )
----

query I rowsort
SELECT ALL col0 * + tab1.col1 + + col0 * - col0 AS col0 FROM tab1
----
-3456
-5360
69

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( col1 + - col0 + col2 ) AND NULL
----

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND ( col1 )
----

query I rowsort
SELECT col2 / - col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col1 + - col2 * - col2 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT ALL - - col1 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + + col1 * 77 AS col1 FROM tab0 AS cor0
----
6598
6918
7434

query I rowsort
SELECT DISTINCT 72 * - cor0.col0 FROM tab1 AS cor0
----
-216
-4608
-5760

query I rowsort
SELECT ALL + - 36 + + col0 * + col1 * + col1 FROM tab0 cor0
----
177468
329279
736973

query I rowsort
SELECT DISTINCT - + cor0.col0 * + cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col2 * col2 + 17 + cor0.col1 AS col1 FROM tab0 AS cor0
----
115
1192
6832

query I rowsort
SELECT + + 88 - col0 AS col1 FROM tab2 AS cor0
----
10
81
9

query I rowsort
SELECT ( + col1 ) + col2 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT + + col2 * - col2 + cor0.col0 * - ( col1 + 5 * + cor0.col2 ) FROM tab2 AS cor0
----
-15418
-17797
-1891

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

query I rowsort
SELECT DISTINCT - col1 * + col1 + 21 * ( - col2 ) + + 94 FROM tab0 AS cor0
----
-7995
-9336
-9909

query I rowsort
SELECT DISTINCT - - 68 - col2 * 92 FROM tab0 AS cor0
----
-24
-2968
-7476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 + + col0 col2 FROM tab0 AS cor0
----
-63
-74
-9

query I rowsort
SELECT - - col2 * - 83 * - 76 FROM tab2 AS cor0
----
164008
170316
239704

query I rowsort
SELECT ALL - tab1.col1 + - col2 * + 73 FROM tab1
----
-3968
-4171
-7021

query I rowsort
SELECT col1 + ( 69 ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
6020
6370
6790

query I rowsort
SELECT ALL + 40 + ( col1 ) * col0 FROM tab0 AS cor0
----
2104
3435
8139

query I rowsort
SELECT DISTINCT col1 - - 63 FROM tab1 AS cor0
----
73
76
89

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

query I rowsort
SELECT ALL - col0 * 60 + + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-13439
-3504
-5495

query I rowsort
SELECT DISTINCT + 35 + 74 FROM tab1 cor0
----
109

query I rowsort
SELECT + col0 * + col0 - col2 FROM tab2
----
22
6058
6203

query I rowsort
SELECT DISTINCT - col1 - - col2 * col0 FROM tab2
----
158
1969
2985

query I rowsort
SELECT - ( ( + col2 ) + 49 ) * col2 AS col1 FROM tab0
----
-10742
-2706
-50

query I rowsort
SELECT - col1 + col2 + col2 AS col1 FROM tab0
----
-20
-95
73

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

skipif mysql # not compatible
query I rowsort label-1023
SELECT CAST ( + 85 AS INTEGER ) AS col0 FROM tab2
----
85
85
85

query I rowsort
SELECT DISTINCT + 69 + 43 FROM tab0 AS cor0
----
112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1025
SELECT DISTINCT CAST( - cor0.col2 AS SIGNED ) * col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-1025
SELECT DISTINCT CAST ( - cor0.col2 AS INTEGER ) * col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

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

query I rowsort
SELECT ALL col1 * - 62 AS col1 FROM tab1
----
-1612
-620
-806

query I rowsort
SELECT ALL - cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT ALL + 29 FROM tab2, tab1 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # use DIV operator for integer division
query I rowsort label-1030
SELECT + ( - col0 ) DIV col1 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-1030
SELECT + ( - col0 ) / col1 FROM tab1
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * - col2 * - col1 col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - - col2 + col0 + + 39 FROM tab2 AS cor0
----
143
156
73

query I rowsort
SELECT - 18 * - col1 + col2 * col1 AS col2 FROM tab0 AS cor0
----
1843
4386
9100

query I rowsort
SELECT ALL tab0.col1 * + tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

query I rowsort
SELECT ALL cor1.col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

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

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT - col2 / - ( + col0 ) AS col1 FROM tab0
----
0
1

query I rowsort
SELECT ALL + col0 + col0 + 12 FROM tab0 AS cor0
----
190
60
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * ( - col2 ) + + col1 * ( col2 ) + col0 col1 FROM tab1 AS cor0
----
-3014
-6352
1245

query I rowsort
SELECT ALL - col0 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) + col1 col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT col2 * ( - cor0.col1 ) - ( + 84 ) AS col1 FROM tab0 AS cor0
----
-181
-2922
-7546

query I rowsort
SELECT ALL 48 + - col2 * col0 AS col0 FROM tab2 AS cor0
----
-141
-1980
-2954

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - - col1 / cor0.col2 col1 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1045
SELECT col2 DIV - 78 + - col2 * col0 FROM tab0
----
-35
-7299
-792

skipif mysql # not compatible
query I rowsort label-1045
SELECT col2 / - 78 + - col2 * col0 FROM tab0
----
-35
-7299
-792

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

skipif mysql # not compatible
query I rowsort label-1046
SELECT ( col1 ) / - col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 82 * + col2 AS col1 FROM tab1 cor0
----
-4428
-4674
-7872

query I rowsort
SELECT + 9 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT - + col1 + col0 * - col1 * col2 FROM tab2 cor0
----
-119711
-51051
-5890

query I rowsort
SELECT col2 + - 83 AS col0 FROM tab0 AS cor0
----
-1
-50
-82

query I rowsort
SELECT - + col1 + 41 FROM tab2 AS cor0
----
-18
10
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-1052
SELECT DISTINCT + cor0.col2 DIV + col2 + col0 * col2 AS col2 FROM tab0 AS cor0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-1052
SELECT DISTINCT + cor0.col2 / + col2 + col0 * col2 AS col2 FROM tab0 AS cor0
----
36
7299
793

query I rowsort
SELECT DISTINCT - col2 + - 24 FROM tab0 AS cor0
----
-106
-25
-57

query I rowsort
SELECT DISTINCT col0 * col2 + 17 AS col1 FROM tab2 cor0
----
2045
206
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-1055
SELECT - col1 DIV 84 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1055
SELECT - col1 / 84 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + - ( 63 ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1071
-1953
-3717

query I rowsort
SELECT ALL ( 52 ) FROM tab0 cor0
----
52
52
52

skipif mysql # not compatible
query I rowsort
SELECT ( - col0 ) + col1 * CAST ( + 57 AS REAL ) AS col0 FROM tab2 cor0
----
1760
3285
890

query I rowsort
SELECT DISTINCT 61 AS col2 FROM tab1 AS cor0
----
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-1060
SELECT + col2 + + tab0.col2 DIV 85 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1060
SELECT + col2 + + tab0.col2 / 85 FROM tab0
----
1
33
82

query I rowsort
SELECT - tab0.col0 - + col1 AS col0 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT tab2.col1 + 31 * - col1 FROM tab2
----
-1770
-510
-930

query I rowsort
SELECT DISTINCT - col0 * - 90 AS col1 FROM tab0
----
2160
3150
8010

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

query I rowsort
SELECT - col2 - - 78 * - 47 FROM tab2
----
-3692
-3693
-3704

onlyif mysql # use DIV operator for integer division
query I rowsort label-1066
SELECT + col2 * - 28 + 27 DIV + col1 AS col2 FROM tab2
----
-1063
-728
-756

skipif mysql # not compatible
query I rowsort label-1066
SELECT + col2 * - 28 + 27 / + col1 AS col2 FROM tab2
----
-1063
-728
-756

query I rowsort
SELECT ( + ( + tab1.col0 ) ) AS col0 FROM tab1
----
3
64
80

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

query I rowsort
SELECT - col2 * - col2 + + 12 FROM tab2 AS cor0
----
1456
688
741

query I rowsort
SELECT cor0.col0 * + col0 + + col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT col2 * - 95 AS col2 FROM tab0
----
-3135
-7790
-95

query I rowsort
SELECT DISTINCT col0 * + col0 * col1 AS col2 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT ALL + 13 + + 38 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT - 5 + - col2 * ( + col0 ) AS col0 FROM tab2 AS cor0
----
-194
-2033
-3007

query I rowsort
SELECT ALL col1 + + col2 + - ( 74 ) FROM tab0
----
24
45
99

query I rowsort
SELECT DISTINCT + col2 + + col1 * - 51 AS col2 FROM tab0 AS cor0
----
-4353
-4559
-4946

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

query I rowsort
SELECT ALL 72 + col0 * - col0 AS col2 FROM tab1
----
-4024
-6328
63

query I rowsort
SELECT ALL - 63 + - col0 AS col1 FROM tab2
----
-141
-142
-70

query I rowsort
SELECT - - col1 * col2 + + 94 FROM tab2 AS cor0
----
1628
740
931

query I rowsort
SELECT cor0.col2 AS col0 FROM tab2, tab0, tab2 AS cor0, tab1 cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT ALL col0 * + cor0.col2 - col2 * - col2 AS col1 FROM tab0 AS cor0
----
14022
1881
36

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 2c9bc625661696fa1cf187c4d0f703a1

query I rowsort
SELECT DISTINCT - col1 + 97 * 63 * col0 FROM tab2 cor0
----
42746
476599
482752

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

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL col2 / CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - col2 + 91 * + 16 AS col2 FROM tab2 AS cor0
----
1418
1429
1430

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

query I rowsort
SELECT DISTINCT col2 + - col1 - - col2 * cor0.col0 FROM tab1 AS cor0
----
190
3695
7763

query I rowsort
SELECT DISTINCT + col0 * - 40 * col1 FROM tab1 AS cor0
----
-25600
-3120
-41600

query I rowsort
SELECT - + col1 * - ( + col0 ) * - cor0.col0 + col0 * 32 + - col1 FROM tab0 AS cor0
----
-117802
-48854
-718054

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

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

query I rowsort
SELECT + col1 * 48 FROM tab1 cor0
----
1248
480
624

query I rowsort
SELECT DISTINCT + + col1 + 2 FROM tab2 AS cor0
----
19
33
61

query I rowsort
SELECT + col1 + + 84 AS col1 FROM tab2 AS cor0
----
101
115
143

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1096
SELECT col1 + + CAST( 89 AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
-2050
-3018
-7830

skipif mysql # not compatible
query I rowsort label-1096
SELECT col1 + + CAST ( 89 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
-2050
-3018
-7830

query I rowsort
SELECT 52 + + col1 + col2 FROM tab1
----
119
132
161

onlyif mysql # use DIV operator for integer division
query I rowsort label-1098
SELECT ALL ( + col1 ) DIV - tab0.col1 + col2 + col1 * col2 FROM tab0
----
2870
7543
97

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL ( + col1 ) / - tab0.col1 + col2 + col1 * col2 FROM tab0
----
2870
7543
97

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993

query I rowsort
SELECT col1 * + 96 FROM tab1
----
1248
2496
960

query I rowsort
SELECT ALL - + 77 + col1 FROM tab2 AS cor0
----
-18
-46
-60

query I rowsort
SELECT DISTINCT + col0 * + col1 * cor0.col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - 53 + col0 AS col0 FROM tab0 AS cor0
----
-18
-29
36

query I rowsort
SELECT DISTINCT + 0 AS col1 FROM tab0 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1105
SELECT - + col1 DIV + cor0.col2 - + col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-1105
SELECT - + col1 / + cor0.col2 - + col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-1106
SELECT ALL - 39 * 31 DIV + col0 col1 FROM tab1 AS cor0
----
-15
-18
-403

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL - 39 * 31 / + col0 col1 FROM tab1 AS cor0
----
-15
-18
-403

onlyif mysql # use DIV operator for integer division
query I rowsort label-1107
SELECT - ( + 92 ) - col1 DIV col0 AS col0 FROM tab0 AS cor0
----
-93
-94
-95

skipif mysql # not compatible
query I rowsort label-1107
SELECT - ( + 92 ) - col1 / col0 AS col0 FROM tab0 AS cor0
----
-93
-94
-95

query I rowsort
SELECT ( + 62 ) * col2 + - col1 AS col1 FROM tab1 AS cor0
----
3322
3524
5939

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

query I rowsort
SELECT - + 15 + col2 * + 11 AS col2 FROM tab0 AS cor0
----
-4
348
887

query I rowsort
SELECT ALL + 75 * col0 * col0 AS col1 FROM tab0 AS cor0
----
43200
594075
91875

query I rowsort
SELECT - 41 + 26 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT - + cor0.col0 + col1 * + col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT ALL 28 AS col1 FROM tab1 cor0
----
28
28
28

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 * col1 + - 94 col0 FROM tab1 AS cor0
----
206
296
686

query I rowsort
SELECT - ( - 46 ) * - col0 + 50 AS col1 FROM tab2
----
-272
-3538
-3584

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

query I rowsort
SELECT ALL + + col1 + + col0 * ( - 56 ) * + col0 AS col2 FROM tab1 AS cor0
----
-229366
-358387
-478

query I rowsort
SELECT col1 + 58 FROM tab1
----
68
71
84

query I rowsort
SELECT ALL - + col0 + 14 FROM tab2 AS cor0
----
-64
-65
7

query I rowsort
SELECT ALL + col2 * + 2 + + 97 AS col0 FROM tab1 AS cor0
----
205
211
289

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

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

query I rowsort
SELECT ALL + cor0.col1 * col2 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL + - cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1126
SELECT DISTINCT - col2 DIV + 64 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
3
64
79

skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT - col2 / + 64 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
3
64
79

query I rowsort
SELECT ALL - col2 + - col1 + col0 FROM tab2 AS cor0
----
-51
-7
24

query I rowsort
SELECT ALL col1 * col2 * col2 + col1 FROM tab0 AS cor0
----
194
611975
93740

query I rowsort
SELECT DISTINCT + col0 + col2 * + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - - 39 + col2 * - col1 * - ( col0 ) AS col2 FROM tab2 AS cor0
----
119691
51073
5898

query I rowsort
SELECT ALL - 1 + col0 AS col0 FROM tab1 AS cor0
----
2
63
79

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

query I rowsort
SELECT ALL 1 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT DISTINCT 90 * - col0 FROM tab0 cor0
----
-2160
-3150
-8010

query I rowsort
SELECT ALL ( 86 ) + + col2 FROM tab2
----
112
113
124

query I rowsort
SELECT DISTINCT + + col0 + + col2 + 35 * col1 FROM tab2 AS cor0
----
1119
2169
712

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 27 col1 FROM tab1 AS cor0
----
107
30
91

query I rowsort
SELECT + 7 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT col1 + - col1 * + 92 AS col1 FROM tab2
----
-1547
-2821
-5369

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
17
31
59

query I rowsort
SELECT + 88 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT - col1 * tab2.col1 + col0 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT - + col2 * ( col1 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL col1 + 74 FROM tab0
----
160
165
171

query I rowsort
SELECT ( col2 + - col0 ) AS col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT + col1 * + col0 + - col1 AS col1 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-1148
SELECT DISTINCT - col1 + + 92 DIV - col1 AS col1 FROM tab2
----
-22
-33
-60

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT - col1 + + 92 / - col1 AS col1 FROM tab2
----
-22
-33
-60

query I rowsort
SELECT col0 * col1 * 78 AS col2 FROM tab1 AS cor0
----
49920
6084
81120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1150
SELECT + ( col1 ) + - col1 * CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
-272
-3422
-930

skipif mysql # not compatible
query I rowsort label-1150
SELECT + ( col1 ) + - col1 * CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
-272
-3422
-930

onlyif mysql # use DIV operator for integer division
query I rowsort label-1151
SELECT DISTINCT - col1 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT - col1 / cor0.col1 AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT 73 * - cor0.col1 + - col0 + + ( - col0 * col0 ) AS col1 FROM tab1 AS cor0
----
-1910
-4890
-7429

query I rowsort
SELECT ALL + - col0 + - cor0.col2 * - col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - ( + col0 ) + ( - col1 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
-7420
-8370
-9444

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

query I rowsort
SELECT col0 * col1 + 65 AS col2 FROM tab2 AS cor0
----
1408
282
4667

onlyif mysql # use DIV operator for integer division
query I rowsort label-1157
SELECT DISTINCT - - 18 * col0 DIV - col0 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT - - 18 * col0 / - col0 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT col0 * col2 + - col1 * 2 + - col2 AS col1 FROM tab2 AS cor0
----
100
1884
2930

query I rowsort
SELECT DISTINCT ( col2 ) + col1 + - col0 FROM tab1
----
29
3
77

query I rowsort
SELECT ALL 6 + - col2 * col2 + - col1 AS col0 FROM tab2
----
-1455
-729
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-1161
SELECT - 45 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1161
SELECT - 45 / col0 AS col0 FROM tab0 AS cor0
----
-1
-1
0

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

query I rowsort
SELECT 97 AS col1 FROM tab2 cor0
----
97
97
97

query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

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

query I rowsort
SELECT ALL - - 54 AS col0 FROM tab0 cor0
----
54
54
54

query I rowsort
SELECT col1 + - cor0.col0 * + ( col1 ) FROM tab2 AS cor0
----
-1326
-186
-4543

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

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

query I rowsort
SELECT ALL - col1 * col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
22831
271518
6727

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

query I rowsort
SELECT + 78 + + col0 AS col2 FROM tab0 AS cor0
----
102
113
167

query I rowsort
SELECT ALL - + col2 + col1 * + 73 * + 57 AS col2 FROM tab0 cor0
----
357813
378569
403616

query I rowsort
SELECT DISTINCT + ( 23 ) AS col1 FROM tab2, tab0, tab0 AS cor0
----
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-1175
SELECT + col1 + + 22 DIV 73 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1175
SELECT + col1 + + 22 / 73 AS col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-1176
SELECT cor0.col2 DIV - col2 - - col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-1176
SELECT cor0.col2 / - col2 - - col1 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT - cor0.col0 + - ( 95 ) FROM tab2 AS cor0
----
-102
-173
-174

query I rowsort
SELECT col0 - col0 * cor0.col1 AS col1 FROM tab1 cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-1179
SELECT DISTINCT - col0 DIV - 30 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-1179
SELECT DISTINCT - col0 / - 30 FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT ALL + col0 + - 5 * - col2 * col2 AS col0 FROM tab0 AS cor0
----
33709
40
5469

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be

query I rowsort
SELECT DISTINCT - col1 * col0 - - col1 FROM tab0 cor0
----
-1978
-3298
-8008

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + 24 col1 FROM tab1 cor0
----
30
33
72

query I rowsort
SELECT DISTINCT - - 91 * + 91 * - col0 FROM tab0 cor0
----
-198744
-289835
-737009

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col1 col1 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 + - col1 col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT - 33 + col1 * col1 FROM tab0 AS cor0
----
7363
8248
9376

onlyif mysql # use DIV operator for integer division
query I rowsort label-1190
SELECT DISTINCT + - col2 DIV cor0.col0 - - cor0.col1 AS col0 FROM tab0 AS cor0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT + - col2 / cor0.col0 - - cor0.col1 AS col0 FROM tab0 AS cor0
----
85
91
97

query I rowsort
SELECT + ( - col1 ) * col2 * col0 + - 54 FROM tab2 cor0
----
-119706
-51088
-5913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 83 * col1 col2 FROM tab2 AS cor0
----
-1411
-2573
-4897

query I rowsort
SELECT DISTINCT col2 - + cor0.col2 FROM tab1 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1194
SELECT DISTINCT - col2 - 61 DIV col2 AS col0 FROM tab0
----
-34
-62
-82

skipif mysql # not compatible
query I rowsort label-1194
SELECT DISTINCT - col2 - 61 / col2 AS col0 FROM tab0
----
-34
-62
-82

query I rowsort
SELECT - col0 + - 18 * col2 AS col1 FROM tab1
----
-1090
-1808
-975

query I rowsort
SELECT + col2 + col2 - tab1.col0 FROM tab1
----
105
112
50

query I rowsort
SELECT DISTINCT - 23 + col0 AS col2 FROM tab0
----
1
12
66

query I rowsort
SELECT + 86 * 76 FROM tab1
----
6536
6536
6536

query I rowsort
SELECT + 45 + col2 AS col0 FROM tab2
----
71
72
83

query I rowsort
SELECT col1 + 4 AS col2 FROM tab1
----
14
17
30

query I rowsort
SELECT DISTINCT - 74 + tab1.col1 FROM tab1
----
-48
-61
-64

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

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

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

query I rowsort
SELECT + ( - 67 ) * + col1 + - 91 FROM tab2 AS cor0
----
-1230
-2168
-4044

onlyif mysql # use DIV operator for integer division
query I rowsort label-1205
SELECT DISTINCT + col1 DIV + col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT + col1 / + col1 FROM tab0 cor0
----
1

query I rowsort
SELECT DISTINCT - - ( 6 ) FROM tab2 AS cor0
----
6

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

query I rowsort
SELECT - col2 * - col0 * cor0.col0 AS col1 FROM tab2 cor0
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + cor0.col2 + 70 * col2 col0 FROM tab0 AS cor0
----
13202
167
5148

query I rowsort
SELECT + 98 * col0 AS col2 FROM tab1 AS cor0
----
294
6272
7840

query I rowsort
SELECT cor0.col1 * cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba

query I rowsort
SELECT cor0.col0 + 37 FROM tab2 AS cor0
----
115
116
44

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

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

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

query I rowsort
SELECT cor0.col2 * - col0 + col2 * - cor0.col1 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT ALL + col2 + ( - ( tab0.col0 ) + + col1 ) FROM tab0
----
63
84
95

query I rowsort
SELECT DISTINCT - 38 - 46 FROM tab2, tab1 AS cor0
----
-84

query I rowsort
SELECT + col2 * ( col0 ) + col2 * 53 * + 73 - + col1 FROM tab1 cor0
----
209062
224171
379091

query I rowsort
SELECT ALL - col1 * 64 * col1 - col1 * col1 FROM tab0 AS cor0
----
-480740
-538265
-611585

query I rowsort
SELECT ALL - col1 * + ( col1 ) + cor0.col2 - col0 * 93 FROM tab1 AS cor0
----
-5995
-7513
-901

query I rowsort
SELECT DISTINCT + 43 * col2 * 53 FROM tab1
----
123066
129903
218784

query I rowsort
SELECT 23 * col1 + tab2.col0 FROM tab2
----
1435
470
720

query I rowsort
SELECT DISTINCT + cor1.col1 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
86
91
97

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

query I rowsort
SELECT ALL col2 + cor0.col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

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

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

skipif mysql # not compatible
query I rowsort label-1227
SELECT DISTINCT + col0 + CAST ( col0 * col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + col2 * + col0 + + col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT DISTINCT col2 + tab0.col0 * col0 AS col1 FROM tab0
----
1226
609
8003

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 + col1 + col1 ) <> col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

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

query I rowsort
SELECT ALL tab1.col0 * tab1.col1 + + col0 FROM tab1
----
1120
704
81

query III rowsort
SELECT * FROM tab1 WHERE col0 * col1 + - col2 = NULL
----

query I rowsort
SELECT col2 / tab0.col2 AS col2 FROM tab0 WHERE NOT NULL BETWEEN ( - col2 * - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 * col1 + - col2 + col0 AS col1 FROM tab0 WHERE + col1 + col1 * col1 IN ( - tab0.col2 )
----

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

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

query I rowsort
SELECT ALL + col0 * col2 * + col0 + - col0 FROM tab1
----
233408
483
614320

query I rowsort
SELECT col1 - + col1 * col2 * + col2 FROM tab0
----
-611793
-93568
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 / tab0.col1 col0 FROM tab0 WHERE NULL BETWEEN - col1 + col1 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1240
SELECT col0 DIV - col0 - - col2 AS col1 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-1240
SELECT col0 / - col0 - - col2 AS col1 FROM tab1
----
53
56
95

query I rowsort
SELECT col2 * col2 FROM tab2 WHERE NOT col1 * - col2 NOT BETWEEN NULL AND ( - col2 )
----

query I rowsort
SELECT ALL - tab2.col2 FROM tab2 WHERE - col2 > NULL
----

query I rowsort
SELECT DISTINCT col0 + + col1 * col0 * col0 FROM tab0
----
118860
49560
720900

query I rowsort
SELECT - - col0 * col1 + 76 AS col2 FROM tab1 AS cor0
----
1116
154
716

query I rowsort
SELECT ALL - + ( cor0.col1 ) - - col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL + ( col1 ) + ( col1 ) FROM tab0 AS cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 * - col0 col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + tab1.col1 + - col0 AS col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT - - col1 + col1 * + col1 * cor0.col2 FROM tab2 AS cor0
----
10999
25978
90565

query I rowsort
SELECT - + col2 * + col1 + ( col0 + col2 ) FROM tab1 AS cor0
----
-1072
-1347
-449

query I rowsort
SELECT + col1 * - cor0.col1 + + ( ( + col2 ) ) FROM tab2 AS cor0
----
-251
-3455
-934

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

skipif mysql # not compatible
query I rowsort label-1252
SELECT 5 + - col2 * + 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-1253
SELECT - - col1 * - col1 + CAST( NULL AS SIGNED ) * col1 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-1253
SELECT - - col1 * - col1 + CAST ( NULL AS INTEGER ) * col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + 21 FROM tab2 AS cor0
----
47
48
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-1255
SELECT DISTINCT + ( + col0 + col2 ) DIV 49 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT + ( + col0 + col2 ) / 49 FROM tab0
----
0
1
3

query I rowsort
SELECT - + col0 * 67 + col2 AS col0 FROM tab1 AS cor0
----
-147
-4231
-5264

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1258
SELECT CAST( col2 AS SIGNED ) * col2 - + col1 AS col1 FROM tab0 AS cor0
----
-96
1003
6633

skipif mysql # not compatible
query I rowsort label-1258
SELECT CAST ( col2 AS INTEGER ) * col2 - + col1 AS col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT - - col1 * 80 FROM tab2 AS cor0
----
1360
2480
4720

query I rowsort
SELECT - + col2 * + 23 + col0 * - ( - col2 * col1 ) + + col0 FROM tab1 AS cor0
----
2973
35233
97712

query I rowsort
SELECT + cor1.col2 * + 76 - + 12 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 61238bd2f7ad90ad0a1785926eed7984

query I rowsort
SELECT - ( 64 ) + + col0 * - 59 FROM tab2 AS cor0
----
-4666
-4725
-477

query I rowsort
SELECT - 44 AS col1 FROM tab0 cor0
----
-44
-44
-44

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

skipif mysql # not compatible
query I rowsort
SELECT + + 68 * - col2 + CAST ( col1 AS REAL ) * + col1 + 79 FROM tab1 cor0
----
-2917
-3697
-6280

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1267
SELECT + col2 * col1 + - CAST( + col1 AS SIGNED ) + col2 FROM tab0 AS cor0
----
1
2785
7453

skipif mysql # not compatible
query I rowsort label-1267
SELECT + col2 * col1 + - CAST ( + col1 AS INTEGER ) + col2 FROM tab0 AS cor0
----
1
2785
7453

query I rowsort
SELECT 21 * + tab2.col2 FROM tab2
----
546
567
798

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

query I rowsort
SELECT + ( 71 ) AS col1 FROM tab0
----
71
71
71

query I rowsort
SELECT + 20 + tab1.col1 + col0 * col2 FROM tab1
----
208
3678
7713

query I rowsort
SELECT - 58 * col1 - - col1 AS col2 FROM tab2 cor0
----
-1767
-3363
-969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + col2 * - col2 col0 FROM tab0
----
-34
1065
6635

query I rowsort
SELECT ALL col0 * + col2 + + col1 * + col0 FROM tab2
----
406
4345
6630

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

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT col0 + - 73 FROM tab1
----
-70
-9
7

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1279
SELECT 40 DIV + col0 - + col2 FROM tab1
----
-41
-57
-96

skipif mysql # not compatible
query I rowsort label-1279
SELECT 40 / + col0 - + col2 FROM tab1
----
-41
-57
-96

query I rowsort
SELECT ALL 9 * col1 FROM tab1
----
117
234
90

query I rowsort
SELECT col1 + + 38 FROM tab2 cor0
----
55
69
97

query I rowsort
SELECT - + 28 * - col1 FROM tab2 AS cor0
----
1652
476
868

query I rowsort
SELECT + - 31 * 54 AS col1 FROM tab1 AS cor0
----
-1674
-1674
-1674

query I rowsort
SELECT ALL 46 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT + 16 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 col0 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 * + col2 col0 FROM tab1 AS cor0
----
5238
5529
9312

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

query I rowsort
SELECT - 49 AS col2 FROM tab2 AS cor0
----
-49
-49
-49

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

query I rowsort
SELECT + + col1 * col2 - col2 AS col1 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL 51 AS col0 FROM tab2
----
51
51
51

query I rowsort
SELECT - col1 + + col0 * col0 * col0 AS col2 FROM tab2 AS cor0
----
312
474493
493022

onlyif mysql # use DIV operator for integer division
query I rowsort label-1294
SELECT ALL + ( + col2 ) * - col1 DIV - col1 AS col2 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL + ( + col2 ) * - col1 / - col1 AS col2 FROM tab2 cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1295
SELECT ( - 99 ) DIV - col0 FROM tab0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-1295
SELECT ( - 99 ) / - col0 FROM tab0
----
1
2
4

query I rowsort
SELECT - col0 + col2 * cor0.col2 FROM tab2 cor0 WHERE NULL < NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + - col1 * col0 NOT BETWEEN ( - col1 - col1 ) AND NULL
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

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

query I rowsort
SELECT DISTINCT col0 + cor0.col2 * - col2 - + col2 AS col1 FROM tab0 AS cor0
----
-1098
-6717
33

query I rowsort
SELECT ALL + cor0.col2 + col0 + + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1072
-1347
-449

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 col2 FROM tab0 AS cor0
----
164
2
66

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1304
SELECT ALL + col2 * - col2 + - tab0.col0 DIV + col2 + - tab0.col1 * col2 FROM tab0
----
-133
-14187
-3927

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL + col2 * - col2 + - tab0.col0 / + col2 + - tab0.col1 * col2 FROM tab0
----
-133
-14187
-3927

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 + - col1 col2 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT ALL col0 + + col2 + col1 FROM tab0
----
133
143
262

query I rowsort
SELECT ALL - col1 + col2 - - col2 AS col0 FROM tab2
----
-7
23
59

query I rowsort
SELECT + tab1.col0 * col2 + - tab1.col1 + col0 AS col0 FROM tab1
----
139
3702
7747

query I rowsort
SELECT ALL - tab2.col0 + col2 + - col0 * col0 FROM tab2
----
-29
-6136
-6282

query I rowsort
SELECT DISTINCT - col0 + col2 + + col0 * col0 FROM tab1
----
4089
60
6416

onlyif mysql # use DIV operator for integer division
query I rowsort label-1311
SELECT col1 DIV col2 + - col0 AS col1 FROM tab0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-1311
SELECT col1 / col2 + - col0 AS col1 FROM tab0
----
-22
-88
62

query I rowsort
SELECT - col1 * tab0.col0 * col0 AS col2 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT col2 * tab2.col2 + tab2.col2 - col0 AS col0 FROM tab2
----
1403
624
749

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1315
SELECT ALL - col2 * col0 DIV + col2 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL - col2 * col0 / + col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + + cor0.col0 * - col0 * + col2 + - cor0.col2 + col1 FROM tab0 AS cor0
----
-1129
-18955
-649513

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

query I rowsort
SELECT DISTINCT col0 * col2 + col2 * + cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
14111
1905
71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= col1 OR NULL NOT IN ( + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1320
SELECT ALL + - col1 DIV col2 + + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL + - col1 / col2 + + col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 + col0 col1 FROM tab0 AS cor0
----
2088
3430
8188

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

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

query I rowsort
SELECT ALL - col2 + col0 * - col0 + + col1 AS col2 FROM tab1 AS cor0
----
-37
-4143
-6483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col2 * - col2 col0 FROM tab1
----
-2919
-3313
-9296

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1327
SELECT tab0.col2 * col0 DIV col2 + col2 * col2 FROM tab0
----
1113
36
6813

skipif mysql # not compatible
query I rowsort label-1327
SELECT tab0.col2 * col0 / col2 + col2 * col2 FROM tab0
----
1113
36
6813

query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0 CROSS JOIN tab1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1329
SELECT col2 DIV - col0 + + col1 AS col0 FROM tab0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-1329
SELECT col2 / - col0 + + col1 AS col0 FROM tab0
----
85
91
97

query I rowsort
SELECT DISTINCT - col2 * - col2 - cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
-1352
-1558
540

query I rowsort
SELECT ALL - col0 / col2 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT + cor0.col0 + - 29 AS col1 FROM tab0 AS cor0
----
-5
6
60

query I rowsort
SELECT ALL ( - 85 ) AS col1 FROM tab0 cor0
----
-85
-85
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1335
SELECT CAST( - col1 AS SIGNED ) * col0 + - 66 AS col2 FROM tab2 AS cor0
----
-1409
-283
-4668

skipif mysql # not compatible
query I rowsort label-1335
SELECT CAST ( - col1 AS INTEGER ) * col0 + - 66 AS col2 FROM tab2 AS cor0
----
-1409
-283
-4668

query I rowsort
SELECT DISTINCT - - col0 + ( col1 * col1 ) AS col2 FROM tab0 AS cor0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-1337
SELECT ALL - - col2 DIV col1 + - col1 AS col1 FROM tab2 AS cor0
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL - - col2 / col1 + - col1 AS col1 FROM tab2 AS cor0
----
-15
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-1338
SELECT 58 + col0 DIV col1 FROM tab2 AS cor0
----
58
59
62

skipif mysql # not compatible
query I rowsort label-1338
SELECT 58 + col0 / col1 FROM tab2 AS cor0
----
58
59
62

query I rowsort
SELECT DISTINCT + - col2 * + col2 + col2 FROM tab0 AS cor0
----
-1056
-6642
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1340
SELECT col0 + CAST( + col2 AS SIGNED ) AS col1 FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-1340
SELECT col0 + CAST ( + col2 AS INTEGER ) AS col1 FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 * tab1.col1 + - col2 col0 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT cor0.col0 * + 54 FROM tab1, tab0 AS cor0
----
9 values hashing to 08085e5dd776fd51fb3fc0cc67f23f39

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

query I rowsort
SELECT - col0 * - 2 * col2 AS col1 FROM tab1
----
15360
324
7296

query I rowsort
SELECT DISTINCT tab2.col0 + + tab2.col0 AS col2 FROM tab2
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-1346
SELECT ALL - col1 DIV 89 + col2 * - cor0.col0 + 72 FROM tab2 AS cor0
----
-117
-1956
-2930

skipif mysql # not compatible
query I rowsort label-1346
SELECT ALL - col1 / 89 + col2 * - cor0.col0 + 72 FROM tab2 AS cor0
----
-117
-1956
-2930

query I rowsort
SELECT + col0 * - cor0.col0 + col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 AS col1 FROM tab2 cor0
----
49
6084
6241

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

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

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

query I rowsort
SELECT + col0 * ( col1 ) FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - ( - col0 ) * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + - col2 * ( col1 ) + col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL + col1 - col0 * col2 * col1 AS col0 FROM tab2 cor0
----
-119593
-51017
-5828

onlyif mysql # use DIV operator for integer division
query I rowsort label-1356
SELECT ALL tab0.col1 DIV - ( col0 ) + + col2 FROM tab0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL tab0.col1 / - ( col0 ) + + col2 FROM tab0
----
-1
30
81

query I rowsort
SELECT DISTINCT col1 + - 14 FROM tab1
----
-1
-4
12

query I rowsort
SELECT - tab1.col2 + ( - col2 ) FROM tab1
----
-108
-114
-192

query I rowsort
SELECT + col1 + + col2 - 37 AS col0 FROM tab1 AS cor0
----
30
43
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-1360
SELECT DISTINCT - + col1 + 57 DIV + col1 AS col1 FROM tab1 AS cor0
----
-24
-5
-9

skipif mysql # not compatible
query I rowsort label-1360
SELECT DISTINCT - + col1 + 57 / + col1 AS col1 FROM tab1 AS cor0
----
-24
-5
-9

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

query I rowsort
SELECT 14 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 34 col2 FROM tab1 AS cor0
----
-102
-2176
-2720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 * + col2 + 94 + col2 * ( col2 ) col2 FROM tab1 AS cor0
----
18526
5926
6592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 97 - col0 col2 FROM tab1 AS cor0
----
5235
5465
9232

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

query I rowsort
SELECT - ( 7 ) * col0 + - 52 * 66 FROM tab0 AS cor0
----
-3600
-3677
-4055

query I rowsort
SELECT - 64 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # use DIV operator for integer division
query I rowsort label-1369
SELECT DISTINCT + 34 DIV cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
0
1
34

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT + 34 / cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
0
1
34

query I rowsort
SELECT DISTINCT col2 * + col0 + - col1 AS col1 FROM tab0 cor0
----
-62
706
7207

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

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

query I rowsort
SELECT + + 92 * + col0 FROM tab0 AS cor0
----
2208
3220
8188

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

query I rowsort
SELECT 8 AS col0 FROM tab1 cor0
----
8
8
8

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

query I rowsort
SELECT + tab0.col2 * - tab0.col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to cbc7ea781e219f4177126feeb59feb2d

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 + col1 col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL - col0 * col1 - - col2 * col0 FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT ALL + 94 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT col2 * col1 + + col0 * + 71 * col2 FROM tab0 AS cor0
----
2582
525620
59070

query I rowsort
SELECT DISTINCT - 63 * - cor0.col1 + + col0 + - 81 FROM tab2 cor0
----
1069
1879
3714

query I rowsort
SELECT ALL 56 FROM tab1, tab0 cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT 49 + col1 + + tab1.col1 AS col2 FROM tab1
----
101
69
75

query I rowsort
SELECT col2 - + col1 * col1 FROM tab0
----
-7363
-8199
-9408

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

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

query I rowsort
SELECT col2 * + col1 * + col0 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
115050
49691
5642

query I rowsort
SELECT - 98 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # use DIV operator for integer division
query I rowsort label-1389
SELECT ALL - col1 DIV - tab2.col0 AS col2 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL - col1 / - tab2.col0 AS col2 FROM tab2
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 50 col0 FROM tab0
----
139
74
85

query I rowsort
SELECT + - 65 * - cor0.col1 FROM tab1 AS cor0
----
1690
650
845

query I rowsort
SELECT col2 * 67 + + col1 FROM tab2
----
1801
1840
2563

query I rowsort
SELECT ( - 12 ) * col0 AS col2 FROM tab2 AS cor0
----
-84
-936
-948

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

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

query I rowsort
SELECT DISTINCT - cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1396
SELECT ALL - 86 DIV 54 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL - 86 / 54 FROM tab2 AS cor0
----
-1
-1
-1

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

query I rowsort
SELECT ALL + 69 * cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 61be8b4ccea4cb1cc4add000bd70def7

query I rowsort
SELECT DISTINCT + tab1.col2 * 19 AS col0 FROM tab1, tab0, tab0 AS cor0
----
1026
1083
1824

onlyif mysql # use DIV operator for integer division
query I rowsort label-1400
SELECT ALL col0 DIV - 77 AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL col0 / - 77 AS col0 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL - col1 * col2 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT - + col1 + - cor0.col0 * col0 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT - 0 * col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1404
SELECT - + ( - col2 ) DIV + cor0.col1 AS col0 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1404
SELECT - + ( - col2 ) / + cor0.col1 AS col0 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT + 46 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

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

query I rowsort
SELECT + 51 * col1 AS col2 FROM tab1 AS cor0
----
1326
510
663

onlyif mysql # use DIV operator for integer division
query I rowsort label-1408
SELECT DISTINCT - 98 DIV col1 AS col0 FROM tab2 cor0
----
-1
-3
-5

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT - 98 / col1 AS col0 FROM tab2 cor0
----
-1
-3
-5

query I rowsort
SELECT + cor0.col1 + col1 * + col1 AS col2 FROM tab1 cor0
----
110
182
702

query I rowsort
SELECT ALL + 2 * col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL - cor0.col0 + + col1 * col1 AS col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + col2 - col0 AS col2 FROM tab1 cor0
----
213
3641
7696

query I rowsort
SELECT + col0 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT + + ( col1 ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-1415
SELECT ( + col2 ) DIV col2 + + ( tab0.col2 ) AS col1 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-1415
SELECT ( + col2 ) / col2 + + ( tab0.col2 ) AS col1 FROM tab0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1416
SELECT - ( 24 ) * tab1.col2 + + 20 DIV - col0 FROM tab1
----
-1302
-1368
-2304

skipif mysql # not compatible
query I rowsort label-1416
SELECT - ( 24 ) * tab1.col2 + + 20 / - col0 FROM tab1
----
-1302
-1368
-2304

query I rowsort
SELECT DISTINCT 1 * + 46 FROM tab2
----
46

query I rowsort
SELECT ALL + - col0 * cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + 32 * - col2 AS col2 FROM tab2 AS cor0
----
-1216
-832
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 + + col1 col2 FROM tab2 AS cor0
----
24
38
66

query I rowsort
SELECT + col1 + - col2 * col0 AS col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL + cor0.col0 + 28 FROM tab0 cor0
----
117
52
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-1423
SELECT + + col0 + - col0 DIV - 27 AS col1 FROM tab1 AS cor0
----
3
66
82

skipif mysql # not compatible
query I rowsort label-1423
SELECT + + col0 + - col0 / - 27 AS col1 FROM tab1 AS cor0
----
3
66
82

query I rowsort
SELECT ALL cor0.col1 + + 30 + 38 * cor0.col1 FROM tab1 AS cor0
----
1044
420
537

query I rowsort
SELECT ALL - + 41 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT col2 + + 36 FROM tab0 AS cor0
----
118
37
69

query I rowsort
SELECT + col1 * - col1 + cor0.col1 + col2 FROM tab0 AS cor0
----
-7277
-8108
-9311

query I rowsort
SELECT + - col1 + - 30 * + 27 * - col0 + col0 FROM tab1 AS cor0
----
2407
51894
64867

query I rowsort
SELECT col0 + 20 AS col2 FROM tab2 AS cor0
----
27
98
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 14 col0 FROM tab0 AS cor0
----
-19
-68
13

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

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

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

query I rowsort
SELECT ALL col2 * ( - 6 * col0 ) + + ( + col0 * + col0 ) FROM tab0 AS cor0
----
-35867
-4176
1015

query I rowsort
SELECT ALL + + col0 + col1 * + 12 AS col2 FROM tab0 AS cor0
----
1056
1181
1199

query I rowsort
SELECT DISTINCT + + col2 + - 36 + - col1 FROM tab1 AS cor0
----
-8
11
47

query I rowsort
SELECT DISTINCT + col2 * 72 + 28 + col0 AS col1 FROM tab0 AS cor0
----
135
2428
6021

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

skipif mysql # not compatible
query I rowsort label-1437
SELECT DISTINCT col0 + cor0.col2 / + col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT cor1.col2 + + 15 AS col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 355d6b6029ea0bb9e95b8a820ddb9221

query I rowsort
SELECT DISTINCT + 70 FROM tab2, tab1 AS cor0
----
70

query I rowsort
SELECT DISTINCT col0 + + 29 AS col1 FROM tab1
----
109
32
93

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

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

query I rowsort
SELECT ALL 62 * col0 FROM tab2
----
434
4836
4898

query I rowsort
SELECT col1 * - col2 - + ( 24 ) AS col2 FROM tab2 AS cor0
----
-1558
-670
-861

query I rowsort
SELECT + 11 - + col0 FROM tab0 cor0
----
-13
-24
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 * + col0 col0 FROM tab2 AS cor0
----
42
468
474

query I rowsort
SELECT + col0 + - 37 AS col2 FROM tab2 AS cor0
----
-30
41
42

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

query I rowsort
SELECT cor0.col2 + + 32 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1119
-2766
-735

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

skipif mysql # not compatible
query I rowsort label-1450
SELECT col2 * - CAST ( NULL AS INTEGER ) + 92 * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - ( + col2 ) * col2 FROM tab0 AS cor0
----
-1122
-2
-6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1452
SELECT - + col2 * + CAST( 62 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1612
-1674
-2356

skipif mysql # not compatible
query I rowsort label-1452
SELECT - + col2 * + CAST ( 62 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1612
-1674
-2356

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

query I rowsort
SELECT + cor0.col1 + + col1 + - col2 FROM tab1 AS cor0
----
-2
-37
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 + + col2 * 55 col1 FROM tab2
----
1482
1539
2166

query I rowsort
SELECT + 92 AS col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col0 + col2 col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT + ( - col1 ) + col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - col1 * col1 + + col2 AS col1 FROM tab1 AS cor0
----
-43
-622
-73

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1461
SELECT ALL + 27 DIV - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL + 27 / - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1
-2
-2

query I rowsort
SELECT 48 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT - col0 * + 84 FROM tab0 cor0
----
-2016
-2940
-7476

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

query I rowsort
SELECT - 8 * - col2 FROM tab1 AS cor0
----
432
456
768

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

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL + CAST ( col2 AS INTEGER ) * + col1 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + 71 + col1 AS col2 FROM tab0
----
157
162
168

query I rowsort
SELECT - col0 + col1 * + col0 AS col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT + 17 AS col0 FROM tab2
----
17

query I rowsort
SELECT 24 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT DISTINCT cor0.col2 + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
115
116
127
50
51
61
62
73

query I rowsort
SELECT DISTINCT - + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-26
-27
-38

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

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

query I rowsort
SELECT - col2 + + col2 * + ( + col1 ) AS col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT - - col1 * col0 * col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT ALL - col2 * - 25 FROM tab1 AS cor0
----
1350
1425
2400

onlyif mysql # use DIV operator for integer division
query I rowsort label-1477
SELECT ALL - - cor0.col1 + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL - - cor0.col1 + col0 / - col0 AS col1 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT col1 + - col0 * + 64 AS col0 FROM tab1 AS cor0
----
-166
-4086
-5107

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

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

query I rowsort
SELECT DISTINCT + + cor0.col1 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

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

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

skipif mysql # not compatible
query I rowsort label-1482
SELECT col0 + + col0 / + col0 AS col0 FROM tab0 AS cor0
----
25
36
90

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

skipif mysql # not compatible
query I rowsort label-1483
SELECT - col1 / ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-4
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1484
SELECT ALL - col1 * + col0 + - col1 DIV col0 col1 FROM tab1 AS cor0
----
-1040
-640
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL - col1 * + col0 + - col1 / col0 col1 FROM tab1 AS cor0
----
-1040
-640
-86

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

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

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

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

query I rowsort
SELECT - + col1 * + 61 * + 15 FROM tab1 AS cor0
----
-11895
-23790
-9150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col1 * col0 col1 FROM tab2 cor0
----
-1381
-244
-4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + 59 * col1 AS col1 FROM tab1 AS cor0
----
1534
590
767

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

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

query I rowsort
SELECT DISTINCT + col1 * col1 * + col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT ALL + + ( 65 ) FROM tab0 AS cor0
----
65
65
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1496
SELECT DISTINCT + col1 * col1 DIV col0 AS col2 FROM tab1 AS cor0
----
1
2
225

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT + col1 * col1 / col0 AS col2 FROM tab1 AS cor0
----
1
2
225

query I rowsort
SELECT ALL + col1 * + col0 + + col2 - 34 FROM tab0 AS cor0
----
2063
3362
8147

query I rowsort
SELECT + cor1.col1 + 66 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 13a402e85b7e4e7030f8440fc3fe7984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + 88 - - col0 col0 FROM tab0 cor0
----
2136
3115
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-1500
SELECT ALL - 15 DIV - col2 AS col2 FROM tab0 AS cor0
----
0
0
15

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL - 15 / - col2 AS col2 FROM tab0 AS cor0
----
0
0
15

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

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

query I rowsort
SELECT + - ( + col1 ) * - ( - col2 ) AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL 92 + col2 + + tab0.col2 AS col2 FROM tab0
----
158
256
94

query I rowsort
SELECT DISTINCT + col1 * - ( + cor0.col2 ) * col2 + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-22788
-27550
-41912

query I rowsort
SELECT ALL + cor0.col0 + ( + 83 ) * col2 FROM tab2 AS cor0
----
2236
2248
3233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 col1 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2

query I rowsort
SELECT ALL - col2 * + col1 + + col0 FROM tab1
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 + col2 * + tab2.col1 col1 FROM tab2
----
1632
744
935

query I rowsort
SELECT DISTINCT 39 + col2 AS col1 FROM tab1
----
135
93
96

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

query I rowsort
SELECT + cor0.col2 * + 88 FROM tab1 AS cor0
----
4752
5016
8448

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 90 + - 30 + col0 * 60 col2 FROM tab2 AS cor0
----
-2400
-660
3180

onlyif mysql # use DIV operator for integer division
query I rowsort label-1515
SELECT col0 * 97 - col1 * CAST( col1 AS SIGNED ) DIV col1 AS col0 FROM tab0
----
2242
3298
8542

skipif mysql # not compatible
query I rowsort label-1515
SELECT col0 * 97 - col1 * CAST ( col1 AS INTEGER ) / col1 AS col0 FROM tab0
----
2242
3298
8542

query I rowsort
SELECT DISTINCT - ( - col2 ) - - tab1.col2 FROM tab1
----
108
114
192

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

skipif mysql # not compatible
query I rowsort label-1517
SELECT + CAST ( NULL AS INTEGER ) + 55 - - tab2.col2 * + ( col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 23 - col0 FROM tab0
----
-1
-12
-66

query I rowsort
SELECT - 36 + + col2 * col0 - - cor0.col0 AS col2 FROM tab2 AS cor0
----
160
2070
3045

query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 * - col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT - ( col2 ) * + col2 + col0 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT 95 + - col1 FROM tab2
----
36
64
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1523
SELECT ALL - col1 * col0 + - col2 + col0 DIV - tab0.col0 AS col0 FROM tab0
----
-2098
-3397
-8182

skipif mysql # not compatible
query I rowsort label-1523
SELECT ALL - col1 * col0 + - col2 + col0 / - tab0.col0 AS col0 FROM tab0
----
-2098
-3397
-8182

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

skipif mysql # not compatible
query I rowsort label-1524
SELECT CAST ( NULL AS INTEGER ) + 4 + col1 * tab2.col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + col2 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1527
SELECT ALL - - cor0.col0 DIV - col1 FROM tab1 cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL - - cor0.col0 / - col1 FROM tab1 cor0
----
-6
-6
0

query I rowsort
SELECT ALL + col0 + col1 * ( col0 ) * + col1 FROM tab0 AS cor0
----
177528
329350
737098

query I rowsort
SELECT DISTINCT - + col0 - col0 AS col2 FROM tab1 cor0
----
-128
-160
-6

query I rowsort
SELECT - 16 * - cor0.col2 + + col0 AS col2 FROM tab0 AS cor0
----
1401
51
552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col2 - + col0 * ( 17 * col2 + - ( + ( col0 ) ) ) AS col1 FROM tab0 AS cor0
----
-116063
-12855
631

query I rowsort
SELECT + + 94 * + col1 + col0 * cor0.col2 FROM tab2 AS cor0
----
3103
4600
7574

query I rowsort
SELECT - col1 * 20 FROM tab2
----
-1180
-340
-620

query I rowsort
SELECT DISTINCT + - col2 * col0 * - ( col2 ) + col0 FROM tab0 AS cor0
----
26160
598525
70

query I rowsort
SELECT - 9 + col1 * - col2 FROM tab0 AS cor0
----
-106
-2847
-7471

query I rowsort
SELECT ALL + 3 + - col0 FROM tab0 AS cor0
----
-21
-32
-86

query I rowsort
SELECT ALL + col1 * 12 FROM tab1
----
120
156
312

onlyif mysql # use DIV operator for integer division
query I rowsort label-1539
SELECT - col2 + col1 DIV col0 FROM tab2
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-1539
SELECT - col2 + col1 / col0 FROM tab2
----
-23
-26
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1540
SELECT - col2 DIV col0 + col2 AS col0 FROM tab2
----
24
26
38

skipif mysql # not compatible
query I rowsort label-1540
SELECT - col2 / col0 + col2 AS col0 FROM tab2
----
24
26
38

query I rowsort
SELECT 4 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT DISTINCT - + col1 * 55 AS col2 FROM tab0 AS cor0
----
-4730
-5005
-5335

query I rowsort
SELECT DISTINCT - col2 * ( col2 + col1 * col1 ) FROM tab2 AS cor0
----
-12426
-26676
-91182

onlyif mysql # use DIV operator for integer division
query I rowsort label-1544
SELECT ALL + + 38 DIV 47 + cor0.col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL + + 38 / 47 + cor0.col1 FROM tab1 AS cor0
----
10
13
26

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

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT + CAST ( NULL AS REAL ) - ( col1 ) AS col2 FROM tab2 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 + + col0 * col0 * cor0.col2 col2 FROM tab0 AS cor0
----
1282
19065
649579

query I rowsort
SELECT DISTINCT - col2 + col2 + col1 * + 33 FROM tab0 AS cor0
----
2838
3003
3201

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

query I rowsort
SELECT + 3 - col2 FROM tab2 AS cor0
----
-23
-24
-35

query I rowsort
SELECT + col1 + 92 - col0 AS col1 FROM tab2 cor0
----
116
30
73

query I rowsort
SELECT + + col1 + col2 * - col1 * - ( 60 + + col1 ) AS col0 FROM tab2 cor0
----
182605
49759
76198

query I rowsort
SELECT - - 60 + cor0.col0 FROM tab2 AS cor0
----
138
139
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-1554
SELECT - ( - 60 ) + col2 DIV 67 - col2 AS col2 FROM tab0 cor0
----
-21
27
59

skipif mysql # not compatible
query I rowsort label-1554
SELECT - ( - 60 ) + col2 / 67 - col2 AS col2 FROM tab0 cor0
----
-21
27
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-1555
SELECT + col2 DIV cor0.col1 AS col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1555
SELECT + col2 / cor0.col1 AS col1 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT DISTINCT + + 14 + - col0 FROM tab1 cor0
----
-50
-66
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col1 * + col0 col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT + 51 + - col2 FROM tab0 cor0
----
-31
18
50

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

query I rowsort
SELECT DISTINCT + 66 * col1 FROM tab2 AS cor0
----
1122
2046
3894

query I rowsort
SELECT - col0 + col2 + - 47 * - 14 AS col1 FROM tab1 AS cor0
----
651
674
709

query I rowsort
SELECT DISTINCT - col1 * + col1 + ( col1 ) + col1 FROM tab1 AS cor0
----
-143
-624
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1563
SELECT + col0 DIV - col1 + 4 col2 FROM tab1 AS cor0
----
-2
-2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1563
SELECT + col0 / - col1 + 4 col2 FROM tab1 AS cor0
----
-2
-2
4

query I rowsort
SELECT DISTINCT + 30 * - col1 + - 90 FROM tab2 AS cor0
----
-1020
-1860
-600

query I rowsort
SELECT - + col1 * - 85 AS col2 FROM tab2 AS cor0
----
1445
2635
5015

skipif mysql # not compatible
query I rowsort
SELECT - col2 * CAST ( col2 AS REAL ) AS col0 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + col0 * 1 + + col2 + + col0 FROM tab2 AS cor0
----
182
196
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-1568
SELECT ALL tab2.col2 DIV + 41 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL tab2.col2 / + 41 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 21 col2 FROM tab0 AS cor0
----
1722
21
693

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1570
SELECT + + cor0.col1 / - col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT 99 + col1 * ( 95 ) FROM tab0
----
8269
8744
9314

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1573
SELECT col2 * + CAST( col1 AS SIGNED ) + - col0 AS col0 FROM tab0 cor0
----
2814
62
7373

skipif mysql # not compatible
query I rowsort label-1573
SELECT col2 * + CAST ( col1 AS INTEGER ) + - col0 AS col0 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT ALL - col2 * col2 * - col2 AS col0 FROM tab1 AS cor0
----
157464
185193
884736

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT - col1 + cor0.col1 / col2 col1 FROM tab0 AS cor0
----
-84
-90
0

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

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

query I rowsort
SELECT - ( 19 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT - ( - col2 ) - + ( ( col0 ) ) * col0 * - col1 FROM tab1 AS cor0
----
288
41017
83296

query I rowsort
SELECT + + 79 * + col1 + cor0.col2 * col2 AS col0 FROM tab0 cor0
----
13913
7664
7883

query I rowsort
SELECT + - 39 * 96 FROM tab0, tab1 cor0
----
9 values hashing to 1728f1934ede678f4b7c9d5f44acf1f4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1581
SELECT CAST( col1 AS SIGNED ) * col1 AS col0 FROM tab0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-1581
SELECT CAST ( col1 AS INTEGER ) * col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

onlyif mysql # use DIV operator for integer division
query I rowsort label-1583
SELECT cor0.col2 DIV 44 FROM tab2, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-1583
SELECT cor0.col2 / 44 FROM tab2, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT ALL cor1.col2 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

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

query I rowsort
SELECT ALL tab2.col2 AS col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT - col2 + col0 - col0 * col0 FROM tab0 AS cor0
----
-1191
-585
-7914

onlyif mysql # use DIV operator for integer division
query I rowsort label-1588
SELECT + 37 + col2 DIV - 6 FROM tab1 AS cor0
----
21
28
28

skipif mysql # not compatible
query I rowsort label-1588
SELECT + 37 + col2 / - 6 FROM tab1 AS cor0
----
21
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) * - col1 * - 58 + + col0 col0 FROM tab2
----
-12579
-266838
-77815

query I rowsort
SELECT col0 * 17 AS col1 FROM tab0
----
1513
408
595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * col0 - - col0 col0 FROM tab2
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-1592
SELECT - cor1.col1 DIV 25 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccd77e2770d5a834e59c1674defa88fa

skipif mysql # not compatible
query I rowsort label-1592
SELECT - cor1.col1 / 25 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccd77e2770d5a834e59c1674defa88fa

query I rowsort
SELECT col0 * - col2 * col0 + + 45 + - col2 * col0 * col1 AS col0 FROM tab1 AS cor0
----
-269907
-4653
-714195

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

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

query I rowsort
SELECT - ( - col0 ) * col1 + col1 * cor0.col2 + col2 FROM tab2 AS cor0
----
1081
2027
6162

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

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

query I rowsort
SELECT tab2.col2 + col2 * + 2 AS col1 FROM tab2
----
114
78
81

query I rowsort
SELECT ALL - ( col2 ) * + ( col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724

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

query I rowsort
SELECT - col0 + col2 + 29 FROM tab1 AS cor0
----
22
45
80

query I rowsort
SELECT ALL + + col2 * ( ( col2 ) ) + + 10 FROM tab1 cor0
----
2926
3259
9226

query I rowsort
SELECT + col1 + col0 * cor0.col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
262154
512013
53

query I rowsort
SELECT + - col1 * - col0 + cor0.col1 FROM tab1 AS cor0
----
104
1053
650

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

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

query I rowsort
SELECT + + 10 FROM tab2 AS cor0
----
10
10
10

query I rowsort
SELECT DISTINCT 89 * - 94 AS col2 FROM tab0 cor0
----
-8366

query I rowsort
SELECT DISTINCT + 56 + col1 * + col0 FROM tab0 AS cor0
----
2120
3451
8155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) + + col2 col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - 55 * + col2 AS col0 FROM tab2 AS cor0
----
-1430
-1485
-2090

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1612
SELECT DISTINCT tab2.col0 + 75 DIV col1 AS col2 FROM tab2
----
79
83
9

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT tab2.col0 + 75 / col1 AS col2 FROM tab2
----
79
83
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 * + col2 col0 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT - - col2 * + col0 + col1 + - col2 AS col1 FROM tab0 AS cor0
----
131
7307
845

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

skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT + - CAST ( - col1 AS INTEGER ) + col1 + col0 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT cor0.col1 + 50 + + col0 AS col0 FROM tab2 AS cor0
----
146
187
88

query I rowsort
SELECT + cor0.col0 - col1 * - col2 * - 25 AS col0 FROM tab1 AS cor0
----
-14186
-31120
-35097

query I rowsort
SELECT ALL col2 + 92 FROM tab0
----
125
174
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-1619
SELECT ALL - ( col1 ) + col0 DIV col2 FROM tab1
----
-13
-26
-9

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL - ( col1 ) + col0 / col2 FROM tab1
----
-13
-26
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1620
SELECT ALL col2 * + col0 + - col2 * 20 + col2 DIV + col0 AS col1 FROM tab0
----
133
15
5658

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL col2 * + col0 + - col2 * 20 + col2 / + col0 AS col1 FROM tab0
----
133
15
5658

query I rowsort
SELECT - col1 + 14 * col0 FROM tab1
----
1107
16
886

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) + col2 col2 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col1 AS REAL ) * + col2 + + ( + col1 ) FROM tab0
----
194
2924
7553

query I rowsort
SELECT DISTINCT ( col2 * - col1 ) + + col2 AS col0 FROM tab1
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # use DIV operator for integer division
query I rowsort label-1627
SELECT DISTINCT - col2 DIV - col1 + - col2 + col1 * - col1 col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT - col2 / - col1 + - col2 + col1 * - col1 col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT DISTINCT col0 * col1 + 37 * col2 AS col0 FROM tab0 AS cor0
----
11133
3285
3432

query I rowsort
SELECT - col2 + + 70 FROM tab0 cor0
----
-12
37
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - col0 + - col1 col1 FROM tab2 cor0
----
18
6025
6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-1631
SELECT ALL + col0 DIV 33 + ( col1 * + col1 + + col2 * col2 ) AS col0 FROM tab0 AS cor0
----
15007
8485
9411

skipif mysql # not compatible
query I rowsort label-1631
SELECT ALL + col0 / 33 + ( col1 * + col1 + + col2 * col2 ) AS col0 FROM tab0 AS cor0
----
15007
8485
9411

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 - + col0 * tab2.col2 col1 FROM tab2
----
-406
-4345
-6630

query I rowsort
SELECT ALL - 43 * col1 AS col0 FROM tab1
----
-1118
-430
-559

query I rowsort
SELECT DISTINCT col0 * + 28 + - 55 * - tab1.col2 AS col1 FROM tab1
----
3054
4927
7520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 56 + + cor0.col0 col1 FROM tab0 AS cor0
----
1872
4681
91

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

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

query I rowsort
SELECT DISTINCT col0 * col2 * col1 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT cor0.col0 + + col0 * ( cor0.col1 + + col0 * col1 ) AS col0 FROM tab0 AS cor0
----
122255
51624
728999

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

query I rowsort
SELECT ALL + col2 + + 60 * col2 FROM tab0 AS cor0
----
2013
5002
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-1641
SELECT ALL + - col1 DIV + col1 + cor0.col1 FROM tab2 cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL + - col1 / + col1 + cor0.col1 FROM tab2 cor0
----
16
30
58

query I rowsort
SELECT + - col1 - ( col2 ) * col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL - + col2 + + ( + ( + col1 ) * col1 ) FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT + col0 * - col2 * + 86 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2913
-627537
-68026

query I rowsort
SELECT DISTINCT - + cor0.col1 - - 60 * + col2 AS col2 FROM tab2 AS cor0
----
1501
1589
2263

onlyif mysql # use DIV operator for integer division
query I rowsort label-1646
SELECT - col2 - col2 DIV col2 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-1646
SELECT - col2 - col2 / col2 FROM tab0 AS cor0
----
-2
-34
-83

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

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

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

query I rowsort
SELECT ALL 86 AS col1 FROM tab1
----
86
86
86

query I rowsort
SELECT DISTINCT + col0 * 79 AS col1 FROM tab0
----
1896
2765
7031

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

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

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

query I rowsort
SELECT ALL + col1 + col1 * + tab0.col2 * - col1 FROM tab0
----
-243982
-678951
-9312

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 + - tab1.col2 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 4 + - tab0.col0 FROM tab0
----
-28
-39
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1657
SELECT CAST( - 36 AS SIGNED ) AS col0 FROM tab0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-1657
SELECT CAST ( - 36 AS INTEGER ) AS col0 FROM tab0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT - + 70 * - col0 AS col0 FROM tab2 AS cor0
----
490
5460
5530

query I rowsort
SELECT DISTINCT 99 * + 61 FROM tab2
----
6039

onlyif mysql # use DIV operator for integer division
query I rowsort label-1660
SELECT DISTINCT + + 78 * + col0 + col2 DIV col2 FROM tab0 AS cor0
----
1873
2731
6943

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT + + 78 * + col0 + col2 / col2 FROM tab0 AS cor0
----
1873
2731
6943

query I rowsort
SELECT DISTINCT + 9 * - col2 + + cor0.col1 AS col1 FROM tab1 cor0
----
-460
-503
-851

query I rowsort
SELECT 61 * col2 + col2 FROM tab1 AS cor0
----
3348
3534
5952

query I rowsort
SELECT + 68 + col2 * col1 * - 25 FROM tab0 AS cor0
----
-186482
-2357
-70882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col0 ) + 45 * 4 col0 FROM tab0 AS cor0
----
145
156
91

query I rowsort
SELECT - 19 * + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-247
-343
-548

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * + col1 col0 FROM tab1
----
1092
2184
840

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

skipif mysql # not compatible
query I rowsort label-1667
SELECT - 84 * + col2 / - 69 - col1 * + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * col0 col2 FROM tab2 cor0
----
56
624
632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 + col2 col0 FROM tab1 AS cor0
----
-28
-31
11

query I rowsort
SELECT ( + col0 ) - + 91 FROM tab0
----
-2
-56
-67

query I rowsort
SELECT - col0 * ( 42 ) FROM tab0 AS cor0
----
-1008
-1470
-3738

query I rowsort
SELECT + cor0.col0 + cor0.col1 * - 46 FROM tab0 AS cor0
----
-3932
-4097
-4427

query I rowsort
SELECT DISTINCT - col2 + col1 + - col2 FROM tab1 AS cor0
----
-104
-179
-82

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1675
SELECT DISTINCT + col2 * + cor0.col0 DIV col0 - - col2 FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT + col2 * + cor0.col0 / col0 - - col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + 70 * + cor0.col2 FROM tab1 AS cor0
----
3780
3990
6720

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

skipif mysql # not compatible
query I rowsort label-1677
SELECT - CAST ( NULL AS REAL ) - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + ( - col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + + 49 * - col2 - - col0 FROM tab0 AS cor0
----
-14
-1593
-3929

query I rowsort
SELECT DISTINCT + 51 * col2 FROM tab0 AS cor0
----
1683
4182
51

query I rowsort
SELECT ALL + 74 * - col0 FROM tab0
----
-1776
-2590
-6586

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 * + col0 col0 FROM tab0
----
1728
2520
6408

query I rowsort
SELECT DISTINCT + + col0 * + col0 + - col2 * 90 FROM tab1 AS cor0
----
-1034
-2240
-4851

query I rowsort
SELECT DISTINCT - - 16 FROM tab0 cor0
----
16

query I rowsort
SELECT 33 + + 82 * col1 FROM tab1 cor0
----
1099
2165
853

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1687
SELECT DISTINCT + - col0 * ( col1 ) DIV col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT + - col0 * ( col1 ) / col1 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1688
SELECT ALL - - ( 38 ) DIV cor0.col1 AS col2 FROM tab1 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL - - ( 38 ) / cor0.col1 AS col2 FROM tab1 cor0
----
1
2
3

query I rowsort
SELECT tab1.col1 * + tab1.col1 + col2 AS col0 FROM tab1
----
157
265
730

query I rowsort
SELECT ALL col2 * - col2 + - col2 AS col1 FROM tab1
----
-2970
-3306
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 79 col1 FROM tab2
----
553
6162
6241

query I rowsort
SELECT DISTINCT + col1 - - 45 FROM tab2
----
104
62
76

query I rowsort
SELECT DISTINCT - col1 - 28 FROM tab2
----
-45
-59
-87

query I rowsort
SELECT DISTINCT ( + tab2.col2 ) + + tab2.col0 + 18 * - col0 AS col2 FROM tab2
----
-1300
-1305
-92

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

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

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

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

query I rowsort
SELECT DISTINCT + 27 + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-162
-2001
-2975

query I rowsort
SELECT DISTINCT - 29 + cor0.col0 FROM tab0 cor0
----
-5
6
60

query I rowsort
SELECT DISTINCT col0 - - 91 FROM tab1 AS cor0
----
155
171
94

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 - + 70 col0 FROM tab2, tab0 cor0
----
9 values hashing to d7600f907c2d572aaec394a61ee1c60b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + 17 col0 FROM tab1 AS cor0
----
-145
-3631
-7663

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 + + col2 + + col0 col1 FROM tab2 AS cor0
----
2132
223
3119

onlyif mysql # use DIV operator for integer division
query I rowsort label-1707
SELECT DISTINCT col2 + + col2 DIV - tab1.col0 AS col0 FROM tab1
----
36
57
95

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT col2 + + col2 / - tab1.col0 AS col0 FROM tab1
----
36
57
95

query I rowsort
SELECT ALL col0 * 71 + tab0.col1 FROM tab0
----
1790
2582
6410

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

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

query I rowsort
SELECT col0 - + ( + col2 ) FROM tab2 cor0
----
-20
41
52

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

query I rowsort
SELECT DISTINCT col2 * - cor0.col1 - ( - col1 ) * 81 AS col1 FROM tab1 AS cor0
----
-195
240
702

query I rowsort
SELECT ALL cor0.col0 + + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - + col0 * - 83 + col0 FROM tab2 AS cor0
----
588
6552
6636

query I rowsort
SELECT DISTINCT + col2 * + col0 + col0 - col2 FROM tab1 AS cor0
----
111
3655
7664

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1717
SELECT ALL col1 + + 69 DIV col0 AS col1 FROM tab2 AS cor0
----
17
40
59

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL col1 + + 69 / col0 AS col1 FROM tab2 AS cor0
----
17
40
59

query I rowsort
SELECT ALL 58 AS col0 FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 793ce5fda3f22b0a251dca7e8a07baed

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

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

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

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

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

query I rowsort
SELECT ALL + col1 * 56 AS col0 FROM tab1 AS cor0
----
1456
560
728

query I rowsort
SELECT col0 * + ( col0 ) AS col1 FROM tab0 AS cor0
----
1225
576
7921

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 * - col2 col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1726
SELECT ALL + col0 * CAST( col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL + col0 * CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
1225
576
7921

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

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

query I rowsort
SELECT DISTINCT cor0.col2 * 32 + col1 FROM tab0 AS cor0
----
1142
129
2715

query I rowsort
SELECT + col1 - - 96 AS col1 FROM tab0 AS cor0
----
182
187
193

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1730
SELECT CAST( 58 AS SIGNED ) + + cor0.col0 AS col2 FROM tab1 cor0
----
122
138
61

skipif mysql # not compatible
query I rowsort label-1730
SELECT CAST ( 58 AS INTEGER ) + + cor0.col0 AS col2 FROM tab1 cor0
----
122
138
61

query I rowsort
SELECT ALL + ( - ( - col2 ) ) * - cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + + col0 + 81 AS col2 FROM tab1 AS cor0
----
145
161
84

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

query I rowsort
SELECT ALL - - cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 * cor0.col0 + ( - col2 ) col1 FROM tab1 AS cor0
----
-240
-4025
-5056

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

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

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

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL - - cor0.col0 / + col1 AS col2 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT ALL - 66 * col1 AS col1 FROM tab0
----
-5676
-6006
-6402

query I rowsort
SELECT + + col0 * + 26 FROM tab0 AS cor0
----
2314
624
910

query I rowsort
SELECT DISTINCT + cor0.col1 * - 31 FROM tab2 AS cor0
----
-1829
-527
-961

query I rowsort
SELECT DISTINCT - ( + col2 * + 43 ) FROM tab0
----
-1419
-3526
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-1744
SELECT 49 + - col1 DIV - 37 FROM tab2
----
49
49
50

skipif mysql # not compatible
query I rowsort label-1744
SELECT 49 + - col1 / - 37 FROM tab2
----
49
49
50

query I rowsort
SELECT - 42 AS col1 FROM tab1
----
-42
-42
-42

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

query I rowsort
SELECT DISTINCT ( - 39 ) * + col1 AS col0 FROM tab2 cor0
----
-1209
-2301
-663

onlyif mysql # use DIV operator for integer division
query I rowsort label-1748
SELECT col2 * 3 + - col0 + cor0.col0 DIV col1 FROM tab2 AS cor0
----
1
39
74

skipif mysql # not compatible
query I rowsort label-1748
SELECT col2 * 3 + - col0 + cor0.col0 / col1 FROM tab2 AS cor0
----
1
39
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - col2 + + col2 + + col0 AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + col1 * + 0 FROM tab2
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1752
SELECT + col0 + col1 / col0 col0 FROM tab0 AS cor0
----
27
37
90

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

query I rowsort
SELECT 46 * col0 * col2 AS col1 FROM tab1
----
167808
353280
7452

query I rowsort
SELECT - col1 * 93 AS col0 FROM tab2 cor0
----
-1581
-2883
-5487

query I rowsort
SELECT ALL - col2 - - col0 * 18 * - col2 FROM tab2
----
-3429
-36530
-54074

query I rowsort
SELECT ALL + + col2 - + cor0.col1 * + col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT + col2 * col1 * + col1 + + col2 + ( - cor0.col0 ) FROM tab0 cor0
----
244077
679035
9375

onlyif mysql # use DIV operator for integer division
query I rowsort label-1759
SELECT col0 DIV cor0.col2 - + col0 DIV - col2 FROM tab0 AS cor0
----
0
2
70

skipif mysql # not compatible
query I rowsort label-1759
SELECT col0 / cor0.col2 - + col0 / - col2 FROM tab0 AS cor0
----
0
2
70

query I rowsort
SELECT - col1 + ( - ( col1 ) ) FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT col2 * col1 + - 32 + col0 * col1 FROM tab1
----
1178
1450
2256

onlyif mysql # use DIV operator for integer division
query I rowsort label-1762
SELECT DISTINCT + 35 DIV col0 + col2 DIV ( - col2 ) FROM tab1
----
-1
10

skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT + 35 / col0 + col2 / ( - col2 ) FROM tab1
----
-1
10

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 + + ( + col1 ) / col0 + + CAST ( + col2 + + col0 AS REAL ) FROM tab2
----
134
163
69

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1765
SELECT col1 DIV - 42 + + col1 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1765
SELECT col1 / - 42 + + col1 / - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + 91 + col0 FROM tab1 AS cor0
----
148
212
267

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

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

query I rowsort
SELECT ALL - - col0 * - ( + col0 ) - + col0 AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 - 20 * col2 col0 FROM tab2 cor0
----
-2548
-3762
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-1772
SELECT DISTINCT + - 64 DIV col1 AS col2 FROM tab1 AS cor0
----
-2
-4
-6

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT + - 64 / col1 AS col2 FROM tab1 AS cor0
----
-2
-4
-6

query I rowsort
SELECT + - cor0.col1 + + col0 * + col2 AS col0 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-1774
SELECT DISTINCT 4 DIV col0 + col2 DIV 33 AS col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT 4 / col0 + col2 / 33 AS col1 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-1775
SELECT col2 DIV - 15 FROM tab1
----
-3
-3
-6

skipif mysql # not compatible
query I rowsort label-1775
SELECT col2 / - 15 FROM tab1
----
-3
-3
-6

query I rowsort
SELECT DISTINCT col0 - + col0 * - col1 AS col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT + col1 + 73 AS col0 FROM tab0 AS cor0
----
159
164
170

query I rowsort
SELECT col1 + col1 * - col1 + col1 AS col0 FROM tab1
----
-143
-624
-80

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

query I rowsort
SELECT + 15 * col2 + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-594
192
285

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

query I rowsort
SELECT + col1 * - 35 AS col1 FROM tab1
----
-350
-455
-910

query I rowsort
SELECT - + col0 * 94 + cor0.col0 * 5 FROM tab2 AS cor0
----
-623
-6942
-7031

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 + + col0 col0 FROM tab2 AS cor0
----
-24
19
62

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

query I rowsort
SELECT - 66 + - col2 FROM tab1 AS cor0
----
-120
-123
-162

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

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

skipif mysql # not compatible
query I rowsort label-1788
SELECT - CAST ( NULL AS REAL ) + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + cor0.col2 * - 49 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1617
-4018
-49

onlyif mysql # use DIV operator for integer division
query I rowsort label-1790
SELECT DISTINCT + 23 * col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
-101
-17
-4

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT + 23 * col1 / - col0 AS col0 FROM tab2 AS cor0
----
-101
-17
-4

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to a9068b700464993db9fae6f630605fde

query I rowsort
SELECT - - cor0.col0 * - cor0.col2 * - col0 AS col1 FROM tab2 cor0
----
1323
158184
237158

query I rowsort
SELECT + ( - 63 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT 4 - + cor1.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2935bfce7f8c7dba544589fcaba48761

query I rowsort
SELECT + + col2 * + col2 + 28 * + col0 AS col0 FROM tab2 cor0
----
2860
3656
925

query I rowsort
SELECT + col0 * col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT + - cor0.col0 * col2 * - ( - col1 ) + + col1 FROM tab1 AS cor0
----
-36470
-4186
-99827

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

skipif mysql # not compatible
query I rowsort label-1798
SELECT - col0 * col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 53 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT 73 + cor0.col1 - - 43 FROM tab1 AS cor0
----
126
129
142

query I rowsort
SELECT ALL + - cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - 25 * col0 AS col1 FROM tab0 AS cor0
----
-2225
-600
-875

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1805
SELECT ( + col1 ) + 7 * col0 DIV + col0 + - cor0.col2 FROM tab2 AS cor0
----
-14
11
40

skipif mysql # not compatible
query I rowsort label-1805
SELECT ( + col1 ) + 7 * col0 / + col0 + - cor0.col2 FROM tab2 AS cor0
----
-14
11
40

query I rowsort
SELECT + col1 + - col2 * 75 FROM tab2 AS cor0
----
-1891
-1994
-2833

query I rowsort
SELECT - col1 - - col1 * - 92 FROM tab2 cor0
----
-1581
-2883
-5487

onlyif mysql # use DIV operator for integer division
query I rowsort label-1808
SELECT col2 DIV col1 - + col0 * col0 AS col2 FROM tab1 AS cor0
----
-4091
-6393
-7

skipif mysql # not compatible
query I rowsort label-1808
SELECT col2 / col1 - + col0 * col0 AS col2 FROM tab1 AS cor0
----
-4091
-6393
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1809
SELECT col1 * + col1 + + col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
7395
8280
9408

skipif mysql # not compatible
query I rowsort label-1809
SELECT col1 * + col1 + + col1 / - col1 AS col0 FROM tab0 AS cor0
----
7395
8280
9408

query I rowsort
SELECT ALL - col1 + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT + col0 * col0 + col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT ALL - + col2 + - 89 * + col1 FROM tab2 AS cor0
----
-1551
-2786
-5277

query I rowsort
SELECT cor0.col1 + + 70 FROM tab0 AS cor0
----
156
161
167

onlyif mysql # use DIV operator for integer division
query I rowsort label-1814
SELECT DISTINCT + 10 DIV - col0 - - col0 * + col2 col2 FROM tab1 AS cor0
----
159
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT + 10 / - col0 - - col0 * + col2 col2 FROM tab1 AS cor0
----
159
3648
7680

skipif mysql # not compatible
query I rowsort
SELECT ALL - - 61 * - ( + col1 ) + - CAST ( + ( col1 ) AS REAL ) FROM tab0 cor0
----
-5332
-5642
-6014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 52 - + col2 col2 FROM tab2 AS cor0
----
-391
-4082
-4146

query I rowsort
SELECT ALL + ( - col1 ) * col0 + 43 * col0 AS col1 FROM tab2 AS cor0
----
-1248
2054
84

query I rowsort
SELECT DISTINCT tab2.col1 + - ( 21 ) FROM tab2
----
-4
10
38

query I rowsort
SELECT - col0 + 17 * col2 AS col2 FROM tab0
----
-18
1305
537

query I rowsort
SELECT ALL + - col1 + 28 * cor0.col1 FROM tab1 AS cor0
----
270
351
702

query I rowsort
SELECT + 98 + col2 * - col0 FROM tab1 AS cor0
----
-3550
-64
-7582

query I rowsort
SELECT DISTINCT 87 FROM tab1, tab0 cor0 CROSS JOIN tab2
----
87

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

query I rowsort
SELECT DISTINCT - - 21 FROM tab0 AS cor0
----
21

query I rowsort
SELECT ALL + 72 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT DISTINCT 70 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1413
287
4672

query I rowsort
SELECT ALL + 94 + col0 FROM tab1 AS cor0
----
158
174
97

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

query I rowsort
SELECT + cor0.col1 * 20 FROM tab0, tab2 AS cor0
----
9 values hashing to c78a74fcce2c8a7b46774c5a06b63a8d

query I rowsort
SELECT - cor0.col0 * cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52

onlyif mysql # use DIV operator for integer division
query I rowsort label-1831
SELECT DISTINCT - cor0.col1 * col0 - cor0.col1 * ( col2 ) DIV + 47 FROM tab1 AS cor0
----
-1066
-107
-652

skipif mysql # not compatible
query I rowsort label-1831
SELECT DISTINCT - cor0.col1 * col0 - cor0.col1 * ( col2 ) / + 47 FROM tab1 AS cor0
----
-1066
-107
-652

query I rowsort
SELECT - ( cor0.col0 ) * 57 AS col2 FROM tab1 AS cor0
----
-171
-3648
-4560

query I rowsort
SELECT DISTINCT - - col1 * col1 + 3 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
7654
8554
9700

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

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

query I rowsort
SELECT ALL col0 + ( 89 ) * + col2 AS col1 FROM tab2
----
2392
2410
3461

query I rowsort
SELECT ALL + col1 + ( 78 ) AS col0 FROM tab2
----
109
137
95

query I rowsort
SELECT + col1 + col0 * 75 * col1 AS col1 FROM tab2 AS cor0
----
100742
16306
345209

query I rowsort
SELECT ALL col1 * col1 + + col0 * + cor0.col0 FROM tab0 AS cor0
----
10634
16202
7972

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

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

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

query I rowsort
SELECT + - col1 + ( + 29 ) * + col1 FROM tab2 cor0
----
1652
476
868

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

query I rowsort
SELECT 31 * - 56 FROM tab2, tab1 AS cor0
----
9 values hashing to 5a5b9e13c1264d1a2894eccc26ca68ae

query I rowsort
SELECT DISTINCT + 20 AS col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
20

query I rowsort
SELECT DISTINCT - cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - 92 * col2 FROM tab2 AS cor0
----
-2392
-2484
-3496

query I rowsort
SELECT DISTINCT 77 + + col2 * cor0.col2 FROM tab2 AS cor0
----
1521
753
806

query I rowsort
SELECT ALL - 57 * cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
-10773
-115596
-171114

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

query I rowsort
SELECT col0 * 74 * - col0 + col0 AS col1 FROM tab2 AS cor0
----
-3619
-450138
-461755

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1852
SELECT - col2 / + col0 col2 FROM tab1 cor0
----
-1
-18
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1853
SELECT - - CAST( - 76 AS SIGNED ) + + col1 AS col1 FROM tab0 AS cor0
----
10
15
21

skipif mysql # not compatible
query I rowsort label-1853
SELECT - - CAST ( - 76 AS INTEGER ) + + col1 AS col1 FROM tab0 AS cor0
----
10
15
21

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT - - CAST ( col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + col1 - 24 FROM tab1 AS cor0
----
-11
-14
2

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

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

query I rowsort
SELECT ALL + tab0.col1 + col1 + ( col2 ) AS col0 FROM tab0
----
195
205
264

query I rowsort
SELECT ALL col0 * - col1 + tab2.col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL - col0 * 23 * + col2 + + col0 AS col2 FROM tab0
----
-167765
-18192
-770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT - col0 * - col2 + col2 - + col1 AS col2 FROM tab2 AS cor0
----
185
1995
3023

query I rowsort
SELECT - + col2 - - cor0.col2 * - col1 FROM tab1 AS cor0
----
-1344
-1458
-627

onlyif mysql # use DIV operator for integer division
query I rowsort label-1863
SELECT - col1 * col2 + - col1 DIV + cor0.col0 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1593
-663
-872

skipif mysql # not compatible
query I rowsort label-1863
SELECT - col1 * col2 + - col1 / + cor0.col0 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1593
-663
-872

query I rowsort
SELECT col0 - cor0.col2 * + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL - 66 + - col0 * + col1 FROM tab2 AS cor0
----
-1409
-283
-4668

query I rowsort
SELECT - col0 * + col0 * col2 + + col2 FROM tab2 cor0
----
-1296
-158158
-237120

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

query I rowsort
SELECT DISTINCT + tab0.col0 + + ( col2 ) FROM tab0
----
171
36
57

query I rowsort
SELECT + + col1 * - 96 * + col0 + col2 AS col2 FROM tab1 AS cor0
----
-61383
-7434
-99744

query I rowsort
SELECT + 27 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT - 12 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 60b4654b2477631ac8f4a95ec4a22fd3

query I rowsort
SELECT + 2 * + col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + ( - col1 ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT 46 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT - 33 * + cor0.col0 FROM tab0 AS cor0
----
-1155
-2937
-792

query I rowsort
SELECT - 87 + col0 AS col0 FROM tab0 AS cor0
----
-52
-63
2

query I rowsort
SELECT ( col2 ) + col2 * col2 AS col1 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT ALL + 99 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT DISTINCT - 0 AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col2 * 89 FROM tab2
----
2314
2403
3382

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

query I rowsort
SELECT 40 + - col0 * - col2 * 38 FROM tab1 cor0
----
138664
291880
6196

query I rowsort
SELECT ( col0 ) * - 50 FROM tab1 cor0
----
-150
-3200
-4000

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1886
SELECT + + ( col1 ) * CAST( - 22 + - col2 AS SIGNED ) FROM tab1 AS cor0
----
-1534
-1976
-790

skipif mysql # not compatible
query I rowsort label-1886
SELECT + + ( col1 ) * CAST ( - 22 + - col2 AS INTEGER ) FROM tab1 AS cor0
----
-1534
-1976
-790

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1888
SELECT ALL + col1 DIV col0 + col0 DIV - 76 AS col1 FROM tab1 AS cor0
----
-1
0
8

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL + col1 / col0 + col0 / - 76 AS col1 FROM tab1 AS cor0
----
-1
0
8

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

query I rowsort
SELECT ALL + ( col0 * tab2.col2 ) FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-1891
SELECT - col1 DIV cor0.col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1891
SELECT - col1 / cor0.col1 FROM tab1 cor0
----
-1
-1
-1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1893
SELECT DISTINCT - cor0.col2 + 60 DIV + col0 AS col1 FROM tab0 cor0
----
-31
-82
0

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT - cor0.col2 + 60 / + col0 AS col1 FROM tab0 cor0
----
-31
-82
0

query I rowsort
SELECT col0 + col2 * - 38 AS col1 FROM tab2 AS cor0
----
-1019
-1365
-910

query I rowsort
SELECT DISTINCT - col0 + + col2 * col1 FROM tab1 AS cor0
----
1168
1401
506

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

query I rowsort
SELECT 4 + tab0.col1 FROM tab0
----
101
90
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-1898
SELECT DISTINCT - 7 DIV - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT - 7 / - col2 FROM tab1
----
0

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

query I rowsort
SELECT cor0.col0 + col0 FROM tab0 cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-1901
SELECT DISTINCT - 26 + cor0.col0 DIV col1 FROM tab2 AS cor0
----
-22
-25
-26

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT - 26 + cor0.col0 / col1 FROM tab2 AS cor0
----
-22
-25
-26

query I rowsort
SELECT ALL + col2 * col2 - - col1 AS col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT - - 46 FROM tab2 cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 + 63 col0 FROM tab2
----
91
91
91

query I rowsort
SELECT ALL tab0.col1 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT - + cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-86
-91
-97

query I rowsort
SELECT col2 * - col2 + - col1 * col1 AS col2 FROM tab0 AS cor0
----
-15005
-8485
-9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1909
SELECT - + CAST( col0 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-1909
SELECT - + CAST ( col0 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT col1 * + 49 FROM tab2 AS cor0
----
1519
2891
833

onlyif mysql # use DIV operator for integer division
query I rowsort label-1911
SELECT - - 53 DIV - 79 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1911
SELECT - - 53 / - 79 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 63 AS col0 FROM tab0, tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 * - CAST ( + col1 AS REAL ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + col0 + - 12 AS col2 FROM tab1 AS cor0
----
-9
52
68

query I rowsort
SELECT DISTINCT - - 74 FROM tab2 cor0
----
74

query I rowsort
SELECT DISTINCT - ( + col1 ) * + col2 * col2 + + 18 FROM tab1 AS cor0
----
-119790
-32472
-75798

onlyif mysql # use DIV operator for integer division
query I rowsort label-1917
SELECT DISTINCT - + ( 39 ) + - cor0.col0 DIV + col0 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT - + ( 39 ) + - cor0.col0 / + col0 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT - - col1 * - ( - col1 ) AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - + col1 + col2 + - col0 FROM tab1 AS cor0
----
-17
25
3

query I rowsort
SELECT DISTINCT - col0 * 95 FROM tab1 AS cor0
----
-285
-6080
-7600

query I rowsort
SELECT DISTINCT 94 + col1 FROM tab1 AS cor0
----
104
107
120

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1923
SELECT col1 + - 26 DIV - col1 AS col1 FROM tab1 AS cor0
----
12
15
27

skipif mysql # not compatible
query I rowsort label-1923
SELECT col1 + - 26 / - col1 AS col1 FROM tab1 AS cor0
----
12
15
27

query I rowsort
SELECT DISTINCT - 50 * col2 * col2 FROM tab2 cor0
----
-33800
-36450
-72200

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

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

query I rowsort
SELECT DISTINCT + 20 AS col2 FROM tab1 AS cor0
----
20

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

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

skipif mysql # not compatible
query I rowsort label-1928
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + - 32 - + col2 FROM tab1 AS cor0
----
-128
-86
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1930
SELECT 8 * + col1 + + CAST( + 75 AS SIGNED ) FROM tab0 AS cor0
----
763
803
851

skipif mysql # not compatible
query I rowsort label-1930
SELECT 8 * + col1 + + CAST ( + 75 AS INTEGER ) FROM tab0 AS cor0
----
763
803
851

onlyif mysql # use DIV operator for integer division
query I rowsort label-1931
SELECT ALL + 11 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL + 11 / - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + 17 * cor0.col1 + cor0.col2 * ( + col2 ) + col1 FROM tab2 AS cor0
----
1287
1738
1750

query I rowsort
SELECT + 63 * + col2 + - col2 + + col2 AS col0 FROM tab0 AS cor0
----
2079
5166
63

query I rowsort
SELECT tab2.col2 * tab2.col2 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 111df31a7673b6df0bd01dfa87fa60a8

query I rowsort
SELECT 29 * tab2.col2 * col2 AS col2 FROM tab2
----
19604
21141
41876

query I rowsort
SELECT + - 11 * col0 + col0 AS col2 FROM tab0 AS cor0
----
-240
-350
-890

query I rowsort
SELECT + cor0.col0 * col1 + + ( col2 ) * col0 + cor0.col2 * 22 FROM tab2 cor0
----
1000
5181
7202

query I rowsort
SELECT ALL + 78 * cor0.col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c07a2208bd0130c02c53c48d1400a4cc

query I rowsort
SELECT DISTINCT - 14 + 21 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
7

query I rowsort
SELECT ALL tab1.col2 * col2 + - col2 * + col1 AS col0 FROM tab1
----
1512
2679
7968

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1942
SELECT + + col1 DIV - 80 + col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-1942
SELECT + + col1 / - 80 + col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT - - col1 + - ( 28 * col1 ) AS col2 FROM tab1 AS cor0
----
-270
-351
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * - cor0.col2 col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL col1 * col1 + 30 FROM tab0 cor0
----
7426
8311
9439

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1946
SELECT - cor0.col0 + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-1946
SELECT - cor0.col0 + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + tab2.col1 * col1 * ( col0 ) + col2 AS col0 FROM tab2
----
22869
271544
6754

query I rowsort
SELECT ALL col0 * col1 + + 6 AS col0 FROM tab0
----
2070
3401
8105

onlyif mysql # use DIV operator for integer division
query I rowsort label-1949
SELECT - col2 DIV 74 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1949
SELECT - col2 / 74 AS col1 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1950
SELECT - - col2 + col2 DIV - ( + col1 ) + col2 * col1 FROM tab2 AS cor0
----
1560
682
864

skipif mysql # not compatible
query I rowsort label-1950
SELECT - - col2 + col2 / - ( + col1 ) + col2 * col1 FROM tab2 AS cor0
----
1560
682
864

query I rowsort
SELECT tab0.col2 * - tab0.col1 + 27 FROM tab0
----
-2811
-70
-7435

query I rowsort
SELECT DISTINCT + col2 + - 93 * - col2 AS col0 FROM tab2 cor0
----
2444
2538
3572

query I rowsort
SELECT DISTINCT - col0 + - 28 AS col1 FROM tab1 AS cor0
----
-108
-31
-92

query I rowsort
SELECT - + col0 * col0 + col2 * col1 FROM tab0 AS cor0
----
-1128
-459
2262

query I rowsort
SELECT col2 + + 47 FROM tab2 AS cor0
----
73
74
85

query I rowsort
SELECT ALL - col0 * - 1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1957
SELECT ALL tab0.col1 DIV + tab0.col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL tab0.col1 / + tab0.col1 FROM tab0
----
1
1
1

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 cor2
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823

onlyif mysql # use DIV operator for integer division
query I rowsort label-1959
SELECT DISTINCT col0 * - col2 + col2 DIV + col1 FROM tab2
----
-189
-2028
-3000

skipif mysql # not compatible
query I rowsort label-1959
SELECT DISTINCT col0 * - col2 + col2 / + col1 FROM tab2
----
-189
-2028
-3000

query I rowsort
SELECT + 89 * - 72 FROM tab1
----
-6408
-6408
-6408

query I rowsort
SELECT DISTINCT 4 + 91 FROM tab2
----
95

query I rowsort
SELECT + tab0.col2 - 97 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 50b36517575b7b664ff1e4221736fadc

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

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

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

query I rowsort
SELECT ALL + cor0.col0 + + col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + col2 + + col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + + col2 col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - ( col1 ) * + col2 * cor0.col0 - - col1 FROM tab2 AS cor0
----
-119593
-51017
-5828

query I rowsort
SELECT DISTINCT - 94 + - col2 AS col1 FROM tab0 cor0
----
-127
-176
-95

query I rowsort
SELECT DISTINCT + col1 + col1 * - col1 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT ALL + cor1.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - col2 / + col2 + - col1 AND - col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1974
SELECT ALL col1 DIV col2 + + col2 col2 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL col1 / col2 + + col2 col2 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT + col2 + col1 * col1 AS col2 FROM tab2
----
327
3507
988

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

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

query I rowsort
SELECT DISTINCT 37 * col1 AS col1 FROM tab2
----
1147
2183
629

skipif mysql # not compatible
query I rowsort
SELECT + 93 * + cor0.col0 / - CAST ( ( + col0 ) AS REAL ) - col2 * col2 / + cor0.col0 FROM tab0 AS cor0
----
-138
-168
-93

query I rowsort
SELECT - 19 + col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1059
-659
-97

query I rowsort
SELECT + col0 - + col0 * col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= col0 * + col2
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col2 + + col0 * - col2 )
----

query I rowsort
SELECT DISTINCT - col2 - + col1 * + col1 * - col2 AS col0 FROM tab1
----
16128
36450
5643

query I rowsort
SELECT - col2 + col1 * + col2 AS col1 FROM tab2
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-1986
SELECT DISTINCT + col2 + col0 DIV - tab2.col0 FROM tab2
----
25
26
37

skipif mysql # not compatible
query I rowsort label-1986
SELECT DISTINCT + col2 + col0 / - tab2.col0 FROM tab2
----
25
26
37

query I rowsort
SELECT ALL - tab1.col1 + col1 * col1 AS col1 FROM tab1
----
156
650
90

query I rowsort
SELECT ALL - col1 + col2 FROM tab0 WHERE + col0 NOT BETWEEN NULL AND ( col1 / col1 )
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1989
SELECT ALL - col0 DIV col1 + + col2 FROM tab2
----
25
27
34

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL - col0 / col1 + + col2 FROM tab2
----
25
27
34

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

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

query I rowsort
SELECT + col0 / tab0.col2 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1 * - col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1993
SELECT - col0 + col0 + col2 DIV tab2.col0 AS col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1993
SELECT - col0 + col0 + col2 / tab2.col0 AS col0 FROM tab2
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1994
SELECT ALL + col2 + + col2 * col2 DIV + col2 FROM tab0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL + col2 + + col2 * col2 / + col2 FROM tab0
----
164
2
66

query I rowsort
SELECT - col1 + - col2 * - col0 FROM tab1 WHERE NULL IN ( - tab1.col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1996
SELECT DISTINCT - col2 DIV tab0.col1 + + col1 * col2 col1 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT - col2 / tab0.col1 + + col1 * col2 col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col1 * col2 + tab2.col1 AS col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT ALL + 58 * + col2 + col0 + + 1 * col0 AS col2 FROM tab0
----
128
1962
4934

query I rowsort
SELECT + 3 AS col0 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343

query I rowsort
SELECT DISTINCT + 54 AS col1 FROM tab0 cor0
----
54

query I rowsort
SELECT - 23 * col0 AS col1 FROM tab0 AS cor0
----
-2047
-552
-805

query I rowsort
SELECT + col2 * + 21 * col0 AS col0 FROM tab0 AS cor0
----
153258
16632
735

query I rowsort
SELECT col2 * 99 AS col1 FROM tab2 cor0
----
2574
2673
3762

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2005
SELECT DISTINCT + 43 * col2 + CAST( + 47 + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
2372
2562
4255

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT + 43 * col2 + CAST ( + 47 + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
2372
2562
4255

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

query I rowsort
SELECT ALL + ( col0 ) - + 62 FROM tab0 AS cor0
----
-27
-38
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 col1 FROM tab2 cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + - col2 + col0 * + col2 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - cor0.col0 * col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT col2 + - cor0.col0 * 30 FROM tab2 AS cor0
----
-183
-2314
-2332

query I rowsort
SELECT DISTINCT + 37 * + cor0.col1 * ( - col2 + col0 ) AS col0 FROM tab0 AS cor0
----
-28638
122026
23569

query I rowsort
SELECT DISTINCT 27 + - col0 FROM tab0 AS cor0
----
-62
-8
3

query I rowsort
SELECT ALL - col0 - col1 * - col1 * - col0 FROM tab0 AS cor0
----
-177528
-329350
-737098

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

query I rowsort
SELECT + 78 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT DISTINCT ( col1 ) * - col1 AS col0 FROM tab2
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 * + col0 AS REAL ) AS col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT col2 * 5 * - ( col1 ) FROM tab2 AS cor0
----
-3230
-4185
-7670

onlyif mysql # use DIV operator for integer division
query I rowsort label-2020
SELECT + col1 + 63 + 15 DIV - col1 col2 FROM tab1 AS cor0
----
72
75
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2020
SELECT + col1 + 63 + 15 / - col1 col2 FROM tab1 AS cor0
----
72
75
89

query I rowsort
SELECT - col1 + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT + col1 + + 18 AS col2 FROM tab1 cor0
----
28
31
44

query I rowsort
SELECT DISTINCT col1 + + 85 * col1 + col0 AS col0 FROM tab1 AS cor0
----
1198
2239
924

query I rowsort
SELECT 54 FROM tab2, tab2 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32

query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab0 cor0
----
29

query I rowsort
SELECT ALL - 62 + 40 FROM tab0 AS cor0
----
-22
-22
-22

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2028
SELECT ALL + col2 * col2 DIV - 1 FROM tab0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL + col2 * col2 / - 1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
-24
-35
-89

query I rowsort
SELECT col1 - 45 FROM tab2
----
-14
-28
14

query I rowsort
SELECT DISTINCT 69 + 17 * + col2 FROM tab0
----
1463
630
86

query I rowsort
SELECT DISTINCT 87 + col2 * - col1 FROM tab1
----
-1161
-1317
-483

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

query I rowsort
SELECT - 99 + - col2 * col0 AS col0 FROM tab2 AS cor0
----
-2127
-288
-3101

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2035
SELECT ALL + CAST( col1 * col1 AS SIGNED ) + + col0 FROM tab1
----
164
249
679

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL + CAST ( col1 * col1 AS INTEGER ) + + col0 FROM tab1
----
164
249
679

query I rowsort
SELECT DISTINCT 77 * col0 FROM tab2
----
539
6006
6083

onlyif mysql # use DIV operator for integer division
query I rowsort label-2037
SELECT ALL ( - col0 ) + + col0 DIV col0 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL ( - col0 ) + + col0 / col0 FROM tab1
----
-2
-63
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2038
SELECT ALL + col2 * col1 + tab0.col1 DIV + col0 FROM tab0
----
2841
7463
99

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL + col2 * col1 + tab0.col1 / + col0 FROM tab0
----
2841
7463
99

query I rowsort
SELECT DISTINCT + 42 + - cor0.col1 + col2 * + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-22588
-24523
-39901

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

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

query I rowsort
SELECT ALL col1 * col0 + - col0 - cor0.col2 FROM tab1 AS cor0
----
21
519
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-2043
SELECT ALL - col0 + col0 DIV col2 FROM tab1 AS cor0
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL - col0 + col0 / col2 FROM tab1 AS cor0
----
-3
-63
-80

query I rowsort
SELECT + 68 * - col0 AS col2 FROM tab2 AS cor0
----
-476
-5304
-5372

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

query I rowsort
SELECT ALL + - cor0.col0 * - cor0.col0 + cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
103
6136
6317

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

query I rowsort
SELECT DISTINCT + 90 + + col2 FROM tab2 AS cor0
----
116
117
128

query I rowsort
SELECT DISTINCT - col0 + col1 + - col1 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + col2 + + col2 + col2 AS col1 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT ALL - col1 * - col0 * - col2 + + col2 - - col2 AS col2 FROM tab1 AS cor0
----
-36366
-4104
-99648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2052
SELECT ALL col0 + + CAST( col2 + - col0 * + col1 AS SIGNED ) FROM tab0
----
-2007
-3359
-7928

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL col0 + + CAST ( col2 + - col0 * + col1 AS INTEGER ) FROM tab0
----
-2007
-3359
-7928

query I rowsort
SELECT - col0 + 50 * + col0 FROM tab0 AS cor0
----
1176
1715
4361

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col1 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT cor0.col2 + - ( + col1 ) FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2056
SELECT DISTINCT + - col2 DIV 16 AS col2 FROM tab1 AS cor0
----
-3
-6

skipif mysql # not compatible
query I rowsort label-2056
SELECT DISTINCT + - col2 / 16 AS col2 FROM tab1 AS cor0
----
-3
-6

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

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

query I rowsort
SELECT + + col1 * + col2 - col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT + col0 * ( 34 ) + col1 * + cor0.col0 - + cor0.col1 AS col1 FROM tab0 AS cor0
----
11034
2794
4488

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

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

query I rowsort
SELECT col2 + + 31 AS col0 FROM tab1 cor0
----
127
85
88

query I rowsort
SELECT + cor0.col0 + cor0.col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - - col1 * + ( + 86 ) + cor0.col2 * col0 FROM tab0 AS cor0
----
15124
8188
8377

query I rowsort
SELECT + col2 * + col2 * cor0.col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT + cor0.col0 * + col2 + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT - + col1 * - 35 FROM tab1 AS cor0
----
350
455
910

query I rowsort
SELECT ALL + 86 AS col1 FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT ALL + cor0.col1 + 51 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1300
-500
-650

query I rowsort
SELECT ALL + 95 * col2 AS col1 FROM tab0 AS cor0
----
3135
7790
95

query I rowsort
SELECT ALL - + ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

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

skipif mysql # not compatible
query I rowsort label-2071
SELECT DISTINCT - + 78 / col0 AS col0 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT DISTINCT + - cor0.col0 * cor0.col2 * + col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

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

query I rowsort
SELECT cor0.col2 * - col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - col1 * - tab1.col1 - + tab1.col2 FROM tab1
----
43
622
73

query I rowsort
SELECT cor0.col2 + cor0.col0 + cor0.col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2121
3431
8270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + - col2 * col0 col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col1 * - col2 * cor0.col2 + col1 / col0 )
----

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

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2081
SELECT - col1 + tab2.col2 DIV col0 + + tab2.col1 AS col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2081
SELECT - col1 + tab2.col2 / col0 + + tab2.col1 AS col0 FROM tab2
----
0
0
3

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col2 * col2 - + col0 )
----

query I rowsort
SELECT tab1.col1 * col2 * - col1 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT ALL col0 * col1 * col0 + - col1 * + col2 FROM tab2 AS cor0
----
105451
357422
682

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2087
SELECT ALL col1 + + col1 DIV col1 AS col1 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL col1 + + col1 / col1 AS col1 FROM tab2
----
18
32
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-2088
SELECT - col0 * + col0 + col0 * col2 DIV - col0 AS col0 FROM tab0
----
-1226
-609
-8003

skipif mysql # not compatible
query I rowsort label-2088
SELECT - col0 * + col0 + col0 * col2 / - col0 AS col0 FROM tab0
----
-1226
-609
-8003

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + col2 col0 FROM tab0
----
53
9
96

query I rowsort
SELECT col2 * - col0 + + col0 + - col1 FROM tab0
----
-7300
-854
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2092
SELECT ALL - col1 DIV + col2 + + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL - col1 / + col2 + + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2093
SELECT tab0.col0 DIV - col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2093
SELECT tab0.col0 / - col1 AS col2 FROM tab0
----
0
0
0

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab2 cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b

query I rowsort
SELECT + - col0 * + 7 * 91 FROM tab1 AS cor0
----
-1911
-40768
-50960

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

skipif mysql # not compatible
query I rowsort label-2096
SELECT col2 / + ( col0 ) AS col2 FROM tab2 cor0
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2097
SELECT cor0.col0 * col2 DIV col0 + col2 DIV 6 AS col0 FROM tab1 AS cor0
----
112
63
66

skipif mysql # not compatible
query I rowsort label-2097
SELECT cor0.col0 * col2 / col0 + col2 / 6 AS col0 FROM tab1 AS cor0
----
112
63
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 53 * col2 col1 FROM tab0 AS cor0
----
356372
53
57717

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

query I rowsort
SELECT - 65 * cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to fcdd7bd6c615b8f7833808ce12ae2077

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

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

query I rowsort
SELECT - 32 + col1 AS col2 FROM tab1 AS cor0
----
-19
-22
-6

query I rowsort
SELECT DISTINCT + ( - 26 ) FROM tab2, tab1 AS cor0
----
-26

query I rowsort
SELECT - col2 * + 15 AS col1 FROM tab2
----
-390
-405
-570

query I rowsort
SELECT DISTINCT + 17 * + ( col1 ) FROM tab1
----
170
221
442

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

query I rowsort
SELECT + col0 * col2 * - tab0.col0 AS col2 FROM tab0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-2109
SELECT DISTINCT - col0 DIV col0 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT - col0 / col0 AS col0 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col0 FROM tab0, tab0 AS cor0
----
86
91
97

query I rowsort
SELECT 50 * - col1 FROM tab1
----
-1300
-500
-650

query I rowsort
SELECT DISTINCT cor0.col1 + + 14 AS col0 FROM tab0 AS cor0
----
100
105
111

query I rowsort
SELECT ALL - + col0 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * 89 + col2 col1 FROM tab2 cor0
----
2340
2430
3420

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2116
SELECT DISTINCT - + 79 DIV 52 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT - + 79 / 52 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

query I rowsort
SELECT - col1 * - col2 * col0 - col2 FROM tab2 AS cor0
----
119626
50996
5832

query I rowsort
SELECT DISTINCT + col2 + - 75 FROM tab1
----
-18
-21
21

query I rowsort
SELECT ALL col1 * - ( - 88 ) + col2 AS col2 FROM tab2
----
1534
2755
5218

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * 39 col2 FROM tab0 AS cor0
----
1365
3471
936

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

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL - + col1 / col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2122
SELECT DISTINCT + - col0 DIV - 59 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT + - col0 / - 59 FROM tab0 AS cor0
----
0
1

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

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

query I rowsort
SELECT 77 FROM tab2, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT DISTINCT - col1 - - col0 AS col2 FROM tab0
----
-2
-62

query I rowsort
SELECT + cor0.col0 * 74 AS col0 FROM tab0 AS cor0
----
1776
2590
6586

query I rowsort
SELECT DISTINCT + 49 + cor0.col1 AS col0 FROM tab0, tab0 cor0
----
135
140
146

query I rowsort
SELECT - - 38 + - col0 AS col0 FROM tab1 AS cor0
----
-26
-42
35

query I rowsort
SELECT 98 * - col2 FROM tab2 AS cor0
----
-2548
-2646
-3724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 85 + col2 * + col0 col0 FROM tab1 AS cor0
----
3563
7595
77

query I rowsort
SELECT - 63 * + col1 + 61 FROM tab2 AS cor0
----
-1010
-1892
-3656

query I rowsort
SELECT - col2 * - col1 + col1 * - 94 FROM tab2 AS cor0
----
-2077
-4012
-952

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

query I rowsort
SELECT ALL + + col0 * col1 + col2 + 99 AS col0 FROM tab2 cor0
----
1480
343
4727

query I rowsort
SELECT - col0 + cor0.col2 * 60 * + col1 FROM tab1 AS cor0
----
34136
74800
84237

query I rowsort
SELECT ALL - col0 + + col0 * 81 FROM tab0 AS cor0
----
1920
2800
7120

query I rowsort
SELECT + - cor0.col0 * col1 + col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - - 70 + col2 * + 41 AS col2 FROM tab2 cor0
----
1136
1177
1628

query I rowsort
SELECT ALL - 0 * col0 + ( col2 + - col1 ) AS col1 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT ALL + - 16 * col1 * col2 FROM tab0 AS cor0
----
-119392
-1552
-45408

query I rowsort
SELECT DISTINCT + - cor0.col1 * - 28 + col2 AS col2 FROM tab0 AS cor0
----
2441
2630
2717

query I rowsort
SELECT ALL 70 FROM tab2, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2143
SELECT + CAST ( col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - - cor0.col0 + col2 * + cor0.col0 FROM tab1 cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2145
SELECT - + ( 72 ) + + col0 DIV 4 AS col0 FROM tab0 AS cor0
----
-50
-64
-66

skipif mysql # not compatible
query I rowsort label-2145
SELECT - + ( 72 ) + + col0 / 4 AS col0 FROM tab0 AS cor0
----
-50
-64
-66

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

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2147
SELECT ALL + tab0.col2 + col1 DIV tab0.col1 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL + tab0.col2 + col1 / tab0.col1 FROM tab0
----
2
34
83

query I rowsort
SELECT 46 + - col1 * - 72 AS col1 FROM tab2 AS cor0
----
1270
2278
4294

query I rowsort
SELECT + col1 + col1 + + col1 FROM tab1 cor0
----
30
39
78

query I rowsort
SELECT - ( + 66 ) AS col1 FROM tab1
----
-66
-66
-66

query I rowsort
SELECT col1 * - tab2.col1 * col2 AS col2 FROM tab2
----
-10982
-25947
-90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 * + col0 col2 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT - 8 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT DISTINCT 99 * 95 AS col2 FROM tab0 AS cor0
----
9405

query I rowsort
SELECT ALL - 48 * 65 FROM tab2
----
-3120
-3120
-3120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 col0 FROM tab1
----
92
92
92

query I rowsort
SELECT ALL + 17 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT ALL cor0.col2 + col1 * - col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL + col0 * + 44 + cor0.col2 AS col1 FROM tab0 AS cor0
----
1089
1541
3998

query I rowsort
SELECT DISTINCT + + col2 * 19 - col2 * - col2 AS col0 FROM tab1 AS cor0
----
11040
3942
4332

query I rowsort
SELECT + col0 + cor0.col2 AS col2 FROM tab0 cor0
----
171
36
57

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

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

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

query I rowsort
SELECT ALL + col1 + - col0 * - col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT col2 + - tab0.col2 * + col2 AS col0 FROM tab0
----
-1056
-6642
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 + col0 * - col1 col2 FROM tab2
----
-1419
-293
-4678

query I rowsort
SELECT - 46 * - 15 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 2366852a8bf0dd88527e6407383753ea

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col1 FROM tab0, tab0 AS cor0
----
73

query I rowsort
SELECT ALL col1 + 78 * col2 * col1 AS col2 FROM tab0 AS cor0
----
221450
582127
7663

query I rowsort
SELECT + - col1 * - col1 + 12 AS col0 FROM tab1 AS cor0
----
112
181
688

query I rowsort
SELECT ALL - col1 * cor0.col1 + + col2 AS col0 FROM tab1 cor0
----
-43
-622
-73

query I rowsort
SELECT + col0 * cor0.col2 + cor0.col2 AS col1 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + cor0.col1 * - ( ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + + col0 * ( cor0.col0 + + cor0.col2 ) FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT - + col2 + col1 * 67 AS col2 FROM tab0 cor0
----
5729
6015
6498

query I rowsort
SELECT - col1 * 64 - cor0.col1 FROM tab1 AS cor0
----
-1690
-650
-845

query I rowsort
SELECT ALL col0 * col0 + + cor0.col2 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-2179
SELECT col1 DIV ( - col0 ) + - col1 * col0 AS col1 FROM tab0 AS cor0
----
-2067
-3397
-8100

skipif mysql # not compatible
query I rowsort label-2179
SELECT col1 / ( - col0 ) + - col1 * col0 AS col1 FROM tab0 AS cor0
----
-2067
-3397
-8100

onlyif mysql # use DIV operator for integer division
query I rowsort label-2180
SELECT - col2 DIV + 54 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2180
SELECT - col2 / + 54 AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2181
SELECT DISTINCT - col0 DIV + 61 + - col1 + cor0.col1 * - ( ( cor0.col1 ) ) AS col1 FROM tab0 AS cor0
----
-7482
-8373
-9506

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT - col0 / + 61 + - col1 + cor0.col1 * - ( ( cor0.col1 ) ) AS col1 FROM tab0 AS cor0
----
-7482
-8373
-9506

query I rowsort
SELECT + 0 * 52 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - 72 - ( col1 ) * + 16 FROM tab0 AS cor0
----
-1448
-1528
-1624

skipif mysql # not compatible
query I rowsort
SELECT ALL - cor0.col1 + 26 + - col2 * + CAST ( col1 AS REAL ) AS col2 FROM tab2 cor0
----
-1567
-637
-842

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

query I rowsort
SELECT + 64 * col0 * col1 - col0 * 44 * + col2 FROM tab2 AS cor0
----
-46136
205296
5572

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

skipif mysql # not compatible
query I rowsort label-2187
SELECT col2 / ( - col0 + - col2 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - 25 * col1 FROM tab0
----
-2150
-2275
-2425

query I rowsort
SELECT ALL - - ( + 85 ) * - col0 + - col2 FROM tab1 AS cor0
----
-309
-5497
-6896

query I rowsort
SELECT - cor0.col2 * - col2 * col0 + + 35 * ( + cor0.col2 ) * - col2 AS col0 FROM tab2 AS cor0
----
-20412
29068
63536

query I rowsort
SELECT + + 26 + + col1 FROM tab1 AS cor0
----
36
39
52

query I rowsort
SELECT 98 - + col2 FROM tab2 AS cor0
----
60
71
72

query I rowsort
SELECT DISTINCT - 63 + col0 FROM tab2 AS cor0
----
-56
15
16

query I rowsort
SELECT DISTINCT - 64 * - col2 FROM tab0 AS cor0
----
2112
5248
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-2195
SELECT - 35 DIV - col1 + + 48 + 28 * col2 FROM tab1 AS cor0
----
1561
1647
2738

skipif mysql # not compatible
query I rowsort label-2195
SELECT - 35 / - col1 + + 48 + 28 * col2 FROM tab1 AS cor0
----
1561
1647
2738

query I rowsort
SELECT ALL col2 - cor0.col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col1 * ( - col2 * + cor0.col2 ) FROM tab2 AS cor0
----
-2353156
-417316
-700569

query I rowsort
SELECT ALL + col2 * cor0.col2 + - col2 * - ( + col2 ) * 34 FROM tab0 AS cor0
----
235340
35
38115

query I rowsort
SELECT DISTINCT - col2 * + col2 * col2 FROM tab1
----
-157464
-185193
-884736

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

query I rowsort
SELECT DISTINCT 9 * col0 AS col1 FROM tab2 cor0
----
63
702
711

query I rowsort
SELECT + + ( col0 ) + + cor0.col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - ( + col2 ) + ( 38 ) AS col1 FROM tab0 AS cor0
----
-44
37
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2204
SELECT + - col1 + col2 * + ( + ( col1 ) + CAST( - 48 AS SIGNED ) ) * - col2 FROM tab1 AS cor0
----
123452
322547
64126

skipif mysql # not compatible
query I rowsort label-2204
SELECT + - col1 + col2 * + ( + ( col1 ) + CAST ( - 48 AS INTEGER ) ) * - col2 FROM tab1 AS cor0
----
123452
322547
64126

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

query I rowsort
SELECT - 23 + - col0 * ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-2087
-3418
-8122

query I rowsort
SELECT - + col2 * 6 AS col0 FROM tab1 AS cor0
----
-324
-342
-576

query I rowsort
SELECT DISTINCT - cor1.col1 AS col2 FROM tab0, tab1 AS cor0, tab1, tab2 AS cor1
----
-17
-31
-59

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

query I rowsort
SELECT - - ( ( col2 ) ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - ( 14 ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1148
-14
-462

query I rowsort
SELECT 96 * cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
198144
325920
777504

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

query I rowsort
SELECT + col0 + col2 * - cor0.col2 * 34 AS col0 FROM tab1 cor0
----
-110402
-313264
-99141

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2215
SELECT + cor0.col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2215
SELECT + cor0.col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT 53 * + col1 + col2 * 52 FROM tab1
----
3494
4186
5681

query I rowsort
SELECT cor0.col1 * - col0 + - col2 * col0 * - col2 AS col2 FROM tab1 AS cor0
----
207296
736240
8670

query I rowsort
SELECT - col2 * ( - col0 ) - col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT - - col1 * col1 * 70 - col0 FROM tab0 AS cor0
----
517696
579581
658595

query I rowsort
SELECT DISTINCT - col0 + col2 * + col0 * col1 AS col1 FROM tab2 cor0
----
119574
50955
5852

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2222
SELECT - - col1 * + CAST( - col2 AS SIGNED ) - + col2 * - col0 col2 FROM tab1 AS cor0
----
-1242
3078
6432

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2222
SELECT - - col1 * + CAST ( - col2 AS INTEGER ) - + col2 * - col0 col2 FROM tab1 AS cor0
----
-1242
3078
6432

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

query I rowsort
SELECT 84 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2225
SELECT CAST ( NULL AS REAL ) * col0 - - col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2226
SELECT ALL - col2 DIV 92 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL - col2 / 92 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col2 AS REAL ) * + col2 * + col1 + - 41 * + cor0.col1 * + cor0.col1 FROM tab0 AS cor0
----
-385866
-396890
-951405

query I rowsort
SELECT ALL 58 + - col0 AS col2 FROM tab1 AS cor0
----
-22
-6
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col1 ) col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + 83 * 54 FROM tab0 AS cor0
----
4482

query I rowsort
SELECT ALL - + 87 * col0 FROM tab2 AS cor0
----
-609
-6786
-6873

query I rowsort
SELECT - 18 * + 54 + - col1 AS col1 FROM tab0 AS cor0
----
-1058
-1063
-1069

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

query I rowsort
SELECT + cor0.col2 * cor1.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6eca0fdf700a988d88ac850bac7633ab

query I rowsort
SELECT + ( col0 ) + - col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2236
SELECT DISTINCT CAST( + col2 AS SIGNED ) + col2 AS col2 FROM tab1
----
108
114
192

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + col2 AS col2 FROM tab1
----
108
114
192

query I rowsort
SELECT col0 * col2 + + col2 + ( + col2 + col0 ) AS col1 FROM tab2
----
2158
250
3157

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2238
SELECT + ( + col1 ) * + tab0.col2 + - CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
2805
7380
96

skipif mysql # not compatible
query I rowsort label-2238
SELECT + ( + col1 ) * + tab0.col2 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
2805
7380
96

query I rowsort
SELECT ALL + col2 * + col0 + + col1 + + 20 FROM tab0
----
152
7409
898

query I rowsort
SELECT - 89 * col2 FROM tab0
----
-2937
-7298
-89

query I rowsort
SELECT 42 * 99 + - col1 FROM tab1
----
4132
4145
4148

query I rowsort
SELECT - - 80 * + 98 + + col1 FROM tab0 AS cor0
----
7926
7931
7937

query I rowsort
SELECT ALL - cor0.col0 - ( col1 ) * col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-2244
SELECT - col1 DIV - ( - cor0.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-2244
SELECT - col1 / - ( - cor0.col0 ) col2 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT - + col2 * 97 AS col1 FROM tab2 AS cor0
----
-2522
-2619
-3686

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

query I rowsort
SELECT ALL + - col0 - + col1 FROM tab0 AS cor0
----
-110
-132
-180

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

skipif mysql # not compatible
query I rowsort label-2248
SELECT - 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 DISTINCT + - col1 * - ( + 72 * cor0.col1 ) col0 FROM tab1 AS cor0
----
12168
48672
7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col0 + - cor0.col0 col1 FROM tab1 AS cor0
----
-12
-4160
-6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 + col0 col1 FROM tab1 AS cor0
----
-56
21
5

query I rowsort
SELECT - col0 * col2 + - ( + col0 * col0 ) FROM tab0 cor0
----
-1260
-1368
-15219

query I rowsort
SELECT + 76 * col1 - + 41 AS col2 FROM tab1 AS cor0
----
1935
719
947

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

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

query I rowsort
SELECT DISTINCT + 73 + - col2 AS col2 FROM tab1
----
-23
16
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-2256
SELECT - 99 DIV col1 FROM tab1
----
-3
-7
-9

skipif mysql # not compatible
query I rowsort label-2256
SELECT - 99 / col1 FROM tab1
----
-3
-7
-9

query I rowsort
SELECT ALL + - ( cor0.col2 ) * + cor0.col1 * + 79 FROM tab0 AS cor0
----
-224202
-589498
-7663

onlyif mysql # use DIV operator for integer division
query I rowsort label-2258
SELECT cor0.col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-2258
SELECT cor0.col1 / + col2 AS col1 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT + - 84 * cor0.col1 FROM tab1 AS cor0
----
-1092
-2184
-840

query I rowsort
SELECT - cor1.col0 + + 3 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f1781087582cd1581a6c540aba527569

query I rowsort
SELECT ALL + - col1 * col2 * - cor0.col2 FROM tab1 AS cor0
----
119808
32490
75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-2262
SELECT cor0.col1 * cor0.col2 DIV - col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2262
SELECT cor0.col1 * cor0.col2 / - col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - col2 * ( - 77 * - col1 ) FROM tab0 AS cor0
----
-218526
-574574
-7469

onlyif mysql # use DIV operator for integer division
query I rowsort label-2264
SELECT + cor0.col1 * + col1 + + 85 DIV + col2 AS col2 FROM tab1 AS cor0
----
101
169
677

skipif mysql # not compatible
query I rowsort label-2264
SELECT + cor0.col1 * + col1 + + 85 / + col2 AS col2 FROM tab1 AS cor0
----
101
169
677

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

skipif mysql # not compatible
query I rowsort label-2265
SELECT DISTINCT + + col0 / CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT + col1 * - col0 + col1 + col2 AS col0 FROM tab1
----
-573
-931
2

query I rowsort
SELECT ALL 45 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT 77 * col0 FROM tab1
----
231
4928
6160

query I rowsort
SELECT 50 + + col2 * tab1.col2 FROM tab1
----
2966
3299
9266

query I rowsort
SELECT DISTINCT tab2.col1 * - col2 + col1 * 7 FROM tab2
----
-1121
-527
-620

query I rowsort
SELECT DISTINCT + col1 + col2 + col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT ALL 79 * 58 - - col1 * - col1 FROM tab1 AS cor0
----
3906
4413
4482

onlyif mysql # use DIV operator for integer division
query I rowsort label-2273
SELECT - 39 DIV col0 AS col2 FROM tab2 cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2273
SELECT - 39 / col0 AS col2 FROM tab2 cor0
----
-5
0
0

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

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

query I rowsort
SELECT ALL - 44 AS col2 FROM tab2 AS cor0
----
-44
-44
-44

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

query I rowsort
SELECT DISTINCT - - col2 * 86 FROM tab2 AS cor0
----
2236
2322
3268

query I rowsort
SELECT + 83 + + col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2147
3478
8182

query I rowsort
SELECT ALL 9 + cor0.col0 AS col0 FROM tab2 cor0
----
16
87
88

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

query I rowsort
SELECT ALL + - 35 AS col0 FROM tab0 AS cor0
----
-35
-35
-35

query I rowsort
SELECT ALL 19 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 + col0 ) col2 FROM tab0
----
-171
-36
-57

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

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

query I rowsort
SELECT 99 - col0 AS col2 FROM tab0
----
10
64
75

query I rowsort
SELECT 35 * - tab1.col1 - 6 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to a6db2ba047c01984cd9e4f5da9837c1f

query I rowsort
SELECT DISTINCT - - 37 FROM tab0 cor0
----
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-2289
SELECT - - 4 + + col0 * col2 DIV col0 col2 FROM tab1 AS cor0
----
100
58
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2289
SELECT - - 4 + + col0 * col2 / col0 col2 FROM tab1 AS cor0
----
100
58
61

query I rowsort
SELECT DISTINCT ( - 48 ) + cor0.col0 * col1 * + col1 FROM tab0 AS cor0
----
177456
329267
736961

query I rowsort
SELECT DISTINCT ( + 4 + cor0.col0 * - 33 ) AS col2 FROM tab0, tab1, tab0 AS cor0
----
-1151
-2933
-788

query I rowsort
SELECT + 87 * - cor0.col0 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to becac37d4f044667b0905f132cbaacfc

query I rowsort
SELECT ALL + col2 * col2 + + 81 AS col1 FROM tab2 cor0
----
1525
757
810

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

query I rowsort
SELECT - 20 * col1 AS col2 FROM tab0 AS cor0
----
-1720
-1820
-1940

onlyif mysql # use DIV operator for integer division
query I rowsort label-2296
SELECT ALL - col1 DIV col1 + - cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1226
-577
-7922

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL - col1 / col1 + - cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1226
-577
-7922

query I rowsort
SELECT DISTINCT 5 + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2833
-7457
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - col2 + col0 col1 FROM tab1 AS cor0
----
-159
-3584
-7600

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

skipif mysql # not compatible
query I rowsort label-2299
SELECT - - col2 * CAST ( col2 + - col2 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT col0 + + col1 * + 6 FROM tab1 cor0
----
124
158
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 * ( - col0 * cor0.col1 ) col2 FROM tab2 cor0
----
-119652
-51034
-5859

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

query I rowsort
SELECT col1 * + 94 AS col0 FROM tab1 AS cor0
----
1222
2444
940

query I rowsort
SELECT DISTINCT - 2 * + col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL + cor1.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT ALL - 99 * col2 AS col1 FROM tab0 AS cor0
----
-3267
-8118
-99

query I rowsort
SELECT - cor2.col2 AS col2 FROM tab2, tab0 cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to c569638e8a09ff819458d62ddbde994c

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

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

query I rowsort
SELECT - tab1.col0 * - col0 * tab1.col0 - col1 FROM tab1
----
1
262134
511987

query I rowsort
SELECT col1 * col2 + col1 FROM tab0
----
194
2924
7553

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + - col2 IN ( - col1 * - col0 * - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 IN ( - tab1.col1 * - col0 )
----

query I rowsort
SELECT + col1 * - col2 * col1 AS col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT col0 + - tab0.col2 * + col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT col1 + col0 * - col0 + - col1 * - tab2.col1 FROM tab2
----
-2544
-5935
943

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 * - col0 col1 FROM tab1
----
-234
-40960
-83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-2318
SELECT ALL - col1 DIV tab0.col1 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL - col1 / tab0.col1 AS col2 FROM tab0
----
-1
-1
-1

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

query I rowsort
SELECT col1 FROM tab2 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col1 + - tab0.col0 + tab0.col1 * + col2 AS col0 FROM tab0
----
159
2900
7464

query I rowsort
SELECT DISTINCT + col0 + col0 + col1 FROM tab2
----
175
215
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2323
SELECT tab2.col2 DIV - col1 + tab2.col0 * tab2.col1 + + tab2.col0 * + col2 * - tab2.col1 AS col2 FROM tab2
----
-115050
-49693
-5642

skipif mysql # not compatible
query I rowsort label-2323
SELECT tab2.col2 / - col1 + tab2.col0 * tab2.col1 + + tab2.col0 * + col2 * - tab2.col1 AS col2 FROM tab2
----
-115050
-49693
-5642

query I rowsort
SELECT col0 * tab2.col1 + + col2 * + tab2.col1 AS col1 FROM tab2
----
1054
1989
6136

query I rowsort
SELECT ALL col2 + - col2 + tab0.col2 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2326
SELECT + col0 + + col0 DIV - col1 FROM tab1
----
3
58
74

skipif mysql # not compatible
query I rowsort label-2326
SELECT + col0 + + col0 / - col1 FROM tab1
----
3
58
74

query I rowsort
SELECT col1 * col0 + col0 + tab1.col2 AS col0 FROM tab1
----
1216
135
761

query I rowsort
SELECT col2 / tab2.col1 + - col2 AS col1 FROM tab2 WHERE NULL NOT IN ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2329
SELECT ALL - col1 + + col1 DIV + col2 FROM tab0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL - col1 + + col1 / + col2 FROM tab0
----
-84
-90
0

query I rowsort
SELECT DISTINCT col0 * tab1.col0 * col0 AS col0 FROM tab1
----
262144
27
512000

query I rowsort
SELECT ALL + col1 * + col2 * + tab1.col2 AS col0 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT DISTINCT col1 * + tab0.col0 + + col2 * col0 FROM tab0
----
15397
2856
3430

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

query I rowsort
SELECT - cor0.col2 * + cor0.col1 + + col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 cor0 WHERE col1 + + col2 BETWEEN NULL AND col2 * col0 * + col1
----

query I rowsort
SELECT DISTINCT cor0.col2 * col1 + + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2337
SELECT ALL - col2 DIV - 36 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL - col2 / - 36 FROM tab1 AS cor0
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 * col1 col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT + cor0.col1 * + cor0.col2 + + cor0.col0 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2340
SELECT col1 * - CAST( 87 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1131
-2262
-870

skipif mysql # not compatible
query I rowsort label-2340
SELECT col1 * - CAST ( 87 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1131
-2262
-870

query I rowsort
SELECT + cor0.col2 * ( col2 ) AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + col1 - ( 27 ) FROM tab1 AS cor0
----
-1
-14
-17

onlyif mysql # use DIV operator for integer division
query I rowsort label-2343
SELECT ALL - col2 * col2 + + col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL - col2 * col2 + + col1 / + col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL col2 * 63 FROM tab2 cor0
----
1638
1701
2394

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) * + col1 + - col1 * 59 col0 FROM tab0 AS cor0
----
2322
2912
3686

query I rowsort
SELECT ALL col0 * - cor0.col0 - - col2 FROM tab0 AS cor0
----
-1224
-543
-7839

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

query I rowsort
SELECT col1 + tab0.col2 * - col0 AS col0 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT col1 + col2 FROM tab1 WHERE NOT col2 * + col2 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col0 + + tab1.col2 FROM tab1 WHERE NOT NULL <> col0
----

query I rowsort
SELECT ALL - ( col0 + + 95 ) AS col1 FROM tab0
----
-119
-130
-184

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 + + col1 col0 FROM tab1
----
-27
-40
-43

query I rowsort
SELECT DISTINCT - col1 * 48 * + tab2.col2 AS col2 FROM tab2
----
-31008
-40176
-73632

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2357
SELECT col0 DIV col2 + + tab1.col0 DIV - col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2357
SELECT col0 / col2 + + tab1.col0 / - col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT - cor0.col2 * - col2 + 8 AS col0 FROM tab2 AS cor0
----
1452
684
737

onlyif mysql # use DIV operator for integer division
query I rowsort label-2359
SELECT ALL col1 + + 62 - - cor0.col0 * col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
139
159
73

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL col1 + + 62 - - cor0.col0 * col2 / - col1 AS col1 FROM tab0 AS cor0
----
139
159
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - col1 col2 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT 29 + col0 FROM tab1 AS cor0
----
109
32
93

query I rowsort
SELECT + - col1 * + 44 FROM tab0 AS cor0
----
-3784
-4004
-4268

query I rowsort
SELECT DISTINCT + ( col0 ) + col2 * col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT ALL - 90 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT - 76 + + 81 * - col2 * + col1 FROM tab1 AS cor0
----
-101164
-113800
-46246

query I rowsort
SELECT DISTINCT - + 45 AS col2 FROM tab1 AS cor0
----
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2367
SELECT ALL ( + 7 ) + + col0 + + col2 DIV col0 AS col2 FROM tab1 cor0
----
28
71
88

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL ( + 7 ) + + col0 + + col2 / col0 AS col2 FROM tab1 cor0
----
28
71
88

query I rowsort
SELECT ALL - 95 * col2 FROM tab1
----
-5130
-5415
-9120

query I rowsort
SELECT DISTINCT + col2 * + tab1.col0 * - col0 AS col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT + + 69 * col1 FROM tab2 AS cor0
----
1173
2139
4071

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + 28 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 27a91d9d2c7980948fd903ad56d735e5

query I rowsort
SELECT DISTINCT + 20 + col1 AS col1 FROM tab1 cor0
----
30
33
46

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

query I rowsort
SELECT DISTINCT ( cor0.col1 ) * col2 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col2 * col0 - 88 FROM tab2 AS cor0
----
-2116
-277
-3090

query I rowsort
SELECT 4 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

onlyif mysql # use DIV operator for integer division
query I rowsort label-2377
SELECT cor1.col1 DIV cor2.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to ddb8e96fa9fea2df70a5a40f790f57c6

skipif mysql # not compatible
query I rowsort label-2377
SELECT cor1.col1 / cor2.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to ddb8e96fa9fea2df70a5a40f790f57c6

query I rowsort
SELECT ALL col2 - col0 * - ( + col2 ) FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - col0 * - 53 AS col2 FROM tab0 AS cor0
----
1272
1855
4717

query I rowsort
SELECT DISTINCT + col1 * + col2 * col2 FROM tab2 AS cor0
----
22599
24548
39884

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

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

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL - - cor0.col0 / - ( - ( col0 ) ) AS col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL col1 * 69 + 16 * - col0 * - col0 FROM tab0 AS cor0
----
133015
15150
26293

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

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

query I rowsort
SELECT DISTINCT - col1 * cor0.col2 + col0 - col1 AS col1 FROM tab2 AS cor0
----
-1515
-584
-861

query I rowsort
SELECT ALL col1 + ( col2 ) * + col2 + col2 * col0 FROM tab2 AS cor0
----
2763
4463
949

query I rowsort
SELECT DISTINCT + - col1 - - cor0.col0 * + col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT - 30 * - col1 * - ( col0 ) + + col2 AS col2 FROM tab1
----
-19143
-2286
-31104

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

query I rowsort
SELECT 61 * col0 + - col2 FROM tab0
----
1431
2134
5347

query I rowsort
SELECT DISTINCT - col1 + - col1 * col2 * + tab2.col1 AS col0 FROM tab2
----
-10999
-25978
-90565

query I rowsort
SELECT - col1 + + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT DISTINCT ( + col2 ) * + 87 + tab1.col2 AS col1 FROM tab1
----
4752
5016
8448

query I rowsort
SELECT ALL col0 * + col0 + - col0 FROM tab2 AS cor0
----
42
6006
6162

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2396
SELECT ALL col0 * col1 DIV + col0 AS col2 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL col0 * col1 / + col0 AS col2 FROM tab2
----
17
31
59

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

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

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 - col1 - col0 * col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT 60 * + col1 + - col0 FROM tab1 AS cor0
----
1557
536
700

query I rowsort
SELECT - - 2 * - col2 + col1 * col1 * cor0.col0 AS col1 FROM tab2 cor0
----
22755
271466
6673

query I rowsort
SELECT - 4 * + col2 FROM tab0 AS cor0
----
-132
-328
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT cor0.col1 DIV - col0 - + col0 FROM tab1 AS cor0
----
-11
-64
-80

skipif mysql # not compatible
query I rowsort label-2404
SELECT cor0.col1 / - col0 - + col0 FROM tab1 AS cor0
----
-11
-64
-80

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

query I rowsort
SELECT ALL - 86 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT 67 * col1 FROM tab1
----
1742
670
871

onlyif mysql # use DIV operator for integer division
query I rowsort label-2408
SELECT ALL + ( 97 ) DIV + col0 + col0 FROM tab0
----
28
37
90

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL + ( 97 ) / + col0 + col0 FROM tab0
----
28
37
90

query I rowsort
SELECT - 25 * + col2 * col0 + col0 AS col2 FROM tab1
----
-191920
-4047
-91136

query I rowsort
SELECT DISTINCT ( col1 ) + col1 + + col0 AS col0 FROM tab0
----
196
229
271

query I rowsort
SELECT + ( col1 ) * tab1.col2 * col0 + col2 FROM tab1
----
36537
4266
99936

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

query I rowsort
SELECT 84 * - col2 * + col2 + col1 * + col0 FROM tab1
----
-244866
-272276
-773104

query I rowsort
SELECT col0 * - col2 * col0 AS col1 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT - 96 * col1 * - tab2.col0 FROM tab2
----
128928
20832
441792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * + col2 col2 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * col1 col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + + cor0.col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - - 71 + + col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
227
229
85

query I rowsort
SELECT ALL - col2 * col2 + col1 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT + col1 + col0 + col0 AS col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT ALL 47 * + col0 AS col1 FROM tab1 cor0
----
141
3008
3760

query I rowsort
SELECT DISTINCT - ( col2 ) + 31 * + 66 AS col2 FROM tab0 AS cor0
----
1964
2013
2045

query I rowsort
SELECT - 70 * col1 FROM tab1 AS cor0
----
-1820
-700
-910

query I rowsort
SELECT + + col0 + col0 AS col2 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + 77 + + col2 FROM tab0 AS cor0
----
110
159
78

query I rowsort
SELECT - 52 + tab0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 6ca790b228c12fa3fc0147ea9d36ac29

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

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

query I rowsort
SELECT DISTINCT tab1.col1 * - col2 AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT tab1.col1 + + col2 - col2 FROM tab1
----
10
13
26

query I rowsort
SELECT tab1.col0 * + 52 FROM tab1
----
156
3328
4160

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

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

query I rowsort
SELECT - col2 + ( col0 ) AS col0 FROM tab2 AS cor0
----
-20
41
52

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

query I rowsort
SELECT + cor1.col0 AS col2 FROM tab0 cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col1 ) col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT cor1.col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2440
SELECT + 99 DIV col0 AS col1 FROM tab1 AS cor0
----
1
1
33

skipif mysql # not compatible
query I rowsort label-2440
SELECT + 99 / col0 AS col1 FROM tab1 AS cor0
----
1
1
33

query I rowsort
SELECT DISTINCT + col1 * col2 + col1 + col0 FROM tab0
----
229
2948
7642

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

query I rowsort
SELECT DISTINCT 12 * col0 * - col2 AS col1 FROM tab2 AS cor0
----
-2268
-24336
-36024

query I rowsort
SELECT + 93 + ( col1 ) * - 57 AS col2 FROM tab2
----
-1674
-3270
-876

query I rowsort
SELECT col2 + 43 AS col1 FROM tab0 AS cor0
----
125
44
76

query I rowsort
SELECT 8 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-56
-624
-632

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

query I rowsort
SELECT DISTINCT + 78 * col0 + col2 * + col1 FROM tab0 AS cor0
----
14404
2827
4710

query I rowsort
SELECT ALL + 48 + - col1 AS col0 FROM tab2 cor0
----
-11
17
31

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

query I rowsort
SELECT DISTINCT - col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT cor0.col1 + + col1 * 34 AS col0 FROM tab1 AS cor0
----
350
455
910

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2454
SELECT col0 * CAST( - ( col2 ) AS SIGNED ) AS col1 FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-2454
SELECT col0 * CAST ( - ( col2 ) AS INTEGER ) AS col1 FROM tab1
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2455
SELECT ALL col1 DIV ( - col2 * col0 ) + + 92 * 76 FROM tab0
----
6990
6992
6992

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL col1 / ( - col2 * col0 ) + + 92 * 76 FROM tab0
----
6990
6992
6992

query I rowsort
SELECT DISTINCT - + col0 * ( - col0 * col0 ) FROM tab1 AS cor0
----
262144
27
512000

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2458
SELECT DISTINCT + col1 DIV - col1 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT + col1 / - col1 FROM tab1 cor0
----
-1

query I rowsort
SELECT DISTINCT ( + col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - + col1 * col2 * col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT - ( ( col0 ) ) + + ( + 18 ) FROM tab2 AS cor0
----
-60
-61
11

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

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

query I rowsort
SELECT DISTINCT ( - 74 ) AS col0 FROM tab1 cor0
----
-74

query I rowsort
SELECT + + col1 + 5 AS col1 FROM tab1 AS cor0
----
15
18
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 35 col2 FROM tab1
----
-1890
-1995
-3360

query I rowsort
SELECT col1 - 0 FROM tab0
----
86
91
97

query I rowsort
SELECT + col0 - - 36 * + col2 FROM tab0
----
1212
3041
71

query I rowsort
SELECT + col2 + + 46 + + col0 FROM tab2
----
150
163
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2470
SELECT DISTINCT - col0 + + CAST( - col0 * col1 AS SIGNED ) AS col0 FROM tab0
----
-2088
-3430
-8188

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT - col0 + + CAST ( - col0 * col1 AS INTEGER ) AS col0 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT col0 * ( tab1.col0 ) AS col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT tab2.col2 * + col1 * - 79 FROM tab2
----
-121186
-51034
-66123

query I rowsort
SELECT ALL + col2 * - 73 AS col0 FROM tab0
----
-2409
-5986
-73

query I rowsort
SELECT + col1 + - col2 * 64 FROM tab2 AS cor0
----
-1605
-1697
-2415

query I rowsort
SELECT + col1 * 95 FROM tab0 AS cor0
----
8170
8645
9215

query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) * cor0.col1 FROM tab1 cor0
----
-16224
-36504
-5700

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2478
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT 0 * cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + cor2.col2 FROM tab0, tab0 cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2

query I rowsort
SELECT ALL + col1 * + ( - col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

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

query I rowsort
SELECT ALL - col1 + col2 * - ( cor0.col0 + col2 ) * - 36 AS col0 FROM tab2 AS cor0
----
160039
33017
97285

query I rowsort
SELECT DISTINCT col1 + - col0 * - col0 AS col2 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT DISTINCT + cor0.col1 + ( col0 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - + col1 * 32 AS col2 FROM tab0 AS cor0
----
-2752
-2912
-3104

query I rowsort
SELECT col2 + ( - col1 ) + ( + col2 ) FROM tab2
----
-7
23
59

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

skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * col1 + + col2 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT ALL col1 + + 36 AS col1 FROM tab2 AS cor0
----
53
67
95

query I rowsort
SELECT col0 - - ( + cor0.col2 + col1 ) * - ( + col0 ) FROM tab2 AS cor0
----
-399
-4266
-6552

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

query I rowsort
SELECT col2 + 63 AS col0 FROM tab2 AS cor0
----
101
89
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 63 col0 FROM tab1 cor0
----
127
143
66

query I rowsort
SELECT 19 + + tab2.col0 + col0 AS col0 FROM tab2
----
175
177
33

query I rowsort
SELECT DISTINCT + 59 + - ( col2 * 85 ) AS col2 FROM tab2
----
-2151
-2236
-3171

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

query I rowsort
SELECT DISTINCT - + ( col0 ) + cor0.col0 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2499
SELECT DISTINCT - - 57 DIV col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2499
SELECT DISTINCT - - 57 / col0 FROM tab0 AS cor0
----
0
1
2

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

query I rowsort
SELECT DISTINCT + + 0 * - col0 - + col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT col1 + + cor0.col0 * cor0.col1 * 46 FROM tab0 AS cor0
----
156267
372645
95030

query I rowsort
SELECT ALL + col1 * + col2 + - 13 AS col0 FROM tab1 AS cor0
----
1235
1391
557

query I rowsort
SELECT ALL + 49 + + col2 AS col2 FROM tab1 AS cor0
----
103
106
145

query I rowsort
SELECT - col2 * - col0 + + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT col1 + tab1.col0 * tab1.col2 + 94 * col1 FROM tab1
----
2632
4598
8915

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

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

query I rowsort
SELECT ALL 30 * + col1 + - col0 AS col0 FROM tab1 cor0
----
236
310
777

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

query I rowsort
SELECT DISTINCT + - 39 * - col1 AS col2 FROM tab2 cor0
----
1209
2301
663

query I rowsort
SELECT - col0 * - col1 + + 4 AS col1 FROM tab0 AS cor0
----
2068
3399
8103

query I rowsort
SELECT DISTINCT + 52 * col2 AS col2 FROM tab0 AS cor0
----
1716
4264
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2513
SELECT ALL col0 + - col0 DIV 2 AS col0 FROM tab1 AS cor0
----
2
32
40

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL col0 + - col0 / 2 AS col0 FROM tab1 AS cor0
----
2
32
40

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

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

query I rowsort
SELECT + + ( col0 ) * - col0 - - 29 AS col0 FROM tab2 AS cor0
----
-20
-6055
-6212

query I rowsort
SELECT - 66 * - col0 AS col2 FROM tab1 AS cor0
----
198
4224
5280

query I rowsort
SELECT DISTINCT - - col1 * cor0.col2 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - + col1 + - cor0.col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT - - col0 * 15 AS col1 FROM tab2 AS cor0
----
105
1170
1185

onlyif mysql # use DIV operator for integer division
query I rowsort label-2521
SELECT - + col2 DIV cor0.col2 + - col2 * col1 FROM tab0 AS cor0
----
-2839
-7463
-98

skipif mysql # not compatible
query I rowsort label-2521
SELECT - + col2 / cor0.col2 + - col2 * col1 FROM tab0 AS cor0
----
-2839
-7463
-98

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

query I rowsort
SELECT col0 * col0 * + col1 + + col2 FROM tab0 AS cor0
----
118826
49569
720893

query I rowsort
SELECT col2 + + col1 * col1 FROM tab0
----
7429
8363
9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2525
SELECT + - col2 + + CAST( cor0.col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-2525
SELECT + - col2 + + CAST ( cor0.col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + + 11 * + col0 AS col0 FROM tab2 AS cor0
----
77
858
869

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

query I rowsort
SELECT ALL + + 38 + - 44 AS col0 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT - 39 + + 22 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT DISTINCT + - col0 * + 82 AS col2 FROM tab0 AS cor0
----
-1968
-2870
-7298

query I rowsort
SELECT + 31 * - col2 * - col0 FROM tab1 AS cor0
----
113088
238080
5022

query I rowsort
SELECT ALL 30 * 89 FROM tab2 AS cor0
----
2670
2670
2670

query I rowsort
SELECT DISTINCT - col0 * + 18 * - col1 FROM tab1 cor0
----
11520
1404
18720

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2535
SELECT ALL col0 + col0 DIV col1 AS col2 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL col0 + col0 / col1 AS col2 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT ( 67 ) * + col0 AS col1 FROM tab1 AS cor0
----
201
4288
5360

query I rowsort
SELECT - - col2 * - 32 + + col2 AS col0 FROM tab1 AS cor0
----
-1674
-1767
-2976

query I rowsort
SELECT + 45 FROM tab2, tab0 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT - - col1 - col2 * cor0.col1 * 36 FROM tab2 AS cor0
----
-23239
-30101
-55165

query I rowsort
SELECT 93 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # use DIV operator for integer division
query I rowsort label-2541
SELECT - cor1.col0 DIV ( - 64 + cor0.col2 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 71806442248e98a02de416b89d6a7722

skipif mysql # not compatible
query I rowsort label-2541
SELECT - cor1.col0 / ( - 64 + cor0.col2 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 71806442248e98a02de416b89d6a7722

query I rowsort
SELECT DISTINCT tab0.col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
24
35
89

query I rowsort
SELECT DISTINCT - 49 AS col2 FROM tab1, tab0 AS cor0
----
-49

query I rowsort
SELECT - col2 * - 45 AS col1 FROM tab1 AS cor0
----
2430
2565
4320

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT 40 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT ALL 56 * - 2 FROM tab2 AS cor0
----
-112
-112
-112

query I rowsort
SELECT ALL + - ( 11 ) + + col0 * + col1 FROM tab1 AS cor0
----
1029
629
67

query I rowsort
SELECT DISTINCT - 30 * + 52 - col2 FROM tab1 AS cor0
----
-1614
-1617
-1656

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

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

query I rowsort
SELECT DISTINCT - 58 * ( + col2 ) FROM tab1 AS cor0
----
-3132
-3306
-5568

query I rowsort
SELECT + + col1 * + 97 AS col1 FROM tab0 AS cor0
----
8342
8827
9409

query I rowsort
SELECT ALL - cor0.col0 * 98 + col0 FROM tab2 AS cor0
----
-679
-7566
-7663

query I rowsort
SELECT 71 AS col2 FROM tab2 cor0
----
71
71
71

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

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

query I rowsort
SELECT col2 * - 38 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-110808
-123462
-350208

query I rowsort
SELECT ALL + + 82 + - 40 FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT 61 * col2 * - col1 FROM tab0 AS cor0
----
-173118
-455182
-5917

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

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

query I rowsort
SELECT col1 * col1 * ( cor0.col2 ) + + col2 * - ( - cor0.col1 ) + + col2 AS col1 FROM tab2 AS cor0
----
11666
26811
92066

query I rowsort
SELECT + 86 + col2 AS col2 FROM tab0 AS cor0
----
119
168
87

query I rowsort
SELECT col2 + col1 * - 23 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1253
-274
-679

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 12 ) * + tab1.col0 * col2 col0 FROM tab1
----
1944
43776
92160

query I rowsort
SELECT ALL - col1 * cor0.col0 + ( - 40 ) AS col0 FROM tab0 cor0
----
-2104
-3435
-8139

query I rowsort
SELECT ALL - 30 * + col1 * + col2 FROM tab0 AS cor0
----
-223860
-2910
-85140

query I rowsort
SELECT - - cor0.col1 * col2 + + 42 FROM tab2 cor0
----
1576
688
879

query I rowsort
SELECT ALL + col1 * - ( + 20 + - col0 ) * + col1 AS col2 FROM tab2 AS cor0
----
-12493
17051
201898

onlyif mysql # use DIV operator for integer division
query I rowsort label-2569
SELECT col1 * - col0 + - col0 * col1 DIV col0 FROM tab1 AS cor0
----
-104
-1053
-650

skipif mysql # not compatible
query I rowsort label-2569
SELECT col1 * - col0 + - col0 * col1 / col0 FROM tab1 AS cor0
----
-104
-1053
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-2570
SELECT DISTINCT - + col1 + col2 + + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
-3
-32
22

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT - + col1 + col2 + + col1 / col1 AS col0 FROM tab2 AS cor0
----
-3
-32
22

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

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

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

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

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

query I rowsort
SELECT + col2 + 1 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT DISTINCT 45 + col0 + - col2 FROM tab2
----
25
86
97

query I rowsort
SELECT DISTINCT - 25 + + col0 AS col0 FROM tab0
----
-1
10
64

query I rowsort
SELECT - 2 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387

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

skipif mysql # not compatible
query I rowsort label-2578
SELECT + col1 / - tab2.col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - col1 * - col0 * + 94 FROM tab1
----
60160
7332
97760

query I rowsort
SELECT col1 * col0 + - 31 FROM tab2
----
1312
186
4571

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2581
SELECT ALL ( + tab1.col2 ) + + CAST( col2 * col1 AS SIGNED ) AS col2 FROM tab1
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL ( + tab1.col2 ) + + CAST ( col2 * col1 AS INTEGER ) AS col2 FROM tab1
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-2582
SELECT DISTINCT col0 DIV 57 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT col0 / 57 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT ALL + cor0.col0 * - ( + ( + col0 ) ) FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-2584
SELECT + col0 DIV - col2 + col2 + col2 AS col1 FROM tab0 AS cor0
----
-33
163
66

skipif mysql # not compatible
query I rowsort label-2584
SELECT + col0 / - col2 + col2 + col2 AS col1 FROM tab0 AS cor0
----
-33
163
66

query I rowsort
SELECT ALL + col1 * - ( - col0 ) + + col1 * col1 AS col2 FROM tab0 cor0
----
12804
16380
9460

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2588
SELECT - col0 DIV - col1 - col2 FROM tab1
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-2588
SELECT - col0 / - col1 - col2 FROM tab1
----
-51
-54
-90

query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
24
35
89

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

query I rowsort
SELECT 30 * col1 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
310
403
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-2592
SELECT col2 DIV col1 - col2 FROM tab1 AS cor0
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-2592
SELECT col2 / col1 - col2 FROM tab1 AS cor0
----
-52
-52
-89

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-2594
SELECT ALL + col0 DIV - col0 + col2 * col1 * - col1 AS col2 FROM tab1
----
-16225
-36505
-5701

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL + col0 / - col0 + col2 * col1 * - col1 AS col2 FROM tab1
----
-16225
-36505
-5701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 * - col0 col2 FROM tab1 AS cor0
----
168
3584
4480

query I rowsort
SELECT ALL col0 * col2 * - ( col2 ) FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT cor1.col2 - cor1.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d091f4383dddbc092261e593dd3c3dac

onlyif mysql # use DIV operator for integer division
query I rowsort label-2598
SELECT DISTINCT - col2 * col1 + + 23 DIV + col1 FROM tab2 AS cor0
----
-1534
-645
-837

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT - col2 * col1 + + 23 / + col1 FROM tab2 AS cor0
----
-1534
-645
-837

query I rowsort
SELECT col2 - + cor0.col2 * 3 AS col1 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL - ( 81 ) FROM tab0 cor0
----
-81
-81
-81

query I rowsort
SELECT + ( col1 ) + - col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - 48 AS col1 FROM tab0 AS cor0
----
-48

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2604
SELECT DISTINCT + col0 DIV - 96 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT + col0 / - 96 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 69 * - col0 AS col1 FROM tab1 AS cor0
----
-207
-4416
-5520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2606
SELECT + CAST( + col1 AS SIGNED ) + - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-2606
SELECT + CAST ( + col1 AS INTEGER ) + - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + + 72 + cor0.col2 * cor0.col2 FROM tab0 AS cor0
----
1161
6796
73

query I rowsort
SELECT ALL - ( + 94 ) + col1 * ( - col1 ) AS col1 FROM tab2 AS cor0
----
-1055
-3575
-383

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 53 + col1 col1 FROM tab0 AS cor0
----
-4472
-4732
-5044

query I rowsort
SELECT - col2 * 67 - col2 * + col0 AS col0 FROM tab2 cor0
----
-1998
-3770
-5548

query I rowsort
SELECT + 46 * col0 FROM tab1 cor0
----
138
2944
3680

query I rowsort
SELECT + col0 + + 64 + col2 FROM tab0
----
100
121
235

query I rowsort
SELECT - - col0 * 71 FROM tab0 AS cor0
----
1704
2485
6319

query I rowsort
SELECT ALL + + col1 - + col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - 75 + + 34 AS col0 FROM tab2 AS cor0
----
-41
-41
-41

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

query I rowsort
SELECT + 50 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT ALL col0 + col0 + col0 * - 20 * col0 AS col0 FROM tab0
----
-11472
-158242
-24430

onlyif mysql # use DIV operator for integer division
query I rowsort label-2619
SELECT ALL + + cor0.col2 * CAST( 61 AS SIGNED ) DIV - col1 + col2 + + col2 * + col0 FROM tab2 AS cor0
----
163
2028
2904

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL + + cor0.col2 * CAST ( 61 AS INTEGER ) / - col1 + col2 + + col2 * + col0 FROM tab2 AS cor0
----
163
2028
2904

onlyif mysql # use DIV operator for integer division
query I rowsort label-2620
SELECT DISTINCT + cor0.col0 + 33 DIV + col2 FROM tab0 cor0
----
25
68
89

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT + cor0.col0 + 33 / + col2 FROM tab0 cor0
----
25
68
89

query I rowsort
SELECT + + col0 * - ( - ( - col1 ) ) FROM tab2 cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 + - col1 col2 FROM tab0
----
-31
-36
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-2623
SELECT 24 * + col0 * + col2 - col1 DIV col1 AS col1 FROM tab0
----
175151
19007
839

skipif mysql # not compatible
query I rowsort label-2623
SELECT 24 * + col0 * + col2 - col1 / col1 AS col1 FROM tab0
----
175151
19007
839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 0 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + ( col1 ) + + col2 FROM tab1
----
157
265
730

query I rowsort
SELECT - col1 * + 77 + 71 * - col1 + ( 59 ) * tab2.col2 AS col0 FROM tab2
----
-274
-2995
-7198

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2627
SELECT - CAST( NULL AS DECIMAL ) / tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2627
SELECT - CAST ( NULL AS REAL ) / tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

query I rowsort
SELECT col1 * + col0 + col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT col1 + - ( + col2 ) * col0 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2631
SELECT - col0 * CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 38 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 76 col2 FROM tab1 AS cor0
----
-12
-73
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2634
SELECT cor0.col0 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2634
SELECT cor0.col0 / - col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - col1 * - 18 FROM tab2 cor0
----
1062
306
558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab1, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2638
SELECT DISTINCT - CAST( - cor0.col2 AS SIGNED ) FROM tab0, tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT - CAST ( - cor0.col2 AS INTEGER ) FROM tab0, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT 90 * + 81 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 0dabf5c00a4c7a5c5028a4a74481770c

query I rowsort
SELECT + col0 + - col0 * col0 FROM tab2 cor0
----
-42
-6006
-6162

query I rowsort
SELECT + + col0 * + col2 + cor0.col0 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT - col2 * col0 * + col2 FROM tab1
----
-207936
-737280
-8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col1 + tab0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
9 values hashing to 12eafa9909a61843413a99f4bf9409d3

query I rowsort
SELECT ALL - - col2 * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + col0 + + 60 + col2 * col2 AS col0 FROM tab0 cor0
----
1173
6873
96

query I rowsort
SELECT + col2 + - ( 50 ) FROM tab2 AS cor0
----
-12
-23
-24

query I rowsort
SELECT DISTINCT + - col1 + - col1 FROM tab1 cor0
----
-20
-26
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 57 col0 FROM tab1 AS cor0
----
171
3648
4560

query I rowsort
SELECT + col2 + - ( col1 ) * + col1 AS col0 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT 86 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

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

skipif mysql # not compatible
query I rowsort label-2652
SELECT - CAST ( NULL AS INTEGER ) * tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + 23 * col2 AS col0 FROM tab0 AS cor0
----
-74
1795
673

query I rowsort
SELECT - - col1 + - 49 * + col0 FROM tab0 AS cor0
----
-1090
-1618
-4270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + tab0.col1 col1 FROM tab0
----
53
9
96

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

query I rowsort
SELECT DISTINCT ( 88 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
88

query I rowsort
SELECT DISTINCT + - col1 + + col1 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - 51 * col2 FROM tab0 AS cor0
----
-1683
-4182
-51

query I rowsort
SELECT ALL - + col1 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2663
SELECT - + col2 + - col0 DIV - col1 - + col1 FROM tab0 AS cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-2663
SELECT - + col2 + - col0 / - col1 - + col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT col0 * col2 * + col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT col2 + - 73 - + col1 FROM tab2 AS cor0
----
-106
-52
-77

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

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

query I rowsort
SELECT DISTINCT col2 * + 33 AS col0 FROM tab1 AS cor0
----
1782
1881
3168

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

query I rowsort
SELECT + 70 * 6 FROM tab2 AS cor0
----
420
420
420

onlyif mysql # use DIV operator for integer division
query I rowsort label-2670
SELECT DISTINCT ( col0 ) DIV col1 col0 FROM tab1 AS cor0
----
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT ( col0 ) / col1 col0 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT + col2 * + 55 AS col2 FROM tab2
----
1430
1485
2090

query I rowsort
SELECT - col2 - col0 * col0 FROM tab2 AS cor0
----
-6110
-6279
-76

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

query I rowsort
SELECT + 38 FROM tab0, tab1 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT + 1 * - col2 + col1 * + 44 * 28 FROM tab2 AS cor0
----
20906
38165
72662

query I rowsort
SELECT DISTINCT + + col0 + 48 FROM tab2 AS cor0
----
126
127
55

query I rowsort
SELECT ALL - - 45 * - 46 + col2 AS col1 FROM tab2 AS cor0
----
-2032
-2043
-2044

query I rowsort
SELECT + cor0.col1 + - cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + 37 + cor0.col0 FROM tab2 cor0
----
115
116
44

query I rowsort
SELECT + 56 - + ( col1 ) AS col0 FROM tab1 AS cor0
----
30
43
46

query I rowsort
SELECT + - 66 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-144
-145
-73

query I rowsort
SELECT ( cor0.col1 ) + - col0 * 88 AS col0 FROM tab2 AS cor0
----
-585
-6805
-6935

query I rowsort
SELECT ALL - + col1 * 83 FROM tab2 AS cor0
----
-1411
-2573
-4897

query I rowsort
SELECT + cor0.col1 - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - 70 + col1 FROM tab1 AS cor0
----
-44
-57
-60

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

query I rowsort
SELECT ALL 17 * + col0 FROM tab1 AS cor0
----
1088
1360
51

query I rowsort
SELECT - 82 - 39 FROM tab2 AS cor0
----
-121
-121
-121

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

query I rowsort
SELECT DISTINCT - ( 13 ) + col1 AS col0 FROM tab2 AS cor0
----
18
4
46

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

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

skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL CAST ( NULL AS INTEGER ) - tab1.col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT ( + cor0.col2 ) + - cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 3b143560120db39ddcee311b43b28291

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - 36 + - col1 FROM tab2
----
-53
-67
-95

query I rowsort
SELECT + - ( + ( col1 ) ) - - col0 FROM tab2 cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2698
SELECT DISTINCT + col1 DIV CAST( - col0 AS SIGNED ) + col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
20
26
44

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT + col1 / CAST ( - col0 AS INTEGER ) + col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
20
26
44

query I rowsort
SELECT DISTINCT - col0 * + col2 + col0 * col0 AS col2 FROM tab1 AS cor0
----
-1280
-153
448

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2701
SELECT - CAST( 75 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

skipif mysql # not compatible
query I rowsort label-2701
SELECT - CAST ( 75 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT DISTINCT col1 * 10 FROM tab2
----
170
310
590

query I rowsort
SELECT ALL - + cor0.col0 * col1 * + col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2704
SELECT ALL - CAST( + cor0.col2 AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL - CAST ( + cor0.col2 AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

onlyif mysql # use DIV operator for integer division
query I rowsort label-2705
SELECT - - col2 DIV - 49 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2705
SELECT - - col2 / - 49 FROM tab1 AS cor0
----
-1
-1
-1

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

query I rowsort
SELECT - 99 * + 7 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to f66c266b418608b43deda6afc6ddce0e

query I rowsort
SELECT - cor0.col0 * 80 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 16b339a2c16d60470e7790d284db0190

query I rowsort
SELECT - + 22 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

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

query I rowsort
SELECT ALL + - cor0.col2 * - col0 + 37 * col0 AS col1 FROM tab0 AS cor0
----
10591
1330
1680

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

query I rowsort
SELECT + 67 * + col0 FROM tab0 AS cor0
----
1608
2345
5963

onlyif mysql # use DIV operator for integer division
query I rowsort label-2714
SELECT DISTINCT + - 7 + col0 + col2 DIV col1 FROM tab2 AS cor0
----
0
71
74

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT + - 7 + col0 + col2 / col1 FROM tab2 AS cor0
----
0
71
74

query I rowsort
SELECT DISTINCT cor0.col2 + col2 + + col0 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT DISTINCT - col0 * + cor0.col0 - + col1 AS col1 FROM tab0 cor0
----
-1322
-662
-8012

query I rowsort
SELECT ALL - - cor0.col1 * - col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + - col0 + - col0 * + 49 + - 18 AS col0 FROM tab0 AS cor0
----
-1218
-1768
-4468

query I rowsort
SELECT DISTINCT - 84 AS col2 FROM tab0 AS cor0
----
-84

query I rowsort
SELECT DISTINCT - col0 * col1 + + 78 AS col0 FROM tab2 AS cor0
----
-1265
-139
-4524

query I rowsort
SELECT DISTINCT - 87 AS col1 FROM tab1 cor0
----
-87

query I rowsort
SELECT ALL - + col2 + cor0.col2 - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - col0 - - 78 * col2 AS col2 FROM tab0 AS cor0
----
2550
43
6307

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2726
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT ALL 33 * 48 FROM tab0 AS cor0
----
1584
1584
1584

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 87 col1 FROM tab1
----
-1131
-2262
-870

query I rowsort
SELECT DISTINCT - col1 + - cor0.col0 * col1 AS col2 FROM tab0 cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL + 18 FROM tab1, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT - - ( 67 ) + + col1 * col1 FROM tab2 AS cor0
----
1028
3548
356

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2734
SELECT cor1.col1 + - CAST( NULL AS DECIMAL ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2734
SELECT cor1.col1 + - CAST ( NULL AS REAL ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + 57 * cor0.col0 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
2766
346762
355699

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab1 AS cor0, tab1 cor1
----
972 values hashing to cee640567b2a4ba7d97109d5025bf4d9

query I rowsort
SELECT ALL + tab2.col0 * - 38 AS col0 FROM tab2
----
-266
-2964
-3002

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

query I rowsort
SELECT col0 + col2 * - 48 AS col0 FROM tab0 AS cor0
----
-13
-1560
-3847

query I rowsort
SELECT + cor0.col1 + + tab2.col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 4156fc5105e6abb5fe33cb914cb553df

query I rowsort
SELECT 53 + col0 FROM tab2
----
131
132
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-2742
SELECT + 41 + + col1 DIV + 47 AS col1 FROM tab1 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-2742
SELECT + 41 + + col1 / + 47 AS col1 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT ALL + 1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT - 77 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6

query I rowsort
SELECT DISTINCT 58 * col2 * 91 AS col0 FROM tab1
----
285012
300846
506688

query I rowsort
SELECT ALL 31 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT - cor0.col0 * 36 AS col0 FROM tab0 AS cor0
----
-1260
-3204
-864

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2749
SELECT ALL - tab0.col1 * CAST( - 74 AS SIGNED ) FROM tab0, tab1, tab1 cor0
----
27 values hashing to c5f6d2e19225451512315f01df4efd9a

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL - tab0.col1 * CAST ( - 74 AS INTEGER ) FROM tab0, tab1, tab1 cor0
----
27 values hashing to c5f6d2e19225451512315f01df4efd9a

query I rowsort
SELECT 28 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 423726553d33e100432ebde49ddd31b5

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

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

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

query I rowsort
SELECT - col1 * 35 + - col0 * col1 AS col0 FROM tab0 AS cor0
----
-11284
-5074
-6790

query I rowsort
SELECT DISTINCT - col0 * col0 + ( col1 ) AS col2 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT ALL 61 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

onlyif mysql # use DIV operator for integer division
query I rowsort label-2756
SELECT + col2 DIV 97 + - col0 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2756
SELECT + col2 / 97 + - col0 / col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL - 72 * - col2 + col1 AS col0 FROM tab1 AS cor0
----
3914
4114
6925

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

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

query I rowsort
SELECT DISTINCT 10 * col0 FROM tab0 cor0
----
240
350
890

query I rowsort
SELECT + col1 * + ( + col1 * 81 ) AS col1 FROM tab1
----
13689
54756
8100

query I rowsort
SELECT + col2 + ( col0 ) * col2 * - 70 FROM tab1 AS cor0
----
-11286
-255303
-537504

query I rowsort
SELECT + col0 + - 60 FROM tab0 AS cor0
----
-25
-36
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2763
SELECT ALL + + CAST( 9 AS SIGNED ) FROM tab2 cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL + + CAST ( 9 AS INTEGER ) FROM tab2 cor0
----
9
9
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2764
SELECT CAST( + col0 AS SIGNED ) * col2 + 91 FROM tab1 AS cor0
----
253
3739
7771

skipif mysql # not compatible
query I rowsort label-2764
SELECT CAST ( + col0 AS INTEGER ) * col2 + 91 FROM tab1 AS cor0
----
253
3739
7771

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 89 ) * col0 col0 FROM tab1 AS cor0
----
-267
-5696
-7120

query I rowsort
SELECT 92 + col1 AS col2 FROM tab0 cor0
----
178
183
189

onlyif mysql # use DIV operator for integer division
query I rowsort label-2768
SELECT - + ( - 82 ) DIV col0 FROM tab2 AS cor0
----
1
1
11

skipif mysql # not compatible
query I rowsort label-2768
SELECT - + ( - 82 ) / col0 FROM tab2 AS cor0
----
1
1
11

query I rowsort
SELECT ALL col0 * 98 FROM tab2 AS cor0
----
686
7644
7742

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2771
SELECT ALL 14 * col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
12
19

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL 14 * col2 / + col0 AS col0 FROM tab0 AS cor0
----
0
12
19

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

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

skipif mysql # not compatible
query I rowsort label-2773
SELECT + 7 / 47 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2774
SELECT ALL + + cor0.col2 DIV col0 + col0 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL + + cor0.col2 / col0 + col0 FROM tab2 AS cor0
----
10
78
79

query I rowsort
SELECT + 7 * - col0 - + cor0.col0 AS col1 FROM tab0 AS cor0
----
-192
-280
-712

query I rowsort
SELECT DISTINCT - 74 * - 52 AS col0 FROM tab1 AS cor0
----
3848

query I rowsort
SELECT + 16 * 26 AS col2 FROM tab0 AS cor0
----
416
416
416

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

query I rowsort
SELECT - 73 * col1 - col2 FROM tab2 AS cor0
----
-1279
-2290
-4333

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

query I rowsort
SELECT + col0 + - col0 * col1 - 66 AS col1 FROM tab0
----
-2106
-3426
-8076

query I rowsort
SELECT ALL 23 + - col2 * col0 FROM tab0
----
-12
-7275
-769

onlyif mysql # use DIV operator for integer division
query I rowsort label-2783
SELECT DISTINCT col2 DIV col0 + col2 FROM tab1
----
57
72
97

skipif mysql # not compatible
query I rowsort label-2783
SELECT DISTINCT col2 / col0 + col2 FROM tab1
----
57
72
97

query I rowsort
SELECT ALL col1 * ( + col2 ) AS col0 FROM tab0
----
2838
7462
97

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

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

query I rowsort
SELECT ALL 58 FROM tab0 cor0
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 + - col0 + col0 * ( 11 ) col0 FROM tab2
----
101
807
839

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

skipif mysql # not compatible
query I rowsort label-2789
SELECT - CAST ( col2 AS INTEGER ) / - col2 AS col0 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 + col0 col0 FROM tab1
----
117
133
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 43 ) * - col1 + + 94 col1 FROM tab1
----
1212
524
653

query I rowsort
SELECT + 96 AS col0 FROM tab2
----
96
96
96

query I rowsort
SELECT ALL - tab1.col1 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - - col0 * + 16 FROM tab1 AS cor0
----
1024
1280
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) col2 FROM tab2
----
7
78
79

query I rowsort
SELECT + 31 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT ALL - col2 * + tab1.col1 * tab1.col0 + col2 * col2 - + 29 AS col0 FROM tab1
----
-1325
-33260
-90653

query I rowsort
SELECT ALL + tab1.col0 * 18 AS col1 FROM tab1
----
1152
1440
54

query I rowsort
SELECT ALL col0 + cor0.col0 * cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
350
474630
493118

query I rowsort
SELECT DISTINCT + + col2 * - 0 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2801
SELECT DISTINCT col0 DIV col1 + - col2 + col0 * 84 AS col1 FROM tab1 AS cor0
----
198
5325
6630

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT col0 / col1 + - col2 + col0 * 84 AS col1 FROM tab1 AS cor0
----
198
5325
6630

query I rowsort
SELECT ALL - col2 * + 4 AS col1 FROM tab0 AS cor0
----
-132
-328
-4

query I rowsort
SELECT + col0 + + 64 FROM tab2 cor0
----
142
143
71

query I rowsort
SELECT ALL ( - 92 ) * col2 AS col1 FROM tab1 AS cor0
----
-4968
-5244
-8832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 + col0 col1 FROM tab2 AS cor0
----
116
117
45

query I rowsort
SELECT + - ( 50 ) AS col1 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT - + col1 * cor0.col1 + + cor0.col0 AS col1 FROM tab0 cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 * - col0 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT + ( col0 ) * col2 + 83 FROM tab0 AS cor0
----
118
7381
875

query I rowsort
SELECT ALL + 61 - - 57 FROM tab1 AS cor0
----
118
118
118

query I rowsort
SELECT DISTINCT 7 + + col1 * col1 FROM tab2 AS cor0
----
296
3488
968

query I rowsort
SELECT DISTINCT col0 + ( col1 ) * 82 FROM tab1 AS cor0
----
1146
2135
884

query I rowsort
SELECT DISTINCT - + ( - col0 ) + - col0 * - col2 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT col2 * + 8 + col2 AS col0 FROM tab0 AS cor0
----
297
738
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2815
SELECT - col1 * col1 DIV col1 - 36 DIV 2 col2 FROM tab1 AS cor0
----
-28
-31
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2815
SELECT - col1 * col1 / col1 - 36 / 2 col2 FROM tab1 AS cor0
----
-28
-31
-44

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

query I rowsort
SELECT 72 + - col1 AS col1 FROM tab1 AS cor0
----
46
59
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 * + cor0.col0 + - col1 col1 FROM tab2 AS cor0
----
375
4465
4565

query I rowsort
SELECT ALL + + col2 - - col2 AS col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT - ( - col1 ) * - col2 * - col1 AS col0 FROM tab1 AS cor0
----
16224
36504
5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2821
SELECT CAST( cor0.col1 AS SIGNED ) * + col1 FROM tab2 cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-2821
SELECT CAST ( cor0.col1 AS INTEGER ) * + col1 FROM tab2 cor0
----
289
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2822
SELECT ALL - ( - col1 ) * CAST( 91 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1183
2366
910

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL - ( - col1 ) * CAST ( 91 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1183
2366
910

query I rowsort
SELECT col0 * col1 + - 8 + - cor0.col1 FROM tab0 AS cor0
----
1970
3290
8000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2824
SELECT DISTINCT - col2 * + col1 * + CAST( - col1 * - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-186694
-5339854
-804357

skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT - col2 * + col1 * + CAST ( - col1 * - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-186694
-5339854
-804357

onlyif mysql # use DIV operator for integer division
query I rowsort label-2825
SELECT DISTINCT + 51 + + col1 * ( cor0.col1 + + col0 ) DIV + col2 col1 FROM tab0 AS cor0
----
12855
250
337

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT + 51 + + col1 * ( cor0.col1 + + col0 ) / + col2 col1 FROM tab0 AS cor0
----
12855
250
337

query I rowsort
SELECT + + cor0.col1 + - col1 + - 41 FROM tab1 cor0
----
-41
-41
-41

query I rowsort
SELECT - 50 * - col2 AS col2 FROM tab0 AS cor0
----
1650
4100
50

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

query I rowsort
SELECT DISTINCT - + col2 + - col0 + ( - 18 * col2 ) AS col2 FROM tab1 AS cor0
----
-1029
-1147
-1904

query I rowsort
SELECT col1 + col1 * ( - col2 ) FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + 70 * col0 + + col2 * col2 + col0 * col2 FROM tab0 AS cor0
----
20252
2486
3561

query I rowsort
SELECT DISTINCT 91 * + col1 AS col1 FROM tab1 AS cor0
----
1183
2366
910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2833
SELECT - CAST( - col1 AS SIGNED ) * + tab0.col0 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-2833
SELECT - CAST ( - col1 AS INTEGER ) * + tab0.col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL ( - cor0.col0 ) * + 24 FROM tab2, tab0 cor0
----
9 values hashing to 79103b6c15d006b05d2b0e5bb4dda716

query I rowsort
SELECT DISTINCT - + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + 23 * + col1 AS col2 FROM tab0 AS cor0
----
1978
2093
2231

onlyif mysql # use DIV operator for integer division
query I rowsort label-2837
SELECT ALL - col0 - - col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - col0 - - col1 / col2 AS col1 FROM tab0 AS cor0
----
-22
-88
62

query I rowsort
SELECT + 5 * col1 * col0 + cor0.col1 FROM tab2 AS cor0
----
1116
23069
6732

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - 31 * col0 col2 FROM tab0 AS cor0
----
-1084
-2677
-711

query I rowsort
SELECT DISTINCT - 94 + - col2 FROM tab1
----
-148
-151
-190

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

skipif mysql # not compatible
query I rowsort label-2843
SELECT + 65 / col1 AS col0 FROM tab2 cor0
----
1
2
3

query I rowsort
SELECT ALL 47 * + col0 FROM tab1
----
141
3008
3760

query I rowsort
SELECT - 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT col2 * + col1 * - col2 + + tab0.col2 * - 31 + - 46 FROM tab0
----
-174
-614472
-94723

query I rowsort
SELECT DISTINCT tab0.col2 + - ( tab0.col1 ) * col1 FROM tab0
----
-7363
-8199
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-2849
SELECT cor0.col2 DIV - 46 FROM tab0, tab1 AS cor0
----
9 values hashing to a09c4c369fd6ef06f439ccfa3d3e0b51

skipif mysql # not compatible
query I rowsort label-2849
SELECT cor0.col2 / - 46 FROM tab0, tab1 AS cor0
----
9 values hashing to a09c4c369fd6ef06f439ccfa3d3e0b51

query I rowsort
SELECT DISTINCT - - col0 + + ( col0 ) AS col2 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - ( + cor0.col1 + + col0 ) * col2 col0 FROM tab2 AS cor0
----
-1057
-3621
-3665

query I rowsort
SELECT DISTINCT - col1 * + col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + tab2.col1 * 84 FROM tab2
----
1428
2604
4956

query I rowsort
SELECT + - 45 AS col2 FROM tab2 AS cor0
----
-45
-45
-45

query I rowsort
SELECT DISTINCT col2 * ( col2 ) AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL ( tab1.col0 ) AS col2 FROM tab1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2857
SELECT + cor1.col1 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2857
SELECT + cor1.col1 * - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - + ( col1 ) * - col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + ( - ( col2 ) ) * 15 + cor0.col0 FROM tab0 AS cor0
----
-1141
-471
20

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

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

query I rowsort
SELECT + 43 AS col0 FROM tab1 cor0
----
43
43
43

query I rowsort
SELECT ALL - + 65 - + col0 AS col1 FROM tab2 AS cor0
----
-143
-144
-72

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

query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort
SELECT + + col1 / CAST ( + col1 AS REAL ) FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - col2 * - col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

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

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

skipif mysql # not compatible
query I rowsort label-2868
SELECT + + col2 / 66 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - - 56 + + col2 AS col2 FROM tab1 AS cor0
----
110
113
152

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2871
SELECT + col1 DIV 88 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2871
SELECT + col1 / 88 FROM tab0
----
0
1
1

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

query I rowsort
SELECT DISTINCT + - cor0.col2 * col1 + - ( 73 ) FROM tab0 AS cor0
----
-170
-2911
-7535

query I rowsort
SELECT + cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL + col0 - + col1 * + col1 * 69 AS col1 FROM tab0 AS cor0
----
-510300
-571300
-649186

query I rowsort
SELECT ALL + 59 * col1 + - col0 FROM tab1 cor0
----
1531
526
687

query I rowsort
SELECT + + col0 + - ( 71 ) * col1 AS col0 FROM tab0 AS cor0
----
-6082
-6372
-6852

query I rowsort
SELECT DISTINCT + - col2 + col1 + col1 AS col1 FROM tab1 AS cor0
----
-2
-37
-70

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

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

query I rowsort
SELECT - col1 * 29 + cor0.col2 * - col2 AS col0 FROM tab2 cor0
----
-1628
-1937
-2387

query I rowsort
SELECT col2 * + 62 AS col0 FROM tab0 AS cor0
----
2046
5084
62

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2884
SELECT DISTINCT - CAST( 62 AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
-1054
-1922
-3658

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT - CAST ( 62 AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
-1054
-1922
-3658

onlyif mysql # use DIV operator for integer division
query I rowsort label-2885
SELECT + 15 DIV ( col1 + 68 ) 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-2885
SELECT + 15 / ( col1 + 68 ) col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2886
SELECT DISTINCT col1 DIV - col2 col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT col1 / - col2 col2 FROM tab1
----
0

query I rowsort
SELECT + 89 * ( - cor1.col0 ) AS col1 FROM tab0, tab1 cor0 CROSS JOIN tab2, tab2 AS cor1
----
81 values hashing to 2a850a986a4aceaeaa0599ad31caab05

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

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

query I rowsort
SELECT tab1.col2 * + col1 - col0 FROM tab1
----
1168
1401
506

query I rowsort
SELECT + 85 + tab2.col0 AS col2 FROM tab2
----
163
164
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-2891
SELECT col1 - col1 DIV col1 AS col2 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-2891
SELECT col1 - col1 / col1 AS col2 FROM tab1
----
12
25
9

query I rowsort
SELECT - + 9 + cor0.col1 * + col2 FROM tab1 AS cor0
----
1239
1395
561

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

skipif mysql # not compatible
query I rowsort label-2893
SELECT - CAST ( + col1 * - col2 AS INTEGER ) + - col0 AS col0 FROM tab0
----
2814
62
7373

query I rowsort
SELECT DISTINCT + 60 + + cor0.col2 * + ( - col0 ) FROM tab0 AS cor0
----
-7238
-732
25

query I rowsort
SELECT DISTINCT + col0 + col2 * col0 AS col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL 77 * - col0 AS col2 FROM tab0
----
-1848
-2695
-6853

query I rowsort
SELECT ALL - 2 AS col0 FROM tab1
----
-2
-2
-2

query I rowsort
SELECT cor0.col1 * col2 + cor0.col2 FROM tab2 AS cor0
----
1560
684
864

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

query I rowsort
SELECT ALL ( - col2 ) * + 38 + - 83 FROM tab2 AS cor0
----
-1071
-1109
-1527

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 97 * + cor0.col2 + + ( - col0 ) + + col2 col0 FROM tab2 AS cor0
----
-2574
-2599
-3727

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col2 * 56 col0 FROM tab1 AS cor0
----
2998
3182
5363

query I rowsort
SELECT ALL + 53 * + col0 AS col0 FROM tab2 AS cor0
----
371
4134
4187

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

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL - col0 * col2 / - col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + col0 * - col0 * col1 + + col1 FROM tab1 AS cor0
----
-208
-40950
-83187

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

query I rowsort
SELECT DISTINCT + + 3 - - col0 FROM tab1 AS cor0
----
6
67
83

query I rowsort
SELECT + - 45 * cor0.col2 * 7 FROM tab1 AS cor0
----
-17010
-17955
-30240

query I rowsort
SELECT ALL - + 65 + - col2 AS col2 FROM tab2 AS cor0
----
-103
-91
-92

query I rowsort
SELECT - col0 + + col1 * cor0.col1 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT ALL + col2 + - col1 * col1 FROM tab0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL + tab2.col1 + + ( col2 ) AS col0 FROM tab2
----
55
58
85

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2917
SELECT DISTINCT - - col1 DIV col1 + - 7 * - col1 FROM tab1 AS cor0
----
183
71
92

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT - - col1 / col1 + - 7 * - col1 FROM tab1 AS cor0
----
183
71
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-2918
SELECT + col0 * col2 - - col1 DIV col1 FROM tab1 AS cor0
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-2918
SELECT + col0 * col2 - - col1 / col1 FROM tab1 AS cor0
----
163
3649
7681

query I rowsort
SELECT ALL + + cor0.col0 + + 95 FROM tab0 AS cor0
----
119
130
184

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

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

skipif mysql # not compatible
query I rowsort
SELECT - col1 + - CAST ( + col2 + - col2 AS REAL ) FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2922
SELECT DISTINCT + col0 * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT + col0 * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
189
2028
3002

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

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL + col0 + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + col0 + + col2 + col2 AS col2 FROM tab0 AS cor0
----
253
37
90

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + col1 col1 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-2927
SELECT ALL cor0.col2 + 49 * col1 DIV - 7 AS col0 FROM tab1 AS cor0
----
-128
-13
5

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL cor0.col2 + 49 * col1 / - 7 AS col0 FROM tab1 AS cor0
----
-128
-13
5

query I rowsort
SELECT + 53 * 2 FROM tab0 AS cor0
----
106
106
106

query I rowsort
SELECT ALL + 63 * - col1 FROM tab0 cor0
----
-5418
-5733
-6111

onlyif mysql # use DIV operator for integer division
query I rowsort label-2930
SELECT - col2 DIV col1 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-164
-3653
-7687

skipif mysql # not compatible
query I rowsort label-2930
SELECT - col2 / col1 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-164
-3653
-7687

onlyif mysql # use DIV operator for integer division
query I rowsort label-2931
SELECT + - cor0.col2 DIV - ( 7 ) AS col2 FROM tab2 cor0
----
3
3
5

skipif mysql # not compatible
query I rowsort label-2931
SELECT + - cor0.col2 / - ( 7 ) AS col2 FROM tab2 cor0
----
3
3
5

query I rowsort
SELECT - col2 + + 63 + + 62 FROM tab0 AS cor0
----
124
43
92

query I rowsort
SELECT - + col2 * - col0 * ( cor0.col0 ) FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT - cor0.col0 * + 20 AS col0 FROM tab2 AS cor0
----
-140
-1560
-1580

query I rowsort
SELECT ALL + - col2 * - col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - tab2.col0 + - col2 * 2 FROM tab2
----
-130
-155
-61

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

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

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

query IIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0, tab0 cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f

query I rowsort
SELECT ALL + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

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

query I rowsort
SELECT ( 42 ) * - col0 + ( + tab0.col0 ) * tab0.col2 AS col0 FROM tab0
----
-1435
-216
3560

query I rowsort
SELECT + col2 - col1 * col2 * + col2 AS col1 FROM tab1 cor0
----
-119712
-32433
-75762

query I rowsort
SELECT - tab2.col2 + col1 + col1 * ( - 84 ) AS col0 FROM tab2
----
-1449
-2600
-4923

query I rowsort
SELECT ALL + col2 + - 24 + col0 AS col1 FROM tab2
----
10
80
93

query I rowsort
SELECT ALL - tab2.col0 + + 53 AS col1 FROM tab2
----
-25
-26
46

query I rowsort
SELECT + ( - col0 ) * 96 * col1 AS col2 FROM tab1
----
-61440
-7488
-99840

query I rowsort
SELECT DISTINCT + 89 + col1 FROM tab2 cor0
----
106
120
148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 37 col1 FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT + - col0 + cor0.col0 * + 84 AS col1 FROM tab2 AS cor0
----
581
6474
6557

query I rowsort
SELECT ALL - + col1 * + col0 + - 67 FROM tab2 AS cor0
----
-1410
-284
-4669

query I rowsort
SELECT - 83 * col1 + 72 FROM tab1 AS cor0
----
-1007
-2086
-758

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

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

query I rowsort
SELECT 51 + col1 AS col2 FROM tab2 AS cor0
----
110
68
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2956
SELECT DISTINCT 86 DIV - col2 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT 86 / - col2 AS col0 FROM tab1
----
-1
0

query I rowsort
SELECT - col1 + - 26 AS col0 FROM tab2 cor0
----
-43
-57
-85

query I rowsort
SELECT - - col0 * col0 + col1 AS col0 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2959
SELECT DISTINCT + col0 + 88 DIV tab0.col2 col2 FROM tab0
----
123
26
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT + col0 + 88 / tab0.col2 col2 FROM tab0
----
123
26
90

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2961
SELECT col0 * + col1 DIV col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-2961
SELECT col0 * + col1 / col1 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2962
SELECT ALL + 29 DIV + 90 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL + 29 / + 90 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT + ( - 22 ) AS col1 FROM tab0, tab1 cor0, tab0 AS cor1, tab2 AS cor2
----
-22

query I rowsort
SELECT + 75 * col2 - 92 AS col0 FROM tab1 cor0
----
3958
4183
7108

query I rowsort
SELECT + col1 - - cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT + ( col2 ) + + 87 FROM tab2 AS cor0
----
113
114
125

query I rowsort
SELECT + + cor0.col0 + cor0.col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT 36 + - col1 * col1 FROM tab2 AS cor0
----
-253
-3445
-925

query I rowsort
SELECT 65 * col1 + tab1.col0 FROM tab1
----
1693
714
925

query I rowsort
SELECT + cor0.col2 * - 4 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to c864f47dd8255ef9bdbdadc91b9ff8c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 + tab1.col0 ) * col1 col1 FROM tab1
----
-1326
-208
70

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2974
SELECT + tab0.col0 DIV + 85 FROM tab0, tab2 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-2974
SELECT + tab0.col0 / + 85 FROM tab0, tab2 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT 84 + - 6 FROM tab2, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT col0 + - 86 FROM tab1
----
-22
-6
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2977
SELECT - cor0.col2 + CAST( 5 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-28
-77
4

skipif mysql # not compatible
query I rowsort label-2977
SELECT - cor0.col2 + CAST ( 5 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-28
-77
4

query I rowsort
SELECT col1 + + 37 AS col2 FROM tab2 AS cor0
----
54
68
96

query I rowsort
SELECT ALL + 85 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT col0 + 19 * col0 FROM tab1
----
1280
1600
60

query I rowsort
SELECT + 61 * cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
5279
5633
5918

query I rowsort
SELECT ALL ( - col2 ) + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT DISTINCT 41 * cor0.col2 + col0 * + 73 FROM tab1 AS cor0
----
2433
7009
9776

query I rowsort
SELECT ALL - cor0.col1 * cor0.col1 + - col2 * + col2 + col0 AS col1 FROM tab0 AS cor0
----
-14916
-8461
-9375

query I rowsort
SELECT ALL + col0 + + ( - col2 ) FROM tab2 cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2986
SELECT ALL + ( col0 ) + + col0 * 92 DIV col2 FROM tab0 AS cor0
----
188
3255
90

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL + ( col0 ) + + col0 * 92 / col2 FROM tab0 AS cor0
----
188
3255
90

query I rowsort
SELECT col0 * col0 - - ( + 50 ) FROM tab2 AS cor0
----
6134
6291
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2988
SELECT DISTINCT - 10 + tab1.col0 DIV - 38 AS col0 FROM tab1
----
-10
-11
-12

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT - 10 + tab1.col0 / - 38 AS col0 FROM tab1
----
-10
-11
-12

query I rowsort
SELECT - col2 + + col1 - col0 FROM tab0
----
-80
29
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - tab1.col0 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 61 * col0 + 91 FROM tab0
----
-1373
-2044
-5338

query I rowsort
SELECT DISTINCT 83 FROM tab0 cor0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + 22 * - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-1324
-412
-709

query I rowsort
SELECT col2 * + 73 AS col0 FROM tab0 AS cor0
----
2409
5986
73

query I rowsort
SELECT ALL + - col2 + 92 * - col0 AS col1 FROM tab0 AS cor0
----
-2241
-3221
-8270

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 * cor0.col0 * col0 col0 FROM tab2 cor0
----
-374
-474611
-493056

query I rowsort
SELECT - - col0 * - col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - 14 * col0 + col0 - + 99 AS col2 FROM tab0
----
-1256
-411
-554

query I rowsort
SELECT DISTINCT 6 + col1 AS col1 FROM tab0
----
103
92
97

query I rowsort
SELECT DISTINCT - 37 * col1 + + tab0.col0 FROM tab0
----
-3158
-3278
-3554

query I rowsort
SELECT ALL - cor0.col1 + - ( 89 ) FROM tab0 AS cor0
----
-175
-180
-186

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

query I rowsort
SELECT + + col0 + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL - - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + + col0 * ( - cor0.col0 ) * col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT - cor0.col2 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 2df272448a67587d4635afedff278dcc

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

query I rowsort
SELECT DISTINCT - 66 FROM tab2, tab0 cor0
----
-66

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

query I rowsort
SELECT col1 * + col1 + cor0.col0 * + col1 FROM tab2 AS cor0
----
1178
1632
8083

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 * + col0 + - col0 col0 FROM tab1
----
231
40896
83120

query I rowsort
SELECT ALL - col0 * + col2 - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3016
SELECT ALL - tab1.col1 * + CAST( - col1 AS SIGNED ) FROM tab1
----
100
169
676

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL - tab1.col1 * + CAST ( - col1 AS INTEGER ) FROM tab1
----
100
169
676

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3018
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3018
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + 18 AS col2 FROM tab0
----
18
18
18

query I rowsort
SELECT ALL col0 + col2 * col1 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-3021
SELECT - - col0 DIV - col0 - - col2 AS col2 FROM tab0 cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-3021
SELECT - - col0 / - col0 - - col2 AS col2 FROM tab0 cor0
----
0
32
81

query I rowsort
SELECT ALL + - 70 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
490
5460
5530

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

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

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

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

query I rowsort
SELECT - 84 * + col1 FROM tab0 AS cor0
----
-7224
-7644
-8148

onlyif mysql # use DIV operator for integer division
query I rowsort label-3027
SELECT DISTINCT - 42 DIV - cor0.col0 FROM tab2 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT - 42 / - cor0.col0 FROM tab2 AS cor0
----
0
6

query I rowsort
SELECT ALL + 45 + col2 FROM tab0 AS cor0
----
127
46
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 + col2 col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT + ( - col1 ) * col1 - + col0 FROM tab0 cor0
----
-7420
-8370
-9444

query I rowsort
SELECT - col1 * + col1 * col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT col2 * - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

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

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

query I rowsort
SELECT ALL + ( col0 ) + + cor0.col0 * + 24 FROM tab0 AS cor0
----
2225
600
875

query I rowsort
SELECT DISTINCT 14 * - cor0.col1 FROM tab0 AS cor0
----
-1204
-1274
-1358

query I rowsort
SELECT DISTINCT - 89 + - cor0.col0 FROM tab2 AS cor0
----
-167
-168
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3037
SELECT + col1 * col1 - 20 DIV col2 FROM tab0 AS cor0
----
7396
8281
9389

skipif mysql # not compatible
query I rowsort label-3037
SELECT + col1 * col1 - 20 / col2 FROM tab0 AS cor0
----
7396
8281
9389

query I rowsort
SELECT - col0 * + ( col0 + - col1 ) FROM tab1
----
-3456
-5360
69

query I rowsort
SELECT DISTINCT + - ( col0 ) * cor0.col0 - - col2 * - cor0.col2 FROM tab0 AS cor0
----
-1226
-14645
-1665

query I rowsort
SELECT + 73 - cor0.col1 * + col1 FROM tab2 cor0
----
-216
-3408
-888

query I rowsort
SELECT ALL ( + 25 * col0 ) FROM tab0
----
2225
600
875

query I rowsort
SELECT - - 37 - col0 AS col1 FROM tab1 AS cor0
----
-27
-43
34

query I rowsort
SELECT + + 38 * + cor0.col2 - + col2 AS col0 FROM tab0 AS cor0
----
1221
3034
37

query I rowsort
SELECT DISTINCT col2 * - col0 + col2 * 56 AS col2 FROM tab2 AS cor0
----
-572
-874
1323

query I rowsort
SELECT + ( + cor0.col2 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT - - cor0.col2 + - col0 - col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT 34 + + col2 AS col0 FROM tab1 AS cor0
----
130
88
91

query I rowsort
SELECT DISTINCT 28 AS col0 FROM tab0, tab2 AS cor0
----
28

query I rowsort
SELECT ALL - ( 26 ) AS col0 FROM tab1 AS cor0
----
-26
-26
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3050
SELECT col1 DIV col0 + + col0 AS col2 FROM tab2 cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-3050
SELECT col1 / col0 + + col0 AS col2 FROM tab2 cor0
----
11
78
79

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * + cor0.col0 + + col1 * col0 col1 FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT - col0 + - cor0.col0 * col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-22910
-271596
-6734

query I rowsort
SELECT 50 + 25 * - col2 FROM tab0
----
-2000
-775
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-3055
SELECT 45 + + cor0.col0 DIV + col1 FROM tab2 AS cor0
----
45
46
49

skipif mysql # not compatible
query I rowsort label-3055
SELECT 45 + + cor0.col0 / + col1 FROM tab2 AS cor0
----
45
46
49

query I rowsort
SELECT - ( col0 ) + 69 FROM tab1 AS cor0
----
-11
5
66

query I rowsort
SELECT - 87 * - col2 + col0 * - col2 FROM tab0 AS cor0
----
-164
2079
52

query I rowsort
SELECT DISTINCT + cor0.col1 + + ( col1 ) AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL - + col2 + ( col0 ) * col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL + col1 * 94 AS col2 FROM tab1 AS cor0
----
1222
2444
940

query I rowsort
SELECT col1 + 29 AS col0 FROM tab2 cor0
----
46
60
88

query I rowsort
SELECT DISTINCT cor0.col0 + - 32 + ( + col1 ) * col1 FROM tab2 AS cor0
----
336
3527
936

query I rowsort
SELECT ALL cor0.col1 + col2 * 9 * col2 FROM tab1 AS cor0
----
26270
29251
82957

query I rowsort
SELECT ALL + + col0 - - col2 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + + col1 * 23 * - col1 AS col0 FROM tab2 cor0
----
-22103
-6647
-80063

query I rowsort
SELECT col1 - 80 AS col1 FROM tab1 AS cor0
----
-54
-67
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 * - col2 col0 FROM tab2
----
-196
-2106
-3081

query I rowsort
SELECT + col1 + col2 * tab0.col1 AS col0 FROM tab0
----
194
2924
7553

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

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

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

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

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

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

query I rowsort
SELECT ALL + + col0 * ( - col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT - 41 * col1 FROM tab0
----
-3526
-3731
-3977

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 95 - - cor0.col1 col1 FROM tab2 AS cor0
----
-1598
-2914
-5546

query I rowsort
SELECT + col2 - ( + col1 * ( cor0.col1 ) ) AS col2 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT + 17 - col2 FROM tab2 AS cor0
----
-10
-21
-9

query I rowsort
SELECT - col2 + 57 + + col1 FROM tab1
----
-26
10
29

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

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT - cor0.col1 + col2 / col2 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT - 64 * col2 + - col2 AS col2 FROM tab0 AS cor0
----
-2145
-5330
-65

query I rowsort
SELECT ALL tab2.col0 * + 2 FROM tab2
----
14
156
158

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

skipif mysql # not compatible
query I rowsort label-3081
SELECT - tab1.col1 - CAST ( col2 + - col2 AS INTEGER ) * tab1.col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3083
SELECT DISTINCT + col2 * col0 * + col0 + col1 * col2 * col2 + + col0 DIV tab0.col2 FROM tab0
----
112662
1261407
1357

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT + col2 * col0 * + col0 + col1 * col2 * col2 + + col0 / tab0.col2 FROM tab0
----
112662
1261407
1357

query I rowsort
SELECT + col2 * col0 + + col0 + col1 FROM tab1 AS cor0
----
191
3722
7773

query I rowsort
SELECT ALL col2 + col0 + col0 FROM tab0
----
260
71
81

query I rowsort
SELECT tab1.col1 FROM tab2, tab0 cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT + col2 + - col1 * col2 * tab1.col0 AS col0 FROM tab1
----
-36423
-4158
-99744

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE + col0 + col2 NOT IN ( + col2 )
----
54
57
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL col1 * cor0.col1 FROM tab1 AS cor0 WHERE col2 + + col0 / + cor0.col2 + col1 < col0
----

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

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

query I rowsort
SELECT DISTINCT col2 * - col0 - col0 AS col2 FROM tab2
----
-196
-2106
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 - col1 col0 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL + tab2.col2 - + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 + col1 - + col0 FROM tab1
----
10
13
26

query I rowsort
SELECT + col0 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3097
SELECT ALL - col2 * col0 DIV + col0 + col1 + cor0.col2 * + col2 FROM tab2 AS cor0
----
1423
709
733

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL - col2 * col0 / + col0 + col1 + cor0.col2 * + col2 FROM tab2 AS cor0
----
1423
709
733

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + col1 col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + - col2 * col0 * - col0 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
233529
540
614496

query I rowsort
SELECT ALL tab1.col1 * tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to ae5946db6904798b8afac35f5777bb79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT + - cor0.col1 * col1 + - col1 * col2 + + col1 * - col1 FROM tab1 AS cor0
----
-1586
-2756
-770

query I rowsort
SELECT DISTINCT cor0.col2 * + col0 + + col2 FROM tab2 AS cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 + - col1 col2 FROM tab2 AS cor0
----
18
6025
6224

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

query I rowsort
SELECT ALL - cor0.col1 + - col2 * + col2 * + 59 - col2 FROM tab1 AS cor0
----
-172124
-191758
-543853

query I rowsort
SELECT - 63 * col2 FROM tab2
----
-1638
-1701
-2394

query I rowsort
SELECT + - col0 + - col2 * + cor0.col0 FROM tab1 cor0
----
-165
-3712
-7760

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3110
SELECT DISTINCT - cor0.col0 DIV col1 - - col2 AS col1 FROM tab1 AS cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-3110
SELECT DISTINCT - cor0.col0 / col1 - - col2 AS col1 FROM tab1 AS cor0
----
51
54
90

query I rowsort
SELECT - col0 + col0 - 2 * + col1 FROM tab0 AS cor0
----
-172
-182
-194

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT DISTINCT + 28 DIV - col1 col2 FROM tab1 AS cor0
----
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT + 28 / - col1 col2 FROM tab1 AS cor0
----
-1
-2

query I rowsort
SELECT - + cor0.col1 * 75 AS col1 FROM tab2 AS cor0
----
-1275
-2325
-4425

query I rowsort
SELECT cor0.col0 * - col2 - col0 * cor0.col2 FROM tab1 AS cor0
----
-15360
-324
-7296

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

query I rowsort
SELECT DISTINCT col0 * 69 * col0 + - col1 * col0 FROM tab1 AS cor0
----
281984
440560
543

query I rowsort
SELECT col1 + + col1 + 99 FROM tab1
----
119
125
151

query I rowsort
SELECT - col2 + - col0 + 43 FROM tab2
----
-61
-74
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col0 FROM tab0, tab2, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - 23 + col1 * col1 * - col0 AS col0 FROM tab1
----
-13543
-2051
-6423

query I rowsort
SELECT DISTINCT 71 + + col0 * - 42 FROM tab0
----
-1399
-3667
-937

query I rowsort
SELECT + col1 + + col0 * + col1 - + 38 AS col0 FROM tab1
----
1015
612
66

query I rowsort
SELECT - 32 * col2 - - col0 AS col2 FROM tab1
----
-1725
-1760
-2992

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

query I rowsort
SELECT ALL - col0 + + col2 * col0 AS col0 FROM tab0
----
0
7209
768

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * col0 IN ( col0 * col0 + + tab2.col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * col0 NOT IN ( + col2 )
----

query I rowsort
SELECT - col0 + col1 + tab2.col1 AS col0 FROM tab2 WHERE ( NULL ) >= - col2
----

query I rowsort
SELECT ALL col1 - + col0 * - col1 AS col2 FROM tab0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-3134
SELECT ALL + col1 DIV col2 + col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL + col1 / col2 + col2 FROM tab1
----
54
57
96

query III rowsort
SELECT * FROM tab0 WHERE col1 * col1 < NULL
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3137
SELECT ALL col0 * tab0.col0 DIV col2 + - col2 FROM tab0
----
-16
1224
14

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL col0 * tab0.col0 / col2 + - col2 FROM tab0
----
-16
1224
14

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

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT col0 NOT IN ( col2 + col0 + tab1.col1 )
----

query I rowsort
SELECT col1 + tab2.col0 + col0 AS col0 FROM tab2
----
175
215
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3141
SELECT DISTINCT + col1 DIV - tab1.col2 + col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT + col1 / - tab1.col2 + col1 FROM tab1
----
10
13
26

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - col0 * + col2
----

query I rowsort
SELECT DISTINCT col1 / + col2 + tab2.col0 FROM tab2 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - tab1.col1 IN ( col1 / col2 )
----

query I rowsort
SELECT + col2 + + tab0.col0 - - col1 FROM tab0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-3147
SELECT ALL - tab1.col2 DIV col0 + col1 DIV + col1 FROM tab1
----
-17
0
1

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL - tab1.col2 / col0 + col1 / + col1 FROM tab1
----
-17
0
1

query I rowsort
SELECT - 62 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + col0 * - col1 + CAST ( col0 AS REAL ) * - col0 col2 FROM tab1
----
-4736
-7440
-87

query I rowsort
SELECT - 64 * tab2.col1 FROM tab2
----
-1088
-1984
-3776

query I rowsort
SELECT + cor0.col0 * + col0 + - col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT ALL col1 * - col2 + - 67 FROM tab2 AS cor0
----
-1601
-713
-904

query I rowsort
SELECT DISTINCT + - col2 + - 66 AS col2 FROM tab2 AS cor0
----
-104
-92
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3154
SELECT col2 + + col2 DIV cor0.col2 + + col2 AS col1 FROM tab0 AS cor0
----
165
3
67

skipif mysql # not compatible
query I rowsort label-3154
SELECT col2 + + col2 / cor0.col2 + + col2 AS col1 FROM tab0 AS cor0
----
165
3
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col1 FROM tab2 cor0
----
26
27
38

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

query I rowsort
SELECT - col0 + + col1 + ( + col2 * cor0.col1 ) FROM tab1 cor0
----
1181
1427
516

query I rowsort
SELECT - col2 * + 66 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
-2092
-5321
31

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

query I rowsort
SELECT - - col2 * col0 + col2 * col2 * + col1 AS col0 FROM tab2 AS cor0
----
22788
27550
41912

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

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

query I rowsort
SELECT DISTINCT cor0.col0 * + ( cor0.col1 ) * + ( - col0 ) + - col2 * - col0 FROM tab2 AS cor0
----
-103095
-1330
-356928

query I rowsort
SELECT - 67 FROM tab0 cor0
----
-67
-67
-67

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3166
SELECT ALL - + 20 DIV 15 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL - + 20 / 15 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

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

query I rowsort
SELECT ALL ( ( - col2 ) ) * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + 30 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-34
-50
27

query I rowsort
SELECT + cor0.col2 * - col2 * + col1 AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT - 33 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-122
-57
-68

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3173
SELECT + col1 DIV col0 + + col2 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-3173
SELECT + col1 / col0 + + col2 FROM tab0
----
3
36
83

query I rowsort
SELECT + 40 * + col1 FROM tab0 cor0
----
3440
3640
3880

query I rowsort
SELECT - + 47 * - col2 FROM tab1 AS cor0
----
2538
2679
4512

query I rowsort
SELECT ALL + col0 + + col2 - + col1 * - col2 FROM tab0 AS cor0
----
133
2895
7633

query I rowsort
SELECT ALL 26 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # use DIV operator for integer division
query I rowsort label-3178
SELECT - col0 + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-3178
SELECT - col0 + col0 / col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT ALL col0 + + cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL + - cor0.col1 + + col2 * col2 FROM tab1 AS cor0
----
2890
3239
9203

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

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

query I rowsort
SELECT + col0 * 94 * col1 FROM tab2
----
126242
20398
432588

query I rowsort
SELECT ALL + + 36 * cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e6db7d11c94ea823449267ee4a0e54d7

query I rowsort
SELECT - col2 * col0 * - 20 AS col2 FROM tab0
----
145960
15840
700

query I rowsort
SELECT col0 * - col0 * col2 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT - ( 16 + col2 ) * + col2 FROM tab1
----
-10752
-3780
-4161

query I rowsort
SELECT DISTINCT ( col0 ) + col0 FROM tab1
----
128
160
6

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

query I rowsort
SELECT ALL - + 79 * + col2 - col0 FROM tab2 AS cor0
----
-2132
-2140
-3081

query I rowsort
SELECT ALL + col2 + - col1 AS col0 FROM tab1 cor0
----
28
47
83

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

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL CAST ( NULL AS INTEGER ) * 84 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 82 + + col1 FROM tab2 AS cor0
----
113
141
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + col1 * - col0 col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - + 32 + + col1 FROM tab1 AS cor0
----
-19
-22
-6

query I rowsort
SELECT + col0 + + ( col2 ) * - 45 FROM tab1 AS cor0
----
-2427
-2501
-4240

query I rowsort
SELECT DISTINCT + + 69 + + col1 + col0 * col1 FROM tab1 AS cor0
----
1122
173
719

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

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

query I rowsort
SELECT ALL - ( - col1 ) AS col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT 66 + - 61 * col2 FROM tab1 AS cor0
----
-3228
-3411
-5790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 * 91 - - col1 * col2 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - col2 + - col2 - col0 AS col0 FROM tab1 AS cor0
----
-111
-178
-272

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 col1 FROM tab1 cor0
----
3
64
80

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

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL - CAST ( NULL AS REAL ) + - tab1.col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + 84 * col0 FROM tab2 cor0
----
588
6552
6636

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

query I rowsort
SELECT DISTINCT tab1.col2 + + col2 * + col2 * - 86 AS col2 FROM tab1
----
-250722
-279357
-792480

query I rowsort
SELECT + 1 + + cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 436848f13fd07aa7d19559af73d30508

query I rowsort
SELECT ALL 54 AS col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

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

query I rowsort
SELECT + col0 * - 63 FROM tab0 cor0
----
-1512
-2205
-5607

query I rowsort
SELECT DISTINCT 53 FROM tab1, tab0 AS cor0
----
53

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

query I rowsort
SELECT + 91 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

skipif mysql # not compatible
query I rowsort
SELECT ALL + ( - col0 * - CAST ( - 22 AS REAL ) ) AS col2 FROM tab0
----
-1958
-528
-770

query I rowsort
SELECT DISTINCT - ( - 61 ) FROM tab1, tab2 AS cor0
----
61

query I rowsort
SELECT + col1 - ( col0 ) * + col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT ALL + col2 * ( - 25 ) FROM tab0
----
-2050
-25
-825

query I rowsort
SELECT + 57 FROM tab0, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT - col0 * + 6 FROM tab2
----
-42
-468
-474

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 * col1 col0 FROM tab1
----
-16224
-36504
-5700

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 25b043ae64f25e8f205735b09d2d3d6a

query I rowsort
SELECT - + col0 * 88 AS col0 FROM tab1 AS cor0
----
-264
-5632
-7040

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

skipif mysql # not compatible
query I rowsort label-3226
SELECT - col2 / + ( - col0 ) AS col2 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT + + col2 + - col0 * - col2 * + col0 AS col1 FROM tab1 AS cor0
----
233529
540
614496

query I rowsort
SELECT ALL + - cor0.col2 * - 54 FROM tab1 AS cor0
----
2916
3078
5184

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
10
13
26

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

query I rowsort
SELECT - cor0.col2 - 77 FROM tab0 cor0
----
-110
-159
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3232
SELECT 89 DIV 7 AS col2 FROM tab1
----
12
12
12

skipif mysql # not compatible
query I rowsort label-3232
SELECT 89 / 7 AS col2 FROM tab1
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 * - col1 col0 FROM tab1 cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL col1 * + 86 AS col0 FROM tab1
----
1118
2236
860

query I rowsort
SELECT ALL - 35 FROM tab0, tab2 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT - col1 * cor0.col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

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

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

query I rowsort
SELECT DISTINCT + col2 * col0 - - cor0.col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT 58 * col1 AS col2 FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT ALL ( - col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

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

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 ALL + col1 + col0 * 15 + + col2 FROM tab0 AS cor0
----
1508
479
623

query I rowsort
SELECT - col0 * col1 + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-3245
SELECT DISTINCT + col2 DIV + col0 FROM tab2 cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT + col2 / + col0 FROM tab2 cor0
----
0
3

query I rowsort
SELECT DISTINCT col1 * ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
100
169
676

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

skipif mysql # not compatible
query I rowsort label-3247
SELECT - + col2 / + ( cor0.col0 ) FROM tab0 cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3248
SELECT DISTINCT + col1 + ( col0 ) DIV col0 AS col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT + col1 + ( col0 ) / col0 AS col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT ALL - 82 * + tab1.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 8975d67058f123a3d7b1e6de8c03dac1

query I rowsort
SELECT ALL 20 * col1 AS col1 FROM tab2
----
1180
340
620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * + col1 + - col2 col2 FROM tab1
----
-227
-317
-496

query I rowsort
SELECT ALL + col1 * - col0 * 67 + + col2 * ( - col0 * - cor0.col0 ) FROM tab1 AS cor0
----
-4740
190592
544720

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

query I rowsort
SELECT col0 * - 51 + col1 + + col1 AS col2 FROM tab1
----
-101
-3244
-4054

query I rowsort
SELECT ALL + tab0.col0 + + 98 * col2 * col1 AS col0 FROM tab0
----
278148
731365
9541

query I rowsort
SELECT DISTINCT + col2 * - col2 + + 68 FROM tab2
----
-1376
-608
-661

query I rowsort
SELECT 59 - 35 FROM tab2, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL col2 * - 7 AS col2 FROM tab1
----
-378
-399
-672

query I rowsort
SELECT - cor0.col0 * 50 * cor0.col0 - 23 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 56303207c506b0beeef77c386639c7f6

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( cor0.col2 AS REAL ) + tab1.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to e5c49d354825934b96726d72cce5ce79

query I rowsort
SELECT 61 AS col0 FROM tab2 cor0
----
61
61
61

query I rowsort
SELECT ALL + - ( + 29 ) * - cor0.col0 AS col0 FROM tab1 AS cor0
----
1856
2320
87

query I rowsort
SELECT + col2 * col2 + - col0 AS col0 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT - - 74 + 75 * col1 AS col0 FROM tab1 AS cor0
----
1049
2024
824

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

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

query I rowsort
SELECT - col1 * - ( - tab2.col0 ) * + col2 + + 30 FROM tab2
----
-119622
-51004
-5829

onlyif mysql # use DIV operator for integer division
query I rowsort label-3267
SELECT DISTINCT + col0 DIV - 68 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3267
SELECT DISTINCT + col0 / - 68 AS col0 FROM tab1
----
-1
0

query I rowsort
SELECT 3 FROM tab0, tab0 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT - 87 * + 14 AS col0 FROM tab0 AS cor0
----
-1218
-1218
-1218

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

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

query I rowsort
SELECT DISTINCT col0 * col2 * + cor0.col0 + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1226
20097
656246

onlyif mysql # use DIV operator for integer division
query I rowsort label-3272
SELECT - - cor0.col1 DIV col0 AS col2 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3272
SELECT - - cor0.col1 / col0 AS col2 FROM tab1 AS cor0
----
0
0
8

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

query I rowsort
SELECT ALL + col0 - - col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL 99 * col0 AS col1 FROM tab1
----
297
6336
7920

query I rowsort
SELECT 50 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT 94 * col1 + col0 * col0 AS col2 FROM tab2 AS cor0
----
11630
2963
7839

query I rowsort
SELECT DISTINCT 62 + + col2 AS col1 FROM tab1 cor0
----
116
119
158

query I rowsort
SELECT DISTINCT + 45 + - cor0.col0 FROM tab1 AS cor0
----
-19
-35
42

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3281
SELECT col0 * CAST( + 92 AS SIGNED ) + - cor0.col1 AS col2 FROM tab0 cor0
----
2122
3123
8097

skipif mysql # not compatible
query I rowsort label-3281
SELECT col0 * CAST ( + 92 AS INTEGER ) + - cor0.col1 AS col2 FROM tab0 cor0
----
2122
3123
8097

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

query I rowsort
SELECT + cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to de2705ff0bb8b4f714dafb07497c6119

query I rowsort
SELECT DISTINCT - col2 * - col0 + + col1 + col2 FROM tab0 AS cor0
----
133
7471
911

query I rowsort
SELECT cor0.col2 - col0 * - col0 FROM tab0 AS cor0
----
1226
609
8003

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( - col0 AS REAL ) * + col1 FROM tab2 AS cor0
----
1343
217
4602

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

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

query I rowsort
SELECT ( + col1 * 54 ) AS col1 FROM tab0
----
4644
4914
5238

query I rowsort
SELECT DISTINCT + ( - col1 ) * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + 3 * + cor0.col0 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT ALL - 74 * col0 AS col2 FROM tab1 AS cor0
----
-222
-4736
-5920

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - 84 * + col2 * CAST ( - col0 AS INTEGER ) + col2 col2 FROM tab1 AS cor0
----
13662
306489
645216

query I rowsort
SELECT ALL - 78 + + col1 AS col1 FROM tab0 AS cor0
----
13
19
8

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

query I rowsort
SELECT DISTINCT 57 - - col1 AS col1 FROM tab2 AS cor0
----
116
74
88

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

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

query I rowsort
SELECT DISTINCT - - col2 * 9 * + 96 + col0 * - col2 AS col2 FROM tab2 AS cor0
----
20436
23139
29830

query I rowsort
SELECT ALL - col1 * 62 AS col1 FROM tab2 AS cor0
----
-1054
-1922
-3658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - 29 col1 FROM tab1 AS cor0
----
-125
-83
-86

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

skipif mysql # not compatible
query I rowsort label-3302
SELECT - - cor0.col2 * CAST ( NULL AS INTEGER ) - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * 35 + cor0.col0 FROM tab0 AS cor0
----
1179
2959
70

query I rowsort
SELECT ALL - 63 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT + - cor0.col1 - col1 AS col1 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT - - cor0.col2 + col0 * + 15 AS col0 FROM tab2 AS cor0
----
1196
1223
132

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

query I rowsort
SELECT DISTINCT - - col2 * 41 FROM tab2 AS cor0
----
1066
1107
1558

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

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

query I rowsort
SELECT ALL - col2 * + tab0.col0 * col0 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT - cor0.col0 * ( col2 ) * 27 AS col1 FROM tab1 AS cor0
----
-207360
-4374
-98496

query I rowsort
SELECT + tab1.col0 * + 45 + + col1 FROM tab1
----
161
2890
3613

query I rowsort
SELECT DISTINCT col0 * - cor0.col2 + ( col1 ) FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL + 99 * col2 + 99 AS col2 FROM tab0 AS cor0
----
198
3366
8217

query I rowsort
SELECT ALL col2 * + 88 * + col1 AS col0 FROM tab1
----
109824
123552
50160

query I rowsort
SELECT ALL 35 FROM tab2, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT - col0 + + 61 FROM tab2
----
-17
-18
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-3318
SELECT ALL + 54 + col2 * col0 + + col1 DIV 89 FROM tab1
----
216
3702
7734

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL + 54 + col2 * col0 + + col1 / 89 FROM tab1
----
216
3702
7734

query I rowsort
SELECT - tab1.col1 AS col2 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 * + col2 col0 FROM tab1
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3321
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL CAST ( NULL AS REAL ) FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3322
SELECT 4 DIV - col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3322
SELECT 4 / - col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT col1 + - 83 FROM tab1
----
-57
-70
-73

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

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

query I rowsort
SELECT - col2 * 15 FROM tab1
----
-1440
-810
-855

query I rowsort
SELECT - col1 * + 19 FROM tab0
----
-1634
-1729
-1843

query I rowsort
SELECT + col2 + 73 * 48 + col1 FROM tab0 AS cor0
----
3602
3623
3677

query I rowsort
SELECT ALL + col1 + col0 * col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT - + col2 * + col0 + 20 + col2 FROM tab2 AS cor0
----
-142
-1982
-2944

query I rowsort
SELECT DISTINCT col1 + 92 FROM tab0
----
178
183
189

query I rowsort
SELECT - col1 * 43 + col2 * col2 * col2 FROM tab2
----
15039
18350
54141

query I rowsort
SELECT ( 49 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3333
SELECT DISTINCT - col2 + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT - col2 + + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT ALL 96 - 84 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # use DIV operator for integer division
query I rowsort label-3335
SELECT 96 + col0 DIV - col1 col0 FROM tab0 cor0
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3335
SELECT 96 + col0 / - col1 col0 FROM tab0 cor0
----
96
96
96

query I rowsort
SELECT ALL ( - cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * 22 * col2 + + 16 + - col1 col0 FROM tab1 AS cor0
----
202755
64142
71484

query I rowsort
SELECT ALL + 55 AS col2 FROM tab0 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT - col0 + col0 * col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT - - 2 + col1 AS col2 FROM tab0 AS cor0
----
88
93
99

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

query I rowsort
SELECT DISTINCT ( 64 ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
1088
1984
3776

query I rowsort
SELECT - ( - col0 + - col1 ) FROM tab0
----
110
132
180

query I rowsort
SELECT + ( + col0 ) * col2 + + cor0.col0 + + col2 AS col2 FROM tab1 AS cor0
----
219
3769
7856

onlyif mysql # use DIV operator for integer division
query I rowsort label-3345
SELECT DISTINCT + 40 + + col0 + col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
128
63
74

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT + 40 + + col0 + col2 / - col2 AS col1 FROM tab0 AS cor0
----
128
63
74

query I rowsort
SELECT ALL + 44 + 57 - - col0 FROM tab1 AS cor0
----
104
165
181

query I rowsort
SELECT ALL - col2 + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL + 47 AS col1 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT + ( 55 ) * col0 * ( cor0.col1 ) + col0 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
113458
186663
445443

query I rowsort
SELECT - 73 * + col2 AS col0 FROM tab0 cor0
----
-2409
-5986
-73

query I rowsort
SELECT ALL - col0 + - col0 + 43 FROM tab1
----
-117
-85
37

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

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

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL - cor0.col0 / cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - ( + cor0.col1 ) + col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - + 55 * + 30 + cor0.col0 * - col2 FROM tab2 AS cor0
----
-1839
-3678
-4652

query I rowsort
SELECT DISTINCT - - 12 AS col0 FROM tab0 AS cor0
----
12

query I rowsort
SELECT DISTINCT col1 * + ( ( - cor0.col2 ) ) - 62 AS col2 FROM tab1 AS cor0
----
-1310
-1466
-632

onlyif mysql # use DIV operator for integer division
query I rowsort label-3358
SELECT - col1 * col2 DIV col0 + cor0.col2 DIV - 48 AS col1 FROM tab2 AS cor0
----
-119
-19
-8

skipif mysql # not compatible
query I rowsort label-3358
SELECT - col1 * col2 / col0 + cor0.col2 / - 48 AS col1 FROM tab2 AS cor0
----
-119
-19
-8

query I rowsort
SELECT - + col2 + col2 * - cor0.col2 + col0 * cor0.col1 FROM tab0 AS cor0
----
1293
3393
942

query I rowsort
SELECT DISTINCT + 96 * - 73 FROM tab0, tab2 AS cor0
----
-7008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col0 col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT 38 * - col2 AS col0 FROM tab2 AS cor0
----
-1026
-1444
-988

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

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

query I rowsort
SELECT 15 * tab2.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0ba751a28206fb67124805a6d55ed7b5

query I rowsort
SELECT + 3 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

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

skipif mysql # not compatible
query I rowsort label-3366
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3367
SELECT - col0 DIV - col0 + col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-3367
SELECT - col0 / - col0 + col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT col0 + + cor0.col0 * + col0 FROM tab0 AS cor0
----
1260
600
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-3369
SELECT - col2 + col0 DIV + col1 FROM tab1 AS cor0
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-3369
SELECT - col2 + col0 / + col1 FROM tab1 AS cor0
----
-51
-54
-90

query I rowsort
SELECT DISTINCT - 58 * + col1 + tab2.col2 * - 47 * + col2 FROM tab2
----
-35194
-36061
-68854

query I rowsort
SELECT DISTINCT - col1 + - tab2.col1 AS col2 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT + 54 + col0 AS col1 FROM tab0
----
143
78
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3373
SELECT col2 DIV col2 + - col2 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-3373
SELECT col2 / col2 + - col2 FROM tab1
----
-53
-56
-95

query I rowsort
SELECT ALL + 65 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT + col1 + - col2 * - 80 FROM tab2 AS cor0
----
2139
2191
3057

query I rowsort
SELECT DISTINCT - ( - col2 ) + col1 * col0 * col0 FROM tab2 AS cor0
----
106135
1546
358982

query I rowsort
SELECT ALL - - col2 * + col0 + cor0.col2 * 97 AS col1 FROM tab0 AS cor0
----
132
15252
3993

query I rowsort
SELECT - col0 - + col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT + + 0 * - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3380
SELECT DISTINCT - col0 - + col1 * + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-1120
-704
-81

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT - col0 - + col1 * + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-1120
-704
-81

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

query I rowsort
SELECT DISTINCT + col0 + ( + 49 ) AS col0 FROM tab2 AS cor0
----
127
128
56

query I rowsort
SELECT DISTINCT + col1 * 33 FROM tab1 AS cor0
----
330
429
858

query I rowsort
SELECT - col0 * + col2 - - 11 * - col0 FROM tab0 cor0
----
-1056
-420
-8277

query I rowsort
SELECT col1 + + ( - col0 ) * + col0 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT col1 * - 18 FROM tab2 AS cor0
----
-1062
-306
-558

onlyif mysql # use DIV operator for integer division
query I rowsort label-3387
SELECT + col0 DIV ( col2 ) - col1 FROM tab1 AS cor0
----
-13
-26
-9

skipif mysql # not compatible
query I rowsort label-3387
SELECT + col0 / ( col2 ) - col1 FROM tab1 AS cor0
----
-13
-26
-9

query I rowsort
SELECT ALL + col1 - col0 * - col2 FROM tab0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-3389
SELECT DISTINCT tab2.col2 DIV col0 - col0 AS col0 FROM tab2
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT tab2.col2 / col0 - col0 AS col0 FROM tab2
----
-4
-78
-79

query I rowsort
SELECT ALL tab0.col1 + col1 * col0 * 96 - col0 FROM tab0
----
198206
325982
777506

query I rowsort
SELECT col0 + col2 * - 47 * col1 AS col2 FROM tab1
----
-26726
-58576
-65985

query I rowsort
SELECT 53 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT - + cor0.col0 + 45 + - col0 AS col1 FROM tab0 cor0
----
-133
-25
-3

query I rowsort
SELECT + col1 * - 72 * col0 FROM tab0 AS cor0
----
-148608
-244440
-583128

query I rowsort
SELECT + col2 * ( - 18 ) * col1 AS col1 FROM tab1 AS cor0
----
-10260
-22464
-25272

query I rowsort
SELECT col1 * col2 + 94 + cor0.col0 AS col2 FROM tab1 AS cor0
----
1422
1501
728

query I rowsort
SELECT + 85 * - col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-122740
-57460
-61965

onlyif mysql # use DIV operator for integer division
query I rowsort label-3398
SELECT + - 19 + - 83 DIV - col0 FROM tab2 AS cor0
----
-18
-18
-8

skipif mysql # not compatible
query I rowsort label-3398
SELECT + - 19 + - 83 / - col0 FROM tab2 AS cor0
----
-18
-18
-8

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3400
SELECT + 65 DIV - col0 - + col2 * col0 * - col1 AS col1 FROM tab0 AS cor0
----
3394
664118
68110

skipif mysql # not compatible
query I rowsort label-3400
SELECT + 65 / - col0 - + col2 * col0 * - col1 AS col1 FROM tab0 AS cor0
----
3394
664118
68110

query I rowsort
SELECT - col0 + + tab2.col1 - + 60 FROM tab2
----
-122
-36
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3402
SELECT + 28 DIV - col1 - col2 FROM tab1 AS cor0
----
-55
-59
-98

skipif mysql # not compatible
query I rowsort label-3402
SELECT + 28 / - col1 - col2 FROM tab1 AS cor0
----
-55
-59
-98

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

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

query I rowsort
SELECT col2 + - col2 * tab2.col0 * col1 FROM tab2
----
-119626
-50996
-5832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * + col2 + col1 col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT col1 * - col1 + - cor0.col1 FROM tab1 AS cor0
----
-110
-182
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 col0 FROM tab1 AS cor0
----
162
3648
7680

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

query I rowsort
SELECT col0 * - col0 + + col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT ALL cor0.col2 * + col0 + - col2 * cor0.col1 FROM tab1 AS cor0
----
-1242
3078
6432

onlyif mysql # use DIV operator for integer division
query I rowsort label-3412
SELECT ALL col2 + col1 DIV + tab1.col1 + + col0 * col1 DIV tab1.col1 FROM tab1
----
122
177
58

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL col2 + col1 / + tab1.col1 + + col0 * col1 / tab1.col1 FROM tab1
----
122
177
58

query I rowsort
SELECT ALL - 13 * col1 AS col0 FROM tab1 AS cor0
----
-130
-169
-338

query I rowsort
SELECT - - 64 + + col1 AS col0 FROM tab0 AS cor0
----
150
155
161

query I rowsort
SELECT ALL col1 * col0 - col2 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT col1 * col2 - - col2 * cor0.col2 FROM tab1 AS cor0
----
10464
3819
4320

query I rowsort
SELECT DISTINCT 42 + col1 FROM tab1 AS cor0
----
52
55
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-3418
SELECT - col0 - cor0.col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-3418
SELECT - col0 - cor0.col1 / - col2 AS col1 FROM tab0 AS cor0
----
-22
-88
62

query I rowsort
SELECT - 47 + + col0 * - col0 FROM tab0 AS cor0
----
-1272
-623
-7968

onlyif mysql # use DIV operator for integer division
query I rowsort label-3420
SELECT + + col0 DIV col2 + - col1 AS col0 FROM tab0 AS cor0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-3420
SELECT + + col0 / col2 + - col1 AS col0 FROM tab0 AS cor0
----
-62
-86
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 * cor0.col1 + col2 + col2 col2 FROM tab0 AS cor0
----
7376
7899
8247

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

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL - + cor0.col2 / - cor0.col0 + col2 - col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - - 60 + + cor0.col2 FROM tab1 AS cor0
----
114
117
156

onlyif mysql # use DIV operator for integer division
query I rowsort label-3424
SELECT - - cor0.col2 + - col1 * cor0.col0 DIV col1 AS col0 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-3424
SELECT - - cor0.col2 + - col1 * cor0.col0 / col1 AS col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3425
SELECT - cor0.col1 * col2 DIV col2 FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3425
SELECT - cor0.col1 * col2 / col2 FROM tab1 cor0
----
-10
-13
-26

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

skipif mysql # not compatible
query I rowsort label-3426
SELECT + - col1 * + col1 / + col1 AS col1 FROM tab0 cor0
----
-86
-91
-97

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

query I rowsort
SELECT DISTINCT col0 * tab1.col0 + col1 * col2 FROM tab1
----
1413
4666
7648

onlyif mysql # use DIV operator for integer division
query I rowsort label-3429
SELECT col1 * col0 + - col0 DIV - col1 col2 FROM tab1
----
1046
646
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3429
SELECT col1 * col0 + - col0 / - col1 col2 FROM tab1
----
1046
646
78

query I rowsort
SELECT ALL col1 * col2 + + col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL col2 * col2 + - col2 AS col1 FROM tab1
----
2862
3192
9120

query I rowsort
SELECT ALL col0 FROM tab0 WHERE - col1 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL - col1 + col1 + + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT tab2.col0 + + col0 - - tab2.col0 * col2 * tab2.col2 FROM tab2
----
114234
5117
52884

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( tab1.col0 + - col1 )
----

query I rowsort
SELECT + tab0.col2 * + tab0.col0 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3437
SELECT ALL col0 * - col1 DIV col1 + - col0 FROM tab1
----
-128
-160
-6

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL col0 * - col1 / col1 + - col0 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT + col0 * + col1 + col0 * + col0 + - col1 AS col1 FROM tab2
----
10627
235
7567

onlyif mysql # use DIV operator for integer division
query I rowsort label-3439
SELECT DISTINCT + col0 DIV - col1 AS col2 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT + col0 / - col1 AS col2 FROM tab2
----
-1
-4
0

query I rowsort
SELECT DISTINCT + col1 + - col1 + + col2 FROM tab1
----
54
57
96

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

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

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0 cor1, tab2 cor2
----
972 values hashing to 591a9a93560839231c038a1e10bd240a

query I rowsort
SELECT cor0.col0 - 95 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to a463a912adaf700f05e51566ae030e4c

query I rowsort
SELECT + col0 + col0 * tab0.col0 AS col2 FROM tab0
----
1260
600
8010

query I rowsort
SELECT col2 FROM tab2 WHERE NOT col0 >= col1 * + tab2.col1 - + col1
----
26
27
38

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

query I rowsort
SELECT ALL col0 * col1 - + col2 FROM tab0 cor0
----
2031
3394
8017

query I rowsort
SELECT col0 - + col0 * - col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + cor0.col1 - + col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - col1 + - col1 - + col1 FROM tab2 AS cor0
----
-177
-51
-93

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 * col1 col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT DISTINCT tab2.col0 + - col1 * - col2 + + col2 AS col2 FROM tab2
----
1638
763
871

query I rowsort
SELECT col0 * - col1 * col1 AS col2 FROM tab2
----
-22831
-271518
-6727

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( - col2 * + col1 - col1 )
----

query I rowsort
SELECT - col2 * col0 * - col2 AS col1 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT ALL col0 + + tab1.col1 + col1 * - tab1.col0 AS col2 FROM tab1
----
-49
-566
-947

query I rowsort
SELECT ALL col2 + col2 + + col0 FROM tab2
----
130
155
61

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * col2 + col2 * col0 IN ( - col2 * - col0 + col0 )
----

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

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

query I rowsort
SELECT DISTINCT + col1 * - 65 AS col1 FROM tab2
----
-1105
-2015
-3835

query I rowsort
SELECT 73 * cor0.col0 * col1 - col1 AS col1 FROM tab2 AS cor0
----
15810
335887
98022

query I rowsort
SELECT - ( cor0.col1 ) * cor0.col2 - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-3465
SELECT ALL 70 DIV cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 1cd643253f19b663914c5dbb8be19829

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL 70 / cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 1cd643253f19b663914c5dbb8be19829

query I rowsort
SELECT - + col2 * cor0.col2 + + ( - col0 ) * + col1 + col1 AS col2 FROM tab1 AS cor0
----
-10243
-2968
-3879

query I rowsort
SELECT ( - col0 ) * + 18 * col2 - - col2 FROM tab2
----
-3375
-36478
-53998

query I rowsort
SELECT DISTINCT 71 + tab0.col1 + - col2 FROM tab0
----
124
167
80

query I rowsort
SELECT DISTINCT + 46 + - col2 * 44 * col2 AS col1 FROM tab2
----
-29698
-32030
-63490

query I rowsort
SELECT - - ( + 48 ) - col2 * - ( - col1 ) FROM tab0 AS cor0
----
-2790
-49
-7414

query I rowsort
SELECT 12 + + 98 AS col0 FROM tab1 AS cor0
----
110
110
110

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

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

query I rowsort
SELECT - col0 - - cor0.col2 FROM tab0 AS cor0
----
-34
-7
9

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

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

query I rowsort
SELECT - col2 * - col2 * cor0.col2 FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT DISTINCT - 87 AS col0 FROM tab2, tab2 AS cor0
----
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3477
SELECT ALL CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL CAST ( NULL AS REAL ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col1 + - col2 * col2 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT ALL col2 + 49 * + col1 * - tab2.col1 AS col2 FROM tab2
----
-14123
-170543
-47062

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

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

query I rowsort
SELECT ALL - col2 * - col0 + col2 + cor0.col0 FROM tab2 AS cor0
----
2132
223
3119

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

query I rowsort
SELECT DISTINCT + ( 65 ) * - col0 + col0 * col2 AS col2 FROM tab0 AS cor0
----
-2240
-768
1513

query I rowsort
SELECT 83 * cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to f06ed87094e5675d3c269633b2d6daa8

query I rowsort
SELECT + 65 * col0 FROM tab1
----
195
4160
5200

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

query I rowsort
SELECT ALL + - 15 + + cor0.col1 FROM tab1 AS cor0
----
-2
-5
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-3488
SELECT + col1 + - col1 DIV col0 AS col2 FROM tab0 AS cor0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-3488
SELECT + col1 + - col1 / col0 AS col2 FROM tab0 AS cor0
----
83
90
95

query I rowsort
SELECT ALL + cor0.col2 + + col0 * + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL cor0.col0 + col1 + + cor0.col1 AS col0 FROM tab0 cor0
----
196
229
271

query I rowsort
SELECT DISTINCT + - 25 + col2 FROM tab1 AS cor0
----
29
32
71

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

query I rowsort
SELECT - col0 + - col0 * + tab2.col0 + + col2 AS col0 FROM tab2
----
-29
-6136
-6282

query I rowsort
SELECT ALL col2 - ( + col0 ) AS col0 FROM tab0
----
-34
-7
9

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

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

query I rowsort
SELECT ALL tab1.col1 - col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + col0 + - col2 * + ( - col1 ) FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL + col1 * col0 + - 8 AS col0 FROM tab2 AS cor0
----
1335
209
4594

query I rowsort
SELECT + col1 * ( - 19 ) * - col0 FROM tab0 AS cor0
----
153881
39216
64505

query I rowsort
SELECT DISTINCT + cor0.col2 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3501
SELECT + cor0.col0 + + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-3501
SELECT + cor0.col0 + + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - col0 * 72 - + col2 AS col1 FROM tab0 AS cor0
----
-1761
-2521
-6490

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3504
SELECT DISTINCT 62 * col0 DIV col0 col0 FROM tab0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT 62 * col0 / col0 col0 FROM tab0
----
62

query I rowsort
SELECT ALL 73 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

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

query I rowsort
SELECT DISTINCT cor0.col2 * + 38 AS col0 FROM tab2, tab0 AS cor0
----
1254
3116
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + 79 * 56 col2 FROM tab2 AS cor0
----
4365
4393
4407

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

query I rowsort
SELECT cor0.col2 * + 47 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT - + col2 * - 12 + + col0 + col1 AS col2 FROM tab2 AS cor0
----
362
449
552

query I rowsort
SELECT ALL col0 * - ( 75 * col0 ) AS col0 FROM tab1 AS cor0
----
-307200
-480000
-675

query I rowsort
SELECT + col0 + cor0.col2 + + col0 AS col1 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT - 81 * - col2 AS col1 FROM tab1
----
4374
4617
7776

query I rowsort
SELECT ALL - + cor0.col1 * 71 + + col1 + col1 AS col0 FROM tab2 AS cor0
----
-1173
-2139
-4071

query I rowsort
SELECT + cor0.col0 * 73 FROM tab1 AS cor0
----
219
4672
5840

query I rowsort
SELECT - col0 * 70 + col2 FROM tab2 AS cor0
----
-463
-5434
-5492

query I rowsort
SELECT DISTINCT - + col1 * - ( 86 + - col0 ) FROM tab2 AS cor0
----
119
2449
472

onlyif mysql # use DIV operator for integer division
query I rowsort label-3519
SELECT col2 + col0 * 30 - col1 DIV col0 AS col2 FROM tab0
----
1049
2751
750

skipif mysql # not compatible
query I rowsort label-3519
SELECT col2 + col0 * 30 - col1 / col0 AS col2 FROM tab0
----
1049
2751
750

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

query I rowsort
SELECT 15 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT ALL 32 FROM tab0, tab1 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT DISTINCT + cor0.col2 - cor0.col2 FROM tab2, tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3524
SELECT - col1 DIV 59 - - ( - col1 ) * + col2 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-3524
SELECT - col1 / 59 - - ( - col1 ) * + col2 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - cor0.col0 col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT + cor0.col1 + ( + col0 ) + col0 * col2 AS col1 FROM tab1 AS cor0
----
191
3722
7773

query I rowsort
SELECT ALL col1 + + ( - 60 ) * + col2 FROM tab2 AS cor0
----
-1501
-1589
-2263

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

query I rowsort
SELECT DISTINCT + col2 * 31 AS col0 FROM tab2 AS cor0
----
1178
806
837

query I rowsort
SELECT - col2 * 83 + - 4 + cor0.col0 FROM tab1 cor0
----
-4483
-4671
-7892

query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col2 + + 53 FROM tab1 AS cor0
----
-109
-3595
-7627

query I rowsort
SELECT col1 * 14 AS col0 FROM tab2
----
238
434
826

query I rowsort
SELECT DISTINCT col2 * ( - tab1.col1 ) * col2 - 62 FROM tab1
----
-119870
-32552
-75878

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

query I rowsort
SELECT 33 + col1 * col0 FROM tab1
----
1073
111
673

query I rowsort
SELECT + col1 * cor0.col0 + + ( col0 ) AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + col0 * col0 + tab2.col2 + + col2 FROM tab2
----
103
6136
6317

query I rowsort
SELECT DISTINCT + ( - tab1.col2 ) + tab1.col1 * + col1 + - col1 AS col0 FROM tab1
----
33
596
60

query I rowsort
SELECT ALL - + 71 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

query I rowsort
SELECT - col2 * - col0 - + 40 * + col2 FROM tab0 AS cor0
----
-5
-528
4018

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 + col1 col0 FROM tab1 AS cor0
----
73
76
89

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

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

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

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT ( col2 ) * + CAST ( + col1 * col2 + CAST ( col0 AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
22788
27550
41912

query I rowsort
SELECT ALL ( col1 ) * - 63 + col2 + col0 AS col0 FROM tab0 cor0
----
-5361
-5562
-6075

query I rowsort
SELECT ALL 1 - col2 FROM tab0 AS cor0
----
-32
-81
0

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

query I rowsort
SELECT ALL - - col0 - + col0 * - col2 * - col2 AS col0 FROM tab0 AS cor0
----
-26112
-598347
0

query I rowsort
SELECT - - col1 * col2 * col2 + cor0.col2 FROM tab2 cor0
----
22626
24586
39910

query I rowsort
SELECT ALL - col1 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
0
0
0

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3552
SELECT - - col1 DIV + cor0.col2 - - col0 col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3552
SELECT - - col1 / + cor0.col2 - - col0 col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - 63 FROM tab0, tab0 cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

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

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

query I rowsort
SELECT DISTINCT - ( - col0 ) + col0 * 69 AS col2 FROM tab1 AS cor0
----
210
4480
5600

query I rowsort
SELECT DISTINCT + 45 * cor0.col0 * - col1 + - col0 AS col2 FROM tab2 AS cor0
----
-207168
-60514
-9772

query I rowsort
SELECT DISTINCT col2 * ( - cor0.col1 ) + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + col0 * col0 + col2 + - col0 FROM tab2
----
6032
6200
69

query I rowsort
SELECT DISTINCT + - ( - 29 ) FROM tab1 AS cor0
----
29

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

skipif mysql # not compatible
query I rowsort label-3561
SELECT - 41 + + col2 * col2 * - CAST ( - ( col1 ) AS INTEGER ) FROM tab1
----
119767
32449
75775

query I rowsort
SELECT DISTINCT - tab2.col0 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-7
-78
-79

query I rowsort
SELECT col0 + 1 * + col1 AS col2 FROM tab2
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3564
SELECT ALL CAST( col1 * + col1 AS SIGNED ) AS col1 FROM tab2
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL CAST ( col1 * + col1 AS INTEGER ) AS col1 FROM tab2
----
289
3481
961

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab0 AS cor2, tab1 AS cor3
----
13122 values hashing to 9c6d099b034200e1c977782393db33a5

query I rowsort
SELECT ( + col0 ) * - col2 * + col1 - - 75 AS col0 FROM tab2 cor0
----
-119577
-50959
-5784

query I rowsort
SELECT + - 78 * col0 AS col0 FROM tab2 AS cor0
----
-546
-6084
-6162

query I rowsort
SELECT - - col1 * - col2 - col0 * - 67 AS col1 FROM tab1 AS cor0
----
-1203
3718
4112

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

query I rowsort
SELECT + 21 - 26 FROM tab2 AS cor0
----
-5
-5
-5

query I rowsort
SELECT + + col2 - - 43 * col1 * - col1 AS col1 FROM tab2 cor0
----
-12389
-149657
-41296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( - 57 * col0 ) col2 FROM tab1 AS cor0
----
207936
437760
9234

query I rowsort
SELECT - + col1 * + 88 FROM tab2 AS cor0
----
-1496
-2728
-5192

query I rowsort
SELECT col2 + 65 FROM tab1 AS cor0
----
119
122
161

query I rowsort
SELECT - col0 + - 59 * col0 FROM tab0 AS cor0
----
-1440
-2100
-5340

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3576
SELECT ALL CAST( NULL AS DECIMAL ) col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL CAST ( NULL AS REAL ) col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + + col0 * ( - 31 ) AS col1 FROM tab1 cor0
----
-1984
-2480
-93

query I rowsort
SELECT col1 * ( col1 ) + - col0 AS col2 FROM tab0 AS cor0
----
7372
8192
9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3579
SELECT + cor0.col0 * - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-3579
SELECT + cor0.col0 * - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + 42 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT - col0 - + 84 FROM tab0
----
-108
-119
-173

query I rowsort
SELECT DISTINCT - cor2.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
-26
-27
-38

query I rowsort
SELECT - - cor0.col1 + 40 * - col2 AS col0 FROM tab2 AS cor0
----
-1049
-1503
-981

query I rowsort
SELECT ALL - col2 + - col1 * col0 AS col1 FROM tab1 cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL + - 39 FROM tab0 AS cor0
----
-39
-39
-39

query I rowsort
SELECT - col0 + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180

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

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

query I rowsort
SELECT ALL - + ( col0 ) FROM tab0 cor0
----
-24
-35
-89

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

query I rowsort
SELECT DISTINCT - ( 52 ) + + col1 FROM tab1 AS cor0
----
-26
-39
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 * - cor0.col0 col1 FROM tab1 AS cor0
----
-1664
-2080
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3592
SELECT DISTINCT - 99 DIV - col1 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT - 99 / - col1 AS col1 FROM tab0 AS cor0
----
1

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

skipif mysql # not compatible
query I rowsort label-3593
SELECT col2 + - col2 / col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT - 98 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT ALL - ( 21 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT - + 9 + col2 AS col2 FROM tab2 cor0
----
17
18
29

query I rowsort
SELECT ALL + 89 * col2 FROM tab1
----
4806
5073
8544

query I rowsort
SELECT - 81 * col2 FROM tab0 AS cor0
----
-2673
-6642
-81

query I rowsort
SELECT ALL + 44 + + col0 * + ( + col1 ) FROM tab2 AS cor0
----
1387
261
4646

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL cor0.col0 + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + ( col2 ) * + col2 FROM tab1 AS cor0
----
2919
3313
9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3604
SELECT DISTINCT + col0 * CAST( col0 AS SIGNED ) + col1 + 23 FROM tab0 AS cor0
----
1345
685
8035

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT + col0 * CAST ( col0 AS INTEGER ) + col1 + 23 FROM tab0 AS cor0
----
1345
685
8035

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

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - 62 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL col0 * - col2 + col0 + + col2 FROM tab2
----
-155
-1924
-2885

query I rowsort
SELECT - ( + 78 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT DISTINCT + 69 + col2 FROM tab0 AS cor0
----
102
151
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 * col1 - + col0 col2 FROM tab2 AS cor0
----
1161
278
644

query I rowsort
SELECT ALL - 44 * 38 + - col1 FROM tab1 AS cor0
----
-1682
-1685
-1698

query I rowsort
SELECT + - 24 + + col1 AS col0 FROM tab1 AS cor0
----
-11
-14
2

query I rowsort
SELECT ( ( + col0 ) ) + 69 AS col2 FROM tab0 AS cor0
----
104
158
93

query I rowsort
SELECT DISTINCT - 59 * + 55 + col0 + + 23 FROM tab0 cor0
----
-3133
-3187
-3198

query I rowsort
SELECT DISTINCT - + ( - col2 ) * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 - - col2 col0 FROM tab0 AS cor0
----
7429
8363
9410

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

query I rowsort
SELECT col0 * col2 - - col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3619
SELECT - CAST( NULL AS SIGNED ) - 39 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT - CAST ( NULL AS INTEGER ) - 39 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( 25 ) * col2 + + cor0.col2 * ( - col0 ) FROM tab0 cor0
----
-10
-5248
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3621
SELECT ALL + CAST( + col2 AS SIGNED ) - + cor0.col2 * - 46 AS col0 FROM tab0 AS cor0
----
1551
3854
47

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL + CAST ( + col2 AS INTEGER ) - + cor0.col2 * - 46 AS col0 FROM tab0 AS cor0
----
1551
3854
47

query I rowsort
SELECT - 35 * col1 FROM tab1 AS cor0
----
-350
-455
-910

query I rowsort
SELECT ( - col0 ) + cor0.col2 * 91 + col0 FROM tab2 AS cor0
----
2366
2457
3458

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3624
SELECT - col2 * col1 + + CAST( + 76 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-1176
4294
4832

skipif mysql # not compatible
query I rowsort label-3624
SELECT - col2 * col1 + + CAST ( + 76 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-1176
4294
4832

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

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

query I rowsort
SELECT ALL - 92 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to 95b4f8d1f8c6430076327dcc6092a86c

query I rowsort
SELECT 63 * - col2 + + tab1.col2 + 0 * - col1 FROM tab1
----
-3348
-3534
-5952

query I rowsort
SELECT DISTINCT col0 + 46 FROM tab1
----
110
126
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-3629
SELECT DISTINCT + ( col1 ) * + col0 DIV col0 + - 76 * col2 col0 FROM tab2
----
-1917
-2021
-2871

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT + ( col1 ) * + col0 / col0 + - 76 * col2 col0 FROM tab2
----
-1917
-2021
-2871

query I rowsort
SELECT - col1 + 76 FROM tab0 AS cor0
----
-10
-15
-21

query I rowsort
SELECT ALL col1 * 5 + col1 AS col1 FROM tab1 AS cor0
----
156
60
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3632
SELECT ALL + col0 DIV + cor0.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-3632
SELECT ALL + col0 / + cor0.col2 col2 FROM tab0 AS cor0
----
0
1
35

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

query I rowsort
SELECT ALL + cor0.col1 * - 87 FROM tab1 cor0
----
-1131
-2262
-870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

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

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

query I rowsort
SELECT ALL + col1 + + ( - col0 ) * col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - col1 - - col1 * 38 FROM tab0 AS cor0
----
3182
3367
3589

query I rowsort
SELECT ALL + col2 * + 62 FROM tab0 cor0
----
2046
5084
62

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

query I rowsort
SELECT + 80 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - cor0.col1 * + 3 col0 FROM tab0 cor0
----
-22386
-291
-8514

query I rowsort
SELECT DISTINCT - col1 + + 91 AS col1 FROM tab2 cor0
----
32
60
74

query I rowsort
SELECT DISTINCT col0 * 95 AS col1 FROM tab1 AS cor0
----
285
6080
7600

query I rowsort
SELECT ALL - cor0.col1 * - col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3646
SELECT - col2 DIV - col1 + - ( col1 ) * CAST( - col2 AS SIGNED ) FROM tab1
----
1255
1406
575

skipif mysql # not compatible
query I rowsort label-3646
SELECT - col2 / - col1 + - ( col1 ) * CAST ( - col2 AS INTEGER ) FROM tab1
----
1255
1406
575

query I rowsort
SELECT 18 * ( col2 ) AS col1 FROM tab1 AS cor0
----
1026
1728
972

onlyif mysql # use DIV operator for integer division
query I rowsort label-3648
SELECT DISTINCT - col1 DIV 21 col2 FROM tab1
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT - col1 / 21 col2 FROM tab1
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3649
SELECT DISTINCT + col2 * + CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT + col2 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT + ( 89 ) AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL col1 * 30 AS col2 FROM tab2
----
1770
510
930

query I rowsort
SELECT + col2 * 16 AS col0 FROM tab0 AS cor0
----
1312
16
528

query I rowsort
SELECT + ( + 43 ) AS col1 FROM tab1 AS cor0
----
43
43
43

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3656
SELECT ALL + CAST( col2 AS SIGNED ) * - cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL + CAST ( col2 AS INTEGER ) * - cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792

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

query I rowsort
SELECT - 72 + col1 * col2 * + col2 FROM tab2 AS cor0
----
22527
24476
39812

query I rowsort
SELECT + ( + 33 ) * - col1 FROM tab2 AS cor0
----
-1023
-1947
-561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 + col0 * col1 col2 FROM tab0 AS cor0
----
2072
3403
8107

query I rowsort
SELECT ALL + col0 * + col2 + col1 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT 94 * col2 FROM tab2 AS cor0
----
2444
2538
3572

query I rowsort
SELECT ALL - col1 * + col0 + 25 FROM tab0 AS cor0
----
-2039
-3370
-8074

query I rowsort
SELECT ALL - col0 * - cor0.col1 + cor0.col2 * col2 AS col2 FROM tab1 cor0
----
10256
2994
3889

query I rowsort
SELECT + 25 * + col2 + col1 FROM tab2 AS cor0
----
706
709
967

query I rowsort
SELECT 32 * col1 * - ( - col0 ) FROM tab2
----
147264
42976
6944

query I rowsort
SELECT ALL - - col0 * - col0 + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL + col0 * 49 FROM tab1 AS cor0
----
147
3136
3920

query I rowsort
SELECT DISTINCT + - col0 * 88 AS col0 FROM tab2 AS cor0
----
-616
-6864
-6952

query I rowsort
SELECT ALL + + cor0.col1 + + col0 AS col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT 87 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

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

query I rowsort
SELECT + - col2 + + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT 87 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT - + col1 / col2 col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - col1 + + 52 FROM tab0 AS cor0
----
-34
-39
-45

query I rowsort
SELECT - col0 + 26 * col2 AS col2 FROM tab1 AS cor0
----
1401
1418
2416

query I rowsort
SELECT DISTINCT + - col2 * - 74 + + col0 FROM tab0 AS cor0
----
109
2466
6157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 75 * 70 col2 FROM tab1 AS cor0
----
5304
5307
5346

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

query I rowsort
SELECT DISTINCT + 88 * - 35 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-3080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 * + col2 col1 FROM tab2 AS cor0
----
2340
2430
3420

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

query I rowsort
SELECT DISTINCT - + 17 FROM tab0, tab1, tab1 AS cor0
----
-17

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

query I rowsort
SELECT ALL + 84 * 14 FROM tab1
----
1176
1176
1176

query I rowsort
SELECT - ( 2 ) FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT - 52 + tab0.col0 FROM tab0
----
-17
-28
37

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

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

query I rowsort
SELECT ALL + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - - 47 AS col0 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT DISTINCT col1 + + col1 AS col1 FROM tab0 cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-3696
SELECT ALL - col0 DIV col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL - col0 / col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT 35 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3698
SELECT DISTINCT - ( col0 + + CAST( - col2 AS SIGNED ) ) AS col0 FROM tab2
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT - ( col0 + + CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab2
----
-41
-52
20

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

query I rowsort
SELECT ALL 62 * - col1 FROM tab2
----
-1054
-1922
-3658

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

query I rowsort
SELECT ALL - - 77 FROM tab1 AS cor0
----
77
77
77

query I rowsort
SELECT DISTINCT 16 + col0 FROM tab0 AS cor0
----
105
40
51

query I rowsort
SELECT ALL tab1.col1 * ( + col0 * col1 ) + 7 - + col0 FROM tab1
----
13447
2032
6343

query I rowsort
SELECT - col2 * - col0 + - tab0.col2 FROM tab0
----
34
7216
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + col2 col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT - col2 * ( col1 ) + + cor0.col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-788
4550
5595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col1 ) * col2 - - cor0.col1 col1 FROM tab2 AS cor0
----
-1475
-629
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * 56 + - cor0.col2 * + ( col0 ) + - col2 col0 FROM tab0 AS cor0
----
-2396
1924
519

query I rowsort
SELECT ALL - cor0.col0 * + 98 + + cor0.col1 * col1 FROM tab2 AS cor0
----
-4163
-7453
275

query I rowsort
SELECT DISTINCT 72 + - col1 AS col1 FROM tab2 AS cor0
----
13
41
55

query I rowsort
SELECT + col0 * + col1 + - col2 + ( - 33 ) AS col2 FROM tab2 AS cor0
----
1272
157
4543

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

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

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

query I rowsort
SELECT DISTINCT 83 * 74 AS col0 FROM tab1 AS cor0
----
6142

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3716
SELECT CAST( 34 AS SIGNED ) + + col2 AS col1 FROM tab0 AS cor0
----
116
35
67

skipif mysql # not compatible
query I rowsort label-3716
SELECT CAST ( 34 AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0
----
116
35
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * + tab2.col0 * tab2.col2 col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT + 0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3719
SELECT - 19 * col2 DIV + cor0.col2 + + 30 * ( + col1 ) * ( + col0 ) + col2 FROM tab0 cor0
----
101832
243033
61934

skipif mysql # not compatible
query I rowsort label-3719
SELECT - 19 * col2 / + cor0.col2 + + 30 * ( + col1 ) * ( + col0 ) + col2 FROM tab0 cor0
----
101832
243033
61934

query I rowsort
SELECT ALL + 6 * 22 AS col2 FROM tab2 AS cor0
----
132
132
132

query I rowsort
SELECT ALL - 13 AS col2 FROM tab0 AS cor0
----
-13
-13
-13

query I rowsort
SELECT ALL + col0 + 87 AS col1 FROM tab2 cor0
----
165
166
94

query I rowsort
SELECT col1 * - 24 AS col2 FROM tab1 AS cor0
----
-240
-312
-624

query I rowsort
SELECT + + 72 + 93 * + col1 + 5 * col0 FROM tab0 cor0
----
8190
8980
9268

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

query I rowsort
SELECT ALL 87 AS col2 FROM tab2
----
87
87
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3727
SELECT DISTINCT col2 * col1 DIV ( + col2 ) AS col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT col2 * col1 / ( + col2 ) AS col2 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 + - col1 col1 FROM tab2 AS cor0
----
-34
-48
-76

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col2 ) + col2 col1 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3732
SELECT + col0 * CAST( NULL AS DECIMAL ) + + ( col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT + col0 * CAST ( NULL AS REAL ) + + ( col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + col0 - col0 * + cor0.col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + + col1 * - ( col2 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - - col0 * 35 FROM tab2 AS cor0
----
245
2730
2765

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3736
SELECT ALL - - col2 + + col0 / - col1 + col2 / + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL - - col2 + + col0 / - col1 + col2 / + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - cor0.col0 - col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT - - cor0.col1 - 65 AS col0 FROM tab0 AS cor0
----
21
26
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3739
SELECT DISTINCT + col2 + CAST( 30 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
126
84
87

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT + col2 + CAST ( 30 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
126
84
87

query I rowsort
SELECT ALL + - cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col0 * col1 * ( - cor0.col1 ) FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT - - col1 * + col1 - + 6 FROM tab0 AS cor0
----
7390
8275
9403

query I rowsort
SELECT - 52 + col2 AS col1 FROM tab2
----
-14
-25
-26

query I rowsort
SELECT 96 AS col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

onlyif mysql # use DIV operator for integer division
query I rowsort label-3745
SELECT + - cor0.col0 DIV ( + 42 ) AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3745
SELECT + - cor0.col0 / ( + 42 ) AS col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT + + col0 * 22 + col0 FROM tab1 AS cor0
----
1472
1840
69

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 + cor0.col1 + 69 * + col2 FROM tab0 AS cor0
----
13848
3561
4427

query I rowsort
SELECT DISTINCT + 67 + - col1 AS col0 FROM tab0 AS cor0
----
-19
-24
-30

query I rowsort
SELECT - 53 + col2 AS col2 FROM tab0 AS cor0
----
-20
-52
29

query I rowsort
SELECT ALL + + cor0.col2 + col1 * - cor0.col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + - 20 + cor0.col1 FROM tab0 AS cor0
----
66
71
77

query I rowsort
SELECT - + 97 AS col2 FROM tab2 cor0
----
-97
-97
-97

query I rowsort
SELECT ALL + col2 + col2 * - col1 * + cor0.col1 FROM tab0 AS cor0
----
-244035
-678960
-9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3754
SELECT - CAST( col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3754
SELECT - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3755
SELECT + col0 DIV col0 + - col2 AS col1 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-3755
SELECT + col0 / col0 + - col2 AS col1 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT DISTINCT + col0 * + 89 - col1 * ( + col1 * + col1 ) FROM tab0 AS cor0
----
-633920
-745650
-909558

onlyif mysql # use DIV operator for integer division
query I rowsort label-3757
SELECT DISTINCT + col2 DIV 67 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT + col2 / 67 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL tab2.col2 * + 43 AS col0 FROM tab2
----
1118
1161
1634

query I rowsort
SELECT 0 * - tab1.col2 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ALL 48 + col2 * col2 AS col1 FROM tab1 AS cor0
----
2964
3297
9264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3761
SELECT ALL - CAST( - 45 AS SIGNED ) + - cor0.col2 + + 76 FROM tab2 AS cor0
----
83
94
95

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL - CAST ( - 45 AS INTEGER ) + - cor0.col2 + + 76 FROM tab2 AS cor0
----
83
94
95

query I rowsort
SELECT DISTINCT + col2 - 45 AS col1 FROM tab0 cor0
----
-12
-44
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 * - cor0.col0 + - cor0.col0 * ( cor0.col0 * - col0 + col1 ) col2 FROM tab0 AS cor0
----
11064
38465
694289

query I rowsort
SELECT ALL - ( 3 ) * + col1 + 95 * 40 FROM tab2 AS cor0
----
3623
3707
3749

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3765
SELECT ALL - CAST( col0 AS SIGNED ) + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL - CAST ( col0 AS INTEGER ) + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 * + cor0.col1 AS col2 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + cor0.col2 + + 28 FROM tab1, tab0 AS cor0
----
9 values hashing to 3269368cff2c9c90d08ead957a117673

onlyif mysql # use DIV operator for integer division
query I rowsort label-3768
SELECT + + col1 DIV + col2 col0 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3768
SELECT + + col1 / + col2 col0 FROM tab0 AS cor0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3769
SELECT - col2 DIV + col0 AS col2 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-3769
SELECT - col2 / + col0 AS col2 FROM tab1 cor0
----
-1
-18
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3770
SELECT DISTINCT - 66 * + col0 + CAST( col0 AS SIGNED ) + cor0.col2 AS col2 FROM tab2 AS cor0
----
-428
-5044
-5097

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT - 66 * + col0 + CAST ( col0 AS INTEGER ) + cor0.col2 AS col2 FROM tab2 AS cor0
----
-428
-5044
-5097

query I rowsort
SELECT - - 10 + col0 FROM tab0 AS cor0
----
34
45
99

query I rowsort
SELECT DISTINCT + + col0 * + col0 * 59 FROM tab0 AS cor0
----
33984
467339
72275

query I rowsort
SELECT ALL + ( cor0.col0 ) + - 99 * col1 AS col0 FROM tab2 AS cor0
----
-1604
-3062
-5763

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3774
SELECT CAST( - cor0.col1 AS SIGNED ) FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

skipif mysql # not compatible
query I rowsort label-3774
SELECT CAST ( - cor0.col1 AS INTEGER ) FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT col1 * - col0 + tab1.col2 AS col0 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT col0 * - col1 * + col2 AS col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT + + 80 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT 46 * 88 + col2 FROM tab0
----
4049
4081
4130

query I rowsort
SELECT - 57 + col2 * col1 * - col2 AS col2 FROM tab2
----
-22656
-24605
-39941

query I rowsort
SELECT DISTINCT + cor1.col2 * cor1.col0 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
35
7298
792

query I rowsort
SELECT + 60 * col2 * - col2 + col0 FROM tab1
----
-174957
-194876
-552880

query I rowsort
SELECT + col1 + - col2 * + ( col2 ) FROM tab0 AS cor0
----
-1003
-6633
96

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-3784
SELECT ALL + col1 DIV - col2 + + col1 * tab1.col2 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL + col1 / - col2 + + col1 * tab1.col2 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 col0 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT + col1 + 37 AS col2 FROM tab0
----
123
128
134

query I rowsort
SELECT + 6 * cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 0481a09faeb522b0e8329193c1c64a7d

skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + CAST ( 2 AS REAL ) * - col0 AS col1 FROM tab0
----
-87
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3789
SELECT ALL - col2 + + col2 DIV - col0 + col0 * 51 FROM tab2
----
327
3952
3991

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL - col2 + + col2 / - col0 + col0 * 51 FROM tab2
----
327
3952
3991

query I rowsort
SELECT DISTINCT + col2 * - 25 + 88 * - col2 + - 70 AS col2 FROM tab1
----
-10918
-6172
-6511

query I rowsort
SELECT - 41 * - col2 AS col2 FROM tab2
----
1066
1107
1558

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

query I rowsort
SELECT - ( + col1 ) * - cor0.col0 AS col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + + 12 + 17 * col2 FROM tab0 AS cor0
----
1406
29
573

query I rowsort
SELECT + col2 + col1 * - col1 AS col1 FROM tab1 cor0
----
-43
-622
-73

query I rowsort
SELECT col0 * - 89 + cor0.col1 FROM tab1 AS cor0
----
-241
-5686
-7107

onlyif mysql # use DIV operator for integer division
query I rowsort label-3797
SELECT - 86 DIV col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3797
SELECT - 86 / col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT 49 * 76 * - col1 AS col1 FROM tab1 cor0
----
-37240
-48412
-96824

query I rowsort
SELECT ALL + 2 + + 66 AS col0 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 * col2 + + col0 * - ( col1 ) AS col1 FROM tab0 cor0
----
-21072
-4620
-657621

onlyif mysql # use DIV operator for integer division
query I rowsort label-3801
SELECT ALL - col2 DIV - 7 FROM tab2 AS cor0
----
3
3
5

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL - col2 / - 7 FROM tab2 AS cor0
----
3
3
5

query I rowsort
SELECT DISTINCT col1 * col1 + + col2 AS col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT 0 + + col1 AS col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT + + cor0.col0 * col0 - + 7 AS col2 FROM tab0 AS cor0
----
1218
569
7914

query I rowsort
SELECT 27 * col1 AS col0 FROM tab2
----
1593
459
837

query I rowsort
SELECT DISTINCT - tab2.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-17
-31
-59

query I rowsort
SELECT + + col0 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL - + col2 + ( 61 * - col2 ) FROM tab1 AS cor0
----
-3348
-3534
-5952

skipif mysql # not compatible
query I rowsort
SELECT + + col0 + - CAST ( + 1 AS REAL ) * col2 AS col0 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3810
SELECT - col1 * CAST( + 45 AS SIGNED ) FROM tab0 AS cor0
----
-3870
-4095
-4365

skipif mysql # not compatible
query I rowsort label-3810
SELECT - col1 * CAST ( + 45 AS INTEGER ) FROM tab0 AS cor0
----
-3870
-4095
-4365

query I rowsort
SELECT DISTINCT + - col2 * - ( col1 + + cor0.col0 ) FROM tab2 cor0
----
1026
3562
3648

query I rowsort
SELECT col1 + - col2 * - cor0.col1 AS col0 FROM tab0 cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + ( col1 ) col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col1 - col1 * col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL col0 * 22 AS col0 FROM tab0 cor0
----
1958
528
770

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3816
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3816
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + 6 AS col0 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT 69 * col1 FROM tab0
----
5934
6279
6693

query I rowsort
SELECT DISTINCT - 36 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-36

query I rowsort
SELECT col0 + ( col2 ) * col2 - - col0 FROM tab2
----
1602
743
832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 * col0 col2 FROM tab0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-3822
SELECT col0 DIV col0 - + col0 AS col0 FROM tab2
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-3822
SELECT col0 / col0 - + col0 AS col0 FROM tab2
----
-6
-77
-78

query I rowsort
SELECT DISTINCT col1 * - col0 + 66 FROM tab1
----
-12
-574
-974

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - tab1.col1 col1 FROM tab1
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3825
SELECT col0 + CAST( NULL AS DECIMAL ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3825
SELECT col0 + CAST ( NULL AS REAL ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - tab0.col1 + + ( - col1 ) * tab0.col0 FROM tab0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-3827
SELECT - col2 DIV ( tab2.col1 ) + col2 FROM tab2
----
26
27
36

skipif mysql # not compatible
query I rowsort label-3827
SELECT - col2 / ( tab2.col1 ) + col2 FROM tab2
----
26
27
36

query I rowsort
SELECT col2 * + 64 + col1 FROM tab0
----
161
2198
5339

query I rowsort
SELECT DISTINCT + - 46 AS col0 FROM tab0 AS cor0
----
-46

query I rowsort
SELECT ALL - 3 * + col2 AS col0 FROM tab2 AS cor0
----
-114
-78
-81

query I rowsort
SELECT DISTINCT + 87 * + col1 AS col1 FROM tab1
----
1131
2262
870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 + + col1 col2 FROM tab0
----
119
173
98

query I rowsort
SELECT + 89 + - col0 FROM tab2 AS cor0
----
10
11
82

query I rowsort
SELECT + - 80 + col2 FROM tab1 AS cor0
----
-23
-26
16

query I rowsort
SELECT DISTINCT - - cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7
78
79

query I rowsort
SELECT ALL - ( col1 ) * col2 + 30 * - col0 + + col1 AS col2 FROM tab0 AS cor0
----
-10041
-1050
-3472

query I rowsort
SELECT + 1 * + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + 49 * - cor0.col0 FROM tab2 AS cor0
----
-343
-3822
-3871

query I rowsort
SELECT + + cor0.col0 * + col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3841
SELECT DISTINCT CAST( + 55 AS SIGNED ) * + col0 AS col2 FROM tab1
----
165
3520
4400

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT CAST ( + 55 AS INTEGER ) * + col0 AS col2 FROM tab1
----
165
3520
4400

query I rowsort
SELECT DISTINCT + 67 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
67

query I rowsort
SELECT ALL - ( + col2 ) + - cor0.col0 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT + 53 * - cor0.col1 FROM tab1 AS cor0
----
-1378
-530
-689

query I rowsort
SELECT DISTINCT - col2 * + col2 * cor0.col1 FROM tab0 AS cor0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3846
SELECT DISTINCT col2 DIV + col0 + col1 + col2 * - 97 col2 FROM tab0
----
-3114
-7863
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT col2 / + col0 + col1 + col2 * - 97 col2 FROM tab0
----
-3114
-7863
0

query I rowsort
SELECT + col2 - ( col2 + col0 ) FROM tab0
----
-24
-35
-89

query I rowsort
SELECT col1 - + col2 * ( col2 ) FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT - + col0 - + col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT col1 + + 75 FROM tab0 AS cor0
----
161
166
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - 62 + + col0 * col2 col2 FROM tab2 AS cor0
----
1863
3640
5358

query I rowsort
SELECT - - col0 * ( cor0.col0 ) + - cor0.col1 * 54 AS col1 FROM tab0 AS cor0
----
-4013
-4068
3007

onlyif mysql # use DIV operator for integer division
query I rowsort label-3853
SELECT + col0 DIV 91 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3853
SELECT + col0 / 91 AS col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 - + col0 col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT + ( + col1 ) * col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - + col1 + + 69 FROM tab1 AS cor0
----
43
56
59

query I rowsort
SELECT + col1 + + col0 * - col1 * col2 AS col2 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT ALL - - col2 + ( + col0 ) FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL - ( col2 ) * + col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ( - col2 ) + col0 + col1 FROM tab1 AS cor0
----
-25
-3
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) * + col0 + - 39 * col1 col2 FROM tab0 AS cor0
----
-11648
-5418
-7178

query I rowsort
SELECT + - cor0.col1 + + 37 * col1 AS col0 FROM tab1 AS cor0
----
360
468
936

query I rowsort
SELECT DISTINCT 46 + + col1 FROM tab0 AS cor0
----
132
137
143

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3864
SELECT + ( 57 ) * - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT + ( 57 ) * - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * cor0.col2 col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col2 * + ( + col0 ) FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col0 * + 21 FROM tab1
----
1344
1680
63

query I rowsort
SELECT ALL - col2 * + col1 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT + col0 * 9 + - col2 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
43
752
754

query I rowsort
SELECT col0 * + col2 + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + cor0.col2 * col0 + col1 * + col2 FROM tab0 AS cor0
----
132
14760
3630

onlyif mysql # use DIV operator for integer division
query I rowsort label-3872
SELECT + col0 + - ( col1 ) DIV + 38 AS col0 FROM tab2
----
7
77
79

skipif mysql # not compatible
query I rowsort label-3872
SELECT + col0 + - ( col1 ) / + 38 AS col0 FROM tab2
----
7
77
79

query I rowsort
SELECT ALL col2 * - ( col2 ) FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT col1 * col0 + + 89 * cor0.col0 + - col1 FROM tab2 AS cor0
----
11485
809
8357

query I rowsort
SELECT - - col2 + + col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - ( 2 ) * tab0.col1 AS col0 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT ALL - col0 * - ( 65 ) AS col0 FROM tab1 AS cor0
----
195
4160
5200

query I rowsort
SELECT DISTINCT - col2 + 68 AS col1 FROM tab1 AS cor0
----
-28
11
14

query I rowsort
SELECT DISTINCT - col2 - + ( 13 ) * + col1 AS col2 FROM tab2 AS cor0
----
-259
-430
-793

onlyif mysql # use DIV operator for integer division
query I rowsort label-3880
SELECT - col1 DIV + col1 - col0 AS col1 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-3880
SELECT - col1 / + col1 - col0 AS col1 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT ALL + cor0.col1 + + 84 FROM tab2 AS cor0
----
101
115
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * + col1 * + col1 col0 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3883
SELECT DISTINCT + + cor0.col0 + CAST( NULL AS DECIMAL ) + col2 * cor0.col2 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT + + cor0.col0 + CAST ( NULL AS REAL ) + col2 * cor0.col2 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + col2 * + ( 70 ) FROM tab0 AS cor0
----
2310
5740
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 48 ) col1 FROM tab2, tab0 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to df6d12001a34fdcf5cfb2ca3a4a22108

query I rowsort
SELECT - - ( col2 ) - + col2 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3887
SELECT 65 * col1 DIV + col2 - - col0 AS col2 FROM tab1 AS cor0
----
34
75
88

skipif mysql # not compatible
query I rowsort label-3887
SELECT 65 * col1 / + col2 - - col0 AS col2 FROM tab1 AS cor0
----
34
75
88

query I rowsort
SELECT tab2.col2 * + ( col2 ) + + col0 * col0 * ( col0 ) AS col2 FROM tab2
----
1072
475228
494483

query I rowsort
SELECT DISTINCT - 67 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-67

query I rowsort
SELECT DISTINCT + - col1 * 25 FROM tab1 AS cor0
----
-250
-325
-650

query I rowsort
SELECT + cor0.col2 * + col1 + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL + - col1 * + 95 AS col0 FROM tab1 AS cor0
----
-1235
-2470
-950

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3893
SELECT - col2 + + CAST( col1 AS SIGNED ) + - col2 AS col1 FROM tab0 AS cor0
----
-73
20
95

skipif mysql # not compatible
query I rowsort label-3893
SELECT - col2 + + CAST ( col1 AS INTEGER ) + - col2 AS col1 FROM tab0 AS cor0
----
-73
20
95

query I rowsort
SELECT DISTINCT col0 * + 52 FROM tab2 AS cor0
----
364
4056
4108

query I rowsort
SELECT ALL + col0 + - 44 FROM tab0 AS cor0
----
-20
-9
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3896
SELECT DISTINCT - col2 + + col1 DIV ( - col0 * + 94 + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT - col2 + + col1 / ( - col0 * + 94 + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL col1 + col0 * - 40 * col2 AS col1 FROM tab0 AS cor0
----
-1303
-291829
-31594

query I rowsort
SELECT col1 + + 24 FROM tab1 AS cor0
----
34
37
50

query I rowsort
SELECT 67 * - tab0.col0 FROM tab0
----
-1608
-2345
-5963

query I rowsort
SELECT col1 * 95 - col0 FROM tab2
----
1536
2938
5527

query I rowsort
SELECT 28 + cor1.col2 AS col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to e07d09bd150ca977e272f2c015b6d2b5

query I rowsort
SELECT col2 + - 97 AS col2 FROM tab0 AS cor0
----
-15
-64
-96

query I rowsort
SELECT + + cor0.col1 + - 35 * col2 AS col0 FROM tab2 AS cor0
----
-1313
-851
-914

query I rowsort
SELECT + col2 + col0 * col0 * col2 AS col1 FROM tab1 AS cor0
----
233529
540
614496

query I rowsort
SELECT + - col0 * 21 AS col1 FROM tab1 AS cor0
----
-1344
-1680
-63

query I rowsort
SELECT + col2 * - cor0.col2 + + col2 * col0 AS col2 FROM tab0 AS cor0
----
-297
34
574

query I rowsort
SELECT col0 FROM tab1 WHERE col2 = NULL
----

query I rowsort
SELECT ALL + col1 * + col2 FROM tab0 WHERE col1 * - col0 BETWEEN + col0 * col1 + col0 AND NULL
----

query I rowsort
SELECT col0 + col1 * col0 + col2 FROM tab0 WHERE NOT ( NULL ) IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col2 col0 FROM tab1
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 * + tab2.col2 + col0 col1 FROM tab2
----
119730
51113
5866

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col2 * + col2
----

query I rowsort
SELECT col0 + tab1.col2 + col1 AS col1 FROM tab1
----
131
189
83

query I rowsort
SELECT DISTINCT col1 * - tab0.col1 + + tab0.col0 AS col2 FROM tab0
----
-7372
-8192
-9374

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 IN ( + col1 * col0 )
----

query I rowsort
SELECT ALL + col0 * + col1 * - col0 + + col1 AS col0 FROM tab2
----
-106080
-1488
-358897

query I rowsort
SELECT col2 * col0 + col1 + - col2 AS col2 FROM tab0
----
131
7307
845

query III rowsort
SELECT * FROM tab0 WHERE ( col0 * col1 / - col0 ) BETWEEN - col2 + col0 AND + col1 + col0 / col2
----

query I rowsort
SELECT + col2 * - col0 + + col2 * col2 FROM tab0 AS cor0
----
-34
-574
297

query I rowsort
SELECT - col2 * col0 + 98 FROM tab1 AS cor0
----
-3550
-64
-7582

query I rowsort
SELECT + + 78 + + col1 FROM tab0 AS cor0
----
164
169
175

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NULL NOT BETWEEN + col1 * + tab1.col1 AND NULL
----

query I rowsort
SELECT DISTINCT + 0 * - cor0.col2 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3924
SELECT DISTINCT - 3 DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT - 3 / col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col1 * + col0 + 91 FROM tab1 cor0
----
1131
169
731

onlyif mysql # use DIV operator for integer division
query I rowsort label-3926
SELECT ALL - + col2 DIV col1 + + col2 AS col2 FROM tab2 AS cor0
----
26
27
36

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL - + col2 / col1 + + col2 AS col2 FROM tab2 AS cor0
----
26
27
36

query I rowsort
SELECT DISTINCT + + col2 * + col2 * col1 + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
112128
28842
75654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 * + col1 + - ( - col2 ) * col2 - + col0 col1 FROM tab0 AS cor0
----
-5901
-736
-7891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - col2 col0 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT - + 3 * cor0.col0 FROM tab2 AS cor0
----
-21
-234
-237

query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab2 cor0
----
-60

query I rowsort
SELECT 22 * - col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1220
-295
-675

query I rowsort
SELECT DISTINCT + 98 * - cor0.col2 + - col0 FROM tab1 AS cor0
----
-5295
-5650
-9488

query I rowsort
SELECT DISTINCT - 71 * - col2 AS col1 FROM tab0 AS cor0
----
2343
5822
71

query I rowsort
SELECT cor0.col1 + - 89 AS col0 FROM tab0 cor0
----
-3
2
8

query I rowsort
SELECT 29 FROM tab2, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT - col2 + ( 39 ) AS col0 FROM tab0 AS cor0
----
-43
38
6

query I rowsort
SELECT DISTINCT col1 - tab0.col1 * - col2 AS col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT + col0 + - col0 * ( + 53 ) FROM tab2
----
-364
-4056
-4108

onlyif mysql # use DIV operator for integer division
query I rowsort label-3940
SELECT + col1 DIV 58 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3940
SELECT + col1 / 58 AS col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + + col0 + col1 * col1 AS col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT DISTINCT - tab0.col0 * - tab0.col1 - - 37 FROM tab0
----
2101
3432
8136

query I rowsort
SELECT DISTINCT 27 * col0 AS col1 FROM tab2 cor0
----
189
2106
2133

query I rowsort
SELECT ALL ( col0 ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT 66 AS col0 FROM tab1 cor0
----
66

query I rowsort
SELECT ALL + 30 * col0 + - col0 * ( 39 ) FROM tab2 AS cor0
----
-63
-702
-711

query I rowsort
SELECT + col2 * col1 * 30 AS col2 FROM tab1
----
17100
37440
42120

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + 40 + - ( + col1 + + ( - col0 ) ) * - col2 FROM tab1 AS cor0
----
-3038
-6392
1282

query I rowsort
SELECT ALL - col2 + 37 * col1 + + 9 AS col0 FROM tab2 AS cor0
----
1129
2166
600

query I rowsort
SELECT ALL + 44 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT - 84 * + col1 * col1 + + col0 AS col2 FROM tab2 AS cor0
----
-24197
-292326
-80717

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) * cor0.col0 - col2 col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT col1 + + 69 * + col0 AS col0 FROM tab0
----
1742
2512
6232

onlyif mysql # use DIV operator for integer division
query I rowsort label-3955
SELECT ALL + col1 + + CAST( col0 + col0 AS SIGNED ) DIV + col0 FROM tab1 AS cor0
----
12
15
28

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL + col1 + + CAST ( col0 + col0 AS INTEGER ) / + col0 FROM tab1 AS cor0
----
12
15
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-3956
SELECT DISTINCT col0 DIV + 82 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3956
SELECT DISTINCT col0 / + 82 FROM tab0 cor0
----
0
1

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + col2 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT + 0 * cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3959
SELECT DISTINCT - 91 + col0 * ( - col0 + col2 ) * + CAST( + 18 AS SIGNED ) FROM tab2
----
-58393
-73099
2429

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT - 91 + col0 * ( - col0 + col2 ) * + CAST ( + 18 AS INTEGER ) FROM tab2
----
-58393
-73099
2429

query I rowsort
SELECT - col1 * - col1 + - col1 FROM tab1
----
156
650
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3961
SELECT DISTINCT - col1 * CAST( col0 * + col2 AS SIGNED ) + - 51 * col1 * col0 + - ( 81 ) col0 FROM tab0
----
-1077248
-173457
-176621

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT - col1 * CAST ( col0 * + col2 AS INTEGER ) + - 51 * col1 * col0 + - ( 81 ) col0 FROM tab0
----
-1077248
-173457
-176621

query I rowsort
SELECT - - col2 * 60 FROM tab1 AS cor0
----
3240
3420
5760

query I rowsort
SELECT + + col1 + - ( col2 ) FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
54
57
96

query I rowsort
SELECT - tab1.col2 + - col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT ALL - - 9 AS col1 FROM tab0 AS cor0
----
9
9
9

query I rowsort
SELECT ALL + col0 * - col0 * 3 FROM tab0 AS cor0
----
-1728
-23763
-3675

onlyif mysql # use DIV operator for integer division
query I rowsort label-3968
SELECT DISTINCT - - col0 DIV - col1 col0 FROM tab1 AS cor0
----
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT - - col0 / - col1 col0 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT DISTINCT + + 59 AS col0 FROM tab2 AS cor0
----
59

query I rowsort
SELECT DISTINCT - 10 + col0 AS col1 FROM tab1 AS cor0
----
-7
54
70

query I rowsort
SELECT DISTINCT + 11 - col0 FROM tab2 AS cor0
----
-67
-68
4

query I rowsort
SELECT + 39 + - col0 FROM tab0 AS cor0
----
-50
15
4

query I rowsort
SELECT ALL 7 * + col2 AS col1 FROM tab1
----
378
399
672

query I rowsort
SELECT + - cor0.col0 - col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT + ( + col1 ) * - col2 + + 61 FROM tab1 AS cor0
----
-1187
-1343
-509

query I rowsort
SELECT DISTINCT - + col1 + + col1 * cor0.col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
177418
329218
736918

query I rowsort
SELECT - col0 * - col0 * - col2 + - col2 FROM tab0 cor0
----
-1226
-19041
-649604

query I rowsort
SELECT 33 + col2 * 59 AS col2 FROM tab2 AS cor0
----
1567
1626
2275

query I rowsort
SELECT - col0 * - cor0.col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - - col2 * - cor0.col1 * - 89 FROM tab2 cor0
----
136526
57494
74493

query I rowsort
SELECT DISTINCT col2 + col2 * + col2 AS col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT DISTINCT 56 * tab0.col0 AS col0 FROM tab0
----
1344
1960
4984

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT col1 + col2 * CAST ( - col1 + + col2 AS REAL ) col1 FROM tab1
----
1538
2689
7981

onlyif mysql # use DIV operator for integer division
query I rowsort label-3984
SELECT DISTINCT - col0 DIV - col2 + + col2 * tab0.col2 FROM tab0
----
1089
36
6725

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT - col0 / - col2 + + col2 * tab0.col2 FROM tab0
----
1089
36
6725

onlyif mysql # use DIV operator for integer division
query I rowsort label-3985
SELECT - - cor0.col1 DIV - 18 FROM tab2 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3985
SELECT - - cor0.col1 / - 18 FROM tab2 AS cor0
----
-1
-3
0

query I rowsort
SELECT col1 * - 32 + ( col2 ) AS col0 FROM tab2 AS cor0
----
-1862
-506
-965

query I rowsort
SELECT ALL col2 * + col0 + + col1 FROM tab0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-3988
SELECT ALL col1 DIV col1 + 23 * ( - col2 ) FROM tab2
----
-597
-620
-873

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL col1 / col1 + 23 * ( - col2 ) FROM tab2
----
-597
-620
-873

query I rowsort
SELECT DISTINCT 95 + + col2 FROM tab2 cor0
----
121
122
133

query I rowsort
SELECT - 90 * - col1 FROM tab1 AS cor0
----
1170
2340
900

query I rowsort
SELECT DISTINCT 75 + cor0.col0 AS col0 FROM tab0 AS cor0
----
110
164
99

query I rowsort
SELECT ALL + 61 * + col1 AS col2 FROM tab2
----
1037
1891
3599

query I rowsort
SELECT + 86 * tab2.col2 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to bb3503b5a000edf5bf7db0d3489b5d2a

query I rowsort
SELECT col1 + - ( + 97 ) + + col1 * cor0.col0 FROM tab2 cor0
----
1263
151
4564

query I rowsort
SELECT DISTINCT - col1 * ( 42 * + cor0.col1 + - col1 ) FROM tab0 cor0
----
-303236
-339521
-385769

onlyif mysql # use DIV operator for integer division
query I rowsort label-3996
SELECT + col1 * + col2 + - col2 DIV - col0 FROM tab0 cor0
----
2839
7462
97

skipif mysql # not compatible
query I rowsort label-3996
SELECT + col1 * + col2 + - col2 / - col0 FROM tab0 cor0
----
2839
7462
97

query I rowsort
SELECT + - cor0.col2 + + col0 * col1 AS col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT + - col2 - ( col0 ) AS col2 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT + col0 * - 52 * - col2 FROM tab0 AS cor0
----
1820
379496
41184

query I rowsort
SELECT + col0 * col0 - 74 AS col2 FROM tab1 AS cor0
----
-65
4022
6326

query I rowsort
SELECT col2 * + 75 AS col0 FROM tab0 cor0
----
2475
6150
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f

onlyif mysql # use DIV operator for integer division
query I rowsort label-4003
SELECT ALL col2 + + cor0.col1 DIV + cor0.col1 + col2 AS col0 FROM tab2 cor0
----
53
55
77

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL col2 + + cor0.col1 / + cor0.col1 + col2 AS col0 FROM tab2 cor0
----
53
55
77

query I rowsort
SELECT DISTINCT - + 99 + 6 AS col0 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT DISTINCT - 76 * + col0 FROM tab2 AS cor0
----
-532
-5928
-6004

query I rowsort
SELECT + col0 * 3 AS col0 FROM tab1 AS cor0
----
192
240
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4007
SELECT ALL CAST( NULL AS SIGNED ) * + col2 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( cor0.col1 ) FROM tab2 cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4009
SELECT ALL + + CAST( - col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL + + CAST ( - col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col0 + 8 FROM tab0 AS cor0
----
32
43
97

query I rowsort
SELECT - - col2 * + col1 * col1 AS col1 FROM tab2 AS cor0
----
10982
25947
90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4012
SELECT + CAST( - col1 AS SIGNED ) + - col1 AS col2 FROM tab2
----
-118
-34
-62

skipif mysql # not compatible
query I rowsort label-4012
SELECT + CAST ( - col1 AS INTEGER ) + - col1 AS col2 FROM tab2
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4013
SELECT - col0 + - col0 DIV + cor0.col0 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-4013
SELECT - col0 + - col0 / + cor0.col0 FROM tab1 AS cor0
----
-4
-65
-81

query I rowsort
SELECT col1 * 62 + + col1 AS col1 FROM tab2
----
1071
1953
3717

onlyif mysql # use DIV operator for integer division
query I rowsort label-4015
SELECT ALL + - 28 + - col2 + + cor0.col2 DIV - 74 FROM tab0 AS cor0
----
-111
-29
-61

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL + - 28 + - col2 + + cor0.col2 / - 74 FROM tab0 AS cor0
----
-111
-29
-61

query I rowsort
SELECT ALL col0 + + col1 + - col0 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + - cor0.col0 * + col0 - col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT - col0 * 27 + col0 * 20 - col1 FROM tab1 AS cor0
----
-458
-47
-573

query I rowsort
SELECT + 71 * col0 + + col0 FROM tab0 AS cor0
----
1728
2520
6408

query I rowsort
SELECT DISTINCT col0 * + ( col0 * + col0 ) AS col0 FROM tab1
----
262144
27
512000

query I rowsort
SELECT - + ( - cor0.col1 ) + - col0 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4022
SELECT DISTINCT + col0 * col0 + + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT + col0 * col0 + + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 9 - tab2.col2 FROM tab2
----
-17
-18
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 + + col2 col1 FROM tab0 cor0
----
1122
2
6806

query I rowsort
SELECT - - 52 AS col2 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT + col0 + col2 * col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4027
SELECT ( + col1 ) + tab2.col2 * - CAST( NULL AS SIGNED ) + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT ( + col1 ) + tab2.col2 * - CAST ( NULL AS INTEGER ) + + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col0 + - 56 AS col1 FROM tab0 AS cor0
----
2008
3339
8043

onlyif mysql # use DIV operator for integer division
query I rowsort label-4029
SELECT ( - col1 ) DIV - 5 FROM tab2 AS cor0
----
11
3
6

skipif mysql # not compatible
query I rowsort label-4029
SELECT ( - col1 ) / - 5 FROM tab2 AS cor0
----
11
3
6

query I rowsort
SELECT col2 * col2 - 99 AS col2 FROM tab1
----
2817
3150
9117

query I rowsort
SELECT - + cor0.col1 * 85 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2ce8d59c95010ca6a024e98f6f19b073

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col0 col1 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4033
SELECT + - col0 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4033
SELECT + - col0 / cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4034
SELECT + - col2 + + CAST( ( + col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-4034
SELECT + - col2 + + CAST ( ( + col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 + - ( col0 ) col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT + 98 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
98

query I rowsort
SELECT ( + col0 ) + col0 * col1 FROM tab0 AS cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 * col1 col2 FROM tab0 cor0
----
4644
4914
5238

query I rowsort
SELECT ( - 93 ) FROM tab0
----
-93
-93
-93

query I rowsort
SELECT ALL col2 + 83 * - col2 AS col0 FROM tab1 AS cor0
----
-4428
-4674
-7872

onlyif mysql # use DIV operator for integer division
query I rowsort label-4041
SELECT col2 + ( - col2 ) * col2 DIV + 54 FROM tab2 AS cor0
----
12
14
14

skipif mysql # not compatible
query I rowsort label-4041
SELECT col2 + ( - col2 ) * col2 / + 54 FROM tab2 AS cor0
----
12
14
14

query I rowsort
SELECT ALL + + col1 + col1 * col2 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT - col2 * + 71 AS col2 FROM tab0 AS cor0
----
-2343
-5822
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-4044
SELECT - cor0.col0 DIV - 58 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4044
SELECT - cor0.col0 / - 58 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - col1 + cor0.col0 * 61 * cor0.col2 FROM tab1 cor0
----
222518
468467
9856

onlyif mysql # use DIV operator for integer division
query I rowsort label-4046
SELECT DISTINCT + col2 DIV + tab1.col0 + + col0 * col0 AS col0 FROM tab1
----
27
4096
6401

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT + col2 / + tab1.col0 + + col0 * col0 AS col0 FROM tab1
----
27
4096
6401

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 + col1 col2 FROM tab2
----
30
44
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-4048
SELECT col2 + col1 DIV + col0 AS col0 FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort label-4048
SELECT col2 + col1 / + col0 AS col0 FROM tab2
----
26
31
38

query I rowsort
SELECT + ( col0 ) * 85 FROM tab2
----
595
6630
6715

query I rowsort
SELECT DISTINCT + + col2 + - cor0.col1 AS col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL + 25 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT ALL + 67 + + col2 * col2 FROM tab2 AS cor0
----
1511
743
796

onlyif mysql # use DIV operator for integer division
query I rowsort label-4053
SELECT DISTINCT - 92 * col0 + col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
-284
-5888
-7360

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT - 92 * col0 + col1 / - col0 AS col1 FROM tab1 AS cor0
----
-284
-5888
-7360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * + 20 col1 FROM tab2 cor0
----
140
1560
1580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4055
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4056
SELECT + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col0 + 55 FROM tab2 AS cor0
----
-23
-24
48

query I rowsort
SELECT ALL - col1 + - col1 * - cor0.col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT col0 - col0 * - tab2.col2 * - col0 AS col2 FROM tab2
----
-1316
-158106
-237079

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL 44 + + 32 AS col1 FROM tab1
----
76
76
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4062
SELECT + 7 DIV 59 - col2 * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-4062
SELECT + 7 / 59 - col2 * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + 80 + - cor0.col2 FROM tab0 AS cor0
----
-2
47
79

query I rowsort
SELECT DISTINCT ( + col1 ) + + cor0.col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + ( - col0 ) + cor0.col1 * - ( + 27 ) FROM tab2 AS cor0
----
-1671
-538
-844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4066
SELECT ALL - - CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL - - CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4067
SELECT + CAST( - 7 AS SIGNED ) - col0 FROM tab0 AS cor0
----
-31
-42
-96

skipif mysql # not compatible
query I rowsort label-4067
SELECT + CAST ( - 7 AS INTEGER ) - col0 FROM tab0 AS cor0
----
-31
-42
-96

query I rowsort
SELECT + ( + col0 ) AS col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL col1 * + 56 AS col1 FROM tab2 AS cor0
----
1736
3304
952

query I rowsort
SELECT DISTINCT + col1 * + 11 AS col1 FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT + col1 * 23 AS col2 FROM tab1 AS cor0
----
230
299
598

onlyif mysql # use DIV operator for integer division
query I rowsort label-4072
SELECT + + col2 * 91 DIV cor0.col1 + + 84 DIV 71 + - cor0.col2 FROM tab2 AS cor0
----
15
166
53

skipif mysql # not compatible
query I rowsort label-4072
SELECT + + col2 * 91 / cor0.col1 + + 84 / 71 + - cor0.col2 FROM tab2 AS cor0
----
15
166
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4073
SELECT ALL + - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL + - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col0 * 35 FROM tab0 AS cor0
----
1225
3115
840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4075
SELECT ALL CAST( - 52 AS SIGNED ) col2 FROM tab2 cor0
----
-52
-52
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL CAST ( - 52 AS INTEGER ) col2 FROM tab2 cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT 51 - - 90 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
141

query I rowsort
SELECT ALL 18 + - col1 AS col2 FROM tab1 AS cor0
----
-8
5
8

query I rowsort
SELECT 33 + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1215
-1371
-537

query I rowsort
SELECT - cor0.col2 + - col1 * col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT + col0 * cor0.col1 * + cor0.col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL - + col0 + 68 FROM tab2 cor0
----
-10
-11
61

query I rowsort
SELECT + cor0.col0 * ( cor0.col0 ) FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - - col0 + ( 75 ) AS col0 FROM tab2 AS cor0
----
153
154
82

query I rowsort
SELECT ALL + col2 * 92 FROM tab0 AS cor0
----
3036
7544
92

query I rowsort
SELECT ALL 61 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4086
SELECT ALL col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * 64 FROM tab2 cor0
----
-448
-4992
-5056

query I rowsort
SELECT 7 FROM tab2 cor0
----
7
7
7

query I rowsort
SELECT col2 * col0 + - tab2.col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT cor0.col1 + + cor0.col2 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 71bdffb602517a95c6721e05f7b4b3dd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 76 ) col1 FROM tab1 AS cor0
----
76
76
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4092
SELECT 40 DIV 57 FROM tab2, tab0 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

skipif mysql # not compatible
query I rowsort label-4092
SELECT 40 / 57 FROM tab2, tab0 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

query I rowsort
SELECT - 34 * + col2 AS col1 FROM tab2 AS cor0
----
-1292
-884
-918

query I rowsort
SELECT ALL - 4 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT DISTINCT + 12 * cor0.col2 + - col0 * + 9 + + col0 AS col2 FROM tab2 AS cor0
----
-176
-312
268

query I rowsort
SELECT DISTINCT - col1 * col1 - 52 FROM tab2 AS cor0
----
-1013
-341
-3533

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4097
SELECT - ( cor0.col0 ) - - CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4097
SELECT - ( cor0.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 DISTINCT ( - ( - col2 ) ) * col0 + - col0 * col0 col1 FROM tab1
----
-448
1280
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col2 FROM tab2
----
-7
-7
-7

query I rowsort
SELECT + 17 + - col2 FROM tab1
----
-37
-40
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4101
SELECT 40 DIV - col2 + col1 AS col2 FROM tab0
----
57
85
91

skipif mysql # not compatible
query I rowsort label-4101
SELECT 40 / - col2 + col1 AS col2 FROM tab0
----
57
85
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-4102
SELECT - col2 DIV + col0 + + ( col1 ) FROM tab2 AS cor0
----
17
28
59

skipif mysql # not compatible
query I rowsort label-4102
SELECT - col2 / + col0 + + ( col1 ) FROM tab2 AS cor0
----
17
28
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4103
SELECT cor0.col2 * CAST( 4 AS SIGNED ) + cor0.col2 * 66 + cor0.col2 FROM tab1 AS cor0
----
3834
4047
6816

skipif mysql # not compatible
query I rowsort label-4103
SELECT cor0.col2 * CAST ( 4 AS INTEGER ) + cor0.col2 * 66 + cor0.col2 FROM tab1 AS cor0
----
3834
4047
6816

query I rowsort
SELECT DISTINCT tab0.col1 AS col1 FROM tab0, tab0 cor0
----
86
91
97

query I rowsort
SELECT ALL - 53 * col0 AS col2 FROM tab2
----
-371
-4134
-4187

query I rowsort
SELECT DISTINCT - ( col1 ) * col1 AS col2 FROM tab2
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-4107
SELECT + - cor0.col1 + 98 DIV + col2 + + col2 * 84 AS col1 FROM tab1 AS cor0
----
4511
4779
8052

skipif mysql # not compatible
query I rowsort label-4107
SELECT + - cor0.col1 + 98 / + col2 + + col2 * 84 AS col1 FROM tab1 AS cor0
----
4511
4779
8052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( 98 ) col0 FROM tab0 AS cor0
----
8428
8918
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-4109
SELECT 88 DIV col0 + ( tab0.col0 ) * tab0.col1 FROM tab0
----
2067
3397
8099

skipif mysql # not compatible
query I rowsort label-4109
SELECT 88 / col0 + ( tab0.col0 ) * tab0.col1 FROM tab0
----
2067
3397
8099

query I rowsort
SELECT ALL ( - tab0.col2 ) AS col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL - 42 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 - tab1.col2 col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 44 + cor0.col1 col2 FROM tab0 AS cor0
----
130
135
141

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4114
SELECT DISTINCT - CAST( NULL AS SIGNED ) + cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 + 76 AS col2 FROM tab0 AS cor0
----
186
208
256

query I rowsort
SELECT DISTINCT col2 + + col2 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT col1 + ( - col1 ) * col1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL + + cor0.col2 + + col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT ALL + - col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL cor0.col0 + - col2 * col1 + col2 * - col2 * col0 AS col0 FROM tab1 AS cor0
----
-10149
-208442
-738448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4122
SELECT ALL + - col1 + + col1 DIV + col0 col0 FROM tab0 cor0
----
-83
-90
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL + - col1 + + col1 / + col0 col0 FROM tab0 cor0
----
-83
-90
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4123
SELECT DISTINCT + ( col2 ) * col2 DIV + col2 AS col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT + ( col2 ) * col2 / + col2 AS col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4124
SELECT cor0.col0 DIV 48 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4124
SELECT cor0.col0 / 48 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - + 74 + col0 AS col2 FROM tab0 AS cor0
----
-39
-50
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + col1 * ( col2 + cor0.col0 ) * cor0.col2 col0 FROM tab0 AS cor0
----
1276093
161852
3589

query I rowsort
SELECT DISTINCT 30 * 60 AS col0 FROM tab1 cor0
----
1800

query I rowsort
SELECT ALL + col1 + 75 FROM tab0 AS cor0
----
161
166
172

query I rowsort
SELECT ALL col1 * col2 + + col1 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-4130
SELECT DISTINCT + - CAST( col2 AS SIGNED ) DIV + col0 + 83 AS col0 FROM tab2 AS cor0
----
80
83

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT + - CAST ( col2 AS INTEGER ) / + col0 + 83 AS col0 FROM tab2 AS cor0
----
80
83

query I rowsort
SELECT + cor0.col1 + + col2 AS col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - col0 + + cor0.col2 * col0 AS col2 FROM tab0 cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT col0 * ( + col2 ) * + ( - 42 ) + + col0 FROM tab1 cor0
----
-153152
-322480
-6801

query I rowsort
SELECT + 76 * 67 + + col1 AS col1 FROM tab2 cor0
----
5109
5123
5151

query I rowsort
SELECT ALL + + 80 + col1 AS col2 FROM tab2 AS cor0
----
111
139
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 + col2 * 52 col0 FROM tab0 AS cor0
----
-26
1638
4186

query I rowsort
SELECT - 37 + col0 AS col2 FROM tab0 AS cor0
----
-13
-2
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4138
SELECT ALL + col2 DIV + cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL + col2 / + cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT ALL + 14 AS col1 FROM tab1 AS cor0
----
14
14
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-4140
SELECT ALL + col1 * col1 + col2 DIV - ( col0 * col2 ) FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL + col1 * col1 + col2 / - ( col0 * col2 ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - - col1 + col2 * - cor0.col0 + - 86 * - col2 FROM tab0 AS cor0
----
-155
148
2132

query I rowsort
SELECT - ( col1 ) * col0 + cor0.col0 * - col0 * + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-479154
-494382
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 + - col1 col2 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col2 * - tab1.col2 AS col0 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL - 34 * + tab2.col1 + tab2.col0 AS col2 FROM tab2
----
-1047
-1928
-499

query I rowsort
SELECT col2 * 91 AS col0 FROM tab1
----
4914
5187
8736

query I rowsort
SELECT DISTINCT + 45 + + col0 FROM tab2
----
123
124
52

query I rowsort
SELECT ALL 75 * + col2 + + col1 * col2 * - col0 FROM tab1
----
-162
-32205
-92640

query I rowsort
SELECT ALL 31 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT DISTINCT - col0 * + col1 - + ( - 24 ) AS col2 FROM tab2 AS cor0
----
-1319
-193
-4578

query I rowsort
SELECT ALL + 57 + col0 * 81 + 42 * col0 FROM tab2 AS cor0
----
918
9651
9774

query I rowsort
SELECT DISTINCT + col1 * col2 + + 66 AS col2 FROM tab0 AS cor0
----
163
2904
7528

query I rowsort
SELECT - 56 + - col0 * - col1 * + col0 AS col1 FROM tab2 AS cor0
----
106041
1463
358900

onlyif mysql # use DIV operator for integer division
query I rowsort label-4156
SELECT ALL + 52 DIV - cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
24
5
9

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL + 52 / - cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
24
5
9

query I rowsort
SELECT + col2 + + col2 * ( col0 ) FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT 41 - + cor0.col1 AS col1 FROM tab2 AS cor0
----
-18
10
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) col2 FROM tab1
----
54
57
96

query I rowsort
SELECT + cor0.col2 + col1 AS col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + - col1 - col0 * col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
24
35
89

query I rowsort
SELECT col1 * 7 AS col2 FROM tab1 AS cor0
----
182
70
91

query I rowsort
SELECT + - col2 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col0 - tab2.col1 * col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT col1 * + col2 - ( + col2 ) * col1 AS col2 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4167
SELECT + + 89 - - ( + col1 ) DIV 21 AS col1 FROM tab1 AS cor0
----
89
89
90

skipif mysql # not compatible
query I rowsort label-4167
SELECT + + 89 - - ( + col1 ) / 21 AS col1 FROM tab1 AS cor0
----
89
89
90

query I rowsort
SELECT ALL - + 79 * - 6 - + col2 AS col0 FROM tab1 AS cor0
----
378
417
420

query I rowsort
SELECT DISTINCT + 44 + - tab2.col1 FROM tab2
----
-15
13
27

query I rowsort
SELECT ALL - - col2 * col1 * - col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 - - col0 col0 FROM tab0 AS cor0
----
142
77
88

query I rowsort
SELECT ALL - col0 * - col0 * col0 AS col1 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT 70 FROM tab0, tab0 cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ALL + - ( - col2 ) - + col1 FROM tab2 AS cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + ( col1 ) ) * col1 - + col1 * col2 * - col1 col1 FROM tab1 AS cor0
----
16393
37180
5800

query I rowsort
SELECT DISTINCT ( + 23 ) FROM tab2 AS cor0
----
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4177
SELECT - col1 + - col1 DIV + col1 AS col2 FROM tab0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-4177
SELECT - col1 + - col1 / + col1 AS col2 FROM tab0
----
-87
-92
-98

query I rowsort
SELECT DISTINCT - col2 * col0 + col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL col0 * cor0.col2 + - col1 - col0 FROM tab1 AS cor0
----
133
3574
7587

query I rowsort
SELECT + col2 + col1 * col2 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT ALL + col0 + - cor0.col2 * - col2 AS col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT ALL col0 - - col2 * - col0 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-4183
SELECT DISTINCT col2 * + col0 DIV col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT col2 * + col0 / col0 FROM tab0
----
1
33
82

query I rowsort
SELECT - col0 + - col0 * - col1 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - - col1 * + cor0.col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT + - col1 * - ( - col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - 79 + + col0 FROM tab0 cor0
----
-44
-55
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - cor0.col2 col1 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4189
SELECT - CAST( - 39 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-39
-40
32

skipif mysql # not compatible
query I rowsort label-4189
SELECT - CAST ( - 39 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-39
-40
32

query I rowsort
SELECT + col2 * + 63 + - col1 AS col2 FROM tab0 AS cor0
----
-34
1993
5075

query I rowsort
SELECT ALL - cor1.col2 + - cor1.col0 AS col2 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 507d0f67070240a638094d82967d5d67

query I rowsort
SELECT ALL - ( - col1 ) * col1 * + col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT ALL + + ( - col2 ) + col0 AS col0 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4194
SELECT DISTINCT + - 20 DIV cor0.col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT + - 20 / cor0.col1 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT 5 * col2 FROM tab1 AS cor0
----
270
285
480

query I rowsort
SELECT + - 28 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
2408
2548
2716

query I rowsort
SELECT DISTINCT - col2 * - col1 + - col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT - ( - col0 ) * col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - - cor0.col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col2 col0 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 29 col1 FROM tab0 cor0
----
29
29
29

query I rowsort
SELECT col0 * + ( tab2.col1 ) * + col0 - - col1 FROM tab2
----
106114
1550
359015

query I rowsort
SELECT + col1 * tab0.col1 + col0 * + tab0.col0 FROM tab0
----
10634
16202
7972

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + tab0.col0 * + tab0.col1 AS col1 FROM tab0
----
2064
3395
8099

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= + col1
----

query I rowsort
SELECT tab1.col2 + tab1.col1 AS col1 FROM tab1 WHERE NULL NOT IN ( col1 * col1 )
----

query I rowsort
SELECT DISTINCT col0 * + col1 + + col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4210
SELECT - col1 - col0 DIV + col2 FROM tab1
----
-11
-13
-26

skipif mysql # not compatible
query I rowsort label-4210
SELECT - col1 - col0 / + col2 FROM tab1
----
-11
-13
-26

query I rowsort
SELECT + col2 + + tab0.col1 * + col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT col2 * col2 + - tab2.col1 AS col0 FROM tab2
----
1427
617
698

onlyif mysql # use DIV operator for integer division
query I rowsort label-4213
SELECT ALL - col2 * - col2 + col1 DIV - col1 AS col0 FROM tab1
----
2915
3248
9215

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL - col2 * - col2 + col1 / - col1 AS col0 FROM tab1
----
2915
3248
9215

query I rowsort
SELECT DISTINCT tab2.col1 * + col2 + + col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT + col1 * + col0 + + col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL col1 * col2 + + col1 * + col0 * - col1 FROM tab2
----
-22185
-269984
-5890

query I rowsort
SELECT - cor0.col2 + col1 * + col1 AS col2 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT ALL col0 * - tab1.col1 + - col0 AS col0 FROM tab1
----
-1120
-704
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4219
SELECT DISTINCT col2 + col1 DIV - col0 FROM tab2
----
23
26
38

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT col2 + col1 / - col0 FROM tab2
----
23
26
38

query I rowsort
SELECT - col2 + - col1 * col1 + - col0 * col2 * col2 FROM tab1
----
-208093
-737545
-9478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 + col0 col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT col0 + col1 + + tab1.col0 AS col2 FROM tab1
----
138
173
32

query I rowsort
SELECT ALL tab2.col0 * + tab2.col0 AS col1 FROM tab2 WHERE NOT ( NULL ) > ( + col1 / col0 )
----

query I rowsort
SELECT DISTINCT + col0 * col1 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT DISTINCT + col2 * col1 - col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT col0 * col0 + - cor0.col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT DISTINCT + + col1 * cor0.col1 + - col1 AS col2 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT DISTINCT + col1 * col2 * + col0 + col2 FROM tab1 AS cor0
----
36537
4266
99936

onlyif mysql # use DIV operator for integer division
query I rowsort label-4229
SELECT ALL - col2 + col0 DIV col2 FROM tab1 cor0
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL - col2 + col0 / col2 FROM tab1 cor0
----
-54
-56
-96

query I rowsort
SELECT - col0 * col0 + + col0 * col1 FROM tab2
----
-1482
-4898
168

query I rowsort
SELECT + col0 - col0 * + tab0.col1 AS col1 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT + col0 + + ( tab1.col2 * col0 ) + + ( 57 ) FROM tab1
----
222
3769
7817

query I rowsort
SELECT DISTINCT - tab2.col2 + - tab2.col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT tab0.col2 + 5 + - col1 * - col1 FROM tab0
----
7434
8368
9415

query I rowsort
SELECT DISTINCT + col1 + col2 * - col0 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT col2 * + 96 FROM tab0
----
3168
7872
96

query I rowsort
SELECT col1 + - ( col2 ) AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT 50 * + ( - col1 ) FROM tab0 AS cor0
----
-4300
-4550
-4850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 * col2 col2 FROM tab0 cor0
----
2211
5494
67

query I rowsort
SELECT - - 60 * col1 FROM tab1 AS cor0
----
1560
600
780

query I rowsort
SELECT ALL - ( 13 ) AS col0 FROM tab0 AS cor0
----
-13
-13
-13

query I rowsort
SELECT ALL col0 * + ( col1 ) FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 * + col2 + + col0 * 71 col1 FROM tab1 AS cor0
----
5000
6448
645

query I rowsort
SELECT ALL - col0 * col1 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + - col0 * 66 AS col2 FROM tab0 AS cor0
----
-1584
-2310
-5874

query I rowsort
SELECT DISTINCT + ( - col1 ) + + col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - col2 + col0 + 96 AS col2 FROM tab2 AS cor0
----
137
148
76

query I rowsort
SELECT + ( + col1 ) - 27 FROM tab2 AS cor0
----
-10
32
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col2 col2 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT + col2 + - cor0.col0 + 26 * cor0.col2 FROM tab0 AS cor0
----
-8
2125
867

query I rowsort
SELECT + - col1 * col2 + + ( col1 ) FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL - cor0.col2 + - 48 AS col0 FROM tab2 AS cor0
----
-74
-75
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4253
SELECT ALL col0 * + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL col0 * + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col1 * col2 + 46 FROM tab1 AS cor0
----
-1202
-1358
-524

onlyif mysql # use DIV operator for integer division
query I rowsort label-4255
SELECT DISTINCT 89 DIV cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
1
29

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT 89 / cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
1
29

query I rowsort
SELECT col0 * col0 * col2 AS col2 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT ALL - col1 * 86 FROM tab2 AS cor0
----
-1462
-2666
-5074

query I rowsort
SELECT DISTINCT col1 * col0 + + ( + col1 ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
1398
275
4687

query I rowsort
SELECT ALL col0 * 70 + - col1 AS col2 FROM tab1 AS cor0
----
184
4470
5587

query I rowsort
SELECT col2 - 50 FROM tab2 AS cor0
----
-12
-23
-24

query I rowsort
SELECT + col2 * ( - col1 ) * - col1 + + col0 AS col0 FROM tab1 AS cor0
----
16304
36507
5764

onlyif mysql # use DIV operator for integer division
query I rowsort label-4262
SELECT ALL - + col0 DIV ( - col0 ) + - col0 * - col0 FROM tab0 cor0
----
1226
577
7922

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL - + col0 / ( - col0 ) + - col0 * - col0 FROM tab0 cor0
----
1226
577
7922

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4263
SELECT col0 - CAST( 27 AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
-206
-271
-699

skipif mysql # not compatible
query I rowsort label-4263
SELECT col0 - CAST ( 27 AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
-206
-271
-699

query I rowsort
SELECT col2 * col1 + - 52 FROM tab2 AS cor0
----
1482
594
785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 47 col0 FROM tab1 cor0
----
111
127
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-4266
SELECT ALL + col1 DIV + 43 + 50 * - col0 AS col0 FROM tab2 AS cor0
----
-350
-3899
-3950

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL + col1 / + 43 + 50 * - col0 AS col0 FROM tab2 AS cor0
----
-350
-3899
-3950

query I rowsort
SELECT ALL + col1 * - ( col0 ) * - col2 + col0 * + col2 FROM tab1 cor0
----
107520
40128
4374

onlyif mysql # use DIV operator for integer division
query I rowsort label-4268
SELECT tab0.col0 DIV + col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4268
SELECT tab0.col0 / + col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 52 + - col1 - - ( + col1 ) FROM tab2
----
52
52
52

query I rowsort
SELECT DISTINCT col1 * + col2 + - col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT col1 + col2 + 37 AS col1 FROM tab1 cor0
----
104
117
146

query I rowsort
SELECT DISTINCT - col1 + 25 FROM tab1 AS cor0
----
-1
12
15

query I rowsort
SELECT ALL col2 * ( col2 ) - col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT + col2 * - ( - col0 ) + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + cor0.col1 + col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT + tab2.col2 + ( - col0 + - col0 ) FROM tab2
----
-120
-130
13

query I rowsort
SELECT + col1 + 0 AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT + col2 + col2 * - 17 + col1 AS col1 FROM tab0
----
-1221
-442
81

query I rowsort
SELECT DISTINCT + col2 - - cor0.col0 * - col1 FROM tab1 cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 * + col2 col1 FROM tab1 AS cor0
----
2376
2508
4224

query I rowsort
SELECT - 55 + - col0 * 63 AS col1 FROM tab0 cor0
----
-1567
-2260
-5662

onlyif mysql # use DIV operator for integer division
query I rowsort label-4282
SELECT ALL - col1 DIV + cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL - col1 / + cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - 40 - + col0 FROM tab1
----
-104
-120
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-4284
SELECT ALL + tab0.col1 - + col2 DIV 17 FROM tab0
----
85
87
97

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL + tab0.col1 - + col2 / 17 FROM tab0
----
85
87
97

query I rowsort
SELECT ALL col2 - + col0 AS col0 FROM tab0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4286
SELECT ALL + col1 * col0 - col1 DIV col0 FROM tab1
----
1040
640
70

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL + col1 * col0 - col1 / col0 FROM tab1
----
1040
640
70

query I rowsort
SELECT DISTINCT col1 + + col1 * 49 + col2 AS col0 FROM tab0 AS cor0
----
4333
4632
4851

query I rowsort
SELECT 41 + col1 * + 87 AS col1 FROM tab0
----
7523
7958
8480

query I rowsort
SELECT ALL - - col2 - - col2 AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - col2 + col0 * cor0.col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL - 13 * + cor0.col1 + + col0 + + 32 * col1 AS col2 FROM tab1 AS cor0
----
254
327
497

query I rowsort
SELECT - 75 + + col1 FROM tab0 AS cor0
----
11
16
22

query I rowsort
SELECT DISTINCT + col1 + cor0.col2 + - col2 * ( + col0 * col1 ) FROM tab1 AS cor0
----
-36413
-4132
-99731

query I rowsort
SELECT ALL 62 * - col1 + + ( - 96 ) + col2 * 68 FROM tab2 AS cor0
----
-182
-1986
1434

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4295
SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4295
SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - ( - cor0.col1 ) + col2 * - 22 FROM tab2 AS cor0
----
-513
-563
-819

query I rowsort
SELECT 0 * 44 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - ( col1 ) * col2 * 77 AS col1 FROM tab0 AS cor0
----
-218526
-574574
-7469

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4299
SELECT ALL tab0.col2 + CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL tab0.col2 + CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + 50 AS col0 FROM tab2
----
-9
19
33

query I rowsort
SELECT + 45 + 42 * + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 493e3a121d26b257173e279e825f06d6

query I rowsort
SELECT ALL ( col1 + + col0 ) * + col0 FROM tab2
----
10686
266
7584

query I rowsort
SELECT DISTINCT 90 AS col2 FROM tab0, tab0 cor0
----
90

query I rowsort
SELECT tab0.col2 * + 83 * tab0.col2 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to b96068dd66133026691ee8bcfa4971df

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4305
SELECT - CAST( + 91 AS SIGNED ) AS col2 FROM tab0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-4305
SELECT - CAST ( + 91 AS INTEGER ) AS col2 FROM tab0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT - - col2 * col2 * + col0 AS col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT col2 * - cor0.col0 * + col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT col1 * + 93 FROM tab1
----
1209
2418
930

query I rowsort
SELECT ALL 87 FROM tab0, tab1 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT - col1 * col0 - col1 * + col1 FROM tab1 AS cor0
----
-1209
-740
-754

query I rowsort
SELECT + - ( - ( col1 ) ) + - col2 * col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT - 0 * 61 + - cor0.col0 + col2 * + cor0.col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT - - col1 * + col2 - + col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT - cor1.col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT + - ( col2 ) * 67 AS col0 FROM tab2 AS cor0
----
-1742
-1809
-2546

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1, tab2, tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - + col1 * cor0.col2 + col2 * + col0 + col0 AS col2 FROM tab2 AS cor0
----
-641
2435
572

query I rowsort
SELECT ALL - 85 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede

onlyif mysql # use DIV operator for integer division
query I rowsort label-4319
SELECT ALL col2 DIV - ( 65 ) AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL col2 / - ( 65 ) AS col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT - col2 * 73 AS col2 FROM tab2 AS cor0
----
-1898
-1971
-2774

onlyif mysql # use DIV operator for integer division
query I rowsort label-4321
SELECT + - 87 * col2 + - cor0.col2 DIV 22 AS col0 FROM tab0 AS cor0
----
-2872
-7137
-87

skipif mysql # not compatible
query I rowsort label-4321
SELECT + - 87 * col2 + - cor0.col2 / 22 AS col0 FROM tab0 AS cor0
----
-2872
-7137
-87

query I rowsort
SELECT + col2 + - 20 * - cor0.col2 FROM tab1 AS cor0
----
1134
1197
2016

query I rowsort
SELECT DISTINCT col1 * - ( - 44 ) FROM tab1
----
1144
440
572

query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab1, tab2 cor0
----
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4325
SELECT + tab1.col2 * ( 16 ) + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT + tab1.col2 * ( 16 ) + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + cor0.col1 * 21 + - tab0.col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 04272db05f5a3944affc8e63741acae4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4327
SELECT cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 + + 69 FROM tab0 AS cor0
----
-17
-22
-28

query I rowsort
SELECT DISTINCT + col0 - 77 AS col1 FROM tab2 AS cor0
----
-70
1
2

query I rowsort
SELECT 42 * - col0 FROM tab0
----
-1008
-1470
-3738

onlyif mysql # use DIV operator for integer division
query I rowsort label-4331
SELECT col2 * + 8 + + 86 * col0 DIV 76 FROM tab0
----
291
47
756

skipif mysql # not compatible
query I rowsort label-4331
SELECT col2 * + 8 + + 86 * col0 / 76 FROM tab0
----
291
47
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col2 * - col2 col0 FROM tab2
----
-1461
-735
-760

query I rowsort
SELECT col1 * - tab2.col0 * 28 AS col0 FROM tab2
----
-128856
-37604
-6076

query I rowsort
SELECT - - col1 * + 5 + col2 * + col2 FROM tab0 AS cor0
----
1519
486
7179

query I rowsort
SELECT ALL col0 * - col0 + ( - cor0.col0 ) + col2 AS col1 FROM tab0 AS cor0
----
-1259
-567
-7928

query I rowsort
SELECT ALL - - col1 * - col2 * 55 FROM tab2 AS cor0
----
-35530
-46035
-84370

query I rowsort
SELECT + 95 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT tab1.col2 * col0 * col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT + 46 * cor0.col2 * 55 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to b52d4ecd4da0748e7a7c2d86435d65ae

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4340
SELECT + CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT + CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 87 * + cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 43e812f295563e16ec5f372043a8e684

query I rowsort
SELECT ( + col2 ) + cor0.col0 * - col1 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4343
SELECT + + cor0.col1 + + col2 / - CAST( NULL AS SIGNED ) - 0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT + + cor0.col1 + + col2 / - CAST ( NULL AS INTEGER ) - 0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - cor0.col2 col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT 75 + + 84 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 99d564cc90dff23cb01696db1cdf1cf5

query I rowsort
SELECT DISTINCT - cor0.col0 + + cor0.col2 + + 99 AS col2 FROM tab2 cor0
----
119
47
58

query I rowsort
SELECT ALL cor0.col0 * + col1 + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + 53 - + col0 AS col0 FROM tab2 AS cor0
----
-25
-26
46

query I rowsort
SELECT DISTINCT + - ( col0 ) - - col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + 26 * + col1 AS col1 FROM tab2
----
1534
442
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-4351
SELECT ALL tab2.col2 DIV + col1 AS col1 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL tab2.col2 / + col1 AS col1 FROM tab2
----
0
0
2

query I rowsort
SELECT + col1 * col1 + col2 - col1 AS col0 FROM tab1 AS cor0
----
147
252
704

query I rowsort
SELECT DISTINCT + col1 * ( - cor0.col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col2 * - ( col2 ) + col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT ALL + + cor0.col0 - - col0 * cor0.col1 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 7 - col1 col0 FROM tab1 AS cor0
----
35
54
90

query I rowsort
SELECT ALL col2 + - ( col0 ) AS col2 FROM tab0 cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4358
SELECT + col1 / + CAST( NULL AS SIGNED ) + col1 * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4358
SELECT + col1 / + CAST ( NULL AS INTEGER ) + col1 * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 76 * - tab0.col1 FROM tab0
----
-6536
-6916
-7372

query I rowsort
SELECT - 63 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2

query I rowsort
SELECT + col1 * 49 * col0 FROM tab2 cor0
----
10633
225498
65807

query I rowsort
SELECT ALL + cor0.col2 - col0 * - col1 AS col0 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-4363
SELECT DISTINCT - + col2 DIV + col2 + 33 AS col0 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT - + col2 / + col2 + 33 AS col0 FROM tab1 AS cor0
----
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4364
SELECT col0 * - CAST( NULL AS SIGNED ) - col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT col0 * - CAST ( NULL AS INTEGER ) - col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4365
SELECT DISTINCT - ( - 82 ) - - col1 DIV - ( 60 * + col2 + cor0.col0 ) FROM tab2 cor0
----
82

skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT - ( - 82 ) - - col1 / - ( 60 * + col2 + cor0.col0 ) FROM tab2 cor0
----
82

query I rowsort
SELECT - - col0 + 62 * col2 FROM tab0 AS cor0
----
2070
5173
97

query I rowsort
SELECT DISTINCT + col1 + + col2 * col2 * - col1 + - col1 AS col0 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT + ( - col0 ) + col1 * + col1 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT - 67 * - col0 AS col1 FROM tab1 AS cor0
----
201
4288
5360

onlyif mysql # use DIV operator for integer division
query I rowsort label-4370
SELECT + - col0 DIV col1 + col2 AS col0 FROM tab1 cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-4370
SELECT + - col0 / col1 + col2 AS col0 FROM tab1 cor0
----
51
54
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4371
SELECT ALL - CAST( col2 AS SIGNED ) * col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL - CAST ( col2 AS INTEGER ) * col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + - 49 * col1 AS col1 FROM tab2 AS cor0
----
-1519
-2891
-833

query I rowsort
SELECT + - cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4374
SELECT ALL - col2 DIV 8 FROM tab1 AS cor0
----
-12
-6
-7

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL - col2 / 8 FROM tab1 AS cor0
----
-12
-6
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4375
SELECT DISTINCT - 39 + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT - 39 + col0 / col0 AS col2 FROM tab1 AS cor0
----
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4376
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 43 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
-1333
-3435
54

query I rowsort
SELECT DISTINCT + 65 * - 40 + col0 * col2 AS col2 FROM tab1 AS cor0
----
-2438
1048
5080

query I rowsort
SELECT DISTINCT + + col1 * 18 AS col2 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT + col1 + 20 * col1 FROM tab2 AS cor0
----
1239
357
651

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT + - 22 + col1 AS col0 FROM tab0 cor0
----
64
69
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4383
SELECT DISTINCT - - CAST( + cor0.col2 AS SIGNED ) * + col2 + col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT - - CAST ( + cor0.col2 AS INTEGER ) * + col2 + col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL + col2 * + 17 AS col0 FROM tab0 cor0
----
1394
17
561

query I rowsort
SELECT DISTINCT col1 * - col1 + ( + col2 * col1 ) FROM tab0 AS cor0
----
-4558
-819
-9312

query I rowsort
SELECT ALL + cor0.col0 + 12 * 25 FROM tab1, tab2 AS cor0
----
9 values hashing to b321ce1cc605ad248e907463471060fd

query I rowsort
SELECT + + col1 * col2 * col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL - + 22 * col2 FROM tab0 AS cor0
----
-1804
-22
-726

query I rowsort
SELECT ALL ( 23 ) FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT ALL + col0 * ( - col1 ) - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 72 * col0 col1 FROM tab2 cor0
----
-473
-5557
-5671

onlyif mysql # use DIV operator for integer division
query I rowsort label-4392
SELECT - - col0 * 40 DIV ( + col0 ) AS col0 FROM tab2 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-4392
SELECT - - col0 * 40 / ( + col0 ) AS col0 FROM tab2 AS cor0
----
40
40
40

query I rowsort
SELECT ALL + col1 + + 10 FROM tab2 cor0
----
27
41
69

query I rowsort
SELECT DISTINCT + - col2 + - col0 + - 26 * col0 AS col0 FROM tab2 AS cor0
----
-2132
-216
-2171

query I rowsort
SELECT col0 * 34 + - col1 FROM tab0 AS cor0
----
1093
2935
730

query I rowsort
SELECT + col2 * col2 + 49 * - col1 + col2 FROM tab2 AS cor0
----
-2189
-763
649

query I rowsort
SELECT + cor0.col1 + - col1 + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - 67 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 cor2
----
79

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 cor1, tab2, tab1 AS cor2
----
3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c

query I rowsort
SELECT col2 - - col2 AS col2 FROM tab2 AS cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 79 * col2 + + col2 col2 FROM tab1 AS cor0
----
-4212
-4446
-7488

query I rowsort
SELECT DISTINCT 21 * col2 - + col1 * col1 FROM tab0 AS cor0
----
-6559
-6703
-9388

query I rowsort
SELECT + 38 - col2 FROM tab0 AS cor0
----
-44
37
5

query I rowsort
SELECT - ( col1 ) * - col0 + ( col0 ) FROM tab2
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 * - col2 col1 FROM tab0
----
2673
6642
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4407
SELECT col0 + tab2.col1 * - CAST( col0 AS SIGNED ) FROM tab2
----
-1264
-210
-4524

skipif mysql # not compatible
query I rowsort label-4407
SELECT col0 + tab2.col1 * - CAST ( col0 AS INTEGER ) FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT + 95 * + col2 * col0 FROM tab2
----
17955
192660
285190

query I rowsort
SELECT ALL cor0.col1 * cor0.col1 + 75 * - 44 + col0 AS col1 FROM tab1 cor0
----
-2621
-3051
-3136

query I rowsort
SELECT DISTINCT - col1 - - col0 * + col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT 52 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT - 22 * - col2 AS col1 FROM tab2
----
572
594
836

query I rowsort
SELECT DISTINCT + ( + col0 ) * col2 + - col0 AS col1 FROM tab0
----
0
7209
768

query I rowsort
SELECT ALL - - col2 + + 36 FROM tab2 AS cor0
----
62
63
74

query I rowsort
SELECT + col2 + + col0 * col0 FROM tab2 cor0
----
6110
6279
76

query I rowsort
SELECT + + col1 + - ( 33 ) - col2 FROM tab2 AS cor0
----
-29
-54
0

query I rowsort
SELECT ALL - col1 * - ( ( - tab1.col2 ) * 69 ) - + col2 * + col2 * + col0 FROM tab1
----
-105624
-247266
-823392

query I rowsort
SELECT - col0 - + ( 39 * - col1 + ( cor0.col2 ) * - col0 ) FROM tab1 AS cor0
----
1173
3974
8107

query I rowsort
SELECT + - ( + 61 ) * - col1 AS col0 FROM tab1 AS cor0
----
1586
610
793

query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4421
SELECT + col1 + col0 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4421
SELECT + col1 + col0 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4422
SELECT - + col1 DIV + 51 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4422
SELECT - + col1 / + 51 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 30 * col2 FROM tab2 cor0
----
1140
780
810

query I rowsort
SELECT - - col1 * col0 * + 43 AS col1 FROM tab2 AS cor0
----
197886
57749
9331

query I rowsort
SELECT col1 * col1 * col1 AS col1 FROM tab1 AS cor0
----
1000
17576
2197

query I rowsort
SELECT - 71 + col2 FROM tab1 AS cor0
----
-14
-17
25

query I rowsort
SELECT - col1 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT DISTINCT - + 58 + col0 FROM tab2 cor0
----
-51
20
21

query I rowsort
SELECT - col1 * col2 - col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT - col0 * col2 * - col0 FROM tab1 AS cor0
----
233472
486
614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 col2 FROM tab1, tab2 AS cor0
----
-68

query I rowsort
SELECT DISTINCT - 29 + + 65 FROM tab0 cor0
----
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-4433
SELECT ALL - 69 * col1 + col0 DIV col2 FROM tab0 AS cor0
----
-5934
-6278
-6658

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL - 69 * col1 + col0 / col2 FROM tab0 AS cor0
----
-5934
-6278
-6658

query I rowsort
SELECT ALL 41 + + 1 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT cor0.col1 * ( cor0.col2 ) * cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 3a28c7970b18026d3cf25e5eeb0a1013

query I rowsort
SELECT DISTINCT + 96 * col2 + + 75 * - cor0.col2 FROM tab0 AS cor0
----
1722
21
693

query I rowsort
SELECT 57 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 220a93709e207779b34ef74b544764a5

onlyif mysql # use DIV operator for integer division
query I rowsort label-4438
SELECT ALL col0 DIV 66 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL col0 / 66 FROM tab0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4439
SELECT ( col2 ) DIV col1 AS col0 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4439
SELECT ( col2 ) / col1 AS col0 FROM tab1
----
2
5
7

query I rowsort
SELECT DISTINCT - 76 + cor0.col2 FROM tab1 AS cor0
----
-19
-22
20

query I rowsort
SELECT DISTINCT 8 * + col0 + + col0 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT 29 * col1 + cor0.col2 * + col1 AS col0 FROM tab1 cor0
----
1625
2158
860

onlyif mysql # use DIV operator for integer division
query I rowsort label-4443
SELECT DISTINCT - - ( col2 ) DIV + col1 + - 20 * col0 + + 56 AS col1 FROM tab1 AS cor0
----
-1219
-1537
-2

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT - - ( col2 ) / + col1 + - 20 * col0 + + 56 AS col1 FROM tab1 AS cor0
----
-1219
-1537
-2

query I rowsort
SELECT ALL 3 + tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8bf6d2ed671ee772644c6e6db1f4158e

query I rowsort
SELECT + ( 54 ) * col2 FROM tab2
----
1404
1458
2052

onlyif mysql # use DIV operator for integer division
query I rowsort label-4446
SELECT ALL - col2 DIV - col1 - col1 * 92 AS col2 FROM tab0
----
-7912
-8372
-8924

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL - col2 / - col1 - col1 * 92 AS col2 FROM tab0
----
-7912
-8372
-8924

onlyif mysql # use DIV operator for integer division
query I rowsort label-4447
SELECT ALL + tab1.col1 DIV - 19 - col1 * - ( - col0 ) FROM tab1
----
-1040
-640
-79

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL + tab1.col1 / - 19 - col1 * - ( - col0 ) FROM tab1
----
-1040
-640
-79

query I rowsort
SELECT - + cor0.col0 * 85 FROM tab1 AS cor0
----
-255
-5440
-6800

onlyif mysql # use DIV operator for integer division
query I rowsort label-4449
SELECT ALL - cor0.col2 + 49 DIV - 2 AS col0 FROM tab2 AS cor0
----
-50
-51
-62

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL - cor0.col2 + 49 / - 2 AS col0 FROM tab2 AS cor0
----
-50
-51
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4450
SELECT DISTINCT + + col1 * col2 DIV 35 + col0 AS col1 FROM tab2 AS cor0
----
121
30
97

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT + + col1 * col2 / 35 + col0 AS col1 FROM tab2 AS cor0
----
121
30
97

query I rowsort
SELECT DISTINCT - col0 * col0 * - 5 - col2 FROM tab2 AS cor0
----
218
30394
31167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 74 col2 FROM tab0 AS cor0
----
-6364
-6734
-7178

query I rowsort
SELECT ALL + tab2.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # use DIV operator for integer division
query I rowsort label-4454
SELECT tab1.col1 + 17 DIV - col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4454
SELECT tab1.col1 + 17 / - col2 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4455
SELECT col2 DIV - CAST( 9 AS SIGNED ) + - col1 * 33 FROM tab2
----
-1026
-1949
-565

skipif mysql # not compatible
query I rowsort label-4455
SELECT col2 / - CAST ( 9 AS INTEGER ) + - col1 * 33 FROM tab2
----
-1026
-1949
-565

query I rowsort
SELECT DISTINCT - tab0.col0 * 74 FROM tab0
----
-1776
-2590
-6586

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4457
SELECT ALL + col2 * CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL + col2 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT + col2 + + col0 * 35 FROM tab1
----
159
2297
2896

query I rowsort
SELECT - + 46 * + ( col0 ) AS col0 FROM tab2 AS cor0
----
-322
-3588
-3634

query I rowsort
SELECT - + 45 * + col1 AS col1 FROM tab1 AS cor0
----
-1170
-450
-585

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4461
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * cor0.col1 - - 32 AS col0 FROM tab1 cor0
----
-1008
-46
-608

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * cor0.col1 - - 32 AS col0 FROM tab1 cor0
----
-1008
-46
-608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 69 * cor0.col2 col2 FROM tab1 AS cor0
----
3700
3923
6611

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4464
SELECT DISTINCT CAST( col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT CAST ( col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + 84 * - col0 AS col1 FROM tab2 cor0
----
-588
-6552
-6636

query I rowsort
SELECT DISTINCT col1 * - 0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + ( 65 ) AS col1 FROM tab2 AS cor0
----
65
65
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4468
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - 23 + - col1 * + 42 + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - 23 + - col1 * + 42 + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 58 - col0 AS col2 FROM tab1 cor0
----
-22
-6
55

query I rowsort
SELECT + - 81 + + 44 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1283
2515
667

query I rowsort
SELECT 23 + 86 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to bbd0ebafa22aa6749e6407ebd0864df6

query I rowsort
SELECT ALL + 4 + - col0 + ( col1 ) FROM tab1
----
-50
-63
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 * + col1 col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT 32 * - col1 + + cor0.col0 * cor0.col2 FROM tab0 cor0
----
-1960
-3069
4386

query I rowsort
SELECT ALL - + 30 * cor0.col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-20280
-21870
-43320

query I rowsort
SELECT DISTINCT cor0.col1 + col0 FROM tab0 cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 * - col2 - 92 col0 FROM tab2 AS cor0
----
-690
-713
-966

query I rowsort
SELECT DISTINCT + 60 * col1 AS col1 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT + 19 * cor0.col0 FROM tab0 AS cor0
----
1691
456
665

query I rowsort
SELECT DISTINCT ( - col2 ) * - ( col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + + col1 * + 61 FROM tab1 AS cor0
----
1586
610
793

onlyif mysql # use DIV operator for integer division
query I rowsort label-4482
SELECT ALL - col2 + + col0 DIV ( col0 + 91 ) FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - col2 + + col0 / ( col0 + 91 ) FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - col2 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + 15 * - cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 77d6b733bebd44c3c40a9645fbe19ab8

query I rowsort
SELECT - tab0.col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4486
SELECT ALL + 30 * col2 + + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL + 30 * col2 + + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4487
SELECT + cor0.col1 * CAST( ( + col1 ) AS SIGNED ) + + cor0.col1 * + col0 FROM tab0 AS cor0
----
12804
16380
9460

skipif mysql # not compatible
query I rowsort label-4487
SELECT + cor0.col1 * CAST ( ( + col1 ) AS INTEGER ) + + cor0.col1 * + col0 FROM tab0 AS cor0
----
12804
16380
9460

query I rowsort
SELECT + col1 * + 28 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
290
377
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 75 col0 FROM tab0
----
-42
-74
7

query I rowsort
SELECT DISTINCT + tab0.col1 * col2 * + col0 + + col1 * col2 + col2 FROM tab0
----
3493
671662
70983

query I rowsort
SELECT DISTINCT col2 + col2 + - tab1.col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4492
SELECT - 43 DIV col1 FROM tab1
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-4492
SELECT - 43 / col1 FROM tab1
----
-1
-3
-4

query I rowsort
SELECT + - 23 + ( + col2 ) FROM tab2 AS cor0
----
15
3
4

query I rowsort
SELECT DISTINCT + 76 * + col0 FROM tab2 AS cor0
----
532
5928
6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-4495
SELECT col0 - col1 * col1 DIV - col1 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-4495
SELECT col0 - col1 * col1 / - col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - col1 * - ( - col2 ) FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL 72 * cor0.col0 FROM tab0 AS cor0
----
1728
2520
6408

query I rowsort
SELECT - col2 * - cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT - - 70 - col2 * + col1 AS col2 FROM tab0 cor0
----
-27
-2768
-7392

query I rowsort
SELECT + ( col0 ) + + col2 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT 8 * - col2 AS col0 FROM tab1
----
-432
-456
-768

query I rowsort
SELECT + 77 AS col0 FROM tab1
----
77
77
77

query I rowsort
SELECT - + col1 * + cor0.col2 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + + col1 * col0 + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT 5 - - col1 AS col2 FROM tab2 AS cor0
----
22
36
64

query I rowsort
SELECT DISTINCT - col1 + col2 * col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL col1 * 7 AS col0 FROM tab2 AS cor0
----
119
217
413

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4509
SELECT DISTINCT - col0 + - CAST( NULL AS DECIMAL ) * - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT - col0 + - CAST ( NULL AS REAL ) * - col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4511
SELECT + - cor0.col1 * - CAST( col2 AS SIGNED ) * col0 FROM tab2 AS cor0
----
119652
51034
5859

skipif mysql # not compatible
query I rowsort label-4511
SELECT + - cor0.col1 * - CAST ( col2 AS INTEGER ) * col0 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-4512
SELECT - - col1 DIV + 68 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4512
SELECT - - col1 / + 68 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + + col2 + col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ( col2 ) + - col2 * col0 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT - 71 * col0 * - col2 FROM tab0 AS cor0
----
2485
518158
56232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 9 col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT + + 98 * col0 FROM tab1 AS cor0
----
294
6272
7840

query I rowsort
SELECT + col0 * - cor0.col0 + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-4519
SELECT + - col2 DIV + cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4519
SELECT + - col2 / + cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col1 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * - col0 + col2 AS col0 FROM tab1 AS cor0
----
-105
-3527
-7504

onlyif mysql # use DIV operator for integer division
query I rowsort label-4522
SELECT DISTINCT col1 + + col0 * - col2 DIV col2 FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT col1 + + col0 * - col2 / col2 FROM tab1 AS cor0
----
-54
-67
23

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 + + col2 IN ( cor0.col1 + + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL col2 * col0 + col2 FROM tab2 AS cor0
----
2054
216
3040

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 ) >= NULL AND NULL <= + col2
----

query I rowsort
SELECT col2 + - col1 * + col2 AS col2 FROM tab0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT - + 57 AS col1 FROM tab2 cor0
----
-57

query I rowsort
SELECT - col1 + col1 * col2 FROM tab1 cor0
----
1235
1378
560

query I rowsort
SELECT ALL - 64 + - col2 AS col2 FROM tab1 AS cor0
----
-118
-121
-160

onlyif mysql # use DIV operator for integer division
query I rowsort label-4531
SELECT - + col1 * cor0.col2 + + col2 DIV col1 AS col2 FROM tab2 AS cor0
----
-1534
-644
-837

skipif mysql # not compatible
query I rowsort label-4531
SELECT - + col1 * cor0.col2 + + col2 / col1 AS col2 FROM tab2 AS cor0
----
-1534
-644
-837

query I rowsort
SELECT - + col2 * + col1 * + col2 FROM tab1 cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT col0 * ( + 16 ) * col1 FROM tab0 AS cor0
----
129584
33024
54320

query I rowsort
SELECT + col2 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL col1 * 99 FROM tab2 cor0
----
1683
3069
5841

onlyif mysql # use DIV operator for integer division
query I rowsort label-4536
SELECT - col2 DIV - 96 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4536
SELECT - col2 / - 96 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * + 67 * + 1 AS col2 FROM tab2
----
469
5226
5293

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab2 cor1, tab0, tab2 cor2
----
3645 values hashing to 6a08afba67ce3272fad6d766e76c67f0

query I rowsort
SELECT ALL + - cor0.col0 * col0 FROM tab2 cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-4540
SELECT DISTINCT - col1 DIV 63 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT - col1 / 63 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + 60 col1 FROM tab2 AS cor0
----
-1020
-1860
-3540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * ( col0 ) - - col2 col2 FROM tab2 cor0
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 + - col0 col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT - col1 * ( + 28 ) FROM tab0 AS cor0
----
-2408
-2548
-2716

onlyif mysql # use DIV operator for integer division
query I rowsort label-4545
SELECT DISTINCT - col1 DIV ( - cor0.col0 ) FROM tab2 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT - col1 / ( - cor0.col0 ) FROM tab2 AS cor0
----
0
4

query I rowsort
SELECT DISTINCT - col0 + - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT col0 + col0 * col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT - 72 AS col2 FROM tab1, tab1 AS cor0
----
-72

query I rowsort
SELECT ALL 93 + col0 * - col1 + + col0 AS col1 FROM tab0
----
-1947
-3267
-7917

query I rowsort
SELECT - col1 + + tab1.col0 * + col2 * col0 + col0 * + col2 FROM tab1
----
237110
622
622067

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - + 63 + col1 FROM tab1 AS cor0
----
-37
-50
-53

query I rowsort
SELECT ALL 80 * - col2 * 62 AS col0 FROM tab0 AS cor0
----
-163680
-406720
-4960

query I rowsort
SELECT DISTINCT + 66 * col0 AS col0 FROM tab2 cor0
----
462
5148
5214

query I rowsort
SELECT 69 * - col0 AS col1 FROM tab1 cor0
----
-207
-4416
-5520

onlyif mysql # use DIV operator for integer division
query I rowsort label-4556
SELECT ALL - col2 + col1 DIV 73 col0 FROM tab0 AS cor0
----
-32
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL - col2 + col1 / 73 col0 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT - col1 * - col0 + + col0 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
1107
55
694

query I rowsort
SELECT tab1.col2 * - 36 FROM tab1
----
-1944
-2052
-3456

query I rowsort
SELECT 48 AS col0 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4560
SELECT - CAST( - ( col0 ) AS SIGNED ) - - tab2.col0 FROM tab2
----
14
156
158

skipif mysql # not compatible
query I rowsort label-4560
SELECT - CAST ( - ( col0 ) AS INTEGER ) - - tab2.col0 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT 47 + 38 AS col0 FROM tab2
----
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4562
SELECT ALL CAST( + col2 AS SIGNED ) + col0 DIV - 37 + 49 * tab2.col0 FROM tab2
----
370
3846
3907

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL CAST ( + col2 AS INTEGER ) + col0 / - 37 + 49 * tab2.col0 FROM tab2
----
370
3846
3907

query I rowsort
SELECT ALL - 87 * col1 * - cor0.col1 FROM tab0 AS cor0
----
643452
720447
818583

onlyif mysql # use DIV operator for integer division
query I rowsort label-4564
SELECT ALL - 51 DIV - cor0.col0 FROM tab1 AS cor0
----
0
0
17

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL - 51 / - cor0.col0 FROM tab1 AS cor0
----
0
0
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4565
SELECT + 87 * + col0 + + CAST( col1 + + col1 AS SIGNED ) FROM tab2 AS cor0
----
671
6904
6907

skipif mysql # not compatible
query I rowsort label-4565
SELECT + 87 * + col0 + + CAST ( col1 + + col1 AS INTEGER ) FROM tab2 AS cor0
----
671
6904
6907

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4566
SELECT col2 * 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-4566
SELECT col2 * cor0.col1 + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 40 + + cor0.col2 * + cor0.col0 AS col0 FROM tab1 cor0
----
202
3688
7720

query I rowsort
SELECT DISTINCT col1 + + tab0.col2 * col1 FROM tab0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-4569
SELECT - 37 DIV - col0 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4569
SELECT - 37 / - col0 FROM tab0 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 + + col1 col1 FROM tab1
----
41
44
57

query I rowsort
SELECT - 37 * col1 AS col0 FROM tab1
----
-370
-481
-962

query I rowsort
SELECT - col1 + 94 * col0 FROM tab1 AS cor0
----
256
6006
7507

onlyif mysql # use DIV operator for integer division
query I rowsort label-4573
SELECT - col2 * col0 DIV col1 FROM tab1 cor0
----
-364
-590
-6

skipif mysql # not compatible
query I rowsort label-4573
SELECT - col2 * col0 / col1 FROM tab1 cor0
----
-364
-590
-6

query I rowsort
SELECT col1 * + col2 * col1 AS col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT + col0 + 32 * - 42 FROM tab1 AS cor0
----
-1264
-1280
-1341

query I rowsort
SELECT 70 - col2 FROM tab1
----
-26
13
16

query I rowsort
SELECT ALL col0 * + col0 + col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT col0 * col2 + 14 * col2 * + tab1.col0 AS col0 FROM tab1
----
115200
2430
54720

query I rowsort
SELECT + col2 * tab0.col1 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT 76 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT DISTINCT 71 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4582
SELECT DISTINCT col1 - - CAST( 45 AS SIGNED ) FROM tab2
----
104
62
76

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT col1 - - CAST ( 45 AS INTEGER ) FROM tab2
----
104
62
76

query I rowsort
SELECT ALL + - 81 * - col1 + - col0 AS col1 FROM tab2 AS cor0
----
1298
2504
4701

query I rowsort
SELECT DISTINCT - col2 * + 53 - - col2 AS col2 FROM tab0 AS cor0
----
-1716
-4264
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4585
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4586
SELECT + CAST( 43 AS SIGNED ) * - col1 * - 64 - 26 FROM tab0 cor0
----
236646
250406
266918

skipif mysql # not compatible
query I rowsort label-4586
SELECT + CAST ( 43 AS INTEGER ) * - col1 * - 64 - 26 FROM tab0 cor0
----
236646
250406
266918

query I rowsort
SELECT ALL tab2.col2 - 54 AS col1 FROM tab2
----
-16
-27
-28

query I rowsort
SELECT ALL col0 - 33 AS col1 FROM tab2
----
-26
45
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4589
SELECT ALL - CAST( NULL AS SIGNED ) + - ( + col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL - CAST ( NULL AS INTEGER ) + - ( + col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4590
SELECT ALL - 44 + col1 DIV + col2 AS col1 FROM tab0
----
-42
-43
53

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL - 44 + col1 / + col2 AS col1 FROM tab0
----
-42
-43
53

query I rowsort
SELECT ALL - tab2.col0 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1, tab2 AS cor1
----
243 values hashing to b2b584cb071e1d63bf99874835e1bfc4

query I rowsort
SELECT - 28 * col0 FROM tab1
----
-1792
-2240
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4593
SELECT + 84 + tab1.col0 + + CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4593
SELECT + 84 + tab1.col0 + + CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col0 ) * - cor0.col1 + ( col0 ) col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL + ( cor0.col2 ) + col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT col2 + - ( - col0 ) AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - ( + 77 ) FROM tab2 AS cor0
----
-77
-77
-77

query I rowsort
SELECT ALL + 3 + + 3 * + col0 FROM tab0 AS cor0
----
108
270
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4599
SELECT ALL - col0 * col1 + cor0.col2 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL - col0 * col1 + cor0.col2 - 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 DISTINCT + 7 * + cor0.col0 col0 FROM tab1 AS cor0
----
21
448
560

query I rowsort
SELECT DISTINCT - - 1 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - + col0 * + col0 + - cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
-1322
-15383
-3414

query I rowsort
SELECT + col1 + + col1 * - col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + ( col1 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + 13 AS col1 FROM tab1 cor0
----
13
13
13

query I rowsort
SELECT - cor0.col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL + 4 * - cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 796d9f10295bb03e671430ba1f4138e5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 + - col1 ) col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 92 * + ( + col1 ) AS col0 FROM tab2 AS cor0
----
1564
2852
5428

query I rowsort
SELECT - 55 + col0 AS col1 FROM tab2 AS cor0
----
-48
23
24

query I rowsort
SELECT ALL - + col1 + + col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - 5 * col2 FROM tab0 cor0
----
-165
-410
-5

query I rowsort
SELECT ALL - col0 - ( col1 * col1 ) FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT ALL - 52 AS col0 FROM tab2
----
-52
-52
-52

query I rowsort
SELECT ALL col1 * col1 * tab2.col2 AS col0 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ALL + + col0 * - col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT col1 + col2 + - ( 94 ) AS col0 FROM tab2 AS cor0
----
-36
-39
-9

query I rowsort
SELECT ALL + + cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4619
SELECT DISTINCT + cor0.col2 DIV col0 AS col1 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT + cor0.col2 / col0 AS col1 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL - - 8 * col1 AS col0 FROM tab2 AS cor0
----
136
248
472

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4621
SELECT col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4621
SELECT col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * + 42 AS col0 FROM tab0 AS cor0
----
-1008
-1470
-3738

query I rowsort
SELECT col0 * 38 FROM tab0 AS cor0
----
1330
3382
912

onlyif mysql # use DIV operator for integer division
query I rowsort label-4624
SELECT DISTINCT - col2 DIV 45 + - tab0.col1 * tab0.col1 AS col0 FROM tab0
----
-7396
-8282
-9409

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT - col2 / 45 + - tab0.col1 * tab0.col1 AS col0 FROM tab0
----
-7396
-8282
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4625
SELECT ALL - CAST( + 81 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL - CAST ( + 81 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

query I rowsort
SELECT + 16 + cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1ffc8833304b6812bf475223957ec1a8

query I rowsort
SELECT + col1 * - 8 AS col0 FROM tab1
----
-104
-208
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4628
SELECT + col0 * col1 + col1 DIV col0 AS col1 FROM tab2 cor0
----
1343
221
4602

skipif mysql # not compatible
query I rowsort label-4628
SELECT + col0 * col1 + col1 / col0 AS col1 FROM tab2 cor0
----
1343
221
4602

query I rowsort
SELECT + cor0.col2 * ( col2 ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - col0 * col1 + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4631
SELECT + col1 * - CAST( NULL AS SIGNED ) + - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT + col1 * - CAST ( NULL AS INTEGER ) + - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4632
SELECT col2 * + col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-4632
SELECT col2 * + col1 / - col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT col2 * + col0 + col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-4634
SELECT ALL ( col0 ) DIV + col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL ( col0 ) / + col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + col2 * 90 AS col1 FROM tab2 AS cor0
----
2340
2430
3420

query I rowsort
SELECT - 76 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

query I rowsort
SELECT DISTINCT - 56 AS col0 FROM tab1, tab0 AS cor0
----
-56

query I rowsort
SELECT ALL 65 * + tab1.col0 - - tab1.col1 * tab1.col2 FROM tab1
----
1599
4730
6448

query I rowsort
SELECT - + col0 * col1 - + 5 FROM tab1 cor0
----
-1045
-645
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4640
SELECT - CAST( NULL AS SIGNED ) * + col2 * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4640
SELECT - CAST ( NULL AS INTEGER ) * + col2 * + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - tab1.col1 AS col2 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4642
SELECT - col0 * col2 * CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
-207936
-737280
-8748

skipif mysql # not compatible
query I rowsort label-4642
SELECT - col0 * col2 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT col0 + 5 FROM tab1 AS cor0
----
69
8
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 64 col2 FROM tab0 AS cor0
----
-22
-27
-33

query I rowsort
SELECT DISTINCT col2 + 18 FROM tab1 AS cor0
----
114
72
75

query I rowsort
SELECT DISTINCT - col1 + 69 * col0 AS col0 FROM tab1 AS cor0
----
181
4406
5507

query I rowsort
SELECT - - col0 + + 40 FROM tab0 AS cor0
----
129
64
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-4648
SELECT DISTINCT 84 DIV col2 FROM tab0
----
1
2
84

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT 84 / col2 FROM tab0
----
1
2
84

query I rowsort
SELECT DISTINCT col1 + + col1 + col0 AS col0 FROM tab0
----
196
229
271

query I rowsort
SELECT + col0 * col2 + col2 * tab1.col2 AS col1 FROM tab1
----
16896
3078
6897

query I rowsort
SELECT tab1.col0 + col0 - col2 AS col1 FROM tab1
----
-48
64
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - cor0.col0 ) + 76 col0 FROM tab2 cor0
----
-2
-3
69

query I rowsort
SELECT DISTINCT col0 + - col1 * - col0 AS col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT col2 - col0 * col1 * - col2 AS col1 FROM tab2
----
119678
51072
5886

query III rowsort
SELECT * FROM tab2 WHERE col1 * + col2 + - col0 IN ( + col2 + col2 )
----

query I rowsort
SELECT col0 FROM tab2 WHERE NULL NOT IN ( + col2 + + col2 )
----

query I rowsort
SELECT - col2 * col0 * col2 AS col2 FROM tab1
----
-207936
-737280
-8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - tab1.col1 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 83 * - tab0.col1 * - 52 FROM tab0
----
371176
392756
418652

query I rowsort
SELECT ALL + + 70 AS col0 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT DISTINCT - + col0 * - col0 + col0 * cor0.col0 FROM tab1 AS cor0
----
12800
18
8192

query I rowsort
SELECT DISTINCT + col1 * - col1 + + 9 * 43 FROM tab2 AS cor0
----
-3094
-574
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 + col0 col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + 85 * col2 FROM tab2 cor0
----
2210
2295
3230

query I rowsort
SELECT DISTINCT col2 + + tab0.col0 + col1 * - col0 AS col1 FROM tab0
----
-2007
-3359
-7928

query I rowsort
SELECT + col0 * - col0 * - col0 FROM tab2
----
343
474552
493039

query I rowsort
SELECT ALL + col0 + - col2 + - col0 FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4668
SELECT tab0.col0 DIV col1 + col2 * col1 FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-4668
SELECT tab0.col0 / col1 + col2 * col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - tab1.col2 * + col0 - - col1 FROM tab1
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-4670
SELECT ALL - col2 DIV + col1 AS col0 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL - col2 / + col1 AS col0 FROM tab1
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 * + col2 + - col1 * + col0 + - col0 * + col0 col1 FROM tab2
----
-22865
-32132
-50570

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 < ( col2 * col1 )
----

query I rowsort
SELECT DISTINCT tab1.col1 AS col1 FROM tab1 WHERE NOT + tab1.col0 / col0 - - col1 IN ( col1 * col0 * - tab1.col2 + - col0 * col1 )
----
10
13
26

query I rowsort
SELECT ALL + col1 + col2 + - col2 AS col2 FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4675
SELECT DISTINCT col1 * - col2 + col2 DIV col1 - - col1 * - col0 FROM tab0
----
-15561
-3492
-4902

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT col1 * - col2 + col2 / col1 - - col1 * - col0 FROM tab0
----
-15561
-3492
-4902

query I rowsort
SELECT ALL col1 + - col1 + col1 AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT - col2 - + col2 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + col0 * col1 * col1
----

query I rowsort
SELECT + cor0.col2 * col1 - col0 FROM tab1 AS cor0
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-4679
SELECT - col2 DIV col0 + + tab1.col1 FROM tab1
----
10
12
8

skipif mysql # not compatible
query I rowsort label-4679
SELECT - col2 / col0 + + tab1.col1 FROM tab1
----
10
12
8

query I rowsort
SELECT DISTINCT - col2 + col1 * - col2 AS col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT + col2 * - tab0.col0 + col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - col0 + col2 * + col1 FROM tab0
----
2814
62
7373

query I rowsort
SELECT ALL - col1 + col0 * col1 AS col0 FROM tab1
----
1027
52
630

query III rowsort
SELECT * FROM tab0 WHERE + tab0.col2 + col1 + col1 * col0 NOT IN ( + col2 + col1 + + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL - tab1.col0 * - col0 * col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT NULL IN ( col1 * col0 )
----

query I rowsort
SELECT DISTINCT tab1.col2 + col0 * - col0 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT col0 + tab2.col1 * + col2 AS col2 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-4689
SELECT DISTINCT - col2 - - col0 * col2 DIV tab0.col2 FROM tab0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT - col2 - - col0 * col2 / tab0.col2 FROM tab0
----
-9
34
7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) >= col1
----

query I rowsort
SELECT DISTINCT 37 + - col1 + + col1 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col2 AS REAL ) AS col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL + + 47 * 27 + col1 FROM tab1 AS cor0
----
1279
1282
1295

query I rowsort
SELECT ALL col1 * - col1 + + col2 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT col1 + - col0 * + tab0.col2 + - col1 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - 15 * - 72 AS col1 FROM tab1, tab2, tab1 AS cor0
----
1080

query I rowsort
SELECT DISTINCT 1 * + col2 + - col0 + + col0 * + col2 AS col2 FROM tab0
----
1
7291
801

query I rowsort
SELECT ( + 20 ) AS col1 FROM tab0
----
20
20
20

query I rowsort
SELECT + 46 * cor0.col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 1c6a3d85aee9ac407b6b1c327ddaa39e

query I rowsort
SELECT 98 * + col2 FROM tab1
----
5292
5586
9408

query I rowsort
SELECT - ( - col0 ) * col1 * - 46 FROM tab2
----
-211692
-61778
-9982

query I rowsort
SELECT DISTINCT ( - col1 ) * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ( - ( - col2 ) ) - + col1 AS col0 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL + cor1.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4705
SELECT - CAST( NULL AS SIGNED ) * + col2 + cor0.col1 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4705
SELECT - CAST ( NULL AS INTEGER ) * + col2 + cor0.col1 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4707
SELECT - cor0.col0 DIV cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-4707
SELECT - cor0.col0 / cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT ALL - 37 + col2 AS col2 FROM tab2 AS cor0
----
-10
-11
1

query I rowsort
SELECT DISTINCT + + 45 * col2 FROM tab1 AS cor0
----
2430
2565
4320

query I rowsort
SELECT ALL + + 8 AS col0 FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT - + col0 + col0 + - 93 FROM tab2 AS cor0
----
-93
-93
-93

query I rowsort
SELECT ALL + 81 + col2 * col0 FROM tab2 AS cor0
----
2109
270
3083

query I rowsort
SELECT - col1 + cor0.col2 * + cor0.col2 * 39 + cor0.col0 AS col1 FROM tab1 cor0
----
113701
126765
359491

query I rowsort
SELECT 59 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT col0 * 14 AS col1 FROM tab0
----
1246
336
490

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4716
SELECT DISTINCT + CAST( ( + col2 ) AS SIGNED ) + + col1 + + col1 AS col2 FROM tab2
----
144
72
89

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT + CAST ( ( + col2 ) AS INTEGER ) + + col1 + + col1 AS col2 FROM tab2
----
144
72
89

query I rowsort
SELECT DISTINCT 35 + col0 * col1 FROM tab2
----
1378
252
4637

query I rowsort
SELECT col0 + - col1 * - col0 * col2 AS col1 FROM tab1
----
36544
4215
99920

query I rowsort
SELECT - ( col0 ) + - col1 AS col0 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT - - cor0.col0 * + col1 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 94 + col1 col0 FROM tab2 AS cor0
----
1615
2945
5605

query I rowsort
SELECT ALL - + col1 * - cor0.col2 - + col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL - col1 - ( cor0.col2 ) * + cor0.col2 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT ALL + cor0.col0 * 5 * + col0 FROM tab1 AS cor0
----
20480
32000
45

query I rowsort
SELECT DISTINCT + - col0 * + col0 + - col1 AS col1 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL + col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - col1 * 55 FROM tab2 AS cor0
----
-1705
-3245
-935

query I rowsort
SELECT ALL + col1 * 12 + + col2 * col2 FROM tab2 AS cor0
----
1101
1384
1648

query I rowsort
SELECT ALL - col1 * + 61 + - 41 + col2 * col1 * + col2 AS col2 FROM tab0 AS cor0
----
-5861
606292
88367

onlyif mysql # use DIV operator for integer division
query I rowsort label-4730
SELECT DISTINCT col0 DIV ( col2 ) AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT col0 / ( col2 ) AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT col0 * + col1 - col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT col0 + 6 AS col1 FROM tab0 AS cor0
----
30
41
95

query I rowsort
SELECT + 93 + - 2 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 8a48d0ac75792561e233f0311a8872fd

query I rowsort
SELECT + 23 + - col1 FROM tab2 cor0
----
-36
-8
6

query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4736
SELECT DISTINCT - col1 + ( + col2 ) DIV cor0.col1 FROM tab2 AS cor0
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT - col1 + ( + col2 ) / cor0.col1 FROM tab2 AS cor0
----
-15
-31
-59

query I rowsort
SELECT ALL + col0 * + col2 * col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL 99 * + col0 FROM tab2
----
693
7722
7821

query I rowsort
SELECT - col2 + - cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT 41 + tab1.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 27eb4b252911b8d0ad0e6ed9cfd65b13

query I rowsort
SELECT + tab0.col0 + col0 * col0 AS col1 FROM tab0
----
1260
600
8010

query I rowsort
SELECT + - cor0.col2 - - ( - col0 ) FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - 20 + + col0 * + col0 * col0 FROM tab2 AS cor0
----
323
474532
493019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 62 col2 FROM tab1
----
126
142
65

query I rowsort
SELECT DISTINCT - tab2.col1 + - col1 AS col0 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT + - ( + 83 ) + col1 AS col1 FROM tab2 AS cor0
----
-24
-52
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4747
SELECT ALL tab1.col1 + + ( col0 ) DIV - col1 FROM tab1
----
26
4
7

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL tab1.col1 + + ( col0 ) / - col1 FROM tab1
----
26
4
7

query I rowsort
SELECT ALL - ( col0 ) * + col1 AS col1 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4749
SELECT ALL - + col2 + col1 DIV col1 AS col0 FROM tab1 cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL - + col2 + col1 / col1 AS col0 FROM tab1 cor0
----
-53
-56
-95

query I rowsort
SELECT - + ( - cor0.col0 ) + col2 AS col1 FROM tab1 cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4751
SELECT DISTINCT col1 + + ( col0 ) DIV ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT col1 + + ( col0 ) / ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
13
31
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - cor0.col0 * + col1 col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - ( - tab0.col0 ) - - 1 FROM tab0, tab0 AS cor0
----
9 values hashing to 94043da41e82e3e9dc1fc57acd451f9b

query I rowsort
SELECT + cor0.col0 * cor0.col0 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 458b4c13e6825f9686b15a38663930f4

query I rowsort
SELECT + ( tab1.col2 ) * col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL + 9 * col2 - col1 FROM tab0 AS cor0
----
-88
211
647

query I rowsort
SELECT col1 + + col0 * - col0 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT 80 * + col0 + + col2 AS col0 FROM tab0 AS cor0
----
1953
2801
7202

query I rowsort
SELECT DISTINCT - 99 + + col1 FROM tab1 AS cor0
----
-73
-86
-89

query I rowsort
SELECT - 88 + - col1 AS col1 FROM tab0 AS cor0
----
-174
-179
-185

query I rowsort
SELECT ALL - col2 * - col0 + 72 FROM tab0 AS cor0
----
107
7370
864

query I rowsort
SELECT DISTINCT - col2 * + col2 - - col0 * col1 FROM tab0
----
1375
3394
975

query I rowsort
SELECT ALL + 33 * col1 * col1 - + col0 FROM tab2
----
114795
31706
9458

query I rowsort
SELECT ALL - 68 - - col0 AS col1 FROM tab0
----
-33
-44
21

query I rowsort
SELECT DISTINCT + 61 * + col1 FROM tab0
----
5246
5551
5917

query I rowsort
SELECT + ( col2 ) * + tab0.col1 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL - 68 - 82 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 33a2bf548fec79d4b8e6dea93edc77dd

query I rowsort
SELECT + cor1.col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL - cor0.col0 - - col1 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ( col2 ) * cor0.col1 + - col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT 14 * col1 * - col1 FROM tab1 AS cor0
----
-1400
-2366
-9464

query I rowsort
SELECT - 7 + col2 AS col0 FROM tab2 AS cor0
----
19
20
31

query I rowsort
SELECT DISTINCT - + 97 * - col0 + col1 FROM tab1 cor0
----
317
6218
7773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * cor0.col0 col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4775
SELECT + 67 DIV + col2 + + ( - col0 ) * + col0 FROM tab0 AS cor0
----
-1158
-574
-7921

skipif mysql # not compatible
query I rowsort label-4775
SELECT + 67 / + col2 + + ( - col0 ) * + col0 FROM tab0 AS cor0
----
-1158
-574
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT - cor0.col2 * + ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4778
SELECT col0 * - CAST( + ( cor0.col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-4778
SELECT col0 * - CAST ( + ( cor0.col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT cor0.col2 * - col1 * col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4780
SELECT + cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4780
SELECT + cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col2 * col0 + col0 - 64 AS col2 FROM tab1 AS cor0
----
-223
-3648
-7664

query I rowsort
SELECT + ( 66 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT - + 38 + - 55 - col1 FROM tab0 AS cor0
----
-179
-184
-190

query I rowsort
SELECT + col1 * + cor0.col1 - col1 * + ( + col2 * + col2 ) FROM tab2 AS cor0
----
-21638
-24259
-36403

query I rowsort
SELECT ALL + 56 * 36 AS col1 FROM tab2 AS cor0
----
2016
2016
2016

query I rowsort
SELECT ALL - + col2 + 32 AS col1 FROM tab2 AS cor0
----
-6
5
6

query I rowsort
SELECT ALL + col2 + cor0.col1 + - 36 * + col2 FROM tab2 AS cor0
----
-1313
-851
-914

query I rowsort
SELECT DISTINCT + col0 + - col0 + - cor0.col1 AS col0 FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4789
SELECT ALL - - col0 DIV 95 + 55 * col1 AS col2 FROM tab1 AS cor0
----
1430
550
715

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL - - col0 / 95 + 55 * col1 AS col2 FROM tab1 AS cor0
----
1430
550
715

query I rowsort
SELECT col2 + - col2 * - 13 FROM tab2 cor0
----
364
378
532

query I rowsort
SELECT ALL + col2 + ( + col1 ) * + col1 FROM tab2 AS cor0
----
327
3507
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 43 col0 FROM tab2 AS cor0
----
-301
-3354
-3397

query I rowsort
SELECT + + col2 + - 61 * ( col0 ) * col0 - - col1 FROM tab2 cor0
----
-2931
-371039
-380646

query I rowsort
SELECT col0 + col0 + col0 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT ALL - cor0.col1 * 94 * - col1 FROM tab2 AS cor0
----
27166
327214
90334

query I rowsort
SELECT DISTINCT col1 * col1 + + col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT - col1 * - ( - 47 ) + cor0.col2 AS col2 FROM tab2 cor0
----
-1430
-2747
-761

query I rowsort
SELECT + + col0 + col0 + - 20 AS col2 FROM tab2 AS cor0
----
-6
136
138

query I rowsort
SELECT DISTINCT - - cor0.col1 * + 30 * 88 AS col0 FROM tab1 AS cor0
----
26400
34320
68640

query I rowsort
SELECT col2 + col1 - - col2 * - 18 AS col0 FROM tab2
----
-383
-428
-629

query I rowsort
SELECT ALL + + col1 + col2 * col0 * - col2 FROM tab1 AS cor0
----
-207926
-737267
-8722

query I rowsort
SELECT ALL - col0 + - 20 FROM tab0 cor0
----
-109
-44
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-4803
SELECT + col1 * 71 - col0 * col0 DIV col1 FROM tab0 AS cor0
----
6100
6374
6875

skipif mysql # not compatible
query I rowsort label-4803
SELECT + col1 * 71 - col0 * col0 / col1 FROM tab0 AS cor0
----
6100
6374
6875

query I rowsort
SELECT ALL - - col2 + + col1 + 14 * + cor0.col2 * + 54 FROM tab2 AS cor0
----
19741
20470
28783

query I rowsort
SELECT DISTINCT col1 * + 65 FROM tab2 AS cor0
----
1105
2015
3835

query I rowsort
SELECT col1 * 58 FROM tab0 AS cor0
----
4988
5278
5626

query I rowsort
SELECT - 17 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT col2 + ( - col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4809
SELECT CAST( NULL AS SIGNED ) * col2 + + col1 + ( cor0.col1 + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT CAST ( NULL AS INTEGER ) * col2 + + col1 + ( cor0.col1 + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * col1 + 66 FROM tab1
----
1314
1470
636

query I rowsort
SELECT ALL + 7 - + col0 AS col0 FROM tab1 AS cor0
----
-57
-73
4

query I rowsort
SELECT DISTINCT + 83 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4813
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4814
SELECT DISTINCT + 41 DIV + col0 + + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-832

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT + 41 / + col0 + + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-832

query I rowsort
SELECT DISTINCT col2 * + col1 - + col0 AS col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT col0 * col2 + col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL col0 * + col2 + - 84 FROM tab1
----
3564
7596
78

query I rowsort
SELECT ALL + 41 * + tab1.col2 + - 1 FROM tab1
----
2213
2336
3935

query I rowsort
SELECT ALL - - 78 FROM tab1, tab2, tab2 cor0
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

onlyif mysql # use DIV operator for integer division
query I rowsort label-4820
SELECT tab2.col2 + - col1 + 99 * col2 DIV - col0 FROM tab2
----
-26
-385
-66

skipif mysql # not compatible
query I rowsort label-4820
SELECT tab2.col2 + - col1 + 99 * col2 / - col0 FROM tab2
----
-26
-385
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4821
SELECT ALL - + col2 DIV col1 + ( - col0 ) FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL - + col2 / col1 + ( - col0 ) FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4822
SELECT ALL - col0 DIV col1 + - 76 AS col0 FROM tab1 AS cor0
----
-76
-82
-82

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL - col0 / col1 + - 76 AS col0 FROM tab1 AS cor0
----
-76
-82
-82

query I rowsort
SELECT DISTINCT + cor0.col1 + - col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ALL col2 * col0 + - col0 - - col2 FROM tab2 AS cor0
----
1976
209
2961

query I rowsort
SELECT - col2 * - col2 + col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT col0 * col1 + col0 * col1 FROM tab0 cor0
----
16198
4128
6790

query I rowsort
SELECT DISTINCT + 78 FROM tab1, tab2 AS cor0
----
78

query I rowsort
SELECT tab2.col2 * tab2.col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL - 48 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # use DIV operator for integer division
query I rowsort label-4830
SELECT + + col0 - + ( 10 ) DIV - col1 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-4830
SELECT + + col0 - + ( 10 ) / - col1 FROM tab1 AS cor0
----
3
65
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4831
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col0 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT + col0 * + cor0.col2 + + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT ( + ( - cor0.col0 ) ) + col0 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4834
SELECT - col2 DIV - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4834
SELECT - col2 / - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4835
SELECT DISTINCT col2 + - col1 DIV col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4835
SELECT DISTINCT col2 + - col1 / col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + cor0.col2 + + col2 AS col2 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-4838
SELECT DISTINCT + 28 + col2 DIV + col1 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT + 28 + col2 / + col1 FROM tab0 AS cor0
----
28

query I rowsort
SELECT DISTINCT - + 61 AS col2 FROM tab0 AS cor0
----
-61

query I rowsort
SELECT - col2 * col0 * 81 AS col0 FROM tab0 AS cor0
----
-2835
-591138
-64152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 + cor0.col0 col2 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT DISTINCT + 70 + - col0 FROM tab2 AS cor0
----
-8
-9
63

query I rowsort
SELECT ALL - + col0 + + col2 * ( + col2 ) AS col1 FROM tab1 cor0
----
2913
3185
9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-4844
SELECT col2 DIV - 45 + tab0.col2 DIV 8 AS col1 FROM tab0
----
0
4
9

skipif mysql # not compatible
query I rowsort label-4844
SELECT col2 / - 45 + tab0.col2 / 8 AS col1 FROM tab0
----
0
4
9

query I rowsort
SELECT DISTINCT ( col2 + + col1 ) * col1 FROM tab2
----
1798
5015
935

query I rowsort
SELECT - col2 + tab0.col1 AS col0 FROM tab0
----
53
9
96

query I rowsort
SELECT ( col2 ) - col1 AS col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL - col2 * col1 * tab2.col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT ALL 26 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col2 col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

onlyif mysql # use DIV operator for integer division
query I rowsort label-4851
SELECT + col0 - 98 DIV 43 AS col1 FROM tab1 AS cor0
----
1
62
78

skipif mysql # not compatible
query I rowsort label-4851
SELECT + col0 - 98 / 43 AS col1 FROM tab1 AS cor0
----
1
62
78

query I rowsort
SELECT + col2 + ( - ( cor0.col0 ) ) FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col1 FROM tab0 cor0
----
47
47
47

query I rowsort
SELECT + - col2 * 29 FROM tab2 AS cor0
----
-1102
-754
-783

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4855
SELECT tab0.col0 + CAST( col2 * col2 AS SIGNED ) FROM tab0
----
1113
36
6813

skipif mysql # not compatible
query I rowsort label-4855
SELECT tab0.col0 + CAST ( col2 * col2 AS INTEGER ) FROM tab0
----
1113
36
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * tab1.col2 col0 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4857
SELECT + 54 DIV - 66 + + col2 + - ( + col1 * col2 ) FROM tab2 AS cor0
----
-1508
-608
-810

skipif mysql # not compatible
query I rowsort label-4857
SELECT + 54 / - 66 + + col2 + - ( + col1 * col2 ) FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT col0 * - cor0.col1 + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT ( + 92 ) AS col0 FROM tab1, tab1 AS cor0
----
92

query I rowsort
SELECT 29 * col2 AS col0 FROM tab1 AS cor0
----
1566
1653
2784

onlyif mysql # use DIV operator for integer division
query I rowsort label-4861
SELECT + + col0 * cor0.col1 + 12 DIV - col2 + - col1 FROM tab0 AS cor0
----
1978
3286
8008

skipif mysql # not compatible
query I rowsort label-4861
SELECT + + col0 * cor0.col1 + 12 / - col2 + - col1 FROM tab0 AS cor0
----
1978
3286
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-4862
SELECT ALL + - ( col0 ) DIV + col2 + col0 FROM tab0 AS cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL + - ( col0 ) / + col2 + col0 FROM tab0 AS cor0
----
0
24
88

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-4864
SELECT + 19 DIV - col1 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4864
SELECT + 19 / - col1 FROM tab1 cor0
----
-1
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4865
SELECT 43 DIV + col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4865
SELECT 43 / + col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 6 * - col1 + col2 * 57 FROM tab0 AS cor0
----
2397
5220
639

query I rowsort
SELECT - col2 + - 88 + 15 FROM tab2 AS cor0
----
-100
-111
-99

query I rowsort
SELECT + ( - col2 ) + - col2 AS col0 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT DISTINCT - - col0 * col1 + + 20 FROM tab0 AS cor0
----
2084
3415
8119

onlyif mysql # use DIV operator for integer division
query I rowsort label-4870
SELECT DISTINCT - col2 DIV col1 + 81 AS col0 FROM tab2 AS cor0
----
79
81

skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT - col2 / col1 + 81 AS col0 FROM tab2 AS cor0
----
79
81

query I rowsort
SELECT ALL + col1 - + col2 * col0 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT col2 + + ( + 51 ) FROM tab0 AS cor0
----
133
52
84

query I rowsort
SELECT ALL col2 - col2 * + 69 AS col2 FROM tab0 AS cor0
----
-2244
-5576
-68

query I rowsort
SELECT ALL col1 * - ( + col1 ) + - col2 + + 26 FROM tab0 AS cor0
----
-7403
-8337
-9384

onlyif mysql # use DIV operator for integer division
query I rowsort label-4875
SELECT - - col0 DIV + 90 - col2 DIV + col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4875
SELECT - - col0 / + 90 - col2 / + col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col2 + + 94 FROM tab1 AS cor0
----
148
151
190

query I rowsort
SELECT - cor0.col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + tab0.col2 * cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e5422173e1caaeeb02bbae09b3f4e2fd

query I rowsort
SELECT DISTINCT + + cor0.col2 + + 27 * col0 AS col0 FROM tab0 AS cor0
----
2485
681
946

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 4c87430a2010fee8daf6d04acf0ad703

query I rowsort
SELECT - col0 + - ( col0 ) AS col2 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT cor1.col1 AS col2 FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-4884
SELECT DISTINCT col2 DIV 56 - - 11 * + col1 * + ( + col2 * + col1 ) AS col2 FROM tab0
----
103499
2684748
7469463

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT col2 / 56 - - 11 * + col1 * + ( + col2 * + col1 ) AS col2 FROM tab0
----
103499
2684748
7469463

query I rowsort
SELECT - tab0.col0 + - col0 - + col1 * - col0 FROM tab0
----
2016
3325
7921

query I rowsort
SELECT ( col0 * tab2.col0 ) AS col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT - + 51 + + col2 * + col0 * + ( col1 * col0 + ( - cor0.col1 ) ) FROM tab0 AS cor0
----
115379
1566525
58442333

query I rowsort
SELECT DISTINCT - + cor0.col2 * cor0.col2 * col0 AS col0 FROM tab1 cor0
----
-207936
-737280
-8748

query I rowsort
SELECT 48 * + 1 FROM tab0
----
48
48
48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4890
SELECT ALL - + CAST( - 91 AS SIGNED ) FROM tab2 AS cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL - + CAST ( - 91 AS INTEGER ) FROM tab2 AS cor0
----
91
91
91

query I rowsort
SELECT DISTINCT - col1 + - col1 + col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - col2 + - 41 AS col0 FROM tab2 cor0
----
-67
-68
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4893
SELECT CAST( col1 AS SIGNED ) * - col1 FROM tab1 cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-4893
SELECT CAST ( col1 AS INTEGER ) * - col1 FROM tab1 cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4894
SELECT DISTINCT - + col1 * col1 + + col0 DIV + 76 FROM tab0 AS cor0
----
-7396
-8280
-9409

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT - + col1 * col1 + + col0 / + 76 FROM tab0 AS cor0
----
-7396
-8280
-9409

query I rowsort
SELECT DISTINCT - 68 * - cor0.col2 AS col2 FROM tab2 cor0
----
1768
1836
2584

query I rowsort
SELECT ALL + + 59 * - col1 FROM tab0 AS cor0
----
-5074
-5369
-5723

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4897
SELECT + CAST( NULL AS SIGNED ) - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT + CAST ( NULL AS INTEGER ) - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + cor0.col2 * - col2 * 94 FROM tab1 cor0
----
274104
305406
866304

query I rowsort
SELECT ALL - - col1 * + 10 + col1 + + col0 * + col1 AS col0 FROM tab1 AS cor0
----
1183
364
750

query I rowsort
SELECT DISTINCT + col2 + - 16 * col0 AS col1 FROM tab0 AS cor0
----
-1342
-351
-559

query I rowsort
SELECT + + cor0.col0 + + 8 AS col2 FROM tab2 AS cor0
----
15
86
87

query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 + - cor0.col2 * cor0.col0 FROM tab1 cor0
----
-3008
-6640
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4903
SELECT - cor0.col0 * CAST( NULL AS SIGNED ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4903
SELECT - cor0.col0 * CAST ( NULL AS INTEGER ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 40 * + 56 FROM tab0 AS cor0
----
-2240
-2240
-2240

query I rowsort
SELECT ALL - 4 * - col1 + + col2 AS col2 FROM tab2 AS cor0
----
106
151
262

query I rowsort
SELECT col1 * + ( + 6 ) + - tab0.col1 * col1 FROM tab0
----
-6880
-7735
-8827

query I rowsort
SELECT col1 * + col1 + + col2 * - col0 * col2 AS col2 FROM tab1
----
-207836
-737111
-8072

query I rowsort
SELECT DISTINCT - - cor0.col2 * + col0 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + col1 + + ( col0 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + - ( col0 ) * - col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col2 * col1 * col1 + + col1 * tab0.col1 AS col2 FROM tab0
----
18818
251464
687323

query I rowsort
SELECT ALL + col2 + col0 + + col1 FROM tab0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-4913
SELECT ( + col2 ) DIV - col0 + 46 * + col0 * col0 + - col0 FROM tab0
----
26471
364277
56315

skipif mysql # not compatible
query I rowsort label-4913
SELECT ( + col2 ) / - col0 + 46 * + col0 * col0 + - col0 FROM tab0
----
26471
364277
56315

query I rowsort
SELECT col2 * - col0 + ( col0 ) FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT 14 * + col2 AS col1 FROM tab0
----
1148
14
462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + ( col1 ) col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4917
SELECT + col2 + col2 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-4917
SELECT + col2 + col2 / cor0.col1 AS col1 FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT ALL + col1 + - ( col1 ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4919
SELECT cor0.col0 + CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT cor0.col0 + CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - 53 FROM tab0 AS cor0
----
33
38
44

query I rowsort
SELECT col0 * - ( + col2 ) + col1 AS col2 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT - + col1 * - 83 + + cor0.col0 FROM tab0 AS cor0
----
7162
7642
8086

query I rowsort
SELECT + + cor0.col2 * + ( + col1 ) + col1 + 67 AS col0 FROM tab1 AS cor0
----
1328
1497
647

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * cor0.col0 + col2 * - col2 col1 FROM tab0 AS cor0
----
-1226
-14645
-1665

query I rowsort
SELECT ALL - col2 + col1 * + ( - col1 ) FROM tab0 AS cor0
----
-7429
-8363
-9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4926
SELECT DISTINCT + col1 - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT + col1 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col2 * + col2 + - 48 AS col0 FROM tab2 AS cor0
----
1396
628
681

query I rowsort
SELECT + - col2 - + col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL cor0.col2 * 36 FROM tab1 cor0
----
1944
2052
3456

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4930
SELECT ALL + - CAST( NULL AS SIGNED ) + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL + - CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col1 - + ( col1 + col2 ) AS col1 FROM tab2
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + col2 col0 FROM tab1
----
-108
-114
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 col2 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT + col2 - 27 AS col2 FROM tab2 AS cor0
----
-1
0
11

query I rowsort
SELECT ( + tab0.col0 + + tab0.col2 ) AS col0 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4936
SELECT DISTINCT + 9 * col1 DIV col0 AS col1 FROM tab1 AS cor0
----
1
78

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT + 9 * col1 / col0 AS col1 FROM tab1 AS cor0
----
1
78

query I rowsort
SELECT - ( 39 ) AS col2 FROM tab2 cor0
----
-39
-39
-39

query I rowsort
SELECT - 45 + col1 * col1 FROM tab1 AS cor0
----
124
55
631

query I rowsort
SELECT + col0 * - 60 AS col1 FROM tab0 AS cor0
----
-1440
-2100
-5340

query I rowsort
SELECT ALL + 72 AS col1 FROM tab0
----
72
72
72

query I rowsort
SELECT col1 * - col1 * 70 + col1 FROM tab1
----
-11817
-47294
-6990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4942
SELECT ALL + col0 * col0 * + CAST( 51 + + col2 AS SIGNED ) AS col1 FROM tab2
----
3822
468468
555449

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL + col0 * col0 * + CAST ( 51 + + col2 AS INTEGER ) AS col1 FROM tab2
----
3822
468468
555449

query I rowsort
SELECT - 6 * col0 AS col1 FROM tab0 AS cor0
----
-144
-210
-534

query I rowsort
SELECT DISTINCT + ( col2 ) * ( + col0 ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT cor0.col0 * ( cor0.col2 ) + + tab0.col2 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to bdff884b5c54da1c3a0af7064b4b7eb9

query I rowsort
SELECT ALL - 11 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202

query I rowsort
SELECT tab0.col2 * col2 * col2 + ( + col0 ) FROM tab0
----
35961
36
551457

query I rowsort
SELECT - col1 * col2 * - col0 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 199388980dc5177ebebcfdbc0408ba02

onlyif mysql # use DIV operator for integer division
query I rowsort label-4950
SELECT DISTINCT + - cor0.col1 DIV - col0 FROM tab2 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT + - cor0.col1 / - col0 FROM tab2 AS cor0
----
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col2 ) col2 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4952
SELECT ALL + - col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL + - col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4953
SELECT + col1 DIV - 1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-4953
SELECT + col1 / - 1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + + col0 * + col1 + 58 * + col1 AS col2 FROM tab0 AS cor0
----
13377
7052
9021

query I rowsort
SELECT ALL + col1 - + 8 FROM tab0 AS cor0
----
78
83
89

query I rowsort
SELECT DISTINCT - - col2 * + 1 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col0 * 98 AS col1 FROM tab2 AS cor0
----
686
7644
7742

query I rowsort
SELECT DISTINCT cor0.col2 + 35 AS col0 FROM tab1, tab2 AS cor0
----
61
62
73

query I rowsort
SELECT + 3 + 73 AS col2 FROM tab0 AS cor0
----
76
76
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4960
SELECT ALL + col0 + 47 DIV col2 FROM tab0 AS cor0
----
25
82
89

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL + col0 + 47 / col2 FROM tab0 AS cor0
----
25
82
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4961
SELECT CAST( + 97 AS SIGNED ) DIV - col1 AS col0 FROM tab1 AS cor0
----
-3
-7
-9

skipif mysql # not compatible
query I rowsort label-4961
SELECT CAST ( + 97 AS INTEGER ) / - col1 AS col0 FROM tab1 AS cor0
----
-3
-7
-9

query I rowsort
SELECT + - 56 + ( - col1 ) + col2 FROM tab2 cor0
----
-35
-60
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4963
SELECT - ( - col2 ) DIV col0 + + 43 * col2 FROM tab0 AS cor0
----
1420
3526
43

skipif mysql # not compatible
query I rowsort label-4963
SELECT - ( - col2 ) / col0 + + 43 * col2 FROM tab0 AS cor0
----
1420
3526
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-4964
SELECT col2 + col0 * col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-4964
SELECT col2 + col0 * col0 / + col0 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + col0 + - 68 * + col1 * + col1 AS col2 FROM tab0 AS cor0
----
-502904
-563019
-639777

query I rowsort
SELECT ALL col0 * + ( + col1 ) AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT ( + 29 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT col2 * + 71 FROM tab0
----
2343
5822
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4969
SELECT ALL - CAST( NULL AS DECIMAL ) + cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL - CAST ( NULL AS REAL ) + cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 86 * + ( col0 ) * 15 AS col2 FROM tab2 AS cor0
----
-100620
-101910
-9030

onlyif mysql # use DIV operator for integer division
query I rowsort label-4971
SELECT DISTINCT + + 99 DIV 61 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT + + 99 / 61 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col1 * col1 + - col2 col1 FROM tab0 AS cor0
----
7339
8110
9373

onlyif mysql # use DIV operator for integer division
query I rowsort label-4973
SELECT ALL + ( col1 ) DIV 25 AS col0 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL + ( col1 ) / 25 AS col0 FROM tab0 AS cor0
----
3
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4974
SELECT 83 - + 11 DIV - col1 AS col1 FROM tab0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-4974
SELECT 83 - + 11 / - col1 AS col1 FROM tab0
----
83
83
83

query I rowsort
SELECT - 87 * ( - col1 + tab2.col0 ) FROM tab2
----
-1653
-5394
2088

query I rowsort
SELECT 93 + 84 FROM tab1
----
177
177
177

query I rowsort
SELECT + col2 - + col2 * tab0.col2 AS col1 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT ALL - tab2.col0 - - col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT DISTINCT - col1 * + tab2.col1 + - col2 AS col1 FROM tab2
----
-327
-3507
-988

onlyif mysql # use DIV operator for integer division
query I rowsort label-4980
SELECT + col0 + - col1 DIV + col1 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-4980
SELECT + col0 + - col1 / + col1 FROM tab0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - tab1.col1 col1 FROM tab1
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-4982
SELECT - col1 + + col1 DIV tab0.col1 AS col0 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-4982
SELECT - col1 + + col1 / tab0.col1 AS col0 FROM tab0
----
-85
-90
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + tab2.col2 + + col1 FROM tab2
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 + + col1 col0 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 + col2 * - col2 col0 FROM tab0
----
-1003
-6633
96

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) NOT IN ( tab0.col1 )
----

query I rowsort
SELECT DISTINCT col0 * - tab2.col1 + + col1 AS col1 FROM tab2
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 + col2 col1 FROM tab2
----
2054
216
3040

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE + col1 <= NULL
----

query I rowsort
SELECT ALL - col1 + + col0 AS col2 FROM tab1
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-4992
SELECT - tab0.col0 + + col0 DIV tab0.col0 col1 FROM tab0
----
-23
-34
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4992
SELECT - tab0.col0 + + col0 / tab0.col0 col1 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT DISTINCT col2 * col0 FROM tab0 WHERE ( NULL ) NOT IN ( + col0 + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 * col0 + + tab2.col0 * col2 * + col2 col2 FROM tab2
----
117078
5292
54756

query I rowsort
SELECT + col1 + col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL tab0.col2 * col1 / + col2 + tab0.col2 * + col1 + - col1 FROM tab0 WHERE NULL >= + col1 + col0 * - col1
----

query I rowsort
SELECT col2 * col0 + - col0 * col1 + col1 AS col2 FROM tab2
----
-2515
1676
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + tab2.col2 col1 FROM tab2
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 - + col0 col0 FROM tab1
----
1168
1401
506

query I rowsort
SELECT ALL col2 * col1 + cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
1638
763
871

query I rowsort
SELECT ALL + - col0 * - col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT col2 * col0 - col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT DISTINCT + + col1 + - col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - cor0.col2 + + col0 + col2 AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - - col1 * + col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + col0 + + col0 * + col1 + - col2 AS col0 FROM tab1 AS cor0
----
1024
27
647

query I rowsort
SELECT ALL - cor0.col1 * col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT cor0.col0 FROM tab2 AS cor0 WHERE NULL IN ( + col0 + - col2 )
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE NULL <= col1 * col0
----

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT col0 * - col1 NOT IN ( + col0 )
----

query I rowsort
SELECT ALL tab1.col0 + + col0 AS col2 FROM tab1
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5012
SELECT + col1 DIV + col0 - + col0 * tab1.col2 FROM tab1
----
-154
-3648
-7680

skipif mysql # not compatible
query I rowsort label-5012
SELECT + col1 / + col0 - + col0 * tab1.col2 FROM tab1
----
-154
-3648
-7680

query I rowsort
SELECT col0 + col2 + col2 * + cor0.col1 FROM tab1 cor0
----
1424
1461
691

onlyif mysql # use DIV operator for integer division
query I rowsort label-5014
SELECT ALL + col2 DIV - cor0.col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL + col2 / - cor0.col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT - + cor0.col1 + + ( col0 ) * col2 AS col0 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5016
SELECT + col2 * - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-5016
SELECT + col2 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + col1 * 3 + + col0 AS col1 FROM tab1 AS cor0
----
119
81
94

query I rowsort
SELECT - 41 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 007857b49fbf51962923f3da53f42f2b

query I rowsort
SELECT + cor0.col0 * cor0.col0 + - col2 * col2 FROM tab0 AS cor0
----
-513
1197
1224

query I rowsort
SELECT - col1 + - col0 * - col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL + col1 * ( col0 + + col1 ) FROM tab0 AS cor0
----
12804
16380
9460

query I rowsort
SELECT DISTINCT col0 * 74 * col2 FROM tab2
----
13986
150072
222148

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab1 AS cor2, tab1
----
13122 values hashing to 9a281a45c09267a5b13548c2b91d7079

onlyif mysql # use DIV operator for integer division
query I rowsort label-5024
SELECT ALL col0 DIV 17 FROM tab0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL col0 / 17 FROM tab0
----
1
2
5

query I rowsort
SELECT - - 21 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT + + 59 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT - - col0 * cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + col2 * + col1 + col1 * - col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 * + col0 * - col0 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT col1 * col2 - ( + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NOT ( + col1 ) <> - col1 + + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5032
SELECT col2 - - col1 DIV col0 FROM tab1 AS cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-5032
SELECT col2 - - col1 / col0 FROM tab1 AS cor0
----
57
62
96

query I rowsort
SELECT DISTINCT - col1 + - col0 * - col1 FROM tab0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-5034
SELECT ALL tab2.col0 DIV col1 AS col0 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL tab2.col0 / col1 AS col0 FROM tab2
----
0
1
4

query I rowsort
SELECT DISTINCT + tab1.col0 + + tab1.col1 * + col0 AS col1 FROM tab1 WHERE NULL >= - col1
----

query I rowsort
SELECT - tab2.col0 FROM tab2, tab1, tab1 cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL + col1 * - tab0.col1 + col2 * - col1 FROM tab0
----
-10234
-15743
-9506

query I rowsort
SELECT ALL - col1 + col2 * - col1 + col2 FROM tab0
----
-193
-2891
-7471

query I rowsort
SELECT col1 + - tab1.col0 AS col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT + col2 * - col0 * - col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT + 30 * col2 - col1 AS col1 FROM tab2 AS cor0
----
1123
721
779

onlyif mysql # use DIV operator for integer division
query I rowsort label-5042
SELECT DISTINCT col0 + + col2 DIV 13 FROM tab2 AS cor0
----
80
81
9

skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT col0 + + col2 / 13 FROM tab2 AS cor0
----
80
81
9

query I rowsort
SELECT 39 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT DISTINCT 22 AS col0 FROM tab1
----
22

query I rowsort
SELECT + col1 * + col2 * col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT 64 * 85 + - col0 FROM tab1 AS cor0
----
5360
5376
5437

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5047
SELECT CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 73 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # use DIV operator for integer division
query I rowsort label-5049
SELECT col0 DIV 51 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5049
SELECT col0 / 51 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 3 col2 FROM tab1
----
-162
-171
-288

onlyif mysql # use DIV operator for integer division
query I rowsort label-5051
SELECT + 67 DIV 86 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5051
SELECT + 67 / 86 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - + ( col1 ) + 14 * + 35 FROM tab2 cor0
----
431
459
473

query I rowsort
SELECT - + 40 + cor0.col1 * + col0 * col0 FROM tab2 AS cor0
----
106057
1479
358916

query I rowsort
SELECT DISTINCT + col2 * - col0 + - cor0.col1 * col1 FROM tab1 AS cor0
----
-3748
-7849
-838

query I rowsort
SELECT ALL 39 AS col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT col0 + ( col2 ) * - col1 AS col0 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT - col0 * + 21 FROM tab1 AS cor0
----
-1344
-1680
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-5058
SELECT col0 + + tab0.col2 DIV 95 AS col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5058
SELECT col0 + + tab0.col2 / 95 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL + col2 * - ( - col0 ) FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col2 + + 32 FROM tab1
----
-22
-25
-64

query I rowsort
SELECT + tab1.col2 + tab1.col2 * + col1 * - tab1.col0 + - col2 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5062
SELECT DISTINCT col1 * - col0 DIV col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT col1 * - col0 / col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - ( 33 ) * + col2 FROM tab1 AS cor0
----
-1782
-1881
-3168

query I rowsort
SELECT DISTINCT ( ( - col0 ) ) + + ( col0 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + 0 * + 85 + + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - col2 + cor0.col1 * - cor0.col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT + ( col1 ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + 69 * + ( col2 ) + col2 FROM tab0 AS cor0
----
2310
5740
70

query I rowsort
SELECT DISTINCT + 68 AS col0 FROM tab0 AS cor0
----
68

query I rowsort
SELECT + + 55 * + 12 AS col0 FROM tab0 AS cor0
----
660
660
660

query I rowsort
SELECT ALL - 57 * col1 FROM tab1 AS cor0
----
-1482
-570
-741

query I rowsort
SELECT + ( + ( col1 ) ) * 36 AS col2 FROM tab0 AS cor0
----
3096
3276
3492

query I rowsort
SELECT ALL + col2 + cor0.col0 AS col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - ( 80 ) FROM tab0 cor0
----
-80
-80
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + - col1 + - col2 + 57 * 60 FROM tab1 AS cor0
----
3311
3340
3353

query I rowsort
SELECT + col0 * cor0.col2 * 96 AS col2 FROM tab2 AS cor0
----
18144
194688
288192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5078
SELECT - col1 * - col2 * CAST( - col1 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
-10903
-25940
-90428

skipif mysql # not compatible
query I rowsort label-5078
SELECT - col1 * - col2 * CAST ( - col1 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
-10903
-25940
-90428

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 11 + col0 col0 FROM tab2 cor0
----
18
89
90

query I rowsort
SELECT - - 63 * + col2 AS col2 FROM tab2 AS cor0
----
1638
1701
2394

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5081
SELECT - col0 * - col2 - + CAST( - col2 AS SIGNED ) col1 FROM tab0 cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5081
SELECT - col0 * - col2 - + CAST ( - col2 AS INTEGER ) col1 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT - 51 * - col2 FROM tab0 AS cor0
----
1683
4182
51

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 AS col0 FROM tab2 cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 * - 28 + + col1 col2 FROM tab1 AS cor0
----
-270
-351
-702

query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 + ( + col2 + cor0.col1 ) FROM tab1 cor0
----
-573
-931
2

query I rowsort
SELECT DISTINCT + + 55 FROM tab0 cor0
----
55

query I rowsort
SELECT col2 * - col1 + + col0 * 76 * - col2 FROM tab2 AS cor0
----
-15201
-155662
-228798

query I rowsort
SELECT ALL col1 + + cor0.col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + cor0.col1 * col1 * col1 + col1 FROM tab0 AS cor0
----
636142
753662
912770

query I rowsort
SELECT ALL + cor0.col0 + - col1 * col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + - cor0.col0 + + col0 * + 69 * + col2 FROM tab1 AS cor0
----
11175
251648
529840

query I rowsort
SELECT DISTINCT + col1 * + col2 + 32 FROM tab2 AS cor0
----
1566
678
869

query I rowsort
SELECT - + cor0.col2 + + col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + + 1 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5095
SELECT ALL - ( col0 ) DIV col1 + + col2 FROM tab2 AS cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL - ( col0 ) / col1 + + col2 FROM tab2 AS cor0
----
25
27
34

query I rowsort
SELECT ALL cor0.col1 * - col0 + - ( - col1 * - col2 ) AS col2 FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT ALL - - col0 + - cor0.col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL + tab2.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5099
SELECT CAST( 84 AS SIGNED ) AS col2 FROM tab1
----
84
84
84

skipif mysql # not compatible
query I rowsort label-5099
SELECT CAST ( 84 AS INTEGER ) AS col2 FROM tab1
----
84
84
84

query I rowsort
SELECT ALL tab1.col0 * 21 + col2 AS col2 FROM tab1
----
117
1401
1776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

query I rowsort
SELECT cor0.col0 + 58 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 81dfe39b52dd1b6b1b7c4d1a321cf525

onlyif mysql # use DIV operator for integer division
query I rowsort label-5103
SELECT - + col2 * col2 DIV col1 FROM tab2 cor0
----
-11
-23
-84

skipif mysql # not compatible
query I rowsort label-5103
SELECT - + col2 * col2 / col1 FROM tab2 cor0
----
-11
-23
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-5104
SELECT DISTINCT + + ( cor0.col1 ) DIV - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5104
SELECT DISTINCT + + ( cor0.col1 ) / - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5105
SELECT ALL + col1 * cor0.col2 + col2 DIV + col1 FROM tab1 AS cor0
----
1255
1406
575

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL + col1 * cor0.col2 + col2 / + col1 FROM tab1 AS cor0
----
1255
1406
575

onlyif mysql # use DIV operator for integer division
query I rowsort label-5106
SELECT + col1 DIV - col1 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5106
SELECT + col1 / - col1 AS col0 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - - 73 * col2 AS col0 FROM tab1 AS cor0
----
3942
4161
7008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5108
SELECT DISTINCT - CAST( + ( + cor0.col1 ) AS SIGNED ) + + cor0.col2 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT - CAST ( + ( + cor0.col1 ) AS INTEGER ) + + cor0.col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - - col1 * - col0 + - 65 FROM tab1 AS cor0
----
-1105
-143
-705

query I rowsort
SELECT ALL tab0.col1 + + 75 AS col0 FROM tab0
----
161
166
172

query I rowsort
SELECT ALL + + col0 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5112
SELECT DISTINCT CAST( - col0 AS SIGNED ) * col2 + + col0 * col2 col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * col2 + + col0 * col2 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( - 94 ) * col1 + cor0.col2 - col1 FROM tab1 AS cor0
----
1305
2472
987

query I rowsort
SELECT - 45 * - col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
322
3588
3634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5115
SELECT DISTINCT CAST( - 53 AS SIGNED ) + col0 AS col0 FROM tab1
----
-50
11
27

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT CAST ( - 53 AS INTEGER ) + col0 AS col0 FROM tab1
----
-50
11
27

query I rowsort
SELECT ALL 50 + 59 FROM tab1
----
109
109
109

query I rowsort
SELECT DISTINCT - 35 * - col2 * col2 + + ( col1 + - col0 ) AS col0 FROM tab2 AS cor0
----
23641
25539
50478

onlyif mysql # use DIV operator for integer division
query I rowsort label-5118
SELECT DISTINCT col1 DIV col1 col2 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT col1 / col1 col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL ( + tab2.col0 ) * tab2.col1 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL - col0 + + ( col2 * col2 ) AS col1 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT col0 * + cor0.col2 - col2 * cor0.col2 FROM tab2 AS cor0
----
-540
1352
1558

query I rowsort
SELECT ALL 88 * col2 AS col1 FROM tab1 AS cor0
----
4752
5016
8448

query I rowsort
SELECT + + ( col2 ) * col2 - + 47 FROM tab0 AS cor0
----
-46
1042
6677

query I rowsort
SELECT - 51 * - col2 + + cor0.col2 FROM tab2 cor0
----
1352
1404
1976

onlyif mysql # use DIV operator for integer division
query I rowsort label-5125
SELECT col0 * - col2 - + col2 DIV - col1 FROM tab1 AS cor0
----
-160
-3643
-7673

skipif mysql # not compatible
query I rowsort label-5125
SELECT col0 * - col2 - + col2 / - col1 FROM tab1 AS cor0
----
-160
-3643
-7673

query I rowsort
SELECT ALL - + col0 + cor0.col0 * + col0 AS col2 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT cor0.col0 + + 74 * cor0.col0 FROM tab2 AS cor0
----
525
5850
5925

query I rowsort
SELECT DISTINCT - - 17 - 30 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT + - col0 * + col2 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL - - col1 - col2 * 39 AS col0 FROM tab1 AS cor0
----
-2080
-2213
-3731

query I rowsort
SELECT ALL col1 * cor0.col2 - ( + col0 ) AS col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT + + 61 * col2 * - cor0.col0 FROM tab1 AS cor0
----
-222528
-468480
-9882

query I rowsort
SELECT DISTINCT - - col2 + + 8 FROM tab1 AS cor0
----
104
62
65

query I rowsort
SELECT + col0 * ( col0 + - col2 ) FROM tab2 AS cor0
----
-140
3239
4056

onlyif mysql # use DIV operator for integer division
query I rowsort label-5135
SELECT + col2 DIV - 65 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5135
SELECT + col2 / - 65 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + - 75 col0 FROM tab1 AS cor0
----
-1115
-153
-715

query I rowsort
SELECT DISTINCT col2 * - col2 + - col0 + + col0 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + cor0.col1 * col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + + col2 + + 28 AS col2 FROM tab2 AS cor0
----
54
55
66

query I rowsort
SELECT ALL 31 FROM tab1, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - cor0.col1 col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - col2 + - 27 * col0 FROM tab1 AS cor0
----
-135
-1785
-2256

onlyif mysql # use DIV operator for integer division
query I rowsort label-5143
SELECT - - CAST( - col2 AS SIGNED ) * cor0.col1 DIV col0 FROM tab2 cor0
----
-119
-19
-8

skipif mysql # not compatible
query I rowsort label-5143
SELECT - - CAST ( - col2 AS INTEGER ) * cor0.col1 / col0 FROM tab2 cor0
----
-119
-19
-8

query I rowsort
SELECT + + 26 * + col2 + + col0 FROM tab1 AS cor0
----
1407
1546
2576

query I rowsort
SELECT DISTINCT 11 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 + col1 * - col1 * - col1 col0 FROM tab0
----
636080
753660
912708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 * ( + col0 ) ) + col0 col2 FROM tab1
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5148
SELECT - - col0 DIV + col1 + col0 + col0 AS col1 FROM tab1 AS cor0
----
134
166
6

skipif mysql # not compatible
query I rowsort label-5148
SELECT - - col0 / + col1 + col0 + col0 AS col1 FROM tab1 AS cor0
----
134
166
6

query I rowsort
SELECT DISTINCT - 4 AS col1 FROM tab0
----
-4

query I rowsort
SELECT col2 + col2 * - 78 AS col2 FROM tab0 AS cor0
----
-2541
-6314
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5151
SELECT + col1 DIV + col1 + col1 + col1 * col0 FROM tab2 AS cor0
----
1361
249
4662

skipif mysql # not compatible
query I rowsort label-5151
SELECT + col1 / + col1 + col1 + col1 * col0 FROM tab2 AS cor0
----
1361
249
4662

query I rowsort
SELECT col0 * + col0 + ( + ( - cor0.col1 ) ) * ( col2 ) AS col0 FROM tab1 AS cor0
----
-1395
3526
5152

query I rowsort
SELECT - - cor0.col1 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5154
SELECT + + 2 DIV + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5154
SELECT + + 2 / + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( 60 ) FROM tab0, tab0 AS cor0
----
-60

query I rowsort
SELECT ALL + 15 * + col0 FROM tab2
----
105
1170
1185

query I rowsort
SELECT + col2 * 38 + col2 + ( + col0 ) AS col1 FROM tab1 cor0
----
2109
2287
3824

query I rowsort
SELECT + 5 + + cor0.col2 * - col0 FROM tab2 AS cor0
----
-184
-2023
-2997

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5159
SELECT CAST( col1 AS SIGNED ) * - col2 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-5159
SELECT CAST ( col1 AS INTEGER ) * - col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL 26 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT - ( + col2 * col1 ) FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + 4 + - col1 * 59 AS col2 FROM tab0 AS cor0
----
-5070
-5365
-5719

onlyif mysql # use DIV operator for integer division
query I rowsort label-5163
SELECT ALL 90 DIV col0 col1 FROM tab2 cor0
----
1
1
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL 90 / col0 col1 FROM tab2 cor0
----
1
1
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * - 85 col2 FROM tab1 cor0
----
-4536
-4788
-8064

query I rowsort
SELECT - cor0.col1 * + col0 + + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL + 24 + - col1 FROM tab1 AS cor0
----
-2
11
14

query I rowsort
SELECT + col2 + col0 * + ( cor0.col2 ) + col1 AS col2 FROM tab0 AS cor0
----
133
7471
911

query I rowsort
SELECT DISTINCT + 47 AS col2 FROM tab1, tab0 AS cor0
----
47

query I rowsort
SELECT ALL - 38 * tab0.col1 FROM tab0
----
-3268
-3458
-3686

query I rowsort
SELECT tab0.col0 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL + 4 - col2 AS col2 FROM tab0
----
-29
-78
3

query I rowsort
SELECT - col1 * ( - col2 + col1 ) * - tab0.col0 AS col1 FROM tab0
----
109392
325920
72891

query I rowsort
SELECT ALL cor0.col0 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT col2 + + cor0.col2 + ( - col2 + cor0.col2 ) FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-5175
SELECT - col0 + col1 DIV - col0 - col2 AS col1 FROM tab0 AS cor0
----
-172
-38
-60

skipif mysql # not compatible
query I rowsort label-5175
SELECT - col0 + col1 / - col0 - col2 AS col1 FROM tab0 AS cor0
----
-172
-38
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-5176
SELECT DISTINCT - + col0 + col1 DIV 21 AS col2 FROM tab2 AS cor0
----
-6
-76
-79

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT - + col0 + col1 / 21 AS col2 FROM tab2 AS cor0
----
-6
-76
-79

query I rowsort
SELECT ALL - - 17 AS col0 FROM tab0 AS cor0
----
17
17
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5178
SELECT - CAST( col1 AS SIGNED ) * tab0.col2 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5178
SELECT - CAST ( col1 AS INTEGER ) * tab0.col2 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 16 AS col1 FROM tab2, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 9ffb4aaf972de606a4957894645b6216

query I rowsort
SELECT 18 + col1 * - col0 * - col0 AS col0 FROM tab2
----
106115
1537
358974

onlyif mysql # use DIV operator for integer division
query I rowsort label-5181
SELECT ALL col0 + col2 + col2 * col0 DIV - col1 FROM tab0
----
36
48
91

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL col0 + col2 + col2 * col0 / - col1 FROM tab0
----
36
48
91

query I rowsort
SELECT DISTINCT + tab0.col1 + col1 * + col1 AS col2 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT ALL - ( - 73 ) + cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4ef2678b4a77c1ff331bb92fa565f58b

query I rowsort
SELECT cor0.col1 * col2 + 75 * col1 FROM tab2 AS cor0
----
1921
3162
5959

onlyif mysql # use DIV operator for integer division
query I rowsort label-5185
SELECT DISTINCT + + 47 + + col2 DIV 47 AS col1 FROM tab0 AS cor0
----
47
48

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT + + 47 + + col2 / 47 AS col1 FROM tab0 AS cor0
----
47
48

query I rowsort
SELECT + + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + 73 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 * col0 + 6 col2 FROM tab1
----
1046
646
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-5189
SELECT col2 + col2 DIV - col0 AS col1 FROM tab2
----
24
26
38

skipif mysql # not compatible
query I rowsort label-5189
SELECT col2 + col2 / - col0 AS col1 FROM tab2
----
24
26
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5190
SELECT ALL - ( 24 ) + - col2 * - ( - col1 ) + + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
-1558
-670
-858

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL - ( 24 ) + - col2 * - ( - col1 ) + + col2 / + col0 AS col1 FROM tab2 AS cor0
----
-1558
-670
-858

query I rowsort
SELECT DISTINCT 25 AS col1 FROM tab2, tab0 AS cor0
----
25

query I rowsort
SELECT ALL + col2 + 96 * col2 FROM tab1
----
5238
5529
9312

query I rowsort
SELECT 86 + col2 AS col1 FROM tab2 AS cor0
----
112
113
124

query I rowsort
SELECT + 81 + + 84 FROM tab2 AS cor0
----
165
165
165

query I rowsort
SELECT - - cor0.col1 * col0 + + col0 AS col2 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT + col2 - ( + cor0.col1 ) * + 57 AS col2 FROM tab0 cor0
----
-4869
-5105
-5528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + ( + col1 ) ) + - col1 col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + 89 * 11 * col0 + - col1 + - col0 FROM tab2 AS cor0
----
6815
76225
77245

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5199
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col1 * col2 - + col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT + + cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5202
SELECT ALL - - 60 + + col2 DIV cor0.col2 FROM tab0 AS cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL - - 60 + + col2 / cor0.col2 FROM tab0 AS cor0
----
61
61
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5203
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 79 * - 67 col2 FROM tab1 AS cor0
----
5347
5350
5389

query I rowsort
SELECT DISTINCT - col1 + ( + col2 ) AS col1 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT - col0 * 52 + + col1 + - tab0.col1 * 51 FROM tab0
----
-5548
-6670
-9178

onlyif mysql # use DIV operator for integer division
query I rowsort label-5207
SELECT + col1 DIV + 98 + col2 * + col2 * 85 + - tab1.col1 AS col1 FROM tab1
----
247834
276155
783347

skipif mysql # not compatible
query I rowsort label-5207
SELECT + col1 / + 98 + col2 * + col2 * 85 + - tab1.col1 AS col1 FROM tab1
----
247834
276155
783347

query I rowsort
SELECT + col1 + - 7 * col0 AS col1 FROM tab0
----
-148
-532
-82

query I rowsort
SELECT - - col0 - + 20 AS col1 FROM tab2 AS cor0
----
-13
58
59

query I rowsort
SELECT cor0.col0 + cor0.col0 AS col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT - 6 * - col0 + col1 FROM tab2 AS cor0
----
491
527
73

query I rowsort
SELECT DISTINCT - col2 * 42 * col0 + + ( - 30 ) * + col2 + + ( col0 ) * + col1 FROM tab0 cor0
----
-300877
-32190
1895

query I rowsort
SELECT DISTINCT - 34 - + col1 FROM tab1 AS cor0
----
-44
-47
-60

query I rowsort
SELECT - + col2 + 82 FROM tab2 AS cor0
----
44
55
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - col2 col0 FROM tab1 cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col2 + + 62 * col0 * - col0 col2 FROM tab1
----
-254009
-396896
-612

query I rowsort
SELECT DISTINCT col1 * tab2.col1 + + col1 FROM tab2
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-5218
SELECT col0 + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-5218
SELECT col0 + col0 / col1 AS col1 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT tab1.col2 + + cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to fdd2f547b28e02db29f913671a199b7b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5220
SELECT ALL tab1.col1 * col2 + + col0 * + col2 + CAST( - col2 + - col1 AS SIGNED ) * - col0 FROM tab1
----
17648
1806
8506

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL tab1.col1 * col2 + + col0 * + col2 + CAST ( - col2 + - col1 AS INTEGER ) * - col0 FROM tab1
----
17648
1806
8506

query I rowsort
SELECT ALL + col0 * - cor0.col1 * + col2 + + col0 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT ALL + - col0 * + cor0.col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL 72 AS col0 FROM tab0 cor0
----
72
72
72

query I rowsort
SELECT 92 + + col2 AS col0 FROM tab1 AS cor0
----
146
149
188

query I rowsort
SELECT ALL - 90 * + col0 AS col0 FROM tab0 cor0
----
-2160
-3150
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5226
SELECT ALL + + 19 DIV col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL + + 19 / col1 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT 78 * - col2 FROM tab0 AS cor0
----
-2574
-6396
-78

query I rowsort
SELECT + 50 + col0 * - tab0.col0 FROM tab0
----
-1175
-526
-7871

query I rowsort
SELECT ALL col1 * + col2 + ( col0 ) * col2 AS col0 FROM tab0 AS cor0
----
132
14760
3630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + cor0.col2 col1 FROM tab1, tab1 cor0
----
9 values hashing to ae0eeb942db3f01544a81804e95e971a

query I rowsort
SELECT ALL - col2 - + col2 AS col1 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT DISTINCT + 88 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
62
75
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5233
SELECT - col1 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5233
SELECT - col1 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 89 * cor0.col0 * ( - 49 ) FROM tab2, tab1, tab0 AS cor0
----
104664
152635
388129

query I rowsort
SELECT + col1 * cor0.col2 * col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT col0 * 54 AS col0 FROM tab0 AS cor0
----
1296
1890
4806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab0.col1 col2 FROM tab0
----
7396
8281
9409

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2, tab2 cor2
----
3645 values hashing to f8426cd4d01ba96a72d7348574fbbc8e

query I rowsort
SELECT cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - - col2 * col1 * 7 AS col0 FROM tab2 AS cor0
----
10738
4522
5859

query I rowsort
SELECT + + col1 * ( col1 ) - - col0 FROM tab0 cor0
----
7420
8370
9444

query I rowsort
SELECT ALL + ( col2 ) + + col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT 95 * + cor0.col0 FROM tab1 AS cor0
----
285
6080
7600

query I rowsort
SELECT ALL + col2 * + 32 FROM tab1 AS cor0
----
1728
1824
3072

query I rowsort
SELECT ALL + + 63 + col2 FROM tab0 cor0
----
145
64
96

query I rowsort
SELECT DISTINCT - col2 * + col2 - + col2 * - col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ( 71 ) * col0 + - ( + col0 * + col1 ) FROM tab2 cor0
----
280
4266
936

query I rowsort
SELECT DISTINCT + col0 + - col2 * col2 + ( col1 + + col0 ) FROM tab2 AS cor0
----
-1269
-461
-684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 + + col0 col1 FROM tab1 cor0
----
-53
24
8

query I rowsort
SELECT DISTINCT - 88 * tab1.col0 FROM tab1
----
-264
-5632
-7040

query I rowsort
SELECT col2 * col1 + + ( col2 ) AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT 16 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT + - cor0.col2 * col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL 64 * cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d641fbcde55572c6ff241239802f517d

query I rowsort
SELECT col1 * - ( ( + col2 ) * col2 ) FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT col1 + + ( - col1 ) * col1 + + col0 * - col0 AS col1 FROM tab1
----
-4186
-6556
-659

query I rowsort
SELECT DISTINCT + col0 * ( - col2 ) + col0 - + col2 AS col1 FROM tab2
----
-1976
-209
-2961

query I rowsort
SELECT + 60 + col1 AS col2 FROM tab1 AS cor0
----
70
73
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5260
SELECT - CAST( NULL AS DECIMAL ) * + col2 + + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT - CAST ( NULL AS REAL ) * + col2 + + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 53 AS col1 FROM tab1
----
-53
-53
-53

query I rowsort
SELECT ( + col1 * tab1.col1 ) - col1 AS col1 FROM tab1
----
156
650
90

query I rowsort
SELECT DISTINCT + col0 * + col1 + + col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL + col2 * - 22 FROM tab1 cor0
----
-1188
-1254
-2112

onlyif mysql # use DIV operator for integer division
query I rowsort label-5265
SELECT ALL + + 8 DIV 37 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL + + 8 / 37 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col1 * col0 + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT - col1 + + col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT + col2 * col2 + + col1 AS col0 FROM tab2 AS cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-5269
SELECT DISTINCT + 7 DIV col0 + col1 FROM tab1 AS cor0
----
10
13
28

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT + 7 / col0 + col1 FROM tab1 AS cor0
----
10
13
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5270
SELECT + - CAST( NULL AS SIGNED ) * + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5270
SELECT + - CAST ( NULL AS INTEGER ) * + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 * - 44 + 14 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to df4cbc87e0f4e0d33f4c47ad9f0d4bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-5272
SELECT col0 DIV tab1.col2 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5272
SELECT col0 / tab1.col2 AS col2 FROM tab1
----
0
0
1

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT 41 * + col0 FROM tab1 AS cor0
----
123
2624
3280

query I rowsort
SELECT + cor0.col2 + - 25 * - cor0.col2 FROM tab1 AS cor0
----
1404
1482
2496

query I rowsort
SELECT - col2 + ( col1 + + col0 ) AS col1 FROM tab0 AS cor0
----
131
77
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5277
SELECT - + cor0.col2 * CAST( NULL AS SIGNED ) + 14 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT - + cor0.col2 * CAST ( NULL AS INTEGER ) + 14 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - 85 FROM tab0 AS cor0
----
2805
6970
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL + 89 + col1 AS col2 FROM tab0
----
175
180
186

onlyif mysql # use DIV operator for integer division
query I rowsort label-5281
SELECT col0 * + col2 DIV + ( - col2 ) AS col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5281
SELECT col0 * + col2 / + ( - col2 ) AS col0 FROM tab0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5282
SELECT DISTINCT 52 DIV + col2 + - col1 AS col2 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT 52 / + col2 + - col1 AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL - col1 + - col2 * col1 * col0 AS col2 FROM tab0 AS cor0
----
-3492
-664209
-68198

query I rowsort
SELECT DISTINCT - col2 + col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT + col2 * col1 + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + col0 * - col0 col1 FROM tab0 cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL + col2 + + col0 * + col1 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT col0 + col2 + + col2 FROM tab0
----
253
37
90

query I rowsort
SELECT - col0 + col1 * col0 FROM tab2 cor0
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + cor0.col2 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + col2 + col2 * + cor0.col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT col2 + col0 * + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL col1 + col1 AS col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT ALL col1 * + col0 + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT cor0.col1 * col0 * + col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT ALL col1 * tab0.col2 - col0 FROM tab0
----
2814
62
7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-5297
SELECT cor0.col1 DIV - col0 + - col2 col0 FROM tab2 AS cor0
----
-26
-31
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5297
SELECT cor0.col1 / - col0 + - col2 col0 FROM tab2 AS cor0
----
-26
-31
-38

query I rowsort
SELECT - + col1 * col1 + col1 * - col1 + - col0 FROM tab0 AS cor0
----
-14816
-16651
-18853

query I rowsort
SELECT - col2 + col0 * col1 * - col1 + col2 FROM tab2 AS cor0
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-5300
SELECT ALL col1 DIV col1 + - col2 * + col1 FROM tab1
----
-1247
-1403
-569

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL col1 / col1 + - col2 * + col1 FROM tab1
----
-1247
-1403
-569

onlyif mysql # use DIV operator for integer division
query I rowsort label-5301
SELECT - col1 DIV - tab1.col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5301
SELECT - col1 / - tab1.col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 + col1 + - col0 * col1 AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + col2 + col1 - - tab0.col2 FROM tab0
----
152
255
99

query I rowsort
SELECT ALL tab2.col0 * col2 - col2 * + col2 AS col2 FROM tab2
----
-540
1352
1558

query I rowsort
SELECT - + col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col0 + + col1 * col1 AS col0 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT ALL 16 + - col1 FROM tab0 AS cor0
----
-70
-75
-81

query I rowsort
SELECT DISTINCT + col0 * - col2 + - col1 - cor0.col0 AS col0 FROM tab0 cor0
----
-167
-7478
-902

query I rowsort
SELECT ALL + 88 + col0 FROM tab0 AS cor0
----
112
123
177

query I rowsort
SELECT - col0 * + col1 + + col0 * + col0 AS col0 FROM tab2 cor0
----
-168
1482
4898

query I rowsort
SELECT ALL - ( + col2 ) + + col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-47
26
3

query I rowsort
SELECT 9 + col0 FROM tab0 AS cor0
----
33
44
98

query I rowsort
SELECT DISTINCT + 81 FROM tab0 cor0
----
81

query I rowsort
SELECT DISTINCT + - 9 * + col0 FROM tab1 AS cor0
----
-27
-576
-720

query I rowsort
SELECT ALL ( col1 ) + - col0 * col2 + - col0 FROM tab0 AS cor0
----
-7296
-730
27

query I rowsort
SELECT ALL 44 * col1 AS col2 FROM tab2
----
1364
2596
748

query I rowsort
SELECT DISTINCT ( - col0 ) + col0 AS col0 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5318
SELECT col2 + col0 * + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-5318
SELECT col2 + col0 * + col2 / + col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - 89 * col1 AS col0 FROM tab2 cor0
----
-1513
-2759
-5251

query I rowsort
SELECT + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT 48 * col2 + col1 + ( col0 ) AS col1 FROM tab0 AS cor0
----
1694
180
4116

query I rowsort
SELECT ALL - - col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL tab1.col1 * - col1 * tab1.col1 FROM tab1
----
-1000
-17576
-2197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( col1 + ( 94 ) ) col1 FROM tab0
----
266
276
288

onlyif mysql # use DIV operator for integer division
query I rowsort label-5325
SELECT DISTINCT - ( col0 ) DIV + col0 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT - ( col0 ) / + col0 AS col0 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT - + col1 * + col2 * + col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5327
SELECT ALL - col0 DIV + col2 + 53 AS col2 FROM tab1 AS cor0
----
52
53
53

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL - col0 / + col2 + 53 AS col2 FROM tab1 AS cor0
----
52
53
53

query I rowsort
SELECT DISTINCT col2 * + col2 - col1 AS col1 FROM tab1 cor0
----
2890
3239
9203

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col0 + + cor0.col1 - ( col1 ) AS col2 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5330
SELECT DISTINCT + + cor0.col1 * + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT + + cor0.col1 * + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 0 + col0 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 - cor0.col0 col1 FROM tab2 cor0
----
-70
-71
1

query I rowsort
SELECT + 48 + + cor0.col1 FROM tab2 AS cor0
----
107
65
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * - col2 col2 FROM tab0 cor0
----
-1518
-3772
-46

query I rowsort
SELECT col0 + - col0 * col1 AS col1 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT + col2 + - col2 - + ( + col2 ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col2 + + 70 * - col0 * - col1 AS col0 FROM tab1 AS cor0
----
44857
5514
72896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - col0 col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col2 * + ( + col1 ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL col1 * - 90 AS col1 FROM tab2 AS cor0
----
-1530
-2790
-5310

query I rowsort
SELECT + - col2 + + 74 * - 37 FROM tab1 AS cor0
----
-2792
-2795
-2834

onlyif mysql # use DIV operator for integer division
query I rowsort label-5342
SELECT ALL - cor0.col1 DIV + ( cor0.col0 ) + + col0 FROM tab1 AS cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL - cor0.col1 / + ( cor0.col0 ) + + col0 FROM tab1 AS cor0
----
-5
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5343
SELECT DISTINCT col2 + ( - ( col0 ) ) DIV - ( - col2 ) col2 FROM tab1 AS cor0
----
54
56
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT col2 + ( - ( col0 ) ) / - ( - col2 ) col2 FROM tab1 AS cor0
----
54
56
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5344
SELECT + col0 + - col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-5344
SELECT + col0 + - col2 / - col2 AS col2 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT cor0.col2 + + ( col2 ) AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL cor0.col0 * col2 * col0 + - col1 * col2 FROM tab0 cor0
----
1128
16170
642060

query I rowsort
SELECT DISTINCT + + col2 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT cor0.col0 * 5 AS col0 FROM tab1 AS cor0
----
15
320
400

query I rowsort
SELECT DISTINCT 68 * + 65 + col0 AS col2 FROM tab1 AS cor0
----
4423
4484
4500

onlyif mysql # use DIV operator for integer division
query I rowsort label-5350
SELECT ALL + col0 * col0 DIV + col0 col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL + col0 * col0 / + col0 col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - 52 col1 FROM tab1 cor0
----
-1352
-520
-676

query I rowsort
SELECT - - col1 * + 93 FROM tab2 AS cor0
----
1581
2883
5487

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5353
SELECT - CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT - CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + col0 * + col1 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + col2 * + col2 + - col1 AS col2 FROM tab1 cor0
----
2890
3239
9203

query I rowsort
SELECT 42 + cor0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8c5b2bb43d0a67cdae1ee33906382863

query I rowsort
SELECT ( 65 ) AS col0 FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT - col0 + 56 AS col1 FROM tab0 cor0
----
-33
21
32

query I rowsort
SELECT ALL - cor0.col0 * col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT 9 * + col0 AS col1 FROM tab1
----
27
576
720

query I rowsort
SELECT - col1 + ( - col1 ) * col2 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT + 62 AS col1 FROM tab0, tab1 AS cor0
----
62

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab1, tab2, tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( - col2 ) col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - col2 + + col2 * cor0.col2 FROM tab2 AS cor0
----
1406
650
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5366
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 + - 2 FROM tab2 AS cor0
----
-80
-81
-9

query I rowsort
SELECT ALL col1 * + 61 AS col2 FROM tab2 AS cor0
----
1037
1891
3599

query I rowsort
SELECT ALL - col1 * col2 * + 31 AS col2 FROM tab1 AS cor0
----
-17670
-38688
-43524

query I rowsort
SELECT 76 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL col2 * ( - col2 ) - + col2 FROM tab2 cor0
----
-1482
-702
-756

query I rowsort
SELECT DISTINCT + col0 + + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5373
SELECT col0 + - 84 DIV - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-7
118
8

skipif mysql # not compatible
query I rowsort label-5373
SELECT col0 + - 84 / - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-7
118
8

query I rowsort
SELECT DISTINCT - cor0.col1 * 41 FROM tab2 AS cor0
----
-1271
-2419
-697

query I rowsort
SELECT DISTINCT cor0.col2 * - ( + ( - col1 ) ) FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5376
SELECT - + cor0.col2 * 18 DIV + 39 FROM tab0 AS cor0
----
-15
-37
0

skipif mysql # not compatible
query I rowsort label-5376
SELECT - + cor0.col2 * 18 / + 39 FROM tab0 AS cor0
----
-15
-37
0

query I rowsort
SELECT DISTINCT col0 * - col2 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + col2 - + col1 * col1 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT + 25 * - col0 FROM tab1
----
-1600
-2000
-75

query I rowsort
SELECT ALL + col0 + col0 * - cor0.col2 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5381
SELECT ALL + col2 * col2 DIV - cor0.col0 + + cor0.col2 * ( 46 ) * - cor0.col0 FROM tab0 AS cor0
----
-1610
-335783
-36477

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL + col2 * col2 / - cor0.col0 + + cor0.col2 * ( 46 ) * - cor0.col0 FROM tab0 AS cor0
----
-1610
-335783
-36477

onlyif mysql # use DIV operator for integer division
query I rowsort label-5382
SELECT - + col0 - 92 DIV - col2 FROM tab0 AS cor0
----
-22
-88
57

skipif mysql # not compatible
query I rowsort label-5382
SELECT - + col0 - 92 / - col2 FROM tab0 AS cor0
----
-22
-88
57

query I rowsort
SELECT DISTINCT - col1 * - 80 AS col1 FROM tab1 AS cor0
----
1040
2080
800

query I rowsort
SELECT ALL - 18 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e

query I rowsort
SELECT ALL col2 * 51 * tab2.col2 AS col0 FROM tab2
----
34476
37179
73644

query I rowsort
SELECT - - col2 + 98 AS col0 FROM tab1 AS cor0
----
152
155
194

query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * + col1 + + col0 col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - col2 + ( 38 ) AS col2 FROM tab1 AS cor0
----
-16
-19
-58

query I rowsort
SELECT - - col2 + 76 * 73 AS col2 FROM tab1 AS cor0
----
5602
5605
5644

query I rowsort
SELECT + col1 * col1 * col2 + + col2 AS col1 FROM tab1 AS cor0
----
16320
36558
5757

query I rowsort
SELECT cor1.col1 AS col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT col1 + + 0 - - col0 * - col2 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT col1 + tab1.col1 - 82 AS col2 FROM tab1
----
-30
-56
-62

query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT - ( + col1 ) + 2 * col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - col0 * col1 + - col0 * - col0 FROM tab1
----
-69
3456
5360

query I rowsort
SELECT DISTINCT - 70 FROM tab2, tab0, tab1 AS cor0
----
-70

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 + 47 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT - col0 + col0 * - 90 FROM tab1 AS cor0
----
-273
-5824
-7280

query I rowsort
SELECT + - col0 * col2 * - ( + 70 + + cor0.col0 * + col0 ) FROM tab2 AS cor0
----
12480312
18945622
22491

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5403
SELECT ALL + col0 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5404
SELECT DISTINCT col0 + + col1 DIV col1 + + col2 AS col0 FROM tab0 AS cor0
----
172
37
58

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT col0 + + col1 / col1 + + col2 AS col0 FROM tab0 AS cor0
----
172
37
58

query I rowsort
SELECT DISTINCT cor0.col0 + + col0 + + 21 * col1 * col0 FROM tab2 cor0
----
28361
4571
96798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT cor0.col0 * 76 FROM tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT - + col1 + 71 AS col0 FROM tab1 AS cor0
----
45
58
61

query I rowsort
SELECT ALL - - cor0.col1 * 11 AS col1 FROM tab2 AS cor0
----
187
341
649

query I rowsort
SELECT ALL col2 * cor0.col2 * - col0 + cor0.col2 FROM tab1 AS cor0
----
-207879
-737184
-8694

query I rowsort
SELECT ALL - col2 + ( + col2 ) FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5412
SELECT DISTINCT + col0 DIV ( cor0.col0 ) - - col2 AS col0 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT + col0 / ( cor0.col0 ) - - col2 AS col0 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT ALL col0 * + col2 + + col0 * 82 AS col1 FROM tab0
----
14596
2760
2905

query I rowsort
SELECT - 55 AS col0 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 037c686cf473a7e2cc59ce6c19d8dc57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5415
SELECT ( col1 ) + - col2 DIV - col2 + - col1 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5415
SELECT ( col1 ) + - col2 / - col2 + - col1 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT 2 + col1 AS col0 FROM tab2
----
19
33
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-5417
SELECT 13 + + ( + col1 ) DIV - 62 AS col0 FROM tab0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-5417
SELECT 13 + + ( + col1 ) / - 62 AS col0 FROM tab0
----
12
12
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5418
SELECT + 30 + col1 * - col0 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT + 30 + col1 * - col0 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - - col2 * 68 * col2 AS col0 FROM tab1 AS cor0
----
198288
220932
626688

query I rowsort
SELECT DISTINCT + 14 AS col1 FROM tab2, tab0 AS cor0, tab2 cor1, tab0 AS cor2
----
14

query I rowsort
SELECT ALL - + cor0.col2 * 68 FROM tab1 AS cor0
----
-3672
-3876
-6528

query I rowsort
SELECT + cor0.col1 + + col0 AS col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL - - col2 * + col1 + - 76 * 88 - col2 AS col0 FROM tab2 AS cor0
----
-5180
-5878
-6080

onlyif mysql # use DIV operator for integer division
query I rowsort label-5425
SELECT ALL col2 DIV + col0 - + CAST( + col2 AS SIGNED ) * + col0 * col1 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68111

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL col2 / + col0 - + CAST ( + col2 AS INTEGER ) * + col0 * col1 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68111

query I rowsort
SELECT + col0 * + col0 * col0 AS col1 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT ALL + 24 AS col2 FROM tab2 AS cor0
----
24
24
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5428
SELECT DISTINCT + + col0 + cor0.col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT + + col0 + cor0.col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 * col1 * col2 - - col1 * + col0 FROM tab0 AS cor0
----
-242004
-6014
-670943

query I rowsort
SELECT DISTINCT + + col0 - + cor0.col2 * + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL 82 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT - ( col1 ) * - tab2.col0 * col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + 22 + + tab2.col2 * - col0 AS col2 FROM tab2
----
-167
-2006
-2980

query I rowsort
SELECT cor0.col1 AS col0 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-5435
SELECT - ( 26 ) DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5435
SELECT - ( 26 ) / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * + col0 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT ALL + 66 - + tab0.col2 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 1aa95f85ae1df0f7818c00828942d03a

query I rowsort
SELECT ALL + col1 * + col0 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - + 83 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab0, tab1 AS cor0
----
78

query I rowsort
SELECT + col0 * + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT col1 * + 61 AS col2 FROM tab0 AS cor0
----
5246
5551
5917

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 + col2 col2 FROM tab0 AS cor0
----
-2
30
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5444
SELECT DISTINCT col1 * - tab1.col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT col1 * - tab1.col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 + col1 * + col0 col1 FROM tab2
----
1264
210
4524

query I rowsort
SELECT ALL tab0.col0 * col1 + col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT cor1.col2 * - cor0.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 75e7d40d19474f7f484a05f0e7982ada

query I rowsort
SELECT ALL - 80 + - tab1.col1 FROM tab1
----
-106
-90
-93

query I rowsort
SELECT ALL + + cor0.col2 * + col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ( + col1 ) - - col2 * 33 FROM tab2 AS cor0
----
1271
917
922

query I rowsort
SELECT col0 + tab1.col0 + col0 * - 7 AS col1 FROM tab1
----
-15
-320
-400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5452
SELECT - col0 * col2 * - CAST( NULL AS SIGNED ) + - col1 * col0 + col1 * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5452
SELECT - col0 * col2 * - CAST ( NULL AS INTEGER ) + - col1 * col0 + col1 * col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5453
SELECT ALL + col2 DIV 91 + - col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL + col2 / 91 + - col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - col0 + + col2 * - col1 * cor0.col2 FROM tab1 cor0
----
-119888
-32554
-75819

query I rowsort
SELECT DISTINCT + col2 * 43 + - 12 AS col0 FROM tab2 AS cor0
----
1106
1149
1622

query I rowsort
SELECT + col0 * - col2 * - ( col0 ) + - ( + col2 ) * col0 AS col0 FROM tab1 AS cor0
----
229824
324
606720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5457
SELECT cor0.col0 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5457
SELECT cor0.col0 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + 40 * cor0.col0 * - col0 FROM tab2 AS cor0
----
-1933
-243334
-249602

query I rowsort
SELECT col0 + ( - ( + col0 ) ) * col0 FROM tab0 AS cor0
----
-1190
-552
-7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-5460
SELECT DISTINCT col2 * CAST( + col2 AS SIGNED ) DIV - col2 + col1 + - col2 col1 FROM tab0 AS cor0
----
-73
20
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT col2 * CAST ( + col2 AS INTEGER ) / - col2 + col1 + - col2 col1 FROM tab0 AS cor0
----
-73
20
95

query I rowsort
SELECT ALL col0 + + 5 AS col2 FROM tab0 AS cor0
----
29
40
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL cor0.col2 + - 1 * 75 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 93f39ce87214b7c8cb82258643c16240

query I rowsort
SELECT DISTINCT + - col0 + 11 AS col1 FROM tab1 AS cor0
----
-53
-69
8

query I rowsort
SELECT + col1 + 62 AS col0 FROM tab1 AS cor0
----
72
75
88

query I rowsort
SELECT - 20 + 91 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT col1 * 17 * - 22 FROM tab1
----
-3740
-4862
-9724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + col0 * col1 * + 7 col2 FROM tab1 AS cor0
----
4544
549
7360

query I rowsort
SELECT + + 9 + + col0 AS col1 FROM tab1 AS cor0
----
12
73
89

query I rowsort
SELECT col2 + - cor0.col1 * - cor0.col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - + cor0.col2 - cor0.col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT + 75 * - col0 AS col1 FROM tab1 cor0
----
-225
-4800
-6000

query I rowsort
SELECT DISTINCT - 99 * col2 FROM tab2 cor0
----
-2574
-2673
-3762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col2 FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT - col2 + + col2 - 25 FROM tab1 AS cor0
----
-25
-25
-25

query I rowsort
SELECT + + 68 * - col2 * ( col2 ) AS col1 FROM tab2 cor0
----
-45968
-49572
-98192

query I rowsort
SELECT + col1 + col0 * ( + col1 ) FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + col2 * - 5 AS col1 FROM tab2 AS cor0
----
-130
-135
-190

query I rowsort
SELECT col0 * 47 + + 37 FROM tab0 cor0
----
1165
1682
4220

query I rowsort
SELECT + 2 * - cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a2e0645e15b3844a0d89b13fc219077

query I rowsort
SELECT ALL 57 * 3 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4614b86556cf7855e8bae5fd04fe40a9

query I rowsort
SELECT + 19 + + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4077
-6381
10

query I rowsort
SELECT - col2 + 23 AS col0 FROM tab1 AS cor0
----
-31
-34
-73

query I rowsort
SELECT + + 0 + col1 * - col0 * + ( 46 * col0 ) AS col0 FROM tab1 AS cor0
----
-10764
-1884160
-3827200

query I rowsort
SELECT 51 * + col1 - col0 AS col2 FROM tab1
----
1323
446
583

query I rowsort
SELECT - - cor0.col0 + - col1 * - col2 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT 42 * col1 FROM tab2 AS cor0
----
1302
2478
714

query I rowsort
SELECT ALL + - col1 + col1 * cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
2002
3333
8097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + cor0.col0 col0 FROM tab0 cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5490
SELECT + + ( col1 ) DIV col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5490
SELECT + + ( col1 ) / col1 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + ( cor0.col1 ) * + col2 * + 68 FROM tab0 AS cor0
----
192984
507416
6596

query I rowsort
SELECT ALL - 19 * col0 + col1 AS col0 FROM tab1 cor0
----
-1206
-1507
-31

onlyif mysql # use DIV operator for integer division
query I rowsort label-5493
SELECT - cor0.col2 - col0 * col0 DIV - col2 FROM tab1 AS cor0
----
-30
-54
14

skipif mysql # not compatible
query I rowsort label-5493
SELECT - cor0.col2 - col0 * col0 / - col2 FROM tab1 AS cor0
----
-30
-54
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col2 FROM tab0
----
36

query I rowsort
SELECT ALL 72 AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT - + 28 + col0 * - col1 FROM tab1 AS cor0
----
-106
-1068
-668

query I rowsort
SELECT ALL - col2 - - col2 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5498
SELECT + cor0.col2 + - cor0.col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5498
SELECT + cor0.col2 + - cor0.col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 3 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT + - col0 + + 79 * - col0 AS col2 FROM tab0 AS cor0
----
-1920
-2800
-7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-5501
SELECT - col2 DIV + CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-5501
SELECT - col2 / + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * col0 col1 FROM tab2
----
322
3588
3634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5503
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5503
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col0 * - ( 65 ) * - col0 AS col1 FROM tab0
----
37440
514865
79625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 13 ) col1 FROM tab0, tab2 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT - col1 * ( 1 ) FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5507
SELECT + col1 * - col0 DIV col0 col0 FROM tab1 cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5507
SELECT + col1 * - col0 / col0 col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - col0 * - col1 + + col0 AS col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT DISTINCT 60 FROM tab1, tab0 AS cor0
----
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5510
SELECT col2 * - CAST( NULL AS SIGNED ) - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5510
SELECT col2 * - CAST ( NULL AS INTEGER ) - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5511
SELECT DISTINCT + col2 + - tab1.col1 DIV + tab1.col1 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT + col2 + - tab1.col1 / + tab1.col1 FROM tab1
----
53
56
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5512
SELECT - CAST( - 81 AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

skipif mysql # not compatible
query I rowsort label-5512
SELECT - CAST ( - 81 AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT DISTINCT + 63 + + col1 * col0 AS col1 FROM tab2 AS cor0
----
1406
280
4665

query I rowsort
SELECT ALL + 66 + ( col0 ) AS col2 FROM tab0 AS cor0
----
101
155
90

query I rowsort
SELECT ALL + - col2 + col1 * col1 * col1 AS col0 FROM tab2 AS cor0
----
205353
29764
4875

query I rowsort
SELECT ALL col1 + 27 * col1 FROM tab1
----
280
364
728

query I rowsort
SELECT - col2 - col2 AS col1 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT col2 * - 91 FROM tab1
----
-4914
-5187
-8736

onlyif mysql # use DIV operator for integer division
query I rowsort label-5519
SELECT col0 * - tab2.col0 DIV - col0 + - col2 FROM tab2
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-5519
SELECT col0 * - tab2.col0 / - col0 + - col2 FROM tab2
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5520
SELECT - - CAST( NULL AS SIGNED ) / - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5520
SELECT - - CAST ( NULL AS INTEGER ) / - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 64 * - col0 AS col0 FROM tab2 AS cor0
----
-448
-4992
-5056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 * - col1 col2 FROM tab0 cor0
----
636056
753571
912673

query I rowsort
SELECT ALL + 94 + + col0 FROM tab0 AS cor0
----
118
129
183

query I rowsort
SELECT DISTINCT col2 * col2 - + tab0.col1 * col0 FROM tab0
----
-1375
-3394
-975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 - col1 col1 FROM tab1
----
-57
-60
-73

query I rowsort
SELECT - tab2.col1 + - col0 + col1 * col0 AS col0 FROM tab2
----
1247
179
4465

query I rowsort
SELECT ALL - 63 - col1 * + 65 AS col2 FROM tab2
----
-1168
-2078
-3898

query I rowsort
SELECT - 5 - col0 * + col1 FROM tab0 cor0
----
-2069
-3400
-8104

query I rowsort
SELECT ALL 90 - col1 FROM tab2 AS cor0
----
31
59
73

query I rowsort
SELECT - col1 + + tab1.col0 AS col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL col1 * 80 + - col1 FROM tab1 AS cor0
----
1027
2054
790

query I rowsort
SELECT + col0 * + 57 * + ( - col2 ) + + 89 FROM tab0 AS cor0
----
-1906
-415897
-45055

query I rowsort
SELECT DISTINCT - + col1 * col2 - - col1 * - col1 FROM tab2 cor0
----
-1798
-5015
-935

query I rowsort
SELECT ALL - + col1 + + col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL col0 + + 2 AS col1 FROM tab0
----
26
37
91

query I rowsort
SELECT ALL - + col1 - - cor0.col0 FROM tab2 cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5537
SELECT DISTINCT + col1 DIV - col0 + - col2 FROM tab2 cor0
----
-26
-31
-38

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT + col1 / - col0 + - col2 FROM tab2 cor0
----
-26
-31
-38

query I rowsort
SELECT col0 + 13 AS col2 FROM tab0 cor0
----
102
37
48

query I rowsort
SELECT + col2 + 6 AS col0 FROM tab2 AS cor0
----
32
33
44

query I rowsort
SELECT DISTINCT - - col1 * - 91 FROM tab1 AS cor0
----
-1183
-2366
-910

query I rowsort
SELECT DISTINCT + + col2 * + col2 + ( col1 ) AS col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT + + col2 * - 64 FROM tab1 AS cor0
----
-3456
-3648
-6144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT 3 + - col0 FROM tab1 cor0
----
-61
-77
0

query I rowsort
SELECT ALL + 94 + col2 FROM tab1 AS cor0
----
148
151
190

query I rowsort
SELECT ALL - ( - col1 ) + - col1 * 71 AS col2 FROM tab0 AS cor0
----
-6020
-6370
-6790

query I rowsort
SELECT - 80 FROM tab0, tab1 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT + 95 * col2 AS col0 FROM tab1
----
5130
5415
9120

query I rowsort
SELECT ALL 78 * + cor0.col0 * + cor0.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 9544b7b55c715afd845f4b30e681e048

query I rowsort
SELECT + col2 * - col2 + 89 AS col2 FROM tab1 AS cor0
----
-2827
-3160
-9127

onlyif mysql # use DIV operator for integer division
query I rowsort label-5551
SELECT DISTINCT + col2 DIV tab2.col1 AS col2 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT + col2 / tab2.col1 AS col2 FROM tab2
----
0
2

query I rowsort
SELECT + + col0 + + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5553
SELECT DISTINCT + - CAST( 62 AS SIGNED ) + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-59
18
2

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT + - CAST ( 62 AS INTEGER ) + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-59
18
2

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) + 49 * col2 * col0 FROM tab0 AS cor0
----
1750
357691
38832

query I rowsort
SELECT + col1 - + cor0.col2 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + 48 AS col2 FROM tab0 cor0
----
48

query I rowsort
SELECT + col0 + - col2 + + col0 FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT ALL col2 * - 50 AS col1 FROM tab0 AS cor0
----
-1650
-4100
-50

query I rowsort
SELECT - col2 + - 76 FROM tab0 AS cor0
----
-109
-158
-77

query I rowsort
SELECT ALL col2 * + 50 + + col2 AS col1 FROM tab2
----
1326
1377
1938

query I rowsort
SELECT ALL - col0 - tab2.col2 AS col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT - 45 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371

query I rowsort
SELECT DISTINCT col2 + + cor0.col1 + col0 FROM tab1 cor0
----
131
189
83

query I rowsort
SELECT DISTINCT + col2 * - 85 + - cor0.col0 FROM tab2 AS cor0
----
-2288
-2302
-3309

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 * col1 + - col1 col0 FROM tab1 AS cor0
----
-1014
-390
-507

query I rowsort
SELECT ALL - - ( + 61 ) FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT - cor0.col2 * - col0 - col0 * - 72 AS col0 FROM tab2 AS cor0
----
693
7644
8690

query I rowsort
SELECT + - 54 AS col1 FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT DISTINCT ( 95 ) + col1 * + col2 AS col1 FROM tab0 AS cor0
----
192
2933
7557

onlyif mysql # use DIV operator for integer division
query I rowsort label-5570
SELECT + - 61 DIV - col2 - col0 FROM tab1 AS cor0
----
-2
-63
-80

skipif mysql # not compatible
query I rowsort label-5570
SELECT + - 61 / - col2 - col0 FROM tab1 AS cor0
----
-2
-63
-80

query I rowsort
SELECT DISTINCT + - 4 * col0 + col2 AS col2 FROM tab0 AS cor0
----
-139
-274
-63

query I rowsort
SELECT ALL tab1.col1 + col1 * - col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT ALL col2 * - col1 * col1 + 59 AS col0 FROM tab0
----
-244009
-678983
-9350

onlyif mysql # use DIV operator for integer division
query I rowsort label-5574
SELECT DISTINCT 81 * col0 DIV cor0.col0 AS col2 FROM tab2 cor0
----
81

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT 81 * col0 / cor0.col0 AS col2 FROM tab2 cor0
----
81

query I rowsort
SELECT ALL + col0 + - col0 * - col1 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5576
SELECT 36 DIV - col1 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5576
SELECT 36 / - col1 FROM tab2
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 + + col2 col0 FROM tab2 AS cor0
----
78
79
90

query I rowsort
SELECT + - col1 * col2 + ( 73 + + col2 ) * + 74 AS col2 FROM tab0 cor0
----
4008
5006
5379

query I rowsort
SELECT - + col1 - cor0.col2 * - col1 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
22568
24531
39825

query I rowsort
SELECT col1 - + cor0.col2 * 49 FROM tab2 AS cor0
----
-1215
-1292
-1845

query I rowsort
SELECT - 53 * cor0.col0 FROM tab0 cor0
----
-1272
-1855
-4717

query I rowsort
SELECT + - col1 * - ( col1 ) FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5583
SELECT DISTINCT - + col0 DIV col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT - + col0 / col0 FROM tab2 cor0
----
-1

query I rowsort
SELECT ALL - - col0 * col0 + - col1 AS col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT cor0.col2 * 85 AS col0 FROM tab0 AS cor0
----
2805
6970
85

query I rowsort
SELECT cor0.col1 * 94 AS col1 FROM tab1, tab2 cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 7309ee61747da555b5d754dded7d17fc

query I rowsort
SELECT + col0 - 17 FROM tab2 AS cor0
----
-10
61
62

query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + + cor0.col0 * - col1 + - cor0.col2 * - col2 AS col1 FROM tab2 AS cor0
----
-3926
101
512

query I rowsort
SELECT + ( 22 ) FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT 84 * col1 FROM tab2
----
1428
2604
4956

query I rowsort
SELECT ALL col2 + + col1 * tab1.col2 AS col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT DISTINCT 36 * col0 * + 52 + col0 FROM tab2
----
13111
146094
147967

query I rowsort
SELECT DISTINCT + 8 * + col0 + tab1.col0 AS col0 FROM tab1
----
27
576
720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5595
SELECT - cor0.col1 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5595
SELECT - cor0.col1 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - 26 + col0 FROM tab1 AS cor0
----
-1401
-1418
-2416

onlyif mysql # use DIV operator for integer division
query I rowsort label-5597
SELECT ALL + - col1 * col0 + col2 - - col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL + - col1 * col0 + col2 - - col1 / - col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL + col2 * + 79 + + col2 * col0 + + col2 * cor0.col1 * - col0 FROM tab0 AS cor0
----
-3281
-64713
-650342

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5599
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) * col1 + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) * col1 + col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 + cor0.col0 - 38 FROM tab0 AS cor0
----
-31
-4
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-5601
SELECT DISTINCT - col0 * - col2 + - cor0.col2 + + cor0.col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
109
3592
7585

skipif mysql # not compatible
query I rowsort label-5601
SELECT DISTINCT - col0 * - col2 + - cor0.col2 + + cor0.col1 / + col1 AS col0 FROM tab1 AS cor0
----
109
3592
7585

query I rowsort
SELECT DISTINCT - col1 + 31 * 43 AS col2 FROM tab2 AS cor0
----
1274
1302
1316

onlyif mysql # use DIV operator for integer division
query I rowsort label-5603
SELECT ALL col0 - - 14 DIV - col0 AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL col0 - - 14 / - col0 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col1 * + 37 AS col1 FROM tab1 AS cor0
----
-370
-481
-962

query I rowsort
SELECT - col1 - cor0.col0 * - col0 * - col2 FROM tab0 AS cor0
----
-1322
-19094
-649613

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5606
SELECT + CAST( NULL AS SIGNED ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5606
SELECT + CAST ( NULL AS INTEGER ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 61 - + ( cor0.col2 ) FROM tab2 AS cor0
----
-87
-88
-99

query I rowsort
SELECT - - cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 col0 FROM tab1, tab2 AS cor0
----
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5610
SELECT cor0.col2 * col2 + col0 DIV 16 AS col2 FROM tab0 AS cor0
----
1090
3
6729

skipif mysql # not compatible
query I rowsort label-5610
SELECT cor0.col2 * col2 + col0 / 16 AS col2 FROM tab0 AS cor0
----
1090
3
6729

query I rowsort
SELECT - col0 - cor0.col2 * - col1 FROM tab2 cor0
----
1456
567
830

query I rowsort
SELECT ALL + + 30 * col2 AS col2 FROM tab1 AS cor0
----
1620
1710
2880

query I rowsort
SELECT DISTINCT - col2 * - 55 AS col1 FROM tab0 cor0
----
1815
4510
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5614
SELECT CAST( col2 AS SIGNED ) + col0 * col1 col0 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5614
SELECT CAST ( col2 AS INTEGER ) + col0 * col1 col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT col2 * - col1 + - col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT - + ( + col1 ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - 14 * col2 FROM tab0 AS cor0
----
-1148
-14
-462

query I rowsort
SELECT DISTINCT + col1 * + col0 * + col1 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT ALL - - 62 * col1 + - 58 + cor0.col1 FROM tab2 AS cor0
----
1013
1895
3659

query I rowsort
SELECT ALL + cor1.col1 * - cor0.col0 + + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 663a1ac9d9a2980de129eea358ec8df6

query I rowsort
SELECT DISTINCT - 56 FROM tab0, tab2 AS cor0
----
-56

query I rowsort
SELECT ALL col0 * - col1 + col2 + - 4 AS col2 FROM tab0 AS cor0
----
-2035
-3398
-8021

query I rowsort
SELECT + - cor0.col1 + col1 * col1 AS col2 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT DISTINCT - 5 AS col2 FROM tab1 cor0
----
-5

query I rowsort
SELECT ALL + 39 + - col0 * col0 * - col2 FROM tab2 AS cor0
----
1362
158223
237197

query I rowsort
SELECT ALL - col0 - col0 * col2 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT - 25 + - col1 FROM tab2 AS cor0
----
-42
-56
-84

query I rowsort
SELECT col2 * + col2 * + cor0.col2 FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT DISTINCT - col0 + - cor0.col0 * - col1 FROM tab2 AS cor0
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * - col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + 86 + cor0.col0 + cor0.col1 FROM tab0 cor0
----
196
218
266

query I rowsort
SELECT - ( + col1 ) + col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - ( col0 ) * - col1 * - col1 FROM tab1 cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ( - 94 ) * tab1.col1 + + col1 FROM tab1
----
-1209
-2418
-930

query I rowsort
SELECT - cor0.col2 * cor0.col2 * col1 + col0 + col0 * - col1 FROM tab0 AS cor0
----
-3457
-619894
-95694

query I rowsort
SELECT DISTINCT col2 * tab0.col1 - col1 FROM tab0
----
0
2752
7371

query I rowsort
SELECT + ( - col1 ) * col1 + col0 + tab2.col0 * col0 AS col0 FROM tab2
----
-905
2681
6031

query I rowsort
SELECT 9 * col0 AS col1 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT + + 49 * col1 * cor0.col2 - - cor0.col2 FROM tab2 cor0
----
31692
41040
75192

query I rowsort
SELECT ALL + 80 AS col0 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT + 29 * col1 AS col2 FROM tab2
----
1711
493
899

query I rowsort
SELECT + 76 * - tab2.col0 * - tab2.col0 FROM tab2
----
3724
462384
474316

onlyif mysql # use DIV operator for integer division
query I rowsort label-5643
SELECT - col1 + 20 DIV + col0 AS col2 FROM tab2 AS cor0
----
-17
-29
-59

skipif mysql # not compatible
query I rowsort label-5643
SELECT - col1 + 20 / + col0 AS col2 FROM tab2 AS cor0
----
-17
-29
-59

query I rowsort
SELECT ALL col1 * + col1 + col2 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT ALL + 1 + - 57 * col0 FROM tab0 AS cor0
----
-1367
-1994
-5072

query I rowsort
SELECT ALL + + ( - ( col2 ) ) * col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 87 col2 FROM tab0 AS cor0
----
-52
-63
2

query I rowsort
SELECT cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ( - tab2.col2 ) + - col0 FROM tab2
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * col1 + col0 * col2 col0 FROM tab1
----
1566
4218
8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-5651
SELECT ALL ( - col0 ) DIV col1 + + col1 FROM tab2
----
13
31
58

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL ( - col0 ) / col1 + + col1 FROM tab2
----
13
31
58

query I rowsort
SELECT ALL + col1 + 2 + + tab1.col2 FROM tab1
----
111
69
82

query I rowsort
SELECT DISTINCT + tab0.col0 * - col0 - + col0 AS col1 FROM tab0
----
-1260
-600
-8010

query I rowsort
SELECT + ( - tab2.col2 ) - - col0 * + tab2.col1 AS col1 FROM tab2
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-5655
SELECT ALL - ( - col0 ) DIV - col1 + col0 DIV tab1.col0 - + col1 FROM tab1
----
-15
-18
-25

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL - ( - col0 ) / - col1 + col0 / tab1.col0 - + col1 FROM tab1
----
-15
-18
-25

query I rowsort
SELECT ALL ( col2 ) - - col0 AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL col0 - 23 AS col2 FROM tab2
----
-16
55
56

query I rowsort
SELECT ( cor0.col2 ) * + col2 + col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT + ( 61 ) + col0 AS col0 FROM tab2 AS cor0
----
139
140
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-5660
SELECT ALL - + col0 DIV col1 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL - + col0 / col1 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5661
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 + - col2 * - col2 * cor0.col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 + - col2 * - col2 * cor0.col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - ( col1 ) + + col1 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT - col1 + - cor0.col0 * - col2 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT + + col2 - - col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + col2 * 88 AS col2 FROM tab1
----
4752
5016
8448

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 48366b93fe9110d617672483a489e89c

query I rowsort
SELECT - - col2 - ( ( col1 ) ) AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - col1 * + 44 AS col1 FROM tab0 cor0
----
-3784
-4004
-4268

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5669
SELECT - col0 * - CAST( col0 AS SIGNED ) - + col1 FROM tab1 cor0
----
-17
4086
6387

skipif mysql # not compatible
query I rowsort label-5669
SELECT - col0 * - CAST ( col0 AS INTEGER ) - + col1 FROM tab1 cor0
----
-17
4086
6387

onlyif mysql # use DIV operator for integer division
query I rowsort label-5670
SELECT + cor0.col2 - col2 DIV - 71 AS col1 FROM tab0 AS cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-5670
SELECT + cor0.col2 - col2 / - 71 AS col1 FROM tab0 AS cor0
----
1
33
83

query I rowsort
SELECT col2 + 92 FROM tab1 AS cor0
----
146
149
188

query I rowsort
SELECT ALL + + cor0.col1 * + 21 FROM tab0 cor0
----
1806
1911
2037

query I rowsort
SELECT DISTINCT - col2 + + col1 * col1 AS col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT + - ( + 6 ) AS col0 FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT - + col0 + ( col2 ) AS col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5676
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5677
SELECT + CAST( NULL AS SIGNED ) * 21 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5677
SELECT + CAST ( NULL AS INTEGER ) * 21 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5678
SELECT + 72 + + cor0.col2 DIV col1 AS col2 FROM tab0 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-5678
SELECT + 72 + + cor0.col2 / col1 AS col2 FROM tab0 AS cor0
----
72
72
72

query I rowsort
SELECT + ( col0 ) * 92 FROM tab2 AS cor0
----
644
7176
7268

query I rowsort
SELECT DISTINCT + ( + col0 ) * + col0 * col1 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT - cor0.col2 + - col2 * - col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT ALL - col2 + - cor0.col1 + - ( - col2 + + col1 ) AS col1 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-5683
SELECT DISTINCT cor0.col1 + col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-5683
SELECT DISTINCT cor0.col1 + col0 / - col1 AS col1 FROM tab2 AS cor0
----
13
31
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5684
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT - - col1 - - col1 * col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT col0 * - 82 FROM tab2 AS cor0
----
-574
-6396
-6478

query I rowsort
SELECT + ( 19 ) + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 38f6fe8ea2d7d918259fa2fbecfa4b73

onlyif mysql # use DIV operator for integer division
query I rowsort label-5688
SELECT DISTINCT col0 * col1 DIV - col2 FROM tab0
----
-3395
-62
-98

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT col0 * col1 / - col2 FROM tab0
----
-3395
-62
-98

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5690
SELECT ALL - cor0.col1 + CAST( - col0 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-1360
-248
-4661

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL - cor0.col1 + CAST ( - col0 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT - 82 * 58 FROM tab0 AS cor0
----
-4756

query I rowsort
SELECT 12 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT + 83 + + col0 FROM tab0 AS cor0
----
107
118
172

query I rowsort
SELECT ALL + + col2 * + col0 * + col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT 93 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT + col0 * 53 AS col0 FROM tab1
----
159
3392
4240

query I rowsort
SELECT col1 * - 52 AS col0 FROM tab2
----
-1612
-3068
-884

query I rowsort
SELECT - 47 + cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 45cf37eaf30d4c4c95f5747f34f99691

query I rowsort
SELECT DISTINCT - tab2.col0 * + col1 FROM tab2
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 12 ) col2 FROM tab0
----
12
12
12

query I rowsort
SELECT ALL 31 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # use DIV operator for integer division
query I rowsort label-5702
SELECT - 52 DIV + cor0.col2 col0 FROM tab0 AS cor0
----
-1
-52
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5702
SELECT - 52 / + cor0.col2 col0 FROM tab0 AS cor0
----
-1
-52
0

query I rowsort
SELECT ALL - 65 AS col2 FROM tab0
----
-65
-65
-65

query I rowsort
SELECT - col2 * - col2 + + 95 FROM tab1 AS cor0
----
3011
3344
9311

query I rowsort
SELECT DISTINCT - 62 FROM tab2, tab2 AS cor0
----
-62

query I rowsort
SELECT - 34 * - col1 + - 44 + + col0 FROM tab1 AS cor0
----
360
478
843

query I rowsort
SELECT DISTINCT - 60 + - col0 * ( + col0 ) AS col2 FROM tab0 AS cor0
----
-1285
-636
-7981

query I rowsort
SELECT col0 + cor0.col2 + - col1 AS col2 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT ALL 6 * - col1 FROM tab0 AS cor0
----
-516
-546
-582

onlyif mysql # use DIV operator for integer division
query I rowsort label-5710
SELECT col1 + col1 DIV ( col0 ) FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-5710
SELECT col1 + col1 / ( col0 ) FROM tab0 AS cor0
----
89
92
99

query I rowsort
SELECT ALL ( + col2 ) + + col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - col2 * col1 * + col1 - 62 * col0 AS col2 FROM tab0
----
-11579
-245556
-684560

query I rowsort
SELECT + col2 * + col0 + col0 AS col2 FROM tab0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5714
SELECT ALL 60 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5714
SELECT ALL 60 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * cor0.col1 + ( + col0 + col1 ) FROM tab1 AS cor0
----
174
262
705

query I rowsort
SELECT - + col0 + cor0.col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT - - cor0.col1 * cor0.col0 * col1 + col1 AS col2 FROM tab1 AS cor0
----
13533
2054
6410

onlyif mysql # use DIV operator for integer division
query I rowsort label-5718
SELECT - - ( - col0 ) + - col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-5718
SELECT - - ( - col0 ) + - col0 / - col0 AS col2 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT + - 60 AS col0 FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT ALL 18 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col0 + + tab2.col0 AS col1 FROM tab2
----
14
156
158

query I rowsort
SELECT - 70 - 66 FROM tab1 AS cor0
----
-136
-136
-136

query I rowsort
SELECT DISTINCT - + ( + 99 ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5725
SELECT CAST( 32 AS SIGNED ) FROM tab0 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-5725
SELECT CAST ( 32 AS INTEGER ) FROM tab0 AS cor0
----
32
32
32

query I rowsort
SELECT - col2 * - col0 * + col2 FROM tab0
----
26136
35
598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-5727
SELECT ALL - col1 DIV 56 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL - col1 / 56 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT + col0 * - 21 FROM tab0 AS cor0
----
-1869
-504
-735

query I rowsort
SELECT DISTINCT - col0 * 99 AS col2 FROM tab2 cor0
----
-693
-7722
-7821

query I rowsort
SELECT col0 * col0 + tab1.col0 * - col1 + 39 FROM tab1
----
-30
3495
5399

query I rowsort
SELECT - ( - col1 ) + col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + cor0.col1 AS REAL ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + 37 * col2 FROM tab0 AS cor0
----
1221
3034
37

query I rowsort
SELECT DISTINCT - col2 + - 36 * + col2 * - col1 FROM tab2 AS cor0
----
23218
30105
55198

query I rowsort
SELECT DISTINCT 1 * cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 92 AS col0 FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT + + ( col0 ) * + col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - - 78 * + 40 AS col2 FROM tab1 AS cor0
----
3120
3120
3120

query I rowsort
SELECT ALL + + 67 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1742
1809
2546

query I rowsort
SELECT DISTINCT + 33 * + col2 AS col0 FROM tab2 AS cor0
----
1254
858
891

query I rowsort
SELECT ALL + + 54 FROM tab1 cor0
----
54
54
54

query I rowsort
SELECT ALL - col1 * - col0 + col0 FROM tab0 AS cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 col0 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT - + col2 - col2 * - cor0.col2 * + 66 FROM tab1 AS cor0
----
192402
214377
608160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col2 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT - + ( + cor0.col1 ) FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5747
SELECT ALL - cor0.col2 + - col1 * cor0.col0 DIV - cor0.col2 col1 FROM tab1 AS cor0
----
-46
-53
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL - cor0.col2 + - col1 * cor0.col0 / - cor0.col2 col1 FROM tab1 AS cor0
----
-46
-53
-86

query I rowsort
SELECT - col1 * + 2 AS col2 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT - 29 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT col1 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5751
SELECT + col0 DIV + 54 AS col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5751
SELECT + col0 / + 54 AS col0 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL - - col2 + - 69 AS col0 FROM tab1 AS cor0
----
-12
-15
27

query I rowsort
SELECT DISTINCT 3 * 79 AS col0 FROM tab1, tab0 AS cor0
----
237

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5754
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - ( 63 ) FROM tab1 AS cor0
----
-63
-63
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-5756
SELECT ALL - + cor0.col0 DIV + col1 + col1 - + col0 col0 FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL - + cor0.col0 / + col1 + col1 - + col0 col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT col2 * - ( - ( - col2 ) ) AS col1 FROM tab0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5758
SELECT ALL + CAST( NULL AS SIGNED ) + cor0.col2 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL + CAST ( NULL AS INTEGER ) + cor0.col2 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * tab1.col1 + - tab1.col2 * col2 * 30 FROM tab1
----
-277728
-88884
-98040

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT col0 * - col0 + - col1 * col1 AS col0 FROM tab1
----
-4196
-6569
-685

query I rowsort
SELECT ALL cor0.col2 * + cor0.col0 FROM tab1, tab2 AS cor0 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 WHERE NOT NULL <> col0 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 col0 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT - col0 - col2 * col2 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL - cor0.col1 * + col1 + col1 * - col1 FROM tab0 AS cor0
----
-14792
-16562
-18818

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * + col2 BETWEEN ( col1 * + col1 + col0 ) AND ( col1 - + col1 )
----

query I rowsort
SELECT col1 + tab0.col0 * - col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT col0 - col1 * col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT ALL col0 * col0 + - col0 AS col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT - col0 + - col2 * + col0 AS col0 FROM tab2
----
-196
-2106
-3081

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> col2 OR NOT NULL IN ( cor0.col2 )
----

query I rowsort
SELECT DISTINCT - col1 * col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-5776
SELECT ALL + col0 + + col2 DIV col0 col2 FROM tab0 AS cor0
----
25
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL + col0 + + col2 / col0 col2 FROM tab0 AS cor0
----
25
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5777
SELECT ALL col2 + col1 DIV + col2 FROM tab0 AS cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL col2 + col1 / + col2 FROM tab0 AS cor0
----
35
83
98

query I rowsort
SELECT 69 * col1 - 64 AS col2 FROM tab0
----
5870
6215
6629

onlyif mysql # use DIV operator for integer division
query I rowsort label-5779
SELECT - + col1 DIV col2 + - 89 FROM tab0 AS cor0
----
-186
-90
-91

skipif mysql # not compatible
query I rowsort label-5779
SELECT - + col1 / col2 + - 89 FROM tab0 AS cor0
----
-186
-90
-91

query I rowsort
SELECT + - ( col2 ) + - 15 + col0 FROM tab2 AS cor0
----
-35
26
37

query I rowsort
SELECT - - 29 + col0 * + 98 FROM tab1 AS cor0
----
323
6301
7869

query I rowsort
SELECT ALL + col0 * col1 * 81 FROM tab0 AS cor0
----
167184
274995
656019

query I rowsort
SELECT DISTINCT + col2 + ( + col0 ) AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - - col1 - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - - col2 * + 56 * - 56 AS col0 FROM tab1 AS cor0
----
-169344
-178752
-301056

query I rowsort
SELECT + + cor0.col0 * ( + col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col1 + + col2 * - cor0.col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL 7 * col0 AS col0 FROM tab2
----
49
546
553

query I rowsort
SELECT DISTINCT 97 * - col2 AS col1 FROM tab1
----
-5238
-5529
-9312

query I rowsort
SELECT ALL - cor0.col1 - + 23 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b29e7094945b45dd2e3e3eb3ab99079a

query I rowsort
SELECT ALL col1 + tab2.col2 + col1 AS col1 FROM tab2
----
144
72
89

query I rowsort
SELECT ALL col0 * - tab0.col1 + col2 * col0 + + col1 AS col1 FROM tab0
----
-1186
-3263
-710

query I rowsort
SELECT - col0 * col2 + + tab2.col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT ALL - col2 * + tab2.col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL + col2 + - col0 FROM tab1 WHERE NULL NOT BETWEEN ( + col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - tab0.col0 )
----

query I rowsort
SELECT DISTINCT - col1 + col2 + - col1 FROM tab1
----
2
37
70

query I rowsort
SELECT DISTINCT - col1 * - col0 + col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL + col0 * + col0 + - tab0.col0 FROM tab0
----
1190
552
7832

query I rowsort
SELECT + col1 + + col0 * col1 * col2 FROM tab1
----
36490
4238
99853

query I rowsort
SELECT + col1 * + col2 * - col0 AS col1 FROM tab1
----
-36480
-4212
-99840

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( col2 ) AND tab2.col0 * col2
----

query I rowsort
SELECT col2 * tab0.col2 * - tab0.col0 - + tab0.col0 AS col1 FROM tab0
----
-26160
-598525
-70

query I rowsort
SELECT ALL tab1.col1 + col1 * + col1 AS col2 FROM tab1
----
110
182
702

query I rowsort
SELECT + tab2.col2 + - col2 FROM tab2 WHERE NOT NULL NOT IN ( - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 * col1 * - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 + col1 * col0 - tab0.col2 FROM tab0
----
1945
3297
7926

query I rowsort
SELECT DISTINCT col0 + tab0.col0 * + col2 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL - col2 - + 79 FROM tab2 cor0
----
-105
-106
-117

query I rowsort
SELECT col1 * 69 - - cor0.col2 * + col2 FROM tab1 AS cor0
----
10113
3939
4710

query I rowsort
SELECT ALL cor0.col2 + + 27 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 41cae43b478f4fb09c598c44f7a93389

query I rowsort
SELECT DISTINCT + - col1 - + col2 * col1 AS col2 FROM tab0 cor0
----
-194
-2924
-7553

query I rowsort
SELECT + + col2 + + ( - col1 * col2 ) AS col2 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + + col2 * 30 * col1 AS col2 FROM tab2 AS cor0
----
19380
25110
46020

query I rowsort
SELECT ALL + tab0.col2 * col2 * + 94 + + col2 + + ( - col1 ) FROM tab0
----
-2
102313
632047

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 76 col0 FROM tab1
----
-102
-86
-89

query I rowsort
SELECT ALL + col1 + + col2 * - col2 FROM tab1
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-5818
SELECT ALL cor0.col2 + CAST( - col1 AS SIGNED ) DIV - col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL cor0.col2 + CAST ( - col1 AS INTEGER ) / - col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + col2 - + ( ( + col2 ) ) FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL 51 FROM tab1, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5822
SELECT ALL CAST( NULL AS SIGNED ) * col2 / - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL CAST ( NULL AS INTEGER ) * col2 / - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + ( col1 ) FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + col0 * col2 * cor0.col2 + 34 * + cor0.col1 FROM tab1 AS cor0
----
208276
737722
9632

query I rowsort
SELECT ALL col0 - + ( col2 ) FROM tab0
----
-9
34
7

query I rowsort
SELECT ( - 95 ) * + col2 + - col1 FROM tab0 AS cor0
----
-192
-3221
-7881

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col2 AS REAL ) * col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - - col1 * 97 AS col1 FROM tab0 AS cor0
----
8342
8827
9409

query I rowsort
SELECT DISTINCT - ( col0 ) * + cor0.col0 + 37 AS col1 FROM tab1 cor0
----
-4059
-6363
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5830
SELECT ALL + + CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL + + CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 15 col0 FROM tab0 AS cor0
----
-101
-106
-112

query I rowsort
SELECT ALL - 91 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-58
-9
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5833
SELECT + col1 DIV 53 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5833
SELECT + col1 / 53 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col2 + - 85 AS col0 FROM tab0
----
-118
-167
-86

query I rowsort
SELECT ALL col1 * + 88 + col0 AS col0 FROM tab2
----
1575
2735
5270

query I rowsort
SELECT DISTINCT 88 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
88

query I rowsort
SELECT DISTINCT col1 - + col1 * + col2 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT ALL - col2 * + tab1.col2 + - ( + col2 ) - + 80 FROM tab1
----
-3050
-3386
-9392

onlyif mysql # use DIV operator for integer division
query I rowsort label-5839
SELECT - - col2 + + col1 DIV + ( cor0.col1 ) FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-5839
SELECT - - col2 + + col1 / + ( cor0.col1 ) FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT DISTINCT - col2 + cor0.col1 * 71 AS col1 FROM tab0 cor0
----
6073
6379
6886

query I rowsort
SELECT ALL + + cor0.col2 * + cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5842
SELECT DISTINCT col2 + col0 DIV - 99 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT col2 + col0 / - 99 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + 95 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
16
17
88

query I rowsort
SELECT ALL 51 + + col1 FROM tab1
----
61
64
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 * col0 * + col0 + 51 col1 FROM tab2
----
1325
158235
162317

query I rowsort
SELECT DISTINCT + 40 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
40

query I rowsort
SELECT ( + col2 ) * 22 AS col2 FROM tab1 AS cor0
----
1188
1254
2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col1 FROM tab0 AS cor0
----
21
21
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-5850
SELECT - col0 DIV - col0 + + 27 col2 FROM tab2
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5850
SELECT - col0 / - col0 + + 27 col2 FROM tab2
----
28
28
28

query I rowsort
SELECT DISTINCT ( col1 * - ( col1 ) ) AS col2 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT DISTINCT ( tab0.col1 + col1 ) FROM tab0
----
172
182
194

query I rowsort
SELECT - - 47 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT tab0.col2 * 74 FROM tab0
----
2442
6068
74

query I rowsort
SELECT DISTINCT col2 * - 27 + + 69 FROM tab1 cor0
----
-1389
-1470
-2523

query I rowsort
SELECT DISTINCT + - 0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
0

query I rowsort
SELECT DISTINCT + - col2 + + ( col0 * - col0 + - col1 ) AS col2 FROM tab0 AS cor0
----
-1323
-695
-8094

onlyif mysql # use DIV operator for integer division
query I rowsort label-5858
SELECT ALL - col2 + col0 DIV ( col1 + - 14 * col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL - col2 + col0 / ( col1 + - 14 * col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5859
SELECT DISTINCT col2 + - CAST( + col1 AS SIGNED ) DIV - col1 AS col0 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT col2 + - CAST ( + col1 AS INTEGER ) / - col1 AS col0 FROM tab2 AS cor0
----
27
28
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-5860
SELECT DISTINCT + cor0.col2 + 59 DIV - col1 AS col1 FROM tab1 AS cor0
----
52
92

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT + cor0.col2 + 59 / - col1 AS col1 FROM tab1 AS cor0
----
52
92

query I rowsort
SELECT ALL cor0.col0 + 69 * col0 FROM tab2 AS cor0
----
490
5460
5530

query I rowsort
SELECT - col2 + + 11 * col1 AS col2 FROM tab1 AS cor0
----
232
47
53

query I rowsort
SELECT - col0 + - 31 AS col1 FROM tab1
----
-111
-34
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - 37 * col0 - col0 FROM tab2 AS cor0
----
-266
-2964
-3002

query I rowsort
SELECT DISTINCT + + 77 FROM tab0 AS cor0
----
77

query I rowsort
SELECT cor0.col1 * col0 + cor0.col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL - - col2 * + 98 FROM tab0 AS cor0
----
3234
8036
98

query I rowsort
SELECT DISTINCT + 18 - - col0 AS col1 FROM tab2 AS cor0
----
25
96
97

query I rowsort
SELECT DISTINCT + - col2 * col1 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT 56 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT ALL + ( - col2 ) + 18 AS col2 FROM tab0 AS cor0
----
-15
-64
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5873
SELECT ALL col0 / - col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL col0 / - col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 93 ) + col2 FROM tab2
----
119
120
131

query I rowsort
SELECT DISTINCT - col1 + col1 + - 65 * + 91 FROM tab0 AS cor0
----
-5915

query I rowsort
SELECT + col2 + + col0 * 57 * - col0 FROM tab1 AS cor0
----
-233415
-364704
-459

query I rowsort
SELECT + col2 * col0 * - col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL + ( 59 ) FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT + col1 * - ( col0 ) + + cor0.col1 * + ( + col0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 36 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT + col2 + 86 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
629
6734
6832

query I rowsort
SELECT - + ( 28 ) * + col2 FROM tab0 AS cor0
----
-2296
-28
-924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col0 col2 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col0 FROM tab2, tab2 AS cor0
----
28

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 DISTINCT - ( tab1.col2 ) * col1 col2 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 52 + col2 col2 FROM tab2 AS cor0
----
391
4082
4146

query I rowsort
SELECT DISTINCT + col1 + - 46 AS col0 FROM tab1 AS cor0
----
-20
-33
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-5889
SELECT 53 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5889
SELECT 53 / + col0 AS col1 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT - col2 + ( + 90 + + col1 ) FROM tab2 cor0
----
123
69
94

query I rowsort
SELECT col2 * col0 * + col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT 92 + col1 FROM tab2
----
109
123
151

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5893
SELECT CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5893
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 34 AS REAL ) AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT DISTINCT - 4 AS col2 FROM tab0, tab0 AS cor0
----
-4

query I rowsort
SELECT - col1 * 13 AS col2 FROM tab2
----
-221
-403
-767

onlyif mysql # use DIV operator for integer division
query I rowsort label-5897
SELECT DISTINCT + - col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT + - col2 / - col0 AS col1 FROM tab0 AS cor0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5898
SELECT - col1 DIV - 18 AS col1 FROM tab2 cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5898
SELECT - col1 / - 18 AS col1 FROM tab2 cor0
----
0
1
3

query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col2 FROM tab1, tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + ( + col2 ) col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col2 + - 46 + + col2 FROM tab0 AS cor0
----
-46
-46
-46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5902
SELECT ALL + tab1.col0 / - CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL + tab1.col0 / - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + tab0.col2 AS col0 FROM tab0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5904
SELECT CAST( NULL AS SIGNED ) * col0 + + col1 * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT CAST ( NULL AS INTEGER ) * col0 + + col1 * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 37 + - 97 AS col2 FROM tab2 cor0
----
-134
-134
-134

query I rowsort
SELECT ALL + 54 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT ALL 82 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT - cor0.col0 + - cor0.col0 * 25 AS col0 FROM tab0 AS cor0
----
-2314
-624
-910

query I rowsort
SELECT - cor0.col2 + 4 AS col0 FROM tab1 AS cor0
----
-50
-53
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5910
SELECT CAST( NULL AS DECIMAL ) + - 14 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5910
SELECT CAST ( NULL AS REAL ) + - 14 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 + 3 col2 FROM tab0
----
10
10
10

query I rowsort
SELECT DISTINCT - + 0 * - 90 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT ALL 1 + - col1 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT ALL + 48 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
54
57
96

query I rowsort
SELECT + 9 * col2 FROM tab2
----
234
243
342

query I rowsort
SELECT DISTINCT col1 - - col0 * - col0 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT + ( col1 ) * ( col1 + - tab2.col0 ) FROM tab2
----
-1054
-1121
744

query I rowsort
SELECT tab2.col1 + - cor0.col1 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 14ba2031bc9d3391a60f7163593933fc

query I rowsort
SELECT - 77 * col2 + col1 AS col2 FROM tab0 AS cor0
----
-2455
-6223
20

query I rowsort
SELECT - 41 * + col1 FROM tab1 cor0
----
-1066
-410
-533

query I rowsort
SELECT - + cor0.col2 * ( 39 ) - + col1 FROM tab1 AS cor0
----
-2132
-2233
-3757

onlyif mysql # use DIV operator for integer division
query I rowsort label-5925
SELECT - + col0 - col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-5925
SELECT - + col0 - col2 / + col2 AS col0 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT - col1 + + cor0.col1 * - col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT col0 + - 95 * - col1 * + col2 FROM tab0 AS cor0
----
269634
708979
9250

query I rowsort
SELECT - col0 - 36 AS col1 FROM tab2 AS cor0
----
-114
-115
-43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5929
SELECT col1 * + CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-5929
SELECT col1 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT 34 * + col0 AS col2 FROM tab0
----
1190
3026
816

query I rowsort
SELECT DISTINCT - cor0.col0 + 99 + + cor0.col0 FROM tab0, tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT + col0 + - 22 + col1 FROM tab1 AS cor0
----
52
7
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 84 * col0 col1 FROM tab2 cor0
----
-619
-6611
-6653

onlyif mysql # use DIV operator for integer division
query I rowsort label-5934
SELECT ALL + col2 * + col1 DIV + ( tab1.col1 ) + col1 DIV ( - col1 * col2 ) FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL + col2 * + col1 / + ( tab1.col1 ) + col1 / ( - col1 * col2 ) FROM tab1
----
54
57
96

query I rowsort
SELECT - 59 * cor0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 45e711e5ea001a4b37a1982ea9658743

query I rowsort
SELECT - ( - col1 ) + - col0 FROM tab0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 19 ) col0 FROM tab1 AS cor0
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( + tab0.col1 ) + col0 col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - ( col1 ) + + col1 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 93 + - 61 FROM tab0 AS cor0
----
32
32
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5941
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - 77 AS REAL ) AS col1 FROM tab1 AS cor0
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + - col0 * 55 col2 FROM tab2 AS cor0
----
-412
-4316
-4383

query I rowsort
SELECT DISTINCT col0 * col0 * ( - col2 * col2 ) AS col0 FROM tab1 AS cor0
----
-13307904
-26244
-58982400

query I rowsort
SELECT ALL + - col2 * col2 + ( - 12 ) AS col1 FROM tab1 AS cor0
----
-2928
-3261
-9228

query I rowsort
SELECT DISTINCT - col1 * - col1 + col2 + + 43 * + col2 FROM tab0 AS cor0
----
11889
8848
9453

query I rowsort
SELECT + col0 * col1 - + col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT - 57 * col1 * col2 FROM tab0 cor0
----
-161766
-425334
-5529

onlyif mysql # use DIV operator for integer division
query I rowsort label-5949
SELECT DISTINCT + 62 DIV col2 FROM tab0 AS cor0
----
0
1
62

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT + 62 / col2 FROM tab0 AS cor0
----
0
1
62

query I rowsort
SELECT ALL - 14 * col0 AS col2 FROM tab2 AS cor0
----
-1092
-1106
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5951
SELECT DISTINCT - - 27 DIV + col1 + - 18 AS col0 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT - - 27 / + col1 + - 18 AS col0 FROM tab0 AS cor0
----
-18

query I rowsort
SELECT DISTINCT 37 * + col1 * - 55 + + col2 FROM tab1 cor0
----
-20293
-26359
-52856

query I rowsort
SELECT + + 1 * cor0.col1 - - col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT DISTINCT cor0.col0 + + col1 * + 44 + ( col2 ) AS col2 FROM tab1 AS cor0
----
1201
561
748

query I rowsort
SELECT DISTINCT - 92 AS col0 FROM tab1, tab1 AS cor0
----
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-5956
SELECT col2 + - 65 DIV - col2 FROM tab0
----
34
66
82

skipif mysql # not compatible
query I rowsort label-5956
SELECT col2 + - 65 / - col2 FROM tab0
----
34
66
82

query I rowsort
SELECT - col1 - - ( tab2.col0 ) FROM tab2
----
-24
19
62

query I rowsort
SELECT - 41 - 8 AS col2 FROM tab2
----
-49
-49
-49

query I rowsort
SELECT DISTINCT - ( col0 ) * + col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL - col2 * 87 * - col1 FROM tab2 AS cor0
----
133458
56202
72819

query I rowsort
SELECT + - col0 * + ( + ( col0 ) ) + ( col1 ) * - col0 AS col1 FROM tab0 AS cor0
----
-16020
-2640
-4620

onlyif mysql # use DIV operator for integer division
query I rowsort label-5962
SELECT cor0.col1 DIV - 13 FROM tab0 AS cor0
----
-6
-7
-7

skipif mysql # not compatible
query I rowsort label-5962
SELECT cor0.col1 / - 13 FROM tab0 AS cor0
----
-6
-7
-7

query I rowsort
SELECT DISTINCT + 56 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
56

query I rowsort
SELECT 64 * + col1 AS col2 FROM tab2
----
1088
1984
3776

onlyif mysql # use DIV operator for integer division
query I rowsort label-5965
SELECT DISTINCT + - col0 DIV - 38 AS col1 FROM tab0 cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-5965
SELECT DISTINCT + - col0 / - 38 AS col1 FROM tab0 cor0
----
0
2

query I rowsort
SELECT ALL - col2 * 30 + - 64 * col1 AS col0 FROM tab1 AS cor0
----
-2350
-3284
-3712

query I rowsort
SELECT + col1 + ( + ( - col0 ) ) + + ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-118
-147
20

query I rowsort
SELECT DISTINCT + + cor0.col2 * - col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + - 7 FROM tab0 AS cor0
----
-7
-7
-7

query I rowsort
SELECT ALL + col0 + - 75 FROM tab2
----
-68
3
4

query I rowsort
SELECT col1 + - ( col2 ) AS col2 FROM tab2
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col2 FROM tab2 AS cor0
----
53

query I rowsort
SELECT - ( - col0 ) + + col0 * + col2 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - ( + 85 ) FROM tab1 cor0
----
-85

query I rowsort
SELECT - + 59 AS col0 FROM tab2 cor0
----
-59
-59
-59

query I rowsort
SELECT DISTINCT + 5 + col2 FROM tab0 AS cor0
----
38
6
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5977
SELECT DISTINCT - - ( 10 ) * + col0 + + CAST( 57 AS SIGNED ) FROM tab2 AS cor0
----
127
837
847

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT - - ( 10 ) * + col0 + + CAST ( 57 AS INTEGER ) FROM tab2 AS cor0
----
127
837
847

query I rowsort
SELECT col0 + ( + col1 + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT ALL - - ( - 85 ) AS col0 FROM tab2 cor0
----
-85
-85
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 * col1 col0 FROM tab2 AS cor0
----
1736
3304
952

query I rowsort
SELECT + 54 * col2 AS col0 FROM tab2 AS cor0
----
1404
1458
2052

query I rowsort
SELECT DISTINCT - 58 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1914
-4756
-58

query I rowsort
SELECT ALL + col1 + + 19 AS col0 FROM tab1 AS cor0
----
29
32
45

query I rowsort
SELECT ALL + col1 * 61 FROM tab2 AS cor0
----
1037
1891
3599

onlyif mysql # use DIV operator for integer division
query I rowsort label-5985
SELECT + - col0 DIV col0 + col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-5985
SELECT + - col0 / col0 + col1 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT ALL - col1 + tab0.col2 AS col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT col1 + - ( col0 ) * - col2 AS col0 FROM tab0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-5988
SELECT ALL - col0 DIV - col1 + col2 * + col1 FROM tab2
----
1535
650
837

skipif mysql # not compatible
query I rowsort label-5988
SELECT ALL - col0 / - col1 + col2 * + col1 FROM tab2
----
1535
650
837

query I rowsort
SELECT ALL col0 * - tab1.col1 + - 84 + + tab1.col1 AS col1 FROM tab1
----
-1111
-136
-714

query I rowsort
SELECT + tab0.col2 * tab0.col0 - col1 FROM tab0
----
-62
706
7207

query I rowsort
SELECT DISTINCT + 15 FROM tab0, tab0 AS cor0
----
15

query I rowsort
SELECT 26 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col2 FROM tab2 AS cor0
----
24

query I rowsort
SELECT - ( + col0 ) * + col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + - col0 + ( + col2 + + ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5996
SELECT DISTINCT - CAST( - col1 AS SIGNED ) + col2 * ( col2 ) FROM tab1 AS cor0
----
2942
3259
9229

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) + col2 * ( col2 ) FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT - - col1 + + 18 FROM tab2 AS cor0
----
35
49
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 + col1 col2 FROM tab2 AS cor0
----
15
29
57

query I rowsort
SELECT 65 * + col0 FROM tab1 AS cor0
----
195
4160
5200

query I rowsort
SELECT - col1 + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT 62 + ( col0 ) AS col0 FROM tab1
----
126
142
65

query I rowsort
SELECT ALL + - ( col1 ) + col2 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL tab2.col0 * + col1 - 24 FROM tab2
----
1319
193
4578

onlyif mysql # use DIV operator for integer division
query I rowsort label-6004
SELECT DISTINCT - col2 DIV col1 + col2 AS col0 FROM tab1 AS cor0
----
52
89

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT - col2 / col1 + col2 AS col0 FROM tab1 AS cor0
----
52
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6005
SELECT DISTINCT + ( - col2 ) - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT + ( - col2 ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col2 * + col0 * + 99 + col1 + - col1 FROM tab1
----
16038
361152
760320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 + col1 col0 FROM tab1 AS cor0
----
109
112
125

query I rowsort
SELECT 68 + - col1 + - col0 * ( + col2 ) AS col1 FROM tab1
----
-120
-3590
-7625

onlyif mysql # use DIV operator for integer division
query I rowsort label-6009
SELECT - col1 DIV 99 + - col1 AS col1 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6009
SELECT - col1 / 99 + - col1 AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL + cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT + col2 * cor0.col0 + col0 + + col1 FROM tab1 AS cor0
----
191
3722
7773

query I rowsort
SELECT DISTINCT + col0 + - cor0.col2 * col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6013
SELECT ALL - col1 DIV 53 + + 41 DIV + cor0.col0 AS col2 FROM tab1 cor0
----
0
0
13

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL - col1 / 53 + + 41 / + cor0.col0 AS col2 FROM tab1 cor0
----
0
0
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + ( + col2 ) col2 FROM tab0
----
164
2
66

query I rowsort
SELECT DISTINCT - col0 + 67 - + col0 AS col1 FROM tab1 AS cor0
----
-61
-93
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + ( - col2 ) * col1 col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + col1 + 35 FROM tab0 AS cor0
----
121
126
132

query I rowsort
SELECT DISTINCT cor0.col0 * + 52 FROM tab2 AS cor0
----
364
4056
4108

query I rowsort
SELECT + col2 * col2 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT ALL + col1 * - ( + col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + + col0 col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - + ( col0 ) + + 9 AS col1 FROM tab0 AS cor0
----
-15
-26
-80

query I rowsort
SELECT + col1 + - col1 * 6 AS col1 FROM tab0 AS cor0
----
-430
-455
-485

query I rowsort
SELECT ALL + col2 + + col1 + col1 AS col0 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT - 0 * 69 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT col0 + col2 + ( col1 ) * + col1 FROM tab2 AS cor0
----
3585
406
995

query I rowsort
SELECT - col2 + + col0 * + col1 + + col0 * col0 AS col2 FROM tab0 AS cor0
----
15938
2607
4619

onlyif mysql # use DIV operator for integer division
query I rowsort label-6028
SELECT - - col2 * col1 + - 59 DIV col2 + col2 FROM tab0 AS cor0
----
2870
39
7544

skipif mysql # not compatible
query I rowsort label-6028
SELECT - - col2 * col1 + - 59 / col2 + col2 FROM tab0 AS cor0
----
2870
39
7544

query I rowsort
SELECT ALL - col1 * - col2 * - col1 AS col0 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT - col1 * + col2 * - col1 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT col2 * 3 * - col2 AS col1 FROM tab2 cor0
----
-2028
-2187
-4332

query I rowsort
SELECT - - 74 * cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
13986
150072
222148

query I rowsort
SELECT ALL + col1 + - col0 * + col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + - col2 * col1 * col0 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 col2 FROM tab2, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 AS REAL ) - - col2 * ( col2 ) AS col0 FROM tab2 cor0
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 - cor0.col2 col1 FROM tab0 AS cor0
----
-148
-67
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6038
SELECT ALL 94 + 31 DIV col0 FROM tab2
----
94
94
98

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL 94 + 31 / col0 FROM tab2
----
94
94
98

query I rowsort
SELECT ALL - 9 + - col1 + + col0 FROM tab0
----
-11
-71
-71

query I rowsort
SELECT + 9 + + 82 AS col1 FROM tab0
----
91
91
91

query I rowsort
SELECT ALL col1 + - tab1.col2 AS col0 FROM tab1
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) + + tab0.col1 col1 FROM tab0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 48 ) * col0 col0 FROM tab1
----
144
3072
3840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6044
SELECT + col1 DIV + tab2.col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6044
SELECT + col1 / + tab2.col1 FROM tab2
----
1
1
1

query I rowsort
SELECT 44 * - 58 * col1 FROM tab0
----
-219472
-232232
-247544

query I rowsort
SELECT DISTINCT + - 48 AS col2 FROM tab1 AS cor0
----
-48

onlyif mysql # use DIV operator for integer division
query I rowsort label-6047
SELECT + 53 DIV col1 + ( - col1 ) * col0 + + 16 * col1 col2 FROM tab2 AS cor0
----
-1068
-3658
280

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6047
SELECT + 53 / col1 + ( - col1 ) * col0 + + 16 * col1 col2 FROM tab2 AS cor0
----
-1068
-3658
280

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6048
SELECT ALL - - col1 * cor0.col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL - - col1 * cor0.col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * col2 - - col2 * col2 FROM tab0
----
13448
2
2178

query I rowsort
SELECT ALL col1 + col1 * 45 FROM tab2
----
1426
2714
782

query I rowsort
SELECT + 9 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT + 38 * col1 * + ( - col0 ) + - col2 + - col1 FROM tab2 AS cor0
----
-174961
-51089
-8304

query I rowsort
SELECT DISTINCT + 1 AS col2 FROM tab0, tab0 AS cor0
----
1

query I rowsort
SELECT ALL tab1.col0 AS col0 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT - + col1 + 26 AS col2 FROM tab1 AS cor0
----
0
13
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 + + col0 col2 FROM tab1 AS cor0
----
109
32
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6057
SELECT + ( col0 ) + + col0 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-6057
SELECT + ( col0 ) + + col0 / cor0.col1 AS col2 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT - 52 FROM tab0 cor0
----
-52
-52
-52

query I rowsort
SELECT - + 0 * col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( 32 ) * + col1 + + col0 * + 62 AS col0 FROM tab0 AS cor0
----
4240
5274
8430

query I rowsort
SELECT DISTINCT col2 + + ( + 91 ) AS col0 FROM tab2
----
117
118
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
-24
-35
-89

query I rowsort
SELECT + 34 * 42 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 9af57287225d321b6a5bf51b303cf116

query I rowsort
SELECT - ( + col2 ) * + tab0.col2 * ( col0 ) + - tab0.col2 FROM tab0
----
-26169
-36
-598518

query I rowsort
SELECT col1 + tab2.col1 * + col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT + - col0 + - col0 * - col0 AS col2 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT DISTINCT - 59 * col2 FROM tab1
----
-3186
-3363
-5664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 + 40 * - col1 col0 FROM tab0 AS cor0
----
-3503
-3703
-3943

query I rowsort
SELECT ALL + 38 FROM tab1, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ALL 21 * col0 AS col1 FROM tab2 AS cor0
----
147
1638
1659

query I rowsort
SELECT + 98 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT - col0 * + col2 * - col0 FROM tab2 cor0
----
1323
158184
237158

query I rowsort
SELECT 51 FROM tab2, tab0 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to c9771396949659773ab2fa2a1ac228de

query I rowsort
SELECT ALL - + ( 43 ) * col0 FROM tab0 AS cor0
----
-1032
-1505
-3827

query I rowsort
SELECT 6 + col1 * + col0 AS col2 FROM tab1 cor0
----
1046
646
84

query I rowsort
SELECT DISTINCT col2 + col1 * col2 * - col0 AS col1 FROM tab0
----
-3394
-664036
-68079

query I rowsort
SELECT ALL + col1 * + col0 + ( + 95 ) FROM tab1
----
1135
173
735

query I rowsort
SELECT ALL col0 * col1 - 64 AS col1 FROM tab2
----
1279
153
4538

query I rowsort
SELECT 67 * - col1 - - col1 AS col1 FROM tab2
----
-1122
-2046
-3894

query I rowsort
SELECT 87 * col2 FROM tab1
----
4698
4959
8352

query I rowsort
SELECT + + col0 * col2 - - col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT col2 * + 90 AS col2 FROM tab0 AS cor0
----
2970
7380
90

query I rowsort
SELECT - - cor0.col2 * + col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6084
SELECT ALL + col0 DIV - 40 col1 FROM tab2 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL + col0 / - 40 col1 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT - col0 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - + col0 * - ( - col1 ) + - col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6087
SELECT col2 * + col1 DIV col1 + + col0 col0 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6087
SELECT col2 * + col1 / col1 + + col0 col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - col0 * cor0.col0 + 2 AS col0 FROM tab2 AS cor0
----
-47
-6082
-6239

query I rowsort
SELECT ALL - col2 * col0 + + col2 FROM tab2 cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-6090
SELECT cor0.col0 * + col1 + - col1 DIV + cor0.col0 AS col1 FROM tab1 cor0
----
1040
640
70

skipif mysql # not compatible
query I rowsort label-6090
SELECT cor0.col0 * + col1 + - col1 / + cor0.col0 AS col1 FROM tab1 cor0
----
1040
640
70

query I rowsort
SELECT ALL 83 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT DISTINCT + - cor0.col1 * - 74 AS col1 FROM tab1 AS cor0
----
1924
740
962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 86 col0 FROM tab0 AS cor0
----
2838
7052
86

query I rowsort
SELECT ALL + + col1 + ( + cor0.col1 * cor0.col1 ) AS col2 FROM tab0 cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6095
SELECT DISTINCT - - col0 * ( - 34 ) DIV - col1 FROM tab0 AS cor0
----
12
33
9

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT - - col0 * ( - 34 ) / - col1 FROM tab0 AS cor0
----
12
33
9

query I rowsort
SELECT DISTINCT - col2 * + col2 * - col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT - - col0 + - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + col1 * - ( 9 ) + cor0.col0 FROM tab1 AS cor0
----
-231
-26
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-6099
SELECT ALL col1 + + col0 DIV - col0 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL col1 + + col0 / - col0 FROM tab1 AS cor0
----
12
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6101
SELECT + + col1 + CAST( + 31 AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
1109
128
2633

skipif mysql # not compatible
query I rowsort label-6101
SELECT + + col1 + CAST ( + 31 AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
1109
128
2633

query I rowsort
SELECT + col2 * - 94 AS col2 FROM tab0 AS cor0
----
-3102
-7708
-94

query I rowsort
SELECT + col0 - 60 FROM tab1 AS cor0
----
-57
20
4

query I rowsort
SELECT ALL + cor0.col1 - ( + col0 + col2 * - col1 ) AS col0 FROM tab1 AS cor0
----
1181
1427
516

onlyif mysql # use DIV operator for integer division
query I rowsort label-6105
SELECT ALL col1 DIV ( - 66 ) FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL col1 / ( - 66 ) FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT + - ( col0 ) * cor0.col2 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - col2 + 99 * col0 AS col1 FROM tab2 AS cor0
----
666
7696
7783

onlyif mysql # use DIV operator for integer division
query I rowsort label-6108
SELECT - 25 + + 10 * col1 DIV 27 AS col1 FROM tab2 AS cor0
----
-14
-19
-4

skipif mysql # not compatible
query I rowsort label-6108
SELECT - 25 + + 10 * col1 / 27 AS col1 FROM tab2 AS cor0
----
-14
-19
-4

query I rowsort
SELECT ALL + col1 + 52 + cor0.col0 AS col0 FROM tab1 AS cor0
----
126
145
81

query I rowsort
SELECT DISTINCT col2 - - cor0.col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL col0 + ( - tab1.col2 ) * + col2 AS col1 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT - ( + 97 ) FROM tab1, tab2 AS cor0
----
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6113
SELECT + + col0 + col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
3
63
80

skipif mysql # not compatible
query I rowsort label-6113
SELECT + + col0 + col0 / - col2 AS col0 FROM tab1 AS cor0
----
3
63
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6114
SELECT ALL - col0 + + col2 DIV + col1 FROM tab2
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL - col0 + + col2 / + col1 FROM tab2
----
-7
-77
-78

query I rowsort
SELECT ALL col1 + + 93 * col0 FROM tab1
----
305
5962
7453

query I rowsort
SELECT DISTINCT + + 78 + col0 - - 66 AS col2 FROM tab0 AS cor0
----
168
179
233

query I rowsort
SELECT ALL cor0.col2 * + col1 + 73 * 2 AS col0 FROM tab1 AS cor0
----
1394
1550
716

query I rowsort
SELECT - col0 * col0 * + 90 FROM tab2 cor0
----
-4410
-547560
-561690

query I rowsort
SELECT ALL - ( + col2 ) * + col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-6120
SELECT - col2 + - col2 DIV + col2 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-6120
SELECT - col2 + - col2 / + col2 FROM tab0 AS cor0
----
-2
-34
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * col2 col0 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6122
SELECT DISTINCT + + cor0.col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT + + cor0.col1 / + col2 AS col0 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT + col0 + - col2 * 35 FROM tab2 AS cor0
----
-1251
-832
-938

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6124
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 8 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6124
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 8 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col2 * + 89 ) col0 FROM tab2, tab1 cor0
----
9 values hashing to 34271925b901fabb45966a6b7b4a4955

onlyif mysql # use DIV operator for integer division
query I rowsort label-6126
SELECT col2 DIV col0 + col1 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-6126
SELECT col2 / col0 + col1 FROM tab2
----
17
34
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 * + col0 col2 FROM tab1 AS cor0
----
189
4032
5040

onlyif mysql # use DIV operator for integer division
query I rowsort label-6128
SELECT DISTINCT + col2 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT + col2 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - col1 * col1 * col0 - 80 AS col0 FROM tab0
----
-177584
-329395
-737089

query I rowsort
SELECT DISTINCT - 0 AS col1 FROM tab1, tab2, tab0 AS cor0
----
0

query I rowsort
SELECT col2 + col1 * + ( + col0 ) + col2 AS col0 FROM tab0
----
2130
3397
8263

query I rowsort
SELECT DISTINCT - cor1.col1 * cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6133
SELECT ALL + col2 - col1 DIV + col0 FROM tab0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL + col2 - col1 / + col0 FROM tab0
----
-1
30
81

query I rowsort
SELECT ALL - + 1 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6135
SELECT - tab0.col1 DIV - col1 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6135
SELECT - tab0.col1 / - col1 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT + col0 * col2 * + col1 AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - col1 + cor0.col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT col2 * - col2 + - col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1566
-2090
-2210

query I rowsort
SELECT + + col1 * - cor0.col1 * col2 + col0 FROM tab1 AS cor0
----
-16144
-36501
-5636

onlyif mysql # use DIV operator for integer division
query I rowsort label-6140
SELECT ALL col0 DIV cor0.col1 + cor0.col1 * + col1 AS col2 FROM tab2 AS cor0
----
293
3482
961

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL col0 / cor0.col1 + cor0.col1 * + col1 AS col2 FROM tab2 AS cor0
----
293
3482
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6141
SELECT col2 DIV col0 + - col0 FROM tab1
----
-64
-79
15

skipif mysql # not compatible
query I rowsort label-6141
SELECT col2 / col0 + - col0 FROM tab1
----
-64
-79
15

query I rowsort
SELECT DISTINCT + - 46 AS col1 FROM tab2 cor0
----
-46

query I rowsort
SELECT ALL + 92 + - cor0.col0 FROM tab0 AS cor0
----
3
57
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-6144
SELECT ALL + + col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL + + col1 / - col0 AS col1 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT - 32 + - col1 AS col1 FROM tab2 AS cor0
----
-49
-63
-91

query I rowsort
SELECT DISTINCT - col1 + - col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT col1 * col1 + + col2 AS col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT tab0.col0 AS col2 FROM tab0 WHERE ( col0 ) <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) IN ( + tab2.col0 - col0 * col2 )
----

query I rowsort
SELECT ALL - col1 * col2 + col2 AS col0 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT + col2 * col0 FROM tab1 WHERE NOT NULL IN ( col2 - - col2 * + col2 / + col1 )
----

query I rowsort
SELECT - col2 + - col0 * col0 FROM tab2
----
-6110
-6279
-76

query I rowsort
SELECT ALL tab0.col1 + col2 * - col2 AS col2 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT + col2 * tab2.col1 + + col0 AS col2 FROM tab2
----
1612
725
844

query I rowsort
SELECT col0 / col2 AS col1 FROM tab0 WHERE NULL NOT IN ( tab0.col2 + col0 * + col1 )
----

query I rowsort
SELECT col2 + col2 * - col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT + col2 + col0 + + col2 * + col1 * col1 FROM tab1 WHERE col0 > NULL
----

query I rowsort
SELECT DISTINCT - col1 * + col2 + col0 AS col1 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT ALL + col0 + col1 * col1 FROM tab1
----
164
249
679

query I rowsort
SELECT DISTINCT + + col2 + col2 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
105
112
50

query I rowsort
SELECT 62 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT - col2 * - tab2.col1 + col1 * col0 * col1 AS col1 FROM tab2
----
23477
273052
7564

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT col2 BETWEEN NULL AND col1
----

query I rowsort
SELECT + col0 - + col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT + col1 + - tab1.col2 - col2 * col0 * col0 AS col0 FROM tab1
----
-233519
-514
-614483

onlyif mysql # use DIV operator for integer division
query I rowsort label-6166
SELECT DISTINCT col1 * col2 + col0 DIV - col0 AS col2 FROM tab0
----
2837
7461
96

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT col1 * col2 + col0 / - col0 AS col2 FROM tab0
----
2837
7461
96

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE + col2 > - col2 + + col0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT col0 + + tab2.col0 AS col2 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - col2 * col1 FROM tab2 AS cor0 WHERE NOT + col1 * cor0.col0 BETWEEN - col0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + - col2 / + col1 NOT IN ( - tab0.col2 )
----

query I rowsort
SELECT ALL + col2 * col1 + - col2 AS col1 FROM tab0
----
2805
7380
96

query I rowsort
SELECT ALL col1 * - col0 * + col2 + - col2 * col1 * + col1 FROM tab2
----
-210158
-31806
-62016

query I rowsort
SELECT ALL col2 + + col0 * - col2 * + tab1.col0 FROM tab1
----
-233415
-432
-614304

query I rowsort
SELECT DISTINCT - col0 * col2 + + col2 FROM tab0 WHERE NULL <= col0 + col2 * col2 * + col0
----

query I rowsort
SELECT DISTINCT col1 + - col1 * col2 AS col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab2 cor0 WHERE NOT cor0.col2 <> NULL
----

query I rowsort
SELECT col1 * col1 * + col1 AS col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NULL >= - col1 / - col0
----

query I rowsort
SELECT ALL + col2 + + tab0.col1 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT + col1 * - col2 + 32 AS col2 FROM tab1 AS cor0
----
-1216
-1372
-538

query I rowsort
SELECT DISTINCT 81 * + col0 AS col0 FROM tab0 cor0
----
1944
2835
7209

query I rowsort
SELECT ALL + 90 * - col2 * + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-138138
-58219
-75337

query I rowsort
SELECT + 95 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-3135
-7790
-95

query I rowsort
SELECT - col0 * - 68 FROM tab2
----
476
5304
5372

query I rowsort
SELECT ALL 46 + + col0 FROM tab0
----
135
70
81

query I rowsort
SELECT DISTINCT tab1.col0 + col0 * ( ( col2 ) ) AS col1 FROM tab1
----
165
3712
7760

query I rowsort
SELECT + col1 * col1 * - 61 AS col0 FROM tab2
----
-17629
-212341
-58621

query I rowsort
SELECT + 4 FROM tab0, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT + 68 AS col2 FROM tab1 cor0
----
68
68
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-6191
SELECT + - col2 * - 21 + + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
1722
21
693

skipif mysql # not compatible
query I rowsort label-6191
SELECT + - col2 * - 21 + + col0 / col1 AS col1 FROM tab0 AS cor0
----
1722
21
693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6192
SELECT DISTINCT - CAST( col0 AS SIGNED ) * col2 FROM tab2 cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-6192
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL 32 - 88 * col1 FROM tab0 AS cor0
----
-7536
-7976
-8504

onlyif mysql # use DIV operator for integer division
query I rowsort label-6194
SELECT col0 - - col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-6194
SELECT col0 - - col2 / - col1 AS col1 FROM tab2 AS cor0
----
7
77
78

query I rowsort
SELECT ALL - + col0 * col0 + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT col2 * 27 FROM tab0 AS cor0
----
2214
27
891

query I rowsort
SELECT ALL 69 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT 89 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6199
SELECT col2 + - CAST( - 68 + - tab2.col2 AS SIGNED ) FROM tab2
----
120
122
144

skipif mysql # not compatible
query I rowsort label-6199
SELECT col2 + - CAST ( - 68 + - tab2.col2 AS INTEGER ) FROM tab2
----
120
122
144

query I rowsort
SELECT + 22 + + col0 * - col2 * col2 AS col2 FROM tab2 AS cor0
----
-114054
-5081
-52706

query I rowsort
SELECT + + col0 * + 60 + - cor0.col2 * - 19 + col0 * col2 AS col2 FROM tab2 AS cor0
----
1122
7202
8464

query I rowsort
SELECT DISTINCT - + cor0.col2 * - 73 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1898
1971
2774

query I rowsort
SELECT col2 + - col1 + + tab2.col0 FROM tab2
----
100
3
45

query I rowsort
SELECT ALL + 55 * col1 FROM tab0 AS cor0
----
4730
5005
5335

query I rowsort
SELECT DISTINCT - col2 * 98 FROM tab1 AS cor0
----
-5292
-5586
-9408

query I rowsort
SELECT DISTINCT + + 44 * + col2 + col2 AS col2 FROM tab2 cor0
----
1170
1215
1710

query I rowsort
SELECT + 37 + - col0 FROM tab2 AS cor0
----
-41
-42
30

query I rowsort
SELECT ALL col1 + - ( col0 ) * - col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT - 55 * - col0 FROM tab1 AS cor0
----
165
3520
4400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6210
SELECT ALL - ( cor0.col0 ) DIV - col0 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL - ( cor0.col0 ) / - col0 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 32 * cor0.col2 col0 FROM tab2 AS cor0
----
1137
754
857

query I rowsort
SELECT - 56 - - col1 FROM tab0 AS cor0
----
30
35
41

query I rowsort
SELECT + cor0.col2 * - col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT 7 + col1 AS col2 FROM tab2 cor0
----
24
38
66

query I rowsort
SELECT DISTINCT + 53 + col0 AS col2 FROM tab2 AS cor0
----
131
132
60

query I rowsort
SELECT ALL - 62 + + 61 * + col2 FROM tab1
----
3232
3415
5794

query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab1, tab2, tab1 AS cor0
----
-34

query I rowsort
SELECT DISTINCT - col2 * - col0 - - cor0.col1 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT ( + 76 ) AS col2 FROM tab2 AS cor0
----
76
76
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6220
SELECT DISTINCT col0 DIV col2 + - col1 + col1 col0 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6220
SELECT DISTINCT col0 / col2 + - col1 + col1 col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - - cor0.col1 - - cor0.col2 AS col0 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6222
SELECT - - CAST( 74 AS SIGNED ) + col2 AS col1 FROM tab1 AS cor0
----
128
131
170

skipif mysql # not compatible
query I rowsort label-6222
SELECT - - CAST ( 74 AS INTEGER ) + col2 AS col1 FROM tab1 AS cor0
----
128
131
170

query I rowsort
SELECT DISTINCT + 98 * + col1 - - col0 AS col1 FROM tab2 AS cor0
----
1745
3045
5860

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6224
SELECT ALL - CAST( 70 AS SIGNED ) AS col1 FROM tab1
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL - CAST ( 70 AS INTEGER ) AS col1 FROM tab1
----
-70
-70
-70

query I rowsort
SELECT ALL - 24 + + col0 FROM tab2 AS cor0
----
-17
54
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6226
SELECT - - ( - col1 ) + + 78 + - col1 * cor0.col2 DIV col2 FROM tab1 AS cor0
----
26
52
58

skipif mysql # not compatible
query I rowsort label-6226
SELECT - - ( - col1 ) + + 78 + - col1 * cor0.col2 / col2 FROM tab1 AS cor0
----
26
52
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col0 * - 53 col2 FROM tab0 cor0
----
1855
386794
41976

query I rowsort
SELECT + 95 + - col2 + 67 FROM tab2 AS cor0
----
124
135
136

onlyif mysql # use DIV operator for integer division
query I rowsort label-6229
SELECT ALL col2 * col2 DIV cor0.col0 + col0 * col2 FROM tab2 AS cor0
----
2036
293
3020

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL col2 * col2 / cor0.col0 + col0 * col2 FROM tab2 AS cor0
----
2036
293
3020

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6230
SELECT 70 * col0 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6230
SELECT 70 * col0 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6231
SELECT ALL - + col1 * + col1 - - ( col0 + - col2 ) DIV - col2 col2 FROM tab1 AS cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL - + col1 * + col1 - - ( col0 + - col2 ) / - col2 col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT col2 * - col1 + col2 + - 24 FROM tab2 AS cor0
----
-1532
-632
-834

query I rowsort
SELECT - - 92 * col0 FROM tab1 AS cor0
----
276
5888
7360

query I rowsort
SELECT - - 10 AS col0 FROM tab2 cor0
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + + ( 9 + col0 ) col0 FROM tab2 AS cor0
----
-15
28
71

query I rowsort
SELECT col2 - col1 * col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT ALL col0 + ( + col2 ) AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - + col0 * - col2 * - col1 + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-100009
-36580
-4888

query I rowsort
SELECT DISTINCT - col0 + + 97 FROM tab0 cor0
----
62
73
8

query I rowsort
SELECT ALL col0 - + 58 AS col1 FROM tab0 AS cor0
----
-23
-34
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + col1 * - col0 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + cor0.col0 * 54 AS col0 FROM tab1 AS cor0
----
136
3446
4307

query I rowsort
SELECT DISTINCT cor0.col1 + col1 * col0 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + col0 - - cor0.col0 AS col2 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT ALL + cor0.col1 + - col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6246
SELECT - + col2 * ( col0 ) + col1 * CAST( + col2 AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
604586
62
92862

skipif mysql # not compatible
query I rowsort label-6246
SELECT - + col2 * ( col0 ) + col1 * CAST ( + col2 AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
604586
62
92862

query I rowsort
SELECT ALL cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT cor0.col0 * - ( cor0.col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + col1 * 21 AS col0 FROM tab1 AS cor0
----
210
273
546

query I rowsort
SELECT ALL - col2 * + cor0.col0 * - col0 + col0 AS col2 FROM tab0 cor0
----
1260
19032
649611

query I rowsort
SELECT ALL - cor0.col0 - + col1 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL - cor0.col0 + - 0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + col1 * + 8 + 97 AS col2 FROM tab0 AS cor0
----
785
825
873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * 51 col2 FROM tab0 AS cor0
----
4386
4641
4947

query I rowsort
SELECT - col1 + 5 AS col2 FROM tab1 AS cor0
----
-21
-5
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6256
SELECT - CAST( 81 AS SIGNED ) FROM tab0 AS cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-6256
SELECT - CAST ( 81 AS INTEGER ) FROM tab0 AS cor0
----
-81
-81
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6257
SELECT DISTINCT - - col2 DIV 21 AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6257
SELECT DISTINCT - - col2 / 21 AS col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - col0 * col0 + col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col2 col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - cor0.col1 * 13 FROM tab2 AS cor0
----
-221
-403
-767

query I rowsort
SELECT - + 70 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT + + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - col2 * col1 + + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - cor0.col0 * ( - 39 ) + col2 FROM tab0 AS cor0
----
1366
3553
969

query I rowsort
SELECT col0 * - 23 + 35 FROM tab2 AS cor0
----
-126
-1759
-1782

query I rowsort
SELECT + col0 - 51 FROM tab2 AS cor0
----
-44
27
28

query I rowsort
SELECT ALL ( - 0 + + col1 ) FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT cor0.col2 * col0 + + cor0.col2 + 35 AS col2 FROM tab2 cor0
----
2089
251
3075

query I rowsort
SELECT ALL - col1 + - 35 FROM tab1 AS cor0
----
-45
-48
-61

query I rowsort
SELECT + 14 * + 92 AS col1 FROM tab0 cor0
----
1288
1288
1288

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - CAST ( 42 AS REAL ) AS col2 FROM tab2 cor0
----
-42

query I rowsort
SELECT ALL + cor0.col0 * cor0.col0 + + col2 * 70 FROM tab2 AS cor0
----
1939
7904
8901

onlyif mysql # use DIV operator for integer division
query I rowsort label-6273
SELECT ALL - col0 DIV + col0 + col0 * col1 FROM tab0 AS cor0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL - col0 / + col0 + col0 * col1 FROM tab0 AS cor0
----
2063
3394
8098

query I rowsort
SELECT - 51 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT - 63 * + col2 FROM tab0 AS cor0
----
-2079
-5166
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-6276
SELECT DISTINCT - 23 DIV + col1 + - col2 AS col2 FROM tab1
----
-54
-59
-97

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT - 23 / + col1 + - col2 AS col2 FROM tab1
----
-54
-59
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * col1 col1 FROM tab2 cor0
----
1508
608
810

query I rowsort
SELECT ALL - col0 + - 35 * ( col0 ) * ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-127744
-268880
-5673

query I rowsort
SELECT ALL + + cor0.col2 + - 23 AS col2 FROM tab2 AS cor0
----
15
3
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6280
SELECT col0 * + CAST( col2 AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

skipif mysql # not compatible
query I rowsort label-6280
SELECT col0 * + CAST ( col2 AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL 4 + - 12 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 852581644118629bf652b1aa4b8f4363

query I rowsort
SELECT ALL - col2 + - 19 AS col2 FROM tab1 AS cor0
----
-115
-73
-76

query I rowsort
SELECT DISTINCT + cor0.col2 * 7 - - cor0.col2 AS col0 FROM tab0 AS cor0
----
264
656
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - cor0.col2 + - col1 col0 FROM tab1 AS cor0
----
-2942
-3259
-9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-6285
SELECT ALL - + col0 DIV - 81 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL - + col0 / - 81 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + col2 col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 94 * + cor0.col1 * col0 col1 FROM tab1 AS cor0
----
60160
7332
97760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6288
SELECT ALL CAST( + 28 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL CAST ( + 28 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6289
SELECT + - col2 - col1 DIV col0 FROM tab2 AS cor0
----
-26
-31
-38

skipif mysql # not compatible
query I rowsort label-6289
SELECT + - col2 - col1 / col0 FROM tab2 AS cor0
----
-26
-31
-38

query I rowsort
SELECT + col2 + + cor0.col0 * - col2 + + col0 * - 13 AS col0 FROM tab1 cor0
----
-147
-4423
-8624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 * col2 + col0 * - cor0.col2 col2 FROM tab1 AS cor0
----
32832
4050
92160

query I rowsort
SELECT DISTINCT col1 * - col2 + col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT 85 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT 43 * - tab2.col0 * - tab2.col2 FROM tab2
----
129086
8127
87204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 col1 FROM tab2
----
80

query I rowsort
SELECT - 56 * + col0 FROM tab0
----
-1344
-1960
-4984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col2 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL ( + col1 ) * col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - tab1.col1 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT + 73 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT ALL ( tab1.col0 ) * tab1.col1 * + ( col1 ) FROM tab1
----
13520
2028
6400

query I rowsort
SELECT col0 * cor0.col0 - col1 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT + col2 + tab2.col0 + 15 AS col0 FROM tab2
----
119
132
49

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to c670882ff9ea3f0bb08fc55ec569be96

query I rowsort
SELECT DISTINCT - col2 + + ( + col1 * col1 ) AS col2 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT ALL col0 + + cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-6307
SELECT DISTINCT + + col0 DIV col0 - + col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT + + col0 / col0 - + col0 / + col0 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - - col2 * 40 FROM tab0 AS cor0
----
1320
3280
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6309
SELECT col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 * + ( - col0 ) + + col2 + 15 AS col2 FROM tab1 AS cor0
----
-568
-9
-929

query I rowsort
SELECT DISTINCT - cor0.col2 - + 81 FROM tab2 AS cor0
----
-107
-108
-119

query I rowsort
SELECT DISTINCT - col2 * - ( col0 ) + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL - col1 + + ( 28 ) AS col0 FROM tab1 AS cor0
----
15
18
2

query I rowsort
SELECT DISTINCT + + cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - cor0.col0 + 91 + - col0 AS col0 FROM tab2 AS cor0
----
-65
-67
77

query I rowsort
SELECT ALL - 84 + - 33 * col1 FROM tab2 AS cor0
----
-1107
-2031
-645

query I rowsort
SELECT - 39 + - col0 AS col0 FROM tab1 cor0
----
-103
-119
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-6318
SELECT ALL + 39 DIV col2 + + 50 AS col0 FROM tab1 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL + 39 / col2 + + 50 AS col0 FROM tab1 AS cor0
----
50
50
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-6319
SELECT DISTINCT + - ( - col0 ) DIV - col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT + - ( - col0 ) / - col0 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 57 + + cor1.col1 col0 FROM tab1, tab2 AS cor0, tab0, tab2 AS cor1
----
116
74
88

query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) AS col2 FROM tab2, tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col2 + col2 * - col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT col1 * + ( + cor0.col2 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + col1 * 66 AS col2 FROM tab0 AS cor0
----
5676
6006
6402

query I rowsort
SELECT DISTINCT + + cor0.col0 * 70 AS col0 FROM tab2 AS cor0
----
490
5460
5530

onlyif mysql # use DIV operator for integer division
query I rowsort label-6326
SELECT + + col2 DIV + ( 13 + + col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6326
SELECT + + col2 / + ( 13 + + col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + col0 * 60 FROM tab1 AS cor0
----
-180
-3840
-4800

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 58b53d9f2c5d79e6fe94b4a97272440e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6329
SELECT + col1 * - CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6329
SELECT + col1 * - CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6330
SELECT - + cor0.col1 * 23 DIV col1 FROM tab1 AS cor0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-6330
SELECT - + cor0.col1 * 23 / col1 FROM tab1 AS cor0
----
-23
-23
-23

onlyif mysql # use DIV operator for integer division
query I rowsort label-6331
SELECT - col1 + 86 DIV - col0 FROM tab0 cor0
----
-89
-91
-99

skipif mysql # not compatible
query I rowsort label-6331
SELECT - col1 + 86 / - col0 FROM tab0 cor0
----
-89
-91
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6332
SELECT tab1.col2 DIV 42 + + col0 * col0 AS col1 FROM tab1
----
10
4097
6402

skipif mysql # not compatible
query I rowsort label-6332
SELECT tab1.col2 / 42 + + col0 * col0 AS col1 FROM tab1
----
10
4097
6402

query I rowsort
SELECT cor0.col0 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL - 18 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT ALL + col0 * 18 * col2 AS col2 FROM tab1
----
138240
2916
65664

query I rowsort
SELECT + tab1.col1 + - 83 FROM tab1
----
-57
-70
-73

query I rowsort
SELECT - 55 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to b90e74bece5521b514096c5b6e105fde

query I rowsort
SELECT - 59 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6339
SELECT ALL + col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL + col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + 86 AS col2 FROM tab0
----
4
53
85

query I rowsort
SELECT ALL col2 + col1 * + tab0.col1 * - 21 AS col1 FROM tab0
----
-155283
-173819
-197588

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6342
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6342
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * col1 col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + col0 + - 44 FROM tab1 cor0
----
-41
20
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-6345
SELECT ( col2 ) * col0 DIV ( col0 * - col0 ) - + col2 col0 FROM tab0 cor0
----
-1
-34
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6345
SELECT ( col2 ) * col0 / ( col0 * - col0 ) - + col2 col0 FROM tab0 cor0
----
-1
-34
-82

query I rowsort
SELECT DISTINCT 30 + - col0 * col1 AS col0 FROM tab0 AS cor0
----
-2034
-3365
-8069

query I rowsort
SELECT ALL col2 + - col1 * col1 + - 24 * tab0.col0 AS col2 FROM tab0
----
-10248
-10335
-7939

query I rowsort
SELECT ALL 26 * col0 AS col2 FROM tab1
----
1664
2080
78

query I rowsort
SELECT ALL - 80 * + col2 + - col2 FROM tab1 cor0
----
-4374
-4617
-7776

query I rowsort
SELECT - + col1 * col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + 89 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT - 34 + col1 + - 4 * cor0.col0 * - col0 AS col2 FROM tab0 AS cor0
----
2356
31741
4963

query I rowsort
SELECT + - col1 * + col1 + + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-6354
SELECT - + 74 DIV col0 AS col0 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-6354
SELECT - + 74 / col0 AS col0 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT DISTINCT col0 * + col0 + col1 * - col1 FROM tab0 AS cor0
----
-360
-6820
-8184

onlyif mysql # use DIV operator for integer division
query I rowsort label-6356
SELECT DISTINCT - 24 DIV col1 AS col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT - 24 / col1 AS col1 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + - col0 FROM tab0 AS cor0
----
-70
-7387
-816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6358
SELECT CAST( NULL AS SIGNED ) * - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6358
SELECT CAST ( NULL AS INTEGER ) * - col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - 45 FROM tab2 AS cor0
----
315
3510
3555

query I rowsort
SELECT ALL - cor0.col2 + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c1eca5ea8dadf5efbc400ae6094b52e3

query I rowsort
SELECT ALL - 21 + col0 AS col2 FROM tab0 AS cor0
----
14
3
68

query I rowsort
SELECT DISTINCT - 22 - col1 * - col2 AS col2 FROM tab0 AS cor0
----
2816
7440
75

query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - 69 * - col2 + - 97 * 75 * col1 FROM tab0 AS cor0
----
-623373
-656367
-705606

query I rowsort
SELECT DISTINCT + col1 + col0 * + ( col1 ) FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - col1 * cor0.col0 + + col2 * col0 FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT + col1 * 70 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-338
130
416

query I rowsort
SELECT - + col2 + col0 + - col0 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + col2 * col0 * + col0 AS col1 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT col2 + + cor0.col0 * - 36 FROM tab1 AS cor0
----
-2247
-2784
-54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6371
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) + col2 * - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) + col2 * - col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + cor0.col1 + 44 * + col1 AS col2 FROM tab0 cor0
----
3870
4095
4365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 + - cor1.col2 col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to a8d6778c0f9dec0c384470a6726b8d04

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6374
SELECT - CAST( + 40 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-6374
SELECT - CAST ( + 40 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-40
-40
-40

query I rowsort
SELECT ALL 36 + + col1 FROM tab1 AS cor0
----
46
49
62

query I rowsort
SELECT - tab1.col0 * 21 FROM tab1
----
-1344
-1680
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-6377
SELECT ALL + ( + cor0.col1 ) DIV + col1 + - col0 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL + ( + cor0.col1 ) / + col1 + - col0 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT - col2 * col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT ALL + 14 * - ( - col2 ) + + col1 AS col2 FROM tab1 AS cor0
----
1357
782
808

query I rowsort
SELECT ALL + 62 + + col1 FROM tab0 AS cor0
----
148
153
159

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6381
SELECT + cor0.col0 * + ( col1 ) + CAST( NULL AS SIGNED ) * - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6381
SELECT + cor0.col0 * + ( col1 ) + CAST ( NULL AS INTEGER ) * - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6382
SELECT DISTINCT - - ( 54 ) DIV cor0.col2 FROM tab0 AS cor0
----
0
1
54

skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT - - ( 54 ) / cor0.col2 FROM tab0 AS cor0
----
0
1
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6383
SELECT DISTINCT tab2.col0 + CAST( + col2 AS SIGNED ) FROM tab2
----
104
117
34

skipif mysql # not compatible
query I rowsort label-6383
SELECT DISTINCT tab2.col0 + CAST ( + col2 AS INTEGER ) FROM tab2
----
104
117
34

query I rowsort
SELECT ALL + col0 * + col1 + 38 + col0 FROM tab0
----
2126
3468
8226

query I rowsort
SELECT col1 + - 83 * + 56 - - col1 FROM tab1
----
-4596
-4622
-4628

query I rowsort
SELECT DISTINCT - col2 * ( tab2.col1 ) * + col2 AS col1 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT col2 * col1 * + col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT ALL + col0 * - col0 + col0 * col1 - 39 AS col0 FROM tab2
----
-1521
-4937
129

query I rowsort
SELECT col2 + col2 - - 21 AS col0 FROM tab0
----
185
23
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 29 col1 FROM tab2
----
46
60
88

query I rowsort
SELECT DISTINCT - 10 * - cor0.col0 FROM tab2, tab2 AS cor0
----
70
780
790

query I rowsort
SELECT ( col1 ) * col0 + 97 AS col0 FROM tab1
----
1137
175
737

onlyif mysql # use DIV operator for integer division
query I rowsort label-6393
SELECT tab0.col2 DIV col0 + col0 FROM tab0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-6393
SELECT tab0.col2 / col0 + col0 FROM tab0
----
25
35
89

query I rowsort
SELECT 8 - + col2 AS col0 FROM tab1
----
-46
-49
-88

query I rowsort
SELECT DISTINCT 83 + col2 * col2 FROM tab0
----
1172
6807
84

query I rowsort
SELECT ALL - col2 + col2 * cor0.col1 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT + cor0.col1 * 65 * + col1 AS col2 FROM tab0 AS cor0
----
480740
538265
611585

onlyif mysql # use DIV operator for integer division
query I rowsort label-6398
SELECT - col2 DIV + col0 + col2 FROM tab1 AS cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-6398
SELECT - col2 / + col0 + col2 FROM tab1 AS cor0
----
36
57
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6399
SELECT ALL + + ( - cor0.col2 ) DIV col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL + + ( - cor0.col2 ) / col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT col0 + - col2 * + col1 + - col1 FROM tab0 cor0
----
-159
-2900
-7464

query I rowsort
SELECT ALL - col2 + + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - - 17 * 71 FROM tab1 cor0
----
1207

query I rowsort
SELECT - - ( + 70 ) FROM tab0 AS cor0
----
70
70
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6404
SELECT - CAST( - col0 AS SIGNED ) * col0 * - ( col1 ) AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

skipif mysql # not compatible
query I rowsort label-6404
SELECT - CAST ( - col0 AS INTEGER ) * col0 * - ( col1 ) AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - + cor0.col2 - ( ( col1 ) * ( 74 ) ) AS col1 FROM tab0 AS cor0
----
-6397
-6816
-7179

query I rowsort
SELECT ALL + col1 + - ( - col0 ) * col0 AS col0 FROM tab1
----
35
4106
6413

query I rowsort
SELECT cor0.col2 * col0 + ( col2 ) AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT cor0.col2 + 93 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 05914312b297696d8f1d59f325ce1fc0

query I rowsort
SELECT DISTINCT + col0 + - ( col2 * + cor0.col1 + - col0 ) AS col2 FROM tab0 AS cor0
----
-27
-2790
-7284

query I rowsort
SELECT ALL + col1 * ( cor0.col1 ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - 77 AS col1 FROM tab0, tab0 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + - col2 * 80 + + col0 + + col1 FROM tab0 AS cor0
----
-2530
-6380
52

query I rowsort
SELECT ALL - - 89 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT DISTINCT cor0.col0 * - col0 + cor0.col1 * col0 * col1 AS col1 FROM tab2 AS cor0
----
16590
265434
6678

query I rowsort
SELECT ALL - + col0 - - 32 * + col0 FROM tab2 AS cor0
----
217
2418
2449

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 36 col0 FROM tab0 AS cor0
----
50
55
61

query I rowsort
SELECT - ( - ( + cor0.col1 ) ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - + cor0.col2 * col1 + + 13 FROM tab2 AS cor0
----
-1521
-633
-824

query I rowsort
SELECT ALL - - col2 + cor0.col1 * - 20 AS col1 FROM tab0 AS cor0
----
-1687
-1738
-1939

onlyif mysql # use DIV operator for integer division
query I rowsort label-6421
SELECT DISTINCT + col1 + - col0 DIV CAST( 23 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
85
88
96

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT + col1 + - col0 / CAST ( 23 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
85
88
96

query I rowsort
SELECT DISTINCT 80 * col2 AS col2 FROM tab2 cor0
----
2080
2160
3040

query I rowsort
SELECT + cor0.col0 * + col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + - 50 FROM tab2 AS cor0
----
-50

query I rowsort
SELECT + + 76 * - col2 FROM tab1 AS cor0
----
-4104
-4332
-7296

query I rowsort
SELECT - col1 + col2 * + col0 * col1 FROM tab2 AS cor0
----
119593
51017
5828

query I rowsort
SELECT col1 * ( - tab1.col2 ) + + col1 AS col0 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT - - col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + col2 + - 53 * col0 FROM tab1 AS cor0
----
-105
-3335
-4144

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6430
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) * - col0 * col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) * - col0 * col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 * ( ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6432
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + col0 * - ( - cor0.col1 * - 96 ) col1 FROM tab1 AS cor0
----
-61383
-7434
-99744

query I rowsort
SELECT DISTINCT + 27 * 28 FROM tab0, tab2 AS cor0
----
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 * + col0 col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT + col0 + cor0.col1 - col2 FROM tab2 AS cor0
----
11
111
58

skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( 86 AS REAL ) + + cor0.col2 FROM tab2 AS cor0
----
-48
-59
-60

query I rowsort
SELECT ALL + col1 + - col2 + + col2 * ( col2 ) FROM tab0 AS cor0
----
1142
6733
97

query I rowsort
SELECT ALL - 56 + + ( cor0.col2 * col2 ) + col1 AS col2 FROM tab2 AS cor0
----
1405
679
704

query I rowsort
SELECT ALL 42 + - 98 * + col1 AS col0 FROM tab1 AS cor0
----
-1232
-2506
-938

query I rowsort
SELECT DISTINCT + + col0 + col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL - - col0 + + 38 - - col2 FROM tab2 AS cor0
----
142
155
72

query I rowsort
SELECT DISTINCT - - cor0.col2 + + ( - col2 ) * - 64 FROM tab2 AS cor0
----
1690
1755
2470

onlyif mysql # use DIV operator for integer division
query I rowsort label-6444
SELECT DISTINCT + - col0 DIV col0 - - col2 * - 7 FROM tab1 AS cor0
----
-379
-400
-673

skipif mysql # not compatible
query I rowsort label-6444
SELECT DISTINCT + - col0 / col0 - - col2 * - 7 FROM tab1 AS cor0
----
-379
-400
-673

query I rowsort
SELECT DISTINCT + 9 AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT + 56 * + col0 FROM tab2 AS cor0
----
392
4368
4424

query I rowsort
SELECT ALL col0 + 67 FROM tab0 AS cor0
----
102
156
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 37 * col0 col2 FROM tab2
----
286
2912
2961

query I rowsort
SELECT + col2 - col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 * ( col2 ) + - col1 FROM tab0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT col1 + 13 * + ( - col2 ) FROM tab0
----
-343
-975
84

query I rowsort
SELECT ALL - col0 + col0 * 54 FROM tab1
----
159
3392
4240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 * ( + cor0.col0 ) col0 FROM tab1 AS cor0
----
-114
-2432
-3040

query I rowsort
SELECT ALL + col0 * - col1 * - col0 AS col1 FROM tab1
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-6455
SELECT ALL col0 DIV 48 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL col0 / 48 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6456
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - ( col2 ) * + col2 + + col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT + col2 * + 20 FROM tab0
----
1640
20
660

onlyif mysql # use DIV operator for integer division
query I rowsort label-6459
SELECT - + col1 + + col0 DIV col2 FROM tab0 AS cor0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-6459
SELECT - + col1 + + col0 / col2 FROM tab0 AS cor0
----
-62
-86
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 + + 14 col1 FROM tab2
----
-43
-43
-43

query I rowsort
SELECT ALL ( + tab1.col2 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - 34 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT DISTINCT + ( 80 ) FROM tab0
----
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6464
SELECT CAST( 98 AS SIGNED ) * + tab2.col1 + - col0 FROM tab2
----
1587
3031
5704

skipif mysql # not compatible
query I rowsort label-6464
SELECT CAST ( 98 AS INTEGER ) * + tab2.col1 + - col0 FROM tab2
----
1587
3031
5704

query I rowsort
SELECT + - col2 * cor0.col0 + col1 + col0 AS col2 FROM tab0 AS cor0
----
-682
-7118
97

query I rowsort
SELECT + col0 * + ( 99 ) FROM tab2 cor0
----
693
7722
7821

query I rowsort
SELECT col2 + col1 * - 54 FROM tab1
----
-1350
-483
-606

query I rowsort
SELECT DISTINCT tab1.col0 * - col0 - 72 FROM tab1
----
-4168
-6472
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6469
SELECT ALL - - col1 DIV col0 col2 FROM tab2 cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL - - col1 / col0 col2 FROM tab2 cor0
----
0
0
4

query I rowsort
SELECT + - col0 * + ( + ( col0 ) ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - col0 * col2 + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-132
-14760
-3630

onlyif mysql # use DIV operator for integer division
query I rowsort label-6472
SELECT ALL + 8 DIV tab0.col2 + col0 FROM tab0
----
24
43
89

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL + 8 / tab0.col2 + col0 FROM tab0
----
24
43
89

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + 41 + col2 - + CAST ( - col0 AS REAL ) * tab2.col0 FROM tab2
----
117
6151
6320

query I rowsort
SELECT DISTINCT - col1 + 64 * 96 + - col2 AS col1 FROM tab2
----
6059
6086
6089

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 29 col2 FROM tab2
----
203
2262
2291

query I rowsort
SELECT DISTINCT - 76 AS col1 FROM tab2, tab1 cor0
----
-76

query I rowsort
SELECT DISTINCT + - col1 * ( - ( col2 ) ) AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT cor0.col1 + - ( + 37 ) FROM tab1 AS cor0
----
-11
-24
-27

query I rowsort
SELECT DISTINCT - col2 * ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - col1 * col2 + + ( + col1 * - cor0.col2 ) + col1 FROM tab1 AS cor0
----
-1130
-2483
-2782

query I rowsort
SELECT ALL + - cor0.col2 + + col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL + + cor0.col0 * col2 + + 27 FROM tab0 AS cor0
----
62
7325
819

query I rowsort
SELECT ALL col2 * - 2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL - col1 * 45 AS col1 FROM tab1 AS cor0
----
-1170
-450
-585

query I rowsort
SELECT - col1 + 27 AS col1 FROM tab0 AS cor0
----
-59
-64
-70

query I rowsort
SELECT col1 * col0 + cor0.col2 * - col2 + col2 * col2 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + - cor0.col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + 34 * + col0 AS col0 FROM tab2
----
238
2652
2686

query I rowsort
SELECT 42 * - col0 AS col0 FROM tab2
----
-294
-3276
-3318

onlyif mysql # use DIV operator for integer division
query I rowsort label-6490
SELECT - col0 + col2 DIV + ( col2 ) AS col2 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-6490
SELECT - col0 + col2 / + ( col2 ) AS col2 FROM tab0 AS cor0
----
-23
-34
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6491
SELECT - col0 DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6491
SELECT - col0 / + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + - cor0.col0 * - 90 AS col0 FROM tab2 cor0
----
630
7020
7110

query I rowsort
SELECT - - col0 + col2 * 92 AS col0 FROM tab0 cor0
----
127
3060
7633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 - 24 * tab1.col0 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to e3db4fda637a3da3dac86df8deeb9113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 * col1 col0 FROM tab0
----
4472
4732
5044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col2 FROM tab2
----
6
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6497
SELECT - - col0 + 45 DIV - col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6497
SELECT - - col0 + 45 / - col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - col1 * + 4 + - col0 FROM tab2 cor0
----
-131
-147
-314

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6499
SELECT - col2 * CAST( 50 AS SIGNED ) FROM tab0 AS cor0
----
-1650
-4100
-50

skipif mysql # not compatible
query I rowsort label-6499
SELECT - col2 * CAST ( 50 AS INTEGER ) FROM tab0 AS cor0
----
-1650
-4100
-50

query I rowsort
SELECT + col0 * 52 - - col2 FROM tab2 AS cor0
----
391
4082
4146

query I rowsort
SELECT + + col1 - cor0.col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + - ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col2 * + ( col2 ) * + col2 AS col2 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT - + 15 + 1 * col0 FROM tab2 AS cor0
----
-8
63
64

query I rowsort
SELECT cor0.col1 * + cor0.col0 * col0 + ( + col2 * col0 ) AS col2 FROM tab1 cor0
----
396
44608
90880

query I rowsort
SELECT - ( col0 ) - - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 70 * - col2 + - col1 AS col1 FROM tab2 AS cor0
----
-1879
-1921
-2677

onlyif mysql # use DIV operator for integer division
query I rowsort label-6508
SELECT ALL + - col0 DIV - col1 + col0 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL + - col0 / - col1 + col0 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT cor0.col0 * + col1 - ( - col0 ) * col2 AS col0 FROM tab1 cor0
----
240
4288
8720

query I rowsort
SELECT - + 44 + - col1 * + col1 FROM tab0 AS cor0
----
-7440
-8325
-9453

onlyif mysql # use DIV operator for integer division
query I rowsort label-6511
SELECT col0 DIV cor0.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-6511
SELECT col0 / cor0.col1 - - col2 * + col2 col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + - 32 * col2 AS col2 FROM tab2 AS cor0
----
-1216
-832
-864

query I rowsort
SELECT DISTINCT + cor0.col0 * - cor0.col2 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6514
SELECT col1 DIV - 35 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6514
SELECT col1 / - 35 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - tab0.col2 * - 59 FROM tab0
----
1947
4838
59

query I rowsort
SELECT DISTINCT + ( tab2.col0 ) * tab2.col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL - + 10 * col1 AS col2 FROM tab0 AS cor0
----
-860
-910
-970

query I rowsort
SELECT col2 * col2 - - col0 * + col2 FROM tab1 cor0
----
16896
3078
6897

query I rowsort
SELECT ALL - 29 * col2 + + col0 * - col1 FROM tab0 AS cor0
----
-10477
-3021
-3424

query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab2, tab1, tab0 AS cor0
----
16

query I rowsort
SELECT ALL 23 * col0 AS col2 FROM tab1
----
1472
1840
69

query I rowsort
SELECT 59 * col0 AS col0 FROM tab1 cor0
----
177
3776
4720

query I rowsort
SELECT 34 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT DISTINCT - col2 * col1 * + col2 + col2 AS col0 FROM tab1 cor0
----
-119712
-32433
-75762

query I rowsort
SELECT - 39 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1365
-3471
-936

query I rowsort
SELECT ALL - + 7 * + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to bc1fe79e8aec3b7ac4950a3be6bb73c1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT + + 72 + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-25
-2766
-7390

query I rowsort
SELECT col2 * + 15 AS col1 FROM tab0
----
1230
15
495

onlyif mysql # use DIV operator for integer division
query I rowsort label-6530
SELECT DISTINCT col1 DIV 22 AS col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6530
SELECT DISTINCT col1 / 22 AS col2 FROM tab2
----
0
1
2

query I rowsort
SELECT - - cor0.col1 * - 55 FROM tab0 AS cor0
----
-4730
-5005
-5335

query I rowsort
SELECT 33 * col2 FROM tab0 cor0
----
1089
2706
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 43 col2 FROM tab1 cor0
----
1118
430
559

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6534
SELECT + CAST( col0 AS SIGNED ) * - cor0.col2 * col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

skipif mysql # not compatible
query I rowsort label-6534
SELECT + CAST ( col0 AS INTEGER ) * - cor0.col2 * col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT + cor0.col2 * - 58 AS col0 FROM tab1 AS cor0
----
-3132
-3306
-5568

onlyif mysql # use DIV operator for integer division
query I rowsort label-6536
SELECT - - col1 DIV - 54 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6536
SELECT - - col1 / - 54 AS col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT ( ( - col0 ) ) AS col2 FROM tab1 cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6538
SELECT + ( + ( + col1 ) ) DIV - 93 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6538
SELECT + ( + ( + col1 ) ) / - 93 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - - 27 AS col1 FROM tab2 AS cor0
----
27

query I rowsort
SELECT 2 FROM tab2 cor0
----
2
2
2

query I rowsort
SELECT ALL col2 * + 38 FROM tab1 cor0
----
2052
2166
3648

query I rowsort
SELECT DISTINCT - ( 12 ) + col2 AS col2 FROM tab2 AS cor0
----
14
15
26

query I rowsort
SELECT + col2 - ( 76 ) FROM tab0
----
-43
-75
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6544
SELECT ALL - col0 + - col2 DIV col1 FROM tab2
----
-7
-78
-81

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL - col0 + - col2 / col1 FROM tab2
----
-7
-78
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6545
SELECT ALL col0 + + CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
14
156
158

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL col0 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT + 68 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 col2 FROM tab1, tab2 cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6548
SELECT DISTINCT - 49 - col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT - 49 - col1 / + col2 AS col2 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT ALL - 36 + 82 * col0 FROM tab2 AS cor0
----
538
6360
6442

query I rowsort
SELECT col0 * - 4 FROM tab0 AS cor0
----
-140
-356
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6551
SELECT DISTINCT - CAST( - cor0.col0 AS SIGNED ) + col2 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT - CAST ( - cor0.col0 AS INTEGER ) + col2 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort
SELECT + ( ( - col2 ) ) + CAST ( - cor0.col0 AS REAL ) * - col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT col1 * col1 + + ( col2 ) + + col0 FROM tab0
----
7453
8452
9445

query I rowsort
SELECT ALL - 70 * - 37 + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5fa957dfaf50aeec0db410e9ac0133af

query I rowsort
SELECT DISTINCT col0 + - col0 * + ( - ( + col2 ) ) + ( + col2 ) FROM tab2
----
2132
223
3119

onlyif mysql # use DIV operator for integer division
query I rowsort label-6556
SELECT + col0 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-6556
SELECT + col0 / - col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + 43 + + col2 * + cor0.col1 + col0 FROM tab1 AS cor0
----
1371
1450
677

query I rowsort
SELECT DISTINCT col2 + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT 79 * + col2 AS col0 FROM tab0
----
2607
6478
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 29 * cor0.col2 + cor0.col2 * + 67 * col1 col2 FROM tab1 cor0
----
39853
86413
95660

query I rowsort
SELECT col0 + cor0.col0 * - col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + col0 + col2 + col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1072
-1347
-449

query I rowsort
SELECT DISTINCT + + 49 AS col0 FROM tab0, tab0 AS cor0
----
49

query I rowsort
SELECT ALL + - cor0.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT ALL + 33 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( ( + col0 ) + + col2 ) col2 FROM tab0
----
1260
1368
15219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + 60 col1 FROM tab0 AS cor0
----
26
31
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-6568
SELECT ALL + cor0.col0 DIV col1 + + 58 * + col1 FROM tab1 AS cor0
----
1508
586
760

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL + cor0.col0 / col1 + + 58 * + col1 FROM tab1 AS cor0
----
1508
586
760

query I rowsort
SELECT DISTINCT - col1 + ( 99 ) + - col1 FROM tab2 AS cor0
----
-19
37
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6570
SELECT + col0 + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-6570
SELECT + col0 + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6571
SELECT ALL - cor0.col2 + col1 DIV - ( - col0 ) FROM tab0 AS cor0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL - cor0.col2 + col1 / - ( - col0 ) FROM tab0 AS cor0
----
-30
-81
1

query I rowsort
SELECT cor1.col2 AS col1 FROM tab0, tab1 cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT + - ( - col0 ) * col2 + col1 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT ALL + col0 * col2 + - cor0.col1 FROM tab2 AS cor0
----
158
1969
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + 16 col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to fbedd1401de3df7a0512711e6620e1c2

query I rowsort
SELECT - cor0.col1 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - - cor0.col1 * + ( cor0.col2 ) FROM tab1, tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6578
SELECT col1 DIV 65 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6578
SELECT col1 / 65 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6579
SELECT ALL + 96 DIV + col1 AS col0 FROM tab2 AS cor0
----
1
3
5

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL + 96 / + col1 AS col0 FROM tab2 AS cor0
----
1
3
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 47 ) col2 FROM tab0, tab1 cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 col1 FROM tab0
----
11
11
11

query I rowsort
SELECT 39 * col2 AS col1 FROM tab2 cor0
----
1014
1053
1482

query I rowsort
SELECT ALL - cor0.col0 + + col2 * 13 FROM tab2 AS cor0
----
260
344
415

query I rowsort
SELECT + - col1 * col2 + - col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT + col2 + - ( col2 ) * + col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT + col0 + ( + col0 ) AS col0 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col0 FROM tab0
----
-94
-94
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6588
SELECT DISTINCT 17 * col0 + 42 DIV col2 FROM tab1
----
1088
1360
51

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT 17 * col0 + 42 / col2 FROM tab1
----
1088
1360
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6589
SELECT col2 * cor0.col1 + + CAST( - col2 AS SIGNED ) * col0 + col2 AS col2 FROM tab1 AS cor0
----
-3021
-6336
1296

skipif mysql # not compatible
query I rowsort label-6589
SELECT col2 * cor0.col1 + + CAST ( - col2 AS INTEGER ) * col0 + col2 AS col2 FROM tab1 AS cor0
----
-3021
-6336
1296

query I rowsort
SELECT ALL - - col0 + - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT col0 * col1 * cor0.col2 FROM tab2 AS cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 * 3 col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT 72 * col2 FROM tab2 cor0
----
1872
1944
2736

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6594
SELECT + CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT + CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 33 FROM tab2, tab0 AS cor0
----
33

query I rowsort
SELECT ALL 19 * col0 + col2 AS col2 FROM tab1
----
111
1273
1616

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 + - tab1.col0 col1 FROM tab1
----
-22
-6
55

query I rowsort
SELECT ALL - col2 * - col1 * 67 + + col1 FROM tab1
----
38200
83629
94094

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col1 FROM tab1
----
-94
-94
-94

query I rowsort
SELECT DISTINCT 8 * - col2 * col0 FROM tab2
----
-1512
-16224
-24016

query I rowsort
SELECT DISTINCT + 56 FROM tab1, tab0, tab2 AS cor0
----
56

query I rowsort
SELECT ( col0 ) * 21 - + cor0.col0 AS col1 FROM tab0 cor0
----
1780
480
700

query I rowsort
SELECT cor1.col2 + + cor1.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 75f21515f5e6f5fe2301266aeb130551

query I rowsort
SELECT 13 + col0 * + col2 FROM tab2 cor0
----
202
2041
3015

query I rowsort
SELECT ALL - 62 * - ( tab2.col1 ) FROM tab2, tab2 AS cor0
----
9 values hashing to f18355edd105fcd558684f1dc1ba3a02

query I rowsort
SELECT ALL - 51 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4

query I rowsort
SELECT - - col0 * cor0.col2 * col1 - ( col0 ) AS col1 FROM tab1 AS cor0
----
36416
4209
99760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6608
SELECT col0 DIV - col0 + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2915
3248
9215

skipif mysql # not compatible
query I rowsort label-6608
SELECT col0 / - col0 + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2915
3248
9215

query I rowsort
SELECT + cor0.col1 + + 4 AS col1 FROM tab0 AS cor0
----
101
90
95

query I rowsort
SELECT - ( 66 ) AS col1 FROM tab2 cor0
----
-66
-66
-66

query I rowsort
SELECT ALL ( cor0.col1 ) + + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + col0 * - tab2.col0 AS col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT 52 * + col0 AS col2 FROM tab1 AS cor0
----
156
3328
4160

query I rowsort
SELECT tab1.col2 AS col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT + 18 FROM tab1
----
18

query I rowsort
SELECT ( - tab1.col0 * - col2 ) - ( + col1 ) FROM tab1
----
136
3638
7667

query I rowsort
SELECT DISTINCT cor0.col1 + + col0 AS col2 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 + ( col1 + + col1 ) col1 FROM tab0 AS cor0
----
253
263
275

query I rowsort
SELECT DISTINCT - 10 * col1 + col1 AS col1 FROM tab2 AS cor0
----
-153
-279
-531

query I rowsort
SELECT ALL + cor0.col2 - 27 * col1 AS col2 FROM tab0 AS cor0
----
-2289
-2375
-2618

query I rowsort
SELECT ALL - - ( - col1 ) - col2 * 39 AS col2 FROM tab2 AS cor0
----
-1073
-1084
-1499

query I rowsort
SELECT ALL col0 * cor0.col0 + + col1 AS col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT - - 78 - + col1 FROM tab0 AS cor0
----
-13
-19
-8

query I rowsort
SELECT ALL col1 + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-6625
SELECT DISTINCT - - col1 DIV + col2 + - ( + col2 ) FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT - - col1 / + col2 + - ( + col2 ) FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6626
SELECT + 9 * col0 + - ( ( col1 ) + + CAST( NULL AS DECIMAL ) ) * col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6626
SELECT + 9 * col0 + - ( ( col1 ) + + CAST ( NULL AS REAL ) ) * col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6627
SELECT DISTINCT - col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT - col0 / + col1 AS col0 FROM tab1 AS cor0
----
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6628
SELECT ALL col1 DIV - col0 + col1 * + 53 FROM tab2 AS cor0
----
1639
3127
901

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL col1 / - col0 + col1 * + 53 FROM tab2 AS cor0
----
1639
3127
901

query I rowsort
SELECT col2 * + col0 + - ( - col1 + + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
185
3594
7613

query I rowsort
SELECT ALL col1 * - cor0.col1 + + col2 * + 26 AS col1 FROM tab1 AS cor0
----
1382
2327
728

query I rowsort
SELECT DISTINCT col2 + col2 * ( col0 ) AS col0 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-6632
SELECT ALL - - col2 + - cor0.col0 DIV + cor0.col1 + 70 * - col0 * 42 FROM tab2 AS cor0
----
-20553
-229295
-232226

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL - - col2 + - cor0.col0 / + cor0.col1 + 70 * - col0 * 42 FROM tab2 AS cor0
----
-20553
-229295
-232226

query I rowsort
SELECT + 16 + + ( + col1 ) * 98 FROM tab0
----
8444
8934
9522

query I rowsort
SELECT 28 + 17 FROM tab2
----
45
45
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6635
SELECT ALL CAST( NULL AS DECIMAL ) / - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL CAST ( NULL AS REAL ) / - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col0 + col1 + col1 FROM tab2 AS cor0
----
111
6202
6275

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6637
SELECT + col1 + CAST( NULL AS DECIMAL ) + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6637
SELECT + col1 + CAST ( NULL AS REAL ) + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + 90 + + 89 AS col0 FROM tab2 AS cor0
----
196
210
238

query I rowsort
SELECT cor0.col2 * col0 * col0 + + col1 * col0 FROM tab2 AS cor0
----
1540
162786
238501

query I rowsort
SELECT DISTINCT col2 * + col1 + col1 + col2 * col0 AS col2 FROM tab0 AS cor0
----
14851
229
3716

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 * col0 col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT + cor0.col0 * + 58 + col1 FROM tab2 AS cor0
----
437
4583
4599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 + - col0 * col0 * - col1 col1 FROM tab0 AS cor0
----
118922
52374
728273

query I rowsort
SELECT DISTINCT cor0.col2 * col2 + 88 - col2 AS col0 FROM tab2 AS cor0
----
1494
738
790

query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL ( - ( col0 ) ) - col0 FROM tab2 AS cor0
----
-14
-156
-158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6647
SELECT + - CAST( - ( col2 ) AS SIGNED ) AS col2 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6647
SELECT + - CAST ( - ( col2 ) AS INTEGER ) AS col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT col2 - col1 * + col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT 66 + col2 FROM tab1 AS cor0
----
120
123
162

query I rowsort
SELECT ALL col0 + - col0 + col1 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - 88 + - col2 AS col1 FROM tab2 AS cor0
----
-114
-115
-126

query I rowsort
SELECT ALL - + 96 * - col2 AS col2 FROM tab1 AS cor0
----
5184
5472
9216

query I rowsort
SELECT DISTINCT + + 79 AS col0 FROM tab0 cor0
----
79

query I rowsort
SELECT - + col0 * - col0 + - ( + col0 ) AS col2 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT col2 + + col0 * - col2 * - col2 AS col1 FROM tab2 cor0
----
114114
5130
52754

query I rowsort
SELECT col0 + tab2.col1 + + col1 FROM tab2
----
113
196
69

query I rowsort
SELECT - tab1.col2 + - col0 * col0 AS col0 FROM tab1
----
-4153
-63
-6496

query I rowsort
SELECT ALL - + col0 + col0 * + col0 FROM tab2 cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT col2 - + col0 * + 20 AS col2 FROM tab2 AS cor0
----
-113
-1534
-1542

query I rowsort
SELECT ALL - + col2 + - col2 * ( col2 ) FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT + col0 + col2 * + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT + 35 + - cor0.col1 + col0 FROM tab2 AS cor0
----
11
54
97

query I rowsort
SELECT - - 9 * - col0 FROM tab0 AS cor0
----
-216
-315
-801

query I rowsort
SELECT ALL + col0 * cor0.col2 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + ( col1 ) + + col0 FROM tab0
----
110
132
180

query I rowsort
SELECT ( col1 ) + 22 FROM tab2
----
39
53
81

query I rowsort
SELECT DISTINCT + 6 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6668
SELECT - CAST( NULL AS SIGNED ) + + col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6668
SELECT - CAST ( NULL AS INTEGER ) + + col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + cor0.col0 + 25 - - col0 FROM tab1 AS cor0
----
153
185
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-6670
SELECT - + ( col2 ) DIV - col0 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6670
SELECT - + ( col2 ) / - col0 AS col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6671
SELECT ALL + CAST( NULL AS SIGNED ) + + cor0.col0 * col1 / cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL + CAST ( NULL AS INTEGER ) + + cor0.col0 * col1 / cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 1 * col2 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT 59 + - tab0.col1 + col1 AS col1 FROM tab0
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 col0 FROM tab2, tab2 cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT col1 + ( col1 ) - - col0 AS col0 FROM tab2
----
113
196
69

query I rowsort
SELECT DISTINCT col2 + - 89 * + col0 AS col1 FROM tab1
----
-213
-5639
-7024

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6677
SELECT - CAST( NULL AS SIGNED ) + - 91 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6677
SELECT - CAST ( NULL AS INTEGER ) + - 91 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 67 + + col0 AS col2 FROM tab0
----
102
156
91

query I rowsort
SELECT + - 97 + 97 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 39 + + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1495
-607
-798

query I rowsort
SELECT - col2 + + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1152
1350
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 * - col0 col0 FROM tab1 AS cor0
----
-15
-320
-400

query I rowsort
SELECT ( ( - col0 ) + col2 ) * 33 AS col1 FROM tab0
----
-1122
-231
297

query I rowsort
SELECT DISTINCT + 45 * 67 FROM tab2 AS cor0
----
3015

query I rowsort
SELECT ALL + - cor0.col1 * col0 * col1 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT - 39 + col1 * + col1 FROM tab0 AS cor0
----
7357
8242
9370

onlyif mysql # use DIV operator for integer division
query I rowsort label-6687
SELECT DISTINCT + ( + 74 ) DIV col2 AS col1 FROM tab0 AS cor0
----
0
2
74

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT + ( + 74 ) / col2 AS col1 FROM tab0 AS cor0
----
0
2
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6688
SELECT DISTINCT - CAST( cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT - CAST ( cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL col0 * cor0.col1 + - col0 * col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL 24 AS col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT ALL 2 * col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT 21 * - col0 * tab1.col1 AS col1 FROM tab1
----
-13440
-1638
-21840

query I rowsort
SELECT + + col2 * col2 - col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT - + 76 * + col2 * 56 - + col2 * col1 FROM tab1 AS cor0
----
-231228
-243162
-409824

query I rowsort
SELECT DISTINCT + col2 + - cor0.col2 * col0 * - col1 + 51 FROM tab0 AS cor0
----
3447
664251
68196

query I rowsort
SELECT DISTINCT + + col0 + + ( col1 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - col0 * - col0 * col1 + + col0 FROM tab2 AS cor0
----
106176
1526
359034

query I rowsort
SELECT ALL + + col2 * - col1 + - ( - col1 ) AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - - col0 + - 61 AS col0 FROM tab2 AS cor0
----
-54
17
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6701
SELECT + CAST( NULL AS SIGNED ) + + 14 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6701
SELECT + CAST ( NULL AS INTEGER ) + + 14 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * col1 + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT - 32 + cor0.col0 FROM tab0 AS cor0
----
-8
3
57

query I rowsort
SELECT DISTINCT - col1 * col1 + + col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT + ( - 77 ) * tab1.col2 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to c148a615949545c564a10ef66a830154

onlyif mysql # use DIV operator for integer division
query I rowsort label-6706
SELECT 87 DIV - ( - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6706
SELECT 87 / - ( - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col1 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col0 * + 58 AS col0 FROM tab2 AS cor0
----
-406
-4524
-4582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

onlyif mysql # use DIV operator for integer division
query I rowsort label-6710
SELECT ALL - col2 DIV + cor0.col1 - col1 FROM tab2 AS cor0
----
-19
-31
-59

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL - col2 / + cor0.col1 - col1 FROM tab2 AS cor0
----
-19
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6711
SELECT DISTINCT col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6711
SELECT DISTINCT col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT col1 * ( + col2 ) + + col0 FROM tab2 cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-6713
SELECT + + 89 * - col0 - col0 DIV + col2 FROM tab1 AS cor0
----
-267
-5697
-7120

skipif mysql # not compatible
query I rowsort label-6713
SELECT + + 89 * - col0 - col0 / + col2 FROM tab1 AS cor0
----
-267
-5697
-7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-6714
SELECT ALL 49 + + col1 DIV col1 FROM tab0 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL 49 + + col1 / col1 FROM tab0 AS cor0
----
50
50
50

query I rowsort
SELECT DISTINCT + cor0.col0 - col2 * - col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL - ( - col0 ) * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT 29 + + col2 FROM tab1 AS cor0
----
125
83
86

query I rowsort
SELECT 70 * + 1 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT DISTINCT + tab1.col2 - 87 * 73 FROM tab1
----
-6255
-6294
-6297

query I rowsort
SELECT + col0 + 38 * col1 * + col0 FROM tab1
----
24384
2967
39600

query I rowsort
SELECT + col0 * 23 AS col0 FROM tab2
----
161
1794
1817

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6722
SELECT DISTINCT col0 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT col0 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6723
SELECT CAST( col0 AS SIGNED ) + + col0 col2 FROM tab2
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6723
SELECT CAST ( col0 AS INTEGER ) + + col0 col2 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT + ( - 60 ) AS col2 FROM tab2
----
-60

query I rowsort
SELECT + 20 + - col0 AS col1 FROM tab1 AS cor0
----
-44
-60
17

query I rowsort
SELECT ( col1 ) + - col1 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - ( - tab0.col2 ) * col0 AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT ( tab2.col1 ) * col1 AS col2 FROM tab2
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6729
SELECT + 31 DIV + col0 - - col2 * col1 FROM tab2
----
1534
646
841

skipif mysql # not compatible
query I rowsort label-6729
SELECT + 31 / + col0 - - col2 * col1 FROM tab2
----
1534
646
841

query I rowsort
SELECT - - cor0.col2 * - col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 col0 FROM tab0 cor0
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 * + col0 col1 FROM tab1 AS cor0
----
-177
-3776
-4720

query I rowsort
SELECT - 91 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6734
SELECT - tab0.col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6734
SELECT - tab0.col1 * CAST ( NULL AS REAL ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + + 7 FROM tab0 cor0
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col0 col1 FROM tab2
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6737
SELECT ALL 34 + - col2 * - CAST( - col1 AS SIGNED ) * col0 + + ( - 28 ) * tab0.col0 FROM tab0
----
-4341
-666576
-68750

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL 34 + - col2 * - CAST ( - col1 AS INTEGER ) * col0 + + ( - 28 ) * tab0.col0 FROM tab0
----
-4341
-666576
-68750

query I rowsort
SELECT ALL - col1 + cor0.col0 * - 80 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2092
-2994
-7302

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 89 col0 FROM tab1 AS cor0
----
102
115
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 * 74 col1 FROM tab1 cor0
----
103896
42180
92352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 + col0 * col1 col2 FROM tab0 AS cor0
----
1375
3394
975

query I rowsort
SELECT DISTINCT col0 * - 11 AS col0 FROM tab1 cor0
----
-33
-704
-880

query I rowsort
SELECT - cor0.col2 * - 20 * col1 AS col1 FROM tab0 AS cor0
----
149240
1940
56760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6744
SELECT ALL + - col0 DIV cor0.col2 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3430
-8100

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL + - col0 / cor0.col2 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3430
-8100

query I rowsort
SELECT ALL + col0 * 53 FROM tab0 AS cor0
----
1272
1855
4717

query I rowsort
SELECT col1 * - 87 AS col1 FROM tab0 cor0
----
-7482
-7917
-8439

query I rowsort
SELECT DISTINCT + col1 * 57 AS col2 FROM tab1 AS cor0
----
1482
570
741

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6748
SELECT ALL col0 + CAST( ( col1 ) AS SIGNED ) * + 43 FROM tab1 AS cor0
----
1121
494
639

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL col0 + CAST ( ( col1 ) AS INTEGER ) * + 43 FROM tab1 AS cor0
----
1121
494
639

query I rowsort
SELECT + col1 * - cor0.col0 * + col1 AS col1 FROM tab0 cor0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT + col2 * - col0 + col0 * col0 FROM tab2
----
-140
3239
4056

query I rowsort
SELECT tab0.col1 * + col2 + tab0.col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT ( - ( - col2 ) ) + col0 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6753
SELECT CAST( NULL AS SIGNED ) * 55 - - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6753
SELECT CAST ( NULL AS INTEGER ) * 55 - - col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col1 * col2 - + col0 AS col2 FROM tab0
----
-35
2728
7282

query I rowsort
SELECT DISTINCT + - 87 * col2 FROM tab0 AS cor0
----
-2871
-7134
-87

query I rowsort
SELECT 47 * - col2 FROM tab2 AS cor0
----
-1222
-1269
-1786

query I rowsort
SELECT ALL ( col1 ) * - col0 + cor0.col1 AS col1 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT - ( + 6 ) * + col0 FROM tab0 AS cor0
----
-144
-210
-534

query I rowsort
SELECT DISTINCT + + 12 + - col1 - col0 FROM tab2 AS cor0
----
-125
-26
-84

query I rowsort
SELECT + 22 + col1 FROM tab2 AS cor0
----
39
53
81

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col1 AS REAL ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + ( col1 ) + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL col1 + - col2 * col2 * col2 AS col1 FROM tab0 AS cor0
----
-35851
-551277
96

query I rowsort
SELECT DISTINCT + col0 * + col2 * - col1 + col2 FROM tab0 cor0
----
-3394
-664036
-68079

query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + 58 * - col1 AS col0 FROM tab0 AS cor0
----
-4988
-5278
-5626

query I rowsort
SELECT DISTINCT col1 + - col2 * col0 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - 83 - col1 AS col2 FROM tab0
----
-169
-174
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6769
SELECT - 82 * + col2 * - ( col0 ) + col1 DIV + 16 FROM tab2 AS cor0
----
15499
166299
246165

skipif mysql # not compatible
query I rowsort label-6769
SELECT - 82 * + col2 * - ( col0 ) + col1 / + 16 FROM tab2 AS cor0
----
15499
166299
246165

query I rowsort
SELECT tab1.col1 + col2 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL 95 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT ALL - col0 * 32 + tab0.col1 FROM tab0
----
-1023
-2757
-682

onlyif mysql # use DIV operator for integer division
query I rowsort label-6773
SELECT col0 DIV - col0 col2 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6773
SELECT col0 / - col0 col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT + col2 + + ( col0 ) + - col2 AS col2 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6775
SELECT DISTINCT - col2 DIV ( col2 ) + + col2 AS col2 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT - col2 / ( col2 ) + + col2 AS col2 FROM tab1
----
53
56
95

query I rowsort
SELECT - col0 + 60 AS col1 FROM tab1
----
-20
-4
57

query I rowsort
SELECT ALL col1 * + ( - col2 ) + + col0 * + 11 AS col0 FROM tab0 AS cor0
----
-2574
-6483
288

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - cor0.col0 + - CAST ( 81 AS REAL ) AS col2 FROM tab1 AS cor0
----
-145
-161
-84

query I rowsort
SELECT col0 + + ( + col1 ) AS col1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6780
SELECT ALL col0 + - 92 DIV col0 FROM tab1 AS cor0
----
-27
63
79

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL col0 + - 92 / col0 FROM tab1 AS cor0
----
-27
63
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6781
SELECT + + CAST( - col1 AS SIGNED ) - - cor0.col1 * 36 FROM tab2 AS cor0
----
1085
2065
595

skipif mysql # not compatible
query I rowsort label-6781
SELECT + + CAST ( - col1 AS INTEGER ) - - cor0.col1 * 36 FROM tab2 AS cor0
----
1085
2065
595

query I rowsort
SELECT ALL + col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6783
SELECT DISTINCT + ( col2 ) + - col2 DIV + col0 AS col0 FROM tab2 cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT + ( col2 ) + - col2 / + col0 AS col0 FROM tab2 cor0
----
24
26
38

query I rowsort
SELECT - cor0.col2 - - 96 FROM tab1 AS cor0
----
0
39
42

query I rowsort
SELECT DISTINCT col0 + - col0 + + col0 FROM tab0 cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6786
SELECT ALL + 1 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL + 1 / + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL cor0.col0 * cor0.col0 + - col2 FROM tab0 cor0
----
1224
543
7839

query I rowsort
SELECT - col0 + - 98 * cor0.col2 FROM tab2 AS cor0
----
-2626
-2653
-3803

query I rowsort
SELECT ( - col0 ) - col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT - col0 * tab2.col1 - + 81 AS col1 FROM tab2
----
-1424
-298
-4683

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6791
SELECT CAST( NULL AS SIGNED ) + + col0 + cor0.col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6791
SELECT CAST ( NULL AS INTEGER ) + + col0 + cor0.col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + col0 + - ( + col0 ) AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT + + 36 * + col2 FROM tab1 AS cor0
----
1944
2052
3456

onlyif mysql # use DIV operator for integer division
query I rowsort label-6794
SELECT - col2 * + cor0.col1 DIV + col1 - 85 AS col2 FROM tab1 AS cor0
----
-139
-142
-181

skipif mysql # not compatible
query I rowsort label-6794
SELECT - col2 * + cor0.col1 / + col1 - 85 AS col2 FROM tab1 AS cor0
----
-139
-142
-181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - - cor0.col2 col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * col2 - - ( + col0 + - col1 ) FROM tab1 AS cor0
----
139
3702
7747

onlyif mysql # use DIV operator for integer division
query I rowsort label-6797
SELECT ALL - + col1 DIV cor0.col0 AS col0 FROM tab2 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL - + col1 / cor0.col0 AS col0 FROM tab2 cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT - - 49 AS col2 FROM tab2 cor0
----
49
49
49

query I rowsort
SELECT ALL + + col2 + - col1 * + 81 AS col1 FROM tab1 AS cor0
----
-2052
-753
-957

query I rowsort
SELECT DISTINCT - 73 + - cor0.col1 + col0 * - col0 FROM tab0 cor0
----
-1395
-735
-8085

query I rowsort
SELECT ALL + cor0.col2 + cor0.col2 - col1 AS col0 FROM tab0 AS cor0
----
-20
-95
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 + - col2 * col0 col1 FROM tab0 cor0
----
-7229
-723
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + + col0 col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + col0 + col1 * + ( col1 ) FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT 49 * + col2 + - 66 * - col0 * col2 AS col2 FROM tab1 cor0
----
13338
243561
511584

query I rowsort
SELECT ALL 48 * + col1 AS col2 FROM tab2 AS cor0
----
1488
2832
816

query I rowsort
SELECT DISTINCT - + cor0.col0 * - col1 + 73 FROM tab0 AS cor0
----
2137
3468
8172

query I rowsort
SELECT DISTINCT ( - col2 ) * tab0.col1 AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT 93 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 * 67 col2 FROM tab0 cor0
----
1694
2442
6054

query I rowsort
SELECT DISTINCT 56 FROM tab0, tab0 AS cor0
----
56

query I rowsort
SELECT ALL + col1 + ( - 85 ) * col2 AS col1 FROM tab0 cor0
----
-2719
-6879
12

query I rowsort
SELECT DISTINCT - cor0.col1 - + cor0.col1 FROM tab0 AS cor0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + + ( cor0.col2 ) * col0 col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL - + col2 * + 15 FROM tab2 AS cor0
----
-390
-405
-570

query I rowsort
SELECT col1 * + col1 + + 63 AS col0 FROM tab2
----
1024
352
3544

query I rowsort
SELECT - 82 + col1 AS col0 FROM tab2
----
-23
-51
-65

query I rowsort
SELECT col1 * ( + ( col2 ) ) + cor0.col2 FROM tab2 AS cor0
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT + 94 + + col2 * col0 FROM tab2
----
2122
283
3096

query I rowsort
SELECT + + 1 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 17 * - col2 AS col2 FROM tab0
----
-1394
-17
-561

query I rowsort
SELECT - - 95 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT - - col1 + - col1 * + 73 AS col2 FROM tab1 AS cor0
----
-1872
-720
-936

query I rowsort
SELECT DISTINCT + 17 + col0 FROM tab2 AS cor0
----
24
95
96

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 38 + tab0.col0 ) col1 FROM tab0
----
127
62
73

query I rowsort
SELECT - ( + ( col1 ) ) AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT 68 AS col0 FROM tab1 cor0
----
68
68
68

query I rowsort
SELECT + col0 + + 23 * col2 AS col1 FROM tab0 AS cor0
----
1975
58
783

query I rowsort
SELECT - + 46 FROM tab1 cor0
----
-46
-46
-46

query I rowsort
SELECT - - 59 * 51 FROM tab1 AS cor0
----
3009
3009
3009

query I rowsort
SELECT DISTINCT ( cor0.col1 ) + - cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-6835
SELECT DISTINCT - col1 + col1 DIV 87 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT - col1 + col1 / 87 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - + col2 + cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT 86 * col1 FROM tab1 AS cor0
----
1118
2236
860

query I rowsort
SELECT DISTINCT - - ( + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - col2 * col0 + + 77 AS col2 FROM tab0
----
-715
-7221
42

query I rowsort
SELECT - col2 + - col0 * - col2 FROM tab1 cor0
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6841
SELECT - + col2 DIV 87 + col1 AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6841
SELECT - + col2 / 87 + col1 AS col1 FROM tab0 AS cor0
----
86
91
97

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 - - cor0.col0 + + 25 * + col2 AS col1 FROM tab0 AS cor0
----
2139
60
849

query I rowsort
SELECT + cor0.col0 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6845
SELECT ALL + + CAST( + col0 AS SIGNED ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL + + CAST ( + col0 AS INTEGER ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT col0 + - 35 AS col0 FROM tab0 AS cor0
----
-11
0
54

query I rowsort
SELECT ALL + ( + col2 ) + - col1 + + cor0.col0 FROM tab1 AS cor0
----
111
163
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 42 col1 FROM tab2 cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - 56 * col0 col0 FROM tab1 cor0
----
-165
-3520
-4400

query I rowsort
SELECT - ( col2 ) + - cor0.col0 * 77 FROM tab1 AS cor0
----
-285
-4985
-6256

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6851
SELECT DISTINCT - col2 * col0 * - col0 + - CAST( NULL AS SIGNED ) / col1 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6851
SELECT DISTINCT - col2 * col0 * - col0 + - CAST ( NULL AS INTEGER ) / col1 AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - col2 + - 76 * col2 FROM tab0 AS cor0
----
-2541
-6314
-77

query I rowsort
SELECT DISTINCT 52 + col2 AS col1 FROM tab1 AS cor0
----
106
109
148

query I rowsort
SELECT col2 * 10 + 87 * col0 FROM tab2
----
7046
7253
879

query I rowsort
SELECT - col2 - ( - col1 ) * - col2 * - tab1.col0 FROM tab1
----
36423
4158
99744

query I rowsort
SELECT 72 + + cor1.col1 AS col1 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 06409ab194ab0c44f6883184bba40487

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 col0 FROM tab0, tab1 AS cor0
----
40

query I rowsort
SELECT ALL + 31 + ( col0 ) * + 16 FROM tab0 AS cor0
----
1455
415
591

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) + - col0 * 43 col0 FROM tab0 AS cor0
----
-1008
-1470
-3738

onlyif mysql # use DIV operator for integer division
query I rowsort label-6860
SELECT ALL + col2 DIV ( + tab0.col0 ) + + tab0.col1 AS col0 FROM tab0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL + col2 / ( + tab0.col0 ) + + tab0.col1 AS col0 FROM tab0
----
87
91
97

query I rowsort
SELECT ( + col2 ) * + col2 * - col2 AS col2 FROM tab0 cor0
----
-1
-35937
-551368

query I rowsort
SELECT DISTINCT 82 AS col2 FROM tab1, tab0 AS cor0
----
82

query I rowsort
SELECT ALL 36 + - 46 FROM tab0
----
-10
-10
-10

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab1 cor0, tab2 AS cor1
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6865
SELECT ALL - col0 + col2 * - col1 + - CAST( - 6 AS SIGNED ) AS col1 FROM tab1
----
-1322
-1401
-628

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL - col0 + col2 * - col1 + - CAST ( - 6 AS INTEGER ) AS col1 FROM tab1
----
-1322
-1401
-628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6866
SELECT CAST( - col2 AS SIGNED ) * col0 + - col2 AS col1 FROM tab0
----
-36
-7380
-825

skipif mysql # not compatible
query I rowsort label-6866
SELECT CAST ( - col2 AS INTEGER ) * col0 + - col2 AS col1 FROM tab0
----
-36
-7380
-825

onlyif mysql # use DIV operator for integer division
query I rowsort label-6867
SELECT ALL col0 + + 80 * + col2 DIV + col2 AS col2 FROM tab0
----
104
115
169

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL col0 + + 80 * + col2 / + col2 AS col2 FROM tab0
----
104
115
169

query I rowsort
SELECT DISTINCT - - cor0.col1 + tab0.col1 FROM tab0, tab1, tab1 AS cor0
----
9 values hashing to 6c5da2c0e2b4192a86a061d47e155396

query I rowsort
SELECT - 90 * 73 - cor0.col2 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to a4d51b8d1c46e62e3f33a4ea3f0ed81f

query I rowsort
SELECT DISTINCT + + 92 * cor0.col2 FROM tab2 AS cor0
----
2392
2484
3496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col1 FROM tab2, tab0 AS cor0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 col0 FROM tab0, tab0 AS cor0
----
-92

query I rowsort
SELECT ALL ( tab1.col1 * + col2 + col0 ) AS col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL + col2 * - 7 AS col0 FROM tab0 AS cor0
----
-231
-574
-7

query I rowsort
SELECT col2 * + col1 * ( 38 ) + - tab2.col2 * + col0 AS col2 FROM tab2
----
21546
31617
56264

onlyif mysql # use DIV operator for integer division
query I rowsort label-6876
SELECT DISTINCT col0 DIV + col2 AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-6876
SELECT DISTINCT col0 / + col2 AS col0 FROM tab1
----
0
1

query I rowsort
SELECT + 2 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT + + 33 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT col2 + - col2 * + 77 FROM tab2 AS cor0
----
-1976
-2052
-2888

query I rowsort
SELECT + col2 * col1 + 87 AS col2 FROM tab1 cor0
----
1335
1491
657

query I rowsort
SELECT + col0 + tab1.col0 + - tab1.col2 * - col0 FROM tab1
----
168
3776
7840

query I rowsort
SELECT + col0 * + col0 * + ( col1 ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
106135
1546
358982

query I rowsort
SELECT - col1 * 21 * 57 FROM tab0 AS cor0
----
-102942
-108927
-116109

query I rowsort
SELECT ALL + + col1 + col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT + - col0 - + 8 AS col0 FROM tab1 AS cor0
----
-11
-72
-88

query I rowsort
SELECT DISTINCT col0 + - col2 * col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL + col1 * + 36 FROM tab0 cor0
----
3096
3276
3492

query I rowsort
SELECT col1 + + ( col0 ) AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL col1 * 55 FROM tab2 AS cor0
----
1705
3245
935

query I rowsort
SELECT + col1 - 46 * 75 AS col0 FROM tab0 AS cor0
----
-3353
-3359
-3364

query I rowsort
SELECT + col1 * col1 + + 34 AS col0 FROM tab0 AS cor0
----
7430
8315
9443

query I rowsort
SELECT col2 * col2 + col1 * + 53 FROM tab2
----
2345
2372
3803

query I rowsort
SELECT 12 + - col2 AS col1 FROM tab1
----
-42
-45
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6894
SELECT + cor0.col1 DIV 62 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6894
SELECT + cor0.col1 / 62 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * col0 + + col2 FROM tab1
----
4153
63
6496

query I rowsort
SELECT ALL + + 28 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT DISTINCT 75 * tab0.col2 FROM tab0
----
2475
6150
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6898
SELECT DISTINCT tab0.col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT tab0.col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + - col2 + ( - col2 ) FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT + cor0.col0 * - col1 + - 50 AS col1 FROM tab2 cor0
----
-1393
-267
-4652

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6901
SELECT + col1 * ( + col1 ) + - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6901
SELECT + col1 * ( + col1 ) + - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 - cor0.col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - col0 + - 73 FROM tab2 AS cor0
----
-151
-152
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6904
SELECT - + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6904
SELECT - + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - 30 AS col1 FROM tab0 AS cor0
----
-2460
-30
-990

query I rowsort
SELECT ALL + - col1 * - ( 71 ) * - col0 FROM tab1 cor0
----
-45440
-5538
-73840

query III rowsort
SELECT * FROM tab1 WHERE col0 / + col2 + - col1 * + col1 IN ( - tab1.col2 * col2 )
----

query I rowsort
SELECT ALL + tab1.col1 * col0 AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT + col0 * + col0 - + col0 FROM tab2
----
42
6006
6162

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( col2 * - col1 )
----

query I rowsort
SELECT ALL - col1 * col0 + - tab0.col2 AS col2 FROM tab0
----
-2097
-3396
-8181

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 IN ( + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col1 * col1 + col1 * + col2 * col2 FROM tab0
----
101050
620165
9506

query I rowsort
SELECT ALL col0 FROM tab1 WHERE col2 NOT IN ( - col2 + - col2 )
----
3
64
80

query I rowsort
SELECT ALL + tab2.col1 * col1 + - col2 * + col2 * col0 AS col1 FROM tab2
----
-113787
-4142
-49247

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 + tab2.col0 col2 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT + 56 AS col0 FROM tab1 AS cor0
----
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-6918
SELECT col1 * col1 + - col2 DIV col1 FROM tab0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-6918
SELECT col1 * col1 + - col2 / col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL - cor0.col2 * col1 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT + 84 * col2 AS col0 FROM tab2 AS cor0
----
2184
2268
3192

query I rowsort
SELECT ALL + 58 AS col2 FROM tab0 cor0
----
58
58
58

query I rowsort
SELECT DISTINCT + 14 * col0 * ( col0 * - col0 ) + - col2 * + col2 * col1 FROM tab0 AS cor0
----
-10481450
-287190
-600347

query I rowsort
SELECT DISTINCT + - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) + - 42 * - 59 col2 FROM tab1 AS cor0
----
2481
2542
2558

query I rowsort
SELECT - col0 * col2 * - col2 + - col0 AS col2 FROM tab0 AS cor0
----
0
26112
598347

query I rowsort
SELECT 50 * cor1.col1 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3d04c0f6e95c0ec18ecf33c832a7dcd5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 * + 77 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0e94edc0b0f9158e070618dcc95fc9ce

query I rowsort
SELECT DISTINCT 21 FROM tab1, tab1 AS cor0
----
21

query I rowsort
SELECT DISTINCT + col2 * - ( col1 ) AS col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - - cor0.col0 + 48 * col0 FROM tab2 cor0
----
343
3822
3871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) * col2 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + + ( 65 ) - + col2 AS col0 FROM tab0 AS cor0
----
-17
32
64

query I rowsort
SELECT ALL - col0 + tab2.col2 + - tab2.col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL + tab0.col0 * + col1 FROM tab0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6935
SELECT + - col2 / - col1 + + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6935
SELECT + - col2 / - col1 + + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 84 + col2 * + col0 FROM tab2
----
2112
273
3086

query I rowsort
SELECT - 22 * 57 FROM tab2
----
-1254
-1254
-1254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 - cor0.col1 * - col0 col2 FROM tab1 AS cor0
----
1078
116
678

query I rowsort
SELECT col2 * + 24 FROM tab2
----
624
648
912

onlyif mysql # use DIV operator for integer division
query I rowsort label-6940
SELECT ( + col0 ) DIV col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6940
SELECT ( + col0 ) / col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 30 * - col1 + tab0.col2 FROM tab0
----
-2547
-2648
-2909

query I rowsort
SELECT + - col2 + - col1 AS col1 FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT + col0 * cor0.col1 + col1 + + col1 * col1 AS col0 FROM tab2 AS cor0
----
1209
1649
8142

query I rowsort
SELECT ALL col1 * col1 * col0 + - col0 + - col1 FROM tab1
----
13427
1999
6326

query I rowsort
SELECT col0 + col0 + - col1 FROM tab0
----
-27
-38
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-6946
SELECT - - cor0.col1 + col1 DIV col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6946
SELECT - - cor0.col1 + col1 / col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - tab2.col1 * col1 + col0 AS col0 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT + - cor0.col1 + - col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT + col1 * + col2 * - col2 AS col1 FROM tab2 cor0
----
-22599
-24548
-39884

query I rowsort
SELECT 96 - 68 * - col2 AS col0 FROM tab1
----
3768
3972
6624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6951
SELECT DISTINCT - CAST( 54 AS SIGNED ) * col0 - + col1 AS col2 FROM tab1
----
-188
-3466
-4333

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT - CAST ( 54 AS INTEGER ) * col0 - + col1 AS col2 FROM tab1
----
-188
-3466
-4333

query I rowsort
SELECT + col2 * - 60 * - col2 AS col0 FROM tab0
----
403440
60
65340

onlyif mysql # use DIV operator for integer division
query I rowsort label-6953
SELECT + ( + col0 + + col1 ) DIV tab0.col2 AS col0 FROM tab0
----
132
2
3

skipif mysql # not compatible
query I rowsort label-6953
SELECT + ( + col0 + + col1 ) / tab0.col2 AS col0 FROM tab0
----
132
2
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT NULL <> tab0.col1
----

query I rowsort
SELECT + + ( + col1 ) + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT 57 * col1 + col0 FROM tab2 AS cor0
----
1048
1774
3441

query I rowsort
SELECT ALL ( - cor0.col0 ) * - col1 AS col2 FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6958
SELECT ALL - col1 DIV col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL - col1 / col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6959
SELECT DISTINCT - col2 * cor0.col0 + - col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
-190
-2029
-3003

skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT - col2 * cor0.col0 + - col1 / + col1 AS col1 FROM tab2 AS cor0
----
-190
-2029
-3003

query I rowsort
SELECT ALL + col2 + col1 * + col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL + col2 + - col0 - col2 AS col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + tab1.col1 * tab1.col0 + col1 * col1 AS col2 FROM tab1
----
1209
740
754

query I rowsort
SELECT tab0.col1 FROM tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT - col1 + col0 + - col1 FROM tab1
----
-49
44
54

query I rowsort
SELECT DISTINCT - col1 + + col0 + col1 FROM tab2
----
7
78
79

query I rowsort
SELECT col2 * col0 * col0 - + col2 AS col2 FROM tab1
----
233415
432
614304

query I rowsort
SELECT ALL + col0 * - col2 * col2 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT + col2 * col2 + col2 AS col0 FROM tab2
----
1482
702
756

query I rowsort
SELECT col2 * col2 * - col1 FROM tab2
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-6970
SELECT col0 * col2 DIV tab2.col1 FROM tab2
----
176
34
6

skipif mysql # not compatible
query I rowsort label-6970
SELECT col0 * col2 / tab2.col1 FROM tab2
----
176
34
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6971
SELECT ALL col2 + col1 DIV col0 + col2 DIV - col2 AS col0 FROM tab1
----
56
61
95

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL col2 + col1 / col0 + col2 / - col2 AS col0 FROM tab1
----
56
61
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6972
SELECT DISTINCT col2 DIV + col1 + tab1.col2 + + col0 FROM tab1
----
126
183
59

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT col2 / + col1 + tab1.col2 + + col0 FROM tab1
----
126
183
59

query I rowsort
SELECT + col0 + + col0 * col0 * - col0 AS col2 FROM tab2 AS cor0
----
-336
-474474
-492960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * cor0.col2 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6975
SELECT DISTINCT - col0 * - col1 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT - col0 * - col1 / cor0.col1 AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + col0 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL tab2.col2 * + tab2.col0 FROM tab2
----
189
2028
3002

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL col2 * tab0.col0 * - col2 AS col1 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT ALL col0 * + 56 AS col2 FROM tab1 cor0
----
168
3584
4480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + 76 + col2 col1 FROM tab1 AS cor0
----
-4050
-4275
-7200

query I rowsort
SELECT - - 4 + col1 FROM tab2 AS cor0
----
21
35
63

query I rowsort
SELECT - 53 + + ( col1 ) * ( + col0 ) FROM tab0 AS cor0
----
2011
3342
8046

query I rowsort
SELECT col1 * - col1 + tab0.col2 * - col0 FROM tab0
----
-15579
-8188
-9444

query I rowsort
SELECT ALL 17 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT ( 52 ) + - cor0.col1 FROM tab1 AS cor0
----
26
39
42

query I rowsort
SELECT DISTINCT - 24 FROM tab2, tab2 AS cor0
----
-24

query I rowsort
SELECT ALL + tab1.col1 * - 90 * - tab1.col1 AS col0 FROM tab1
----
15210
60840
9000

query I rowsort
SELECT + ( 82 * + tab1.col1 ) AS col0 FROM tab1
----
1066
2132
820

query I rowsort
SELECT - ( col0 ) * + col1 + - ( + col1 ) * + col2 FROM tab1
----
-1210
-1482
-2288

onlyif mysql # use DIV operator for integer division
query I rowsort label-6992
SELECT + col2 DIV CAST( col2 AS SIGNED ) + cor0.col2 col0 FROM tab1 AS cor0
----
55
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6992
SELECT + col2 / CAST ( col2 AS INTEGER ) + cor0.col2 col0 FROM tab1 AS cor0
----
55
58
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6993
SELECT + col2 - + col2 * CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6993
SELECT + col2 - + col2 * CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - 9 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT col2 * col2 + 56 FROM tab1
----
2972
3305
9272

onlyif mysql # use DIV operator for integer division
query I rowsort label-6996
SELECT 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-6996
SELECT col2 / - tab0.col0 col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT + cor0.col0 * + 26 FROM tab0 AS cor0
----
2314
624
910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6998
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) * + ( col1 * col0 + 40 ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6998
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) * + ( col1 * col0 + 40 ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6999
SELECT - cor0.col2 + + col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-6999
SELECT - cor0.col2 + + col2 / - col2 AS col2 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT - col2 * + 39 - - col0 AS col1 FROM tab0 cor0
----
-1263
-3109
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT DISTINCT 10 * + col2 + - tab2.col2 AS col2 FROM tab2
----
234
243
342

query I rowsort
SELECT DISTINCT + tab1.col0 + col1 * col2 * + 50 AS col2 FROM tab1
----
28564
62480
70203

query I rowsort
SELECT + ( + cor0.col0 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT col0 * ( col1 ) AS col2 FROM tab0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7006
SELECT ALL - col1 * CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL - col1 * CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT tab0.col2 + col2 + + col2 AS col2 FROM tab0
----
246
3
99

skipif mysql # not compatible
query I rowsort
SELECT + + col0 * CAST ( + 96 AS REAL ) + col1 * col2 AS col2 FROM tab1 AS cor0
----
1692
6714
8928

query I rowsort
SELECT DISTINCT - - col1 * + col2 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
15561
3492
4902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7010
SELECT ALL - col0 * - CAST( + 11 AS SIGNED ) col2 FROM tab1 AS cor0
----
33
704
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL - col0 * - CAST ( + 11 AS INTEGER ) col2 FROM tab1 AS cor0
----
33
704
880

query I rowsort
SELECT DISTINCT col2 + 51 * - col0 * col1 + + 65 FROM tab2 AS cor0
----
-10975
-234611
-68390

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 ALL + col2 + col2 * col2 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-611802
-93621
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col2 * 50 col1 FROM tab0 AS cor0
----
-1564
-4009
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - 44 * col1 col2 FROM tab1 AS cor0
----
-1170
-450
-585

query I rowsort
SELECT col0 * ( col0 ) AS col0 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 * 70 + + col1 col2 FROM tab0 AS cor0
----
6130
6550
6922

query I rowsort
SELECT DISTINCT + col1 + 50 AS col2 FROM tab0 AS cor0
----
136
141
147

query I rowsort
SELECT DISTINCT col1 * + col1 - + cor0.col0 * + col2 AS col1 FROM tab1 AS cor0
----
-3548
-7511
514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * - 96 col0 FROM tab0 AS cor0
----
-2218
-3263
-8453

query I rowsort
SELECT ALL + col2 * 42 AS col2 FROM tab0
----
1386
3444
42

query I rowsort
SELECT - 61 + - 48 * + col0 AS col0 FROM tab1 AS cor0
----
-205
-3133
-3901

query I rowsort
SELECT DISTINCT + - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7024
SELECT - + CAST( NULL AS SIGNED ) + + 56 + cor0.col1 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT - + CAST ( NULL AS INTEGER ) + + 56 + cor0.col1 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 96 * 99 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-28512
-608256
-760320

query I rowsort
SELECT 50 * - ( - col0 ) + + col1 FROM tab0 AS cor0
----
1286
1847
4541

query I rowsort
SELECT 86 + - col0 FROM tab1 cor0
----
22
6
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7028
SELECT + ( - col0 ) + + col0 + + CAST( - ( col1 ) AS SIGNED ) * - 41 FROM tab2 AS cor0
----
1271
2419
697

skipif mysql # not compatible
query I rowsort label-7028
SELECT + ( - col0 ) + + col0 + + CAST ( - ( col1 ) AS INTEGER ) * - 41 FROM tab2 AS cor0
----
1271
2419
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7029
SELECT ( + ( + col1 ) ) * CAST( - cor0.col1 AS SIGNED ) + + cor0.col0 + col1 FROM tab0 AS cor0
----
-7286
-8101
-9277

skipif mysql # not compatible
query I rowsort label-7029
SELECT ( + ( + col1 ) ) * CAST ( - cor0.col1 AS INTEGER ) + + cor0.col0 + col1 FROM tab0 AS cor0
----
-7286
-8101
-9277

query I rowsort
SELECT + + 47 + - col0 AS col1 FROM tab1 AS cor0
----
-17
-33
44

query I rowsort
SELECT DISTINCT + + 73 * cor0.col1 + - col0 FROM tab2 cor0
----
1162
2256
4229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7032
SELECT ALL + col1 * col0 - - CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1381
244
4628

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL + col1 * col0 - - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + 56 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT DISTINCT + - 11 + + col1 FROM tab1 AS cor0
----
-1
15
2

query I rowsort
SELECT ALL + + 1 * col0 * 24 AS col1 FROM tab1 AS cor0
----
1536
1920
72

query I rowsort
SELECT 0 * - col2 * 13 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * + 8 FROM tab2 AS cor0
----
136
248
472

query I rowsort
SELECT DISTINCT - 52 AS col1 FROM tab1, tab0 AS cor0
----
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7039
SELECT + - col1 * CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-7039
SELECT + - col1 * CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col0 * - ( + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - 45 + col0 AS col2 FROM tab1 AS cor0
----
-42
19
35

query I rowsort
SELECT DISTINCT - col0 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - + col2 * + col2 + - col2 * + 68 FROM tab0 AS cor0
----
-12300
-3333
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 * - col0 col0 FROM tab0 AS cor0
----
-1176
-1715
-4361

query I rowsort
SELECT 82 + - col1 * cor0.col1 FROM tab1 AS cor0
----
-18
-594
-87

query I rowsort
SELECT - col1 + - col1 * col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT + ( col0 ) * - 92 - - col1 FROM tab2 AS cor0
----
-613
-7117
-7251

query I rowsort
SELECT DISTINCT + - col1 + - cor0.col0 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL ( 76 ) AS col1 FROM tab0
----
76
76
76

query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - 57 * col1 AS col2 FROM tab1 cor0
----
-1482
-570
-741

onlyif mysql # use DIV operator for integer division
query I rowsort label-7053
SELECT col0 - + col1 DIV 29 AS col2 FROM tab2 AS cor0
----
6
76
79

skipif mysql # not compatible
query I rowsort label-7053
SELECT col0 - + col1 / 29 AS col2 FROM tab2 AS cor0
----
6
76
79

query I rowsort
SELECT ALL + - 29 + col1 FROM tab1 AS cor0
----
-16
-19
-3

query I rowsort
SELECT ALL col2 + + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL - col0 * ( - col2 * col0 ) AS col2 FROM tab2 cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT ( + col0 ) + - col2 * - 86 AS col2 FROM tab1
----
4647
4966
8336

query I rowsort
SELECT + ( + col2 ) + + col2 * ( col0 ) * ( col0 ) + col2 AS col2 FROM tab0
----
1227
19074
649686

query I rowsort
SELECT DISTINCT 47 + col1 FROM tab1 AS cor0
----
57
60
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 * - col0 * + col1 col0 FROM tab0 AS cor0
----
101136
166355
396851

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 93ed44f621cc970f32b0cc9543b45262

query I rowsort
SELECT + ( col2 ) + col0 * col1 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT col1 * col1 * + col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ALL - col0 - col2 AS col1 FROM tab0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7065
SELECT ( - ( - col0 ) ) + - 49 DIV - 27 + - col1 DIV - col2 FROM tab0
----
133
27
91

skipif mysql # not compatible
query I rowsort label-7065
SELECT ( - ( - col0 ) ) + - 49 / - 27 + - col1 / - col2 FROM tab0
----
133
27
91

query I rowsort
SELECT - col2 + - 72 * col0 - + 30 FROM tab0
----
-1791
-2551
-6520

query I rowsort
SELECT DISTINCT + ( - 66 ) - - col1 FROM tab2
----
-35
-49
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7068
SELECT ALL + - CAST( + col0 AS SIGNED ) + - col1 + + 98 DIV col0 FROM tab0 cor0
----
-106
-130
-179

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL + - CAST ( + col0 AS INTEGER ) + - col1 + + 98 / col0 FROM tab0 cor0
----
-106
-130
-179

onlyif mysql # use DIV operator for integer division
query I rowsort label-7069
SELECT - col1 DIV col0 AS col2 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7069
SELECT - col1 / col0 AS col2 FROM tab0 cor0
----
-1
-2
-3

query I rowsort
SELECT ( cor1.col1 ) + + cor2.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 4378a0f9bff903e83dddaccceb065fbf

query I rowsort
SELECT col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7072
SELECT DISTINCT CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + + col2 + + 64 * cor0.col0 FROM tab2 AS cor0
----
475
5018
5094

query I rowsort
SELECT ALL - col1 * - 13 AS col2 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT DISTINCT - 28 AS col2 FROM tab0 AS cor0
----
-28

query I rowsort
SELECT ALL + col1 * + 54 FROM tab2 cor0
----
1674
3186
918

query I rowsort
SELECT DISTINCT + + cor0.col0 + - col1 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - 4 + + cor0.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 931afb4f407d2e7372767e68c6f624ab

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7079
SELECT ALL - - col0 * + col1 + - CAST( - col0 * + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
16020
2640
4620

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL - - col0 * + col1 + - CAST ( - col0 * + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
16020
2640
4620

query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
76

query I rowsort
SELECT ALL 48 * col1 + ( - col0 ) AS col2 FROM tab2
----
1481
2754
737

query I rowsort
SELECT 63 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT + 50 - col2 FROM tab2
----
12
23
24

query I rowsort
SELECT ALL + + ( + col1 ) * + col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT tab2.col1 + - ( + col2 * col1 ) FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - col2 * + 7 FROM tab0 AS cor0
----
-231
-574
-7

query I rowsort
SELECT ALL 56 + - 77 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # use DIV operator for integer division
query I rowsort label-7088
SELECT DISTINCT col2 DIV cor0.col1 FROM tab2 cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT col2 / cor0.col1 FROM tab2 cor0
----
0
2

query I rowsort
SELECT ALL - 46 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9

query I rowsort
SELECT - 94 + 14 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT DISTINCT - cor0.col2 * 22 FROM tab0 AS cor0
----
-1804
-22
-726

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7092
SELECT - col2 + CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-7092
SELECT - col2 + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL + col0 + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-7094
SELECT + - col1 DIV ( ( col1 ) ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7094
SELECT + - col1 / ( ( col1 ) ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + 89 + + cor0.col1 * - col0 AS col2 FROM tab2 cor0
----
-1254
-128
-4513

query I rowsort
SELECT DISTINCT - + col1 * - col0 + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - ( col0 ) * col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7098
SELECT ALL + 93 + + cor0.col0 DIV col1 FROM tab1 AS cor0
----
93
99
99

skipif mysql # not compatible
query I rowsort label-7098
SELECT ALL + 93 + + cor0.col0 / col1 FROM tab1 AS cor0
----
93
99
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-7099
SELECT DISTINCT + cor0.col2 + - 8 + col1 DIV + 22 AS col1 FROM tab2 AS cor0
----
20
30

skipif mysql # not compatible
query I rowsort label-7099
SELECT DISTINCT + cor0.col2 + - 8 + col1 / + 22 AS col1 FROM tab2 AS cor0
----
20
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 + col0 * col0 col1 FROM tab2 cor0
----
-45
5990
6147

query I rowsort
SELECT ALL + ( + ( - col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7102
SELECT DISTINCT - CAST( + col1 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
-2
-62

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
-2
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 col1 FROM tab2 AS cor0
----
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-7104
SELECT + col2 DIV + 91 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7104
SELECT + col2 / + 91 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7105
SELECT ALL - CAST( - 11 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL - CAST ( - 11 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT DISTINCT 84 * + 82 FROM tab1 AS cor0
----
6888

query I rowsort
SELECT - col1 * - 16 AS col1 FROM tab0
----
1376
1456
1552

query I rowsort
SELECT ALL 30 * + cor0.col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
1674
1767
2976

query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + col0 * col0 + 11 - - col1 * + col2 AS col0 FROM tab2 cor0
----
6898
7629
897

query I rowsort
SELECT 46 + + col0 FROM tab1 AS cor0
----
110
126
49

query I rowsort
SELECT + 98 * tab1.col0 - tab1.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to dd8994a2bb4366cd76cccc0782b88b0a

query I rowsort
SELECT 17 * - tab2.col2 FROM tab2
----
-442
-459
-646

query I rowsort
SELECT DISTINCT - + col2 - col0 * + 16 * - col2 FROM tab1 AS cor0
----
122784
2538
58311

query I rowsort
SELECT ( - cor0.col0 ) * - 39 AS col0 FROM tab1 AS cor0
----
117
2496
3120

query I rowsort
SELECT DISTINCT + 52 + col1 * cor0.col2 * ( - col1 * 24 ) AS col1 FROM tab2 AS cor0
----
-2172092
-263516
-622676

query I rowsort
SELECT - col1 * + ( - col0 ) + - col2 * - ( + col1 ) * col0 AS col1 FROM tab1 cor0
----
100880
37120
4290

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-7119
SELECT ALL - col0 DIV - col1 + col0 DIV 32 col1 FROM tab0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL - col0 / - col1 + col0 / 32 col1 FROM tab0
----
0
1
2

query I rowsort
SELECT 31 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT + 11 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT DISTINCT col2 * - 48 FROM tab1 AS cor0
----
-2592
-2736
-4608

query I rowsort
SELECT ALL 69 * + col2 AS col1 FROM tab0 AS cor0
----
2277
5658
69

query I rowsort
SELECT DISTINCT + + col0 + col2 + - col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT 33 * - 12 AS col1 FROM tab0 AS cor0
----
-396
-396
-396

query I rowsort
SELECT DISTINCT + col0 * - col2 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT + 56 + + cor0.col1 * col0 FROM tab0 cor0
----
2120
3451
8155

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7128
SELECT - + CAST( col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-7128
SELECT - + CAST ( col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7129
SELECT CAST( + col0 AS SIGNED ) * col0 FROM tab0 cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-7129
SELECT CAST ( + col0 AS INTEGER ) * col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT ALL + 33 + col1 FROM tab1
----
43
46
59

query I rowsort
SELECT + col2 + col2 * + 2 AS col0 FROM tab1 AS cor0
----
162
171
288

onlyif mysql # use DIV operator for integer division
query I rowsort label-7132
SELECT DISTINCT 69 DIV + tab2.col0 + col1 AS col2 FROM tab2
----
17
40
59

skipif mysql # not compatible
query I rowsort label-7132
SELECT DISTINCT 69 / + tab2.col0 + col1 AS col2 FROM tab2
----
17
40
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7133
SELECT DISTINCT - 37 DIV col0 + col2 - + ( 73 * col0 ) AS col1 FROM tab2 AS cor0
----
-489
-5668
-5729

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT - 37 / col0 + col2 - + ( 73 * col0 ) AS col1 FROM tab2 AS cor0
----
-489
-5668
-5729

query I rowsort
SELECT DISTINCT + col0 + - 4 AS col1 FROM tab2
----
3
74
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-7135
SELECT - tab0.col0 DIV - ( - col2 ) + + 50 FROM tab0
----
15
49
50

skipif mysql # not compatible
query I rowsort label-7135
SELECT - tab0.col0 / - ( - col2 ) + + 50 FROM tab0
----
15
49
50

query I rowsort
SELECT + 5 * col1 - col1 FROM tab2 AS cor0
----
124
236
68

query I rowsort
SELECT - col1 + col0 - - cor0.col2 FROM tab1 cor0
----
111
163
31

query I rowsort
SELECT ALL - ( - tab2.col1 ) * - col1 AS col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL + tab1.col0 * 66 AS col0 FROM tab1
----
198
4224
5280

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7140
SELECT ALL CAST( col2 + col2 AS SIGNED ) FROM tab2
----
52
54
76

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL CAST ( col2 + col2 AS INTEGER ) FROM tab2
----
52
54
76

query I rowsort
SELECT DISTINCT ( - col0 * col2 ) AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL - 36 AS col1 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e

query I rowsort
SELECT 30 * col2 AS col1 FROM tab0
----
2460
30
990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col1 - + 6 * 56 col0 FROM tab0 AS cor0
----
1728
3059
7763

query I rowsort
SELECT col1 + - 65 FROM tab2
----
-34
-48
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7146
SELECT - + col2 DIV 83 + - col0 FROM tab1 AS cor0
----
-3
-64
-81

skipif mysql # not compatible
query I rowsort label-7146
SELECT - + col2 / 83 + - col0 FROM tab1 AS cor0
----
-3
-64
-81

query I rowsort
SELECT col1 * + 37 AS col0 FROM tab2 AS cor0
----
1147
2183
629

query I rowsort
SELECT - 16 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7149
SELECT + - CAST( NULL AS SIGNED ) + - col0 * + col1 * 35 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7149
SELECT + - CAST ( NULL AS INTEGER ) + - col0 * + col1 * 35 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 83 * + cor0.col0 FROM tab0 AS cor0
----
1992
2905
7387

query I rowsort
SELECT 8 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 + + col0 col2 FROM tab2 AS cor0
----
125
126
54

query I rowsort
SELECT + 82 + + col1 * col1 * - col2 AS col2 FROM tab2 cor0
----
-10900
-25865
-90424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * col2 col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7155
SELECT - cor0.col0 * CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-7155
SELECT - cor0.col0 * CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + col2 + ( + col0 ) AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - + col1 + - col0 * col0 * col2 AS col1 FROM tab1 AS cor0
----
-233482
-512
-614413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 79 + 71 col2 FROM tab1 AS cor0
----
308
5127
6391

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7159
SELECT + cor0.col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT + cor0.col2 + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-7161
SELECT ALL col0 DIV - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL col0 / - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 * 80 + + col1 AS col1 FROM tab1 AS cor0
----
266
5130
6413

query I rowsort
SELECT ALL + + col0 + cor0.col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - + 80 + + cor0.col0 FROM tab2 AS cor0
----
-1
-2
-73

query I rowsort
SELECT DISTINCT - 89 * 93 FROM tab0 cor0
----
-8277

query I rowsort
SELECT ALL - + cor1.col0 + cor1.col0 * - 86 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to becac37d4f044667b0905f132cbaacfc

query I rowsort
SELECT ALL 10 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to bf75e71325a06683558cf93fd725ad16

query I rowsort
SELECT DISTINCT + 85 * - col1 FROM tab1 AS cor0
----
-1105
-2210
-850

query I rowsort
SELECT ALL - 85 + + col2 AS col0 FROM tab1 AS cor0
----
-28
-31
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + col2 col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - - 65 + col0 * + col0 FROM tab0 AS cor0
----
1290
641
7986

query I rowsort
SELECT ALL - col1 * + tab1.col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # use DIV operator for integer division
query I rowsort label-7174
SELECT + col2 DIV + col1 + col2 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-7174
SELECT + col2 / + col1 + col2 FROM tab2 AS cor0
----
26
27
40

query I rowsort
SELECT ALL 88 * col1 FROM tab1
----
1144
2288
880

query I rowsort
SELECT DISTINCT + ( + col2 ) * - col0 FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col1 col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT + 86 - cor0.col2 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 5df06597dee5468b397e4073a098f68f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7179
SELECT tab0.col2 * col1 + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7179
SELECT tab0.col2 * col1 + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 35 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # use DIV operator for integer division
query I rowsort label-7181
SELECT - 82 DIV + 86 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-7181
SELECT - 82 / + 86 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT 55 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT + tab2.col1 FROM tab2, tab1 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT ALL + 93 * - 14 FROM tab1, tab2 cor0
----
9 values hashing to 00ff021f1c403f425dc62a5604894e82

query I rowsort
SELECT - col0 * - ( tab2.col2 * col1 ) + + tab2.col2 AS col1 FROM tab2
----
119678
51072
5886

query I rowsort
SELECT ALL + + col1 + col0 * col2 AS col1 FROM tab0 AS cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 + col2 col1 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT ALL col2 * 91 FROM tab1 AS cor0
----
4914
5187
8736

onlyif mysql # use DIV operator for integer division
query I rowsort label-7189
SELECT DISTINCT - - col1 + col0 DIV cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
173
183
195

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT - - col1 + col0 / cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
173
183
195

query I rowsort
SELECT ALL + - col1 + + col0 + + col2 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT DISTINCT - 3 + 80 AS col2 FROM tab0
----
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-7192
SELECT DISTINCT - col0 + + col1 DIV col2 FROM tab0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT - col0 + + col1 / col2 FROM tab0
----
-22
-88
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7193
SELECT DISTINCT + tab0.col1 * + col1 + tab0.col0 + CAST( col1 AS SIGNED ) * tab0.col0 AS col0 FROM tab0
----
12839
16469
9484

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT + tab0.col1 * + col1 + tab0.col0 + CAST ( col1 AS INTEGER ) * tab0.col0 AS col0 FROM tab0
----
12839
16469
9484

query I rowsort
SELECT 7 + col1 FROM tab2
----
24
38
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 24 col1 FROM tab1
----
-240
-312
-624

query I rowsort
SELECT ( - tab2.col0 ) + - col2 AS col2 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT ( col1 ) - - col1 FROM tab2
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7198
SELECT 76 DIV + col1 + tab0.col1 AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7198
SELECT 76 / + col1 + tab0.col1 AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL ( + col0 ) + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + col0 * - col0 + + col1 - col0 FROM tab2 AS cor0
----
-25
-6103
-6303

query I rowsort
SELECT DISTINCT 77 * + ( + col1 ) + - cor0.col0 FROM tab2 cor0
----
1230
2380
4465

query I rowsort
SELECT ALL + + ( col0 ) * col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + + tab1.col1 AS col1 FROM tab1, tab0, tab2 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - ( col2 ) * + col0 + col2 AS col0 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT ALL + 94 + - col0 + + tab1.col1 FROM tab1
----
117
27
40

query I rowsort
SELECT + - 98 * col1 + + 72 * col1 AS col1 FROM tab2 AS cor0
----
-1534
-442
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-7207
SELECT DISTINCT - 12 DIV - col1 col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT - 12 / - col1 col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 12 + col2 AS col2 FROM tab2 AS cor0
----
38
39
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-7209
SELECT DISTINCT - 60 * col2 DIV + 64 AS col0 FROM tab2 AS cor0
----
-24
-25
-35

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT - 60 * col2 / + 64 AS col0 FROM tab2 AS cor0
----
-24
-25
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-7210
SELECT DISTINCT col1 * + col0 DIV - tab0.col0 AS col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-7210
SELECT DISTINCT col1 * + col0 / - tab0.col0 AS col1 FROM tab0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col0 ) * - 71 col0 FROM tab0 AS cor0
----
-1704
-2485
-6319

query I rowsort
SELECT DISTINCT - - col0 + + col2 * - 19 FROM tab2 AS cor0
----
-416
-506
-643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 col2 FROM tab2 AS cor0
----
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7214
SELECT col1 * - col0 + CAST( NULL AS SIGNED ) + 14 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7214
SELECT col1 * - col0 + CAST ( NULL AS INTEGER ) + 14 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - col0 + tab1.col2 FROM tab1
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-7216
SELECT ALL - col0 * - tab0.col2 + + col1 * col2 + tab0.col1 DIV col0 FROM tab0
----
134
14761
3633

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL - col0 * - tab0.col2 + + col1 * col2 + tab0.col1 / col0 FROM tab0
----
134
14761
3633

query I rowsort
SELECT ALL - col1 * + col2 * col0 AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT col0 * col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT + col2 * - col2 + col2 FROM tab2
----
-1406
-650
-702

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + + col0 IN ( + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab1 WHERE ( + col0 ) <> col1
----
3
64
80

query I rowsort
SELECT - col2 + + tab2.col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * - col0 + + col1 * col0 FROM tab1
----
-3456
-5360
69

query I rowsort
SELECT DISTINCT - col1 * col1 + col2 AS col2 FROM tab0
----
-7363
-8199
-9408

query I rowsort
SELECT + + 75 + col1 AS col1 FROM tab1 AS cor0
----
101
85
88

query I rowsort
SELECT - cor0.col1 * + col1 - - 66 FROM tab0 AS cor0
----
-7330
-8215
-9343

query I rowsort
SELECT + ( + col1 ) + col1 * 60 AS col0 FROM tab0 AS cor0
----
5246
5551
5917

query I rowsort
SELECT DISTINCT + col0 + cor0.col1 * + col1 FROM tab1 cor0
----
164
249
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 + + col1 col2 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL tab0.col1 * col1 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 col1 FROM tab1 WHERE NULL = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7232
SELECT ALL col2 - - col2 DIV - col0 col1 FROM tab0
----
1
32
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL col2 - - col2 / - col0 col1 FROM tab0
----
1
32
82

query I rowsort
SELECT col1 + + col1 * tab1.col1 FROM tab1
----
110
182
702

query I rowsort
SELECT DISTINCT - col2 / + col2 + col1 AS col2 FROM tab0 WHERE ( - col2 * col2 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 <= col0
----
7
31
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 col2 FROM tab1
----
108
114
192

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - cor0.col1 NOT IN ( + col1 + col0 )
----

query I rowsort
SELECT + col1 * col1 * - col2 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT + col1 + col1 * + col2 FROM tab2
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + tab1.col2 * + col2 col1 FROM tab1
----
2919
3313
9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-7242
SELECT DISTINCT - col1 DIV + col0 + + col1 AS col1 FROM tab1
----
10
13
18

skipif mysql # not compatible
query I rowsort label-7242
SELECT DISTINCT - col1 / + col0 + + col1 AS col1 FROM tab1
----
10
13
18

query I rowsort
SELECT col2 - - tab2.col2 AS col0 FROM tab2 WHERE col2 = col2
----
52
54
76

query I rowsort
SELECT DISTINCT col2 + + col1 + + col2 FROM tab1 WHERE col2 < ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 * col1 + tab2.col1 FROM tab2 WHERE NOT ( NULL ) BETWEEN + col1 AND ( NULL )
----

query I rowsort
SELECT col1 + - col0 FROM tab0 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT col0 + - col0 * - col0 - - col0 * tab1.col2 FROM tab1
----
14160
174
7808

query I rowsort
SELECT - col0 + + tab2.col2 + - col2 AS col2 FROM tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 * col2 col1 FROM tab1
----
108
3591
7584

query I rowsort
SELECT col1 * + tab0.col1 * + col0 + col0 + col1 FROM tab0
----
177614
329447
737189

onlyif mysql # use DIV operator for integer division
query I rowsort label-7251
SELECT - - cor0.col1 DIV cor0.col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-7251
SELECT - - cor0.col1 / cor0.col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT ALL col0 + 90 FROM tab2 AS cor0
----
168
169
97

query I rowsort
SELECT + ( 72 ) AS col1 FROM tab2 cor0
----
72
72
72

query I rowsort
SELECT 97 * + col1 AS col0 FROM tab2 AS cor0
----
1649
3007
5723

onlyif mysql # use DIV operator for integer division
query I rowsort label-7255
SELECT ALL 95 DIV - col0 AS col2 FROM tab2 cor0
----
-1
-1
-13

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL 95 / - col0 AS col2 FROM tab2 cor0
----
-1
-1
-13

query I rowsort
SELECT ALL + ( col2 ) + 38 FROM tab1 AS cor0
----
134
92
95

query I rowsort
SELECT DISTINCT - 32 * - col2 + cor0.col0 FROM tab0 AS cor0
----
1080
2713
67

query I rowsort
SELECT DISTINCT + - 28 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-110
-29
-61

query I rowsort
SELECT DISTINCT - 81 + cor0.col1 FROM tab2 AS cor0
----
-22
-50
-64

query I rowsort
SELECT - + 31 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
1085
2759
744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7261
SELECT - CAST( + 84 AS SIGNED ) AS col1 FROM tab0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-7261
SELECT - CAST ( + 84 AS INTEGER ) AS col1 FROM tab0
----
-84
-84
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-7262
SELECT + col2 * col2 DIV + 56 AS col0 FROM tab0 cor0
----
0
120
19

skipif mysql # not compatible
query I rowsort label-7262
SELECT + col2 * col2 / + 56 AS col0 FROM tab0 cor0
----
0
120
19

query I rowsort
SELECT - col0 + col2 * ( col1 ) AS col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT + + col0 * col0 + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT - ( - 57 ) AS col0 FROM tab2
----
57
57
57

query I rowsort
SELECT - - col0 + 97 * col2 AS col2 FROM tab2 cor0
----
2600
2626
3765

onlyif mysql # use DIV operator for integer division
query I rowsort label-7267
SELECT cor0.col2 + 18 + 30 * cor0.col0 DIV col1 FROM tab1 AS cor0
----
267
298
75

skipif mysql # not compatible
query I rowsort label-7267
SELECT cor0.col2 + 18 + 30 * cor0.col0 / col1 FROM tab1 AS cor0
----
267
298
75

query I rowsort
SELECT - col0 * + 91 FROM tab2 AS cor0
----
-637
-7098
-7189

query I rowsort
SELECT - + col2 + - 17 AS col2 FROM tab0 AS cor0
----
-18
-50
-99

query I rowsort
SELECT + tab0.col2 + cor0.col2 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c4b3f256aed754fcefbf420423e5b6e1

query I rowsort
SELECT ALL col0 * - col2 + + 16 AS col2 FROM tab1
----
-146
-3632
-7664

query I rowsort
SELECT 19 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT - 67 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT - col2 + + ( - 78 ) AS col2 FROM tab0 AS cor0
----
-111
-160
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT ALL + tab0.col2 * - col2 AS col0 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT 64 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
128
144
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 + + col0 ) col1 FROM tab1
----
-121
-176
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7279
SELECT ALL - CAST( NULL AS SIGNED ) * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 * - ( col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + col2 * 94 AS col2 FROM tab0
----
3102
7708
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 4 col0 FROM tab2
----
11
82
83

query I rowsort
SELECT ALL + + col2 + cor0.col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT 98 * + col0 AS col2 FROM tab1 AS cor0
----
294
6272
7840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 * col2 + + col1 col1 FROM tab0 AS cor0
----
120
1977
845

query I rowsort
SELECT ALL + + col2 * + col2 + col0 * col1 FROM tab0 AS cor0
----
14823
3153
3396

query I rowsort
SELECT DISTINCT - cor0.col1 + - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT + + col2 + - col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL - - 81 + - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1262
-136
-4521

query I rowsort
SELECT - + 78 AS col1 FROM tab2 cor0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT col1 * - col0 + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT - - col1 * 32 - col0 AS col2 FROM tab2 AS cor0
----
1810
465
985

query I rowsort
SELECT - col0 * 20 + 5 + tab0.col1 * - tab0.col1 FROM tab0
----
-10056
-10104
-7871

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7294
SELECT ALL - col2 * CAST( - ( - col2 ) AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL - col2 * CAST ( - ( - col2 ) AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-7295
SELECT DISTINCT - col1 DIV - ( + 48 ) FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT - col1 / - ( + 48 ) FROM tab2 cor0
----
0
1

query I rowsort
SELECT + cor0.col1 * col0 + + 65 + col1 AS col2 FROM tab1 AS cor0
----
1118
169
715

query I rowsort
SELECT + + col1 + col2 + col1 * + col2 FROM tab1 AS cor0
----
1357
1484
637

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7298
SELECT DISTINCT + + col0 * CAST( NULL AS SIGNED ) * col1 + + col1 / - col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT + + col0 * CAST ( NULL AS INTEGER ) * col1 + + col1 / - col2 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7299
SELECT + col0 * CAST( NULL AS SIGNED ) + - col1 - col0 * - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7299
SELECT + col0 * CAST ( NULL AS INTEGER ) + - col1 - col0 * - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * - 4 + - cor0.col0 * col1 * + col1 AS col2 FROM tab0 AS cor0
----
-177372
-329311
-736681

query I rowsort
SELECT + - col1 + + 79 AS col1 FROM tab2 AS cor0
----
20
48
62

query I rowsort
SELECT + col1 + ( - col0 * - col1 ) AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - 88 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7304
SELECT ( cor0.col2 ) DIV + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7304
SELECT ( cor0.col2 ) / + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 35 col2 FROM tab1 cor0
----
35
35
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7306
SELECT DISTINCT - CAST( 91 AS SIGNED ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT - CAST ( 91 AS INTEGER ) FROM tab0 AS cor0
----
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7307
SELECT CAST( + 74 AS SIGNED ) + col2 FROM tab0 AS cor0
----
107
156
75

skipif mysql # not compatible
query I rowsort label-7307
SELECT CAST ( + 74 AS INTEGER ) + col2 FROM tab0 AS cor0
----
107
156
75

query I rowsort
SELECT ALL + 55 + + 91 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 708ab89da52f5539ae8cc2b28295d0f9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7309
SELECT ALL col1 DIV CAST( - 55 AS SIGNED ) FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL col1 / CAST ( - 55 AS INTEGER ) FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL 20 * cor0.col1 + cor0.col0 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to dedf135b0b8bfb0dcb63fdafe77402b2

query I rowsort
SELECT ALL col1 * - col1 + col2 FROM tab1 AS cor0
----
-43
-622
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + - col1 + - col0 * col2 * col0 FROM tab1 cor0
----
-233482
-512
-614413

query I rowsort
SELECT ALL + + col2 * col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT + cor0.col2 + + cor0.col1 * col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - col0 * + col2 + col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT col2 - - col1 AS col0 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-7318
SELECT col1 * - col2 - + col2 DIV col1 FROM tab2
----
-1534
-648
-837

skipif mysql # not compatible
query I rowsort label-7318
SELECT col1 * - col2 - + col2 / col1 FROM tab2
----
-1534
-648
-837

query I rowsort
SELECT + col2 * + tab1.col0 + col2 + col1 FROM tab1
----
242
3715
7789

query I rowsort
SELECT col0 + tab2.col0 * col1 AS col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL col1 - col2 * - col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT + col0 * + col1 - cor0.col2 AS col2 FROM tab1 cor0
----
24
583
944

query I rowsort
SELECT DISTINCT - col0 - - cor0.col0 * col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT - col2 * col2 * col0 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + col2 * + col1 FROM tab2 WHERE NOT NULL NOT IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col1 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col0 * + col0 * cor0.col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT + + col0 * col0 * + cor0.col2 - col1 * + col2 FROM tab0 AS cor0
----
1128
16170
642060

query I rowsort
SELECT DISTINCT col2 * col2 + col0 - + col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT col0 + - col2 * + col2 AS col2 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT col1 + + col0 * col0 AS col0 FROM tab0
----
1322
662
8012

query I rowsort
SELECT ALL - col0 + - col1 * col2 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT + col2 + col0 * tab0.col2 - - col1 FROM tab0
----
133
7471
911

query I rowsort
SELECT DISTINCT + col0 + + col0 * col0 * col1 FROM tab0
----
118860
49560
720900

query I rowsort
SELECT DISTINCT col1 + + col2 * - col0 FROM tab1
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 * col0 col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT - cor0.col1 + col2 * col0 - + col1 FROM tab1 AS cor0
----
110
3628
7654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + 18 col1 FROM tab1 AS cor0
----
-1026
-1728
-972

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL - tab0.col1 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT ALL + - col1 * 94 FROM tab2 cor0
----
-1598
-2914
-5546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7343
SELECT ALL col1 + - CAST( + col2 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-104
-179
-82

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL col1 + - CAST ( + col2 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-104
-179
-82

query I rowsort
SELECT ALL tab1.col2 * + 5 AS col1 FROM tab1
----
270
285
480

query I rowsort
SELECT + 76 * - col0 + + col1 + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-494
-5791
-5908

onlyif mysql # use DIV operator for integer division
query I rowsort label-7346
SELECT ALL ( col0 ) * col1 DIV col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL ( col0 ) * col1 / col1 FROM tab2 AS cor0
----
7
78
79

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 97b43fbe79eecd0bc6921392403b666d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7348
SELECT DISTINCT col1 * col0 * CAST( 78 AS SIGNED ) FROM tab0 AS cor0
----
160992
264810
631722

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT col1 * col0 * CAST ( 78 AS INTEGER ) FROM tab0 AS cor0
----
160992
264810
631722

query I rowsort
SELECT ALL - 21 * + cor0.col0 AS col2 FROM tab1 cor0
----
-1344
-1680
-63

query I rowsort
SELECT ALL 19 + - col2 AS col0 FROM tab0 AS cor0
----
-14
-63
18

query I rowsort
SELECT - cor1.col2 + + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2f34f153e38ad874743e7617b78b56b7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7352
SELECT - - col1 * - col0 + col0 DIV col2 FROM tab0 AS cor0
----
-2064
-3360
-8098

skipif mysql # not compatible
query I rowsort label-7352
SELECT - - col1 * - col0 + col0 / col2 FROM tab0 AS cor0
----
-2064
-3360
-8098

query I rowsort
SELECT - - 82 + + col0 * col1 FROM tab0 cor0
----
2146
3477
8181

query I rowsort
SELECT ALL - col2 * col1 * + ( col1 ) AS col1 FROM tab2 cor0
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-7355
SELECT ALL - col2 + cor0.col1 DIV - 64 AS col1 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL - col2 + cor0.col1 / - 64 AS col1 FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT DISTINCT col1 * col0 + + ( col1 ) AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + ( + col2 ) * 98 FROM tab1 AS cor0
----
5292
5586
9408

query I rowsort
SELECT 17 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT DISTINCT tab2.col1 + 68 FROM tab2, tab0 AS cor0
----
127
85
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-7360
SELECT DISTINCT 98 DIV col2 AS col2 FROM tab0
----
1
2
98

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT 98 / col2 AS col2 FROM tab0
----
1
2
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7361
SELECT + col0 + col2 * col0 DIV cor0.col2 AS col2 FROM tab1 cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-7361
SELECT + col0 + col2 * col0 / cor0.col2 AS col2 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT ALL + ( + col1 * + col2 ) + - col2 FROM tab2
----
1508
608
810

query I rowsort
SELECT - cor0.col1 * col2 * ( col0 * col0 ) FROM tab0 AS cor0
----
-118825
-1634688
-59106502

query I rowsort
SELECT - col0 * + col2 * 17 FROM tab0 AS cor0
----
-124066
-13464
-595

onlyif mysql # use DIV operator for integer division
query I rowsort label-7365
SELECT + col0 DIV - CAST( col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7365
SELECT + col0 / - CAST ( col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT col1 * - 83 FROM tab0 AS cor0
----
-7138
-7553
-8051

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 40 col1 FROM tab0 AS cor0
----
3440
3640
3880

query I rowsort
SELECT ALL - col0 + - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT + col0 + col2 * cor0.col0 * + col1 FROM tab2 AS cor0
----
119730
51113
5866

query I rowsort
SELECT col1 * 99 - + col1 FROM tab2 AS cor0
----
1666
3038
5782

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col0 AS REAL ) col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - + cor0.col0 + + cor0.col0 FROM tab2 cor0
----
0

query I rowsort
SELECT + col0 * + ( - col0 ) - 29 FROM tab1 AS cor0
----
-38
-4125
-6429

onlyif mysql # use DIV operator for integer division
query I rowsort label-7374
SELECT DISTINCT - tab0.col1 * 28 + + tab0.col1 DIV col2 AS col2 FROM tab0
----
-2406
-2547
-2619

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT - tab0.col1 * 28 + + tab0.col1 / col2 AS col2 FROM tab0
----
-2406
-2547
-2619

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7375
SELECT - + CAST( NULL AS SIGNED ) * 40 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7375
SELECT - + CAST ( NULL AS INTEGER ) * 40 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7376
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 * col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7376
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 * col2 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT col1 * col0 * col2 AS col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT col0 + + tab2.col1 * - col0 AS col2 FROM tab2
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7379
SELECT DISTINCT - CAST( - 53 AS SIGNED ) FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT - CAST ( - 53 AS INTEGER ) FROM tab2 AS cor0
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * cor0.col2 + + 1 col0 FROM tab1 cor0
----
166
3713
7761

query I rowsort
SELECT DISTINCT col0 * 24 + - col1 AS col0 FROM tab1 AS cor0
----
1526
1907
46

query I rowsort
SELECT ALL - + col0 * 81 FROM tab0 AS cor0
----
-1944
-2835
-7209

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
-234
-40960
-83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-7384
SELECT ALL col1 DIV - 60 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL col1 / - 60 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 43 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT col1 + 45 AS col1 FROM tab2
----
104
62
76

query I rowsort
SELECT + col1 + + ( ( - col0 ) ) + 87 AS col2 FROM tab0
----
149
149
89

query I rowsort
SELECT DISTINCT col0 * - 12 - - col1 FROM tab0 AS cor0
----
-202
-323
-977

query I rowsort
SELECT ALL ( + col1 ) * + col0 + col1 * col2 - col2 FROM tab1 AS cor0
----
1153
1428
2192

query I rowsort
SELECT + - col2 * + 98 + col2 AS col1 FROM tab0 AS cor0
----
-3201
-7954
-97

query I rowsort
SELECT DISTINCT - col1 + - 33 * - cor0.col0 AS col2 FROM tab2 cor0
----
200
2515
2590

query I rowsort
SELECT DISTINCT - col2 + + col2 * + col1 + - col0 AS col1 FROM tab0 AS cor0
----
2781
61
7291

query I rowsort
SELECT - col2 * cor0.col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + + col0 + col1 * + col0 FROM tab1 AS cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 - - col1 * + col1 * + 5 col1 FROM tab0
----
37062
41487
47127

query I rowsort
SELECT col0 * + col0 * - col1 AS col1 FROM tab2
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-7397
SELECT + tab2.col0 DIV - ( + 32 ) AS col1 FROM tab2, tab2 cor0
----
9 values hashing to c7dbafad0d77419042fdc623aceee0eb

skipif mysql # not compatible
query I rowsort label-7397
SELECT + tab2.col0 / - ( + 32 ) AS col1 FROM tab2, tab2 cor0
----
9 values hashing to c7dbafad0d77419042fdc623aceee0eb

query I rowsort
SELECT DISTINCT - 47 AS col2 FROM tab1, tab0 cor0
----
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-7399
SELECT col2 * col1 - + 46 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-7399
SELECT col2 * col1 - + 46 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + + cor0.col0 * + col0 * - col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
-71

query I rowsort
SELECT DISTINCT 17 + - 0 FROM tab1, tab1 AS cor0
----
17

query I rowsort
SELECT ALL + - cor0.col1 + - col0 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 88 col0 FROM tab2 AS cor0
----
616
6864
6952

query I rowsort
SELECT ALL + col1 * + col1 + col2 * + col0 FROM tab0 AS cor0
----
15579
8188
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-7406
SELECT DISTINCT - col1 DIV + 49 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT - col1 / + 49 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col2 * col2 + - col2 AS col0 FROM tab0 AS cor0
----
-1122
-2
-6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7408
SELECT col1 * + CAST( col1 AS SIGNED ) + col2 + - col1 AS col1 FROM tab2
----
310
3448
957

skipif mysql # not compatible
query I rowsort label-7408
SELECT col1 * + CAST ( col1 AS INTEGER ) + col2 + - col1 AS col1 FROM tab2
----
310
3448
957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 - 51 col1 FROM tab1 AS cor0
----
27
589
989

query I rowsort
SELECT ALL - col1 + tab0.col2 + + 62 FROM tab0
----
-34
53
9

query I rowsort
SELECT + cor0.col1 + - cor0.col0 + 17 * - col0 AS col0 FROM tab0 AS cor0
----
-1511
-346
-533

query I rowsort
SELECT - col0 * + col0 - + col0 * + col2 AS col2 FROM tab1 AS cor0
----
-14080
-171
-7744

query I rowsort
SELECT ALL - col1 + - ( 5 * + col0 ) AS col1 FROM tab0 AS cor0
----
-206
-272
-536

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7414
SELECT DISTINCT + + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT + + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col0 * - 25 - - col2 FROM tab2 AS cor0
----
-148
-1924
-1937

query I rowsort
SELECT - + col0 + - 88 FROM tab1 AS cor0
----
-152
-168
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-7417
SELECT DISTINCT col2 * + 53 + + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
1379
1431
2018

skipif mysql # not compatible
query I rowsort label-7417
SELECT DISTINCT col2 * + 53 + + col0 / col1 AS col2 FROM tab2 AS cor0
----
1379
1431
2018

query I rowsort
SELECT DISTINCT - col0 * ( + col1 ) * cor0.col2 + + 61 + ( col0 + ( col1 ) ) * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-16138
-680437
-77511

query I rowsort
SELECT - 71 + + col0 FROM tab0 cor0
----
-36
-47
18

query I rowsort
SELECT ALL - ( - ( - col0 ) ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + ( 8 ) + col1 + + col0 AS col2 FROM tab0 AS cor0
----
118
140
188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT ALL - tab0.col0 + col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - - col2 + col2 * + 28 * 76 FROM tab0 AS cor0
----
174578
2129
70257

query I rowsort
SELECT ALL + col0 + cor0.col0 * + 28 FROM tab1 AS cor0
----
1856
2320
87

query I rowsort
SELECT + 16 + + cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
1550
662
853

query I rowsort
SELECT ALL + ( col2 ) + - 33 FROM tab0 AS cor0
----
-32
0
49

query I rowsort
SELECT - 47 * + col2 * + col0 + - col1 FROM tab1
----
-171466
-360973
-7640

query I rowsort
SELECT DISTINCT 51 * col1 - - 78 AS col0 FROM tab2 AS cor0
----
1659
3087
945

onlyif mysql # use DIV operator for integer division
query I rowsort label-7430
SELECT DISTINCT + - 61 + cor0.col2 * CAST( col2 AS SIGNED ) DIV col1 col2 FROM tab1 AS cor0
----
263
51
647

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT + - 61 + cor0.col2 * CAST ( col2 AS INTEGER ) / col1 col2 FROM tab1 AS cor0
----
263
51
647

query I rowsort
SELECT ALL + + col1 + 33 * col2 AS col2 FROM tab2 cor0
----
1271
917
922

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7432
SELECT - col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7432
SELECT - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 * col0 col1 FROM tab1
----
-45
4039
6304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 64 + col0 col2 FROM tab0 AS cor0
----
1560
2275
5785

query I rowsort
SELECT ( - ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + - 33 FROM tab0 AS cor0
----
-33
-33
-33

query I rowsort
SELECT col1 + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + 6 AS REAL ) FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT col0 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - col1 * ( + col0 ) + - col2 FROM tab1 AS cor0
----
-1136
-132
-697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * col0 col2 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-7442
SELECT - col1 + col1 * ( - ( col2 ) ) DIV + col2 AS col2 FROM tab0 AS cor0
----
-172
-182
-194

skipif mysql # not compatible
query I rowsort label-7442
SELECT - col1 + col1 * ( - ( col2 ) ) / + col2 AS col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT col0 * cor0.col0 * + col2 AS col1 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-7444
SELECT - 91 DIV cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7444
SELECT - 91 / cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab1, tab1 cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823

query I rowsort
SELECT - 22 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT col2 - 69 * - col0 FROM tab2 AS cor0
----
510
5408
5489

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 + - CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT col0 + col2 * 94 FROM tab2 AS cor0
----
2522
2545
3651

query I rowsort
SELECT ALL 22 + col1 * col0 AS col0 FROM tab2
----
1365
239
4624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7451
SELECT DISTINCT col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7452
SELECT DISTINCT + - col2 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7452
SELECT DISTINCT + - col2 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col2 - + 38 FROM tab2 AS cor0
----
-64
-65
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 + - col1 col2 FROM tab1 cor0
----
-35
-4106
-6413

query I rowsort
SELECT col1 + - 21 * col0 AS col1 FROM tab0 AS cor0
----
-1778
-418
-638

onlyif mysql # use DIV operator for integer division
query I rowsort label-7456
SELECT - cor0.col0 + + ( col2 ) DIV + ( - cor0.col2 ) AS col0 FROM tab0 cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-7456
SELECT - cor0.col0 + + ( col2 ) / + ( - cor0.col2 ) AS col0 FROM tab0 cor0
----
-25
-36
-90

query I rowsort
SELECT DISTINCT col1 + - 56 FROM tab2 AS cor0
----
-25
-39
3

query I rowsort
SELECT tab1.col0 * ( - col0 ) AS col2 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT 25 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
25

query I rowsort
SELECT + ( ( col2 ) ) * - 57 FROM tab0
----
-1881
-4674
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7461
SELECT col0 DIV col1 - col0 FROM tab2
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-7461
SELECT col0 / col1 - col0 FROM tab2
----
-7
-75
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-7462
SELECT - 74 + - 6 DIV col2 + 70 * col1 AS col0 FROM tab0
----
5946
6296
6710

skipif mysql # not compatible
query I rowsort label-7462
SELECT - 74 + - 6 / col2 + 70 * col1 AS col0 FROM tab0
----
5946
6296
6710

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7463
SELECT + - CAST( NULL AS SIGNED ) * + col0 + col0 / ( + cor0.col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7463
SELECT + - CAST ( NULL AS INTEGER ) * + col0 + col0 / ( + cor0.col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( 82 ) + col2 * cor0.col0 FROM tab2 AS cor0
----
107
1946
2920

query I rowsort
SELECT ALL - col2 + - tab0.col1 * - col0 AS col0 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT + ( col0 * - ( + 63 ) ) FROM tab2
----
-441
-4914
-4977

query I rowsort
SELECT 80 + + col1 * tab1.col1 * + col2 AS col2 FROM tab1
----
16304
36584
5780

query I rowsort
SELECT DISTINCT + cor0.col0 + 68 FROM tab0, tab0 AS cor0
----
103
157
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7469
SELECT ALL 0 * tab1.col2 DIV tab1.col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL 0 * tab1.col2 / tab1.col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - - col1 + - 55 FROM tab0 AS cor0
----
31
36
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-7471
SELECT - col0 * ( + col1 ) + - col0 DIV - ( 74 ) FROM tab0 AS cor0
----
-2064
-3395
-8098

skipif mysql # not compatible
query I rowsort label-7471
SELECT - col0 * ( + col1 ) + - col0 / - ( 74 ) FROM tab0 AS cor0
----
-2064
-3395
-8098

query I rowsort
SELECT ALL + col1 - 97 FROM tab1
----
-71
-84
-87

query I rowsort
SELECT ALL col0 * col1 - + col1 * + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 * ( + col1 ) AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL col2 + 19 * col0 FROM tab1 AS cor0
----
111
1273
1616

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + col0 * - col0 col0 FROM tab2 AS cor0
----
-42
-6006
-6162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7477
SELECT ALL col0 * CAST( NULL AS SIGNED ) - 75 * col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL col0 * CAST ( NULL AS INTEGER ) - 75 * col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + - col2 * col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - col0 + 55 * - col0 FROM tab1 AS cor0
----
-168
-3584
-4480

onlyif mysql # use DIV operator for integer division
query I rowsort label-7480
SELECT ALL 99 * - col0 * + 36 + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
-10691
-228095
-285119

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL 99 * - col0 * + 36 + col0 / col0 AS col1 FROM tab1 AS cor0
----
-10691
-228095
-285119

query I rowsort
SELECT - + 91 - - cor0.col2 AS col0 FROM tab1 AS cor0
----
-34
-37
5

query I rowsort
SELECT ALL + tab2.col2 * + col0 * 99 + col2 AS col2 FROM tab2
----
18738
200798
297236

query I rowsort
SELECT 85 + + col1 + + col0 FROM tab1
----
114
159
178

query I rowsort
SELECT 7 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7485
SELECT ALL cor0.col1 + + col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL cor0.col1 + + col1 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 + col0 col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - col2 * col1 - - 23 FROM tab0 AS cor0
----
-2815
-74
-7439

query I rowsort
SELECT ALL + ( col0 ) * + col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - col0 + cor0.col2 AS col2 FROM tab2 cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-7490
SELECT - col2 DIV 42 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7490
SELECT - col2 / 42 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT ALL - 89 + tab1.col2 * ( + col2 ) - - col0 FROM tab1
----
2830
3224
9207

query I rowsort
SELECT DISTINCT ( col2 * 41 ) + + col1 AS col2 FROM tab2
----
1125
1138
1575

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7493
SELECT - - col1 * + CAST( 64 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1664
640
832

skipif mysql # not compatible
query I rowsort label-7493
SELECT - - col1 * + CAST ( 64 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1664
640
832

query I rowsort
SELECT cor0.col2 * 78 + - cor0.col0 FROM tab2 AS cor0
----
1950
2099
2885

query I rowsort
SELECT ALL - col0 + + ( - 65 ) * col2 FROM tab1 AS cor0
----
-3513
-3769
-6320

query I rowsort
SELECT ALL + cor0.col1 + 2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
100
121
175

query I rowsort
SELECT + 68 * - col2 * ( col0 ) + col0 * + col0 * col0 AS col1 FROM tab0
----
-40032
208705
40495

query I rowsort
SELECT col1 + + col0 - + 17 FROM tab0
----
115
163
93

query I rowsort
SELECT ALL + col2 - - 94 FROM tab0 AS cor0
----
127
176
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 7 * + cor0.col0 col1 FROM tab0 AS cor0
----
-245
-51086
-5544

query I rowsort
SELECT ALL - - col2 + + cor0.col0 * + col1 + ( col0 ) * cor0.col0 AS col0 FROM tab1 cor0
----
141
4793
7536

query I rowsort
SELECT DISTINCT - 13 - - col2 FROM tab2 AS cor0
----
13
14
25

query I rowsort
SELECT DISTINCT - - col0 + - col0 + + col2 * + cor0.col2 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7504
SELECT ALL CAST( - 56 AS SIGNED ) - col1 FROM tab0 AS cor0
----
-142
-147
-153

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL CAST ( - 56 AS INTEGER ) - col1 FROM tab0 AS cor0
----
-142
-147
-153

query I rowsort
SELECT DISTINCT + - 70 * col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
20230
243670
67270

query I rowsort
SELECT + ( ( col2 ) ) * 91 AS col2 FROM tab1 AS cor0
----
4914
5187
8736

onlyif mysql # use DIV operator for integer division
query I rowsort label-7507
SELECT ALL col1 * + col2 + col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
1534
644
837

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL col1 * + col2 + col2 / - col1 AS col2 FROM tab2 AS cor0
----
1534
644
837

query I rowsort
SELECT 30 FROM tab2, tab0, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to 1ae25494a21836bac07879aa19fd4615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 col2 FROM tab1
----
14

query I rowsort
SELECT DISTINCT + 58 AS col0 FROM tab2
----
58

query I rowsort
SELECT - - 96 * - col2 * col1 AS col2 FROM tab1 AS cor0
----
-119808
-134784
-54720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7512
SELECT - CAST( 88 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
2288
2376
3344

skipif mysql # not compatible
query I rowsort label-7512
SELECT - CAST ( 88 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
2288
2376
3344

query I rowsort
SELECT - ( 69 ) AS col0 FROM tab2 AS cor0
----
-69
-69
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7514
SELECT ALL + + CAST( col0 AS SIGNED ) * - col2 * col0 col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL + + CAST ( col0 AS INTEGER ) * - col2 * col0 col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT 61 FROM tab2, tab0 cor0, tab1, tab1 AS cor1
----
81 values hashing to 9b52d3939da22c8931e3d5a72ddfb1b1

query I rowsort
SELECT ALL 23 * - col1 FROM tab2
----
-1357
-391
-713

onlyif mysql # use DIV operator for integer division
query I rowsort label-7517
SELECT DISTINCT + col0 DIV - ( - col2 ) FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT + col0 / - ( - col2 ) FROM tab0
----
0
1
35

query I rowsort
SELECT DISTINCT ( col2 ) * col1 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL + col2 * - 53 FROM tab1
----
-2862
-3021
-5088

query I rowsort
SELECT DISTINCT tab2.col1 * 66 AS col1 FROM tab2
----
1122
2046
3894

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7521
SELECT CAST( 23 AS SIGNED ) FROM tab2
----
23
23
23

skipif mysql # not compatible
query I rowsort label-7521
SELECT CAST ( 23 AS INTEGER ) FROM tab2
----
23
23
23

query I rowsort
SELECT ( col1 ) + + col0 AS col0 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT + + ( 97 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
97

query I rowsort
SELECT ALL + - col1 + - cor0.col1 * cor0.col2 AS col2 FROM tab1 cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT - col1 * - col1 - + ( col2 ) AS col2 FROM tab0 cor0
----
7363
8199
9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7526
SELECT DISTINCT - tab2.col1 * + CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT - tab2.col1 * + CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7527
SELECT DISTINCT + 28 DIV - col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT + 28 / - col0 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT - + 78 * cor0.col1 FROM tab2 AS cor0
----
-1326
-2418
-4602

query I rowsort
SELECT - + ( col2 ) * 37 FROM tab1 AS cor0
----
-1998
-2109
-3552

query I rowsort
SELECT + 19 + - cor0.col2 * - 2 FROM tab2 AS cor0
----
71
73
95

query I rowsort
SELECT DISTINCT - - col0 * col1 * + cor0.col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT ALL + 26 * - col2 AS col1 FROM tab2 AS cor0
----
-676
-702
-988

query I rowsort
SELECT - tab0.col1 * col1 * col1 AS col2 FROM tab0
----
-636056
-753571
-912673

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7534
SELECT - col2 * CAST( NULL AS SIGNED ) + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7534
SELECT - col2 * CAST ( NULL AS INTEGER ) + + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7535
SELECT ALL + col0 DIV 64 + col1 col1 FROM tab0 cor0
----
86
92
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL + col0 / 64 + col1 col1 FROM tab0 cor0
----
86
92
97

query I rowsort
SELECT - + col1 * - 46 + + cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
-3913
1067
1892

query I rowsort
SELECT + - col2 * cor0.col0 * col1 + - col2 + col0 FROM tab2 AS cor0
----
-119600
-50993
-5879

query I rowsort
SELECT - col0 + + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7539
SELECT ALL col1 DIV col0 AS col2 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL col1 / col0 AS col2 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT + col1 + ( col1 ) + cor0.col2 FROM tab1 cor0
----
106
122
77

query I rowsort
SELECT col0 * ( 58 ) + col0 AS col2 FROM tab2 cor0
----
413
4602
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7542
SELECT DISTINCT - - CAST( - col0 AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

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-7544
SELECT ALL - 81 * + 84 + col1 * 89 + cor0.col0 DIV - col2 AS col1 FROM tab1 AS cor0
----
-4490
-5647
-5915

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL - 81 * + 84 + col1 * 89 + cor0.col0 / - col2 AS col1 FROM tab1 AS cor0
----
-4490
-5647
-5915

query I rowsort
SELECT DISTINCT + - 28 AS col0 FROM tab1 cor0
----
-28

query I rowsort
SELECT - 79 * - col2 * col2 FROM tab0 AS cor0
----
531196
79
86031

query I rowsort
SELECT - - 28 + - cor0.col1 AS col2 FROM tab2 cor0
----
-3
-31
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-7548
SELECT ALL - tab1.col1 DIV - 64 + - col0 + - col2 * - col2 FROM tab1
----
2913
3185
9136

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL - tab1.col1 / - 64 + - col0 + - col2 * - col2 FROM tab1
----
2913
3185
9136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7549
SELECT ALL + CAST( - col0 AS SIGNED ) * - cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL + CAST ( - col0 AS INTEGER ) * - cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7550
SELECT ( - tab0.col0 ) DIV - ( col0 * - col0 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7550
SELECT ( - tab0.col0 ) / - ( col0 * - col0 ) FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + + col1 * cor0.col2 + ( - col0 ) FROM tab1 AS cor0
----
1168
1401
506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 + col0 col2 FROM tab0 AS cor0
----
152
87
98

query I rowsort
SELECT - ( + col0 ) * col2 - cor0.col0 AS col0 FROM tab0 cor0
----
-70
-7387
-816

query I rowsort
SELECT - - col0 + - col1 + - 87 AS col2 FROM tab0 AS cor0
----
-149
-149
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 col1 FROM tab1 AS cor0
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 col2 FROM tab0 AS cor0
----
-59

query I rowsort
SELECT - col2 * + 31 AS col0 FROM tab2 AS cor0
----
-1178
-806
-837

query I rowsort
SELECT ALL + col0 + 62 * - col0 FROM tab1 cor0
----
-183
-3904
-4880

query I rowsort
SELECT + - col1 * ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + 95 * col1 + - col2 AS col2 FROM tab0
----
8137
8563
9214

query I rowsort
SELECT ALL + + 38 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 48b4f3571b5c2551f55ad0346300fdea

query I rowsort
SELECT + + col2 * - 26 + + 71 + col2 FROM tab1 AS cor0
----
-1279
-1354
-2329

onlyif mysql # use DIV operator for integer division
query I rowsort label-7563
SELECT ALL - - col0 DIV - col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL - - col0 / - col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-34
33
81

query I rowsort
SELECT ALL + + 83 * col2 + col2 FROM tab2 cor0
----
2184
2268
3192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + 89 * cor0.col1 col0 FROM tab1 cor0
----
1061
2260
833

query I rowsort
SELECT DISTINCT - col2 * - 90 FROM tab1
----
4860
5130
8640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7567
SELECT DISTINCT - + col2 / + col0 + + col0 * CAST( NULL AS DECIMAL ) / col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT - + col2 / + col0 + + col0 * CAST ( NULL AS REAL ) / col0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 + col1 * 5 FROM tab2 AS cor0
----
102
186
354

query I rowsort
SELECT - col0 + - cor0.col1 + 20 * + ( - col2 ) FROM tab1 AS cor0
----
-1109
-1214
-2013

query I rowsort
SELECT DISTINCT + ( col2 ) + + tab1.col1 FROM tab1
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7571
SELECT + CAST( col0 AS SIGNED ) + tab1.col1 * - col2 FROM tab1
----
-1168
-1401
-506

skipif mysql # not compatible
query I rowsort label-7571
SELECT + CAST ( col0 AS INTEGER ) + tab1.col1 * - col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT 11 AS col0 FROM tab2, tab2 AS cor0
----
11

query I rowsort
SELECT - cor0.col2 * col1 - - 99 AS col0 FROM tab2 AS cor0
----
-1435
-547
-738

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 col0 FROM tab2
----
-78
-78
-78

query I rowsort
SELECT ALL 41 AS col0 FROM tab2
----
41
41
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7576
SELECT DISTINCT + - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7576
SELECT DISTINCT + - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * col1 - + tab2.col2 * + col2 AS col1 FROM tab2
----
-2787
-5278
-946

query I rowsort
SELECT + col0 + - tab1.col2 + - col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ( tab2.col1 ) + + 53 * col1 + col2 FROM tab2
----
1701
3212
956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7580
SELECT 33 * tab1.col1 * CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
21120
2574
34320

skipif mysql # not compatible
query I rowsort label-7580
SELECT 33 * tab1.col1 * CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
21120
2574
34320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7581
SELECT DISTINCT col1 * CAST( col0 AS SIGNED ) FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT col1 * CAST ( col0 AS INTEGER ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT 72 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT tab2.col1 * 76 * - col2 AS col0 FROM tab2
----
-116584
-49096
-63612

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7584
SELECT CAST( 94 AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

skipif mysql # not compatible
query I rowsort label-7584
SELECT CAST ( 94 AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT col0 * + ( + col1 ) * - col1 FROM tab1
----
-13520
-2028
-6400

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to db56d052e81a1ceebb4c3aea124670be

query I rowsort
SELECT col2 * col2 - tab1.col1 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT - + 95 FROM tab1 AS cor0
----
-95
-95
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7589
SELECT CAST( NULL AS SIGNED ) col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7589
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - 25 AS col2 FROM tab2, tab1 cor0
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 96 col1 FROM tab1
----
106
109
122

query I rowsort
SELECT + col2 * - ( col1 ) * + col1 + col2 * - col0 FROM tab0
----
-244860
-686340
-9444

query I rowsort
SELECT ALL - col1 + + col1 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 * col1 * + col0 AS col1 FROM tab1 cor0
----
-13520
-2028
-6400

query I rowsort
SELECT - 74 * col2 * - col0 AS col1 FROM tab1 AS cor0
----
11988
269952
568320

query I rowsort
SELECT ALL cor0.col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + 18 * col2 * + col0 FROM tab0 AS cor0
----
131364
14256
630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7598
SELECT - - CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7598
SELECT - - CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

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 col1 - 57 FROM tab0 AS cor0
----
29
34
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7601
SELECT DISTINCT - CAST( 75 AS SIGNED ) FROM tab1 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT - CAST ( 75 AS INTEGER ) FROM tab1 cor0
----
-75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7602
SELECT DISTINCT - CAST( col0 AS SIGNED ) * + col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * + col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + ( col1 ) + col2 AS col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT - col2 + - col0 + + col2 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + 78 * col0 + col0 AS col2 FROM tab1 cor0
----
237
5056
6320

query I rowsort
SELECT ALL + + col1 * col2 * - col1 AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT + col0 * - col2 - + col2 FROM tab1 AS cor0
----
-216
-3705
-7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 24 * 99 col2 FROM tab1 AS cor0
----
2376
2376
2376

query I rowsort
SELECT DISTINCT - 74 * - col1 AS col0 FROM tab0 AS cor0
----
6364
6734
7178

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 AS col2 FROM tab1 cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + col1 ) col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + - 67 AS col2 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT ALL + col0 * + 2 FROM tab1
----
128
160
6

query I rowsort
SELECT - col1 * - col1 + 70 FROM tab2
----
1031
3551
359

query I rowsort
SELECT ALL + 93 + 90 FROM tab0 AS cor0
----
183
183
183

query I rowsort
SELECT + col1 + cor0.col1 AS col2 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) * col2 AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL - col0 * - col0 + col1 + col2 AS col1 FROM tab2 AS cor0
----
107
6169
6296

query I rowsort
SELECT + 83 * + col0 + cor0.col0 FROM tab0 AS cor0
----
2016
2940
7476

query I rowsort
SELECT 84 * col2 + + cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
156
190
2079

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7621
SELECT DISTINCT - ( - col0 ) * col2 + 98 - cor0.col2 * CAST( NULL AS SIGNED ) * - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT - ( - col0 ) * col2 + 98 - cor0.col2 * CAST ( NULL AS INTEGER ) * - col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * + col0 * col1 + col0 * col2 AS col1 FROM tab1 AS cor0
----
-32832
-4050
-92160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7623
SELECT CAST( - col2 + + col2 AS SIGNED ) * + 67 * + 91 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7623
SELECT CAST ( - col2 + + col2 AS INTEGER ) * + 67 * + 91 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 62 + + col1 + 62 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT ALL + col1 * cor0.col1 * col2 + - col0 AS col1 FROM tab2 AS cor0
----
10903
25940
90428

query I rowsort
SELECT ALL + ( - col1 ) - col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL + 53 * + col2 FROM tab1 AS cor0
----
2862
3021
5088

onlyif mysql # use DIV operator for integer division
query I rowsort label-7628
SELECT DISTINCT - col0 DIV - 54 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7628
SELECT DISTINCT - col0 / - 54 AS col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + - col2 * 23 + + col2 * cor0.col0 FROM tab1 AS cor0
----
-1080
2337
5472

onlyif mysql # use DIV operator for integer division
query I rowsort label-7630
SELECT DISTINCT - col1 DIV + ( - 44 ) + col2 AS col0 FROM tab0 AS cor0
----
3
34
84

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT - col1 / + ( - 44 ) + col2 AS col0 FROM tab0 AS cor0
----
3
34
84

query I rowsort
SELECT - 77 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 + col1 * col0 col2 FROM tab2
----
1305
190
4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7633
SELECT ALL - col1 + CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL - col1 + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - + col0 + - 58 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1511
-644
-834

query I rowsort
SELECT ALL - col2 + + ( 60 ) AS col0 FROM tab2 AS cor0
----
22
33
34

query I rowsort
SELECT DISTINCT + col0 + 75 AS col2 FROM tab2 AS cor0
----
153
154
82

query I rowsort
SELECT + col0 * + cor0.col0 + 67 FROM tab0 AS cor0
----
1292
643
7988

onlyif mysql # use DIV operator for integer division
query I rowsort label-7638
SELECT ALL + 2 + + col0 * 41 DIV - col2 FROM tab1
----
-32
-44
0

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL + 2 + + col0 * 41 / - col2 FROM tab1
----
-32
-44
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7639
SELECT - + col2 * ( + 23 ) + + col0 * CAST( + col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
-432
1430
2128

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7639
SELECT - + col2 * ( + 23 ) + + col0 * CAST ( + col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
-432
1430
2128

query I rowsort
SELECT DISTINCT - col1 + ( + 4 ) FROM tab0 AS cor0
----
-82
-87
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7641
SELECT ALL - - col0 DIV - 86 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL - - col0 / - 86 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 + 45 FROM tab2 cor0
----
-33
-34
38

query I rowsort
SELECT DISTINCT + col0 * col0 * 5 + col0 FROM tab0 AS cor0
----
2904
39694
6160

onlyif mysql # use DIV operator for integer division
query I rowsort label-7644
SELECT ALL + col2 DIV - col1 + col0 AS col2 FROM tab1
----
1
59
73

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL + col2 / - col1 + col0 AS col2 FROM tab1
----
1
59
73

query I rowsort
SELECT DISTINCT col1 * 92 + col1 + - col0 FROM tab1
----
1129
2415
866

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 + cor0.col1 col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT 49 + - col0 FROM tab0
----
-40
14
25

query I rowsort
SELECT + col0 + + col0 * - 2 AS col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + col0 * + col2 + col0 + col0 AS col1 FROM tab2 AS cor0
----
203
2184
3160

query I rowsort
SELECT + - 74 FROM tab1 cor0
----
-74
-74
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-7651
SELECT DISTINCT 68 + + cor0.col0 * ( + col0 ) DIV col1 + - col2 * 49 AS col1 FROM tab1 cor0
----
-2316
-2578
-4144

skipif mysql # not compatible
query I rowsort label-7651
SELECT DISTINCT 68 + + cor0.col0 * ( + col0 ) / col1 + - col2 * 49 AS col1 FROM tab1 cor0
----
-2316
-2578
-4144

query I rowsort
SELECT DISTINCT - ( col0 ) * - col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT 86 * + col1 FROM tab1 AS cor0
----
1118
2236
860

query I rowsort
SELECT col1 + - col1 * 68 AS col0 FROM tab2 cor0
----
-1139
-2077
-3953

query I rowsort
SELECT - ( - col1 ) + - col1 * - cor0.col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL + col2 * - col2 - 93 AS col1 FROM tab1 AS cor0
----
-3009
-3342
-9309

query I rowsort
SELECT - cor0.col0 * - 13 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to af0c07af46984362607f0e435ad33406

query I rowsort
SELECT + ( - 19 ) AS col2 FROM tab2
----
-19
-19
-19

query I rowsort
SELECT DISTINCT 45 FROM tab2, tab0, tab0 AS cor0
----
45

query I rowsort
SELECT + - 84 + + col1 AS col2 FROM tab0 AS cor0
----
13
2
7

query I rowsort
SELECT - + col1 * - col0 + ( + col1 ) * + col1 FROM tab0 cor0
----
12804
16380
9460

query I rowsort
SELECT - col1 + col2 * 16 FROM tab0 AS cor0
----
-81
1221
442

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL tab2.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT col1 * + 43 + ( - col0 ) FROM tab2 AS cor0
----
1326
2459
652

query I rowsort
SELECT ALL + - col2 + + cor0.col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT ALL 82 * - ( - cor0.col0 ) AS col1 FROM tab0, tab0 cor0
----
9 values hashing to fec7215572a55d979eee5e57175da1b3

query I rowsort
SELECT cor0.col1 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL tab1.col1 AS col2 FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT ALL ( 98 + - col0 ) FROM tab2
----
19
20
91

query I rowsort
SELECT - 84 * col1 AS col1 FROM tab2 AS cor0
----
-1428
-2604
-4956

query I rowsort
SELECT + col1 * + col2 + cor0.col2 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT + + col2 * col2 * col2 FROM tab1 AS cor0
----
157464
185193
884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 36 * - col1 * ( - col0 ) col0 FROM tab1 AS cor0
----
23040
2808
37440

query I rowsort
SELECT + - ( col2 ) * + 10 FROM tab2 cor0
----
-260
-270
-380

query I rowsort
SELECT col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL ( col0 * + col1 ) FROM tab1
----
1040
640
78

query I rowsort
SELECT 45 FROM tab2, tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT DISTINCT cor0.col2 + + col1 * + col0 AS col2 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7680
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7680
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col0 * 31 + col0 FROM tab1 AS cor0
----
2048
2560
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7682
SELECT ALL - col1 DIV col1 + 34 * col2 FROM tab0
----
1121
2787
33

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - col1 / col1 + 34 * col2 FROM tab0
----
1121
2787
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-7683
SELECT + + cor0.col0 DIV 91 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7683
SELECT + + cor0.col0 / 91 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 + 43 * + 67 AS col2 FROM tab2 AS cor0
----
2898
2912
2940

query I rowsort
SELECT DISTINCT + col1 + 88 * 66 * - col0 FROM tab0 AS cor0
----
-139306
-203183
-516821

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7686
SELECT + cor0.col1 + + CAST( ( - cor0.col0 ) AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to c99cbeca6e6fdb3507b2e08470c1cda6

skipif mysql # not compatible
query I rowsort label-7686
SELECT + cor0.col1 + + CAST ( ( - cor0.col0 ) AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to c99cbeca6e6fdb3507b2e08470c1cda6

query I rowsort
SELECT - + col2 + + ( + col2 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7688
SELECT DISTINCT + col0 DIV + 95 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT + col0 / + 95 FROM tab2
----
0

query I rowsort
SELECT 81 * col1 + col2 FROM tab1 AS cor0
----
1149
2160
867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 col0 FROM tab0 AS cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT 25 + col0 FROM tab1 AS cor0
----
105
28
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7692
SELECT col2 DIV col0 col1 FROM tab1 AS cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7692
SELECT col2 / col0 col1 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT DISTINCT - col0 * cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT - ( ( tab0.col1 ) ) FROM tab0, tab1 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 * + col0 col2 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT - + cor0.col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

skipif mysql # not compatible
query I rowsort
SELECT ( + col2 + CAST ( + col1 AS REAL ) ) * col2 AS col1 FROM tab2
----
1566
2090
2210

query I rowsort
SELECT DISTINCT col0 * + cor0.col1 + + 75 FROM tab0 AS cor0
----
2139
3470
8174

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7699
SELECT ALL - + col2 * - CAST( col0 AS SIGNED ) + + col2 FROM tab0 cor0
----
36
7380
825

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL - + col2 * - CAST ( col0 AS INTEGER ) + + col2 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT - col0 + - ( - col0 ) * col1 AS col2 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT ALL cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT tab2.col0 AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7703
SELECT - tab2.col1 + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT - tab2.col1 + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 * - cor0.col0 + - col1 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-7705
SELECT DISTINCT - col0 + col0 * col0 DIV + col0 col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT - col0 + col0 * col0 / + col0 col2 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7706
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 + col2 * + col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 + col2 * + col1 FROM tab0
----
NULL

query I rowsort
SELECT - 45 * + col2 * col0 FROM tab2
----
-135090
-8505
-91260

onlyif mysql # use DIV operator for integer division
query I rowsort label-7708
SELECT DISTINCT 95 + ( tab1.col0 ) * 1 DIV - 11 AS col0 FROM tab1
----
88
90
95

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT 95 + ( tab1.col0 ) * 1 / - 11 AS col0 FROM tab1
----
88
90
95

query I rowsort
SELECT ( - 51 ) - - col2 AS col2 FROM tab1
----
3
45
6

query I rowsort
SELECT 50 + col1 + + col1 FROM tab0
----
222
232
244

query I rowsort
SELECT ALL col2 + 84 FROM tab1 AS cor0
----
138
141
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - 17 AS REAL ) col0 FROM tab2 cor0
----
-17

query I rowsort
SELECT 28 * - ( - col1 * 50 ) - 15 * + col1 AS col2 FROM tab1 AS cor0
----
13850
18005
36010

query I rowsort
SELECT DISTINCT - tab0.col1 + + tab0.col2 + + col0 AS col2 FROM tab0
----
-29
-61
80

query I rowsort
SELECT - col1 + - col0 * - ( - col1 + col2 ) FROM tab0 AS cor0
----
-1358
-3457
-892

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7716
SELECT DISTINCT cor0.col2 + col2 * CAST( + cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT cor0.col2 + col2 * CAST ( + cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + col1 * - col1 * 21 + + col2 FROM tab0 AS cor0
----
-155283
-173819
-197588

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) * 45 * + 14 FROM tab0 cor0
----
-20790
-51660
-630

query I rowsort
SELECT ALL - 4 * col0 + col0 - col2 FROM tab2 AS cor0
----
-260
-275
-48

query I rowsort
SELECT ALL col0 + + col0 * - 30 FROM tab0 cor0
----
-1015
-2581
-696

query I rowsort
SELECT ALL + 19 * + cor0.col0 - - 45 FROM tab1 AS cor0
----
102
1261
1565

query I rowsort
SELECT DISTINCT + + col1 + + col1 * col0 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL - cor0.col2 * cor0.col2 AS col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL + 23 * col2 * - col2 AS col2 FROM tab2 cor0
----
-15548
-16767
-33212

query I rowsort
SELECT + 72 * - ( col0 ) FROM tab1
----
-216
-4608
-5760

query I rowsort
SELECT ALL + ( + col1 ) * + col1 AS col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT + ( + col1 ) + + ( + col2 + cor0.col1 ) FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT + - col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col1 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT + + col1 * - col0 + col1 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1945
-3297
-7926

query I rowsort
SELECT ALL - tab0.col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT DISTINCT tab0.col1 * - col1 AS col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT + col0 - + col1 * + 45 FROM tab2 AS cor0
----
-1388
-2577
-686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 * cor0.col1 * - col2 col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + col0 + ( - col1 ) * + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-7736
SELECT + - col0 DIV + 65 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-7736
SELECT + - col0 / + 65 col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - 98 AS col0 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f

query I rowsort
SELECT + col0 + + col2 * + 71 * + col1 FROM tab0 AS cor0
----
201522
529891
6922

query I rowsort
SELECT + - col2 + 23 FROM tab0 AS cor0
----
-10
-59
22

query I rowsort
SELECT ALL + 64 + tab0.col0 + 93 AS col0 FROM tab0
----
181
192
246

query I rowsort
SELECT ALL + ( + 30 ) FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT DISTINCT + - 67 + ( + col2 ) * - col2 AS col2 FROM tab0 cor0
----
-1156
-6791
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col2 * col2 * col1 col1 FROM tab0 AS cor0
----
611966
93687
98

query I rowsort
SELECT ALL col1 * 77 + - col1 * 43 * + col1 FROM tab0 AS cor0
----
-311406
-349076
-397118

onlyif mysql # use DIV operator for integer division
query I rowsort label-7745
SELECT DISTINCT - - CAST( col0 AS SIGNED ) DIV + col1 + - 29 FROM tab0 cor0
----
-29

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT - - CAST ( col0 AS INTEGER ) / + col1 + - 29 FROM tab0 cor0
----
-29

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col0 AS REAL ) + - col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL + + col1 + col0 AS col0 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7748
SELECT + + col2 + + col0 DIV cor0.col2 + + col0 AS col1 FROM tab0 AS cor0
----
172
57
71

skipif mysql # not compatible
query I rowsort label-7748
SELECT + + col2 + + col0 / cor0.col2 + + col0 AS col1 FROM tab0 AS cor0
----
172
57
71

query I rowsort
SELECT - - 34 * col2 + + cor0.col1 * cor0.col2 * cor0.col1 + col2 FROM tab1 AS cor0
----
19584
38394
7695

query I rowsort
SELECT DISTINCT + 70 AS col2 FROM tab1 AS cor0
----
70

query I rowsort
SELECT + + 30 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 1ae25494a21836bac07879aa19fd4615

query I rowsort
SELECT DISTINCT 72 + + cor0.col0 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
150
151
79

query I rowsort
SELECT DISTINCT col2 * - 91 AS col1 FROM tab1
----
-4914
-5187
-8736

onlyif mysql # use DIV operator for integer division
query I rowsort label-7754
SELECT col0 DIV 36 - ( - col1 ) FROM tab2
----
19
31
61

skipif mysql # not compatible
query I rowsort label-7754
SELECT col0 / 36 - ( - col1 ) FROM tab2
----
19
31
61

query I rowsort
SELECT - - col2 * + col2 + col1 + col1 * + col0 AS col1 FROM tab1 AS cor0
----
10269
3020
3899

onlyif mysql # use DIV operator for integer division
query I rowsort label-7756
SELECT - col2 * + col1 DIV - col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7756
SELECT - col2 * + col1 / - col1 FROM tab0
----
1
33
82

query I rowsort
SELECT ( + 52 ) * col1 AS col1 FROM tab1 AS cor0
----
1352
520
676

query I rowsort
SELECT DISTINCT 99 * col1 FROM tab0
----
8514
9009
9603

query I rowsort
SELECT - 25 * col0 * ( 37 ) FROM tab0
----
-22200
-32375
-82325

query I rowsort
SELECT + tab2.col2 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL + cor0.col1 * - 15 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to eb91a7cd3d386d9d68515c604425c526

query I rowsort
SELECT + col2 * 28 + - col1 * - cor0.col1 FROM tab2 cor0
----
1353
1717
4209

query I rowsort
SELECT ALL - col2 * - ( - col1 ) - col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL 89 * - col0 FROM tab1
----
-267
-5696
-7120

query I rowsort
SELECT 59 + col0 FROM tab1 AS cor0
----
123
139
62

query I rowsort
SELECT + col0 * - col1 + ( cor0.col1 ) * col1 FROM tab2 AS cor0
----
-1054
-1121
744

query I rowsort
SELECT - - col0 + + cor0.col1 * - 98 FROM tab1 AS cor0
----
-1194
-2545
-916

query I rowsort
SELECT DISTINCT + col2 + + col0 * ( tab2.col2 ) * col2 AS col1 FROM tab2
----
114114
5130
52754

query I rowsort
SELECT - 56 + - col1 - + col0 FROM tab1
----
-130
-149
-85

query I rowsort
SELECT DISTINCT col1 + - ( cor0.col1 ) FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT - - col0 + col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + col2 + col1 * cor0.col1 + col2 FROM tab2 AS cor0
----
1015
3533
365

query I rowsort
SELECT col0 + - 87 FROM tab1 AS cor0
----
-23
-7
-84

query I rowsort
SELECT DISTINCT + col2 * - col0 + 6 AS col1 FROM tab2 AS cor0
----
-183
-2022
-2996

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7775
SELECT DISTINCT CAST( 15 AS SIGNED ) + + tab0.col2 - - col2 FROM tab0
----
17
179
81

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT CAST ( 15 AS INTEGER ) + + tab0.col2 - - col2 FROM tab0
----
17
179
81

query I rowsort
SELECT DISTINCT 22 - + col1 * - col1 FROM tab1
----
122
191
698

query I rowsort
SELECT - + 50 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487

query I rowsort
SELECT + 39 * - 2 - + col0 FROM tab1
----
-142
-158
-81

query I rowsort
SELECT 3 + col1 + col1 * 72 FROM tab0
----
6281
6646
7084

query I rowsort
SELECT col2 + cor0.col1 + cor0.col2 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT DISTINCT - 5 AS col2 FROM tab1
----
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7782
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7782
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7783
SELECT + + 6 DIV + 94 - col1 FROM tab2 cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-7783
SELECT + + 6 / + 94 - col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT col0 * + col1 - - col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - col1 * col2 + col2 + + col0 FROM tab1 AS cor0
----
-1072
-1347
-449

onlyif mysql # use DIV operator for integer division
query I rowsort label-7786
SELECT - col2 * col2 + - ( + col1 ) * col1 + 18 DIV cor0.col1 FROM tab1 AS cor0
----
-3348
-3592
-9384

skipif mysql # not compatible
query I rowsort label-7786
SELECT - col2 * col2 + - ( + col1 ) * col1 + 18 / cor0.col1 FROM tab1 AS cor0
----
-3348
-3592
-9384

query I rowsort
SELECT ALL + 73 * col0 AS col0 FROM tab0 AS cor0
----
1752
2555
6497

onlyif mysql # use DIV operator for integer division
query I rowsort label-7788
SELECT DISTINCT - 74 DIV + col2 FROM tab0 cor0
----
-2
-74
0

skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT - 74 / + col2 FROM tab0 cor0
----
-2
-74
0

query I rowsort
SELECT + + 32 AS col1 FROM tab0 AS cor0
----
32
32
32

query I rowsort
SELECT - 92 + col2 AS col1 FROM tab0 AS cor0
----
-10
-59
-91

query I rowsort
SELECT - col2 * tab1.col2 * col2 FROM tab1
----
-157464
-185193
-884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + cor0.col2 + - col2 * - col1 col1 FROM tab0 AS cor0
----
14924
194
5676

query I rowsort
SELECT + - col2 + + col1 + + 61 * 66 AS col1 FROM tab2 AS cor0
----
4005
4030
4059

query I rowsort
SELECT ALL + - ( col1 ) * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7795
SELECT + - col1 + cor0.col0 + cor0.col2 * 46 DIV col2 FROM tab1 AS cor0
----
100
113
23

skipif mysql # not compatible
query I rowsort label-7795
SELECT + - col1 + cor0.col0 + cor0.col2 * 46 / col2 FROM tab1 AS cor0
----
100
113
23

query I rowsort
SELECT DISTINCT + 66 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1291
642
7987

query I rowsort
SELECT DISTINCT - col1 + cor0.col0 * + cor0.col2 + 31 FROM tab0 AS cor0
----
-31
7238
737

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7798
SELECT + CAST( NULL AS SIGNED ) + col0 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT + CAST ( NULL AS INTEGER ) + col0 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 10 col0 FROM tab0 AS cor0
----
-14
-25
-79

query I rowsort
SELECT ALL + 14 + col2 AS col2 FROM tab1 AS cor0
----
110
68
71

query I rowsort
SELECT DISTINCT - 64 AS col1 FROM tab2, tab0 AS cor0
----
-64

query I rowsort
SELECT DISTINCT + col0 * - 12 + col1 FROM tab2 AS cor0
----
-53
-877
-931

query I rowsort
SELECT DISTINCT - 17 * - 18 FROM tab0 AS cor0
----
306

query I rowsort
SELECT 84 + col2 FROM tab0 AS cor0
----
117
166
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 59 col2 FROM tab2 AS cor0
----
118
76
90

query I rowsort
SELECT ALL + ( - 61 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
-183
-3904
-4880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + ( - col1 + + col2 ) col2 FROM tab2
----
100
3
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT + - cor1.col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - col1 + + col2 + - col0 FROM tab2 AS cor0
----
-11
-111
-58

query I rowsort
SELECT ALL col0 + + col1 * - col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT + ( - 81 ) + - tab0.col2 FROM tab0
----
-114
-163
-82

query I rowsort
SELECT ALL + 46 + - col2 FROM tab0 AS cor0
----
-36
13
45

query I rowsort
SELECT cor0.col1 * + col1 + col1 AS col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT + - col1 * 47 AS col1 FROM tab1 AS cor0
----
-1222
-470
-611

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7816
SELECT 70 + tab1.col0 * CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7816
SELECT 70 + tab1.col0 * CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT - col2 - 21 FROM tab0 AS cor0
----
-103
-22
-54

query I rowsort
SELECT ALL - col0 * 18 AS col1 FROM tab1 cor0
----
-1152
-1440
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * cor0.col0 * col1 + - col1 col2 FROM tab0 AS cor0
----
118728
49450
720720

query I rowsort
SELECT cor0.col1 - + col0 * col0 * - col2 AS col0 FROM tab0 AS cor0
----
1322
19094
649613

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7822
SELECT DISTINCT + cor0.col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT + cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 58 - col2 * col0 AS col1 FROM tab1
----
-104
-3590
-7622

query I rowsort
SELECT DISTINCT 83 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7825
SELECT ALL - tab2.col0 DIV - col1 - + 9 FROM tab2
----
-5
-8
-9

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL - tab2.col0 / - col1 - + 9 FROM tab2
----
-5
-8
-9

query I rowsort
SELECT + 68 - col2 FROM tab1
----
-28
11
14

query I rowsort
SELECT DISTINCT col1 * - tab1.col2 + + col0 FROM tab1
----
-1168
-1401
-506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7828
SELECT cor0.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7828
SELECT cor0.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + ( - cor0.col0 ) * col1 * col0 AS col2 FROM tab1 AS cor0
----
-237
-41024
-83280

query I rowsort
SELECT - col2 * ( ( + col2 ) ) - col1 AS col0 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT - col2 * + 18 + - col2 * - col2 FROM tab0 AS cor0
----
-17
495
5248

skipif mysql # not compatible
query I rowsort
SELECT ALL + cor0.col2 + CAST ( col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col0 + + 16 * - col1 FROM tab0 AS cor0
----
-1400
-1545
-1587

query I rowsort
SELECT ALL + col0 + 57 - + cor0.col0 FROM tab2 AS cor0
----
57
57
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7835
SELECT DISTINCT - - col2 * CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT - - col2 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 * col0 AS col2 FROM tab2 AS cor0
----
1323
158184
237158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7837
SELECT ALL + CAST( - 74 AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL + CAST ( - 74 AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7838
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - tab0.col2 AS col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 * col1 + - col1 * + col0 col2 FROM tab0
----
0
656019
66048

query I rowsort
SELECT + + cor0.col1 + col2 * - 41 FROM tab1 AS cor0
----
-2188
-2327
-3923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + col0 col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + + cor0.col1 + col1 * + 21 AS col2 FROM tab0 AS cor0
----
1892
2002
2134

query I rowsort
SELECT ALL + - col2 * + 36 AS col1 FROM tab1 AS cor0
----
-1944
-2052
-3456

onlyif mysql # use DIV operator for integer division
query I rowsort label-7845
SELECT ALL + col2 DIV col0 + - tab0.col2 + + tab0.col0 AS col0 FROM tab0
----
-8
34
7

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL + col2 / col0 + - tab0.col2 + + tab0.col0 AS col0 FROM tab0
----
-8
34
7

query I rowsort
SELECT ALL col1 * - 34 FROM tab1
----
-340
-442
-884

query I rowsort
SELECT ALL - col1 * 1 * col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-7848
SELECT DISTINCT - 85 DIV col0 col1 FROM tab0 AS cor0
----
-2
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT - 85 / col0 col1 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT 33 + col1 FROM tab1 AS cor0
----
43
46
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7850
SELECT ALL - 83 DIV + 86 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL - 83 / + 86 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 37 AS col1 FROM tab1 AS cor0
----
37

query I rowsort
SELECT + - col2 + + col1 + cor0.col1 FROM tab2 AS cor0
----
-4
35
92

query I rowsort
SELECT 4 * tab2.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 315f93d11152c2cf40009a8d4d7c678c

query I rowsort
SELECT ALL cor0.col1 - + col0 * col1 FROM tab0 cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + - 52 + - 90 FROM tab1 cor0
----
-142
-142
-142

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7856
SELECT - col2 + - CAST( NULL AS SIGNED ) + - 93 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7856
SELECT - col2 + - CAST ( NULL AS INTEGER ) + - 93 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col0 ) * - col1 - - col1 * - col2 AS col2 FROM tab2 AS cor0
----
-620
3068
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-7858
SELECT - + col2 DIV col2 + + cor0.col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-7858
SELECT - + col2 / col2 + + cor0.col0 FROM tab1 AS cor0
----
2
63
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 + - col0 + + col2 col1 FROM tab2 AS cor0
----
-50
-61
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( cor0.col2 ) ) * - col2 * cor0.col1 col1 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT + ( - col0 ) + - ( - col1 ) FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - - ( col2 ) + cor0.col2 * col1 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT col1 + - col2 * + col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL ( cor1.col2 ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT - col1 * col0 - col2 AS col2 FROM tab0 cor0
----
-2097
-3396
-8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 65 * - col1 col1 FROM tab2 AS cor0
----
-1105
-2015
-3835

query I rowsort
SELECT ALL - + col2 + col1 * + ( 0 + col2 ) AS col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT 47 + - col2 FROM tab1 AS cor0
----
-10
-49
-7

query I rowsort
SELECT ALL - - 24 + col0 AS col2 FROM tab2 AS cor0
----
102
103
31

query I rowsort
SELECT col0 * - col1 * + col1 FROM tab0 cor0
----
-177504
-329315
-737009

query I rowsort
SELECT cor0.col2 + 14 * col0 FROM tab0 cor0
----
1328
369
491

onlyif mysql # use DIV operator for integer division
query I rowsort label-7872
SELECT + 75 + col0 DIV - 97 AS col2 FROM tab1
----
75
75
75

skipif mysql # not compatible
query I rowsort label-7872
SELECT + 75 + col0 / - 97 AS col2 FROM tab1
----
75
75
75

query I rowsort
SELECT DISTINCT + col0 * 74 AS col2 FROM tab0
----
1776
2590
6586

query I rowsort
SELECT 76 * + col0 * + col0 FROM tab0
----
43776
601996
93100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * col1 * tab2.col2 col0 FROM tab2
----
119652
50388
65286

query I rowsort
SELECT ( - 66 + tab1.col1 ) * - col0 FROM tab1
----
120
3584
4240

query I rowsort
SELECT ALL - 35 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT 14 * - cor0.col0 FROM tab1 AS cor0
----
-1120
-42
-896

query I rowsort
SELECT + tab1.col2 - + col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT - - 2 * + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - cor0.col0 + + col1 * col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + ( - 57 ) FROM tab0
----
-57
-57
-57

query I rowsort
SELECT + - col2 * cor0.col0 * + col1 - + col1 AS col2 FROM tab1 AS cor0
----
-36490
-4238
-99853

query I rowsort
SELECT + - col0 * - ( + cor0.col1 ) FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-7885
SELECT col1 DIV - col2 + + col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7885
SELECT col1 / - col2 + + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col2 + + col2 * + col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
114114
5130
52754

query I rowsort
SELECT - col2 * - 65 - + 17 * col1 FROM tab0 AS cor0
----
-1584
3783
683

query I rowsort
SELECT + col2 + + ( col0 * cor0.col1 ) + - col1 * col1 * + col2 AS col0 FROM tab2 AS cor0
----
-25703
-85878
-9601

query I rowsort
SELECT + + cor0.col2 + - col0 * + col1 * - cor0.col2 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT ALL - 31 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
-14
0
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7891
SELECT col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7891
SELECT col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 49 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT DISTINCT - + col2 + 58 AS col2 FROM tab1 AS cor0
----
-38
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7894
SELECT ALL - 75 * col0 DIV col2 AS col1 FROM tab0 cor0
----
-2625
-54
-81

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL - 75 * col0 / col2 AS col1 FROM tab0 cor0
----
-2625
-54
-81

query I rowsort
SELECT ALL col0 * - cor0.col1 + cor0.col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT col1 * 3 + - col2 AS col1 FROM tab0 AS cor0
----
191
225
290

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7897
SELECT - - CAST( + col0 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-7897
SELECT - - CAST ( + col0 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + - ( + 97 ) FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT ( - col1 ) + col2 * 16 + 52 FROM tab1 AS cor0
----
1575
890
954

query I rowsort
SELECT ALL + + ( + col2 ) * col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + + 84 AS col2 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT + 59 + col2 FROM tab1 AS cor0
----
113
116
155

query I rowsort
SELECT + ( col0 ) * col2 + 85 + col1 AS col2 FROM tab1 AS cor0
----
273
3743
7778

query I rowsort
SELECT ALL - col2 + - cor0.col2 * cor0.col2 * - col2 + 58 AS col1 FROM tab1 AS cor0
----
157468
185194
884698

query I rowsort
SELECT DISTINCT + - col2 * - 81 + col0 FROM tab0 AS cor0
----
116
2697
6731

query I rowsort
SELECT DISTINCT - + 25 FROM tab2 AS cor0
----
-25

query I rowsort
SELECT + + ( + 89 ) * - col1 - - col0 AS col2 FROM tab1 AS cor0
----
-1077
-2311
-826

query I rowsort
SELECT + ( + col1 ) - + col0 * col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT - col0 * 0 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - + cor0.col0 + + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 col2 FROM tab1, tab0 AS cor0
----
22

query I rowsort
SELECT ALL cor0.col1 - - cor0.col1 * + cor0.col0 * + col2 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT - col2 + + col1 * col0 FROM tab2
----
1305
190
4576

query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT tab1.col0 * 37 AS col1 FROM tab1
----
111
2368
2960

query I rowsort
SELECT - 89 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

query I rowsort
SELECT - tab0.col0 + + col0 + ( col0 ) FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7918
SELECT DISTINCT - col1 - + col1 * col2 DIV + tab1.col2 AS col0 FROM tab1
----
-20
-26
-52

skipif mysql # not compatible
query I rowsort label-7918
SELECT DISTINCT - col1 - + col1 * col2 / + tab1.col2 AS col0 FROM tab1
----
-20
-26
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7919
SELECT DISTINCT col2 - 13 DIV + col0 FROM tab2
----
26
38

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT col2 - 13 / + col0 FROM tab2
----
26
38

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab0 cor1, tab1 cor2
----
972 values hashing to 88213a0de4c0a44aaefe8bbffbcaf44a

query I rowsort
SELECT - + col0 * 66 AS col0 FROM tab1 AS cor0
----
-198
-4224
-5280

query I rowsort
SELECT ALL col2 * 88 FROM tab0 AS cor0
----
2904
7216
88

query I rowsort
SELECT + ( - cor0.col1 ) + col0 * col1 + - col2 FROM tab1 AS cor0
----
-2
573
931

query I rowsort
SELECT - - col0 * col2 - ( col2 ) FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL - - 70 * col1 FROM tab2 cor0
----
1190
2170
4130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 + + col0 col2 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 * col2 col2 FROM tab0 AS cor0
----
1749
4346
53

query I rowsort
SELECT DISTINCT + 80 * + cor0.col1 + col1 FROM tab1 AS cor0
----
1053
2106
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-7929
SELECT DISTINCT col2 DIV col2 col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT col2 / col2 col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col1 * - cor0.col1 - ( col1 ) FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT + + col0 * + col2 - + col1 AS col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ALL - + col1 + - cor0.col2 FROM tab2 cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-7933
SELECT DISTINCT + - col1 + + col0 DIV + 12 AS col2 FROM tab0 AS cor0
----
-84
-95

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT + - col1 + + col0 / + 12 AS col2 FROM tab0 AS cor0
----
-84
-95

query I rowsort
SELECT + + ( - col1 ) + + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + + 89 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT + col0 + - col0 * - 18 * 55 AS col1 FROM tab2 AS cor0
----
6937
77298
78289

onlyif mysql # use DIV operator for integer division
query I rowsort label-7937
SELECT - col1 + + col0 DIV - ( 22 ) + + col1 * col0 FROM tab2 AS cor0
----
1323
186
4540

skipif mysql # not compatible
query I rowsort label-7937
SELECT - col1 + + col0 / - ( 22 ) + + col1 * col0 FROM tab2 AS cor0
----
1323
186
4540

query I rowsort
SELECT ALL + + col2 * 7 AS col0 FROM tab1 AS cor0
----
378
399
672

query I rowsort
SELECT - - col2 * - ( 4 ) + + col0 FROM tab0 AS cor0
----
-108
-239
31

query I rowsort
SELECT DISTINCT + + col0 + + 65 * + cor0.col2 FROM tab2 AS cor0
----
1762
1768
2549

onlyif mysql # use DIV operator for integer division
query I rowsort label-7941
SELECT ALL + cor0.col1 DIV 35 + 54 FROM tab0 AS cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL + cor0.col1 / 35 + 54 FROM tab0 AS cor0
----
56
56
56

query I rowsort
SELECT - 93 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT DISTINCT + col0 * + col1 + - col2 * 76 * + 42 AS col1 FROM tab1 AS cor0
----
-172290
-181304
-305392

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7944
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( + col2 ) + + col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ( + 56 ) * - col2 + col2 FROM tab2 AS cor0
----
-1430
-1485
-2090

query I rowsort
SELECT ALL - 97 + col0 AS col0 FROM tab1 AS cor0
----
-17
-33
-94

query I rowsort
SELECT + + ( 38 ) + - col1 * col2 FROM tab1 cor0
----
-1210
-1366
-532

query I rowsort
SELECT tab1.col2 + - 99 AS col1 FROM tab1
----
-3
-42
-45

query I rowsort
SELECT ( tab1.col2 ) AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL + 88 FROM tab1, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT ALL - - cor0.col2 + 34 AS col2 FROM tab1 AS cor0
----
130
88
91

query I rowsort
SELECT ALL col2 + + col0 + col2 AS col2 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT DISTINCT + col0 * col2 + - col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT col2 * + ( col0 ) + + 75 AS col2 FROM tab1
----
237
3723
7755

query I rowsort
SELECT - col2 + ( col0 ) * + 21 * col0 AS col2 FROM tab1
----
134304
135
85959

query I rowsort
SELECT ( - tab1.col1 ) * tab1.col2 - + ( - 17 ) AS col0 FROM tab1
----
-1231
-1387
-553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7958
SELECT - col1 * col2 + + col2 * + CAST( ( - col0 ) AS SIGNED ) FROM tab1
----
-1566
-4218
-8928

skipif mysql # not compatible
query I rowsort label-7958
SELECT - col1 * col2 + + col2 * + CAST ( ( - col0 ) AS INTEGER ) FROM tab1
----
-1566
-4218
-8928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 col0 FROM tab0
----
-6

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
17
31
59

query I rowsort
SELECT - + 79 FROM tab0 AS cor0
----
-79
-79
-79

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab0 AS cor2
----
13122 values hashing to 7128a178779dae11b2024ecb32c1fa0c

query I rowsort
SELECT DISTINCT - col2 * col1 + 95 * + tab2.col1 + col1 FROM tab2
----
2139
4130
986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 + col1 col2 FROM tab0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-7965
SELECT DISTINCT col2 + + tab0.col1 DIV - 70 + ( - col0 ) AS col2 FROM tab0
----
-35
-8
8

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT col2 + + tab0.col1 / - 70 + ( - col0 ) AS col2 FROM tab0
----
-35
-8
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-7966
SELECT + col1 DIV + col1 col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7966
SELECT + col1 / + col1 col1 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT + - col2 + - col1 + + col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - 81 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

query I rowsort
SELECT ALL - + col2 + + col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + 14 * - 13 FROM tab1, tab1 AS cor0
----
9 values hashing to cf05c55c5e157e9221c60a78a010cd92

query I rowsort
SELECT ALL 16 * - cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3375673c6be523d8a31bf0b0d2feec23

query I rowsort
SELECT + - ( - col0 ) * col2 + ( + 97 ) + cor0.col2 FROM tab2 AS cor0
----
2151
313
3137

onlyif mysql # use DIV operator for integer division
query I rowsort label-7973
SELECT col2 + col2 DIV - col2 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-7973
SELECT col2 + col2 / - col2 FROM tab1
----
53
56
95

query I rowsort
SELECT ALL col0 * ( + col2 ) * col0 FROM tab2
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 70 * + col0 + col2 * 42 * cor0.col0 col1 FROM tab0 AS cor0
----
312746
34944
3920

query I rowsort
SELECT DISTINCT - col2 * - col0 + col0 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 2 ) * col2 - col1 * + 84 col2 FROM tab2 cor0
----
-1504
-2658
-5008

onlyif mysql # use DIV operator for integer division
query I rowsort label-7978
SELECT + 48 DIV col0 + col2 AS col0 FROM tab0 AS cor0
----
2
35
82

skipif mysql # not compatible
query I rowsort label-7978
SELECT + 48 / col0 + col2 AS col0 FROM tab0 AS cor0
----
2
35
82

query I rowsort
SELECT DISTINCT - ( - col2 ) + col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + + col0 * - col0 - + col2 * 60 AS col2 FROM tab2 AS cor0
----
-1669
-7644
-8521

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7981
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col1 + - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / col1 + - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 74 AS REAL ) FROM tab2 AS cor0
----
74
74
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-7983
SELECT DISTINCT col0 DIV - col0 + + col2 DIV - tab1.col2 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT col0 / - col0 + + col2 / - tab1.col2 FROM tab1
----
-2

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND - col2 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 * col2 + col0 col0 FROM tab1
----
36544
4215
99920

query III rowsort
SELECT * FROM tab1 WHERE tab1.col1 > NULL
----

query I rowsort
SELECT tab0.col2 * col0 * col2 + col1 * - col1 FROM tab0
----
-9374
18740
590155

query I rowsort
SELECT col2 * - col2 - + col0 FROM tab2
----
-1523
-736
-754

query I rowsort
SELECT DISTINCT + tab1.col0 + - col1 * + col2 FROM tab1
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-7990
SELECT DISTINCT + col2 DIV - col1 col2 FROM tab2
----
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT + col2 / - col1 col2 FROM tab2
----
-2
0

query I rowsort
SELECT col0 - cor0.col0 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL col2 + + tab1.col1 AS col0 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7993
SELECT + col2 DIV - col0 - tab1.col0 AS col0 FROM tab1
----
-21
-64
-81

skipif mysql # not compatible
query I rowsort label-7993
SELECT + col2 / - col0 - tab1.col0 AS col0 FROM tab1
----
-21
-64
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + tab0.col0 col2 FROM tab0
----
178
48
70

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * + col1 + col2 BETWEEN col1 - tab0.col2 / col1 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 <> ( col1 / + col1 + col0 * col0 )
----

query I rowsort
SELECT ALL col2 + + col1 + col2 FROM tab2
----
111
85
93

query I rowsort
SELECT ALL col0 * - tab2.col0 AS col1 FROM tab2
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 col1 FROM tab1 WHERE NOT NULL NOT IN ( + col0 * + col0 + - col2 )
----

query I rowsort
SELECT - tab2.col0 * col1 * - col1 FROM tab2
----
22831
271518
6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 * tab0.col1 * col1 col0 FROM tab0
----
177418
329218
736918

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + col1 * col1 )
----

query I rowsort
SELECT - tab2.col0 * col0 + tab2.col1 AS col1 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT col0 * col2 + - tab0.col2 AS col0 FROM tab0
----
34
7216
759

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE - col1 * col0 + - col1 * - col2 NOT BETWEEN NULL AND ( col1 / - col1 + col2 * col0 * - col0 )
----
-26
-27
-38

query I rowsort
SELECT - col1 * - col2 + - col0 + tab1.col0 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col1 * + col0 + col2 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT - col0 + + col0 * + col0 + - col1 * - tab2.col0 AS col1 FROM tab2
----
10608
259
7505

query I rowsort
SELECT col1 * cor0.col0 + + col0 FROM tab1 AS cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-8012
SELECT + col0 DIV - col0 col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8012
SELECT + col0 / - col0 col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - cor0.col0 - + cor0.col0 * col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT cor0.col0 * col1 * col2 - + cor0.col2 FROM tab0 AS cor0
----
3394
664036
68079

query I rowsort
SELECT ALL + col0 + - tab2.col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT ( col0 + + col2 ) NOT IN ( + cor0.col0 )
----

query I rowsort
SELECT col2 + col2 * - col2 * col1 FROM tab1 AS cor0
----
-119712
-32433
-75762

query I rowsort
SELECT cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL - - col1 + cor0.col1 * - col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT - - cor0.col1 + - 50 FROM tab0 AS cor0
----
36
41
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8021
SELECT DISTINCT - + cor0.col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT - + cor0.col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + + 49 FROM tab0 AS cor0
----
-33
16
48

query I rowsort
SELECT ALL col2 + - 48 FROM tab1 AS cor0
----
48
6
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8024
SELECT DISTINCT - + col2 DIV 24 - col0 AS col0 FROM tab1 cor0
----
-5
-66
-84

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT - + col2 / 24 - col0 AS col0 FROM tab1 cor0
----
-5
-66
-84

query I rowsort
SELECT + - cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + + 93 + 69 AS col1 FROM tab1 AS cor0
----
162

query I rowsort
SELECT DISTINCT + col1 * - 43 FROM tab0 AS cor0
----
-3698
-3913
-4171

query I rowsort
SELECT DISTINCT + tab1.col0 - tab1.col1 * + ( tab1.col0 ) AS col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT col0 * ( tab2.col2 ) + + tab2.col0 AS col0 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-8030
SELECT DISTINCT - ( col2 ) DIV - cor0.col0 + col0 + - cor0.col1 FROM tab1 AS cor0
----
-5
54
68

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT - ( col2 ) / - cor0.col0 + col0 + - cor0.col1 FROM tab1 AS cor0
----
-5
54
68

query I rowsort
SELECT DISTINCT + col0 * + col1 + col2 FROM tab0 cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-8032
SELECT DISTINCT cor0.col2 * col2 + - ( + 30 ) DIV + col1 AS col0 FROM tab1 AS cor0
----
2915
3246
9214

skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT cor0.col2 * col2 + - ( + 30 ) / + col1 AS col0 FROM tab1 AS cor0
----
2915
3246
9214

onlyif mysql # use DIV operator for integer division
query I rowsort label-8033
SELECT ALL + col2 * col1 + + col2 DIV - col2 AS col2 FROM tab1
----
1247
1403
569

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL + col2 * col1 + + col2 / - col2 AS col2 FROM tab1
----
1247
1403
569

query I rowsort
SELECT col2 * col0 - + col0 AS col0 FROM tab2
----
182
1950
2923

query I rowsort
SELECT - col2 + 7 FROM tab1
----
-47
-50
-89

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8037
SELECT + + col2 + col1 DIV - cor0.col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8037
SELECT + + col2 + col1 / - cor0.col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - col0 * + 70 AS col0 FROM tab2 AS cor0
----
-490
-5460
-5530

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 * + col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0, tab1 cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-8041
SELECT + col1 * - col0 + col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-8041
SELECT + col1 * - col0 + col2 / - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - - col2 * + ( col0 ) + col1 - + col0 FROM tab0 AS cor0
----
7300
854
97

query I rowsort
SELECT ALL 17 * col0 + col1 FROM tab2
----
1360
1385
150

query I rowsort
SELECT DISTINCT + + col0 + ( col0 ) * col2 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - - ( - col1 ) * + cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + + ( + col0 ) * col0 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * + col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - 86 + col0 * col1 AS col1 FROM tab0 AS cor0
----
1978
3309
8013

onlyif mysql # use DIV operator for integer division
query I rowsort label-8049
SELECT ALL 78 DIV + col0 AS col1 FROM tab1
----
0
1
26

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL 78 / + col0 AS col1 FROM tab1
----
0
1
26

query I rowsort
SELECT + ( + col0 ) * + cor0.col1 * + col1 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT ALL - 70 AS col1 FROM tab2
----
-70
-70
-70

query I rowsort
SELECT 21 * tab1.col2 FROM tab1
----
1134
1197
2016

query I rowsort
SELECT ALL - - 92 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-125
-1251
-4510

onlyif mysql # use DIV operator for integer division
query I rowsort label-8054
SELECT DISTINCT cor0.col0 + col2 DIV cor0.col1 AS col1 FROM tab1 cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT cor0.col0 + col2 / cor0.col1 AS col1 FROM tab1 cor0
----
5
69
87

query I rowsort
SELECT - col0 + ( col0 ) * col0 AS col0 FROM tab2 cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT - + col0 * col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + cor0.col1 * ( col0 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col0 * - col2 * col0 AS col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL - + col0 + + 71 FROM tab2 AS cor0
----
-7
-8
64

query I rowsort
SELECT DISTINCT - col0 * 6 FROM tab1 AS cor0
----
-18
-384
-480

onlyif mysql # use DIV operator for integer division
query I rowsort label-8061
SELECT ALL + col1 DIV ( - col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8061
SELECT ALL + col1 / ( - col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * 89 FROM tab1 AS cor0
----
4806
5073
8544

query I rowsort
SELECT ALL cor0.col0 * + col1 + - col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT - cor0.col1 * + ( col1 ) AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + col1 * 15 * 44 FROM tab2 AS cor0
----
11220
20460
38940

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8066
SELECT DISTINCT - - col0 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT - - col0 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT tab2.col2 * col2 + + col2 AS col1 FROM tab2
----
1482
702
756

query I rowsort
SELECT + col1 + col0 * - ( - col1 ) * col1 AS col0 FROM tab0 AS cor0
----
177590
329412
737100

query I rowsort
SELECT ALL - cor1.col0 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-8070
SELECT ALL col0 DIV - col2 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL col0 / - col2 AS col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL - col1 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL tab2.col1 * + tab2.col0 AS col2 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-8073
SELECT + cor0.col0 DIV col1 col1 FROM tab1 AS cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8073
SELECT + cor0.col0 / col1 col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT 64 * - col0 FROM tab1 AS cor0
----
-192
-4096
-5120

query I rowsort
SELECT ( tab1.col0 ) * col0 AS col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT - col1 * - col1 - col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT cor0.col2 + - cor0.col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - cor0.col1 * - cor0.col2 + col0 AS col2 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT + 57 + - col1 AS col0 FROM tab2 AS cor0
----
-2
26
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-8080
SELECT CAST( + 16 AS SIGNED ) DIV col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8080
SELECT CAST ( + 16 AS INTEGER ) / col1 AS col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 56 col1 FROM tab1
----
110
113
152

query I rowsort
SELECT DISTINCT - col0 + col2 * tab1.col1 * - col0 + - col2 * - col0 AS col1 FROM tab1
----
-32896
-4053
-92240

query I rowsort
SELECT ALL 77 + + 43 * - tab2.col0 FROM tab2
----
-224
-3277
-3320

query I rowsort
SELECT ( 65 ) + tab1.col1 AS col0 FROM tab1
----
75
78
91

query I rowsort
SELECT ALL + col0 * - col2 + tab0.col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT 87 + + col2 * tab1.col1 FROM tab1
----
1335
1491
657

query I rowsort
SELECT ALL ( col2 ) + - col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8088
SELECT col0 DIV col1 + col0 AS col0 FROM tab2
----
7
79
83

skipif mysql # not compatible
query I rowsort label-8088
SELECT col0 / col1 + col0 AS col0 FROM tab2
----
7
79
83

query I rowsort
SELECT ALL ( + 67 ) + - col2 * col2 FROM tab0
----
-1022
-6657
66

query I rowsort
SELECT - 71 + col2 * col0 * col1 + col0 AS col1 FROM tab0
----
3359
664136
68065

query I rowsort
SELECT 34 * col0 AS col1 FROM tab2
----
238
2652
2686

query I rowsort
SELECT + 20 + - col0 * - cor0.col1 FROM tab1 cor0
----
1060
660
98

query I rowsort
SELECT DISTINCT cor0.col0 * - col0 + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT + - col2 * - col1 - col2 * col0 AS col2 FROM tab1 cor0
----
-3078
-6432
1242

query I rowsort
SELECT + col1 + col0 * + col2 AS col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + ( col1 ) + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT 93 + + col2 FROM tab0 AS cor0
----
126
175
94

query I rowsort
SELECT ALL - col1 * + col1 + col0 AS col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT + col2 * - col1 - cor0.col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL - 64 AS col1 FROM tab0 AS cor0
----
-64
-64
-64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8101
SELECT col1 * col1 * CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8101
SELECT col1 * col1 * CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 91 - + col2 * + col1 FROM tab0 cor0
----
-2747
-6
-7371

query I rowsort
SELECT - - 78 * - col0 * col2 - col2 AS col2 FROM tab1 AS cor0
----
-12690
-284601
-599136

query I rowsort
SELECT DISTINCT + + 34 * col2 AS col1 FROM tab2 AS cor0
----
1292
884
918

query I rowsort
SELECT DISTINCT 17 * col0 FROM tab2 AS cor0
----
119
1326
1343

query I rowsort
SELECT - tab2.col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8107
SELECT ALL - tab1.col0 + CAST( + 75 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to 95d919c4e2ac04a31029bd2b39390e86

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL - tab1.col0 + CAST ( + 75 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to 95d919c4e2ac04a31029bd2b39390e86

query I rowsort
SELECT ALL - col0 + col0 * - 35 FROM tab0 AS cor0
----
-1260
-3204
-864

onlyif mysql # use DIV operator for integer division
query I rowsort label-8109
SELECT DISTINCT - col1 DIV + col0 + - 26 * col0 + ( - col1 ) FROM tab2 AS cor0
----
-2071
-2087
-217

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT - col1 / + col0 + - 26 * col0 + ( - col1 ) FROM tab2 AS cor0
----
-2071
-2087
-217

query I rowsort
SELECT ALL + cor0.col0 * 28 AS col0 FROM tab1 AS cor0
----
1792
2240
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8111
SELECT - col0 + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-8111
SELECT - col0 + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + ( - col2 ) * 59 + + 66 FROM tab2
----
-1468
-1527
-2176

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8113
SELECT + tab2.col1 * col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8113
SELECT + tab2.col1 * col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + tab2.col1 + + col1 - - col1 FROM tab2
----
177
51
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-8115
SELECT ALL + ( + col0 ) + + cor0.col0 DIV + ( - col0 ) FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL + ( + col0 ) + + cor0.col0 / + ( - col0 ) FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT + 42 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
52
55
68

query I rowsort
SELECT col2 + 80 * cor0.col2 AS col1 FROM tab1 AS cor0
----
4374
4617
7776

query I rowsort
SELECT - col2 * - 10 FROM tab1
----
540
570
960

query I rowsort
SELECT ALL 7 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT ALL + - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT ALL - tab0.col1 + cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 76b1d8548f1c7689108ab6ccf6c2516e

query I rowsort
SELECT - + cor0.col2 * + col1 + + col0 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT ( 13 ) AS col2 FROM tab2
----
13

query I rowsort
SELECT 27 + col0 AS col1 FROM tab0
----
116
51
62

query I rowsort
SELECT - - 10 AS col2 FROM tab0 AS cor0
----
10
10
10

query I rowsort
SELECT ALL 43 * 47 AS col0 FROM tab2
----
2021
2021
2021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 col1 FROM tab1
----
23
23
23

query I rowsort
SELECT DISTINCT + + 82 AS col0 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort
SELECT ALL + + ( - col1 ) * CAST ( + col2 AS REAL ) * + col2 + CAST ( + cor0.col2 AS INTEGER ) + cor0.col1 * - col0 * col1 FROM tab2 AS cor0
----
-29299
-311376
-47341

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8130
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8130
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 * col1 col2 FROM tab0 AS cor0
----
-6794
-7189
-7663

query I rowsort
SELECT + 90 * col0 FROM tab0 AS cor0
----
2160
3150
8010

query I rowsort
SELECT ALL 55 + col1 * - col1 AS col2 FROM tab1 cor0
----
-114
-45
-621

query I rowsort
SELECT - 40 * col0 FROM tab1 AS cor0
----
-120
-2560
-3200

query I rowsort
SELECT DISTINCT - + col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - 85 * col0 AS col0 FROM tab2 AS cor0
----
-595
-6630
-6715

query I rowsort
SELECT DISTINCT - + cor0.col2 * col1 - + 46 AS col0 FROM tab1 AS cor0
----
-1294
-1450
-616

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - col1 * col2 + col2 * col1 * 45 col0 FROM tab0 AS cor0
----
-276094
34056
4268

query I rowsort
SELECT + col2 * - cor0.col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - + col0 * col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + + 81 + - cor0.col0 + + 52 FROM tab1 cor0
----
130
53
69

query I rowsort
SELECT DISTINCT + + ( cor0.col1 ) - - col1 AS col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT - col2 + 67 + col0 AS col0 FROM tab0 cor0
----
101
58
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-8144
SELECT DISTINCT col1 DIV tab0.col0 + col1 AS col2 FROM tab0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT col1 / tab0.col0 + col1 AS col2 FROM tab0
----
89
92
99

query I rowsort
SELECT - col2 * col0 * - col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL col2 + col0 * col0 + + col2 * + 76 * cor0.col1 AS col2 FROM tab0 AS cor0
----
216297
575115
8598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 75 + col1 * col0 col2 FROM tab2 AS cor0
----
2242
4193
6552

onlyif mysql # use DIV operator for integer division
query I rowsort label-8148
SELECT + col2 + - col1 + - 98 DIV col2 AS col1 FROM tab0 cor0
----
-10
-194
-55

skipif mysql # not compatible
query I rowsort label-8148
SELECT + col2 + - col1 + - 98 / col2 AS col1 FROM tab0 cor0
----
-10
-194
-55

query I rowsort
SELECT col2 + + 93 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2265
3256
8359

query I rowsort
SELECT ALL - - ( 40 ) * - col2 + col2 AS col0 FROM tab2 AS cor0
----
-1014
-1053
-1482

query I rowsort
SELECT ALL + col1 * + ( cor0.col0 ) - ( col1 + col1 ) FROM tab0 AS cor0
----
1892
3201
7917

query I rowsort
SELECT 2 + 62 * - col2 * - col1 AS col1 FROM tab2 AS cor0
----
40054
51896
95110

query I rowsort
SELECT ALL col2 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL + - 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT + - col1 * 80 FROM tab0 AS cor0
----
-6880
-7280
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col2 * col2 col2 FROM tab1 AS cor0
----
2919
3313
9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8157
SELECT - col0 * CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-8157
SELECT - col0 * CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL col0 * - ( + col0 ) + col0 - + col1 FROM tab2 AS cor0
----
-6065
-6179
-73

query I rowsort
SELECT DISTINCT + - col1 + 80 + 32 FROM tab0 AS cor0
----
15
21
26

query I rowsort
SELECT col2 + - ( + col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * ( - col2 ) + col1 AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203

skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 * + CAST ( - col1 AS REAL ) FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 + col2 col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-8164
SELECT - + col0 DIV + ( 94 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8164
SELECT - + col0 / + ( 94 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 3 AS col2 FROM tab2
----
3
3
3

query I rowsort
SELECT - 43 + - col0 FROM tab2
----
-121
-122
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-8167
SELECT + col2 DIV - col1 + - col2 * col2 FROM tab2
----
-1446
-676
-729

skipif mysql # not compatible
query I rowsort label-8167
SELECT + col2 / - col1 + - col2 * col2 FROM tab2
----
-1446
-676
-729

query I rowsort
SELECT ALL 71 + + col2 FROM tab2
----
109
97
98

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 38dccc9c32724260ec175f754830d863

query I rowsort
SELECT ALL - col0 * + ( + ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8171
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * 62 + + col0 AS col2 FROM tab0 AS cor0
----
5356
5731
6049

query I rowsort
SELECT ALL + tab2.col1 + - 8 FROM tab2
----
23
51
9

query I rowsort
SELECT 12 + col1 FROM tab2 cor0
----
29
43
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8175
SELECT - col2 * col1 * CAST( 44 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-25080
-54912
-61776

skipif mysql # not compatible
query I rowsort label-8175
SELECT - col2 * col1 * CAST ( 44 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-25080
-54912
-61776

query I rowsort
SELECT + col2 * - 57 * col2 + - tab1.col2 + - col0 FROM tab1
----
-166269
-185314
-525488

query I rowsort
SELECT DISTINCT col2 + - col2 + + col0 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8178
SELECT + col2 DIV 74 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8178
SELECT + col2 / 74 AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT 38 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab1 cor1
----
38

query I rowsort
SELECT ALL + 98 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT ALL 91 * col1 * col2 FROM tab2 AS cor0
----
139594
58786
76167

query I rowsort
SELECT ALL - col0 * col1 + 81 * - ( col1 ) FROM tab0 AS cor0
----
-11252
-15470
-9030

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 col2 FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT DISTINCT - col2 + col1 + ( + col0 ) * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2117
3491
8108

query I rowsort
SELECT col0 * + cor0.col2 + 20 * col0 AS col1 FROM tab1 AS cor0
----
222
4928
9280

query I rowsort
SELECT DISTINCT 45 + col1 FROM tab2 AS cor0
----
104
62
76

query I rowsort
SELECT ( col2 ) * col0 FROM tab0 cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8188
SELECT DISTINCT + col1 * col0 * CAST( + col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
36480
4212
99840

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT + col1 * col0 * CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - 7 * - 91 + + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61ff5db11ab2e523cfb1adf85761f1e4

query I rowsort
SELECT + + col1 * col2 - - 34 FROM tab0 AS cor0
----
131
2872
7496

onlyif mysql # use DIV operator for integer division
query I rowsort label-8191
SELECT - cor0.col2 DIV cor0.col1 + - ( - col2 + - cor0.col2 ) FROM tab2 AS cor0
----
52
54
74

skipif mysql # not compatible
query I rowsort label-8191
SELECT - cor0.col2 / cor0.col1 + - ( - col2 + - cor0.col2 ) FROM tab2 AS cor0
----
52
54
74

query I rowsort
SELECT col1 * ( + col0 ) + - cor0.col0 * + col2 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT 3 * tab2.col0 * col0 FROM tab2
----
147
18252
18723

query I rowsort
SELECT col0 * cor0.col1 + ( col0 ) AS col2 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8195
SELECT ALL CAST( - ( - col1 ) AS SIGNED ) * ( 34 ) * + col1 AS col0 FROM tab2
----
118354
32674
9826

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL CAST ( - ( - col1 ) AS INTEGER ) * ( 34 ) * + col1 AS col0 FROM tab2
----
118354
32674
9826

query I rowsort
SELECT col2 * 45 AS col0 FROM tab1
----
2430
2565
4320

query I rowsort
SELECT DISTINCT 74 AS col2 FROM tab1, tab2 AS cor0
----
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8198
SELECT ALL cor0.col2 * CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-8199
SELECT + ( cor0.col0 ) DIV + col1 col0 FROM tab2 cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8199
SELECT + ( cor0.col0 ) / + col1 col0 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT + + 54 * + col1 + - col2 AS col1 FROM tab0 cor0
----
4611
4832
5237

query I rowsort
SELECT - col2 * + col2 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT - 68 - + col0 AS col0 FROM tab1 AS cor0
----
-132
-148
-71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8203
SELECT + col2 + + col0 * CAST( NULL AS SIGNED ) * + col1 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8203
SELECT + col2 + + col0 * CAST ( NULL AS INTEGER ) * + col1 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8204
SELECT ( + col0 ) + col1 DIV - 80 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-8204
SELECT ( + col0 ) + col1 / - 80 FROM tab2
----
7
78
79

query I rowsort
SELECT - ( - col2 ) * - tab1.col2 AS col0 FROM tab1
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-8206
SELECT DISTINCT ( + ( + col1 ) ) DIV - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8206
SELECT DISTINCT ( + ( + col1 ) ) / - col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 40 * col2 + + col1 AS col1 FROM tab2
----
-1049
-1503
-981

query I rowsort
SELECT 78 + ( tab0.col0 + 39 ) FROM tab0
----
141
152
206

query I rowsort
SELECT - col2 * 80 * col0 AS col2 FROM tab0
----
-2800
-583840
-63360

onlyif mysql # use DIV operator for integer division
query I rowsort label-8210
SELECT 23 DIV ( col1 ) FROM tab1
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8210
SELECT 23 / ( col1 ) FROM tab1
----
0
1
2

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 * - ( - tab2.col2 ) + CAST ( col1 + - col2 AS REAL ) * - 42 * ( + tab2.col1 ) FROM tab2
----
-5019
-79746
17996

query I rowsort
SELECT - col2 + + cor0.col0 * col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT + col1 * 27 FROM tab2 AS cor0
----
1593
459
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-8214
SELECT ALL 52 DIV cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL 52 / cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL - + col0 + + ( 0 ) * cor0.col1 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8216
SELECT - - col0 + CAST( + 44 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
108
124
47

skipif mysql # not compatible
query I rowsort label-8216
SELECT - - col0 + CAST ( + 44 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
108
124
47

query I rowsort
SELECT + + col0 * col2 * - 12 FROM tab2 AS cor0
----
-2268
-24336
-36024

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col0 col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + ( 1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT + cor0.col2 + + 28 FROM tab1 cor0
----
124
82
85

query I rowsort
SELECT DISTINCT 17 + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1072
-6707
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-8222
SELECT ALL - col1 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL - col1 / - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8223
SELECT CAST( NULL AS SIGNED ) + - cor0.col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8223
SELECT CAST ( NULL AS INTEGER ) + - cor0.col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 7 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
182
70
91

query I rowsort
SELECT ALL + cor0.col2 * - 66 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to b3ecca0c4425585e5eb49455b8853661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8226
SELECT DISTINCT + col0 * CAST( col0 * tab1.col1 AS SIGNED ) AS col2 FROM tab1
----
234
40960
83200

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT + col0 * CAST ( col0 * tab1.col1 AS INTEGER ) AS col2 FROM tab1
----
234
40960
83200

query I rowsort
SELECT + - col1 * col0 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL + 37 AS col2 FROM tab1
----
37
37
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-8229
SELECT DISTINCT 48 DIV + col2 AS col0 FROM tab0
----
0
1
48

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT 48 / + col2 AS col0 FROM tab0
----
0
1
48

query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 + col1 * - col2 FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - 96 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b92a054ffc260f778beaf1c73159007c

query I rowsort
SELECT - + col0 * col2 * - col1 + - col2 FROM tab1 AS cor0
----
36423
4158
99744

query I rowsort
SELECT DISTINCT col2 + - 51 * col1 FROM tab1 AS cor0
----
-1272
-453
-567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 + ( + col1 ) + col2 col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - + col1 + ( col0 ) FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT DISTINCT + col0 * 5 + + 80 * col1 FROM tab2 AS cor0
----
1755
2515
5110

query I rowsort
SELECT DISTINCT - col0 + 57 FROM tab1 AS cor0
----
-23
-7
54

query I rowsort
SELECT col1 * - ( - col1 ) * col1 + - col0 AS col0 FROM tab0 AS cor0
----
636032
753482
912638

onlyif mysql # use DIV operator for integer division
query I rowsort label-8239
SELECT col1 - + col1 DIV tab1.col0 FROM tab1
----
10
13
18

skipif mysql # not compatible
query I rowsort label-8239
SELECT col1 - + col1 / tab1.col0 FROM tab1
----
10
13
18

query I rowsort
SELECT 90 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT + 26 * + col1 + + col2 - 43 FROM tab2
----
1517
437
790

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col0 FROM tab1, tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + 43 + col0 FROM tab0
----
132
67
78

query I rowsort
SELECT - col1 * + tab0.col1 * + col0 AS col2 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT ( col0 ) * col0 + + tab2.col1 AS col0 FROM tab2
----
6143
6258
80

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 6a08afba67ce3272fad6d766e76c67f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8247
SELECT ALL + 62 DIV - 13 FROM tab2 cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to df0306664dfa9962994889ea8d5edc5a

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL + 62 / - 13 FROM tab2 cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to df0306664dfa9962994889ea8d5edc5a

query I rowsort
SELECT + - col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8249
SELECT ALL - - col0 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL - - col0 + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8250
SELECT ALL + col2 DIV 39 + + 74 AS col0 FROM tab2 cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL + col2 / 39 + + 74 AS col0 FROM tab2 cor0
----
74
74
74

query I rowsort
SELECT - - cor0.col1 + + 31 AS col1 FROM tab1 AS cor0
----
41
44
57

query I rowsort
SELECT ALL + - col2 * - col0 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
15579
8188
9444

query I rowsort
SELECT ALL - col0 * + 56 AS col1 FROM tab1 AS cor0
----
-168
-3584
-4480

query I rowsort
SELECT col1 + col0 * - col1 AS col1 FROM tab0 cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT col1 + - 7 - col1 FROM tab1 cor0
----
-7

query I rowsort
SELECT DISTINCT 56 - 1 * + col1 FROM tab2
----
-3
25
39

query I rowsort
SELECT - col0 * cor0.col1 - - col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-26
-27
-38

query I rowsort
SELECT ALL col2 * col0 + tab1.col1 * col1 - col1 AS col0 FROM tab1
----
3738
7836
812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 9 - + col2 col2 FROM tab1 cor0
----
-105
-63
-66

query I rowsort
SELECT ALL tab1.col2 + - col1 * 85 FROM tab1
----
-1009
-2156
-793

query I rowsort
SELECT DISTINCT tab2.col2 + col1 * col0 AS col0 FROM tab2
----
1381
244
4628

query I rowsort
SELECT ( col0 + - col2 ) * - col1 FROM tab0
----
-3298
-637
774

query I rowsort
SELECT - 27 * col0 AS col0 FROM tab0 AS cor0
----
-2403
-648
-945

query I rowsort
SELECT + - col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col0 * col2 * + 37 AS col1 FROM tab2 cor0
----
-111074
-6993
-75036

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-8268
SELECT + - 72 * 92 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
-83
-84
-946

skipif mysql # not compatible
query I rowsort label-8268
SELECT + - 72 * 92 / cor0.col0 AS col1 FROM tab2 AS cor0
----
-83
-84
-946

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-8270
SELECT col1 * col0 DIV + cor0.col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-8270
SELECT col1 * col0 / + cor0.col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + - ( - col0 ) FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - cor0.col2 * col1 + + col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT col2 + - col2 FROM tab2 cor0
----
0

query I rowsort
SELECT + col2 + 50 + col2 FROM tab0 AS cor0
----
116
214
52

query I rowsort
SELECT DISTINCT - col0 * - col2 + + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8276
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + col0 * + cor0.col0 col2 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT - - CAST ( NULL AS REAL ) + col0 * + cor0.col0 col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + + cor0.col2 * - col0 + col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT 45 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT 26 * 58 + - col1 FROM tab0
----
1411
1417
1422

query I rowsort
SELECT ALL - - col1 + - ( - col1 ) FROM tab2 AS cor0
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8281
SELECT DISTINCT - + cor0.col0 * + CAST( NULL AS DECIMAL ) * col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT - + cor0.col0 * + CAST ( NULL AS REAL ) * col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8282
SELECT - col1 * CAST( NULL AS SIGNED ) - + 72 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8282
SELECT - col1 * CAST ( NULL AS INTEGER ) - + 72 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * + col0 - col0 * + col0 FROM tab1 AS cor0
----
-3456
-5360
69

query I rowsort
SELECT DISTINCT + col0 - + col1 * 32 AS col0 FROM tab0 AS cor0
----
-2728
-2823
-3069

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8285
SELECT DISTINCT + cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT + cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 - col0 * - 82 * 35 AS col2 FROM tab2
----
20121
223919
226747

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8287
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1 FROM tab0, tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1 FROM tab0, tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8288
SELECT + col0 + + CAST( NULL AS SIGNED ) / - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8288
SELECT + col0 + + CAST ( NULL AS INTEGER ) / - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - tab0.col1 - - 68 FROM tab0
----
-18
-23
-29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8290
SELECT - tab1.col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8290
SELECT - tab1.col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 * cor0.col1 + col1 col2 FROM tab1 cor0
----
-36470
-4186
-99827

query I rowsort
SELECT ALL + cor0.col2 * - 9 - + col1 * + col2 FROM tab1 AS cor0
----
-1083
-1890
-2112

query I rowsort
SELECT ALL col2 + 48 FROM tab1
----
102
105
144

query I rowsort
SELECT DISTINCT - 22 AS col0 FROM tab0, tab0 AS cor0
----
-22

query I rowsort
SELECT DISTINCT col1 + ( - col2 ) * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 25 * tab0.col0 ) col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 736f0bd0d851c53eb4226edbc0c0dd3e

query I rowsort
SELECT + + col0 * + 67 * + col2 FROM tab0 AS cor0
----
2345
488966
53064

query I rowsort
SELECT - - cor0.col0 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8299
SELECT + CAST( NULL AS DECIMAL ) / - 18 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT + CAST ( NULL AS REAL ) / - 18 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8300
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 82 * - col1 AS col2 FROM tab1
----
-1066
-2132
-820

query I rowsort
SELECT ALL + ( cor0.col2 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + col2 * + col2 - + col1 FROM tab0 AS cor0
----
-96
1003
6633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8304
SELECT - + CAST( 94 AS SIGNED ) FROM tab2 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-8304
SELECT - + CAST ( 94 AS INTEGER ) FROM tab2 AS cor0
----
-94
-94
-94

query I rowsort
SELECT DISTINCT - 58 FROM tab1, tab0, tab1 AS cor0
----
-58

query I rowsort
SELECT DISTINCT col1 * tab1.col2 * + ( - col2 ) AS col0 FROM tab1
----
-119808
-32490
-75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col1 FROM tab2
----
-76
-76
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-8308
SELECT + ( - col1 ) DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-8308
SELECT + ( - col1 ) / col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT - col1 * col0 * + 45 FROM tab1 AS cor0
----
-28800
-3510
-46800

query I rowsort
SELECT ALL + 48 * col0 AS col2 FROM tab0 AS cor0
----
1152
1680
4272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8311
SELECT col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8311
SELECT col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 27 col1 FROM tab2 AS cor0
----
-10
32
4

query I rowsort
SELECT ALL - col2 * col0 - + 87 AS col0 FROM tab1 AS cor0
----
-249
-3735
-7767

query I rowsort
SELECT + 58 + + col0 AS col0 FROM tab2
----
136
137
65

skipif mysql # not compatible
query I rowsort
SELECT + 48 + col1 * + CAST ( - col1 * col2 AS REAL ) AS col0 FROM tab2
----
-10934
-25899
-90458

query I rowsort
SELECT cor0.col1 AS col1 FROM tab1, tab0 cor0 CROSS JOIN tab0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT col2 + col2 - col1 FROM tab1 AS cor0
----
104
179
82

query I rowsort
SELECT DISTINCT col2 * + col2 * col0 AS col0 FROM tab1
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-8319
SELECT col0 * - col2 * + col2 + col2 + col2 DIV - col2 AS col2 FROM tab1 cor0
----
-207880
-737185
-8695

skipif mysql # not compatible
query I rowsort label-8319
SELECT col0 * - col2 * + col2 + col2 + col2 / - col2 AS col2 FROM tab1 cor0
----
-207880
-737185
-8695

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 NOT IN ( - tab2.col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 col1 FROM tab0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8322
SELECT ALL - col0 * col2 DIV col2 - col1 * - col2 FROM tab1
----
1168
1401
506

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL - col0 * col2 / col2 - col1 * - col2 FROM tab1
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-8323
SELECT DISTINCT tab1.col2 DIV tab1.col1 + + col0 * col2 FROM tab1
----
164
3653
7687

skipif mysql # not compatible
query I rowsort label-8323
SELECT DISTINCT tab1.col2 / tab1.col1 + + col0 * col2 FROM tab1
----
164
3653
7687

query I rowsort
SELECT ALL + col1 + col2 * + col2 * col0 AS col1 FROM tab0 AS cor0
----
132
26222
598527

query I rowsort
SELECT ALL cor0.col0 * - col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT cor0.col0 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - col1 col0 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL - tab2.col0 * tab2.col2 - - col1 FROM tab2
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-8329
SELECT col2 - + col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-8329
SELECT col2 - + col1 / + col0 AS col2 FROM tab2 AS cor0
----
23
26
38

query I rowsort
SELECT - col0 * - col2 + col0 AS col2 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT + cor0.col0 + + col1 * + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - cor0.col0 * - col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL + col2 * + col0 + - col2 FROM tab1 AS cor0
----
108
3591
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * col0 + col0 col2 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT col1 * col1 * col0 - col2 FROM tab2 AS cor0
----
22793
271492
6700

onlyif mysql # use DIV operator for integer division
query I rowsort label-8336
SELECT + + cor0.col1 * col2 DIV cor0.col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
108
114
192

skipif mysql # not compatible
query I rowsort label-8336
SELECT + + cor0.col1 * col2 / cor0.col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + - col1 + - cor0.col2 * - col0 AS col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT - col0 * col0 + + cor0.col1 + cor0.col1 FROM tab1 cor0
----
-4076
-6374
43

query I rowsort
SELECT DISTINCT + + cor0.col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL col0 - - col1 * + col2 AS col0 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT - + col0 + + col1 * col2 AS col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL + - col2 * + col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
57

query I rowsort
SELECT + 69 * 88 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 23f2633b376f1ccaf1f4f80c4f12e911

query I rowsort
SELECT + cor0.col0 + col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT DISTINCT cor1.col0 AS col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 + - col2 * cor0.col2 col1 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - cor0.col2 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL 36 AS col1 FROM tab0 cor0
----
36
36
36

query I rowsort
SELECT DISTINCT 49 * col2 AS col1 FROM tab1 AS cor0
----
2646
2793
4704

query I rowsort
SELECT ALL + - col2 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL col0 - ( 95 ) AS col2 FROM tab0 AS cor0
----
-6
-60
-71

query I rowsort
SELECT - col2 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT ALL 4 + col1 AS col1 FROM tab1
----
14
17
30

query I rowsort
SELECT ALL col2 + - cor0.col2 * col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT + - col2 + col0 + - ( col1 ) AS col2 FROM tab0 AS cor0
----
-63
-84
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-8357
SELECT DISTINCT - col1 + 96 DIV + cor0.col1 col2 FROM tab0 cor0
----
-85
-90
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT - col1 + 96 / + cor0.col1 col2 FROM tab0 cor0
----
-85
-90
-97

query I rowsort
SELECT + col1 * + 21 + cor0.col2 + col0 * - col1 FROM tab2 AS cor0
----
-3337
-948
461

query I rowsort
SELECT DISTINCT + tab0.col2 * + col2 + - col2 AS col1 FROM tab0
----
0
1056
6642

query I rowsort
SELECT DISTINCT + col1 * - tab1.col0 + + 17 * col2 + col2 * 74 AS col1 FROM tab1
----
4547
4836
7696

query I rowsort
SELECT + ( col1 * col2 ) - - tab0.col0 AS col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT col1 + col2 / + col0 AS col2 FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL + col0 + col2 * col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL col2 + tab2.col2 * col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT + tab0.col1 + tab0.col0 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL - col0 + - col1 * col1 AS col2 FROM tab2
----
-3559
-368
-968

query I rowsort
SELECT - col2 + tab0.col1 FROM tab0 WHERE ( col2 ) NOT IN ( + col0 * + col2 )
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8368
SELECT DISTINCT - col1 + col2 DIV col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT - col1 + col2 / col1 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8369
SELECT DISTINCT - tab0.col2 DIV col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT - tab0.col2 / col0 FROM tab0
----
-1
0

query I rowsort
SELECT col2 * - col0 * col0 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT col2 * - col1 + tab0.col2 * + col0 + - col2 * tab0.col2 FROM tab0
----
-3135
-63
-6888

query I rowsort
SELECT - col0 * - col1 + + col0 FROM tab2 WHERE col1 - col1 * col2 = NULL
----

query I rowsort
SELECT col2 + - col2 - col1 * col2 FROM tab2
----
-1534
-646
-837

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + tab2.col2 )
----

query I rowsort
SELECT - tab1.col0 * - col0 + + col1 FROM tab1
----
35
4106
6413

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT - col2 IN ( col0 * col0 )
----
86
91
97

query I rowsort
SELECT ALL + tab2.col0 + + col0 * col1 FROM tab2
----
1422
224
4680

query I rowsort
SELECT - col1 + + col0 + - col1 AS col1 FROM tab2
----
-40
-55
45

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 NOT BETWEEN - col1 / + col1 AND NULL
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL IN ( col1 / col1 + tab0.col2 )
----

query I rowsort
SELECT col0 * tab1.col1 + - col2 + col0 AS col1 FROM tab1
----
1024
27
647

onlyif mysql # use DIV operator for integer division
query I rowsort label-8382
SELECT DISTINCT - col0 + col0 DIV + col0 FROM tab2
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT - col0 + col0 / + col0 FROM tab2
----
-6
-77
-78

query I rowsort
SELECT col1 * - tab0.col1 + - col1 + col0 FROM tab0
----
-7458
-8283
-9471

onlyif mysql # use DIV operator for integer division
query I rowsort label-8384
SELECT - col1 DIV - col1 col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8384
SELECT - col1 / - col1 col1 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8385
SELECT DISTINCT - 12 + + col2 DIV col1 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT - 12 + + col2 / col1 FROM tab0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col1 FROM tab0
----
72
72
72

query I rowsort
SELECT DISTINCT + 91 + col0 * 8 AS col1 FROM tab1
----
115
603
731

query I rowsort
SELECT DISTINCT - - cor0.col2 * - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT - - 47 * col2 + 55 FROM tab1 AS cor0
----
2593
2734
4567

query I rowsort
SELECT - 69 - + col0 FROM tab1 AS cor0
----
-133
-149
-72

query I rowsort
SELECT DISTINCT - 87 FROM tab1 cor0
----
-87

query I rowsort
SELECT + ( col2 ) * ( 70 ) - col2 FROM tab1 AS cor0
----
3726
3933
6624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - + col2 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col1 + 1 AS col2 FROM tab2 cor0
----
18
32
60

query I rowsort
SELECT + col0 + col1 * + col1 AS col2 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT col2 * - ( col0 ) FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - 66 col1 FROM tab0 cor0
----
1584
2310
5874

query I rowsort
SELECT + col0 * col1 * col2 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - col0 - cor0.col0 * + col2 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL - + ( col0 ) * col2 + col2 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL + col1 * 24 AS col1 FROM tab1 cor0
----
240
312
624

query I rowsort
SELECT 70 * + col2 FROM tab0 AS cor0
----
2310
5740
70

query I rowsort
SELECT ( 65 ) FROM tab1 cor0
----
65
65
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-8404
SELECT ( - col1 ) DIV col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8404
SELECT ( - col1 ) / col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8405
SELECT ALL + - ( - col2 ) + - col0 * - CAST( + col1 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
13616
2082
6457

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL + - ( - col2 ) + - col0 * - CAST ( + col1 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
13616
2082
6457

query I rowsort
SELECT col1 * ( + col1 ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - - ( col1 ) * - col2 * col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT - col1 + - 99 FROM tab1 AS cor0
----
-109
-112
-125

query I rowsort
SELECT DISTINCT + 8 * - col2 FROM tab1 AS cor0
----
-432
-456
-768

query I rowsort
SELECT + tab2.col0 + 15 * - col1 FROM tab2
----
-176
-458
-807

query I rowsort
SELECT - cor0.col2 * - col1 * + col1 AS col2 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT col1 + + cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL + ( col2 + - tab0.col0 ) AS col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - ( - col1 ) * + col1 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL cor1.col2 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT 2 + + 1 * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-18
43
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT + 41 * cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c0980200055bc06c543229c9c60c006a

query I rowsort
SELECT cor0.col2 * 11 FROM tab0 AS cor0
----
11
363
902

query I rowsort
SELECT ALL + 25 * - 24 * - col2 FROM tab2
----
15600
16200
22800

query I rowsort
SELECT ( + col1 * col0 ) AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL - 76 * + cor0.col2 FROM tab2 AS cor0
----
-1976
-2052
-2888

query I rowsort
SELECT DISTINCT - ( - 58 ) * - col2 + - col1 * + cor0.col2 FROM tab0 AS cor0
----
-12218
-155
-4752

query I rowsort
SELECT cor0.col0 AS col0 FROM tab2, tab0 cor0, tab1 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT - ( 58 ) FROM tab1 AS cor0
----
-58

query I rowsort
SELECT - 69 + 59 FROM tab2 AS cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT + col1 * + 58 * + col2 FROM tab1 cor0
----
33060
72384
81432

query I rowsort
SELECT 66 FROM tab1, tab1 cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8429
SELECT + CAST( col0 AS SIGNED ) + 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-8429
SELECT + CAST ( col0 AS INTEGER ) + col2 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 13 * - 8 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to a22e45d66cb0cfe3c7a92f8f8aee9baf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

query I rowsort
SELECT - col2 * 91 FROM tab1
----
-4914
-5187
-8736

query I rowsort
SELECT ( + col1 ) * - col0 AS col2 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8434
SELECT CAST( + col2 * col2 AS SIGNED ) + - col2 * + col1 * col0 - + 78 AS col2 FROM tab1
----
-1374
-33309
-90702

skipif mysql # not compatible
query I rowsort label-8434
SELECT CAST ( + col2 * col2 AS INTEGER ) + - col2 * + col1 * col0 - + 78 AS col2 FROM tab1
----
-1374
-33309
-90702

query I rowsort
SELECT ALL col2 + - col0 + + col2 * - ( 21 ) FROM tab1
----
-1083
-1204
-2000

query I rowsort
SELECT DISTINCT - ( 30 ) * col0 + col2 AS col1 FROM tab1
----
-1863
-2304
-36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8437
SELECT col0 + - col2 * + col2 - CAST( - 22 AS SIGNED ) FROM tab0
----
-1043
-6613
56

skipif mysql # not compatible
query I rowsort label-8437
SELECT col0 + - col2 * + col2 - CAST ( - 22 AS INTEGER ) FROM tab0
----
-1043
-6613
56

query I rowsort
SELECT DISTINCT col0 * + tab1.col2 + - col0 AS col2 FROM tab1
----
159
3584
7600

query I rowsort
SELECT 25 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT + - col2 + + 18 FROM tab2 AS cor0
----
-20
-8
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8441
SELECT - col0 * CAST( + col2 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693

skipif mysql # not compatible
query I rowsort label-8441
SELECT - col0 * CAST ( + col2 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col0 + - cor0.col2 col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL - col0 - + 54 FROM tab2
----
-132
-133
-61

query I rowsort
SELECT col0 - - 82 * - 53 FROM tab1 AS cor0
----
-4266
-4282
-4343

query I rowsort
SELECT DISTINCT - - cor0.col2 + + col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + + col1 + + ( cor0.col1 ) FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT - col1 + + col2 * 21 FROM tab1 AS cor0
----
1108
1187
2003

query I rowsort
SELECT DISTINCT - + col0 * - col1 * 35 AS col2 FROM tab0 AS cor0
----
118825
283465
72240

query I rowsort
SELECT + col0 * - col1 - col0 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - 57 AS col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8451
SELECT tab0.col1 + + CAST( - col2 + + col1 AS SIGNED ) AS col2 FROM tab0
----
100
139
193

skipif mysql # not compatible
query I rowsort label-8451
SELECT tab0.col1 + + CAST ( - col2 + + col1 AS INTEGER ) AS col2 FROM tab0
----
100
139
193

query I rowsort
SELECT + col0 * col1 * - col0 AS col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL - ( - col1 ) * + cor0.col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col2 + - ( + col2 ) FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT + col0 + ( col1 ) * ( - col1 ) AS col2 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT + 36 + col1 * - cor0.col0 FROM tab2 AS cor0
----
-1307
-181
-4566

query I rowsort
SELECT DISTINCT - - col1 - col2 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL 71 AS col0 FROM tab0 AS cor0
----
71
71
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-8459
SELECT - + ( + 75 ) * col0 + - ( - col0 ) DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-1800
-2590
-6674

skipif mysql # not compatible
query I rowsort label-8459
SELECT - + ( + 75 ) * col0 + - ( - col0 ) / cor0.col2 AS col2 FROM tab0 AS cor0
----
-1800
-2590
-6674

query I rowsort
SELECT + 90 * 88 * + col2 FROM tab0 cor0
----
261360
649440
7920

query I rowsort
SELECT ALL - - col0 * col1 - - col1 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + + ( + col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - 20 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-13
58
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8464
SELECT DISTINCT CAST( col2 AS SIGNED ) * - col1 FROM tab1 cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-8464
SELECT DISTINCT CAST ( col2 AS INTEGER ) * - col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col0 * ( - cor0.col1 ) + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8466
SELECT + CAST( col2 AS SIGNED ) * - col0 - col0 * col0 * col1 FROM tab1 AS cor0
----
-396
-44608
-90880

skipif mysql # not compatible
query I rowsort label-8466
SELECT + CAST ( col2 AS INTEGER ) * - col0 - col0 * col0 * col1 FROM tab1 AS cor0
----
-396
-44608
-90880

query I rowsort
SELECT ALL cor0.col1 + 68 AS col0 FROM tab0 AS cor0
----
154
159
165

query I rowsort
SELECT col1 * - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL col2 + col0 * col0 AS col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL + tab0.col2 + ( col2 ) - col2 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL + col0 * + 48 * col2 + col0 - 91 * - col1 AS col1 FROM tab0
----
10542
358674
45866

onlyif mysql # use DIV operator for integer division
query I rowsort label-8472
SELECT ALL - col2 * - cor0.col2 + col0 DIV col2 col2 FROM tab0 AS cor0
----
1089
36
6725

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL - col2 * - cor0.col2 + col0 / col2 col2 FROM tab0 AS cor0
----
1089
36
6725

query I rowsort
SELECT 66 - - col2 AS col2 FROM tab1 AS cor0
----
120
123
162

query I rowsort
SELECT ALL - + ( col0 ) + cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-8475
SELECT DISTINCT col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT col0 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT ( cor0.col1 ) * col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT col0 * col2 * - cor0.col1 + - cor0.col1 FROM tab0 AS cor0
----
-3492
-664209
-68198

query I rowsort
SELECT ALL col0 + col0 * col1 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col0 * col0 col2 FROM tab0 AS cor0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-8480
SELECT ALL + + col1 + - col2 DIV col0 FROM tab0 AS cor0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL + + col1 + - col2 / col0 FROM tab0 AS cor0
----
85
91
97

query I rowsort
SELECT DISTINCT - 69 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8482
SELECT DISTINCT + col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT DISTINCT + col0 * CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - cor0.col0 * - ( - col0 + - cor0.col1 ) FROM tab1 AS cor0
----
-4736
-7440
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-8484
SELECT 9 DIV + col2 + + col0 AS col0 FROM tab0
----
24
44
89

skipif mysql # not compatible
query I rowsort label-8484
SELECT 9 / + col2 + + col0 AS col0 FROM tab0
----
24
44
89

query I rowsort
SELECT DISTINCT 72 * tab0.col1 FROM tab0
----
6192
6552
6984

query I rowsort
SELECT DISTINCT + ( col2 * + col2 ) FROM tab2
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8487
SELECT CAST( 93 AS SIGNED ) AS col2 FROM tab1
----
93
93
93

skipif mysql # not compatible
query I rowsort label-8487
SELECT CAST ( 93 AS INTEGER ) AS col2 FROM tab1
----
93
93
93

query I rowsort
SELECT ALL ( - tab1.col2 ) + col0 * col2 FROM tab1
----
108
3591
7584

query I rowsort
SELECT + 72 * col0 FROM tab1 AS cor0
----
216
4608
5760

query I rowsort
SELECT + 61 - col0 FROM tab2 AS cor0
----
-17
-18
54

query I rowsort
SELECT DISTINCT 46 + + col0 AS col0 FROM tab2 AS cor0
----
124
125
53

query I rowsort
SELECT DISTINCT - col0 * col2 + + 27 * ( + cor0.col0 ) + ( col2 ) FROM tab0 AS cor0
----
-111
-4813
911

query I rowsort
SELECT ALL - 33 * col1 + 78 FROM tab1 cor0
----
-252
-351
-780

query I rowsort
SELECT ALL + - 38 * - col1 AS col2 FROM tab1 AS cor0
----
380
494
988

query I rowsort
SELECT ALL 24 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2
----
81 values hashing to dfdfceb3acab6f866df9d676c07043ad

query I rowsort
SELECT - tab2.col0 + + ( - col2 ) AS col2 FROM tab2
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8497
SELECT ALL + col1 DIV + col0 AS col1 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL + col1 / + col0 AS col1 FROM tab1 cor0
----
0
0
8

query I rowsort
SELECT DISTINCT + col0 * + ( col1 ) AS col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - col1 + - cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT + - ( + 68 ) FROM tab1 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ALL + col1 * cor0.col1 + col2 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8502
SELECT ALL CAST( NULL AS SIGNED ) + + 69 / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL CAST ( NULL AS INTEGER ) + + 69 / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 * col2 + - ( + col0 ) AS REAL ) FROM tab2
----
1456
567
830

query I rowsort
SELECT ALL 75 * col0 + col0 FROM tab2 AS cor0
----
532
5928
6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-8505
SELECT DISTINCT - col1 + col2 DIV + cor0.col0 AS col2 FROM tab0 AS cor0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT - col1 + col2 / + cor0.col0 AS col2 FROM tab0 AS cor0
----
-85
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8506
SELECT - ( col0 ) DIV - cor0.col1 + ( 10 ) FROM tab1 AS cor0
----
10
16
16

skipif mysql # not compatible
query I rowsort label-8506
SELECT - ( col0 ) / - cor0.col1 + ( 10 ) FROM tab1 AS cor0
----
10
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * col0 col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8508
SELECT col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-8508
SELECT col2 / - col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT + + col0 + ( col0 ) AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - + 68 * cor0.col1 + col1 FROM tab0 AS cor0
----
-5762
-6097
-6499

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8511
SELECT ALL - - CAST( NULL AS DECIMAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL - - CAST ( NULL AS REAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 * - 90 AS col1 FROM tab0 AS cor0
----
-7740
-8190
-8730

query I rowsort
SELECT cor0.col2 + 18 FROM tab0 AS cor0
----
100
19
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-8514
SELECT - col1 DIV ( - col1 ) - col0 AS col2 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-8514
SELECT - col1 / ( - col1 ) - col0 AS col2 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT ALL ( - tab2.col2 * ( + ( col2 ) ) ) + - col2 AS col1 FROM tab2
----
-1482
-702
-756

query I rowsort
SELECT ALL + col0 * - col1 + col2 AS col1 FROM tab0 cor0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 * - col1 col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + + col0 + col0 * + col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL col2 + col1 - - col2 AS col0 FROM tab2
----
111
85
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-8520
SELECT ALL col1 + + col2 * col2 DIV + tab2.col0 - - col0 AS col1 FROM tab2
----
114
142
145

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL col1 + + col2 * col2 / + tab2.col0 - - col0 AS col1 FROM tab2
----
114
142
145

onlyif mysql # use DIV operator for integer division
query I rowsort label-8521
SELECT col2 + cor0.col2 DIV - col0 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-8521
SELECT col2 + cor0.col2 / - col0 FROM tab0 AS cor0
----
1
32
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 * - col0 col2 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8523
SELECT DISTINCT ( col1 ) DIV + col1 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8523
SELECT DISTINCT ( col1 ) / + col1 AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8524
SELECT ALL - 6 + col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL - 6 + col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8525
SELECT - - cor0.col1 * + col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-8525
SELECT - - cor0.col1 * + col0 / - col0 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL 41 * col2 * 15 AS col0 FROM tab0 cor0
----
20295
50430
615

query I rowsort
SELECT 77 * col0 AS col0 FROM tab1 AS cor0
----
231
4928
6160

onlyif mysql # use DIV operator for integer division
query I rowsort label-8528
SELECT DISTINCT ( col0 ) + + col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8528
SELECT DISTINCT ( col0 ) + + col1 / - col2 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - cor0.col0 col1 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8530
SELECT ALL + ( col2 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL + ( col2 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 97 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

onlyif mysql # use DIV operator for integer division
query I rowsort label-8532
SELECT + col2 * + col0 * - col0 + - col2 DIV - col1 col1 FROM tab1 AS cor0
----
-233467
-484
-614393

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8532
SELECT + col2 * + col0 * - col0 + - col2 / - col1 col1 FROM tab1 AS cor0
----
-233467
-484
-614393

query I rowsort
SELECT DISTINCT + col0 * col2 * col0 + + col1 + ( - col0 ) AS col0 FROM tab2 AS cor0
----
1347
158165
237096

query I rowsort
SELECT ALL - col0 + - 32 FROM tab2 AS cor0
----
-110
-111
-39

query I rowsort
SELECT DISTINCT + ( + col0 ) * col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col1 + 59 * + col2 + - 78 AS col1 FROM tab2 cor0
----
1515
1546
2181

query I rowsort
SELECT DISTINCT - + 16 + 27 AS col1 FROM tab1 cor0
----
11

query I rowsort
SELECT - - col2 + + cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL + 60 + cor0.col0 FROM tab0 AS cor0
----
149
84
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-8540
SELECT + 22 DIV ( cor0.col1 ) FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8540
SELECT + 22 / ( cor0.col1 ) FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - 60 * - col2 FROM tab0 cor0
----
1980
4920
60

query I rowsort
SELECT + - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8543
SELECT DISTINCT + tab2.col1 DIV - 7 FROM tab2
----
-2
-4
-8

skipif mysql # not compatible
query I rowsort label-8543
SELECT DISTINCT + tab2.col1 / - 7 FROM tab2
----
-2
-4
-8

query I rowsort
SELECT DISTINCT 65 FROM tab0, tab2, tab2 cor0
----
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-8545
SELECT ALL - 66 DIV col2 FROM tab0
----
-2
-66
0

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL - 66 / col2 FROM tab0
----
-2
-66
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8546
SELECT ALL + 0 DIV - col0 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL + 0 / - col0 AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 + col0 col2 FROM tab0 AS cor0
----
-10
1
55

query I rowsort
SELECT - col0 - - 71 AS col2 FROM tab0
----
-18
36
47

query I rowsort
SELECT - ( + col0 ) + col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT col1 + col0 * col1 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + 36 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
36

query I rowsort
SELECT ALL - + 30 + - col0 FROM tab0 cor0
----
-119
-54
-65

query I rowsort
SELECT DISTINCT + 75 + cor0.col0 FROM tab2 AS cor0
----
153
154
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 * - col0 + ( + col2 + col1 ) col0 FROM tab0 AS cor0
----
-1369
-2072
-5345

query I rowsort
SELECT DISTINCT col2 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + ( col2 ) * - col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL + col0 + - col0 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + col1 * + ( col1 ) AS col2 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT col1 * ( - col1 ) + col0 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT col0 + - ( + col1 ) AS col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT col2 + col1 - + col2 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL 49 FROM tab2, tab0 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT DISTINCT + tab0.col2 * col1 + col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT DISTINCT col2 + col1 + - col2 AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT - - cor0.col1 * - 23 * + col0 + + col1 AS col0 FROM tab2 AS cor0
----
-105787
-30872
-4960

query I rowsort
SELECT ALL - col0 + ( - col0 ) * col2 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT + cor0.col0 - col2 * 78 * col1 AS col0 FROM tab1 AS cor0
----
-109509
-44396
-97264

query I rowsort
SELECT ALL + tab1.col1 + + col0 AS col0 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-8569
SELECT + cor0.col2 + cor0.col1 DIV col0 AS col1 FROM tab2 cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-8569
SELECT + cor0.col2 + cor0.col1 / col0 AS col1 FROM tab2 cor0
----
26
31
38

query I rowsort
SELECT DISTINCT + 29 * + col2 AS col2 FROM tab1 cor0
----
1566
1653
2784

query I rowsort
SELECT ALL - cor0.col0 * col0 + + col2 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL + - ( 95 ) * col0 + 38 AS col1 FROM tab2 AS cor0
----
-627
-7372
-7467

query I rowsort
SELECT DISTINCT 48 + + col0 FROM tab0 AS cor0
----
137
72
83

query I rowsort
SELECT DISTINCT + ( - col0 ) + + cor0.col1 * col1 - 21 AS col2 FROM tab0 cor0
----
7351
8171
9353

query I rowsort
SELECT ALL 58 - - col2 * + col0 FROM tab2 cor0
----
2086
247
3060

query I rowsort
SELECT DISTINCT + - 18 * - 83 * col1 + + ( - col2 ) FROM tab2 AS cor0
----
25360
46287
88120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8577
SELECT ALL + CAST( - col2 AS SIGNED ) * + col1 + ( - col0 ) + col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL + CAST ( - col2 AS INTEGER ) * + col1 + ( - col0 ) + col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-8578
SELECT ALL col1 DIV + col1 + col2 + CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
110
68
81

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL col1 / + col1 + col2 + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
110
68
81

query I rowsort
SELECT ALL + + 95 FROM tab2 AS cor0
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 88 col2 FROM tab0 AS cor0
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - - col1 * 78 * - col1 AS col2 FROM tab1 AS cor0
----
-13182
-52728
-7800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8583
SELECT + col2 * CAST( col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-8583
SELECT + col2 * CAST ( col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8584
SELECT DISTINCT - col0 * CAST( - col1 * col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
118825
49536
720811

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT - col0 * CAST ( - col1 * col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
118825
49536
720811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8585
SELECT - col0 / CAST( NULL AS SIGNED ) + 52 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT - col0 / CAST ( NULL AS INTEGER ) + 52 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8586
SELECT ALL + 82 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL + 82 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + - col2 + - 80 FROM tab1 cor0
----
-134
-137
-176

onlyif mysql # use DIV operator for integer division
query I rowsort label-8588
SELECT - + ( col2 ) DIV + cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8588
SELECT - + ( col2 ) / + cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL tab2.col1 * 6 + 44 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to ad0e2c09a8aef6bcc0f2fdc92f373191

query I rowsort
SELECT + + 47 * - col2 * col1 AS col0 FROM tab2 AS cor0
----
-30362
-39339
-72098

query I rowsort
SELECT DISTINCT - tab0.col2 * + col1 * col1 AS col0 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT col1 * 17 AS col0 FROM tab2
----
1003
289
527

query I rowsort
SELECT - 26 + + col0 AS col0 FROM tab0 cor0
----
-2
63
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8594
SELECT DISTINCT - ( col1 ) + tab1.col1 / + CAST( NULL AS SIGNED ) + - col0 / - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8594
SELECT DISTINCT - ( col1 ) + tab1.col1 / + CAST ( NULL AS INTEGER ) + - col0 / - col1 FROM tab1
----
NULL

query I rowsort
SELECT col1 + 25 + - col1 * - 19 * 15 FROM tab2
----
16899
4887
8891

onlyif mysql # use DIV operator for integer division
query I rowsort label-8596
SELECT DISTINCT - col1 DIV + col2 AS col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT - col1 / + col2 AS col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT - 16 + + col2 FROM tab0
----
-15
17
66

query I rowsort
SELECT ALL - + 18 * col2 FROM tab2 AS cor0
----
-468
-486
-684

onlyif mysql # use DIV operator for integer division
query I rowsort label-8599
SELECT ( col1 ) + col2 DIV 2 AS col0 FROM tab1 AS cor0
----
38
53
61

skipif mysql # not compatible
query I rowsort label-8599
SELECT ( col1 ) + col2 / 2 AS col0 FROM tab1 AS cor0
----
38
53
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-8600
SELECT ALL + - col2 + + col1 DIV + ( col0 ) AS col1 FROM tab2 AS cor0
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL + - col2 + + col1 / + ( col0 ) AS col1 FROM tab2 AS cor0
----
-23
-26
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-8601
SELECT ALL - + 84 DIV - col0 AS col0 FROM tab1 AS cor0
----
1
1
28

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL - + 84 / - col0 AS col0 FROM tab1 AS cor0
----
1
1
28

query I rowsort
SELECT ALL cor0.col1 * col1 + cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
1690
1733
4157

query I rowsort
SELECT DISTINCT + col0 + cor0.col2 * - col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT col1 * col2 + col2 + col1 FROM tab0 AS cor0
----
195
2957
7635

query I rowsort
SELECT - 74 + col2 AS col2 FROM tab2 AS cor0
----
-36
-47
-48

query I rowsort
SELECT ALL + col2 * 23 + - ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
539
590
857

query I rowsort
SELECT col0 + - 47 * - col2 AS col2 FROM tab0 AS cor0
----
1575
3943
82

query I rowsort
SELECT ALL - cor0.col0 * col0 - col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL - 9 AS col1 FROM tab0
----
-9
-9
-9

query I rowsort
SELECT - - col2 + col2 * 10 * + col0 AS col2 FROM tab0 AS cor0
----
351
73062
7953

query I rowsort
SELECT - + col2 + 60 FROM tab2 AS cor0
----
22
33
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8612
SELECT - - col0 + col0 * 50 DIV col1 FROM tab0 AS cor0
----
137
37
53

skipif mysql # not compatible
query I rowsort label-8612
SELECT - - col0 + col0 * 50 / col1 FROM tab0 AS cor0
----
137
37
53

query I rowsort
SELECT - + ( - col0 ) + col0 * col1 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + col2 * 38 AS col0 FROM tab2 AS cor0
----
1026
1444
988

query I rowsort
SELECT - + ( - 99 ) FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT col1 * + 88 AS col2 FROM tab0 AS cor0
----
7568
8008
8536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col1 col1 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT + + ( col0 ) * + col0 AS col1 FROM tab0 cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8619
SELECT + col2 - + CAST( NULL AS SIGNED ) / tab0.col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8619
SELECT + col2 - + CAST ( NULL AS INTEGER ) / tab0.col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 26 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT - - cor0.col1 * - col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + col1 * ( - col2 + + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 + - 79 AS col1 FROM tab1 AS cor0
----
-133
-136
-175

query I rowsort
SELECT ALL cor0.col1 * + cor0.col1 + - col1 + + col0 FROM tab2 AS cor0
----
3500
351
937

query I rowsort
SELECT + 58 * + col0 AS col1 FROM tab2 cor0
----
406
4524
4582

onlyif mysql # use DIV operator for integer division
query I rowsort label-8626
SELECT ALL col0 + - col0 DIV + col2 AS col0 FROM tab1 cor0
----
3
63
80

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL col0 + - col0 / + col2 AS col0 FROM tab1 cor0
----
3
63
80

query I rowsort
SELECT - + 22 AS col0 FROM tab1 cor0
----
-22
-22
-22

query I rowsort
SELECT DISTINCT - - col0 - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT + col2 * col0 + - col2 * col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ( 25 ) FROM tab2 AS cor0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col1 ) col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col2 + + col0 + col0 AS col2 FROM tab0
----
260
71
81

query I rowsort
SELECT DISTINCT col1 * col2 + + col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT + cor0.col2 + col1 + col1 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT - col0 * cor0.col2 * + ( col1 ) + col0 + + col1 FROM tab0 AS cor0
----
-3263
-663938
-68002

query I rowsort
SELECT + + 32 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 6bef041528d0147be26f7de162c66a5f

query I rowsort
SELECT ALL - col0 * cor0.col1 * + col2 - - col2 FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT DISTINCT col1 * 39 AS col1 FROM tab1 cor0
----
1014
390
507

onlyif mysql # use DIV operator for integer division
query I rowsort label-8639
SELECT DISTINCT - col1 + col1 DIV col0 col2 FROM tab1 AS cor0
----
-10
-13
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT - col1 + col1 / col0 col2 FROM tab1 AS cor0
----
-10
-13
-18

onlyif mysql # use DIV operator for integer division
query I rowsort label-8640
SELECT - - col1 + - col1 DIV 92 AS col2 FROM tab0 AS cor0
----
86
91
96

skipif mysql # not compatible
query I rowsort label-8640
SELECT - - col1 + - col1 / 92 AS col2 FROM tab0 AS cor0
----
86
91
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8641
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 * + col1 col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT - col1 + 68 AS col0 FROM tab2 AS cor0
----
37
51
9

query I rowsort
SELECT tab1.col1 * col2 + + col1 * col2 AS col2 FROM tab1
----
1140
2496
2808

query I rowsort
SELECT DISTINCT 97 * + col2 AS col0 FROM tab1
----
5238
5529
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-8646
SELECT + cor0.col1 DIV CAST( - ( col1 ) * + col1 AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8646
SELECT + cor0.col1 / CAST ( - ( col1 ) * + col1 AS INTEGER ) + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col1 + + tab0.col0 + ( - col0 ) FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - tab2.col0 * - col2 * + 72 FROM tab2
----
13608
146016
216144

onlyif mysql # use DIV operator for integer division
query I rowsort label-8649
SELECT + 7 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8649
SELECT + 7 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col2 * ( col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL 86 * 12 - - col2 FROM tab2
----
1058
1059
1070

query I rowsort
SELECT DISTINCT 48 + - col2 * - col1 FROM tab1 cor0
----
1296
1452
618

query I rowsort
SELECT ALL - col0 - + col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + ( - col2 ) + + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8655
SELECT CAST( + 93 AS SIGNED ) * - col0 FROM tab1
----
-279
-5952
-7440

skipif mysql # not compatible
query I rowsort label-8655
SELECT CAST ( + 93 AS INTEGER ) * - col0 FROM tab1
----
-279
-5952
-7440

query I rowsort
SELECT ALL - 31 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + col2 * - col1 col0 FROM tab2
----
1456
567
830

query I rowsort
SELECT - 14 + + col2 * + col1 FROM tab1
----
1234
1390
556

onlyif mysql # use DIV operator for integer division
query I rowsort label-8659
SELECT ALL col2 DIV col1 + + ( tab2.col1 + col0 ) AS col1 FROM tab2
----
137
38
98

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL col2 / col1 + + ( tab2.col1 + col0 ) AS col1 FROM tab2
----
137
38
98

query I rowsort
SELECT + + ( col2 ) AS col2 FROM tab2 cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-8661
SELECT ALL + 70 - col2 DIV - col1 AS col0 FROM tab0 cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL + 70 - col2 / - col1 AS col0 FROM tab0 cor0
----
70
70
70

query I rowsort
SELECT DISTINCT + col1 * + col1 + 83 AS col1 FROM tab1 cor0
----
183
252
759

query I rowsort
SELECT + col2 + col2 * + 83 FROM tab0 AS cor0
----
2772
6888
84

query I rowsort
SELECT DISTINCT + + col0 * - cor0.col1 + ( - col1 ) FROM tab2 AS cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 68 * col0 + 66 col0 FROM tab2 AS cor0
----
5370
542
5438

query I rowsort
SELECT ALL - + col0 * - cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - + col1 + col1 - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 + 62 * + col1 * + cor0.col1 AS col0 FROM tab1 cor0
----
10296
16878
41921

onlyif mysql # use DIV operator for integer division
query I rowsort label-8669
SELECT ALL + 22 DIV col1 + + ( - col1 ) FROM tab2 AS cor0
----
-16
-31
-59

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL + 22 / col1 + + ( - col1 ) FROM tab2 AS cor0
----
-16
-31
-59

query I rowsort
SELECT + col0 + - col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - 31 * + col1 * 45 + cor0.col1 FROM tab1 AS cor0
----
-13940
-18122
-36244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 col2 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT + 91 + - col0 AS col0 FROM tab2 AS cor0
----
12
13
84

query I rowsort
SELECT - - 18 - cor0.col1 FROM tab0 AS cor0
----
-68
-73
-79

query I rowsort
SELECT DISTINCT + col2 + col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL + ( + 1 ) FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col2 * 60 AS col0 FROM tab1
----
-3240
-3420
-5760

query I rowsort
SELECT DISTINCT + col2 + ( + col2 ) - col1 FROM tab1 AS cor0
----
104
179
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 33 * col1 col2 FROM tab2 AS cor0
----
1016
1869
482

query I rowsort
SELECT + - 58 AS col2 FROM tab0 AS cor0
----
-58
-58
-58

query I rowsort
SELECT ALL + col1 * col1 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT 62 * col0 + + 2 FROM tab2 AS cor0
----
436
4838
4900

query I rowsort
SELECT + + 65 + col2 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
1313
1469
635

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8684
SELECT - col0 * - col2 + - CAST( - 27 * col0 AS SIGNED ) FROM tab2 AS cor0
----
378
4134
5135

skipif mysql # not compatible
query I rowsort label-8684
SELECT - col0 * - col2 + - CAST ( - 27 * col0 AS INTEGER ) FROM tab2 AS cor0
----
378
4134
5135

query I rowsort
SELECT 75 + col0 * - col0 AS col1 FROM tab2
----
-6009
-6166
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 col1 FROM tab1, tab0, tab1 AS cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 * col0 col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - - cor0.col0 + col1 * col2 AS col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - 5 * ( + col2 ) AS col0 FROM tab0
----
-165
-410
-5

query I rowsort
SELECT ALL - col0 * + col1 + + col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-8691
SELECT - col0 + + 7 * col2 DIV + col1 col0 FROM tab0 AS cor0
----
-22
-35
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8691
SELECT - col0 + + 7 * col2 / + col1 col0 FROM tab0 AS cor0
----
-22
-35
-83

query I rowsort
SELECT DISTINCT + col1 * + col0 + + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL cor0.col1 * ( - col0 * + col1 + - cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-14768
-3432
-6970

query I rowsort
SELECT cor0.col1 * + ( col0 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-8695
SELECT ALL col2 DIV 85 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL col2 / 85 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 * col0 + col0 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT col0 + ( + 81 ) FROM tab1 AS cor0
----
145
161
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 - col1 col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ALL col2 * - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1
-35937
-551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-8700
SELECT + col0 + 50 DIV - col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8700
SELECT + col0 + 50 / - col2 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 col1 FROM tab0
----
119
173
98

query I rowsort
SELECT cor0.col1 + + col0 + + col2 AS col0 FROM tab2 AS cor0
----
134
163
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8703
SELECT ALL col0 * + CAST( NULL AS SIGNED ) + tab0.col1 * col2 * - CAST( + col0 AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) + tab0.col1 * col2 * - CAST ( + col0 AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - - 98 * 74 FROM tab0 AS cor0
----
7338
7343
7349

query I rowsort
SELECT ALL - + col2 * + ( col2 ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT col0 + ( + col0 ) * + col1 + col2 * col0 FROM tab1
----
243
4352
8800

query I rowsort
SELECT - ( cor0.col1 ) FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT col2 * col0 - + cor0.col0 * - 63 * + col0 AS col2 FROM tab0 AS cor0
----
37080
506321
77210

query I rowsort
SELECT + col0 - - cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - + ( cor0.col2 ) AS col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT - 95 - col1 FROM tab0 AS cor0
----
-181
-186
-192

query I rowsort
SELECT ( - col0 ) * col1 - - ( + col0 ) * col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col1 * 11 * col2 FROM tab0
----
1067
31218
82082

query I rowsort
SELECT DISTINCT ( - tab0.col2 ) AS col2 FROM tab0, tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - tab0.col1 * col0 * + col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT + ( tab2.col0 ) * + col0 FROM tab2
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * 53 + col0 * + cor0.col0 + col0 col0 FROM tab0 AS cor0
----
123
7533
783

query I rowsort
SELECT DISTINCT - 84 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 + - ( - 94 ) * + col1 col2 FROM tab1 AS cor0
----
-2708
-6458
2282

query I rowsort
SELECT + ( col1 ) * - 72 AS col0 FROM tab2 AS cor0
----
-1224
-2232
-4248

query I rowsort
SELECT + + 37 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-8722
SELECT ALL - 2 DIV 73 + - cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL - 2 / 73 + - cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 + 3 col2 FROM tab0 AS cor0
----
100
89
94

query I rowsort
SELECT - + col0 + - 77 * - col1 FROM tab1 AS cor0
----
1999
706
921

query I rowsort
SELECT ALL + cor0.col2 + col1 * col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + col0 + - col2 * cor0.col0 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT + col2 * 54 * ( col0 ) FROM tab1 AS cor0
----
196992
414720
8748

query I rowsort
SELECT ALL + + col0 * 38 + - col1 FROM tab1 AS cor0
----
2422
3027
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-8729
SELECT DISTINCT + col2 * col1 + + col2 DIV - cor0.col1 + 31 AS col2 FROM tab0 AS cor0
----
128
2869
7493

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT + col2 * col1 + + col2 / - cor0.col1 + 31 AS col2 FROM tab0 AS cor0
----
128
2869
7493

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8730
SELECT ALL cor0.col1 + + CAST( NULL AS DECIMAL ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL cor0.col1 + + CAST ( NULL AS REAL ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 70 - tab1.col0 FROM tab1
----
-134
-150
-73

query I rowsort
SELECT DISTINCT + 49 * tab1.col2 + tab1.col1 * - col0 AS col2 FROM tab1
----
2153
2568
3664

onlyif mysql # use DIV operator for integer division
query I rowsort label-8733
SELECT DISTINCT + col1 + + col0 * 58 DIV + col0 AS col1 FROM tab1
----
68
71
84

skipif mysql # not compatible
query I rowsort label-8733
SELECT DISTINCT + col1 + + col0 * 58 / + col0 AS col1 FROM tab1
----
68
71
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8734
SELECT col0 + col0 * + CAST( + col2 AS SIGNED ) FROM tab0
----
70
7387
816

skipif mysql # not compatible
query I rowsort label-8734
SELECT col0 + col0 * + CAST ( + col2 AS INTEGER ) FROM tab0
----
70
7387
816

query I rowsort
SELECT DISTINCT - 91 * col0 + + ( 68 + col2 ) FROM tab2
----
-542
-7004
-7083

query I rowsort
SELECT DISTINCT + col0 * - 24 + col1 FROM tab0 AS cor0
----
-2045
-490
-743

query I rowsort
SELECT DISTINCT - col0 + + 0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - + col1 * 12 * col1 AS col1 FROM tab1 AS cor0
----
-1200
-2028
-8112

query I rowsort
SELECT DISTINCT + 40 * + cor0.col2 + + cor0.col2 FROM tab2, tab0 AS cor0
----
1353
3362
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( - col0 ) * cor0.col2 col2 FROM tab2 cor0
----
-119652
-51034
-5859

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-8742
SELECT CAST( - 59 AS SIGNED ) * + col2 FROM tab0
----
-1947
-4838
-59

skipif mysql # not compatible
query I rowsort label-8742
SELECT CAST ( - 59 AS INTEGER ) * + col2 FROM tab0
----
-1947
-4838
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT - 40 - col1 AS col0 FROM tab2 AS cor0
----
-57
-71
-99

query I rowsort
SELECT - ( + col0 ) - col1 * 69 AS col0 FROM tab0 cor0
----
-5958
-6368
-6728

onlyif mysql # use DIV operator for integer division
query I rowsort label-8746
SELECT + 69 DIV 71 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-8746
SELECT + 69 / 71 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col2 * col0 + + cor0.col2 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-8748
SELECT ALL + col0 DIV cor0.col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL + col0 / cor0.col1 FROM tab2 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT + - col0 * + col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT col0 + + col0 + + 97 FROM tab1
----
103
225
257

query I rowsort
SELECT ALL + - cor0.col0 * col1 + + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT - col2 + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT col2 + cor0.col0 * - col1 * 66 AS col2 FROM tab0 AS cor0
----
-136191
-224069
-534452

query I rowsort
SELECT + + 43 * + col0 - - col2 FROM tab0 cor0
----
1065
1506
3909

query I rowsort
SELECT DISTINCT - ( - col0 ) * 30 FROM tab2 cor0
----
210
2340
2370

onlyif mysql # use DIV operator for integer division
query I rowsort label-8757
SELECT - + 11 * + col0 DIV cor0.col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-4
67
68

skipif mysql # not compatible
query I rowsort label-8757
SELECT - + 11 * + col0 / cor0.col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-4
67
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-8758
SELECT ALL cor0.col2 - + col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL cor0.col2 - + col1 / + col0 AS col1 FROM tab2 AS cor0
----
23
26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 col1 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT ALL - - ( - col2 ) - col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - + cor0.col2 + col1 * - col0 + + 11 FROM tab2 cor0
----
-1370
-233
-4617

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - col0 col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT col2 * 36 FROM tab0 AS cor0
----
1188
2952
36

query I rowsort
SELECT - col1 * - ( + col1 ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - col1 * - ( - col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT + - col2 * col1 + 35 AS col1 FROM tab1 cor0
----
-1213
-1369
-535

query I rowsort
SELECT ALL - col2 * 93 FROM tab2 cor0
----
-2418
-2511
-3534

query I rowsort
SELECT - 99 * + col2 AS col2 FROM tab2 AS cor0
----
-2574
-2673
-3762

query I rowsort
SELECT ALL - ( - col2 ) * col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + ( + col1 ) * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col0 * + 64 + - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-281
3612
4316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT col1 * 96 AS col2 FROM tab1 AS cor0
----
1248
2496
960

query I rowsort
SELECT DISTINCT + + cor0.col2 * + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT ALL - ( col0 ) * col1 * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT - cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - 13 AS col1 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT 42 * 54 AS col0 FROM tab2
----
2268
2268
2268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col0 col1 FROM tab0 cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + cor0.col1 col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - + 33 * - col0 + 4 FROM tab2 AS cor0
----
235
2578
2611

onlyif mysql # use DIV operator for integer division
query I rowsort label-8783
SELECT ( col1 ) DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8783
SELECT ( col1 ) / col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8784
SELECT + 47 DIV 93 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8784
SELECT + 47 / 93 AS col0 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8785
SELECT ALL CAST( cor0.col0 AS SIGNED ) * + col1 * col1 AS col1 FROM tab2 AS cor0
----
22831
271518
6727

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL CAST ( cor0.col0 AS INTEGER ) * + col1 * col1 AS col1 FROM tab2 AS cor0
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-8786
SELECT DISTINCT - - cor0.col2 DIV - 74 FROM tab2, tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT - - cor0.col2 / - 74 FROM tab2, tab1 cor0
----
-1
0

query I rowsort
SELECT - - col1 * - 1 + col1 * col2 + + col1 * col0 FROM tab1 cor0
----
1200
1456
2275

query I rowsort
SELECT tab0.col2 + + 45 * 60 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to f5dcf2f94b5735f4b8b6adc4bb7462b4

query I rowsort
SELECT ALL 64 AS col2 FROM tab0
----
64
64
64

query I rowsort
SELECT ALL - ( tab0.col0 ) * + ( tab0.col1 ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col2 * cor0.col2 + 21 AS col2 FROM tab1 AS cor0
----
-2895
-3228
-9195

query I rowsort
SELECT - col2 + col1 * - 23 FROM tab2 AS cor0
----
-1383
-429
-740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col2 + cor0.col2 col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + ( col0 ) * ( col2 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + 9 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT ALL - - ( + col0 ) * + col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + - col0 + col1 * - 70 + 81 FROM tab2 AS cor0
----
-1188
-2096
-4127

query I rowsort
SELECT ALL col1 * - cor0.col0 - - col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL col0 + - 93 AS col2 FROM tab0 AS cor0
----
-4
-58
-69

query I rowsort
SELECT col2 * 79 FROM tab0 cor0
----
2607
6478
79

query I rowsort
SELECT ALL + - col0 * col2 + col1 + + col1 AS col2 FROM tab1 AS cor0
----
-110
-3628
-7654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col0 col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL - col1 * 0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - - cor0.col2 * col2 AS col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT 70 + + cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
80
83
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col1 col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - col0 * + 12 * col2 FROM tab2 AS cor0
----
-2268
-24336
-36024

query I rowsort
SELECT DISTINCT - ( + 29 ) AS col0 FROM tab2 AS cor0
----
-29

query I rowsort
SELECT + col2 * - 56 AS col1 FROM tab1 AS cor0
----
-3024
-3192
-5376

query I rowsort
SELECT DISTINCT - ( + col1 ) * - cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + ( col2 ) * col0 * - 3 FROM tab2 AS cor0
----
-567
-6084
-9006

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * col0 + col0 col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT + ( - col2 ) * - col0 FROM tab2 cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 col1 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - ( 99 ) * + col1 * 68 AS col0 FROM tab2 AS cor0
----
-114444
-208692
-397188

query I rowsort
SELECT + cor0.col2 + - 10 FROM tab1 AS cor0
----
44
47
86

query I rowsort
SELECT - - col2 * - 85 + col0 * col1 AS col0 FROM tab0 cor0
----
-741
1129
3310

query I rowsort
SELECT ALL - - ( 75 ) * col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
12150
273600
576000

query I rowsort
SELECT DISTINCT ( + col2 ) + - cor0.col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + cor0.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 + + col2 col1 FROM tab1 AS cor0
----
104
62
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8822
SELECT - col0 + col2 * CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-2919
-3313
-9296

skipif mysql # not compatible
query I rowsort label-8822
SELECT - col0 + col2 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT - + ( col1 ) + 31 FROM tab2 AS cor0
----
-28
0
14

query I rowsort
SELECT + cor0.col1 * col1 * + col1 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT - cor0.col2 + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864

onlyif mysql # use DIV operator for integer division
query I rowsort label-8826
SELECT - col2 * + col1 DIV - col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8826
SELECT - col2 * + col1 / - col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col0 + col1 + 54 FROM tab2 AS cor0
----
150
191
92

query I rowsort
SELECT DISTINCT - cor0.col1 * col2 * + 1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 col0 FROM tab1 cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * col1 + + col0 col2 FROM tab2
----
1320
2270
4385

onlyif mysql # use DIV operator for integer division
query I rowsort label-8831
SELECT - 77 DIV col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-8831
SELECT - 77 / col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8832
SELECT - + 27 DIV - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 347b7514bff82fe473855194c0841645

skipif mysql # not compatible
query I rowsort label-8832
SELECT - + 27 / - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 347b7514bff82fe473855194c0841645

query I rowsort
SELECT - col1 * col2 + - col1 FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8834
SELECT + CAST( col0 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-8834
SELECT + CAST ( col0 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL col0 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT ALL + 8 + col1 AS col2 FROM tab0 AS cor0
----
105
94
99

query I rowsort
SELECT + col1 * 96 + cor0.col2 FROM tab1 AS cor0
----
1017
1344
2550

onlyif mysql # use DIV operator for integer division
query I rowsort label-8838
SELECT DISTINCT - - ( 47 ) DIV cor0.col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT - - ( 47 ) / cor0.col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL + + 31 * - 78 FROM tab0 cor0
----
-2418
-2418
-2418

query I rowsort
SELECT - 85 + + col0 + col0 FROM tab1 AS cor0
----
-79
43
75

query I rowsort
SELECT DISTINCT 32 + + col2 * col1 FROM tab1 AS cor0
----
1280
1436
602

query I rowsort
SELECT + 17 * - col1 AS col1 FROM tab1 AS cor0
----
-170
-221
-442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * + col2 * + col2 - col1 col0 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT DISTINCT ( 52 ) + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-37
17
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 + - col1 col0 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT - cor0.col2 + col2 + + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - - 41 * col0 FROM tab2 AS cor0
----
287
3198
3239

query I rowsort
SELECT + - col0 + - col0 + - col0 * col0 FROM tab1 AS cor0
----
-15
-4224
-6560

query I rowsort
SELECT ALL + col2 * col2 + + col0 * col1 FROM tab0 cor0
----
14823
3153
3396

query I rowsort
SELECT - col1 * + col0 + - col2 - col2 FROM tab1 cor0
----
-1232
-186
-754

query I rowsort
SELECT DISTINCT + ( col1 ) * cor0.col0 * - 14 FROM tab0 AS cor0
----
-113386
-28896
-47530

query I rowsort
SELECT ALL + 11 * col1 AS col1 FROM tab2 AS cor0
----
187
341
649

query I rowsort
SELECT + ( col2 ) + + col2 + 31 AS col1 FROM tab0
----
195
33
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8854
SELECT - col2 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8854
SELECT - col2 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 - - ( - col0 ) * col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL + - col2 * 62 FROM tab0 AS cor0
----
-2046
-5084
-62

query I rowsort
SELECT DISTINCT + col2 + ( cor0.col1 ) * cor0.col2 * + col2 FROM tab1 AS cor0
----
119904
32547
75870

query I rowsort
SELECT ALL - 24 * 84 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 21ad646b51ce22535f3ec9e40e1d18dc

query I rowsort
SELECT - tab0.col2 + + tab0.col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT + col1 * col2 - col0 AS col2 FROM tab0
----
2814
62
7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + 54 * 75 col1 FROM tab2
----
-3971
-3972
-4043

onlyif mysql # use DIV operator for integer division
query I rowsort label-8862
SELECT ALL col0 * - ( + col0 * tab2.col1 ) + tab2.col0 DIV - 16 AS col1 FROM tab2
----
-106101
-1519
-358960

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL col0 * - ( + col0 * tab2.col1 ) + tab2.col0 / - 16 AS col1 FROM tab2
----
-106101
-1519
-358960

query I rowsort
SELECT DISTINCT 2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8864
SELECT ALL + + cor0.col2 DIV 49 + cor0.col0 col1 FROM tab1 AS cor0
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL + + cor0.col2 / 49 + cor0.col0 col1 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT DISTINCT ( 92 + - cor0.col1 ) FROM tab0, tab1 AS cor0
----
66
79
82

query I rowsort
SELECT DISTINCT col2 * - col1 * ( col0 ) AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-8867
SELECT col0 DIV - CAST( col2 AS SIGNED ) - - col1 AS col0 FROM tab0 AS cor0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-8867
SELECT col0 / - CAST ( col2 AS INTEGER ) - - col1 AS col0 FROM tab0 AS cor0
----
62
86
90

query I rowsort
SELECT col1 * + col2 + cor0.col0 + col2 FROM tab1 AS cor0
----
1424
1461
691

query I rowsort
SELECT + cor0.col0 * col2 - 15 * col0 FROM tab0 AS cor0
----
-490
432
5963

query I rowsort
SELECT col1 * + col2 + 68 FROM tab0
----
165
2906
7530

query I rowsort
SELECT DISTINCT + col2 * 53 * col2 + col0 FROM tab0 cor0
----
356461
57741
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + col2 * col0 col2 FROM tab2 AS cor0
----
182
1950
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - cor0.col2 * 93 AS col2 FROM tab0 AS cor0
----
-3069
-7626
-93

query I rowsort
SELECT + - 26 - + 88 * - col1 AS col0 FROM tab1 AS cor0
----
1118
2262
854

query I rowsort
SELECT ALL + 2 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 6d1be3904d6870ba21bc766b979d1110

query I rowsort
SELECT DISTINCT + 33 + ( + col0 + 7 ) AS col0 FROM tab2 AS cor0
----
118
119
47

query I rowsort
SELECT DISTINCT col2 + - col2 * + col2 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT ALL + + col2 * + col0 + - col1 * col2 FROM tab2 cor0
----
-648
2356
494

query I rowsort
SELECT - + cor0.col2 * + 39 AS col2 FROM tab1 AS cor0
----
-2106
-2223
-3744

query I rowsort
SELECT + + col0 * col0 - - col1 * ( + col0 * + col0 ) AS col2 FROM tab2 AS cor0
----
112338
1568
365040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8882
SELECT CAST( + 57 AS SIGNED ) * col0 - + CAST( - col2 AS SIGNED ) * - cor0.col2 FROM tab0 AS cor0
----
-1651
1994
279

skipif mysql # not compatible
query I rowsort label-8882
SELECT CAST ( + 57 AS INTEGER ) * col0 - + CAST ( - col2 AS INTEGER ) * - cor0.col2 FROM tab0 AS cor0
----
-1651
1994
279

query I rowsort
SELECT ALL + - col0 + col1 AS col1 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT DISTINCT - cor0.col0 - - 30 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-34
-50
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-8885
SELECT ALL 98 DIV col1 FROM tab2
----
1
3
5

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL 98 / col1 FROM tab2
----
1
3
5

query I rowsort
SELECT ALL col0 + col0 * - 32 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
116800
245840
5187

query I rowsort
SELECT 67 + col1 FROM tab2 AS cor0
----
126
84
98

query I rowsort
SELECT ALL + + col2 * col1 + col0 * + 60 * col1 FROM tab0 cor0
----
126678
203797
493402

query I rowsort
SELECT ALL 74 AS col1 FROM tab2 cor0
----
74
74
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-8890
SELECT ALL + - cor0.col1 * + col1 + - ( col2 ) DIV + cor0.col0 FROM tab2 AS cor0
----
-289
-3481
-964

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL + - cor0.col1 * + col1 + - ( col2 ) / + cor0.col0 FROM tab2 AS cor0
----
-289
-3481
-964

query I rowsort
SELECT DISTINCT + col2 - 83 * cor0.col0 * col0 AS col0 FROM tab0 cor0
----
-101674
-47775
-657361

query I rowsort
SELECT cor0.col1 + col0 * - col1 FROM tab0 cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + + col1 + - col0 * col0 * col1 AS col2 FROM tab1 AS cor0
----
-208
-40950
-83187

query I rowsort
SELECT DISTINCT - 46 * - col1 FROM tab1
----
1196
460
598

query I rowsort
SELECT col1 * - 57 AS col0 FROM tab0 AS cor0
----
-4902
-5187
-5529

query I rowsort
SELECT 6 + col0 AS col2 FROM tab1
----
70
86
9

query I rowsort
SELECT ALL - 52 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74

query I rowsort
SELECT col2 * - col0 + - ( - col2 ) * - tab2.col1 FROM tab2
----
-1026
-3562
-3648

query I rowsort
SELECT ALL + 78 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # use DIV operator for integer division
query I rowsort label-8900
SELECT ( + col0 + 26 ) DIV col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8900
SELECT ( + col0 + 26 ) / col2 AS col1 FROM tab1
----
0
1
1

query I rowsort
SELECT 13 * + col2 * 30 + + ( col1 ) FROM tab1
----
21086
22240
37453

query I rowsort
SELECT DISTINCT + col0 + col2 + col2 * col1 FROM tab2
----
1638
763
871

onlyif mysql # use DIV operator for integer division
query I rowsort label-8903
SELECT ( - col0 ) DIV 14 AS col0 FROM tab2
----
-5
-5
0

skipif mysql # not compatible
query I rowsort label-8903
SELECT ( - col0 ) / 14 AS col0 FROM tab2
----
-5
-5
0

query I rowsort
SELECT DISTINCT + 5 + col1 + - col0 AS col0 FROM tab1
----
-49
-62
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 72 * col2 col0 FROM tab1 AS cor0
----
-3888
-4104
-6912

query I rowsort
SELECT + col0 + cor0.col2 * + 46 * - 19 AS col2 FROM tab0 AS cor0
----
-28818
-71579
-839

query I rowsort
SELECT - col2 + col1 * col0 * + col2 FROM tab1 cor0
----
36423
4158
99744

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + - 3 + cor0.col0 AS col2 FROM tab0 AS cor0
----
21
32
86

query I rowsort
SELECT col2 * 72 FROM tab2
----
1872
1944
2736

query I rowsort
SELECT - col1 * col2 * - ( col0 ) AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL + - col1 + + ( - ( col1 ) ) AS col0 FROM tab2 cor0
----
-118
-34
-62

query I rowsort
SELECT + col1 * 13 + cor0.col1 AS col1 FROM tab0 AS cor0
----
1204
1274
1358

onlyif mysql # use DIV operator for integer division
query I rowsort label-8914
SELECT ALL 91 + col2 DIV + col1 AS col0 FROM tab1 cor0
----
93
96
98

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL 91 + col2 / + col1 AS col0 FROM tab1 cor0
----
93
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 33 col2 FROM tab0 cor0
----
1155
2937
792

query I rowsort
SELECT ALL - ( ( - col2 ) ) * cor0.col2 - - col0 * col0 FROM tab1 AS cor0
----
15616
2925
7345

query I rowsort
SELECT ALL + - col0 + + col2 * col2 * + col2 AS col0 FROM tab0 AS cor0
----
-34
35913
551279

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8918
SELECT - CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8918
SELECT - CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT col2 * 41 FROM tab1 AS cor0
----
2214
2337
3936

query I rowsort
SELECT - col1 * + tab0.col1 + - tab0.col1 AS col0 FROM tab0
----
-7482
-8372
-9506

query I rowsort
SELECT DISTINCT + - 60 AS col0 FROM tab1, tab2, tab0 AS cor0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - - 3 AS col2 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT ALL - col2 - + col0 * col2 * - cor0.col2 FROM tab2 AS cor0
----
114038
5076
52702

query I rowsort
SELECT ALL + - col2 * col0 * col0 + + col2 AS col1 FROM tab0 AS cor0
----
-1224
-18975
-649440

query I rowsort
SELECT ALL - - col1 * - col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + - col0 + cor0.col1 * - col0 + - col0 AS col2 FROM tab2 AS cor0
----
-1501
-231
-4758

query I rowsort
SELECT - col0 * - col0 - col0 FROM tab2 AS cor0
----
42
6006
6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-8930
SELECT + col0 DIV col2 + - col1 FROM tab1 AS cor0
----
-13
-26
-9

skipif mysql # not compatible
query I rowsort label-8930
SELECT + col0 / col2 + - col1 FROM tab1 AS cor0
----
-13
-26
-9

query I rowsort
SELECT - + col2 - col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col2 col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT - - col2 - 55 * + col2 FROM tab0 AS cor0
----
-1782
-4428
-54

query I rowsort
SELECT - + col0 * ( 54 ) AS col1 FROM tab2 AS cor0
----
-378
-4212
-4266

query I rowsort
SELECT + cor0.col2 * + ( + col0 ) * col2 AS col1 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8936
SELECT - + ( + ( col1 - CAST( NULL AS SIGNED ) - 18 ) ) * col1 + + 70 / - col0 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT - + ( + ( col1 - CAST ( NULL AS INTEGER ) - 18 ) ) * col1 + + 70 / - col0 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - ( + col2 ) FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT col1 * + 15 + col1 FROM tab0 cor0
----
1376
1456
1552

query I rowsort
SELECT - col1 + - col1 * col0 AS col0 FROM tab0 cor0
----
-2150
-3492
-8190

query I rowsort
SELECT col0 * + 93 * 32 AS col2 FROM tab2
----
20832
232128
235104

onlyif mysql # use DIV operator for integer division
query I rowsort label-8941
SELECT ALL ( + col0 ) - - col2 DIV + col1 AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL ( + col0 ) - - col2 / + col1 AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL + 20 - col2 FROM tab0
----
-13
-62
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8943
SELECT ALL - + col0 * col1 - CAST( + 63 AS SIGNED ) * cor0.col0 FROM tab0 AS cor0
----
-13706
-3576
-5600

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL - + col0 * col1 - CAST ( + 63 AS INTEGER ) * cor0.col0 FROM tab0 AS cor0
----
-13706
-3576
-5600

query I rowsort
SELECT ALL - col0 - + col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + + 49 * col2 FROM tab0 cor0
----
1617
4018
49

query I rowsort
SELECT DISTINCT + + col1 + col2 * col2 AS col0 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT - + col2 * + cor0.col1 - col0 AS col1 FROM tab2 cor0
----
-1612
-725
-844

query I rowsort
SELECT cor0.col0 * 17 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b79d0a458cbea995502f63bc07c96da0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + cor0.col2 col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + col1 * col0 + col2 + cor0.col0 FROM tab0 AS cor0
----
2121
3431
8270

query I rowsort
SELECT ALL + - col1 * + 53 + - cor0.col0 FROM tab0 AS cor0
----
-4582
-4912
-5176

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8952
SELECT DISTINCT + + col2 - + CAST( NULL AS SIGNED ) * 85 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT + + col2 - + CAST ( NULL AS INTEGER ) * 85 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 + + ( + 44 ) * + cor0.col0 FROM tab0 AS cor0
----
1023
1539
3834

query I rowsort
SELECT + - col0 + 11 * ( + col0 ) FROM tab1 AS cor0
----
30
640
800

query I rowsort
SELECT DISTINCT + cor0.col2 + 50 - - col0 FROM tab1 AS cor0
----
107
171
226

query I rowsort
SELECT ALL col2 * + ( + col1 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + cor0.col1 - 98 AS col0 FROM tab0 AS cor0
----
-1
-12
-7

query I rowsort
SELECT DISTINCT - - col0 + + col1 * + col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL - - col1 + - ( - col2 * cor0.col1 ) FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8960
SELECT DISTINCT + col0 + ( ( col2 ) ) * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT + col0 + ( ( col2 ) ) * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + + ( col1 * - col0 ) AS col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL col2 + ( - 54 ) - - cor0.col0 AS col0 FROM tab2 AS cor0
----
-20
50
63

query I rowsort
SELECT DISTINCT col2 * 36 - - col0 AS col0 FROM tab1 AS cor0
----
1947
2116
3536

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab2, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL ( - col2 ) - col2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT ALL - col1 * 92 AS col2 FROM tab0 AS cor0
----
-7912
-8372
-8924

query I rowsort
SELECT + col2 * col1 - + col1 AS col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT - 96 * - col2 FROM tab2 AS cor0
----
2496
2592
3648

query I rowsort
SELECT ALL - - ( - cor0.col2 ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - ( col1 * ( + col2 ) ) col1 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - ( - 49 ) AS col0 FROM tab0 AS cor0
----
49

query I rowsort
SELECT ALL - cor0.col0 * + col0 * + col1 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT + - 48 + + 35 * col1 FROM tab0 AS cor0
----
2962
3137
3347

query I rowsort
SELECT + col2 * + 49 FROM tab2 cor0
----
1274
1323
1862

query I rowsort
SELECT ALL - 66 * col0 FROM tab1 AS cor0
----
-198
-4224
-5280

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT col2 * ( + cor0.col0 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT col2 * 3 FROM tab0
----
246
3
99

query I rowsort
SELECT ALL - tab0.col0 * 18 FROM tab0
----
-1602
-432
-630

query I rowsort
SELECT DISTINCT - cor0.col2 * + 74 * cor0.col1 - - col1 AS col0 FROM tab2 cor0
----
-113457
-47787
-61907

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8981
SELECT DISTINCT + CAST( + 38 AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0
----
1026
1444
988

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT + CAST ( + 38 AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0
----
1026
1444
988

query I rowsort
SELECT + col1 * - col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 43 * + col2 col0 FROM tab1 cor0
----
-2322
-2451
-4128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8985
SELECT ALL col1 DIV col0 + + ( + col1 * + cor0.col1 ) - + 30 FROM tab2 AS cor0
----
259
3451
935

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL col1 / col0 + + ( + col1 * + cor0.col1 ) - + 30 FROM tab2 AS cor0
----
259
3451
935

query I rowsort
SELECT DISTINCT - 39 AS col0 FROM tab0
----
-39

query I rowsort
SELECT - cor0.col1 + cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL + - 13 + + col0 FROM tab2 AS cor0
----
-6
65
66

query I rowsort
SELECT ALL col2 * - col1 + ( ( cor0.col0 ) ) * ( col0 ) FROM tab1 AS cor0
----
-1395
3526
5152

query I rowsort
SELECT + + col1 * + col2 * + col0 AS col2 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT 62 * col1 + tab2.col0 * col1 FROM tab2
----
2139
2397
8260

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8992
SELECT ALL + CAST( col1 AS SIGNED ) * + col1 AS col0 FROM tab2
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL + CAST ( col1 AS INTEGER ) * + col1 AS col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT tab2.col0 * - 26 + col2 AS col1 FROM tab2
----
-155
-2002
-2016

query I rowsort
SELECT DISTINCT - 68 FROM tab0
----
-68

query I rowsort
SELECT ALL tab1.col1 * - tab1.col0 AS col1 FROM tab1
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8996
SELECT - ( col2 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8996
SELECT - ( col2 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 65 * - col2 AS col1 FROM tab1 AS cor0
----
-3510
-3705
-6240

query I rowsort
SELECT - cor0.col2 + col0 * col2 * - col2 FROM tab1 AS cor0
----
-207993
-737376
-8802

query I rowsort
SELECT DISTINCT + cor0.col2 * - cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 33 ) col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT - + cor0.col1 + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + + 57 FROM tab2
----
135
136
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-9003
SELECT - col2 DIV - 32 + - col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
2
2
4

skipif mysql # not compatible
query I rowsort label-9003
SELECT - col2 / - 32 + - col1 / - col1 AS col2 FROM tab1 AS cor0
----
2
2
4

query I rowsort
SELECT col0 + + col2 + + col2 FROM tab1
----
111
178
272

query I rowsort
SELECT ALL col2 * + 57 AS col2 FROM tab0 AS cor0
----
1881
4674
57

query I rowsort
SELECT ( + cor0.col2 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL + cor0.col0 * + cor0.col1 * - col1 AS col0 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9009
SELECT CAST( - 47 AS SIGNED ) * col0 col2 FROM tab0 AS cor0
----
-1128
-1645
-4183

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9009
SELECT CAST ( - 47 AS INTEGER ) * col0 col2 FROM tab0 AS cor0
----
-1128
-1645
-4183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - + 12 * col1 FROM tab2 AS cor0
----
-204
-372
-708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * col1 col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - - col1 + ( 76 ) AS col0 FROM tab1 cor0
----
102
86
89

query I rowsort
SELECT DISTINCT + cor1.col0 * ( + 43 ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
301
3354
3397

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT - 18 AS col1 FROM tab2, tab0 cor0
----
-18

query I rowsort
SELECT - 81 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9018
SELECT + CAST( - 97 AS SIGNED ) * col1 * + col0 FROM tab0 AS cor0
----
-200208
-329315
-785603

skipif mysql # not compatible
query I rowsort label-9018
SELECT + CAST ( - 97 AS INTEGER ) * col1 * + col0 FROM tab0 AS cor0
----
-200208
-329315
-785603

query I rowsort
SELECT + cor1.col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT + + 81 + 95 * col0 FROM tab0 AS cor0
----
2361
3406
8536

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2, tab1 cor3
----
3645 values hashing to 15ae1b54cae2dcf5c6eef7f1d15689eb

query I rowsort
SELECT 34 * col0 * + col0 AS col0 FROM tab1 cor0
----
139264
217600
306

query I rowsort
SELECT - + cor0.col0 + col2 + col2 AS col2 FROM tab0 AS cor0
----
-33
42
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-9024
SELECT DISTINCT 51 DIV - tab1.col0 + col2 + col2 FROM tab1
----
114
192
91

skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT 51 / - tab1.col0 + col2 + col2 FROM tab1
----
114
192
91

query I rowsort
SELECT - col2 * - tab1.col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + col0 + - cor0.col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + 67 - - tab0.col1 FROM tab0, tab2, tab1 AS cor0
----
153
158
164

query I rowsort
SELECT DISTINCT + 15 AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL cor0.col2 * + ( cor1.col0 ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to aeeeb4bec4be16eaf92fcfb414a1ef1e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + - cor0.col0 col0 FROM tab1, tab1 AS cor0
----
0

query I rowsort
SELECT - - col1 * + cor0.col0 + - cor0.col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + 21 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9033
SELECT 84 DIV col1 FROM tab1
----
3
6
8

skipif mysql # not compatible
query I rowsort label-9033
SELECT 84 / col1 FROM tab1
----
3
6
8

query I rowsort
SELECT DISTINCT + 82 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
82

query I rowsort
SELECT - col1 * col0 * - 99 FROM tab2
----
132957
21483
455598

query I rowsort
SELECT DISTINCT - col1 + - 88 AS col1 FROM tab0
----
-174
-179
-185

onlyif mysql # use DIV operator for integer division
query I rowsort label-9037
SELECT ALL - tab2.col1 DIV - 23 + + col2 * col1 AS col0 FROM tab2
----
1536
646
838

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL - tab2.col1 / - 23 + + col2 * col1 AS col0 FROM tab2
----
1536
646
838

query I rowsort
SELECT DISTINCT + 22 * - 79 + col2 FROM tab2
----
-1700
-1711
-1712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 * tab2.col2 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 54bc9cd654df586cce96f5e2b7733b13

query I rowsort
SELECT + 46 + cor0.col2 AS col2 FROM tab0 AS cor0
----
128
47
79

query I rowsort
SELECT - + 2 - col1 * ( col1 ) AS col0 FROM tab2 AS cor0
----
-291
-3483
-963

onlyif mysql # use DIV operator for integer division
query I rowsort label-9042
SELECT - col1 DIV + cor0.col0 - - col2 AS col0 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-9042
SELECT - col1 / + cor0.col0 - - col2 AS col0 FROM tab2 AS cor0
----
23
26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 + ( - col2 ) col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT - tab1.col0 * + col1 - + 6 FROM tab1
----
-1046
-646
-84

query I rowsort
SELECT ALL col0 * + col2 - ( + tab0.col1 ) * col2 * - col2 FROM tab0
----
132
619182
94446

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + cor0.col0 ) col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + 25 + col2 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1223
-1379
-545

query I rowsort
SELECT + + col2 * - col1 + ( col1 + + cor0.col0 ) FROM tab2 cor0
----
-1397
-550
-799

query I rowsort
SELECT DISTINCT + - col0 * - col2 * col1 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL cor0.col1 + col1 + - 49 FROM tab2 AS cor0
----
-15
13
69

query I rowsort
SELECT - + 84 * col0 + + cor0.col2 * ( + col2 ) + cor0.col0 FROM tab1 AS cor0
----
-2063
2576
2667

query I rowsort
SELECT + - 40 + col0 * col1 - + col0 FROM tab0 cor0
----
2000
3320
7970

query I rowsort
SELECT ALL - tab1.col1 * - col2 * - col1 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT - col0 + + col1 * col1 AS col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT ALL col2 + + col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT col1 * col0 * tab2.col0 + - col0 FROM tab2
----
106018
1512
358878

onlyif mysql # use DIV operator for integer division
query I rowsort label-9057
SELECT - col0 DIV col2 + + col2 DIV col1 AS col2 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-9057
SELECT - col0 / col2 + + col2 / col1 AS col2 FROM tab0
----
-1
-35
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9058
SELECT ALL cor0.col2 DIV col2 - col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL cor0.col2 / col2 - col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab1 WHERE NOT NULL IN ( + col2 / col0 )
----

query I rowsort
SELECT ALL + col2 + + col0 * + col0 AS col0 FROM tab1 cor0
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - cor0.col1 + - col1 col0 FROM tab1 cor0
----
156
650
90

query I rowsort
SELECT DISTINCT - - cor0.col0 * + col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + - col0 * - col2 + + col0 AS col1 FROM tab0 cor0
----
70
7387
816

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = col2 OR ( NULL ) >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9065
SELECT ALL + col0 + + col1 DIV - col1 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL + col0 + + col1 / - col1 FROM tab0
----
23
34
88

query I rowsort
SELECT ALL + ( col1 ) * col0 + - col0 * col0 * - col2 FROM tab2 AS cor0
----
1540
162786
238501

query I rowsort
SELECT ALL + 91 + + col0 - + col1 FROM tab2 AS cor0
----
110
153
67

query I rowsort
SELECT DISTINCT ( col0 ) * + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 col1 FROM tab0 AS cor0
----
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-9070
SELECT + - col0 DIV - col1 + + col1 * - col2 FROM tab2 AS cor0
----
-1533
-642
-837

skipif mysql # not compatible
query I rowsort label-9070
SELECT + - col0 / - col1 + + col1 * - col2 FROM tab2 AS cor0
----
-1533
-642
-837

query I rowsort
SELECT + + 45 + cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
1579
691
882

query I rowsort
SELECT - ( col1 ) - col0 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT + 8 * col1 AS col0 FROM tab2 AS cor0
----
136
248
472

query I rowsort
SELECT ALL + col0 * + col2 + - col2 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
69
7305
783

query I rowsort
SELECT ALL - col2 - col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9076
SELECT DISTINCT + col1 DIV col1 + col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT + col1 / col1 + col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT cor0.col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-9078
SELECT DISTINCT col2 * - cor0.col1 + - col0 DIV + col2 FROM tab0 AS cor0
----
-132
-2838
-7463

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT col2 * - cor0.col1 + - col0 / + col2 FROM tab0 AS cor0
----
-132
-2838
-7463

query I rowsort
SELECT DISTINCT - 34 + col1 AS col1 FROM tab1
----
-21
-24
-8

query I rowsort
SELECT ALL - col1 + - col2 * col1 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT col2 + col1 * col1 + cor0.col2 * + col2 AS col0 FROM tab1 AS cor0
----
3406
3646
9481

query I rowsort
SELECT DISTINCT + - col0 * - col1 + col1 * col1 + - col1 AS col2 FROM tab0 AS cor0
----
12707
16289
9374

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT + col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - tab1.col1 col1 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-9085
SELECT + col2 * + tab1.col1 + + col1 DIV - col0 FROM tab1
----
1248
1396
570

skipif mysql # not compatible
query I rowsort label-9085
SELECT + col2 * + tab1.col1 + + col1 / - col0 FROM tab1
----
1248
1396
570

query I rowsort
SELECT DISTINCT col2 + col1 + col1 AS col0 FROM tab2
----
144
72
89

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE col0 + - col2 * col0 * - col2 <= NULL
----

query I rowsort
SELECT DISTINCT col1 - col0 * + col2 * + col2 AS col2 FROM tab2 WHERE NOT col2 NOT IN ( col1 + col1 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9089
SELECT DISTINCT col1 DIV + col0 + tab0.col1 FROM tab0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT col1 / + col0 + tab0.col1 FROM tab0
----
89
92
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < col0
----

query I rowsort
SELECT ALL tab0.col2 + - col1 + - col0 FROM tab0
----
-131
-77
-98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col1 + + tab0.col2 )
----

query I rowsort
SELECT - tab1.col1 * tab1.col2 + - col0 * tab1.col2 + col2 AS col2 FROM tab1
----
-1512
-4161
-8832

query I rowsort
SELECT - 71 * + 38 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to adaed9d635fc264250152e694bd28165

query I rowsort
SELECT ALL + col0 * col0 + col1 AS col0 FROM tab1
----
35
4106
6413

query I rowsort
SELECT ALL col2 + tab1.col1 * col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT - col2 + + col0 AS col0 FROM tab1 WHERE NOT ( - col2 ) IN ( col0 + + col0 * col2 )
----
-16
-51
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) < + col0 * + col1 + col1
----

query I rowsort
SELECT + col2 + + col2 * + col1 + + col0 * - col2 AS col2 FROM tab1
----
-3021
-6336
1296

query I rowsort
SELECT DISTINCT col0 * - col1 + + col1 * + col0 AS col1 FROM tab2 WHERE col2 IN ( col2 )
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9101
SELECT DISTINCT - col0 DIV - col1 + + tab1.col1 * col0 FROM tab1
----
1046
646
78

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT - col0 / - col1 + + tab1.col1 * col0 FROM tab1
----
1046
646
78

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE ( NULL ) NOT IN ( - tab2.col2 - + col1 / col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + col2 * col2 IN ( + col1 )
----

query I rowsort
SELECT col1 - - cor0.col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 = ( + cor0.col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT col1 * + col0 + - col1 AS col0 FROM tab1
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-9107
SELECT col1 DIV col1 - + col1 * - col1 DIV tab1.col1 AS col0 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-9107
SELECT col1 / col1 - + col1 * - col1 / tab1.col1 AS col0 FROM tab1
----
11
14
27

query I rowsort
SELECT ALL - col2 * col1 * - col1 AS col1 FROM tab0
----
244068
679042
9409

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = ( col0 * col0 + - col1 )
----

query I rowsort
SELECT ALL col2 / col1 FROM tab2 WHERE NOT NULL IN ( - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9111
SELECT + col2 + col2 DIV col0 + tab1.col0 AS col0 FROM tab1
----
121
177
75

skipif mysql # not compatible
query I rowsort label-9111
SELECT + col2 + col2 / col0 + tab1.col0 AS col0 FROM tab1
----
121
177
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * tab2.col2 col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL col2 * - col0 * + tab1.col0 FROM tab1
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 * - col2 + - col2 col2 FROM tab0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 + tab2.col0 col0 FROM tab2
----
1612
725
844

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 * - col0 * - col2 + - col2 ) = ( NULL )
----

query I rowsort
SELECT ALL - col2 + - col1 * - col0 + + col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT col2 * - col1 * - col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL - col0 + + col2 + col1 FROM tab0
----
63
84
95

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT tab1.col2 * col1 * + tab1.col2 FROM tab1
----
119808
32490
75816

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( - col2 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( - col0 * - tab1.col2 ) AND NULL
----

query I rowsort
SELECT - tab1.col0 * + tab1.col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT ( col0 ) * tab1.col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT 58 * - col0 AS col1 FROM tab2
----
-406
-4524
-4582

query I rowsort
SELECT DISTINCT + 4 + + col2 FROM tab0 AS cor0
----
37
5
86

query I rowsort
SELECT - + ( ( + cor0.col1 ) ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + 2 + ( cor0.col1 ) * cor0.col1 AS col2 FROM tab1 cor0
----
102
171
678

query I rowsort
SELECT ALL 61 + - col2 * + 38 FROM tab1
----
-1991
-2105
-3587

onlyif mysql # use DIV operator for integer division
query I rowsort label-9131
SELECT col2 DIV col2 + col2 AS col1 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-9131
SELECT col2 / col2 + col2 AS col1 FROM tab0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9132
SELECT + cor0.col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9132
SELECT + cor0.col0 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * + 59 FROM tab2 AS cor0
----
1003
1829
3481

query I rowsort
SELECT 75 + 90 FROM tab2, tab2 cor0
----
9 values hashing to ba887a18b86a2c64d4b2c70e5cbb32da

query I rowsort
SELECT col1 * col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT + - col2 + 94 * + col1 FROM tab2 AS cor0
----
1560
2887
5520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9137
SELECT + CAST( + col1 AS SIGNED ) + col0 * - 71 AS col1 FROM tab2 AS cor0
----
-466
-5479
-5592

skipif mysql # not compatible
query I rowsort label-9137
SELECT + CAST ( + col1 AS INTEGER ) + col0 * - 71 AS col1 FROM tab2 AS cor0
----
-466
-5479
-5592

onlyif mysql # use DIV operator for integer division
query I rowsort label-9138
SELECT - - col0 DIV col2 - col1 col1 FROM tab0 AS cor0
----
-62
-86
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9138
SELECT - - col0 / col2 - col1 col1 FROM tab0 AS cor0
----
-62
-86
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9139
SELECT - - CAST( 96 AS SIGNED ) + col1 * CAST( + col2 AS SIGNED ) + + cor0.col2 AS col2 FROM tab0 AS cor0
----
194
2967
7640

skipif mysql # not compatible
query I rowsort label-9139
SELECT - - CAST ( 96 AS INTEGER ) + col1 * CAST ( + col2 AS INTEGER ) + + cor0.col2 AS col2 FROM tab0 AS cor0
----
194
2967
7640

query I rowsort
SELECT DISTINCT + col0 * ( col2 ) * col2 + 40 * - col1 FROM tab2
----
113396
3863
50368

onlyif mysql # use DIV operator for integer division
query I rowsort label-9141
SELECT + ( col1 ) * cor0.col0 DIV col1 AS col1 FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-9141
SELECT + ( col1 ) * cor0.col0 / col1 AS col1 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - - col2 - - 56 FROM tab0 AS cor0
----
138
57
89

query I rowsort
SELECT DISTINCT - col2 * - 37 AS col0 FROM tab2 AS cor0
----
1406
962
999

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9144
SELECT CAST( + col1 AS SIGNED ) - + col0 FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-9144
SELECT CAST ( + col1 AS INTEGER ) - + col0 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 42 - + 52 col2 FROM tab2 AS cor0
----
-10
-10
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT ALL 97 FROM tab0, tab1 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT + 0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL - col0 * - 24 FROM tab2 cor0
----
168
1872
1896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 51 col2 FROM tab2 AS cor0
----
-51
-51
-51

query I rowsort
SELECT ALL - 4 * + col0 * + tab2.col1 AS col1 FROM tab2
----
-18408
-5372
-868

query I rowsort
SELECT DISTINCT - cor0.col1 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - col0 * col2 + col1 + + cor0.col0 * col1 AS col0 FROM tab0 cor0
----
1358
3457
892

query I rowsort
SELECT - cor0.col1 * col0 + col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL col0 * + col1 - col1 AS col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT ALL tab0.col2 - + col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + 74 - 8 FROM tab1
----
66

query I rowsort
SELECT 99 + + 6 AS col0 FROM tab1
----
105
105
105

query I rowsort
SELECT ( 78 ) * col1 AS col1 FROM tab1
----
1014
2028
780

query I rowsort
SELECT - col2 * - col1 + col2 * col1 FROM tab0
----
14924
194
5676

query I rowsort
SELECT ALL col2 + + ( col0 ) FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT + col1 * - 21 FROM tab1 AS cor0
----
-210
-273
-546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 3 col1 FROM tab1 AS cor0
----
-61
-77
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 * - col2 * - col0 col2 FROM tab2
----
114076
7182
77064

query I rowsort
SELECT DISTINCT 71 * - col2 AS col0 FROM tab1
----
-3834
-4047
-6816

query I rowsort
SELECT DISTINCT + + 30 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
30

query I rowsort
SELECT ALL 99 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT + col1 * - 10 AS col0 FROM tab0 AS cor0
----
-860
-910
-970

onlyif mysql # use DIV operator for integer division
query I rowsort label-9169
SELECT - - col0 DIV col0 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9169
SELECT - - col0 / col0 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9170
SELECT + col0 + + 21 * col2 DIV + col1 FROM tab0 cor0
----
107
32
35

skipif mysql # not compatible
query I rowsort label-9170
SELECT + col0 + + 21 * col2 / + col1 FROM tab0 cor0
----
107
32
35

query I rowsort
SELECT - col2 + 39 AS col2 FROM tab2
----
1
12
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-9172
SELECT + col1 DIV col1 + ( + col1 ) * CAST( 70 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
6021
6371
6791

skipif mysql # not compatible
query I rowsort label-9172
SELECT + col1 / col1 + ( + col1 ) * CAST ( 70 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
6021
6371
6791

query I rowsort
SELECT DISTINCT - col0 + - 2 * - 31 AS col1 FROM tab0 cor0
----
-27
27
38

query I rowsort
SELECT DISTINCT + + col0 * + ( 55 ) FROM tab0 AS cor0
----
1320
1925
4895

query I rowsort
SELECT + - col1 * cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT col1 + ( + col2 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT 65 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
65

query I rowsort
SELECT DISTINCT 54 + tab1.col1 AS col1 FROM tab1
----
64
67
80

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-9180
SELECT DISTINCT + col1 DIV + ( col2 ) col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT + col1 / + ( col2 ) col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * 94 col2 FROM tab0 AS cor0
----
-8084
-8554
-9118

query I rowsort
SELECT ALL col1 - + col0 * col0 AS col0 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT + col2 * col2 + - cor0.col2 * col0 FROM tab0 cor0
----
-34
-574
297

query I rowsort
SELECT ALL - cor0.col2 + - col1 * - col1 AS col1 FROM tab2 AS cor0
----
251
3455
934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 + + cor0.col1 - + col1 col1 FROM tab2 cor0
----
94
94
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-9186
SELECT DISTINCT col2 DIV col2 + + ( col0 * + col2 ) AS col2 FROM tab0 cor0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT col2 / col2 + + ( col0 * + col2 ) AS col2 FROM tab0 cor0
----
36
7299
793

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9187
SELECT - CAST( col0 AS SIGNED ) + + col1 + col1 FROM tab2
----
-45
40
55

skipif mysql # not compatible
query I rowsort label-9187
SELECT - CAST ( col0 AS INTEGER ) + + col1 + col1 FROM tab2
----
-45
40
55

query I rowsort
SELECT tab1.col1 + 12 FROM tab1
----
22
25
38

query I rowsort
SELECT DISTINCT - 16 FROM tab1, tab2, tab1 cor0
----
-16

query I rowsort
SELECT ALL 55 - col0 FROM tab2
----
-23
-24
48

query I rowsort
SELECT ALL + + col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - + 21 FROM tab0 AS cor0
----
-21
-21
-21

query I rowsort
SELECT ALL - col2 * - col2 + - cor0.col0 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT col2 * + col1 + 54 AS col0 FROM tab1 AS cor0
----
1302
1458
624

query I rowsort
SELECT ALL + col0 * col1 * + col2 + - col2 * cor0.col1 FROM tab0 AS cor0
----
3298
65274
656656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col2 + col2 col1 FROM tab2 AS cor0
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + cor0.col1 + + col0 col2 FROM tab2 AS cor0
----
134
163
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 + tab0.col0 col1 FROM tab0
----
28
39
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * + col0 + 69 col1 FROM tab1
----
231
3717
7749

query I rowsort
SELECT DISTINCT tab2.col2 * col2 + - 52 AS col1 FROM tab2
----
1392
624
677

query I rowsort
SELECT + + 85 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT DISTINCT - 44 * + 47 FROM tab1, tab1 cor0, tab0 AS cor1
----
-2068

query I rowsort
SELECT ALL - ( 32 ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7106326ae056e78044adc0aef747ef08

query I rowsort
SELECT ALL - - 86 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

onlyif mysql # use DIV operator for integer division
query I rowsort label-9205
SELECT - col0 DIV col1 - - col2 AS col2 FROM tab2 AS cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-9205
SELECT - col0 / col1 - - col2 AS col2 FROM tab2 AS cor0
----
25
27
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - col2 + - 29 col1 FROM tab2 AS cor0
----
-49
12
23

query I rowsort
SELECT ALL + 2 + + col2 AS col2 FROM tab1 AS cor0
----
56
59
98

query I rowsort
SELECT DISTINCT + col2 * + tab2.col2 AS col0 FROM tab2
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-9209
SELECT DISTINCT tab0.col2 DIV - col0 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT tab0.col2 / - col0 AS col2 FROM tab0
----
-1
0

query I rowsort
SELECT 91 * - col1 FROM tab2
----
-1547
-2821
-5369

query I rowsort
SELECT DISTINCT - + cor0.col0 + col1 * 92 * - col1 FROM tab2 AS cor0
----
-26667
-320330
-88419

onlyif mysql # use DIV operator for integer division
query I rowsort label-9212
SELECT DISTINCT + - col2 DIV 99 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT + - col2 / 99 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 * - col0 + cor0.col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT + + cor0.col2 + 18 AS col2 FROM tab2 AS cor0
----
44
45
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + 79 col2 FROM tab1 AS cor0
----
-1
15
76

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 cor2, tab1 AS cor3
----
3645 values hashing to 4b145ce61881e246723968d1ac787ac2

query I rowsort
SELECT col1 * ( 82 ) * + col1 + col0 FROM tab0 cor0
----
606496
679131
771573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + - ( 35 ) col2 FROM tab0 cor0
----
-2
-34
47

query I rowsort
SELECT + + 51 * col1 FROM tab1 AS cor0
----
1326
510
663

query I rowsort
SELECT ALL + - cor0.col1 + col1 * col0 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9221
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

skipif mysql # not compatible
query I rowsort label-9221
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

query I rowsort
SELECT DISTINCT + 17 * col1 + + cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
1519
1685
1718

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9223
SELECT ALL + + CAST( NULL AS DECIMAL ) - + cor0.col1 * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL + + CAST ( NULL AS REAL ) - + cor0.col1 * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 37 ) FROM tab0 AS cor0
----
-37
-37
-37

query I rowsort
SELECT 57 + - 92 * col2 FROM tab1 cor0
----
-4911
-5187
-8775

query I rowsort
SELECT DISTINCT - col0 + - 13 * - cor0.col2 * 0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - - col1 * - col2 - - 3 FROM tab0 AS cor0
----
-2835
-7459
-94

query I rowsort
SELECT 50 + - 33 AS col0 FROM tab0
----
17
17
17

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 68 * col0 AS REAL ) FROM tab1
----
204
4352
5440

query I rowsort
SELECT - col2 + col0 * + col2 AS col2 FROM tab1
----
108
3591
7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9231
SELECT - cor0.col2 * 49 + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9231
SELECT - cor0.col2 * 49 + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col1 + col2 + + col0 AS col1 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT DISTINCT ( 24 ) FROM tab0 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + cor0.col0 * + col0 col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL + ( 78 ) + + col0 AS col1 FROM tab0 AS cor0
----
102
113
167

query I rowsort
SELECT col0 + - col1 * - col1 + + cor0.col0 * - col2 AS col0 FROM tab0 AS cor0
----
1072
6628
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9237
SELECT ALL + col2 DIV - CAST( col0 AS SIGNED ) FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL + col2 / - CAST ( col0 AS INTEGER ) FROM tab1
----
-1
-18
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9238
SELECT DISTINCT + CAST( col0 AS SIGNED ) DIV + col0 col1 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT + CAST ( col0 AS INTEGER ) / + col0 col1 FROM tab2
----
1

query I rowsort
SELECT ALL + + cor1.col2 + 22 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 55bdbdcbcfef73f1b5693aa2329cde1b

query I rowsort
SELECT DISTINCT - ( col2 ) * + col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT + 38 * tab0.col2 AS col1 FROM tab0
----
1254
3116
38

query I rowsort
SELECT - cor0.col2 * - 21 AS col2 FROM tab2 AS cor0
----
546
567
798

onlyif mysql # use DIV operator for integer division
query I rowsort label-9243
SELECT - - col0 * col2 DIV col1 - - col2 * - col0 FROM tab1 AS cor0
----
-156
-3284
-7090

skipif mysql # not compatible
query I rowsort label-9243
SELECT - - col0 * col2 / col1 - - col2 * - col0 FROM tab1 AS cor0
----
-156
-3284
-7090

query I rowsort
SELECT 38 * - 74 FROM tab2, tab1 AS cor0
----
9 values hashing to 2d2039053dcce14be0f26326cc5dc5f1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + + 13 col1 FROM tab2 AS cor0
----
30
44
72

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab2, tab2 cor0
----
38

query I rowsort
SELECT - 93 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9248
SELECT - col1 * - CAST( col0 + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1209
740
754

skipif mysql # not compatible
query I rowsort label-9248
SELECT - col1 * - CAST ( col0 + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1209
740
754

query I rowsort
SELECT + cor0.col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + col1 * - cor0.col2 * + col0 col2 FROM tab1 AS cor0
----
-36470
-4186
-99827

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9251
SELECT ALL - - col2 + + CAST( ( col2 ) + 75 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
183
189
267

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL - - col2 + + CAST ( ( col2 ) + 75 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
183
189
267

query I rowsort
SELECT DISTINCT + + col0 - + col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT 11 + col0 FROM tab0 AS cor0
----
100
35
46

query I rowsort
SELECT ALL - + col0 * - col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - 33 - + 73 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-544
-5727
-5800

query I rowsort
SELECT ALL - - 27 - col1 FROM tab1 AS cor0
----
1
14
17

query I rowsort
SELECT 43 + 31 * col2 FROM tab0 AS cor0
----
1066
2585
74

query I rowsort
SELECT DISTINCT col2 * - 66 AS col1 FROM tab2 cor0
----
-1716
-1782
-2508

query I rowsort
SELECT ALL - cor0.col0 * + 36 AS col0 FROM tab2 AS cor0
----
-252
-2808
-2844

query I rowsort
SELECT DISTINCT 87 + + col2 FROM tab2
----
113
114
125

query I rowsort
SELECT DISTINCT - col1 + col0 * + col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT + 21 + cor0.col1 AS col2 FROM tab1 cor0
----
31
34
47

query I rowsort
SELECT - col1 * col2 + - 67 FROM tab0 AS cor0
----
-164
-2905
-7529

query I rowsort
SELECT DISTINCT col1 * col1 - 66 FROM tab1 cor0
----
103
34
610

query I rowsort
SELECT ALL - ( + col1 ) * + 23 AS col1 FROM tab1
----
-230
-299
-598

query I rowsort
SELECT DISTINCT - cor0.col1 - + cor0.col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - col1 * + col2 + + col1 * col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 * - ( 86 ) AS col0 FROM tab0 cor0
----
-7396
-7826
-8342

query I rowsort
SELECT DISTINCT col2 * - 96 - col0 AS col1 FROM tab1 AS cor0
----
-5187
-5536
-9296

query I rowsort
SELECT ALL - cor0.col2 * + ( - cor0.col1 + col2 ) FROM tab2 AS cor0
----
-798
108
858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 * col2 + - col0 * - col2 col2 FROM tab1
----
127488
36138
75978

query I rowsort
SELECT - 64 * - col1 * - col1 AS col2 FROM tab0
----
-473344
-529984
-602176

onlyif mysql # use DIV operator for integer division
query I rowsort label-9273
SELECT col1 * col0 DIV - tab1.col0 - + 30 FROM tab1
----
-40
-43
-56

skipif mysql # not compatible
query I rowsort label-9273
SELECT col1 * col0 / - tab1.col0 - + 30 FROM tab1
----
-40
-43
-56

query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab1
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + tab0.col1 ) col2 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col1 * cor0.col1 col0 FROM tab0 AS cor0
----
-636056
-753571
-912673

onlyif mysql # use DIV operator for integer division
query I rowsort label-9277
SELECT ALL - + col2 * ( - cor0.col0 ) DIV ( - col1 * - col2 ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL - + col2 * ( - cor0.col0 ) / ( - col1 * - col2 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 65 * cor0.col2 + ( 83 ) FROM tab1, tab0 cor0
----
9 values hashing to 6b9fb8c341d3d1034447a170f694112e

query I rowsort
SELECT + 52 * - 61 AS col1 FROM tab1 AS cor0
----
-3172
-3172
-3172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( + col2 ) col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ( cor0.col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + col1 * col1 * - col2 FROM tab0 cor0
----
-244068
-679042
-9409

query I rowsort
SELECT col1 * col0 + + 7 AS col2 FROM tab1 AS cor0
----
1047
647
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9284
SELECT col0 * + col0 + - 93 DIV - 57 AS col0 FROM tab1 AS cor0
----
10
4097
6401

skipif mysql # not compatible
query I rowsort label-9284
SELECT col0 * + col0 + - 93 / - 57 AS col0 FROM tab1 AS cor0
----
10
4097
6401

query I rowsort
SELECT ALL col2 - + col0 * - 72 * - col0 AS col2 FROM tab1 AS cor0
----
-294855
-460704
-594

query I rowsort
SELECT - 42 + + col1 AS col0 FROM tab0 AS cor0
----
44
49
55

query I rowsort
SELECT DISTINCT - + col0 + + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + col0 * col1 * + 61 + + col1 - + col2 AS col0 FROM tab0 AS cor0
----
125957
207191
494048

query I rowsort
SELECT DISTINCT + ( ( col1 ) * + 72 ) + + col2 FROM tab0
----
6225
6634
6985

query I rowsort
SELECT ALL 0 * col0 + col1 AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT + 61 + tab0.col1 FROM tab0
----
147
152
158

query I rowsort
SELECT DISTINCT col1 * - 0 * col1 + + ( + 67 ) FROM tab2
----
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-9293
SELECT ALL + col1 DIV col0 + 50 FROM tab0 AS cor0
----
51
52
53

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL + col1 / col0 + 50 FROM tab0 AS cor0
----
51
52
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-9294
SELECT DISTINCT - cor0.col0 DIV - col2 AS col1 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT - cor0.col0 / - col2 AS col1 FROM tab0 cor0
----
0
1
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-9295
SELECT + col2 DIV ( - col0 + col2 ) AS col2 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9295
SELECT + col2 / ( - col0 + col2 ) AS col2 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT ALL cor0.col0 + + col2 * - col2 FROM tab2 AS cor0
----
-1365
-598
-722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 35 col2 FROM tab2 AS cor0
----
1085
2065
595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + col0 col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - - col0 * + 78 AS col2 FROM tab1 AS cor0
----
234
4992
6240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9300
SELECT DISTINCT cor0.col0 * CAST( col2 AS SIGNED ) FROM tab1 cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT cor0.col0 * CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL + - col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-9302
SELECT DISTINCT + 99 * - tab1.col2 DIV col2 AS col1 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT + 99 * - tab1.col2 / col2 AS col1 FROM tab1
----
-99

query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab0, tab2, tab2 AS cor0, tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 + + tab0.col0 * + col0 col0 FROM tab0
----
1287
638
7983

query I rowsort
SELECT + tab2.col2 * col1 + - col0 AS col1 FROM tab2
----
1456
567
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 93 + + 12 + - col0 col1 FROM tab0
----
7986
8386
8998

query I rowsort
SELECT + tab2.col2 - - ( col0 ) FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * tab2.col0 col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - + col2 + col1 * + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT 54 AS col2 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * ( cor0.col2 ) col0 FROM tab0 AS cor0
----
2904
7216
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9312
SELECT - CAST( col2 AS SIGNED ) + col1 col1 FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9312
SELECT - CAST ( col2 AS INTEGER ) + col1 col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT col1 + - tab1.col2 * tab1.col2 FROM tab1
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-9314
SELECT ALL + col0 DIV 24 AS col1 FROM tab2
----
0
3
3

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL + col0 / 24 AS col1 FROM tab2
----
0
3
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9315
SELECT DISTINCT + CAST( 74 AS SIGNED ) FROM tab0, tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT + CAST ( 74 AS INTEGER ) FROM tab0, tab0 AS cor0
----
74

query I rowsort
SELECT 31 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT ALL - 8 FROM tab1, tab0, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to 7dc47101491db34faf0db8325a6ac276

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9318
SELECT ALL col1 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL col1 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 10 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ( 26 ) * tab1.col1 AS col1 FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to 299f80378546423a801a6e7852a3c1cf

query I rowsort
SELECT ALL + tab2.col0 FROM tab2, tab2 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT ALL 50 * 12 + col1 + - col1 AS col2 FROM tab2
----
600
600
600

onlyif mysql # use DIV operator for integer division
query I rowsort label-9323
SELECT col1 DIV - 81 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9323
SELECT col1 / - 81 FROM tab2
----
0
0
0

query I rowsort
SELECT - 97 + + col1 + - col2 FROM tab2 AS cor0
----
-118
-64
-93

query I rowsort
SELECT cor0.col1 + 27 + col2 * col0 FROM tab1 AS cor0
----
215
3685
7720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9326
SELECT - CAST( NULL AS SIGNED ) + + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT - CAST ( NULL AS INTEGER ) + + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9327
SELECT - + CAST( NULL AS SIGNED ) * - cor0.col2 * cor0.col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT - + CAST ( NULL AS INTEGER ) * - cor0.col2 * cor0.col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 51 + - col2 col2 FROM tab1 AS cor0
----
2700
2850
4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 col2 FROM tab2 AS cor0
----
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9330
SELECT ALL + CAST( - col1 AS SIGNED ) * - cor0.col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL + CAST ( - col1 AS INTEGER ) * - cor0.col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL + + col1 * 80 FROM tab1 AS cor0
----
1040
2080
800

query I rowsort
SELECT ALL - col2 * 42 FROM tab2 AS cor0
----
-1092
-1134
-1596

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9333
SELECT + + CAST( NULL AS SIGNED ) + + 89 + cor0.col0 * col0 / - 99 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT + + CAST ( NULL AS INTEGER ) + + 89 + cor0.col0 * col0 / - 99 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + col1 FROM tab2 cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-9335
SELECT ALL 86 + col2 DIV col1 AS col1 FROM tab1 cor0
----
88
91
93

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL 86 + col2 / col1 AS col1 FROM tab1 cor0
----
88
91
93

query I rowsort
SELECT ALL + - 12 + col1 * 97 FROM tab2 cor0
----
1637
2995
5711

query I rowsort
SELECT DISTINCT - 97 - cor0.col1 * 73 FROM tab0 AS cor0
----
-6375
-6740
-7178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 * - col2 + + col0 + col0 col2 FROM tab1 AS cor0
----
119968
32618
75822

query I rowsort
SELECT + 20 + col2 FROM tab0 AS cor0
----
102
21
53

query I rowsort
SELECT ALL - col1 + + col0 + 53 FROM tab2 AS cor0
----
115
29
72

query I rowsort
SELECT DISTINCT - col1 * - col0 + + col1 * col0 FROM tab2 AS cor0
----
2686
434
9204

onlyif mysql # use DIV operator for integer division
query I rowsort label-9342
SELECT ALL + col1 + col1 DIV col0 AS col2 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL + col1 + col1 / col0 AS col2 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT DISTINCT - + col2 + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + col1 + 4 AS col2 FROM tab2 AS cor0
----
21
35
63

query I rowsort
SELECT ALL + + col2 * - ( - 4 ) FROM tab1 AS cor0
----
216
228
384

query I rowsort
SELECT DISTINCT cor0.col0 * col2 + - 19 FROM tab1 AS cor0
----
143
3629
7661

query I rowsort
SELECT + + col1 * + col2 * col0 FROM tab2 cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-9348
SELECT + - col2 DIV - cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9348
SELECT + - col2 / - cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - cor0.col0 * col1 + 54 AS col0 FROM tab2 AS cor0
----
-1289
-163
-4548

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * cor0.col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT 84 AS col0 FROM tab1
----
84

query I rowsort
SELECT col1 * col0 * ( + col2 ) AS col1 FROM tab2 cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 * col1 col2 FROM tab0 AS cor0
----
5332
5642
6014

query I rowsort
SELECT - cor0.col0 * col0 + + col2 AS col2 FROM tab0 cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT + + col1 + + 11 * 19 FROM tab0 cor0
----
295
300
306

query I rowsort
SELECT - col0 + + ( + cor0.col2 * - ( - col1 ) ) FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT 95 * col2 + - col0 FROM tab0 AS cor0
----
3111
60
7701

onlyif mysql # use DIV operator for integer division
query I rowsort label-9358
SELECT - cor0.col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-9358
SELECT - cor0.col1 / col0 AS col2 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT + 76 FROM tab2, tab1 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT + cor1.col2 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL + 43 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9362
SELECT + + ( - col2 ) * col2 DIV 92 FROM tab2 AS cor0
----
-15
-7
-7

skipif mysql # not compatible
query I rowsort label-9362
SELECT + + ( - col2 ) * col2 / 92 FROM tab2 AS cor0
----
-15
-7
-7

query I rowsort
SELECT - - cor0.col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - 35 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT + ( + ( col1 ) ) * + col2 AS col1 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( ( + col2 ) AS REAL ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + + 6 * col0 AS col2 FROM tab0 AS cor0
----
144
210
534

query I rowsort
SELECT DISTINCT - tab2.col2 * tab2.col2 AS col1 FROM tab2
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-9370
SELECT ALL ( - col1 ) DIV + 80 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL ( - col1 ) / + 80 FROM tab0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9371
SELECT + cor0.col0 DIV + col0 col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9371
SELECT + cor0.col0 / + col0 col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col0 + col0 * - ( col1 ) * - col0 FROM tab1 cor0
----
237
41024
83280

onlyif mysql # use DIV operator for integer division
query I rowsort label-9373
SELECT - - col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9373
SELECT - - col2 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - tab1.col1 - + 22 FROM tab1
----
-32
-35
-48

query I rowsort
SELECT ALL 7 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT + col1 + ( col2 ) * col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - + col1 * + col2 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT + col0 * - 54 FROM tab1 AS cor0
----
-162
-3456
-4320

query I rowsort
SELECT DISTINCT - col2 * col0 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT ALL - 29 + col1 AS col0 FROM tab1 AS cor0
----
-16
-19
-3

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) - - col1 AS col2 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT + - 69 * col0 + + col1 FROM tab1 AS cor0
----
-181
-4406
-5507

query I rowsort
SELECT ALL 73 * cor0.col0 + + col0 AS col1 FROM tab2 AS cor0
----
518
5772
5846

onlyif mysql # use DIV operator for integer division
query I rowsort label-9384
SELECT - 40 * 59 + col2 DIV col2 AS col0 FROM tab1 AS cor0
----
-2359
-2359
-2359

skipif mysql # not compatible
query I rowsort label-9384
SELECT - 40 * 59 + col2 / col2 AS col0 FROM tab1 AS cor0
----
-2359
-2359
-2359

query I rowsort
SELECT col2 * col2 * col1 + - ( col2 ) FROM tab2 AS cor0
----
22572
24510
39858

query I rowsort
SELECT ALL - - 39 + col0 FROM tab1 AS cor0
----
103
119
42

query I rowsort
SELECT DISTINCT + - ( - col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL 56 + col1 FROM tab1 AS cor0
----
66
69
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9389
SELECT DISTINCT - CAST( + ( - col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT - CAST ( + ( - col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - 44 AS col1 FROM tab2 cor0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT + col1 - + tab1.col1 * tab1.col0 AS col0 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT ALL + 48 * - col2 + + col1 FROM tab2 AS cor0
----
-1189
-1265
-1807

query I rowsort
SELECT DISTINCT ( - col2 ) + cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-9394
SELECT DISTINCT ( + col0 ) DIV - col0 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT ( + col0 ) / - col0 AS col1 FROM tab2 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9395
SELECT col0 + + col1 + - cor0.col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
109
131
179

skipif mysql # not compatible
query I rowsort label-9395
SELECT col0 + + col1 + - cor0.col0 / + col0 AS col2 FROM tab0 AS cor0
----
109
131
179

query I rowsort
SELECT - col1 * col2 - col1 FROM tab2 cor0
----
-1593
-663
-868

query I rowsort
SELECT col0 + - tab1.col2 + + col0 FROM tab1
----
-48
64
71

query I rowsort
SELECT - ( + col0 ) * tab2.col1 * + col1 AS col2 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT - - 99 AS col0 FROM tab1 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * col0 * cor0.col2 + + col1 col2 FROM tab2 AS cor0
----
1354
158243
237175

query I rowsort
SELECT ALL - 61 + + col0 * col0 FROM tab2 AS cor0
----
-12
6023
6180

query I rowsort
SELECT + 21 FROM tab1, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT 24 * 83 FROM tab2 AS cor0
----
1992
1992
1992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + cor0.col2 col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-9405
SELECT DISTINCT + col2 DIV + col0 + + col2 FROM tab2 cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT + col2 / + col0 + + col2 FROM tab2 cor0
----
26
30
38

query I rowsort
SELECT ALL 71 - + col1 AS col0 FROM tab0 AS cor0
----
-15
-20
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-9407
SELECT ALL + - col2 * - col1 + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
1535
647
838

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL + - col2 * - col1 + col1 / col1 AS col0 FROM tab2 AS cor0
----
1535
647
838

query I rowsort
SELECT DISTINCT col2 * col2 * cor0.col2 + col1 FROM tab1 AS cor0
----
157490
185203
884749

onlyif mysql # use DIV operator for integer division
query I rowsort label-9409
SELECT ALL - + col0 DIV col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL - + col0 / col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT DISTINCT + + 98 * col0 + cor0.col0 FROM tab1 AS cor0
----
297
6336
7920

query I rowsort
SELECT ALL - ( - col2 ) * cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - cor0.col2 + + col1 * + col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT DISTINCT + cor0.col0 + + col1 * + col2 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT - ( + col2 ) + col0 AS col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT tab0.col2 + + 87 * + col2 FROM tab0
----
2904
7216
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-9416
SELECT + col1 DIV col1 - tab0.col0 * tab0.col2 AS col1 FROM tab0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-9416
SELECT + col1 / col1 - tab0.col0 * tab0.col2 AS col1 FROM tab0
----
-34
-7297
-791

onlyif mysql # use DIV operator for integer division
query I rowsort label-9417
SELECT tab2.col2 * - col2 - tab2.col0 * tab2.col1 DIV - col1 col1 FROM tab2
----
-1365
-598
-722

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9417
SELECT tab2.col2 * - col2 - tab2.col0 * tab2.col1 / - col1 col1 FROM tab2
----
-1365
-598
-722

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - tab1.col0 + - tab1.col0 * - col2 FROM tab1
----
159
3584
7600

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9422
SELECT ALL tab2.col1 DIV tab2.col1 + col2 * + col2 FROM tab2
----
1445
677
730

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL tab2.col1 / tab2.col1 + col2 * + col2 FROM tab2
----
1445
677
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-9423
SELECT DISTINCT col0 DIV + col0 + - tab0.col0 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT col0 / + col0 + - tab0.col0 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT DISTINCT col1 + col0 * - col1 AS col0 FROM tab2
----
-1326
-186
-4543

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( tab0.col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN col1 AND + col2
----

query I rowsort
SELECT ALL - col2 * - col1 * col0 + col2 * + col2 FROM tab1
----
109056
39729
7128

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL > col0
----

query I rowsort
SELECT ALL col0 + + tab0.col2 * + col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT DISTINCT + col1 * - col2 + - col2 * - col0 FROM tab1
----
-1242
3078
6432

query I rowsort
SELECT tab1.col2 - - tab1.col2 AS col0 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT - col1 * - col1 + + col2 FROM tab1
----
157
265
730

query I rowsort
SELECT + col0 + - col1 + + col2 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT - col1 * col0 * cor0.col2 + + col1 + col2 AS col0 FROM tab2 AS cor0
----
-119567
-50979
-5801

query I rowsort
SELECT DISTINCT + col0 + + tab1.col0 AS col1 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT col1 + col0 + col0 AS col2 FROM tab2
----
175
215
45

query I rowsort
SELECT col1 + + col1 * col1 AS col1 FROM tab0
----
7482
8372
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 + - col0 col1 FROM tab0
----
0

query I rowsort
SELECT col2 * - col0 * col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT ALL col2 + tab1.col2 * col2 AS col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT + tab1.col2 + col0 * col0 AS col0 FROM tab1
----
4153
63
6496

query I rowsort
SELECT DISTINCT tab1.col0 + col1 * - col2 AS col0 FROM tab1
----
-1168
-1401
-506

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 + col2 + + col0 * col2 * - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + tab0.col2 col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * - col0 * col1 AS col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT col1 * - col0 + col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1488
-178
-2170

query I rowsort
SELECT ALL + col1 * col0 + col2 AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT col1 + + col2 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT + - col2 + col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + + col0 * + cor0.col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - col1 + tab0.col1 * + col2 AS col1 FROM tab0
----
0
2752
7371

query I rowsort
SELECT tab0.col2 * ( + 95 ) AS col0 FROM tab0
----
3135
7790
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9454
SELECT + col0 * - CAST( NULL AS SIGNED ) * 38 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9454
SELECT + col0 * - CAST ( NULL AS INTEGER ) * 38 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - 62 * + tab0.col2 FROM tab0
----
-2013
-5002
-61

query I rowsort
SELECT col0 - col2 * - 87 FROM tab0
----
122
2895
7223

query I rowsort
SELECT DISTINCT + 39 + + tab1.col0 AS col0 FROM tab1, tab2 AS cor0
----
103
119
42

query I rowsort
SELECT DISTINCT + col2 + 83 FROM tab2
----
109
110
121

query I rowsort
SELECT - 79 * cor0.col0 + col2 FROM tab1 AS cor0
----
-183
-4999
-6224

query I rowsort
SELECT - 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 + 3 * 30 + - col2 col1 FROM tab0 AS cor0
----
57
8
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 64 ) col1 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT 54 + 35 FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT DISTINCT - - 63 + 82 + + cor0.col0 AS col1 FROM tab2 cor0
----
152
223
224

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9465
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9466
SELECT DISTINCT cor0.col1 DIV + col1 + col0 col0 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT cor0.col1 / + col1 + col0 col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL + + 85 + - 31 * col0 * - col1 AS col1 FROM tab1 AS cor0
----
19925
2503
32325

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9468
SELECT DISTINCT - col1 * + col0 * - col0 + - CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT - col1 * + col0 * - col0 + - CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT col0 * cor0.col2 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + - 86 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT + + ( + col0 ) * + col2 + + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT + 49 - + col0 AS col2 FROM tab1 AS cor0
----
-15
-31
46

query I rowsort
SELECT + col1 + - col2 * - 23 FROM tab0 AS cor0
----
120
1977
845

query I rowsort
SELECT - + col1 + + cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
2890
3239
9203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9475
SELECT ALL cor0.col0 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9476
SELECT ALL + + col1 + col1 * col1 + + cor0.col2 DIV col0 FROM tab1 AS cor0
----
110
183
720

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL + + col1 + col1 * col1 + + cor0.col2 / col0 FROM tab1 AS cor0
----
110
183
720

query I rowsort
SELECT + col0 + + 67 FROM tab0 AS cor0
----
102
156
91

query I rowsort
SELECT + - cor0.col0 + - col0 * + ( - col1 + - col0 ) AS col2 FROM tab1 AS cor0
----
4672
7360
84

query I rowsort
SELECT col0 + ( col2 ) + cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2007
-3359
-7928

query I rowsort
SELECT ALL + + col2 * + 49 AS col0 FROM tab1 AS cor0
----
2646
2793
4704

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9481
SELECT ALL + col2 + + CAST( NULL AS DECIMAL ) * - col1 * col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL + col2 + + CAST ( NULL AS REAL ) * - col1 * col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - col0 * - ( col0 * + col1 ) FROM tab1 AS cor0
----
180
40903
83104

onlyif mysql # use DIV operator for integer division
query I rowsort label-9483
SELECT + col2 + 22 DIV - col1 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-9483
SELECT + col2 + 22 / - col1 AS col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9484
SELECT DISTINCT + col2 DIV 86 - cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT + col2 / 86 - cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9485
SELECT ALL + + col2 * - CAST( 85 AS SIGNED ) AS col0 FROM tab0 cor0
----
-2805
-6970
-85

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL + + col2 * - CAST ( 85 AS INTEGER ) AS col0 FROM tab0 cor0
----
-2805
-6970
-85

query I rowsort
SELECT + col1 + 60 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1354
-2003
-5249

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9487
SELECT DISTINCT + + col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT DISTINCT + + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9488
SELECT DISTINCT - - col2 DIV + 97 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT - - col2 / + 97 FROM tab0 AS cor0
----
0

query I rowsort
SELECT cor0.col0 + 56 AS col1 FROM tab2 AS cor0
----
134
135
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-9490
SELECT ALL - + col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL - + col2 / - col2 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + col2 * + 2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL col2 * + col0 * - col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - col1 * - col0 + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - col1 + - col1 + - col2 * col1 FROM tab1 AS cor0
----
-1274
-1456
-590

query I rowsort
SELECT ALL + 64 * col2 + cor0.col2 AS col1 FROM tab2 cor0
----
1690
1755
2470

query I rowsort
SELECT DISTINCT + cor0.col1 - - col2 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - 88 + - col0 col1 FROM tab0 AS cor0
----
7544
7919
8501

query I rowsort
SELECT DISTINCT - col1 + col1 * tab0.col1 * col0 FROM tab0
----
177418
329218
736918

query I rowsort
SELECT - cor0.col0 * - col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + col1 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT DISTINCT + 62 + tab1.col2 FROM tab1, tab0, tab2 AS cor0
----
116
119
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-9504
SELECT DISTINCT - 48 DIV + tab2.col1 - - 89 AS col2 FROM tab2
----
87
88
89

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT - 48 / + tab2.col1 - - 89 AS col2 FROM tab2
----
87
88
89

query I rowsort
SELECT ALL + col0 * - col0 + col2 - tab2.col0 FROM tab2
----
-29
-6136
-6282

onlyif mysql # use DIV operator for integer division
query I rowsort label-9506
SELECT ALL col1 DIV - col0 + + 15 + ( col1 ) AS col0 FROM tab2
----
32
42
74

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL col1 / - col0 + + 15 + ( col1 ) AS col0 FROM tab2
----
32
42
74

query I rowsort
SELECT DISTINCT col1 + + col2 - + ( + tab1.col2 ) * - col0 FROM tab1
----
242
3715
7789

query I rowsort
SELECT ALL + + col0 + + col2 * - col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - col0 - - cor0.col0 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9510
SELECT col2 * col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT col2 * col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( col1 ) * - col1 + 54 AS col2 FROM tab0
----
7450
8335
9463

query I rowsort
SELECT + col0 + col1 * - 87 AS col0 FROM tab0 AS cor0
----
-7458
-7828
-8404

query I rowsort
SELECT 11 * col0 - - cor0.col2 FROM tab1 AS cor0
----
761
87
976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9514
SELECT 87 + + col1 * + CAST( - cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
-10
-2751
-7375

skipif mysql # not compatible
query I rowsort label-9514
SELECT 87 + + col1 * + CAST ( - cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
-10
-2751
-7375

query I rowsort
SELECT DISTINCT + 38 + + col2 AS col2 FROM tab2 AS cor0
----
64
65
76

query I rowsort
SELECT ALL + 38 + col2 AS col0 FROM tab2 AS cor0
----
64
65
76

query I rowsort
SELECT - 11 + - tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 6916deced4a4d1b7655f261c5139931f

query I rowsort
SELECT ( + 1 ) * col2 + col0 * 27 FROM tab0
----
2485
681
946

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL + - cor0.col0 * col2 * + col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT + col1 + - col1 * - 33 FROM tab0 AS cor0
----
2924
3094
3298

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9522
SELECT col0 * - col0 * ( col2 * + col0 + + CAST( - col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-442368
-57102489
0

skipif mysql # not compatible
query I rowsort label-9522
SELECT col0 * - col0 * ( col2 * + col0 + + CAST ( - col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-442368
-57102489
0

query I rowsort
SELECT DISTINCT - col2 * col1 + - col0 + + col2 FROM tab1 AS cor0
----
-1232
-1353
-577

query I rowsort
SELECT + 21 * col1 FROM tab0 AS cor0
----
1806
1911
2037

query I rowsort
SELECT ALL col0 + - ( + col2 ) AS col2 FROM tab2
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9526
SELECT col0 + + CAST( 72 AS SIGNED ) * + col1 col0 FROM tab1
----
1016
1875
784

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9526
SELECT col0 + + CAST ( 72 AS INTEGER ) * + col1 col0 FROM tab1
----
1016
1875
784

query I rowsort
SELECT ALL col2 + 7 * + col0 FROM tab1
----
505
656
75

query I rowsort
SELECT col0 * - ( tab2.col1 ) AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT - col2 * col0 + 2 + col0 FROM tab1
----
-157
-3582
-7598

onlyif mysql # use DIV operator for integer division
query I rowsort label-9530
SELECT DISTINCT col1 * - col0 + 74 DIV col2 AS col1 FROM tab0
----
-2062
-3321
-8099

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT col1 * - col0 + 74 / col2 AS col1 FROM tab0
----
-2062
-3321
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-9531
SELECT tab0.col1 + 90 DIV ( col2 ) AS col2 FROM tab0
----
187
88
92

skipif mysql # not compatible
query I rowsort label-9531
SELECT tab0.col1 + 90 / ( col2 ) AS col2 FROM tab0
----
187
88
92

query I rowsort
SELECT ALL - 55 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # use DIV operator for integer division
query I rowsort label-9533
SELECT ALL + col0 + col1 DIV - col0 FROM tab1 AS cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL + col0 + col1 / - col0 FROM tab1 AS cor0
----
-5
64
80

query I rowsort
SELECT DISTINCT 4 AS col0 FROM tab0, tab0 AS cor0
----
4

query I rowsort
SELECT DISTINCT - col2 + col1 * col2 * col1 FROM tab1
----
16128
36450
5643

onlyif mysql # use DIV operator for integer division
query I rowsort label-9536
SELECT ALL col1 DIV ( - ( tab2.col0 ) ) + col2 col2 FROM tab2
----
23
26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL col1 / ( - ( tab2.col0 ) ) + col2 col2 FROM tab2
----
23
26
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9537
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + 4 * cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + 4 * cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 + col1 + + col2 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT col2 + 85 AS col2 FROM tab0 AS cor0
----
118
167
86

query I rowsort
SELECT ALL + ( 66 ) + col0 FROM tab0 AS cor0
----
101
155
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-9541
SELECT - 58 + - 30 DIV col0 AS col0 FROM tab0 AS cor0
----
-58
-58
-59

skipif mysql # not compatible
query I rowsort label-9541
SELECT - 58 + - 30 / col0 AS col0 FROM tab0 AS cor0
----
-58
-58
-59

query I rowsort
SELECT + - 46 AS col0 FROM tab0 cor0
----
-46
-46
-46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9543
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - col0 + cor0.col0 * + 10 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - col0 + cor0.col0 * + 10 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 94 * col1 AS col2 FROM tab0
----
-8084
-8554
-9118

query I rowsort
SELECT ALL - col1 * - col2 + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - cor0.col1 + + 44 AS col0 FROM tab0 AS cor0
----
-42
-47
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col1 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT ALL - col1 + - cor0.col1 FROM tab0 cor0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-9549
SELECT + ( - 92 ) + col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-9549
SELECT + ( - 92 ) + col1 / col1 AS col0 FROM tab1 AS cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT col1 * + ( col1 ) + - col0 + col2 FROM tab0 AS cor0
----
7405
8274
9375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 * col0 col2 FROM tab0 AS cor0
----
-1295
-3293
-888

query I rowsort
SELECT + + 88 + col2 AS col2 FROM tab2 AS cor0
----
114
115
126

query I rowsort
SELECT ALL + 40 * col0 FROM tab2 AS cor0
----
280
3120
3160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 47 * + col2 + - col0 col0 FROM tab2 cor0
----
1144
1262
1707

query I rowsort
SELECT - - 91 * - col2 FROM tab1 AS cor0
----
-4914
-5187
-8736

onlyif mysql # use DIV operator for integer division
query I rowsort label-9556
SELECT DISTINCT - 84 DIV col2 + col2 AS col2 FROM tab0 AS cor0
----
-83
31
81

skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT - 84 / col2 + col2 AS col2 FROM tab0 AS cor0
----
-83
31
81

query I rowsort
SELECT DISTINCT ( - col0 ) * col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT 23 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + col2 * + ( + col2 ) * + col2 FROM tab1
----
157464
185193
884736

query I rowsort
SELECT DISTINCT - + cor0.col2 * - cor0.col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT - + 60 + 48 * col1 FROM tab1 cor0
----
1188
420
564

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + 12 AS REAL ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT - 22 AS col0 FROM tab0 AS cor0
----
-22
-22
-22

query I rowsort
SELECT - col1 + col0 * + col0 * col0 FROM tab1 AS cor0
----
1
262134
511987

query I rowsort
SELECT - - col2 + col2 * 21 AS col1 FROM tab1 AS cor0
----
1188
1254
2112

query I rowsort
SELECT + col1 + 6 * + col0 FROM tab2 AS cor0
----
491
527
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-9567
SELECT col2 * cor0.col1 - + cor0.col2 DIV col2 FROM tab1 AS cor0
----
1247
1403
569

skipif mysql # not compatible
query I rowsort label-9567
SELECT col2 * cor0.col1 - + cor0.col2 / col2 FROM tab1 AS cor0
----
1247
1403
569

query I rowsort
SELECT DISTINCT + col0 + 21 * col1 AS col1 FROM tab0 cor0
----
1830
2000
2072

query I rowsort
SELECT col0 * 48 FROM tab0 AS cor0
----
1152
1680
4272

query I rowsort
SELECT + col0 + + 7 FROM tab2 AS cor0
----
14
85
86

query I rowsort
SELECT - col2 * - col0 * + col0 - - col2 * + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-7128
1190
51086

query I rowsort
SELECT + col2 - ( - col2 ) * + cor0.col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT + cor0.col2 * 98 AS col2 FROM tab1 AS cor0
----
5292
5586
9408

query I rowsort
SELECT + col2 * cor0.col1 + + col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + - 15 * - col2 + col1 FROM tab1 AS cor0
----
1453
836
865

query I rowsort
SELECT ALL + col0 + tab0.col0 * 37 + - col2 FROM tab0
----
1329
3300
879

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9577
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9577
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9578
SELECT ALL + col2 * CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9579
SELECT + - col2 + ( + col0 ) DIV col0 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-9579
SELECT + - col2 + ( + col0 ) / col0 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT DISTINCT + col2 * 70 AS col0 FROM tab1 AS cor0
----
3780
3990
6720

onlyif mysql # use DIV operator for integer division
query I rowsort label-9581
SELECT DISTINCT + col1 * col0 DIV + 49 FROM tab0 AS cor0
----
165
42
69

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT + col1 * col0 / + 49 FROM tab0 AS cor0
----
165
42
69

query I rowsort
SELECT ( col2 ) * 34 FROM tab2
----
1292
884
918

query I rowsort
SELECT DISTINCT + 44 * - col1 AS col1 FROM tab1
----
-1144
-440
-572

query I rowsort
SELECT + col1 + + tab0.col1 * + ( - tab0.col0 ) AS col1 FROM tab0
----
-1978
-3298
-8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9585
SELECT ALL + col0 + - col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL + col0 + - col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 92 AS col0 FROM tab1
----
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-9587
SELECT col0 DIV + 95 - 35 AS col0 FROM tab0
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-9587
SELECT col0 / + 95 - 35 AS col0 FROM tab0
----
-35
-35
-35

query I rowsort
SELECT + - col1 + col2 * cor0.col0 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9589
SELECT + + col1 * CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9589
SELECT + + col1 * CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9590
SELECT - col0 + - col0 DIV 24 FROM tab0 AS cor0
----
-25
-36
-92

skipif mysql # not compatible
query I rowsort label-9590
SELECT - col0 + - col0 / 24 FROM tab0 AS cor0
----
-25
-36
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 26 col2 FROM tab0 AS cor0
----
60
65
71

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 >= - col2 + - col0
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT + col0 + col2 * col1 AS col2 FROM tab1
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-9595
SELECT DISTINCT col2 DIV col0 + col1 col2 FROM tab1
----
10
14
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT col2 / col0 + col1 col2 FROM tab1
----
10
14
44

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 >= col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 NOT IN ( col0 )
----

query I rowsort
SELECT tab0.col1 * col1 * col2 + + col0 FROM tab0
----
244092
679131
9444

query I rowsort
SELECT DISTINCT - col0 * + tab2.col2 + - col2 * tab2.col0 FROM tab2
----
-378
-4056
-6004

query I rowsort
SELECT - col1 + - col1 * - col1 AS col2 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( col0 ) < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( col2 * + col0 + + col2 * col0 * col0 )
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT col2 >= + col2 * + col2 + - col2
----
24
89

query I rowsort
SELECT ALL col0 * - col2 * - col0 + - tab2.col1 FROM tab2
----
1292
158125
237141

query I rowsort
SELECT DISTINCT + tab2.col0 * + col1 * + col0 + col0 * + col0 FROM tab2
----
112338
1568
365040

query I rowsort
SELECT col2 * - col0 * col2 + col1 * tab0.col2 * col0 - col1 FROM tab0
----
3263
41890
65591

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > - col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9608
SELECT col2 + col1 + col2 DIV col1 col0 FROM tab2
----
57
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9608
SELECT col2 + col1 + col2 / col1 col0 FROM tab2
----
57
58
85

query I rowsort
SELECT - ( + col0 ) - col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2, tab2 cor0 WHERE NULL > NULL
----

query I rowsort
SELECT + ( + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 < col0
----
24
86
33

query I rowsort
SELECT 19 + + col1 FROM tab0 AS cor0
----
105
110
116

query I rowsort
SELECT DISTINCT + 95 + col1 + + 26 AS col2 FROM tab0 AS cor0
----
207
212
218

query I rowsort
SELECT ALL - + col0 + + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) + ( col1 ) col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT - col1 * col2 - 32 AS col0 FROM tab1 AS cor0
----
-1280
-1436
-602

query I rowsort
SELECT 14 * col0 FROM tab0 AS cor0
----
1246
336
490

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9619
SELECT - + 48 + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9619
SELECT - + 48 + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * ( - 56 ) FROM tab1 AS cor0
----
-3024
-3192
-5376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + 48 col0 FROM tab2 AS cor0
----
-1248
-1296
-1824

onlyif mysql # use DIV operator for integer division
query I rowsort label-9622
SELECT ALL col1 DIV - 40 + col1 FROM tab2 AS cor0
----
17
31
58

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL col1 / - 40 + col1 FROM tab2 AS cor0
----
17
31
58

query I rowsort
SELECT col1 * col2 + + ( + tab0.col2 ) * + col1 - + col2 * col0 AS col1 FROM tab0
----
159
4884
7626

query I rowsort
SELECT DISTINCT + 51 * col1 AS col1 FROM tab2
----
1581
3009
867

query I rowsort
SELECT 62 * cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d8c0f02de1722cd24bfd0311399d94be

onlyif mysql # use DIV operator for integer division
query I rowsort label-9626
SELECT col0 DIV + 67 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9626
SELECT col0 / + 67 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9627
SELECT DISTINCT cor0.col0 DIV + col2 col0 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT cor0.col0 / + col2 col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + col1 * + 16 FROM tab0 AS cor0
----
1376
1456
1552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9629
SELECT - CAST( NULL AS SIGNED ) * - cor0.col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT - CAST ( NULL AS INTEGER ) * - cor0.col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( 25 ) AS col2 FROM tab1, tab1 AS cor0
----
-25

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT DISTINCT + ( + 50 ) + col2 * - col0 AS col0 FROM tab0 cor0
----
-7248
-742
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( ( + col0 ) ) col2 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT - col2 * col2 + + 67 FROM tab1 AS cor0
----
-2849
-3182
-9149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 + col1 col0 FROM tab0 AS cor0
----
88
93
99

query I rowsort
SELECT - ( + 21 ) FROM tab1
----
-21
-21
-21

query I rowsort
SELECT + 55 * - cor0.col1 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to f1aabbbfea3fa6eeb643f6f7f6d123d6

query I rowsort
SELECT ALL 6 * 39 AS col2 FROM tab0
----
234
234
234

query I rowsort
SELECT + - 97 * + col0 AS col1 FROM tab2 cor0
----
-679
-7566
-7663

onlyif mysql # use DIV operator for integer division
query I rowsort label-9640
SELECT DISTINCT - col2 DIV + 51 + 54 AS col1 FROM tab0 AS cor0
----
53
54

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT - col2 / + 51 + 54 AS col1 FROM tab0 AS cor0
----
53
54

query I rowsort
SELECT ALL - + col2 + + col2 - cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9642
SELECT + col1 + CAST( + 61 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
1645
1678
2335

skipif mysql # not compatible
query I rowsort label-9642
SELECT + col1 + CAST ( + 61 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
1645
1678
2335

query I rowsort
SELECT DISTINCT + col2 * - col1 * - 24 + - col0 AS col2 FROM tab2 cor0
----
15425
20081
36738

query I rowsort
SELECT ALL - col1 + - col1 - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-2146
-251
-3036

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 - col0 col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - - col0 + 16 AS col2 FROM tab1 cor0
----
19
80
96

query I rowsort
SELECT DISTINCT - cor0.col1 + 76 FROM tab2 cor0
----
17
45
59

query I rowsort
SELECT - col2 * col2 + + col1 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-9649
SELECT - + col0 + - cor0.col0 DIV col0 + + cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9649
SELECT - + col0 + - cor0.col0 / col0 + + cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + cor0.col2 * - 42 AS col1 FROM tab2 AS cor0
----
-1092
-1134
-1596

query I rowsort
SELECT cor0.col0 * col1 + 69 + - col2 FROM tab0 AS cor0
----
2100
3463
8086

query I rowsort
SELECT ALL 9 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT - tab2.col2 * - 87 * + col2 AS col1 FROM tab2
----
125628
58812
63423

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab1 cor1, tab0 AS cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a

query I rowsort
SELECT ALL - 52 * - cor0.col0 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to c0b781d06e1af43437c8bc5017e4e658

query I rowsort
SELECT + col0 + + col1 + col0 * 49 * - col2 FROM tab2 AS cor0
----
-147002
-9223
-99235

query I rowsort
SELECT + 72 * + col2 FROM tab1 AS cor0
----
3888
4104
6912

query I rowsort
SELECT + + cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - col1 + + col2 + tab1.col1 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9660
SELECT DISTINCT - col1 + + 45 DIV tab2.col1 FROM tab2
----
-15
-30
-59

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT - col1 + + 45 / tab2.col1 FROM tab2
----
-15
-30
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 - tab2.col0 col0 FROM tab2
----
-167
-168
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9662
SELECT 66 * - tab1.col1 DIV col1 + + col2 FROM tab1
----
-12
-9
30

skipif mysql # not compatible
query I rowsort label-9662
SELECT 66 * - tab1.col1 / col1 + + col2 FROM tab1
----
-12
-9
30

query I rowsort
SELECT DISTINCT + 55 - - tab2.col2 FROM tab2
----
81
82
93

query I rowsort
SELECT - col2 + col0 + 95 FROM tab2
----
136
147
75

query I rowsort
SELECT - 44 * tab1.col2 FROM tab1
----
-2376
-2508
-4224

query I rowsort
SELECT DISTINCT 10 * + col2 * col1 + 72 * col2 AS col2 FROM tab2
----
10314
17212
9196

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9667
SELECT DISTINCT - col0 + col1 + + CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
148
159
93

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT - col0 + col1 + + CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
148
159
93

query I rowsort
SELECT ALL - 74 + col2 * col2 FROM tab2
----
1370
602
655

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 + tab0.col0 col0 FROM tab0
----
111
46
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col1 * col2 + col2 col1 FROM tab1
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9671
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9672
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1 FROM tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 * - tab1.col2 + - tab1.col1 FROM tab1
----
1235
1378
560

query I rowsort
SELECT + col1 + + col1 * - tab2.col1 AS col1 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT - 70 * col0 AS col1 FROM tab0
----
-1680
-2450
-6230

onlyif mysql # use DIV operator for integer division
query I rowsort label-9676
SELECT DISTINCT col2 * col0 + 0 DIV + col0 AS col2 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-9676
SELECT DISTINCT col2 * col0 + 0 / + col0 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT col1 * 46 AS col0 FROM tab1
----
1196
460
598

query I rowsort
SELECT + col2 * 5 AS col1 FROM tab1 AS cor0
----
270
285
480

query I rowsort
SELECT ALL 7 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL col2 * - col0 * col1 AS col2 FROM tab2
----
-119652
-51034
-5859

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - 34 AS REAL ) AS col0 FROM tab0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT + - col1 + 43 * col2 FROM tab2 AS cor0
----
1059
1130
1617

onlyif mysql # use DIV operator for integer division
query I rowsort label-9683
SELECT ALL - - col1 DIV col1 + - col2 * + col1 AS col2 FROM tab2 AS cor0
----
-1533
-645
-836

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL - - col1 / col1 + - col2 * + col1 AS col2 FROM tab2 AS cor0
----
-1533
-645
-836

query I rowsort
SELECT ALL + - cor0.col0 + col0 * col1 AS col2 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT ALL - col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - 59 + - col0 AS col0 FROM tab1 AS cor0
----
-123
-139
-62

query I rowsort
SELECT + - col2 * + col2 - - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT col1 * + col0 * + ( + col0 + - col0 ) FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( - col2 ) ) * - col1 col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL - 53 AS col2 FROM tab0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col0 FROM tab0 cor0
----
-73
-73
-73

query I rowsort
SELECT - - ( 61 ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
1586
1647
2318

query I rowsort
SELECT + ( - col2 ) * - col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT 50 + cor0.col2 FROM tab0, tab2 AS cor0
----
76
77
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - 53 col0 FROM tab2 AS cor0
----
-46
25
26

query I rowsort
SELECT ALL - - ( ( - col2 ) ) * + col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT 55 * - ( col2 ) AS col0 FROM tab1
----
-2970
-3135
-5280

query I rowsort
SELECT ALL col0 * cor0.col2 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - + col2 + + col2 * col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT ALL - + 35 + - col1 * + col2 FROM tab2 cor0
----
-1569
-681
-872

onlyif mysql # use DIV operator for integer division
query I rowsort label-9701
SELECT ALL + col0 DIV + col2 + - cor0.col2 FROM tab0 AS cor0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL + col0 / + col2 + - cor0.col2 FROM tab0 AS cor0
----
-33
-81
34

query I rowsort
SELECT - col2 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL 70 - + 66 FROM tab1
----
4
4
4

query I rowsort
SELECT ALL col2 - - col2 * + col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT ALL col2 - + tab0.col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT - ( col2 ) * col1 + + 94 FROM tab2
----
-1440
-552
-743

query I rowsort
SELECT - col0 * 76 FROM tab1 AS cor0
----
-228
-4864
-6080

query I rowsort
SELECT ALL + + cor0.col1 * ( + col0 + - col1 ) AS col0 FROM tab0 AS cor0
----
-182
-5332
-6014

query I rowsort
SELECT col0 + col0 * - col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT - col1 * 32 * col2 FROM tab1 AS cor0
----
-18240
-39936
-44928

query I rowsort
SELECT ALL col0 + 19 AS col1 FROM tab1 AS cor0
----
22
83
99

query I rowsort
SELECT - - col1 * + ( + col1 ) FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-9713
SELECT tab1.col0 DIV - CAST( + 40 AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to ccd77e2770d5a834e59c1674defa88fa

skipif mysql # not compatible
query I rowsort label-9713
SELECT tab1.col0 / - CAST ( + 40 AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to ccd77e2770d5a834e59c1674defa88fa

query I rowsort
SELECT DISTINCT 61 * col1 AS col2 FROM tab2
----
1037
1891
3599

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9715
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9715
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - 62 * + col2 FROM tab2
----
-1612
-1674
-2356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 + - ( + 79 ) ) col2 FROM tab0
----
-46
-78
3

query I rowsort
SELECT + col1 * col2 * col0 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT ( 95 ) AS col1 FROM tab0, tab1 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9720
SELECT col2 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9720
SELECT col2 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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-9722
SELECT DISTINCT + col0 * 40 DIV - tab2.col1 AS col2 FROM tab2
----
-185
-52
-9

skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT + col0 * 40 / - tab2.col1 AS col2 FROM tab2
----
-185
-52
-9

query I rowsort
SELECT + tab0.col2 * tab0.col0 - + col0 * col1 AS col0 FROM tab0
----
-1272
-3360
-801

query I rowsort
SELECT col1 + - ( col1 * col0 ) FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT ALL - 98 * + 77 FROM tab0 AS cor0
----
-7546
-7546
-7546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9726
SELECT DISTINCT + + col0 + + CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT + + col0 + + CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 + ( + tab0.col1 ) * - col2 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT col1 + ( + col1 ) * - col1 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9729
SELECT ALL + 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-9729
SELECT ALL + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9730
SELECT + + 75 DIV 15 AS col1 FROM tab1 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-9730
SELECT + + 75 / 15 AS col1 FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT ALL - col0 + 80 * col0 FROM tab0 AS cor0
----
1896
2765
7031

query I rowsort
SELECT 29 * col0 AS col0 FROM tab1 cor0
----
1856
2320
87

query I rowsort
SELECT DISTINCT + ( col0 ) * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 + - 1 * - col1 col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - - cor0.col1 * col1 + cor0.col2 * - col1 FROM tab2 AS cor0
----
-357
124
1947

query I rowsort
SELECT DISTINCT ( col0 ) * - col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - cor0.col2 + + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT + col1 + + 60 * + col0 * col1 AS col1 FROM tab1 AS cor0
----
38410
4706
62413

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9739
SELECT ALL + CAST( NULL AS SIGNED ) + col1 * col2 / + 18 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL + CAST ( NULL AS INTEGER ) + col1 * col2 / + 18 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col0 ) * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - 21 AS col2 FROM tab0 cor0
----
-21
-21
-21

onlyif mysql # use DIV operator for integer division
query I rowsort label-9742
SELECT ALL col2 + col0 DIV - 25 AS col0 FROM tab2
----
23
27
35

skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL col2 + col0 / - 25 AS col0 FROM tab2
----
23
27
35

query I rowsort
SELECT - col1 * - col1 + + 46 * cor0.col1 AS col0 FROM tab0 AS cor0
----
11352
12467
13871

query I rowsort
SELECT DISTINCT - 3 * - col1 * + ( - col1 ) FROM tab2 cor0
----
-10443
-2883
-867

query I rowsort
SELECT + + col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col1 * col0 * - col2 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT + 34 * - col0 + - ( + 38 ) * col2 AS col0 FROM tab0 AS cor0
----
-1228
-2070
-6142

query I rowsort
SELECT 92 + cor0.col1 FROM tab2 AS cor0
----
109
123
151

onlyif mysql # use DIV operator for integer division
query I rowsort label-9749
SELECT DISTINCT + cor0.col2 DIV col0 + - 45 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-11
-44
37

skipif mysql # not compatible
query I rowsort label-9749
SELECT DISTINCT + cor0.col2 / col0 + - 45 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-11
-44
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9750
SELECT - col2 + col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9750
SELECT - col2 + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - cor0.col2 ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 52 + cor0.col0 * - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-177452
-329263
-736957

onlyif mysql # use DIV operator for integer division
query I rowsort label-9753
SELECT ALL col1 + - CAST( 65 AS SIGNED ) + col0 DIV 92 AS col1 FROM tab2 AS cor0
----
-34
-48
-6

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL col1 + - CAST ( 65 AS INTEGER ) + col0 / 92 AS col1 FROM tab2 AS cor0
----
-34
-48
-6

query I rowsort
SELECT ALL + cor0.col1 + 48 AS col0 FROM tab0 AS cor0
----
134
139
145

query I rowsort
SELECT col1 * 45 + cor0.col0 FROM tab0 AS cor0
----
3894
4184
4400

query I rowsort
SELECT ALL + cor0.col1 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 + + col1 * col0 col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + cor0.col0 * 70 FROM tab0 AS cor0
----
1680
2450
6230

query I rowsort
SELECT - col2 * ( - cor0.col1 ) AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col0 + - col1 * col1 + col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9761
SELECT DISTINCT ( col2 ) + + col1 DIV + 57 AS col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT ( col2 ) + + col1 / + 57 AS col2 FROM tab0
----
2
34
83

query I rowsort
SELECT ALL - 55 + col0 * + col0 FROM tab2 AS cor0
----
-6
6029
6186

query I rowsort
SELECT ALL - tab0.col1 * - 19 + + col0 FROM tab0
----
1658
1818
1878

query I rowsort
SELECT DISTINCT - 59 + col2 FROM tab1 AS cor0
----
-2
-5
37

query I rowsort
SELECT + cor0.col2 * ( + col0 ) - + 33 AS col0 FROM tab2 AS cor0
----
156
1995
2969

query I rowsort
SELECT ALL + 52 + + 86 + col1 AS col0 FROM tab2 AS cor0
----
155
169
197

onlyif mysql # use DIV operator for integer division
query I rowsort label-9767
SELECT ( col1 ) + + col0 DIV + col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-9767
SELECT ( col1 ) + + col0 / + col0 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT + 73 + col2 FROM tab2 AS cor0
----
100
111
99

query I rowsort
SELECT DISTINCT - - 76 + 45 FROM tab0 AS cor0
----
121

onlyif mysql # use DIV operator for integer division
query I rowsort label-9770
SELECT DISTINCT + col0 DIV - col1 + + col0 - col1 AS col0 FROM tab0 AS cor0
----
-2
-62

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT + col0 / - col1 + + col0 - col1 AS col0 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT 34 + - col0 FROM tab2 AS cor0
----
-44
-45
27

query I rowsort
SELECT ALL + col0 * 11 + + col2 AS col0 FROM tab1 AS cor0
----
761
87
976

query I rowsort
SELECT + col1 * col2 + col0 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - col2 + + ( col0 ) FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT ALL 92 * col2 FROM tab0 AS cor0
----
3036
7544
92

query I rowsort
SELECT ALL - col0 + col2 * + ( + 42 ) AS col1 FROM tab0 AS cor0
----
1362
3355
7

query I rowsort
SELECT DISTINCT - 97 + col1 * ( col1 ) AS col2 FROM tab2 AS cor0
----
192
3384
864

query I rowsort
SELECT DISTINCT + - col1 * col1 + - col2 FROM tab2 AS cor0
----
-327
-3507
-988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9779
SELECT DISTINCT CAST( - 19 AS SIGNED ) FROM tab2, tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT CAST ( - 19 AS INTEGER ) FROM tab2, tab0 AS cor0
----
-19

query I rowsort
SELECT DISTINCT 72 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
72

query I rowsort
SELECT ALL + col1 * + 81 FROM tab1 AS cor0
----
1053
2106
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - 68 col0 FROM tab1 AS cor0
----
-3672
-3876
-6528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9783
SELECT DISTINCT + cor0.col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT + cor0.col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + cor0.col2 col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + col1 * 44 + col1 FROM tab2 AS cor0
----
1395
2655
765

query I rowsort
SELECT ALL - cor0.col1 + + ( col2 ) - + col0 * col1 FROM tab1 AS cor0
----
-50
-593
-957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 * 81 + cor0.col1 col0 FROM tab2 AS cor0
----
598
6377
6416

query I rowsort
SELECT ALL col2 - + col1 AS col0 FROM tab1
----
28
47
83

query I rowsort
SELECT + + col1 - cor0.col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + - col0 + col2 * - col1 FROM tab1 cor0
----
-1328
-1407
-634

query I rowsort
SELECT col2 * col1 + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9792
SELECT + CAST( ( - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-9792
SELECT + CAST ( ( - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + col2 - 82 AS col1 FROM tab2 AS cor0
----
-44
-55
-56

query I rowsort
SELECT + col0 * ( + col0 * col1 ) + - col1 * - tab1.col1 AS col2 FROM tab1
----
41060
83369
910

query I rowsort
SELECT ALL col1 - - 40 * 54 FROM tab2
----
2177
2191
2219

query I rowsort
SELECT col0 + - col1 * + 41 * tab2.col0 AS col1 FROM tab2
----
-188604
-54984
-8890

onlyif mysql # use DIV operator for integer division
query I rowsort label-9797
SELECT + ( + 25 ) * col2 DIV col1 FROM tab1 AS cor0
----
142
184
51

skipif mysql # not compatible
query I rowsort label-9797
SELECT + ( + 25 ) * col2 / col1 FROM tab1 AS cor0
----
142
184
51

query I rowsort
SELECT + col1 * + 47 FROM tab2 AS cor0
----
1457
2773
799

query I rowsort
SELECT ( - col0 ) * col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 cor2
----
972 values hashing to deaaa983f771be544ffdc26f04a18657

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9801
SELECT CAST( + 13 * col1 AS SIGNED ) FROM tab1
----
130
169
338

skipif mysql # not compatible
query I rowsort label-9801
SELECT CAST ( + 13 * col1 AS INTEGER ) FROM tab1
----
130
169
338

onlyif mysql # use DIV operator for integer division
query I rowsort label-9802
SELECT 28 DIV col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9802
SELECT 28 / col1 FROM tab2
----
0
0
1

query I rowsort
SELECT - col2 * + 27 AS col2 FROM tab1
----
-1458
-1539
-2592

query I rowsort
SELECT - col1 + - col1 + + col1 * 94 * + col1 FROM tab1
----
15860
63492
9380

query I rowsort
SELECT DISTINCT + col2 * col0 + col0 * ( col2 + + col2 * + 47 ) AS col0 FROM tab2
----
147098
9261
99372

query I rowsort
SELECT ALL - 81 + + col2 FROM tab2
----
-43
-54
-55

query I rowsort
SELECT DISTINCT tab0.col0 * - col2 + col2 FROM tab0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor0.col0 ) col1 FROM tab2, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT - 7 * - col0 FROM tab2
----
49
546
553

query I rowsort
SELECT + col2 * ( + col2 ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-9811
SELECT ALL + tab2.col0 DIV col0 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL + tab2.col0 / col0 AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL 58 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT ALL - ( tab2.col2 + + col2 ) * 33 AS col0 FROM tab2
----
-1716
-1782
-2508

onlyif mysql # use DIV operator for integer division
query I rowsort label-9814
SELECT + - 10 + + col0 DIV + ( col2 ) AS col2 FROM tab0 AS cor0
----
-10
-9
25

skipif mysql # not compatible
query I rowsort label-9814
SELECT + - 10 + + col0 / + ( col2 ) AS col2 FROM tab0 AS cor0
----
-10
-9
25

query I rowsort
SELECT ALL - - col0 * - ( + col1 ) * + col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT cor0.col0 * 20 FROM tab1 AS cor0
----
1280
1600
60

query I rowsort
SELECT ALL col2 * + 78 FROM tab0 AS cor0
----
2574
6396
78

query I rowsort
SELECT ALL + - col0 * 89 FROM tab0 AS cor0
----
-2136
-3115
-7921

query I rowsort
SELECT - - col1 + 64 * col0 FROM tab0 cor0
----
1622
2337
5787

query I rowsort
SELECT ALL col1 * + col1 + 24 AS col0 FROM tab0 AS cor0
----
7420
8305
9433

query I rowsort
SELECT DISTINCT + + col1 * col2 - + col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT + col2 + 2 FROM tab0 cor0
----
3
35
84

query I rowsort
SELECT ALL - col2 * 3 AS col1 FROM tab2 AS cor0
----
-114
-78
-81

query I rowsort
SELECT col1 * + 4 AS col0 FROM tab2 AS cor0
----
124
236
68

query I rowsort
SELECT ALL col2 * + ( - col0 + col1 ) FROM tab0 AS cor0
----
164
2046
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-9826
SELECT DISTINCT + cor0.col2 * + 93 + - 33 + - col2 DIV - col0 FROM tab0 AS cor0
----
3037
60
7593

skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT + cor0.col2 * + 93 + - 33 + - col2 / - col0 FROM tab0 AS cor0
----
3037
60
7593

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + 43 col0 FROM tab2 AS cor0
----
-36
35
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9828
SELECT ALL - col2 + - CAST( col0 AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
-134
-163
-65

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL - col2 + - CAST ( col0 AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
-134
-163
-65

query I rowsort
SELECT DISTINCT - + cor0.col0 + - ( col1 ) FROM tab2 AS cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + + ( col1 ) * col1 col1 FROM tab0 cor0
----
7429
8363
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col2 FROM tab2
----
72
72
72

query I rowsort
SELECT - + col0 * col1 + + col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT - ( - ( + col1 ) ) + + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + 11 * + col1 AS col0 FROM tab1 cor0
----
110
143
286

onlyif mysql # use DIV operator for integer division
query I rowsort label-9835
SELECT + ( col2 ) DIV + col1 + col2 AS col0 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-9835
SELECT + ( col2 ) / + col1 + col2 AS col0 FROM tab2 AS cor0
----
26
27
40

query I rowsort
SELECT + - col2 + + col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT ALL col2 * ( + col1 ) * col2 FROM tab1
----
119808
32490
75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 col1 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT ALL + cor0.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL - 15 * - 67 FROM tab2
----
1005
1005
1005

query I rowsort
SELECT DISTINCT - col2 - col2 * + 29 * - col2 FROM tab2 AS cor0
----
19578
21114
41838

query I rowsort
SELECT col1 + 97 * col2 FROM tab1
----
5264
5539
9325

query I rowsort
SELECT DISTINCT - 85 AS col0 FROM tab0
----
-85

query I rowsort
SELECT DISTINCT + cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
26
27
38

query I rowsort
SELECT - ( + col0 ) * col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col1 * - col1 + ( 13 ) AS col2 FROM tab0 AS cor0
----
-7383
-8268
-9396

query I rowsort
SELECT + ( col2 * - col0 ) FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + tab2.col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9849
SELECT DISTINCT + ( - col1 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9849
SELECT DISTINCT + ( - col1 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( - col2 ) + + tab0.col1 FROM tab0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9851
SELECT col0 * + col0 * - col2 + CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
-1322
-19094
-649613

skipif mysql # not compatible
query I rowsort label-9851
SELECT col0 * + col0 * - col2 + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
-1322
-19094
-649613

query I rowsort
SELECT DISTINCT - ( + col0 ) + tab0.col1 FROM tab0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 - tab1.col2 col2 FROM tab1
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-9854
SELECT + col2 + - 56 DIV col2 col2 FROM tab0
----
-55
32
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9854
SELECT + col2 + - 56 / col2 col2 FROM tab0
----
-55
32
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9855
SELECT + col2 * col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT + col2 * col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 + col2 * col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT ALL col0 * col0 - col0 FROM tab0 cor0
----
1190
552
7832

query I rowsort
SELECT + - 74 AS col0 FROM tab1 cor0
----
-74
-74
-74

query I rowsort
SELECT ALL + 22 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-1892
-2002
-2134

onlyif mysql # use DIV operator for integer division
query I rowsort label-9860
SELECT DISTINCT - + col0 DIV col2 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT - + col0 / col2 AS col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT - col1 * - cor0.col0 * 43 AS col1 FROM tab1 AS cor0
----
27520
3354
44720

query I rowsort
SELECT ALL - 23 * - cor0.col2 + 98 FROM tab2 cor0
----
696
719
972

query I rowsort
SELECT - col2 + col2 * - col2 + - tab2.col2 AS col2 FROM tab2
----
-1520
-728
-783

onlyif mysql # use DIV operator for integer division
query I rowsort label-9864
SELECT + col0 DIV - 87 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9864
SELECT + col0 / - 87 AS col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT - col2 * 27 FROM tab2
----
-1026
-702
-729

query I rowsort
SELECT + col0 + - ( col2 + - col0 ) AS col0 FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT DISTINCT - col2 * col0 - - col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT - col2 + col0 + - 74 FROM tab2
----
-22
-33
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL - 79 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT ALL - 58 * col2 * cor0.col0 FROM tab0 AS cor0
----
-2030
-423284
-45936

query I rowsort
SELECT 83 - + col0 FROM tab2
----
4
5
76

query I rowsort
SELECT col0 * + col1 + - col2 FROM tab0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 * + col2 + col0 col2 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT - + col2 * - cor0.col2 + col2 + cor0.col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1115
-1223
546

onlyif mysql # use DIV operator for integer division
query I rowsort label-9876
SELECT ( + col1 ) DIV cor0.col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9876
SELECT ( + col1 ) / cor0.col0 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-9877
SELECT - + col1 + + col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-9877
SELECT - + col1 + + col1 / + col2 AS col1 FROM tab0 AS cor0
----
-84
-90
0

query I rowsort
SELECT DISTINCT - 4 * + col2 * col1 AS col0 FROM tab0 AS cor0
----
-11352
-29848
-388

query I rowsort
SELECT ALL 24 FROM tab1, tab2 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT - - 29 * + col1 - col1 * - col1 FROM tab0 AS cor0
----
10920
12222
9890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 + + 11 col2 FROM tab0 AS cor0
----
-59
-59
-59

query I rowsort
SELECT - col1 + col2 * 72 * + col2 FROM tab1
----
209926
233918
663539

query I rowsort
SELECT DISTINCT - 43 AS col2 FROM tab2, tab2 AS cor0
----
-43

query I rowsort
SELECT + 82 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT ALL + col2 * 62 AS col2 FROM tab1
----
3348
3534
5952

query I rowsort
SELECT ALL + ( - col2 ) * col1 AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - ( + ( + col2 ) ) * col1 AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ( 17 ) * tab1.col0 FROM tab1
----
1088
1360
51

query I rowsort
SELECT - + 22 * - col0 + col2 * + 39 FROM tab2 AS cor0
----
1207
2730
3220

query I rowsort
SELECT + 89 - col0 AS col0 FROM tab2 AS cor0
----
10
11
82

query I rowsort
SELECT DISTINCT - 64 FROM tab0 cor0
----
-64

query I rowsort
SELECT ALL + - 10 * 0 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9893
SELECT + CAST( NULL AS SIGNED ) * col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT + CAST ( NULL AS INTEGER ) * col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * 89 AS col2 FROM tab0 AS cor0
----
2937
7298
89

query I rowsort
SELECT DISTINCT ( 40 ) AS col2 FROM tab2 cor0
----
40

query I rowsort
SELECT ALL - cor0.col0 + - col1 * - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - cor0.col0 - + col0 * + cor0.col1 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL + col0 + - cor0.col1 * - cor0.col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + cor0.col2 * col0 AS col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - 50 * + ( - col2 * 55 ) + col2 * - col0 FROM tab2 AS cor0
----
101498
69472
74061

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col2 FROM tab1
----
-86
-86
-86

query I rowsort
SELECT ALL + 83 * 83 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e65bfe054b721514880013561992a15c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9903
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL + - col1 + col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT + 74 * + cor0.col0 + col2 FROM tab0 AS cor0
----
1809
2591
6668

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT - - 8 AS col1 FROM tab1 cor0
----
8
8
8

query I rowsort
SELECT ALL - 94 * col1 FROM tab0 AS cor0
----
-8084
-8554
-9118

query I rowsort
SELECT DISTINCT ( - col2 ) + + 89 + col0 * - col1 FROM tab0 AS cor0
----
-2008
-3307
-8092

query I rowsort
SELECT ALL + - col1 * - cor0.col0 * col2 AS col1 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT 13 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT DISTINCT + + col0 + + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - col0 + - 46 * cor0.col1 FROM tab1 AS cor0
----
-1199
-524
-678

query I rowsort
SELECT - 72 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888

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-9916
SELECT ( + cor0.col2 ) * + CAST( 78 AS SIGNED ) FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 3986e9c064313a7ffaa62caea817d1ed

skipif mysql # not compatible
query I rowsort label-9916
SELECT ( + cor0.col2 ) * + CAST ( 78 AS INTEGER ) FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 3986e9c064313a7ffaa62caea817d1ed

query I rowsort
SELECT + + col1 + 74 FROM tab0 AS cor0
----
160
165
171

query I rowsort
SELECT 21 + col1 * col0 FROM tab2 AS cor0
----
1364
238
4623

query I rowsort
SELECT - col2 * 99 AS col2 FROM tab1 AS cor0
----
-5346
-5643
-9504

query I rowsort
SELECT col0 * + 34 AS col0 FROM tab1 AS cor0
----
102
2176
2720

query I rowsort
SELECT + cor0.col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL + 59 FROM tab1, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT + 71 + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-1993
-3324
-8028

query I rowsort
SELECT ALL - - 74 + + 2 FROM tab0 AS cor0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-53

query I rowsort
SELECT ALL 43 * col0 + + col2 FROM tab2
----
328
3380
3435

query I rowsort
SELECT col1 * + col1 * + col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT + 19 FROM tab1, tab0, tab0 AS cor0
----
19

query I rowsort
SELECT + 11 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT BETWEEN - col2 * col1 AND NULL
----

query I rowsort
SELECT + col2 * col2 + - col1 FROM tab0
----
-96
1003
6633

onlyif mysql # use DIV operator for integer division
query I rowsort label-9932
SELECT ALL - cor0.col1 DIV - col0 AS col0 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL - cor0.col1 / - col0 AS col0 FROM tab1 cor0
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-9933
SELECT + tab1.col2 DIV col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-9933
SELECT + tab1.col2 / col1 FROM tab1
----
2
5
7

query I rowsort
SELECT ALL col0 * + col1 - col1 * - col2 FROM tab0
----
15561
3492
4902

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE NOT NULL IN ( + col1 )
----

query I rowsort
SELECT ALL col1 * col2 AS col1 FROM tab1 WHERE NOT col2 + col1 NOT BETWEEN NULL AND - col2 + - col1 + col2 * col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( tab2.col0 )
----

query I rowsort
SELECT ALL col2 * + col0 * + col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT col0 * - col1 + - col1 + col1 AS col2 FROM tab0
----
-2064
-3395
-8099

query III rowsort
SELECT * FROM tab2 WHERE + col2 + - col1 BETWEEN + col0 AND ( NULL )
----

query I rowsort
SELECT ALL tab1.col1 * + col0 AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL - col1 * - col2 + + col1 * col0 AS col2 FROM tab0
----
15561
3492
4902

query I rowsort
SELECT DISTINCT + 30 FROM tab1, tab2, tab0 AS cor0
----
30

query I rowsort
SELECT 96 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

onlyif mysql # use DIV operator for integer division
query I rowsort label-9945
SELECT ALL + - col1 DIV - col0 + - ( - col0 ) DIV col0 AS col2 FROM tab2 AS cor0
----
1
1
5

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL + - col1 / - col0 + - ( - col0 ) / col0 AS col2 FROM tab2 AS cor0
----
1
1
5

query I rowsort
SELECT ALL - col1 * - col2 + - col0 AS col2 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT ALL - - col2 + + col0 + 90 FROM tab2 AS cor0
----
124
194
207

query I rowsort
SELECT DISTINCT cor0.col2 + cor1.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
106
109
122
64
67
70
80
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9949
SELECT + - 73 DIV - col0 FROM tab2 AS cor0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-9949
SELECT + - 73 / - col0 FROM tab2 AS cor0
----
0
0
10

query I rowsort
SELECT DISTINCT + + cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-9951
SELECT ALL - col0 DIV + col0 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL - col0 / + col0 AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT tab1.col2 + col0 + + tab1.col0 AS col1 FROM tab1
----
185
256
60

query I rowsort
SELECT DISTINCT - col0 + tab0.col2 + col0 * col1 FROM tab0
----
2073
3361
8092

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 + + col1 ) NOT IN ( col0 )
----

query I rowsort
SELECT - col1 FROM tab0 WHERE + col1 > NULL
----

query I rowsort
SELECT - col2 + tab1.col2 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT + col2 * + col1 + col0 * col1 * - col1 FROM tab0
----
-174666
-329218
-729547

query I rowsort
SELECT col0 + + col0 * col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT + col1 * col1 + + cor0.col1 * - col2 FROM tab0 AS cor0
----
4558
819
9312

query I rowsort
SELECT ALL - col2 + col1 * + col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col0 + + tab1.col0 )
----

query I rowsort
SELECT ALL - tab2.col2 AS col0 FROM tab2 WHERE ( + col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * tab2.col2 + col1 * col0 * col1 AS col2 FROM tab2
----
25833
273546
6916

query III rowsort
SELECT * FROM tab1 WHERE + col0 * - col1 <= NULL
----

query I rowsort
SELECT col0 * - col2 + col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT ALL - col2 + - col1 * - col2 AS col1 FROM tab0
----
2805
7380
96

query I rowsort
SELECT + col2 - - col0 * col0 AS col1 FROM tab2
----
6110
6279
76

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> col0 + - col0 * + col0
----

query I rowsort
SELECT ALL - tab2.col2 * tab2.col1 + col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT + col1 - + col0 * col0 AS col1 FROM tab0
----
-1128
-490
-7830

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - cor0.col2 AS REAL ) + + col2 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-9971
SELECT DISTINCT + 7 * col0 - - col2 DIV 36 AS col2 FROM tab2 AS cor0
----
49
546
554

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT + 7 * col0 - - col2 / 36 AS col2 FROM tab2 AS cor0
----
49
546
554

onlyif mysql # use DIV operator for integer division
query I rowsort label-9972
SELECT DISTINCT - col0 DIV cor0.col0 col2 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT - col0 / cor0.col0 col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + + col0 * col1 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 + col1 col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - + col1 * - 77 + - col2 AS col2 FROM tab0 AS cor0
----
6589
6925
7468

query I rowsort
SELECT DISTINCT 84 + col2 FROM tab0
----
117
166
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 + col2 col2 FROM tab1
----
-14
-17
25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9978
SELECT CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9978
SELECT CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + - col2 * col2 AS col1 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT col0 + 6 AS col1 FROM tab2 AS cor0
----
13
84
85

query I rowsort
SELECT + 27 * col2 AS col0 FROM tab0 AS cor0
----
2214
27
891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - ( cor0.col2 ) * - 50 col0 FROM tab2 cor0
----
1222
1343
1821

query I rowsort
SELECT DISTINCT - cor0.col0 * ( col0 ) FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL 51 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT + col1 * 15 * cor0.col0 FROM tab0 AS cor0
----
121485
30960
50925

query I rowsort
SELECT + ( col1 ) * - 73 FROM tab1 AS cor0
----
-1898
-730
-949

query I rowsort
SELECT DISTINCT + 88 * + col2 + tab1.col0 FROM tab1
----
4755
5080
8528

query I rowsort
SELECT ALL - 58 + col2 FROM tab1
----
-1
-4
38

query I rowsort
SELECT DISTINCT - ( + col2 ) + - col2 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT + 76 + - col0 AS col1 FROM tab0 cor0
----
-13
41
52

query I rowsort
SELECT ALL + 60 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
149
84
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9992
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9993
SELECT 44 DIV col1 + - tab1.col1 AS col0 FROM tab1
----
-10
-25
-6

skipif mysql # not compatible
query I rowsort label-9993
SELECT 44 / col1 + - tab1.col1 AS col0 FROM tab1
----
-10
-25
-6

query I rowsort
SELECT 58 * - col1 + - col2 AS col0 FROM tab1
----
-1562
-637
-850

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9995
SELECT CAST( NULL AS SIGNED ) + col0 * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9995
SELECT CAST ( NULL AS INTEGER ) + col0 * col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 * - col0 + + col0 col0 FROM tab2
----
329
3666
3713

onlyif mysql # use DIV operator for integer division
query I rowsort label-9997
SELECT ALL - - col2 DIV + col1 + col0 FROM tab2 AS cor0
----
7
78
81

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL - - col2 / + col1 + col0 FROM tab2 AS cor0
----
7
78
81

query I rowsort
SELECT cor0.col2 * 77 FROM tab0 AS cor0
----
2541
6314
77

query I rowsort
SELECT ALL col1 * col0 - cor0.col0 * + col1 AS col2 FROM tab2 cor0
----
0
0
0