sqllogictest
Artifact Content
Not logged in

Artifact 519aa0e9ce4ef9c7208229320a352765339e2d26:


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 DISTINCT - ( + col2 ) + + col1 * 75 FROM tab2
----
1237
2298
4399

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

query I rowsort
SELECT ALL 10 * col0 - - col1 FROM tab0
----
326
447
981

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

query I rowsort
SELECT DISTINCT + col0 - tab0.col2 * + col2 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT ALL 44 FROM tab2, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT + ( col1 ) + + col1 FROM tab0
----
172
182
194

query I rowsort
SELECT + 55 * - tab1.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 884eec218bd133f49da554b3a6bd45e6

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

query I rowsort
SELECT - col2 * col2 - - col0 * + col2 FROM tab0 cor0
----
-297
34
574

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - + 48 + 5 FROM tab2 cor0
----
-43

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

query I rowsort
SELECT 21 * col2 + cor0.col1 + ( col0 ) * col1 * col1 AS col0 FROM tab2 AS cor0
----
23646
272123
7325

query I rowsort
SELECT + 8 + col2 + col2 FROM tab0 AS cor0
----
10
172
74

query I rowsort
SELECT DISTINCT - 36 * + cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
-1188
-2952
-36

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

query I rowsort
SELECT - 10 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0

query I rowsort
SELECT ALL - - 18 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595

onlyif mysql # use DIV operator for integer division
query I rowsort label-19
SELECT ALL - cor0.col1 DIV - 12 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 2d022b8f9c8c56c3308c8902e3b1c736

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-19
SELECT ALL - cor0.col1 / - 12 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 2d022b8f9c8c56c3308c8902e3b1c736

query I rowsort
SELECT DISTINCT - 47 AS col0 FROM tab0
----
-47

query I rowsort
SELECT DISTINCT col0 * col0 AS col2 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ALL + 26 AS col0 FROM tab1
----
26
26
26

query I rowsort
SELECT + - col1 * + 47 * - col0 FROM tab0 cor0
----
159565
380653
97008

query I rowsort
SELECT + col1 + col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL - col0 * + 15 FROM tab2 AS cor0
----
-105
-1170
-1185

query I rowsort
SELECT ALL - 6 AS col1 FROM tab2
----
-6
-6
-6

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab0 AS cor0, tab0 cor1
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-28
SELECT col1 * CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-28
SELECT col1 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT col1 * + 94 AS col2 FROM tab0 AS cor0
----
8084
8554
9118

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-31
SELECT DISTINCT cor0.col1 DIV + col0 FROM tab2 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT cor0.col1 / + col0 FROM tab2 AS cor0
----
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col1 * col0 col0 FROM tab2 AS cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT DISTINCT col2 * - 4 FROM tab0
----
-132
-328
-4

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

query I rowsort
SELECT + col1 * 97 + col1 AS col1 FROM tab1
----
1274
2548
980

query I rowsort
SELECT ALL + + col0 + 43 * - col2 FROM tab1 AS cor0
----
-2319
-2387
-4048

query I rowsort
SELECT ALL - col0 + ( - 76 ) FROM tab0 AS cor0
----
-100
-111
-165

query I rowsort
SELECT ALL + 25 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT + col0 * 30 + col0 * + col0 FROM tab1 cor0
----
6016
8800
99

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

query I rowsort
SELECT - col0 * + ( - col1 ) + + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL - + col1 * ( - col2 ) + col2 * ( - cor0.col0 ) + - col2 FROM tab1 AS cor0
----
-3135
-6528
1188

query I rowsort
SELECT DISTINCT - + col2 * col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - + cor0.col2 * 84 * col1 FROM tab1 AS cor0
----
-104832
-117936
-47880

onlyif mysql # use DIV operator for integer division
query I rowsort label-46
SELECT + col0 DIV 27 FROM tab2 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-46
SELECT + col0 / 27 FROM tab2 AS cor0
----
0
2
2

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

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

query I rowsort
SELECT DISTINCT - - col2 * 55 AS col1 FROM tab2 cor0
----
1430
1485
2090

query I rowsort
SELECT DISTINCT - - 65 + col2 * col0 AS col0 FROM tab2 AS cor0
----
2093
254
3067

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

query I rowsort
SELECT DISTINCT - 84 AS col1 FROM tab0 AS cor0
----
-84

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-53
SELECT + - col1 + + 53 DIV + cor0.col0 AS col2 FROM tab2 AS cor0
----
-17
-24
-59

skipif mysql # not compatible
query I rowsort label-53
SELECT + - col1 + + 53 / + cor0.col0 AS col2 FROM tab2 AS cor0
----
-17
-24
-59

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

query I rowsort
SELECT + col2 + + col1 * cor0.col1 FROM tab2 AS cor0
----
327
3507
988

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT + col1 / - col0 col1 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT ALL - col1 * + 57 FROM tab2 AS cor0
----
-1767
-3363
-969

query I rowsort
SELECT + - col1 * 66 FROM tab1 cor0
----
-1716
-660
-858

query I rowsort
SELECT + + col2 * - col1 FROM tab1 cor0
----
-1248
-1404
-570

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

query I rowsort
SELECT DISTINCT - ( - col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38

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

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

query I rowsort
SELECT ALL - - cor0.col1 * - col2 - - 56 FROM tab1 AS cor0
----
-1192
-1348
-514

query I rowsort
SELECT col2 * - col0 + col2 * + col1 * + col1 FROM tab0 AS cor0
----
243276
671744
9374

query I rowsort
SELECT DISTINCT col1 * + col0 + 71 * ( - col1 ) FROM tab1 AS cor0
----
-1768
-70
117

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-67
SELECT ALL - - ( + cor0.col1 ) + - CAST( - col1 AS SIGNED ) * col2 FROM tab0 AS cor0
----
194
2924
7553

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL - - ( + cor0.col1 ) + - CAST ( - col1 AS INTEGER ) * col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT ( + col2 ) + + 8 AS col2 FROM tab0 AS cor0
----
41
9
90

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

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

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

query I rowsort
SELECT ALL - ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL - 18 FROM tab0, tab2 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT ALL - 1 * 4 * - col1 AS col0 FROM tab0
----
344
364
388

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

query I rowsort
SELECT ALL - col2 - col0 AS col2 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT ALL - - col0 * - col2 * col2 + + 48 AS col1 FROM tab0 AS cor0
----
-26088
-598388
13

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

query I rowsort
SELECT - col1 - tab0.col1 FROM tab0
----
-172
-182
-194

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

query I rowsort
SELECT - col2 + + 94 FROM tab1 AS cor0
----
-2
37
40

query I rowsort
SELECT ALL + col0 + col1 AS col2 FROM tab0
----
110
132
180

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

query I rowsort
SELECT + 5 + col0 FROM tab2 AS cor0
----
12
83
84

query I rowsort
SELECT 17 * + col0 AS col2 FROM tab0
----
1513
408
595

query I rowsort
SELECT + - cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

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

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

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

query I rowsort
SELECT - + 1 + col2 FROM tab1 AS cor0
----
53
56
95

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

query I rowsort
SELECT col0 * - cor0.col2 * + col2 - col1 FROM tab2 cor0
----
-114093
-5134
-52787

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

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

query I rowsort
SELECT - + col0 + cor0.col0 * col0 * + col1 FROM tab0 AS cor0
----
118790
49512
720722

query I rowsort
SELECT + col0 + - col2 * cor0.col2 * - col1 FROM tab2 AS cor0
----
22606
24627
39962

query I rowsort
SELECT DISTINCT 97 FROM tab1, tab2 cor0
----
97

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

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

query I rowsort
SELECT + col2 + + 59 FROM tab1 AS cor0
----
113
116
155

query I rowsort
SELECT + col2 + 9 AS col1 FROM tab0 AS cor0
----
10
42
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-101
SELECT DISTINCT - col0 + col1 * - col0 DIV + col0 FROM tab2 AS cor0
----
-137
-38
-96

skipif mysql # not compatible
query I rowsort label-101
SELECT DISTINCT - col0 + col1 * - col0 / + col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + col2 + - 67 - - col1 FROM tab1 AS cor0
----
0
13
42

query I rowsort
SELECT col2 * 77 AS col2 FROM tab1 AS cor0
----
4158
4389
7392

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

query I rowsort
SELECT + cor0.col0 * 25 FROM tab2 AS cor0
----
175
1950
1975

query I rowsort
SELECT DISTINCT + col2 + ( + cor0.col2 ) FROM tab1 AS cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 * + col2 col0 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT 9 - tab1.col1 FROM tab1
----
-1
-17
-4

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-110
SELECT col0 DIV 63 + 8 * col2 AS col0 FROM tab0
----
264
657
8

skipif mysql # not compatible
query I rowsort label-110
SELECT col0 / 63 + 8 * col2 AS col0 FROM tab0
----
264
657
8

query I rowsort
SELECT DISTINCT - col0 * + col0 + col2 AS col1 FROM tab1 cor0
----
-4039
-6304
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * ( col2 ) + col2 col2 FROM tab1 AS cor0
----
219
3769
7856

query I rowsort
SELECT ALL + col0 * + 89 - col2 * - col1 * - col0 FROM tab0 AS cor0
----
-280
-656197
-65976

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

query I rowsort
SELECT - col0 + - col1 * + ( - col0 * - col0 + col2 ) FROM tab2 AS cor0
----
-106822
-2363
-360568

query I rowsort
SELECT ALL col0 + - ( - col2 ) AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + col0 + cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + col0 * - col2 * tab1.col0 FROM tab1
----
-233472
-486
-614400

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-120
SELECT ALL + col0 DIV - col1 + - col0 FROM tab1 AS cor0
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL + col0 / - col1 + - col0 FROM tab1 AS cor0
----
-3
-70
-86

query I rowsort
SELECT ALL + col0 * - col0 * + col2 - col1 FROM tab1 AS cor0
----
-233482
-512
-614413

query I rowsort
SELECT DISTINCT col2 * tab1.col2 AS col2 FROM tab1
----
2916
3249
9216

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

query I rowsort
SELECT + col0 - + col0 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT + col0 * - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT cor0.col0 * + col1 * - col1 + col2 + + col0 FROM tab0 AS cor0
----
-177447
-329279
-736838

onlyif mysql # use DIV operator for integer division
query I rowsort label-129
SELECT + col2 + - col1 DIV col1 AS col2 FROM tab1 cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-129
SELECT + col2 + - col1 / col1 AS col2 FROM tab1 cor0
----
53
56
95

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

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

query I rowsort
SELECT ALL + col2 * col2 * - col2 FROM tab0 AS cor0
----
-1
-35937
-551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-133
SELECT DISTINCT + col2 * col2 DIV + ( col1 ) FROM tab2 AS cor0
----
11
23
84

skipif mysql # not compatible
query I rowsort label-133
SELECT DISTINCT + col2 * col2 / + ( col1 ) FROM tab2 AS cor0
----
11
23
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 + + col0 col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT - + 70 AS col1 FROM tab2 cor0
----
-70
-70
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col1 FROM tab2 AS cor0
----
-26
-27
-38

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

query I rowsort
SELECT DISTINCT - ( col0 ) + + col0 * 56 FROM tab1 cor0
----
165
3520
4400

query I rowsort
SELECT + 93 AS col2 FROM tab2
----
93
93
93

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL 53 FROM tab2 AS cor0
----
53
53
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-142
SELECT ALL col0 * col0 + 67 DIV - col0 FROM tab2 AS cor0
----
40
6084
6241

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL col0 * col0 + 67 / - col0 FROM tab2 AS cor0
----
40
6084
6241

query I rowsort
SELECT ALL col2 * - col0 + cor0.col0 + col1 * + col2 FROM tab1 AS cor0
----
-3014
-6352
1245

query I rowsort
SELECT - 21 FROM tab2 AS cor0
----
-21
-21
-21

query I rowsort
SELECT + - 50 FROM tab1 AS cor0
----
-50
-50
-50

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

query I rowsort
SELECT DISTINCT col0 - + col0 * - col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - col1 * - cor0.col2 + ( - col1 ) + ( col0 ) * - col0 FROM tab0 AS cor0
----
-1225
-550
2176

query I rowsort
SELECT + col0 - - 2 FROM tab2 cor0
----
80
81
9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT - 78 - tab0.col2 * + tab0.col0 * + 61 AS col1 FROM tab0
----
-2213
-445256
-48390

query I rowsort
SELECT ALL 86 + col0 * + col0 FROM tab2 AS cor0
----
135
6170
6327

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) + - col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( col0 ) ) * cor0.col1 + - col0 col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL + + col1 * - 74 FROM tab2 AS cor0
----
-1258
-2294
-4366

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd

onlyif mysql # use DIV operator for integer division
query I rowsort label-159
SELECT DISTINCT + 62 DIV - cor0.col2 + + 15 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-47
14
15

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT + 62 / - cor0.col2 + + 15 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-47
14
15

query I rowsort
SELECT ALL - 92 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

query I rowsort
SELECT 3 * 89 - col2 FROM tab1
----
171
210
213

query I rowsort
SELECT 58 - + 95 * col0 FROM tab2
----
-607
-7352
-7447

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * col2 col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT + 95 + - col0 AS col2 FROM tab2 AS cor0
----
16
17
88

query I rowsort
SELECT 11 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT - - 63 * col2 + + col2 AS col0 FROM tab2 cor0
----
1664
1728
2432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 + + col1 * cor0.col1 col1 FROM tab1 AS cor0
----
137
644
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 91 ) + - col0 col1 FROM tab0
----
2
56
67

query I rowsort
SELECT DISTINCT 10 * col0 FROM tab2
----
70
780
790

query I rowsort
SELECT ( col1 * ( col2 ) ) FROM tab1
----
1248
1404
570

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

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

query I rowsort
SELECT ALL + cor0.col2 * + col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + 92 - - col1 FROM tab0 AS cor0
----
178
183
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT ALL 34 * col0 AS col0 FROM tab1
----
102
2176
2720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-177
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + cor0.col1 * - 97 * 46 FROM tab2, tab1 cor0
----
9 values hashing to 2e68bdaa3b97c605f1d118eb13398517

query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab0
----
76

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

query I rowsort
SELECT ALL + 7 * col0 AS col1 FROM tab1 AS cor0
----
21
448
560

query I rowsort
SELECT ALL 27 + + col0 * - 1 AS col2 FROM tab1 cor0
----
-37
-53
24

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

query I rowsort
SELECT + + ( + col1 ) + - 99 AS col0 FROM tab0 AS cor0
----
-13
-2
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-185
SELECT col2 * col2 DIV 12 FROM tab2
----
120
56
60

skipif mysql # not compatible
query I rowsort label-185
SELECT col2 * col2 / 12 FROM tab2
----
120
56
60

skipif mysql # not compatible
query I rowsort
SELECT + col1 + CAST ( + col0 AS REAL ) * col0 + col0 AS col0 FROM tab0
----
1357
686
8101

query I rowsort
SELECT col1 * - tab0.col2 AS col1 FROM tab0
----
-2838
-7462
-97

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

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

query I rowsort
SELECT col2 + - col0 * 7 FROM tab2
----
-22
-515
-520

query I rowsort
SELECT - tab2.col1 + + col1 + col2 * col1 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT + col0 + - col0 + ( tab2.col1 ) * + 44 AS col0 FROM tab2
----
1364
2596
748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( - col2 ) + col1 * - col0 + 52 * - col2 col2 FROM tab1 AS cor0
----
-15248
-5802
-6853

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 + 50 * col1 AS col2 FROM tab0 AS cor0
----
-2174
3211
4849

query I rowsort
SELECT DISTINCT + col1 + 72 * col0 FROM tab2 AS cor0
----
535
5675
5705

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 * 68 FROM tab0 AS cor0
----
-39168
-538628
-83300

query I rowsort
SELECT - cor0.col2 * - ( 57 ) + + col0 * col1 AS col1 FROM tab1 AS cor0
----
3156
3889
6512

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

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

query I rowsort
SELECT DISTINCT + + 13 + - cor0.col2 * - col0 AS col1 FROM tab1 cor0
----
175
3661
7693

query I rowsort
SELECT - col0 * + col0 + cor0.col0 * ( ( - col2 ) ) FROM tab0 AS cor0
----
-1260
-1368
-15219

query I rowsort
SELECT + ( 75 ) * col2 FROM tab0 AS cor0
----
2475
6150
75

query I rowsort
SELECT col2 * 76 + - col0 FROM tab2 AS cor0
----
1898
2045
2809

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

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-207
SELECT ALL + CAST( + cor0.col2 AS SIGNED ) + - col0 * col2 FROM tab1 AS cor0
----
-108
-3591
-7584

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL + CAST ( + cor0.col2 AS INTEGER ) + - col0 * col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - col2 * cor0.col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT 68 + col2 FROM tab0 cor0
----
101
150
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-210
SELECT DISTINCT + + col2 * col1 DIV - cor0.col1 + + col1 AS col1 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-210
SELECT DISTINCT + + col2 * col1 / - cor0.col1 + + col1 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ( col2 ) + col0 * 67 * + col2 AS col0 FROM tab2 AS cor0
----
12690
135902
201172

query I rowsort
SELECT DISTINCT + 97 FROM tab1 AS cor0
----
97

query I rowsort
SELECT - col1 + 23 * tab2.col2 + tab2.col2 AS col1 FROM tab2
----
565
617
895

query I rowsort
SELECT ALL - col0 - col0 FROM tab0
----
-178
-48
-70

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

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

query I rowsort
SELECT DISTINCT + 66 + ( col1 ) FROM tab0 AS cor0
----
152
157
163

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-220
SELECT DISTINCT col0 DIV 49 AS col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT col0 / 49 AS col2 FROM tab2
----
0
1

query I rowsort
SELECT ALL tab1.col1 * - col2 * ( + col2 ) AS col1 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT 33 * + 74 + tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ff1cb09144c013d7298ed122a5455134

query I rowsort
SELECT ALL - ( - tab1.col2 ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

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

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

query I rowsort
SELECT - - col2 * 89 + col1 FROM tab1 AS cor0
----
4832
5083
8557

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

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

query I rowsort
SELECT DISTINCT - col0 + - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010

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-231
SELECT - - col0 + 83 * col2 DIV - col1 FROM tab2 AS cor0
----
-106
-65
42

skipif mysql # not compatible
query I rowsort label-231
SELECT - - col0 + 83 * col2 / - col1 FROM tab2 AS cor0
----
-106
-65
42

query I rowsort
SELECT 95 - 22 FROM tab1 AS cor0
----
73
73
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-233
SELECT + + 22 * - 7 + col1 - + CAST( + col2 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-1629
-783
-960

skipif mysql # not compatible
query I rowsort label-233
SELECT + + 22 * - 7 + col1 - + CAST ( + col2 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-1629
-783
-960

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 92 col1 FROM tab2 AS cor0
----
-1564
-2852
-5428

onlyif mysql # use DIV operator for integer division
query I rowsort label-236
SELECT ALL + - CAST( + col2 AS SIGNED ) DIV - cor0.col0 + col0 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL + - CAST ( + col2 AS INTEGER ) / - cor0.col0 + col0 FROM tab1 AS cor0
----
21
64
81

query I rowsort
SELECT col1 + col2 * + col1 + - 54 FROM tab0 AS cor0
----
140
2870
7499

query I rowsort
SELECT + + 15 + + ( + col2 ) AS col0 FROM tab0 AS cor0
----
16
48
97

query I rowsort
SELECT DISTINCT - col2 + 24 FROM tab0
----
-58
-9
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-240
SELECT DISTINCT col2 DIV tab1.col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT col2 / tab1.col2 FROM tab1
----
1

query I rowsort
SELECT - - ( col0 ) + col1 AS col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-242
SELECT DISTINCT 39 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
1
3

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT 39 / cor0.col1 AS col1 FROM tab1 AS cor0
----
1
3

query I rowsort
SELECT ALL - col2 + col1 * 59 * - col0 FROM tab2 AS cor0
----
-12830
-271544
-79275

query I rowsort
SELECT ALL - ( - col2 ) + - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + 43 * - cor0.col1 FROM tab2 AS cor0
----
-1333
-2537
-731

query I rowsort
SELECT DISTINCT + col0 * col2 * + col1 + + col2 FROM tab2 AS cor0
----
119678
51072
5886

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

query I rowsort
SELECT - 10 FROM tab1 cor0
----
-10
-10
-10

query I rowsort
SELECT - - 38 * col2 + ( cor0.col0 * - col0 ) FROM tab1 AS cor0
----
-1930
-2752
2043

query I rowsort
SELECT col1 - - col0 * col2 AS col0 FROM tab1
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 + + col0 col0 FROM tab1
----
132
148
71

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

skipif mysql # not compatible
query I rowsort label-252
SELECT ALL + - col2 + col2 * - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-2970
-3306
-9312

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-254
SELECT + + col2 + 69 DIV col2 AS col0 FROM tab1 AS cor0
----
55
58
96

skipif mysql # not compatible
query I rowsort label-254
SELECT + + col2 + 69 / col2 AS col0 FROM tab1 AS cor0
----
55
58
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - 45 col1 FROM tab1 AS cor0
----
-19
-32
-35

query I rowsort
SELECT + 80 + - col2 AS col2 FROM tab2
----
42
53
54

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-258
SELECT + col2 * col2 + col1 DIV cor0.col0 FROM tab1 AS cor0
----
2924
3249
9216

skipif mysql # not compatible
query I rowsort label-258
SELECT + col2 * col2 + col1 / cor0.col0 FROM tab1 AS cor0
----
2924
3249
9216

query I rowsort
SELECT col2 + ( col1 ) * - col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL 2 * - col1 AS col0 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT + ( + col2 + + col2 ) FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT tab0.col2 AS col0 FROM tab0, tab1 cor0
----
1
33
82

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

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

query I rowsort
SELECT ALL - + 49 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to adfccb10c9468825d9961e3613140f89

query I rowsort
SELECT tab2.col2 - 70 FROM tab2, tab0 AS cor0
----
9 values hashing to d7600f907c2d572aaec394a61ee1c60b

query I rowsort
SELECT col0 + + col2 * - col0 AS col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT + 32 * cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b021124a67f03bd690bf85089039c654

query I rowsort
SELECT ALL + 69 + - 31 AS col2 FROM tab0
----
38
38
38

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( tab1.col2 ) * col2 col0 FROM tab1
----
-2916
-3249
-9216

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col1 + + col0 col2 FROM tab0 cor0
----
2088
3430
8188

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

query I rowsort
SELECT ALL col1 + + col1 AS col1 FROM tab2
----
118
34
62

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL IN ( col0 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( - col1 + col0 )
----

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

query I rowsort
SELECT ALL + col1 * col2 + + col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT col0 * - col0 * col1 + - col1 * col1 FROM tab0
----
-128234
-56932
-729092

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( + col1 ) AND NULL
----

query I rowsort
SELECT col2 + col2 * col1 + col2 AS col1 FROM tab2
----
1586
722
891

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 - - col0 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT - col0 * tab1.col0 + + col1 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT ALL + col0 * col1 + col2 AS col2 FROM tab1
----
1136
132
697

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

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

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

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

query I rowsort
SELECT DISTINCT - + col0 * + col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 * col1 col2 FROM tab2 AS cor0
----
1479
2697
5133

onlyif mysql # use DIV operator for integer division
query I rowsort label-295
SELECT - col0 + + col2 + - col2 DIV col2 AS col2 FROM tab0
----
-35
-8
8

skipif mysql # not compatible
query I rowsort label-295
SELECT - col0 + + col2 + - col2 / col2 AS col2 FROM tab0
----
-35
-8
8

query I rowsort
SELECT ALL - col0 * - tab1.col1 + tab1.col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 + col0 col1 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT tab1.col2 FROM tab1 WHERE NOT + col2 * + col1 > NULL
----

query I rowsort
SELECT col2 + - tab0.col2 * + col0 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( - col2 ) NOT BETWEEN ( col0 ) AND ( + col1 - col2 / - col1 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 col2 FROM tab0 cor0 WHERE ( NULL ) >= ( col1 )
----

query I rowsort
SELECT - col2 * col2 + + cor0.col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

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

query I rowsort
SELECT DISTINCT - col0 - col2 FROM tab1 AS cor0
----
-121
-176
-57

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-308
SELECT + col0 + - col0 DIV col2 AS col0 FROM tab0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-308
SELECT + col0 + - col0 / col2 AS col0 FROM tab0
----
0
24
88

query I rowsort
SELECT DISTINCT tab1.col0 - col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT - col0 * col1 + - col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-312
SELECT DISTINCT col1 * + col2 + - col2 DIV col1 - col2 AS col0 FROM tab2
----
1508
606
810

skipif mysql # not compatible
query I rowsort label-312
SELECT DISTINCT col1 * + col2 + - col2 / col1 - col2 AS col0 FROM tab2
----
1508
606
810

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-315
SELECT col1 DIV - col2 + col0 + col1 FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort label-315
SELECT col1 / - col2 + col0 + col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL + + col1 * + 79 * + col1 - 11 * col1 FROM tab2 AS cor0
----
22644
274350
75578

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 38896d3a4bd953cc78f93d73ae064cbd

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

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

query I rowsort
SELECT DISTINCT + + col1 + - col0 * col1 + - col0 * + 22 * + col1 AS col1 FROM tab1 AS cor0
----
-14710
-1768
-23907

onlyif mysql # use DIV operator for integer division
query I rowsort label-320
SELECT DISTINCT + + col2 DIV + 1 + - cor0.col1 * col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT + + col2 / + 1 + - cor0.col1 * col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

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

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

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

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

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

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

query I rowsort
SELECT + + ( col2 ) + - cor0.col2 * - 2 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT DISTINCT + - ( col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + + 56 * col0 AS col2 FROM tab1 AS cor0
----
168
3584
4480

query I rowsort
SELECT DISTINCT + col2 * + col0 - + col2 * - 34 FROM tab2 AS cor0
----
1107
2912
4294

onlyif mysql # use DIV operator for integer division
query I rowsort label-330
SELECT ALL - cor0.col2 * + cor0.col2 + col0 * col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL - cor0.col2 * + cor0.col2 + col0 * col1 / + col1 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722

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

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

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

query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * + 62 AS col2 FROM tab0 AS cor0
----
5299
5560
6013

query I rowsort
SELECT - tab1.col1 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # use DIV operator for integer division
query I rowsort label-335
SELECT - ( col1 ) * - col0 + + 14 DIV col1 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-335
SELECT - ( col1 ) * - col0 + + 14 / col1 FROM tab0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-336
SELECT CAST( NULL AS SIGNED ) + cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-336
SELECT CAST ( NULL AS INTEGER ) + cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

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

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

query I rowsort
SELECT + col1 * col1 - + col2 AS col0 FROM tab1 AS cor0
----
43
622
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-339
SELECT ALL - - col2 - - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL - - col2 - - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 - col0 col1 FROM tab2 AS cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-341
SELECT DISTINCT - + cor0.col1 DIV col1 + ( - col1 + col0 ) FROM tab1 cor0
----
-24
53
66

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT - + cor0.col1 / col1 + ( - col1 + col0 ) FROM tab1 cor0
----
-24
53
66

query I rowsort
SELECT DISTINCT - col0 + - col0 * - 65 AS col0 FROM tab0 AS cor0
----
1536
2240
5696

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-343
SELECT ALL + col1 / + CAST ( - 86 * col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-344
SELECT DISTINCT - - col2 DIV - 59 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT - - col2 / - 59 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT col1 + 82 * col0 AS col2 FROM tab0 AS cor0
----
2054
2967
7389

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

query I rowsort
SELECT DISTINCT - col1 * + ( 84 ) AS col2 FROM tab2 AS cor0
----
-1428
-2604
-4956

query I rowsort
SELECT ALL col1 * ( 45 ) AS col2 FROM tab0 AS cor0
----
3870
4095
4365

query I rowsort
SELECT - col0 + ( col0 + - col0 ) * 58 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT + col1 * 24 AS col0 FROM tab2 AS cor0
----
1416
408
744

query I rowsort
SELECT ALL - + cor0.col2 AS col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT + col2 * 35 - + 53 AS col1 FROM tab1 AS cor0
----
1837
1942
3307

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

query I rowsort
SELECT ALL + col0 * col0 * col1 FROM tab1 cor0
----
234
40960
83200

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-357
SELECT DISTINCT CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT 63 * col1 * col2 FROM tab1 AS cor0
----
35910
78624
88452

query I rowsort
SELECT + col1 * 95 FROM tab2
----
1615
2945
5605

query I rowsort
SELECT 87 AS col2 FROM tab2
----
87
87
87

query I rowsort
SELECT ALL - tab1.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 cor1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

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

query I rowsort
SELECT ALL + 79 AS col0 FROM tab0
----
79
79
79

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-366
SELECT DISTINCT - col0 DIV - 45 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-366
SELECT DISTINCT - col0 / - 45 FROM tab1
----
0
1

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + - col1 * 23 FROM tab2 cor0
----
-1298
-374
-682

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

query I rowsort
SELECT DISTINCT - + col1 * + 85 FROM tab1 AS cor0
----
-1105
-2210
-850

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

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab2 cor0
----
-7
-78
-79

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

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL + CAST ( - 74 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-74
-74
-74

query I rowsort
SELECT cor0.col0 + + ( col2 ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT 19 * 91 FROM tab2 AS cor0
----
1729
1729
1729

query I rowsort
SELECT - - col1 * - col2 * col0 AS col0 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT col0 + - col2 + + 76 AS col1 FROM tab1
----
25
60
83

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

query I rowsort
SELECT - 84 * - col1 * - col2 FROM tab2 cor0
----
-128856
-54264
-70308

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-384
SELECT + col2 - + col1 DIV - col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-384
SELECT + col2 - + col1 / - col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + ( 82 ) AS col1 FROM tab1
----
82
82
82

query I rowsort
SELECT - col2 * + col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT - col2 * - col2 - - col2 AS col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT ALL + 67 * + col2 * col1 + - col2 AS col0 FROM tab1
----
38133
83520
94014

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-390
SELECT - 29 * - col1 DIV col1 col0 FROM tab1 AS cor0
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-390
SELECT - 29 * - col1 / col1 col0 FROM tab1 AS cor0
----
29
29
29

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

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

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

query I rowsort
SELECT DISTINCT - col2 * - col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT col2 * - col1 + 44 * - col1 FROM tab0 AS cor0
----
-11466
-4365
-6622

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

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

query I rowsort
SELECT col1 + - cor0.col2 + col0 * - 17 * col1 FROM tab0 AS cor0
----
-137674
-35035
-57619

onlyif mysql # use DIV operator for integer division
query I rowsort label-397
SELECT ALL - col1 DIV 31 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL - col1 / 31 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT + col0 * + col1 + + ( - col2 ) * - col0 * 87 + - col2 FROM tab2 cor0
----
16633
181012
262479

query I rowsort
SELECT ALL - 56 * - col1 AS col1 FROM tab1 AS cor0
----
1456
560
728

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

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

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

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

query I rowsort
SELECT + col0 + + ( col0 ) FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT + col0 - 73 FROM tab0 AS cor0
----
-38
-49
16

query I rowsort
SELECT cor0.col0 + col1 FROM tab1 cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-407
SELECT cor0.col0 DIV + col0 - col2 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-407
SELECT cor0.col0 / + col0 - col2 FROM tab2 AS cor0
----
-25
-26
-37

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-409
SELECT ALL - + cor0.col0 + ( + cor0.col2 ) DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL - + cor0.col0 + ( + cor0.col2 ) / cor0.col2 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT + col2 * + 71 AS col0 FROM tab2 AS cor0
----
1846
1917
2698

query I rowsort
SELECT ALL + col1 * - 57 - col0 AS col2 FROM tab0 AS cor0
----
-4926
-5276
-5564

query I rowsort
SELECT - 98 * - col2 + - ( 28 ) * col1 AS col1 FROM tab0
----
-2618
5488
826

query I rowsort
SELECT col1 * - ( - 79 ) FROM tab2 AS cor0
----
1343
2449
4661

query I rowsort
SELECT - + 6 - - col1 AS col0 FROM tab1 cor0
----
20
4
7

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

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

query I rowsort
SELECT DISTINCT + + 35 * + cor0.col0 FROM tab1 AS cor0
----
105
2240
2800

query I rowsort
SELECT ALL ( ( col0 ) ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

onlyif mysql # use DIV operator for integer division
query I rowsort label-419
SELECT + col2 DIV - 23 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-419
SELECT + col2 / - 23 FROM tab0
----
-1
-3
0

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

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

query I rowsort
SELECT DISTINCT - col1 * + ( + 41 * - tab0.col2 ) FROM tab0
----
116358
305942
3977

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

query I rowsort
SELECT - col2 * 32 AS col2 FROM tab1
----
-1728
-1824
-3072

query I rowsort
SELECT ALL col1 + col0 * - col1 * + col0 - + col2 AS col0 FROM tab1
----
-262
-41007
-83283

query I rowsort
SELECT ALL - 98 - col1 FROM tab1
----
-108
-111
-124

query I rowsort
SELECT 88 - - col1 AS col0 FROM tab2
----
105
119
147

onlyif mysql # use DIV operator for integer division
query I rowsort label-427
SELECT ALL tab2.col0 DIV + col1 + col2 * + tab2.col1 AS col0 FROM tab2
----
1535
650
837

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL tab2.col0 / + col1 + col2 * + tab2.col1 AS col0 FROM tab2
----
1535
650
837

query I rowsort
SELECT - cor0.col1 + ( 25 ) FROM tab1 cor0
----
-1
12
15

query I rowsort
SELECT ALL col2 * 58 AS col2 FROM tab2 AS cor0
----
1508
1566
2204

query I rowsort
SELECT DISTINCT + col2 + col1 * + col1 * 60 AS col1 FROM tab2
----
17378
208886
57687

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

query I rowsort
SELECT DISTINCT + col1 + + col2 * ( 68 ) + + col1 FROM tab1
----
3724
3896
6554

query I rowsort
SELECT ALL 77 + col1 * 39 FROM tab0
----
3431
3626
3860

onlyif mysql # use DIV operator for integer division
query I rowsort label-434
SELECT col0 + - col2 DIV col0 AS col2 FROM tab1
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-434
SELECT col0 + - col2 / col0 AS col2 FROM tab1
----
-15
64
79

query I rowsort
SELECT + col0 + + col0 - col1 AS col2 FROM tab1
----
-20
118
147

query I rowsort
SELECT + 82 + - col0 FROM tab2
----
3
4
75

query I rowsort
SELECT ALL - cor0.col2 + 2 AS col1 FROM tab2 AS cor0
----
-24
-25
-36

query I rowsort
SELECT DISTINCT + cor0.col2 + ( col1 ) * - col0 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

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

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

query I rowsort
SELECT ALL col0 + - 91 AS col0 FROM tab2 AS cor0
----
-12
-13
-84

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

query I rowsort
SELECT + + col2 + 63 * col1 FROM tab2 AS cor0
----
1109
1980
3743

query I rowsort
SELECT DISTINCT - cor0.col0 - 54 FROM tab1 AS cor0
----
-118
-134
-57

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

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

query I rowsort
SELECT + col1 + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + cor0.col0 * col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - col2 + 40 FROM tab2 AS cor0
----
13
14
2

query I rowsort
SELECT DISTINCT - cor0.col0 * 27 AS col0 FROM tab2 cor0
----
-189
-2106
-2133

skipif mysql # not compatible
query I rowsort
SELECT + col2 * - CAST ( cor0.col0 AS REAL ) FROM tab1 cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - - col0 - + col1 FROM tab1 cor0
----
-23
54
67

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

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

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

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

query I rowsort
SELECT ALL + + col0 * 3 + + col1 FROM tab0 AS cor0
----
158
202
358

query I rowsort
SELECT ALL + + col2 * 16 - col0 * + col1 FROM tab1 cor0
----
272
496
786

query I rowsort
SELECT - 68 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 - - col1 * col1 col1 FROM tab1
----
146
215
722

query I rowsort
SELECT 59 * 12 FROM tab0 AS cor0
----
708
708
708

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

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT - col2 + col0 / col2 FROM tab1 AS cor0
----
-54
-56
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-462
SELECT col0 DIV ( + col1 ) AS col0 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-462
SELECT col0 / ( + col1 ) AS col0 FROM tab1 AS cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * 86 col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4a425fd1fe865edf3d551d399e553ffe

query I rowsort
SELECT + cor0.col0 * - 41 FROM tab1 AS cor0
----
-123
-2624
-3280

query I rowsort
SELECT ALL + + 60 AS col1 FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT DISTINCT cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT col2 * - col2 + col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL - 8 FROM tab1 AS cor0
----
-8
-8
-8

query I rowsort
SELECT + 74 + col2 AS col0 FROM tab0 AS cor0
----
107
156
75

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-471
SELECT + col2 + col2 - - 98 DIV 37 FROM tab1 AS cor0
----
110
116
194

skipif mysql # not compatible
query I rowsort label-471
SELECT + col2 + col2 - - 98 / 37 FROM tab1 AS cor0
----
110
116
194

query I rowsort
SELECT DISTINCT - col2 * cor0.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 col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - + 72 FROM tab0 AS cor0
----
-72
-72
-72

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

query I rowsort
SELECT ALL + - ( - col0 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + 97 * + col2 AS col2 FROM tab2 AS cor0
----
2522
2619
3686

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

query I rowsort
SELECT - 9 * - col0 FROM tab0 AS cor0
----
216
315
801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 * col2 col1 FROM tab1 AS cor0
----
1404
1482
2496

query I rowsort
SELECT + 17 AS col1 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT ALL - + col2 * - col0 + - cor0.col2 + col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
379
4307
6604

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

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

query I rowsort
SELECT - col1 + + col0 * 45 AS col1 FROM tab2 AS cor0
----
284
3451
3538

query I rowsort
SELECT ALL + col0 + + col0 * 27 AS col1 FROM tab2 AS cor0
----
196
2184
2212

query I rowsort
SELECT DISTINCT - 37 AS col2 FROM tab1 AS cor0
----
-37

query I rowsort
SELECT - col2 * col2 - - col2 * col2 FROM tab0 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-489
SELECT - col0 / col2 + col0 - cor0.col0 FROM tab1 AS cor0
----
-1
0
0

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

query I rowsort
SELECT DISTINCT 4 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
4

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-493
SELECT + 35 + col0 DIV + col2 FROM tab0
----
35
36
70

skipif mysql # not compatible
query I rowsort label-493
SELECT + 35 + col0 / + col2 FROM tab0
----
35
36
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 * + col2 + + col1 * 89 * - 75 col2 FROM tab0 AS cor0
----
-573126
-605129
-647447

query I rowsort
SELECT - ( col0 ) * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + - col1 * - 71 * col0 AS col1 FROM tab0 AS cor0
----
146544
241045
575029

onlyif mysql # use DIV operator for integer division
query I rowsort label-497
SELECT DISTINCT + + ( cor0.col2 ) DIV col1 + - cor0.col1 AS col2 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-497
SELECT DISTINCT + + ( cor0.col2 ) / col1 + - cor0.col1 AS col2 FROM tab0 cor0
----
-86
-91
-97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT + ( col1 ) / col0 col1 FROM tab2 AS cor0
----
0
4

query I rowsort
SELECT DISTINCT cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
24
35
89

query I rowsort
SELECT ALL - - 92 * - col2 AS col1 FROM tab2 AS cor0
----
-2392
-2484
-3496

query I rowsort
SELECT DISTINCT - 45 AS col1 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT col2 * 87 AS col0 FROM tab0 AS cor0
----
2871
7134
87

query I rowsort
SELECT - 48 + col0 FROM tab2 AS cor0
----
-41
30
31

query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col0 + col2 FROM tab2 AS cor0
----
6110
6279
76

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

query I rowsort
SELECT ALL col0 + - tab1.col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 79 * col1 * + col1 FROM tab0
----
584284
654199
743311

query I rowsort
SELECT ALL 99 FROM tab0
----
99
99
99

query I rowsort
SELECT DISTINCT ( - col0 * - col0 ) AS col2 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL - 35 AS col1 FROM tab0 cor0
----
-35
-35
-35

query I rowsort
SELECT - cor0.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 67 ) col0 FROM tab1
----
-67

query I rowsort
SELECT + + cor0.col2 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT + 78 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-517
SELECT ALL col0 DIV - 5 AS col0 FROM tab2
----
-1
-15
-15

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL col0 / - 5 AS col0 FROM tab2
----
-1
-15
-15

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( - col1 ) col1 FROM tab2
----
-289
-3481
-961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-521
SELECT col1 * + CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-521
SELECT col1 * + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL - - col0 + + col1 - 56 AS col0 FROM tab0 cor0
----
124
54
76

query I rowsort
SELECT DISTINCT ( 54 ) FROM tab0, tab0 AS cor0
----
54

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

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT - ( tab2.col1 ) + + col1 * CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
272
3422
930

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

query I rowsort
SELECT 64 * col0 + + 51 FROM tab2 AS cor0
----
499
5043
5107

query I rowsort
SELECT DISTINCT col0 * 86 FROM tab1
----
258
5504
6880

query I rowsort
SELECT DISTINCT 96 * col1 AS col0 FROM tab2
----
1632
2976
5664

onlyif mysql # use DIV operator for integer division
query I rowsort label-529
SELECT - 4 DIV col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-529
SELECT - 4 / col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 93 + - col2 FROM tab2 AS cor0
----
55
66
67

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

query I rowsort
SELECT + 46 * - col2 AS col1 FROM tab2
----
-1196
-1242
-1748

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

skipif mysql # not compatible
query I rowsort label-533
SELECT - + col2 + col1 / ( + cor0.col1 * cor0.col0 ) FROM tab1 AS cor0
----
-54
-57
-96

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

query I rowsort
SELECT 42 + col1 FROM tab1 AS cor0
----
52
55
68

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + - col2 * ( col2 * + col2 ) col0 FROM tab1 AS cor0
----
-157410
-185136
-884640

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

query I rowsort
SELECT ALL - cor0.col0 + col2 + 7 AS col0 FROM tab2 AS cor0
----
-34
-45
27

query I rowsort
SELECT - + 28 * - cor0.col0 + + 67 FROM tab2 AS cor0
----
2251
2279
263

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - cor0.col1 * col2 col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 - col1 * col2 FROM tab1 cor0
----
-1417
-2080
-670

onlyif mysql # use DIV operator for integer division
query I rowsort label-543
SELECT + col1 * col1 DIV 3 FROM tab1
----
225
33
56

skipif mysql # not compatible
query I rowsort label-543
SELECT + col1 * col1 / 3 FROM tab1
----
225
33
56

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-545
SELECT DISTINCT col0 * col1 DIV - col0 AS col1 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-545
SELECT DISTINCT col0 * col1 / - col0 AS col1 FROM tab2
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-546
SELECT - ( col1 ) DIV - col0 + + ( + cor0.col0 * ( col2 ) ) - col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-163
-2043
-60

skipif mysql # not compatible
query I rowsort label-546
SELECT - ( col1 ) / - col0 + + ( + cor0.col0 * ( col2 ) ) - col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-163
-2043
-60

query I rowsort
SELECT + col1 + - col0 * 99 FROM tab2 AS cor0
----
-662
-7663
-7804

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

query I rowsort
SELECT + col0 * 97 + col0 FROM tab1 AS cor0
----
294
6272
7840

query I rowsort
SELECT - cor0.col0 * + 74 + col0 * + col2 AS col2 FROM tab0 cor0
----
-2555
-984
712

query I rowsort
SELECT col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + 40 FROM tab2, tab1 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT + - col1 * + ( - col1 ) - - cor0.col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col2 + - 89 * col1 - + col0 col0 FROM tab0 cor0
----
-6886
-8633
-890

query I rowsort
SELECT DISTINCT - 64 * - col1 FROM tab2
----
1088
1984
3776

onlyif mysql # use DIV operator for integer division
query I rowsort label-557
SELECT + col0 + + 26 DIV col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-557
SELECT + col0 + + 26 / col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + col2 * 28 FROM tab0 AS cor0
----
2296
28
924

query I rowsort
SELECT ALL - ( + 80 ) AS col0 FROM tab1
----
-80
-80
-80

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

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

query I rowsort
SELECT ALL 68 AS col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT + 60 AS col2 FROM tab0
----
60
60
60

query I rowsort
SELECT + 68 + - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4028
-6332
59

query I rowsort
SELECT - - 47 AS col0 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT 67 * + col1 FROM tab2 AS cor0
----
1139
2077
3953

query I rowsort
SELECT - - ( cor0.col0 ) + col0 * col1 * + 7 FROM tab1 AS cor0
----
4544
549
7360

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

query I rowsort
SELECT + 27 * - col1 FROM tab0 AS cor0
----
-2322
-2457
-2619

query I rowsort
SELECT + 8 * + col2 AS col0 FROM tab2 AS cor0
----
208
216
304

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-571
SELECT 12 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-571
SELECT 12 / col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-572
SELECT DISTINCT tab0.col0 DIV - cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
-1
-2
-3
-6
-8
0

skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT tab0.col0 / - cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
-1
-2
-3
-6
-8
0

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

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL + 32 / ( + col0 + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT 68 + col2 AS col1 FROM tab0 cor0
----
101
150
69

query I rowsort
SELECT DISTINCT - ( 49 ) * col2 AS col1 FROM tab1 AS cor0
----
-2646
-2793
-4704

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

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

query I rowsort
SELECT ALL - col1 + - 38 AS col0 FROM tab1 cor0
----
-48
-51
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-579
SELECT ALL 78 DIV - 46 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL 78 / - 46 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-580
SELECT DISTINCT + CAST( col2 AS SIGNED ) + + col2 * - col2 col2 FROM tab2 AS cor0
----
-1406
-650
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + + col2 * - col2 col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT + col1 * + 64 FROM tab2 cor0
----
1088
1984
3776

query I rowsort
SELECT ALL - 28 - + col1 FROM tab2 AS cor0
----
-45
-59
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - 0 * + col2 col1 FROM tab2 cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( cor0.col1 ) + + col2 col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL 31 * 89 + - col2 FROM tab1 AS cor0
----
2663
2702
2705

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-586
SELECT CAST( - cor0.col1 AS SIGNED ) * col0 - cor0.col2 AS col0 FROM tab1 cor0
----
-1136
-132
-697

skipif mysql # not compatible
query I rowsort label-586
SELECT CAST ( - cor0.col1 AS INTEGER ) * col0 - cor0.col2 AS col0 FROM tab1 cor0
----
-1136
-132
-697

query I rowsort
SELECT - - 39 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT DISTINCT 5 AS col2 FROM tab2 AS cor0
----
5

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

skipif mysql # not compatible
query I rowsort label-589
SELECT + CAST ( + cor0.col1 AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT - 0 AS col2 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 + 98 * - tab0.col1 col0 FROM tab0
----
-8428
-8918
-9506

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

query I rowsort
SELECT DISTINCT + 22 + col2 * + cor0.col2 FROM tab2 AS cor0
----
1466
698
751

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

query I rowsort
SELECT - ( 52 ) * + col2 FROM tab2 cor0
----
-1352
-1404
-1976

query I rowsort
SELECT - - 75 + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
1609
721
912

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

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

query I rowsort
SELECT 6 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT 5 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT ALL 91 * + col0 FROM tab1
----
273
5824
7280

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

query I rowsort
SELECT - col0 * 5 FROM tab0 AS cor0
----
-120
-175
-445

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

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

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-606
SELECT + CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-606
SELECT + CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL tab2.col2 * col1 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT col2 * ( 44 ) AS col1 FROM tab2
----
1144
1188
1672

query I rowsort
SELECT + col1 + 31 FROM tab1 AS cor0
----
41
44
57

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

query I rowsort
SELECT DISTINCT - col0 - - col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-612
SELECT DISTINCT + + col0 + + col0 DIV + col1 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-612
SELECT DISTINCT + + col0 + + col0 / + col1 FROM tab1 AS cor0
----
3
70
86

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

query I rowsort
SELECT + col2 + + 22 * ( col2 + tab2.col0 ) FROM tab2
----
2314
2612
775

query I rowsort
SELECT ALL 42 - 47 FROM tab1, tab0 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT ALL - + col1 * 27 + col0 FROM tab0 cor0
----
-2298
-2368
-2584

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-618
SELECT ALL col2 + - col0 DIV 62 FROM tab2 AS cor0
----
25
27
37

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL col2 + - col0 / 62 FROM tab2 AS cor0
----
25
27
37

query I rowsort
SELECT + col2 + 25 * - col0 * + col2 AS col2 FROM tab0 AS cor0
----
-182368
-19767
-874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col1 FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to e587c122dea39a2488ff88b884cea462

skipif mysql # not compatible
query I rowsort
SELECT + col1 + CAST ( 19 AS REAL ) * col1 FROM tab1 AS cor0
----
200
260
520

query I rowsort
SELECT - col2 + - 85 FROM tab0 AS cor0
----
-118
-167
-86

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

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL col0 / CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - cor0.col0 + + ( cor0.col2 ) FROM tab0 AS cor0
----
-34
-7
9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 81 ) + + col0 col0 FROM tab1 AS cor0
----
-1
-17
-78

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-630
SELECT col1 DIV - ( - col0 ) AS col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-630
SELECT col1 / - ( - col0 ) AS col0 FROM tab2 AS cor0
----
0
0
4

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 + - 36 col1 FROM tab0 AS cor0
----
-1
7262
756

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

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

query I rowsort
SELECT ALL 45 FROM tab2
----
45
45
45

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

query I rowsort
SELECT DISTINCT - - col1 * col1 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + 25 col0 FROM tab0 AS cor0
----
2089
3420
8124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 7 + cor0.col2 * + col2 + 79 col2 FROM tab2 AS cor0
----
1516
748
801

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

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

query I rowsort
SELECT - col1 * + col0 + + col1 * col2 FROM tab0
----
-3298
-637
774

onlyif mysql # use DIV operator for integer division
query I rowsort label-644
SELECT ALL col2 DIV ( ( - col1 ) ) + cor0.col2 DIV - 19 AS col0 FROM tab0 cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL col2 / ( ( - col1 ) ) + cor0.col2 / - 19 AS col0 FROM tab0 cor0
----
-1
-4
0

query I rowsort
SELECT DISTINCT - col2 * - col0 + ( col0 ) FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - cor0.col0 * - col1 col2 FROM tab2 AS cor0
----
1381
244
4628

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

query I rowsort
SELECT DISTINCT col2 + - col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT - col1 * col0 + - 82 * col0 * - col0 FROM tab2
----
3801
494286
510419

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 + - col2 * col2 col0 FROM tab1
----
-2970
-3303
-9270

query I rowsort
SELECT DISTINCT col2 + col2 + - col1 * + col2 FROM tab2
----
-1482
-570
-783

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

query I rowsort
SELECT + 63 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT + + 21 + col2 - col0 FROM tab1 cor0
----
14
37
72

query I rowsort
SELECT - ( col1 ) + col0 - + 47 AS col2 FROM tab1 cor0
----
-70
20
7

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

query I rowsort
SELECT + 62 * - col0 + + ( 80 ) AS col1 FROM tab1 AS cor0
----
-106
-3888
-4880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * ( + col0 ) col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - col0 + 11 FROM tab2 AS cor0
----
-67
-68
4

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

query I rowsort
SELECT - 59 FROM tab0
----
-59
-59
-59

query I rowsort
SELECT 51 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to a82d7aa6706433125f80558d877b8f07

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-663
SELECT + CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-663
SELECT + CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL - - ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT 61 FROM tab0 AS cor0
----
61

query I rowsort
SELECT DISTINCT 61 + col2 + + col1 FROM tab1 cor0
----
128
141
170

query I rowsort
SELECT cor0.col2 * cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b2e5b025b1c725661248b0f29aaef908

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

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

query I rowsort
SELECT DISTINCT 49 FROM tab2
----
49

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

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

query I rowsort
SELECT + 48 + - col0 + cor0.col0 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT + - col1 * + col0 + ( cor0.col0 * col1 ) + - 83 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-249
-5312
-6640

onlyif mysql # use DIV operator for integer division
query I rowsort label-674
SELECT + - ( + cor0.col1 ) + + 98 * ( + cor0.col2 ) DIV + 32 AS col0 FROM tab1 AS cor0
----
139
164
281

skipif mysql # not compatible
query I rowsort label-674
SELECT + - ( + cor0.col1 ) + + 98 * ( + cor0.col2 ) / + 32 AS col0 FROM tab1 AS cor0
----
139
164
281

query I rowsort
SELECT cor0.col0 + col0 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-676
SELECT + CAST( - col2 AS SIGNED ) FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-676
SELECT + CAST ( - col2 AS INTEGER ) FROM tab2
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 * + ( col2 ) * col0 col2 FROM tab1
----
233472
486
614400

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

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

query I rowsort
SELECT DISTINCT 64 + col0 AS col1 FROM tab1 cor0
----
128
144
67

query I rowsort
SELECT ALL cor0.col1 + cor0.col1 - col2 AS col1 FROM tab2 AS cor0
----
-4
35
92

query I rowsort
SELECT DISTINCT 40 * + cor0.col1 FROM tab2 AS cor0
----
1240
2360
680

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

query I rowsort
SELECT DISTINCT + col0 * - col2 * cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
-26112
-598347
0

query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 + + ( 39 ) AS col1 FROM tab0 AS cor0
----
2103
3434
8138

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-690
SELECT DISTINCT - cor0.col0 DIV cor0.col2 + col0 * 88 FROM tab1 AS cor0
----
264
5631
7040

skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT - cor0.col0 / cor0.col2 + col0 * 88 FROM tab1 AS cor0
----
264
5631
7040

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

query I rowsort
SELECT - 43 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c

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

skipif mysql # not compatible
query I rowsort label-693
SELECT - col2 / + tab0.col1 FROM tab0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL 46 / - tab2.col1 AS col2 FROM tab2
----
-1
-2
0

query I rowsort
SELECT 49 - col2 FROM tab2
----
11
22
23

query I rowsort
SELECT ALL 99 AS col1 FROM tab1, tab2, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to c841a8d826151b422ecdb71db0250739

query I rowsort
SELECT col1 * + 72 FROM tab1
----
1872
720
936

query I rowsort
SELECT + + 34 * 74 * col2 AS col2 FROM tab0 cor0
----
206312
2516
83028

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

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

query I rowsort
SELECT - 52 FROM tab1, tab2, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to bee61227972ad9a02705a1cd2b945aee

onlyif mysql # use DIV operator for integer division
query I rowsort label-701
SELECT col2 DIV col1 + tab1.col1 FROM tab1
----
15
20
28

skipif mysql # not compatible
query I rowsort label-701
SELECT col2 / col1 + tab1.col1 FROM tab1
----
15
20
28

query I rowsort
SELECT + col2 + tab2.col1 + + tab2.col2 FROM tab2
----
111
85
93

query I rowsort
SELECT - col0 - 69 AS col1 FROM tab2
----
-147
-148
-76

query I rowsort
SELECT DISTINCT + tab1.col0 + + col2 * 80 FROM tab1
----
4323
4624
7760

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-707
SELECT - CAST( - col2 AS SIGNED ) FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-707
SELECT - CAST ( - col2 AS INTEGER ) FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-708
SELECT + - col2 DIV 81 + - col1 * - 12 FROM tab2 AS cor0
----
204
372
708

skipif mysql # not compatible
query I rowsort label-708
SELECT + - col2 / 81 + - col1 * - 12 FROM tab2 AS cor0
----
204
372
708

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

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

query I rowsort
SELECT ALL 49 * 3 * col2 FROM tab2 AS cor0
----
3822
3969
5586

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

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

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

query I rowsort
SELECT DISTINCT col2 - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

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

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

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT col1 / - col1 AS col2 FROM tab1 AS cor0
----
-1

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 - col0 AS col2 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT col2 * col2 FROM tab0 AS cor0 WHERE NOT col1 * col2 * - cor0.col2 BETWEEN col2 AND NULL
----
1
1089
6724

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( col1 - col2 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT col2 - col2 AS col2 FROM tab1
----
0

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

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

query I rowsort
SELECT DISTINCT + col0 * - col1 FROM tab2 WHERE NOT NULL >= - col2 * col2 * col2
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 * - col0 ) BETWEEN ( NULL ) AND ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab0 WHERE ( NULL ) BETWEEN - tab0.col1 AND + col1 * + col2 + col0
----

query I rowsort
SELECT tab1.col2 - col1 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT col0 - col1 AS col2 FROM tab1
----
-23
54
67

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

query I rowsort
SELECT tab0.col1 + tab0.col2 * - col0 AS col1 FROM tab0
----
-706
-7207
62

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

skipif mysql # not compatible
query I rowsort label-734
SELECT + col2 / - col0 AS col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT col0 IN ( - col2 )
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT col0 + - col1 AS col1 FROM tab1
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-738
SELECT col2 + col1 DIV col1 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-738
SELECT col2 + col1 / col1 FROM tab1
----
55
58
97

query III rowsort
SELECT * FROM tab2 WHERE - col0 * - col2 IN ( - col2 + + col1 )
----

query I rowsort
SELECT DISTINCT col0 + col2 + col2 * col1 FROM tab1 WHERE NOT NULL NOT IN ( col0 * + col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-741
SELECT DISTINCT col2 + - tab0.col0 DIV col0 AS col2 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT col2 + - tab0.col0 / col0 AS col2 FROM tab0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-742
SELECT col1 + + col1 DIV - col0 + - col0 FROM tab0
----
1
59
60

skipif mysql # not compatible
query I rowsort label-742
SELECT col1 + + col1 / - col0 + - col0 FROM tab0
----
1
59
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-743
SELECT + tab0.col1 DIV col1 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-743
SELECT + tab0.col1 / col1 AS col1 FROM tab0
----
1
1
1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-745
SELECT + col0 * + col2 + - col2 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-745
SELECT + col0 * + col2 + - col2 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-746
SELECT DISTINCT - col0 DIV col0 + + col2 AS col1 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-746
SELECT DISTINCT - col0 / col0 + + col2 AS col1 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT + + col2 - - col0 FROM tab0 AS cor0
----
171
36
57

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

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

query I rowsort
SELECT ALL + col1 * + col1 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT + col0 - - col0 * - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-24
-262080
-511920

query I rowsort
SELECT ALL col2 + col2 AS col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT ALL - col2 * + col1 + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT tab2.col0 * + col1 * tab2.col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT + col2 + - col0 * - col0 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
1323
695
8094

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN cor0.col2 AND col1 OR NULL BETWEEN col0 + col2 AND NULL
----
7
31
27
78
59
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( NULL ) OR NULL IN ( col0 )
----

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

skipif mysql # not compatible
query I rowsort label-758
SELECT DISTINCT + + col0 + col0 + + col2 / col1 AS col0 FROM tab0 AS cor0
----
178
48
70

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

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

query I rowsort
SELECT + col0 + + col2 AS col0 FROM tab1 cor0
----
121
176
57

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

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

query I rowsort
SELECT tab2.col2 AS col1 FROM tab0 cor0 CROSS JOIN tab2
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL cor0.col2 + + col2 * - col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

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

query I rowsort
SELECT ALL - col1 + + col1 + - col2 AS col1 FROM tab1
----
-54
-57
-96

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

query I rowsort
SELECT col1 * + 37 AS col2 FROM tab0 AS cor0
----
3182
3367
3589

query I rowsort
SELECT DISTINCT + 43 + col2 FROM tab2
----
69
70
81

query I rowsort
SELECT + 88 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT DISTINCT 28 FROM tab2
----
28

query I rowsort
SELECT - 80 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd

query I rowsort
SELECT col0 + - col1 + + tab0.col0 AS col2 FROM tab0
----
-27
-38
87

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

query I rowsort
SELECT ( + col2 ) * 48 FROM tab0
----
1584
3936
48

query I rowsort
SELECT DISTINCT - 63 FROM tab1
----
-63

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 cor2
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT cor0.col1 * cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

query I rowsort
SELECT ALL - cor0.col1 * 1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - col0 + 45 * + col2 AS col0 FROM tab2 AS cor0
----
1092
1208
1631

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-782
SELECT DISTINCT cor0.col0 + CAST( - 64 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-29
-40
25

skipif mysql # not compatible
query I rowsort label-782
SELECT DISTINCT cor0.col0 + CAST ( - 64 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-29
-40
25

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

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT - col1 / 25 + col2 / col0 FROM tab1 AS cor0
----
0
1
17

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

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

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

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

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

query I rowsort
SELECT ALL - col2 + col1 + col0 AS col1 FROM tab1
----
-25
-3
17

query I rowsort
SELECT ALL col2 + + tab0.col0 + - col1 AS col0 FROM tab0
----
-29
-61
80

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - tab2.col2 - col2 )
----

query I rowsort
SELECT DISTINCT col1 + + col1 + - col0 FROM tab2
----
-45
40
55

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

query I rowsort
SELECT DISTINCT tab0.col2 * col1 AS col1 FROM tab0
----
2838
7462
97

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

query I rowsort
SELECT + col0 * col2 * - col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT - col0 * - col1 * col0 FROM tab1
----
234
40960
83200

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 + col1 ) BETWEEN NULL AND - col2 - col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT col1 + - col1 + - col2 * col2 * - col2 FROM tab0
----
1
35937
551368

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN ( - col1 ) AND col0
----

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

query I rowsort
SELECT col2 FROM tab0 WHERE ( + col0 ) BETWEEN NULL AND ( col0 )
----

query I rowsort
SELECT tab0.col2 FROM tab0 WHERE NULL >= ( col1 )
----

query I rowsort
SELECT col0 * - col1 * - col2 + + col2 FROM tab0
----
3396
664200
68145

onlyif mysql # use DIV operator for integer division
query I rowsort label-803
SELECT ALL col0 DIV + col0 + - col0 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-803
SELECT ALL col0 / + col0 + - col0 FROM tab1
----
-2
-63
-79

query I rowsort
SELECT tab0.col1 * col2 * - col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT col2 + col2 * col2 FROM tab0
----
1122
2
6806

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * col2 + - col2 NOT BETWEEN NULL AND ( - col0 )
----

query I rowsort
SELECT ALL col1 + - col0 * col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - ( - col2 ) FROM tab2 AS cor0
----
26
27
38

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

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

query I rowsort
SELECT + - 16 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-272
-496
-944

query I rowsort
SELECT DISTINCT + + col1 * cor0.col1 + 17 - col1 AS col2 FROM tab2 AS cor0
----
289
3439
947

query I rowsort
SELECT DISTINCT - 58 AS col2 FROM tab2 cor0
----
-58

query I rowsort
SELECT - col1 - col0 * 13 * col2 AS col0 FROM tab1 cor0
----
-2132
-47434
-99853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 col2 FROM tab0, tab2 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT ALL 47 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

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

skipif mysql # not compatible
query I rowsort
SELECT ALL + + col2 * - CAST ( - col2 * - col1 AS REAL ) FROM tab0 AS cor0
----
-611884
-93654
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-3
-64
-80

query I rowsort
SELECT 26 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT ALL + 2 * col2 * tab0.col2 AS col0 FROM tab0
----
13448
2
2178

query I rowsort
SELECT + col0 * + col2 - - col0 * - col0 AS col2 FROM tab2 cor0
----
-3239
-4056
140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - col1 col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT col0 - - 59 * - col2 AS col1 FROM tab0 AS cor0
----
-1923
-24
-4749

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab2 cor1, tab2 cor2
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2

query I rowsort
SELECT - - col1 * col0 + - col0 + col1 AS col2 FROM tab1 cor0
----
101
586
973

query I rowsort
SELECT DISTINCT + 28 AS col2 FROM tab2
----
28

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

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

query I rowsort
SELECT + ( cor0.col1 ) * - col0 + - 23 * col1 FROM tab1 AS cor0
----
-1339
-676
-870

query I rowsort
SELECT + + col2 + - col0 + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7405
8274
9375

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

skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT - 26 / col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 56 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT - + col2 * - 32 * col1 AS col0 FROM tab2 AS cor0
----
20672
26784
49088

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

query I rowsort
SELECT + col1 + + ( + 3 ) * - col1 FROM tab1 AS cor0
----
-20
-26
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-837
SELECT + + col0 * col0 DIV + col0 AS col1 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-837
SELECT + + col0 * col0 / + col0 AS col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT col0 * + ( col1 ) FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-839
SELECT + col0 DIV + cor0.col2 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-839
SELECT + col0 / + cor0.col2 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT ALL - 86 * col2 FROM tab1
----
-4644
-4902
-8256

query I rowsort
SELECT tab2.col0 * + col0 * - 37 + - 21 FROM tab2
----
-1834
-225129
-230938

query I rowsort
SELECT + tab1.col2 * + 75 * - 98 + - tab1.col2 + + 34 FROM tab1, tab1 AS cor0
----
9 values hashing to 569ed8375b0e05f0123d49c4f10d3770

query I rowsort
SELECT ALL 7 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

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

query I rowsort
SELECT ALL + col2 * + 4 FROM tab0 AS cor0
----
132
328
4

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-847
SELECT DISTINCT + - ( - col1 ) DIV - col1 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-847
SELECT DISTINCT + - ( - col1 ) / - col1 AS col1 FROM tab2 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-848
SELECT DISTINCT - col1 DIV cor0.col1 + - col0 DIV 13 FROM tab1 AS cor0
----
-1
-5
-7

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT - col1 / cor0.col1 + - col0 / 13 FROM tab1 AS cor0
----
-1
-5
-7

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

skipif mysql # not compatible
query I rowsort label-849
SELECT - CAST ( NULL AS INTEGER ) - + 52 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-851
SELECT DISTINCT + 65 * 19 DIV - col2 col2 FROM tab0 AS cor0
----
-1235
-15
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT + 65 * 19 / - col2 col2 FROM tab0 AS cor0
----
-1235
-15
-37

query I rowsort
SELECT DISTINCT + 61 * col1 FROM tab2 AS cor0
----
1037
1891
3599

query I rowsort
SELECT ALL col2 + - col0 * col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-180
-40903
-83104

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

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

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

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

query I rowsort
SELECT + col2 + 38 AS col0 FROM tab1
----
134
92
95

query I rowsort
SELECT - - 74 + col0 AS col0 FROM tab2 AS cor0
----
152
153
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-859
SELECT - - 42 + + col1 + + col0 DIV + col1 FROM tab0 cor0
----
128
133
139

skipif mysql # not compatible
query I rowsort label-859
SELECT - - 42 + + col1 + + col0 / + col1 FROM tab0 cor0
----
128
133
139

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

query I rowsort
SELECT - 66 FROM tab1 AS cor0
----
-66
-66
-66

query I rowsort
SELECT cor1.col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL + 30 AS col2 FROM tab1
----
30
30
30

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

query I rowsort
SELECT - + col1 + - col1 * 27 FROM tab2 AS cor0
----
-1652
-476
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 + 56 col0 FROM tab0
----
153
2894
7518

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

query I rowsort
SELECT 14 * 46 FROM tab2
----
644
644
644

query I rowsort
SELECT ALL + col0 + col0 AS col2 FROM tab0
----
178
48
70

query I rowsort
SELECT - 56 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) AS col1 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-872
SELECT 24 + 21 * + col1 DIV col1 FROM tab0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-872
SELECT 24 + 21 * + col1 / col1 FROM tab0
----
45
45
45

query I rowsort
SELECT DISTINCT col2 + col0 * col0 * - 83 FROM tab1
----
-339911
-531104
-693

query I rowsort
SELECT + ( - col0 ) * - col1 + col0 AS col2 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT + - col2 * 8 FROM tab1 AS cor0
----
-432
-456
-768

query I rowsort
SELECT ALL - + 26 AS col0 FROM tab0 cor0
----
-26
-26
-26

query I rowsort
SELECT DISTINCT 87 FROM tab1 AS cor0
----
87

query I rowsort
SELECT DISTINCT 97 AS col1 FROM tab2, tab1 AS cor0
----
97

query I rowsort
SELECT ALL + cor0.col1 * - col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - - col1 + - col1 * - col0 * col1 AS col0 FROM tab2 cor0
----
22848
271577
6758

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

query I rowsort
SELECT DISTINCT + 84 * col1 * - col1 AS col0 FROM tab0 AS cor0
----
-621264
-695604
-790356

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

query I rowsort
SELECT ALL col1 + + cor0.col1 * + 13 FROM tab1 cor0
----
140
182
364

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

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

query I rowsort
SELECT ALL 61 * - col2 FROM tab2 AS cor0
----
-1586
-1647
-2318

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 * col1 col2 FROM tab1 AS cor0
----
-1690
-650
-845

onlyif mysql # use DIV operator for integer division
query I rowsort label-889
SELECT DISTINCT + 65 DIV col2 AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT + 65 / col2 AS col2 FROM tab1 AS cor0
----
0
1

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

query I rowsort
SELECT DISTINCT + 90 + + col1 FROM tab2
----
107
121
149

query I rowsort
SELECT DISTINCT col1 + col1 + col0 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT DISTINCT + - cor0.col2 - + col2 FROM tab1 AS cor0
----
-108
-114
-192

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-896
SELECT col0 + col2 DIV + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
7
78
81

skipif mysql # not compatible
query I rowsort label-896
SELECT col0 + col2 / + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
7
78
81

query I rowsort
SELECT + cor0.col1 + 23 * 37 AS col1 FROM tab1 AS cor0
----
861
864
877

query I rowsort
SELECT ALL col0 * ( + 5 ) AS col0 FROM tab1 AS cor0
----
15
320
400

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

query I rowsort
SELECT - col1 * col0 + - 74 FROM tab0 AS cor0
----
-2138
-3469
-8173

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-901
SELECT ALL col1 * + CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL col1 * + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-902
SELECT DISTINCT + - col2 DIV + col0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-902
SELECT DISTINCT + - col2 / + col0 FROM tab2 AS cor0
----
-3
0

query I rowsort
SELECT DISTINCT col1 * col2 + 92 AS col0 FROM tab1 AS cor0
----
1340
1496
662

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-905
SELECT ALL - + cor0.col1 + - col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
-16
-19
-26

skipif mysql # not compatible
query I rowsort label-905
SELECT ALL - + cor0.col1 + - col0 / + col1 AS col1 FROM tab1 AS cor0
----
-16
-19
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-906
SELECT DISTINCT - - col0 DIV ( - col0 ) + col1 * + col1 FROM tab0 AS cor0
----
7395
8280
9408

skipif mysql # not compatible
query I rowsort label-906
SELECT DISTINCT - - col0 / ( - col0 ) + col1 * + col1 FROM tab0 AS cor0
----
7395
8280
9408

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

skipif mysql # not compatible
query I rowsort label-907
SELECT + col1 * CAST ( 2 AS INTEGER ) - + col2 AS col0 FROM tab1 AS cor0
----
-2
-37
-70

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

query I rowsort
SELECT + col0 - 93 * + col1 * col1 AS col0 FROM tab0 AS cor0
----
-687804
-770044
-875002

query I rowsort
SELECT ALL - + cor0.col0 * 95 FROM tab2 AS cor0
----
-665
-7410
-7505

onlyif mysql # use DIV operator for integer division
query I rowsort label-911
SELECT ALL cor0.col2 * ( col1 + col0 ) DIV - 38 FROM tab0 AS cor0
----
-3
-388
-95

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL cor0.col2 * ( col1 + col0 ) / - 38 FROM tab0 AS cor0
----
-3
-388
-95

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-914
SELECT col2 DIV - 17 AS col1 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-914
SELECT col2 / - 17 AS col1 FROM tab0 AS cor0
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-915
SELECT ALL 38 DIV - col0 AS col2 FROM tab1 AS cor0
----
-12
0
0

skipif mysql # not compatible
query I rowsort label-915
SELECT ALL 38 / - col0 AS col2 FROM tab1 AS cor0
----
-12
0
0

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

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

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

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

query I rowsort
SELECT + 47 + - cor0.col1 AS col2 FROM tab1, tab2 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to f8777971843d6c03bacdd89f13a409bb

query I rowsort
SELECT - cor0.col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT - ( 63 ) * col2 FROM tab0 AS cor0
----
-2079
-5166
-63

query I rowsort
SELECT ( col0 ) * - col1 * 49 AS col2 FROM tab0 AS cor0
----
-101136
-166355
-396851

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

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

query I rowsort
SELECT + 25 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT col0 * col0 + + col0 FROM tab1
----
12
4160
6480

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

query I rowsort
SELECT + + col2 * - col2 + - col1 * col0 * col2 AS col0 FROM tab2 AS cor0
----
-120328
-52478
-6588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 + - col1 + + 36 col2 FROM tab0 AS cor0
----
-2114
-3456
-8154

query I rowsort
SELECT DISTINCT - + cor0.col0 - cor0.col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT + - col1 * 91 + col0 AS col0 FROM tab1 AS cor0
----
-1103
-2363
-846

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

query I rowsort
SELECT - 75 * cor0.col0 FROM tab0 AS cor0
----
-1800
-2625
-6675

query I rowsort
SELECT - - 19 AS col1 FROM tab0 cor0
----
19
19
19

query I rowsort
SELECT DISTINCT + col0 * + 15 + col2 AS col1 FROM tab1 AS cor0
----
1017
1296
99

query I rowsort
SELECT DISTINCT 84 + ( + cor0.col1 ) FROM tab0 AS cor0
----
170
175
181

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

query I rowsort
SELECT ALL + - ( ( - cor0.col2 ) ) * + 55 + - 54 FROM tab0 AS cor0
----
1
1761
4456

query I rowsort
SELECT ALL - col0 * col0 + col2 * col0 FROM tab1 AS cor0
----
-448
1280
153

query I rowsort
SELECT col2 + - col2 * cor0.col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT 34 + col1 AS col0 FROM tab1 AS cor0
----
44
47
60

query I rowsort
SELECT ALL 73 + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-116
-1955
-2929

query I rowsort
SELECT DISTINCT col2 * col1 + 58 FROM tab0
----
155
2896
7520

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

query I rowsort
SELECT col0 * col1 * tab2.col1 FROM tab2
----
22831
271518
6727

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

query I rowsort
SELECT + + 55 + cor0.col1 * col1 FROM tab2 cor0
----
1016
344
3536

query I rowsort
SELECT DISTINCT - 62 FROM tab0, tab0 AS cor0
----
-62

query I rowsort
SELECT col0 * + 8 FROM tab1
----
24
512
640

query I rowsort
SELECT ALL tab0.col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT 87 FROM tab1, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # use DIV operator for integer division
query I rowsort label-950
SELECT ALL - - 42 + - 70 DIV + cor0.col1 + 38 FROM tab1 AS cor0
----
73
75
78

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL - - 42 + - 70 / + cor0.col1 + 38 FROM tab1 AS cor0
----
73
75
78

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

query I rowsort
SELECT DISTINCT + tab1.col1 * 75 * tab1.col0 FROM tab1
----
48000
5850
78000

query I rowsort
SELECT 73 * 84 + col2 AS col1 FROM tab2
----
6158
6159
6170

query I rowsort
SELECT - 32 FROM tab2, tab1 cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT 28 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT + ( + col0 ) + + tab0.col1 FROM tab0
----
110
132
180

query I rowsort
SELECT - + 52 + 6 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT - col0 * + col1 + col2 * - col1 AS col2 FROM tab1
----
-1210
-1482
-2288

query I rowsort
SELECT DISTINCT - col2 + - ( col1 ) * col2 AS col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT col2 * tab0.col2 + 83 AS col2 FROM tab0
----
1172
6807
84

query I rowsort
SELECT 62 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT - col1 * tab2.col0 FROM tab2
----
-1343
-217
-4602

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-964
SELECT col2 DIV 51 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-964
SELECT col2 / 51 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL + 58 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

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

query I rowsort
SELECT DISTINCT + + col0 * - col0 + col2 * col2 * + col1 AS col2 FROM tab0 AS cor0
----
-1128
603963
93078

query I rowsort
SELECT + col1 * + ( - col2 ) AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + + cor0.col0 * + 10 - + col2 FROM tab1 AS cor0
----
-24
583
704

onlyif mysql # use DIV operator for integer division
query I rowsort label-970
SELECT ALL - col0 * + col0 * + col2 + - col2 DIV + col1 FROM tab2 cor0
----
-1323
-158184
-237160

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL - col0 * + col0 * + col2 + - col2 / + col1 FROM tab2 cor0
----
-1323
-158184
-237160

query I rowsort
SELECT DISTINCT - col0 * + ( cor0.col0 ) + col0 AS col0 FROM tab0 cor0
----
-1190
-552
-7832

query I rowsort
SELECT 14 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT + 34 AS col0 FROM tab0 cor0
----
34
34
34

query I rowsort
SELECT - cor0.col0 * - 37 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to ebf091b388c084b9a265fe815c0afef7

query I rowsort
SELECT - 99 * + tab1.col1 AS col0 FROM tab1
----
-1287
-2574
-990

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

query I rowsort
SELECT DISTINCT - + 43 * col2 AS col2 FROM tab0 AS cor0
----
-1419
-3526
-43

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-979
SELECT DISTINCT - cor0.col0 + + ( - col1 ) DIV - col1 AS col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT - cor0.col0 + + ( - col1 ) / - col1 AS col0 FROM tab2 AS cor0
----
-6
-77
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-980
SELECT ALL + - col0 + + CAST( col2 AS SIGNED ) DIV col1 AS col1 FROM tab2 AS cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL + - col0 + + CAST ( col2 AS INTEGER ) / col1 AS col1 FROM tab2 AS cor0
----
-7
-77
-78

query I rowsort
SELECT col1 + col1 AS col2 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT + 69 * - col0 AS col2 FROM tab2 AS cor0
----
-483
-5382
-5451

query I rowsort
SELECT + 8 AS col2 FROM tab0 cor0
----
8
8
8

query I rowsort
SELECT + + 33 * 79 AS col2 FROM tab0 AS cor0
----
2607
2607
2607

query I rowsort
SELECT DISTINCT - - cor0.col2 FROM tab1, tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 * + cor0.col0 col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-1968
-2870
-7298

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

query I rowsort
SELECT DISTINCT tab2.col1 * + ( - col2 * - col1 ) FROM tab2
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab2, tab1 cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
-10
-13
-26

query I rowsort
SELECT - - tab0.col2 + - cor0.col2 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to bab603c128469ce0f2f5055f599e7b06

query I rowsort
SELECT - 71 AS col1 FROM tab2 AS cor0
----
-71
-71
-71

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

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

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

skipif mysql # not compatible
query I rowsort label-994
SELECT - - CAST ( NULL AS REAL ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + col2 col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT - cor0.col1 * cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + ( col0 ) + - col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - 7 * cor0.col2 FROM tab1 AS cor0
----
-378
-399
-672

query I rowsort
SELECT - col0 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1190
552
7832

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

query I rowsort
SELECT ALL - 91 + + col0 + 94 FROM tab0 AS cor0
----
27
38
92

query I rowsort
SELECT ALL + 46 - col2 AS col2 FROM tab0 AS cor0
----
-36
13
45

query I rowsort
SELECT + 44 * col2 FROM tab2 AS cor0
----
1144
1188
1672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-1005
SELECT ALL - + col1 * cor0.col0 + ( - col0 ) DIV - col0 AS col0 FROM tab0 AS cor0
----
-2063
-3394
-8098

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL - + col1 * cor0.col0 + ( - col0 ) / - col0 AS col0 FROM tab0 AS cor0
----
-2063
-3394
-8098

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - 40 col1 FROM tab1
----
14
27
30

query I rowsort
SELECT ALL col1 * - 58 - col0 * + tab2.col2 AS col1 FROM tab2
----
-1987
-3988
-5450

query I rowsort
SELECT ALL - col1 + 33 * - ( + col2 ) - col1 * col2 FROM tab0
----
-10259
-227
-4013

query I rowsort
SELECT ALL + col2 - + 18 AS col1 FROM tab2
----
20
8
9

query I rowsort
SELECT ALL - col0 + + col2 - col2 AS col2 FROM tab0
----
-24
-35
-89

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

query I rowsort
SELECT DISTINCT - col2 * + ( col1 + col2 ) * + ( col2 * col2 ) AS col0 FROM tab1 AS cor0
----
-12407931
-12597120
-96436224

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

skipif mysql # not compatible
query I rowsort label-1014
SELECT - - col2 + - col1 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
23
26
38

query I rowsort
SELECT col1 + - 17 AS col0 FROM tab1 cor0
----
-4
-7
9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 10 col2 FROM tab1 AS cor0
----
100
130
260

onlyif mysql # use DIV operator for integer division
query I rowsort label-1018
SELECT + col1 + col0 DIV col1 AS col2 FROM tab2 cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-1018
SELECT + col1 + col0 / col1 AS col2 FROM tab2 cor0
----
21
31
60

query I rowsort
SELECT ALL - ( - 47 ) * col1 FROM tab1 cor0
----
1222
470
611

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

query I rowsort
SELECT + - col2 + - col0 - cor0.col2 AS col2 FROM tab0 AS cor0
----
-253
-37
-90

query I rowsort
SELECT 98 * - cor0.col1 + + col1 * ( col0 * col0 ) FROM tab2 AS cor0
----
-1519
104431
353174

query I rowsort
SELECT + 14 + 74 FROM tab1 AS cor0
----
88
88
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1024
SELECT DISTINCT - CAST( 96 AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
2304
3360
8544

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT - CAST ( 96 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
2304
3360
8544

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1026
SELECT - col2 * CAST( - col0 * col2 AS SIGNED ) AS col0 FROM tab0
----
26136
35
598436

skipif mysql # not compatible
query I rowsort label-1026
SELECT - col2 * CAST ( - col0 * col2 AS INTEGER ) AS col0 FROM tab0
----
26136
35
598436

query I rowsort
SELECT 57 FROM tab0, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ALL + - col2 * cor0.col2 * 95 FROM tab2 AS cor0
----
-137180
-64220
-69255

query I rowsort
SELECT 47 AS col1 FROM tab1, tab2 cor0, tab2 cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT ALL - col0 + col1 * - 92 FROM tab1 AS cor0
----
-1276
-2395
-984

query I rowsort
SELECT ALL 61 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 27 col1 FROM tab2
----
-11
0
1

query I rowsort
SELECT DISTINCT col0 + col2 * - col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT ALL tab0.col1 + ( - col2 ) FROM tab0
----
53
9
96

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * 24 col0 FROM tab2 AS cor0
----
624
648
912

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

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

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

query I rowsort
SELECT ALL - cor0.col2 * - col0 + - col0 * + cor0.col0 + ( col0 ) FROM tab0 AS cor0
----
-1155
-534
240

query I rowsort
SELECT ALL + 42 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT DISTINCT - col1 * col2 + col1 + col1 AS col1 FROM tab1 AS cor0
----
-1222
-1352
-550

query I rowsort
SELECT col1 - 52 AS col0 FROM tab1
----
-26
-39
-42

query I rowsort
SELECT ALL + 31 AS col2 FROM tab0
----
31
31
31

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

query I rowsort
SELECT col2 * + 65 - col2 FROM tab0
----
2112
5248
64

query I rowsort
SELECT + col2 * - 77 FROM tab0 cor0
----
-2541
-6314
-77

query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab1, tab1 AS cor0
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab0.col2 * col2 ) + 56 col2 FROM tab0
----
1145
57
6780

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) + 90 * + col2 FROM tab0 AS cor0
----
2937
7298
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col0 ) + + 78 col1 FROM tab2 AS cor0
----
156
157
85

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 * + col0 col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT col1 * col1 + ( + col0 ) FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT + 89 - col0 AS col2 FROM tab2 AS cor0
----
10
11
82

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

query I rowsort
SELECT ALL - tab0.col0 * col0 * 14 + - col2 AS col2 FROM tab0
----
-110976
-17151
-8097

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1061
SELECT ALL - + col1 * - cor0.col0 - ( col1 + - col2 ) * 10 DIV + col1 AS col2 FROM tab1 AS cor0
----
1103
687
88

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL - + col1 * - cor0.col0 - ( col1 + - col2 ) * 10 / + col1 AS col2 FROM tab1 AS cor0
----
1103
687
88

query I rowsort
SELECT + - col1 * + col0 + 17 AS col1 FROM tab0 cor0
----
-2047
-3378
-8082

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

query I rowsort
SELECT ALL - 47 * - cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
1214
1742
4274

query I rowsort
SELECT DISTINCT 3 + - cor0.col2 + 96 * col1 FROM tab0 AS cor0
----
8226
8657
9314

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) - col1 * + cor0.col2 col2 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT + - 47 + col1 FROM tab0 AS cor0
----
39
44
50

query I rowsort
SELECT - + 98 FROM tab2 AS cor0
----
-98
-98
-98

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

query I rowsort
SELECT DISTINCT col1 + col1 AS col2 FROM tab1 AS cor0
----
20
26
52

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

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

query I rowsort
SELECT - col0 - + col0 AS col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT - + cor0.col0 * col1 + - ( - 33 ) * + col0 AS col1 FROM tab0 AS cor0
----
-1272
-2240
-5162

onlyif mysql # use DIV operator for integer division
query I rowsort label-1076
SELECT col1 * - col1 * + col2 + - 20 DIV - col1 FROM tab1 AS cor0
----
-16223
-36504
-5698

skipif mysql # not compatible
query I rowsort label-1076
SELECT col1 * - col1 * + col2 + - 20 / - col1 FROM tab1 AS cor0
----
-16223
-36504
-5698

query I rowsort
SELECT DISTINCT + 21 + col0 FROM tab2
----
100
28
99

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

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

query I rowsort
SELECT ( col1 ) + 85 * + ( col2 ) FROM tab1 AS cor0
----
4616
4855
8173

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

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

query I rowsort
SELECT DISTINCT - 72 * + col0 FROM tab1
----
-216
-4608
-5760

query I rowsort
SELECT ALL col1 * + cor0.col0 + - 15 + col2 AS col0 FROM tab0 AS cor0
----
2082
3381
8166

query I rowsort
SELECT + col2 - - 69 FROM tab0 AS cor0
----
102
151
70

query I rowsort
SELECT - col1 * 84 + + col2 + col1 * col2 * col0 FROM tab2 cor0
----
114722
3282
49644

query I rowsort
SELECT ALL + col0 + - ( col0 ) - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - col1 * 2 * col0 FROM tab0 AS cor0
----
-16198
-4128
-6790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col0 + col1 * col1 col1 FROM tab0 AS cor0
----
360
6820
8184

query I rowsort
SELECT DISTINCT col0 + col1 + col0 * col2 AS col2 FROM tab1
----
191
3722
7773

query I rowsort
SELECT + + cor0.col2 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT + - cor0.col1 - + ( 27 ) * - cor0.col1 FROM tab2 AS cor0
----
1534
442
806

query I rowsort
SELECT DISTINCT + col1 * col0 + - col1 FROM tab0 cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT - ( 0 ) * - col0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 * - 80 + col0 FROM tab2 AS cor0
----
2158
2167
3119

query I rowsort
SELECT - - col0 * - col0 * col2 + - cor0.col2 * - col0 AS col2 FROM tab2 cor0
----
-1134
-156156
-234156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 22 * col1 + + col2 * ( - col2 ) col1 FROM tab1 AS cor0
----
-2344
-3029
-8930

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

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL + + 85 / col2 AS col1 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1099
SELECT 16 DIV + 10 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1099
SELECT 16 / + 10 FROM tab2 cor0
----
1
1
1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1101
SELECT DISTINCT + col0 DIV + 59 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT + col0 / + 59 AS col2 FROM tab2 AS cor0
----
0
1

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

query I rowsort
SELECT - - col0 + + col2 + + col1 * col2 * - 34 AS col0 FROM tab1 AS cor0
----
-19259
-42256
-47679

query I rowsort
SELECT col1 + col0 * + col1 + col2 FROM tab2 AS cor0
----
1398
275
4687

query I rowsort
SELECT ALL - 90 * col0 AS col1 FROM tab1 AS cor0
----
-270
-5760
-7200

query I rowsort
SELECT - col2 + col0 * col1 + col0 AS col2 FROM tab2 AS cor0
----
1384
197
4654

query I rowsort
SELECT + + col0 + + 82 AS col2 FROM tab0 cor0
----
106
117
171

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

skipif mysql # not compatible
query I rowsort label-1108
SELECT col1 * + CAST ( col2 AS INTEGER ) + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT col0 * ( col0 ) + col2 + cor0.col1 FROM tab2 AS cor0
----
107
6169
6296

query I rowsort
SELECT ALL - + col2 + 47 AS col2 FROM tab1 AS cor0
----
-10
-49
-7

query I rowsort
SELECT + - cor0.col2 + + ( - col1 * + cor0.col1 ) FROM tab2 AS cor0
----
-327
-3507
-988

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1113
SELECT + col2 DIV + 12 + - ( col1 + col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-1276
-152
-2072

skipif mysql # not compatible
query I rowsort label-1113
SELECT + col2 / + 12 + - ( col1 + col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-1276
-152
-2072

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1119
SELECT - col1 * col2 - col1 DIV + 87 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-1119
SELECT - col1 * col2 - col1 / + 87 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col1 - cor0.col0 * cor0.col2 AS col1 FROM tab0 cor0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) col0 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
-26
-27
-38

query I rowsort
SELECT + col1 - + col1 * + 26 FROM tab1 AS cor0
----
-250
-325
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-1123
SELECT - col1 DIV + col1 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1123
SELECT - col1 / + col1 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT 64 * - col2 FROM tab1
----
-3456
-3648
-6144

query I rowsort
SELECT 9 AS col2 FROM tab2
----
9
9
9

query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL - ( col0 ) * 46 + - col1 * col1 * + col1 AS col0 FROM tab1 AS cor0
----
-17714
-3944
-5877

query I rowsort
SELECT - + 2 * - col1 + col1 FROM tab1 AS cor0
----
30
39
78

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT - + col0 / col2 col0 FROM tab1 AS cor0
----
-1
0

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

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

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

query I rowsort
SELECT col0 + col2 * + col1 AS col2 FROM tab2
----
1612
725
844

query I rowsort
SELECT col0 * tab2.col0 * + col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT DISTINCT tab1.col1 - col0 * col2 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT col2 * col2 * - col0 FROM tab2
----
-114076
-5103
-52728

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

query I rowsort
SELECT DISTINCT col1 + col1 * + col2 * + col0 FROM tab2
----
119711
51051
5890

query I rowsort
SELECT tab0.col1 + tab0.col1 AS col0 FROM tab0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-1140
SELECT ALL col0 + col0 DIV col2 FROM tab1
----
3
65
80

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL col0 + col0 / col2 FROM tab1
----
3
65
80

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

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

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL col0 / col1 + - col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT col2 * tab0.col1 + col0 - tab0.col2 * col2 AS col0 FROM tab0
----
131
1773
827

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

query I rowsort
SELECT DISTINCT - col0 * + col1 * - col2 + + col0 + - col1 AS col1 FROM tab2 cor0
----
119671
51096
5835

query I rowsort
SELECT ALL col0 - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1148
SELECT CAST( - col0 + + col2 AS SIGNED ) FROM tab1
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-1148
SELECT CAST ( - col0 + + col2 AS INTEGER ) FROM tab1
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1149
SELECT ALL CAST( col1 AS SIGNED ) * - tab2.col1 FROM tab2
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL CAST ( col1 AS INTEGER ) * - tab2.col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT + ( + col2 ) AS col0 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1151
SELECT 52 * - col0 - col1 DIV col1 AS col0 FROM tab2
----
-365
-4057
-4109

skipif mysql # not compatible
query I rowsort label-1151
SELECT 52 * - col0 - col1 / col1 AS col0 FROM tab2
----
-365
-4057
-4109

query I rowsort
SELECT ( ( tab0.col2 ) ) - col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1153
SELECT DISTINCT tab0.col2 DIV col2 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1153
SELECT DISTINCT tab0.col2 / col2 AS col2 FROM tab0
----
1

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

query I rowsort
SELECT - cor0.col1 + - col1 AS col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT + col2 + 34 FROM tab1 cor0
----
130
88
91

query I rowsort
SELECT col1 + + tab0.col0 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT 96 + - col2 AS col1 FROM tab2 cor0
----
58
69
70

query I rowsort
SELECT + 6 * col2 AS col0 FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT ALL - 42 + - cor0.col0 * col0 AS col1 FROM tab2 cor0
----
-6126
-6283
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 col0 FROM tab2 AS cor0
----
-1444
-676
-729

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

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

query I rowsort
SELECT ALL 8 AS col1 FROM tab2 cor0
----
8
8
8

query I rowsort
SELECT + - 90 AS col1 FROM tab1 AS cor0
----
-90
-90
-90

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

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

query I rowsort
SELECT ALL + col0 + + col1 + - col1 AS col2 FROM tab2 cor0
----
7
78
79

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1172
SELECT - CAST( 91 AS SIGNED ) * + col2 + - 72 AS col0 FROM tab0 AS cor0
----
-163
-3075
-7534

skipif mysql # not compatible
query I rowsort label-1172
SELECT - CAST ( 91 AS INTEGER ) * + col2 + - 72 AS col0 FROM tab0 AS cor0
----
-163
-3075
-7534

query I rowsort
SELECT ALL 77 + col2 FROM tab2 AS cor0
----
103
104
115

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

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

query I rowsort
SELECT DISTINCT col2 * + col1 + + col1 * + 3 FROM tab1 AS cor0
----
1287
1482
600

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

query I rowsort
SELECT DISTINCT 99 * ( - col1 ) + col0 * - col2 + col0 FROM tab2 AS cor0
----
-3251
-4606
-7791

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

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

query I rowsort
SELECT ALL + 88 * - col0 AS col1 FROM tab1 AS cor0
----
-264
-5632
-7040

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

query I rowsort
SELECT + 68 + 36 * - col0 FROM tab1 cor0
----
-2236
-2812
-40

query I rowsort
SELECT ALL ( + col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + 1 + - ( tab2.col0 ) * col1 FROM tab2
----
-1342
-216
-4601

query I rowsort
SELECT ALL - 83 * + col2 + tab2.col2 AS col0 FROM tab2
----
-2132
-2214
-3116

onlyif mysql # use DIV operator for integer division
query I rowsort label-1186
SELECT DISTINCT ( - col1 ) + col1 DIV - 23 FROM tab2
----
-17
-32
-61

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT ( - col1 ) + col1 / - 23 FROM tab2
----
-17
-32
-61

query I rowsort
SELECT + col1 + + col1 * 72 FROM tab0 cor0
----
6278
6643
7081

query I rowsort
SELECT - col1 + col1 - - 63 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT + col2 + + tab2.col1 + col2 AS col0 FROM tab2
----
111
85
93

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

query I rowsort
SELECT 40 * + col0 + + col0 FROM tab2
----
287
3198
3239

onlyif mysql # use DIV operator for integer division
query I rowsort label-1192
SELECT DISTINCT col1 * col2 DIV col1 + col0 + + col2 FROM tab2
----
130
155
61

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT col1 * col2 / col1 + col0 + + col2 FROM tab2
----
130
155
61

query I rowsort
SELECT + 8 AS col2 FROM tab2
----
8
8
8

query I rowsort
SELECT col2 + col2 + col2 AS col1 FROM tab2
----
114
78
81

query I rowsort
SELECT ALL + ( + 59 ) * - tab1.col1 * col0 + col2 FROM tab1
----
-37703
-4548
-61264

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

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

query I rowsort
SELECT DISTINCT - col1 * + ( 44 ) AS col2 FROM tab0 AS cor0
----
-3784
-4004
-4268

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1198
SELECT ALL cor0.col0 * 4 + + cor0.col0 * - col2 + CAST( - col2 * + col0 AS SIGNED ) FROM tab0 AS cor0
----
-14240
-1488
70

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL cor0.col0 * 4 + + cor0.col0 * - col2 + CAST ( - col2 * + col0 AS INTEGER ) FROM tab0 AS cor0
----
-14240
-1488
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab2, tab0, tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT - - col1 - ( col1 ) AS col0 FROM tab1 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1201
SELECT DISTINCT + col2 + + CAST( + ( + col0 ) AS SIGNED ) + - col2 * 8 AS col2 FROM tab2 AS cor0
----
-104
-182
-187

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT + col2 + + CAST ( + ( + col0 ) AS INTEGER ) + - col2 * 8 AS col2 FROM tab2 AS cor0
----
-104
-182
-187

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

query I rowsort
SELECT - col2 + col0 * tab1.col1 * 63 FROM tab1
----
40263
4860
65424

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

query I rowsort
SELECT - 74 + col0 FROM tab2
----
-67
4
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-1206
SELECT - col0 DIV col1 + - 29 * 80 * + col2 FROM tab2
----
-60321
-62640
-88164

skipif mysql # not compatible
query I rowsort label-1206
SELECT - col0 / col1 + - 29 * 80 * + col2 FROM tab2
----
-60321
-62640
-88164

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

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

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2 cor2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

onlyif mysql # use DIV operator for integer division
query I rowsort label-1210
SELECT ALL + - cor0.col2 * + col0 + cor0.col2 DIV col1 + col2 FROM tab0 AS cor0
----
-34
-7216
-759

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL + - cor0.col2 * + col0 + cor0.col2 / col1 + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + col1 * + col1 + + col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT - + col0 + 55 FROM tab0 cor0
----
-34
20
31

query I rowsort
SELECT DISTINCT col0 * - col0 + + 32 AS col0 FROM tab2 AS cor0
----
-17
-6052
-6209

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * - CAST ( + 93 * - col2 + - 80 AS REAL ) FROM tab0
----
6055
685834
75576

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

query I rowsort
SELECT DISTINCT + + col1 + ( 17 ) FROM tab0 cor0
----
103
108
114

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 col0 FROM tab1, tab0 AS cor0
----
78

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

query I rowsort
SELECT + - 45 * + col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-25920
-356445
-55125

query I rowsort
SELECT DISTINCT col0 * 64 FROM tab1
----
192
4096
5120

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

query I rowsort
SELECT DISTINCT + + cor0.col1 * col0 * col0 FROM tab0 AS cor0
----
118825
49536
720811

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

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

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

query I rowsort
SELECT ALL ( 34 ) AS col1 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT DISTINCT - cor0.col0 * 66 + - col0 AS col1 FROM tab0 AS cor0
----
-1608
-2345
-5963

query I rowsort
SELECT DISTINCT - 22 AS col0 FROM tab2 AS cor0
----
-22

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

query I rowsort
SELECT DISTINCT col1 + - 30 * col2 FROM tab2 AS cor0
----
-1123
-721
-779

query I rowsort
SELECT cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT 47 FROM tab0, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

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

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

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

query I rowsort
SELECT ALL col2 * col2 + + 40 * ( col0 ) * ( + cor0.col1 ) FROM tab2 AS cor0
----
184756
55164
9409

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

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

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

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

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

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

query I rowsort
SELECT ALL - + col1 + col2 * + col2 FROM tab1 AS cor0
----
2890
3239
9203

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 82 * col2 col1 FROM tab2 AS cor0
----
2132
2214
3116

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

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

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

query I rowsort
SELECT ALL - 89 FROM tab2 cor0
----
-89
-89
-89

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

query I rowsort
SELECT + 40 + col0 * + 92 AS col2 FROM tab2 AS cor0
----
684
7216
7308

query I rowsort
SELECT ALL - + 26 FROM tab2 AS cor0
----
-26
-26
-26

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

query I rowsort
SELECT DISTINCT cor0.col1 + + col0 * - ( - col1 * col0 + col0 ) FROM tab2 cor0
----
1501
352931
99873

query I rowsort
SELECT col1 * col1 * 71 AS col1 FROM tab2 AS cor0
----
20519
247151
68231

query I rowsort
SELECT + + col2 + 84 * + col2 AS col1 FROM tab2 AS cor0
----
2210
2295
3230

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

query I rowsort
SELECT + col0 + - col2 AS col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT ALL + 68 AS col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1259
SELECT 80 DIV + col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-1259
SELECT 80 / + col1 FROM tab2
----
1
2
4

query I rowsort
SELECT DISTINCT + 62 AS col2 FROM tab2
----
62

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab1 AS cor0, tab0 AS cor1
----
972 values hashing to 5e655b1287771868a8f868574a94d749

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1263
SELECT + 15 + - col2 DIV 47 AS col0 FROM tab0 AS cor0
----
14
15
15

skipif mysql # not compatible
query I rowsort label-1263
SELECT + 15 + - col2 / 47 AS col0 FROM tab0 AS cor0
----
14
15
15

query I rowsort
SELECT + tab1.col1 - 30 * - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2ad5f80e6938f144a9c367f0a264e49b

query I rowsort
SELECT - tab0.col2 * - col0 + col0 + col2 FROM tab0
----
71
7469
849

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

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 AS cor2
----
972 values hashing to d522b52b67b20888d3544d25cb98f232

onlyif mysql # use DIV operator for integer division
query I rowsort label-1268
SELECT DISTINCT - col0 DIV col2 - + col1 * + col2 FROM tab0 AS cor0
----
-132
-2838
-7463

skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT - col0 / col2 - + col1 * + col2 FROM tab0 AS cor0
----
-132
-2838
-7463

onlyif mysql # use DIV operator for integer division
query I rowsort label-1269
SELECT + + col0 DIV - 89 + - 81 DIV - col1 FROM tab1 AS cor0
----
3
6
8

skipif mysql # not compatible
query I rowsort label-1269
SELECT + + col0 / - 89 + - 81 / - col1 FROM tab1 AS cor0
----
3
6
8

query I rowsort
SELECT ALL + col1 * 12 FROM tab2 AS cor0
----
204
372
708

query I rowsort
SELECT DISTINCT col1 + - col0 * - 48 FROM tab0 AS cor0
----
1238
1777
4363

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + 88 col1 FROM tab2 AS cor0
----
105
119
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 54 col0 FROM tab1 cor0
----
162
3456
4320

query I rowsort
SELECT DISTINCT - col0 * + col1 + - col1 * + col0 + + 46 FROM tab1 AS cor0
----
-110
-1234
-2034

query I rowsort
SELECT ALL + col0 * 73 + + col1 FROM tab1 AS cor0
----
245
4682
5853

onlyif mysql # use DIV operator for integer division
query I rowsort label-1276
SELECT + 48 DIV + col1 - col2 AS col2 FROM tab2
----
-26
-26
-36

skipif mysql # not compatible
query I rowsort label-1276
SELECT + 48 / + col1 - col2 AS col2 FROM tab2
----
-26
-26
-36

query I rowsort
SELECT + 91 * + 5 + - col0 FROM tab1 cor0
----
375
391
452

query I rowsort
SELECT - 55 * + col1 AS col0 FROM tab2 AS cor0
----
-1705
-3245
-935

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

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

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

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

query I rowsort
SELECT DISTINCT - 34 AS col0 FROM tab2 AS cor0
----
-34

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

query I rowsort
SELECT - 51 * - 31 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c6e9200a6a3ce83d26330e2848ea5506

onlyif mysql # use DIV operator for integer division
query I rowsort label-1285
SELECT + 23 DIV - col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1285
SELECT + 23 / - col1 FROM tab2 AS cor0
----
-1
0
0

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

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

query I rowsort
SELECT DISTINCT 18 * col2 FROM tab1 AS cor0
----
1026
1728
972

query I rowsort
SELECT + - 64 * + col1 FROM tab0 AS cor0
----
-5504
-5824
-6208

query I rowsort
SELECT - + col2 + col2 * 33 * - cor0.col0 FROM tab2 cor0
----
-6264
-66950
-99104

query I rowsort
SELECT ALL + 17 + col2 FROM tab0 AS cor0
----
18
50
99

query I rowsort
SELECT ALL + 86 * cor0.col2 FROM tab2 AS cor0
----
2236
2322
3268

query I rowsort
SELECT DISTINCT - 88 + col2 FROM tab0 AS cor0
----
-55
-6
-87

query I rowsort
SELECT - 67 AS col2 FROM tab1
----
-67
-67
-67

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

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

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

query I rowsort
SELECT ALL - 83 * col2 FROM tab1 cor0
----
-4482
-4731
-7968

query I rowsort
SELECT + 53 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

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

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

query I rowsort
SELECT ALL + 90 + col0 AS col2 FROM tab0 AS cor0
----
114
125
179

query I rowsort
SELECT + ( - 81 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT DISTINCT - 86 AS col0 FROM tab1 AS cor0
----
-86

query I rowsort
SELECT + col1 * - 27 FROM tab2
----
-1593
-459
-837

query I rowsort
SELECT 16 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1307
SELECT CAST( col0 AS SIGNED ) + col2 * col0 AS col2 FROM tab2
----
196
2106
3081

skipif mysql # not compatible
query I rowsort label-1307
SELECT CAST ( col0 AS INTEGER ) + col2 * col0 AS col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT DISTINCT + 1 AS col1 FROM tab1
----
1

query I rowsort
SELECT col2 * + ( col2 * col0 ) - + col1 FROM tab1
----
207926
737267
8722

query I rowsort
SELECT + ( col0 ) + + col1 * - 63 FROM tab2
----
-1946
-3639
-992

query I rowsort
SELECT + 59 * col1 AS col0 FROM tab2 AS cor0
----
1003
1829
3481

query I rowsort
SELECT ALL + col0 * + 72 AS col1 FROM tab1 AS cor0
----
216
4608
5760

query I rowsort
SELECT + col2 * 45 * + col0 FROM tab2 cor0
----
135090
8505
91260

query I rowsort
SELECT - col0 + col1 * - 16 * col2 FROM tab0
----
-119481
-1587
-45432

query I rowsort
SELECT 73 AS col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

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

query I rowsort
SELECT DISTINCT + + col0 + - 53 FROM tab1 AS cor0
----
-50
11
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-1318
SELECT ALL + col2 + + ( 72 ) DIV col2 - col1 * col1 FROM tab0 AS cor0
----
-7361
-8199
-9336

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL + col2 + + ( 72 ) / col2 - col1 * col1 FROM tab0 AS cor0
----
-7361
-8199
-9336

query I rowsort
SELECT ALL - col1 * - col0 * col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT + cor0.col0 * col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + col1 + col1 + - ( col0 ) AS col0 FROM tab1 cor0
----
-44
-54
49

query I rowsort
SELECT DISTINCT + col0 - + ( - col0 ) AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + 28 + col2 FROM tab1 cor0
----
124
82
85

query I rowsort
SELECT DISTINCT + 53 FROM tab1 AS cor0
----
53

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14

query I rowsort
SELECT ALL - 59 * col0 AS col0 FROM tab0 AS cor0
----
-1416
-2065
-5251

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT + cor0.col2 + 60 FROM tab0, tab2 cor0, tab2 AS cor1
----
86
87
98

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

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

query I rowsort
SELECT - col0 * tab1.col0 * ( - col1 * + col1 ) AS col2 FROM tab1
----
1081600
409600
6084

query I rowsort
SELECT DISTINCT + col2 * + col0 * 66 AS col1 FROM tab1
----
10692
240768
506880

query I rowsort
SELECT DISTINCT tab0.col2 AS col0 FROM tab0, tab1 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
-26
-27
-38

query I rowsort
SELECT ALL + - 59 FROM tab0 AS cor0
----
-59
-59
-59

query I rowsort
SELECT ALL + 88 * - col1 AS col0 FROM tab2 AS cor0
----
-1496
-2728
-5192

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 * col2 col0 FROM tab0 AS cor0
----
1353
3362
41

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

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

query I rowsort
SELECT ALL + ( - col2 ) * - col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806

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

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

query I rowsort
SELECT col2 + + col2 * + col1 FROM tab2
----
1560
684
864

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

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

query I rowsort
SELECT + col0 + - ( ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-9
34
7

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

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

query I rowsort
SELECT col2 + ( - col0 + + cor0.col2 ) FROM tab0 AS cor0
----
-33
42
75

query I rowsort
SELECT DISTINCT col2 * col2 * + col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT - + 65 FROM tab2, tab1 cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

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

query I rowsort
SELECT - 93 * + col1 FROM tab2 AS cor0
----
-1581
-2883
-5487

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1354
SELECT DISTINCT 82 DIV cor1.col1 AS col1 FROM tab0, tab0 cor0, tab1 cor1
----
3
6
8

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT 82 / cor1.col1 AS col1 FROM tab0, tab0 cor0, tab1 cor1
----
3
6
8

query I rowsort
SELECT DISTINCT + col1 * ( tab1.col1 ) FROM tab1
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1356
SELECT ALL - + col2 + - CAST( col1 * - col1 AS SIGNED ) + + cor0.col2 * col0 FROM tab2 AS cor0
----
1123
3253
5483

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL - + col2 + - CAST ( col1 * - col1 AS INTEGER ) + + cor0.col2 * col0 FROM tab2 AS cor0
----
1123
3253
5483

query I rowsort
SELECT col2 * + 84 AS col0 FROM tab1
----
4536
4788
8064

onlyif mysql # use DIV operator for integer division
query I rowsort label-1358
SELECT + col2 DIV + 60 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1358
SELECT + col2 / + 60 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL - 25 * col0 + - col1 AS col2 FROM tab2
----
-1992
-2009
-206

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

query I rowsort
SELECT + col1 * col1 - - col1 FROM tab1 cor0
----
110
182
702

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1363
SELECT DISTINCT + col2 + ( + col0 ) DIV - 62 col0 FROM tab0
----
1
33
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT + col2 + ( + col0 ) / - 62 col0 FROM tab0
----
1
33
81

query I rowsort
SELECT - 4 + tab0.col1 * col0 AS col0 FROM tab0
----
2060
3391
8095

query I rowsort
SELECT ALL 96 + col1 * tab2.col1 FROM tab2
----
1057
3577
385

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

skipif mysql # not compatible
query I rowsort label-1366
SELECT ( + tab0.col1 ) / col1 FROM tab0
----
1
1
1

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

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

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

query I rowsort
SELECT ALL + - 7 + - cor0.col2 FROM tab1 AS cor0
----
-103
-61
-64

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

query I rowsort
SELECT DISTINCT + col1 * - col0 + 32 FROM tab2 AS cor0
----
-1311
-185
-4570

query I rowsort
SELECT ALL - col2 * col2 - + col1 * 93 FROM tab2 AS cor0
----
-3025
-3612
-6163

query I rowsort
SELECT + + 53 + col1 AS col2 FROM tab1 cor0
----
63
66
79

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

query I rowsort
SELECT + cor0.col0 + - col0 * col0 * col0 + col1 * + 1 FROM tab1 AS cor0
----
-262070
-511907
2

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1378
SELECT ALL - col1 + + 68 DIV - col0 AS col2 FROM tab0 AS cor0
----
-88
-91
-98

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL - col1 + + 68 / - col0 AS col2 FROM tab0 AS cor0
----
-88
-91
-98

query I rowsort
SELECT DISTINCT + col0 * + col0 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
-118790
-49512
-720722

query I rowsort
SELECT 74 * - col1 AS col2 FROM tab0 cor0
----
-6364
-6734
-7178

query I rowsort
SELECT DISTINCT - cor0.col2 * + col1 + col0 - 22 FROM tab0 AS cor0
----
-2836
-7395
-84

query I rowsort
SELECT DISTINCT + col1 * col1 + + col2 AS col2 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT ALL + col0 * 33 * + col1 FROM tab2
----
151866
44319
7161

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

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

query I rowsort
SELECT col0 + tab0.col1 * col1 - - col2 AS col1 FROM tab0
----
7453
8452
9445

query I rowsort
SELECT + col1 * + 71 AS col1 FROM tab1
----
1846
710
923

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

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

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

skipif mysql # not compatible
query I rowsort label-1388
SELECT CAST ( + ( + cor0.col2 ) AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + col1 - 99 AS col2 FROM tab2
----
-40
-68
-82

query I rowsort
SELECT + + 13 + + col1 FROM tab1 AS cor0
----
23
26
39

query I rowsort
SELECT cor0.col2 + ( col2 ) * + col0 FROM tab0 cor0
----
36
7380
825

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

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

query I rowsort
SELECT DISTINCT + col0 * + col0 AS col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT + 1 * col2 + 18 * col2 FROM tab2 AS cor0
----
494
513
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-1395
SELECT - col1 + 94 DIV + col0 AS col2 FROM tab2
----
-16
-18
-58

skipif mysql # not compatible
query I rowsort label-1395
SELECT - col1 + 94 / + col0 AS col2 FROM tab2
----
-16
-18
-58

query I rowsort
SELECT - 39 + - cor1.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 73e68e2321a2459063095dd46dc7b1be

onlyif mysql # use DIV operator for integer division
query I rowsort label-1397
SELECT 89 DIV 26 FROM tab1, tab1 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

skipif mysql # not compatible
query I rowsort label-1397
SELECT 89 / 26 FROM tab1, tab1 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT DISTINCT col1 * - 35 AS col2 FROM tab1 AS cor0
----
-350
-455
-910

query I rowsort
SELECT ALL - col0 + - ( + 27 ) AS col2 FROM tab0 AS cor0
----
-116
-51
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1400
SELECT + + col2 * + col2 * cor0.col1 + col0 + + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
22609
24627
39962

skipif mysql # not compatible
query I rowsort label-1400
SELECT + + col2 * + col2 * cor0.col1 + col0 + + col2 / + col0 AS col1 FROM tab2 AS cor0
----
22609
24627
39962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 64 col0 FROM tab0 AS cor0
----
1536
2240
5696

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

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

query I rowsort
SELECT - + col2 + + col1 * ( - col2 ) * - ( - 82 ) FROM tab0 AS cor0
----
-232749
-611966
-7955

query I rowsort
SELECT ALL - col2 * 77 FROM tab2 AS cor0
----
-2002
-2079
-2926

query I rowsort
SELECT - - col1 * col2 * col2 FROM tab2 cor0
----
22599
24548
39884

query I rowsort
SELECT - cor0.col1 * + col0 + + 48 AS col0 FROM tab2 AS cor0
----
-1295
-169
-4554

query I rowsort
SELECT - col1 * - col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT ALL - + 11 AS col2 FROM tab2 AS cor0
----
-11
-11
-11

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

query I rowsort
SELECT DISTINCT - - col1 * 25 FROM tab0 cor0
----
2150
2275
2425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * col1 + + col1 col2 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1412
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT ALL + cor0.col1 + - 46 FROM tab0 AS cor0
----
40
45
51

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

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col2 + + col0 AS col2 FROM tab2 AS cor0
----
134
163
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1416
SELECT - 89 * col1 + CAST( + col2 + + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1396
-2725
-5147

skipif mysql # not compatible
query I rowsort label-1416
SELECT - 89 * col1 + CAST ( + col2 + + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1396
-2725
-5147

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

query I rowsort
SELECT ALL 12 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

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

query I rowsort
SELECT ALL 96 AS col0 FROM tab2
----
96
96
96

query I rowsort
SELECT ALL + col1 * 47 FROM tab2 AS cor0
----
1457
2773
799

query I rowsort
SELECT - - col0 * col1 + + col2 FROM tab1 AS cor0
----
1136
132
697

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

query I rowsort
SELECT + col0 + cor0.col0 + 44 AS col0 FROM tab2 cor0
----
200
202
58

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

query I rowsort
SELECT DISTINCT + col1 + - col0 * + 46 AS col0 FROM tab0
----
-1018
-1513
-4003

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1427
SELECT DISTINCT - col1 * - tab2.col1 + CAST( - 50 AS SIGNED ) * col2 AS col0 FROM tab2
----
-1611
-389
2181

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT - col1 * - tab2.col1 + CAST ( - 50 AS INTEGER ) * col2 AS col0 FROM tab2
----
-1611
-389
2181

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

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

query I rowsort
SELECT + - 68 FROM tab1 AS cor0
----
-68
-68
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1430
SELECT CAST( - col1 AS SIGNED ) col2 FROM tab1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1430
SELECT CAST ( - col1 AS INTEGER ) col2 FROM tab1
----
-10
-13
-26

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

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

query I rowsort
SELECT - 69 * col2 AS col1 FROM tab0
----
-2277
-5658
-69

query I rowsort
SELECT DISTINCT - + 8 + 64 AS col2 FROM tab2 cor0
----
56

query I rowsort
SELECT ALL 37 * tab0.col2 AS col0 FROM tab1, tab0 cor0 CROSS JOIN tab0
----
27 values hashing to c128e08c7feaa8e92cf393214dce0c30

query I rowsort
SELECT - + 99 AS col1 FROM tab0 AS cor0
----
-99
-99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 * + col2 - - cor0.col1 col1 FROM tab2 AS cor0
----
2451
2515
3513

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

query I rowsort
SELECT ALL - 21 AS col1 FROM tab2
----
-21
-21
-21

query I rowsort
SELECT ALL 94 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT DISTINCT + 57 * + col0 AS col0 FROM tab1 cor0
----
171
3648
4560

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1446
SELECT ALL + 72 DIV 17 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL + 72 / 17 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT DISTINCT col1 + - ( - col1 ) AS col1 FROM tab0
----
172
182
194

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

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

query I rowsort
SELECT ALL col0 * col0 + tab0.col0 + col2 * + tab0.col1 * 17 FROM tab0
----
134864
2909
48846

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

query I rowsort
SELECT - col0 + - 88 * + col0 - col1 FROM tab1 AS cor0
----
-293
-5706
-7133

skipif mysql # not compatible
query I rowsort
SELECT col2 + + col2 * - col2 - col2 * ( - cor0.col1 + - col1 * + CAST ( col0 AS REAL ) ) FROM tab1 AS cor0
----
2754
33858
91968

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 + 14 - - col2 FROM tab0 AS cor0
----
16
178
80

query I rowsort
SELECT DISTINCT - - col2 * + 40 AS col2 FROM tab2 AS cor0
----
1040
1080
1520

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT - - 94 / - ( + col2 + 32 ) AS col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL + - ( 7 ) + + cor0.col2 AS col1 FROM tab0 cor0
----
-6
26
75

query I rowsort
SELECT ALL 92 * - col1 AS col2 FROM tab0 AS cor0
----
-7912
-8372
-8924

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

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

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

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

query I rowsort
SELECT ALL + + col0 + - 28 * col2 - - 33 * + ( - col2 ) FROM tab2 AS cor0
----
-1508
-1640
-2239

query I rowsort
SELECT 59 + 28 AS col0 FROM tab0 AS cor0
----
87
87
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-1469
SELECT ALL + + col0 DIV 38 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL + + col0 / 38 FROM tab1 AS cor0
----
0
1
2

query I rowsort
SELECT + - 7 + col1 * + col1 FROM tab1 AS cor0
----
162
669
93

query I rowsort
SELECT DISTINCT - + col1 + + 82 FROM tab0 AS cor0
----
-15
-4
-9

query I rowsort
SELECT ALL - ( - col2 ) AS col1 FROM tab0 cor0
----
1
33
82

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

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

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

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

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

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

query I rowsort
SELECT ALL + 48 AS col2 FROM tab0 cor0
----
48
48
48

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

query I rowsort
SELECT DISTINCT + ( - col2 ) + - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT + 73 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1113
151
713

query I rowsort
SELECT ALL 48 FROM tab2, tab0 cor0, tab1 cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 48 ) col2 FROM tab0 cor0
----
-48
-48
-48

query I rowsort
SELECT 36 + + col0 AS col2 FROM tab2 cor0
----
114
115
43

query I rowsort
SELECT DISTINCT + 35 FROM tab0 cor0
----
35

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

query I rowsort
SELECT - - 51 * - col0 + cor0.col0 * + col2 - col0 * - col0 AS col0 FROM tab1 cor0
----
10000
18
4480

query I rowsort
SELECT col1 + col1 - col2 AS col1 FROM tab1 AS cor0
----
-2
-37
-70

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

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

query I rowsort
SELECT + - cor0.col2 * - cor0.col1 AS col0 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-1489
SELECT + - col0 * cor0.col0 DIV - col2 + ( col0 ) AS col0 FROM tab0 AS cor0
----
1260
185
41

skipif mysql # not compatible
query I rowsort label-1489
SELECT + - col0 * cor0.col0 / - col2 + ( col0 ) AS col0 FROM tab0 AS cor0
----
1260
185
41

query I rowsort
SELECT + 86 + + col2 FROM tab0
----
119
168
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1491
SELECT CAST( col2 AS SIGNED ) * col0 FROM tab2
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-1491
SELECT CAST ( col2 AS INTEGER ) * col0 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-1492
SELECT ALL tab2.col0 DIV - col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL tab2.col0 / - col1 FROM tab2
----
-1
-4
0

query I rowsort
SELECT - ( - col2 + + col2 ) * 13 AS col0 FROM tab0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1494
SELECT CAST ( NULL AS INTEGER ) + 86 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 68 * + col0 * - col0 FROM tab1
----
-278528
-435200
-612

query I rowsort
SELECT ALL - 31 FROM tab1
----
-31
-31
-31

onlyif mysql # use DIV operator for integer division
query I rowsort label-1498
SELECT DISTINCT 37 DIV col0 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-1498
SELECT DISTINCT 37 / col0 AS col2 FROM tab0
----
0
1

query I rowsort
SELECT - 37 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 AS cor2, tab2
----
729 values hashing to ff5c2444424da44b8e01e6dae3f738d3

query I rowsort
SELECT col2 + col0 * + 2 AS col2 FROM tab2
----
182
196
41

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1502
SELECT DISTINCT + - col0 * 14 + col0 * col0 DIV + 35 + - col1 * - col1 FROM tab2 AS cor0
----
-639
2562
864

skipif mysql # not compatible
query I rowsort label-1502
SELECT DISTINCT + - col0 * 14 + col0 * col0 / + 35 + - col1 * - col1 FROM tab2 AS cor0
----
-639
2562
864

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

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

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

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

query I rowsort
SELECT ALL col2 * + 33 * - 88 FROM tab2 AS cor0
----
-110352
-75504
-78408

query I rowsort
SELECT 86 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

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

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

query I rowsort
SELECT - 24 * + cor0.col2 AS col2 FROM tab1 cor0
----
-1296
-1368
-2304

query I rowsort
SELECT DISTINCT + col1 * - col2 + - ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-1560
-684
-864

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

query I rowsort
SELECT DISTINCT ( - col1 ) * col2 AS col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT 95 AS col2 FROM tab1 AS cor0
----
95

query I rowsort
SELECT 26 * + col1 AS col1 FROM tab0 AS cor0
----
2236
2366
2522

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

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

query I rowsort
SELECT ALL - - cor0.col0 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - 50 + col0 * - col0 FROM tab2 AS cor0
----
-6134
-6291
-99

query I rowsort
SELECT + + col0 + + cor0.col2 * - col0 * + col1 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT + cor0.col1 * cor0.col2 * + col2 FROM tab1 cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - cor0.col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 3 * col1 + 64 AS col0 FROM tab0
----
322
337
355

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

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

query I rowsort
SELECT DISTINCT - 17 AS col2 FROM tab1
----
-17

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

query I rowsort
SELECT DISTINCT + ( ( col2 ) ) + + ( 64 ) FROM tab2 AS cor0
----
102
90
91

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

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

query I rowsort
SELECT DISTINCT + 74 * 73 + col1 AS col0 FROM tab0 AS cor0
----
5488
5493
5499

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

skipif mysql # not compatible
query I rowsort label-1531
SELECT - CAST ( + 80 AS INTEGER ) FROM tab1 AS cor0
----
-80
-80
-80

query I rowsort
SELECT + ( + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + 41 FROM tab1, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT + col0 * ( + 50 + + tab2.col0 ) * - col2 FROM tab2
----
-10773
-259584
-387258

query I rowsort
SELECT ALL + 13 FROM tab1, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1536
SELECT DISTINCT col1 / CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT col1 / CAST ( NULL AS REAL ) FROM tab0
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-1538
SELECT col2 * - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT tab1.col2 + tab1.col0 FROM tab1, tab0 AS cor0
----
121
176
57

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

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

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

query I rowsort
SELECT ALL + 55 + - col0 AS col1 FROM tab2 AS cor0
----
-23
-24
48

query I rowsort
SELECT ALL + + 75 * col2 + - cor0.col1 FROM tab2 cor0
----
1891
1994
2833

query I rowsort
SELECT - 39 - + 49 FROM tab2
----
-88
-88
-88

query I rowsort
SELECT - col0 * tab2.col1 + col0 + col2 FROM tab2
----
-1226
-183
-4498

query I rowsort
SELECT ALL col1 + col2 * col2 AS col0 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT + col0 + - 82 FROM tab1
----
-18
-2
-79

query I rowsort
SELECT DISTINCT + 12 * col1 + col2 AS col2 FROM tab2
----
242
399
734

query I rowsort
SELECT - 97 * - tab0.col2 FROM tab0
----
3201
7954
97

query I rowsort
SELECT DISTINCT - 11 + - tab1.col0 FROM tab1
----
-14
-75
-91

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1553
SELECT ALL + tab1.col0 * + ( - col0 ) DIV + col0 + + col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL + tab1.col0 * + ( - col0 ) / + col0 + + col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 98 + col0 FROM tab2
----
105
176
177

query I rowsort
SELECT ALL - col2 * col2 + col1 FROM tab1
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-1556
SELECT ( + ( col2 ) * tab2.col0 ) + - col1 DIV col1 FROM tab2
----
188
2027
3001

skipif mysql # not compatible
query I rowsort label-1556
SELECT ( + ( col2 ) * tab2.col0 ) + - col1 / col1 FROM tab2
----
188
2027
3001

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

query I rowsort
SELECT ALL + 85 * cor0.col0 FROM tab1 AS cor0
----
255
5440
6800

query I rowsort
SELECT - - col0 * col0 + col1 * col1 FROM tab2 AS cor0
----
1010
6530
9565

query I rowsort
SELECT DISTINCT + 45 * + col0 + - col1 * col0 FROM tab1 AS cor0
----
2240
2560
57

query I rowsort
SELECT DISTINCT - col0 * col2 + col0 * - col1 - - cor0.col2 AS col1 FROM tab0 AS cor0
----
-15315
-2823
-3429

query I rowsort
SELECT + col0 + col0 * col0 * + cor0.col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
21096
4655
657710

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

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

skipif mysql # not compatible
query I rowsort label-1564
SELECT col2 / cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + + col0 * - col0 + cor0.col2 * col1 * + col2 FROM tab1 AS cor0
----
113408
28394
75807

query I rowsort
SELECT ALL 23 FROM tab2 AS cor0
----
23
23
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-1567
SELECT + 36 DIV col0 + - col1 * col2 FROM tab1 cor0
----
-1248
-1392
-570

skipif mysql # not compatible
query I rowsort label-1567
SELECT + 36 / col0 + - col1 * col2 FROM tab1 cor0
----
-1248
-1392
-570

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

query I rowsort
SELECT 12 AS col1 FROM tab2 AS cor0
----
12
12
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-1570
SELECT ALL - 89 * col1 DIV col0 FROM tab1 AS cor0
----
-13
-14
-771

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL - 89 * col1 / col0 FROM tab1 AS cor0
----
-13
-14
-771

query I rowsort
SELECT + + col2 * + col1 + col0 + - col2 FROM tab2 AS cor0
----
1586
687
817

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

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

skipif mysql # not compatible
query I rowsort
SELECT + tab1.col2 * CAST ( 19 AS REAL ) + col0 AS col2 FROM tab1
----
1029
1147
1904

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1579
SELECT col2 DIV - col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-1579
SELECT col2 / - col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT col1 * cor0.col0 * - col2 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1582
SELECT DISTINCT col0 DIV - col1 - col1 FROM tab1 AS cor0
----
-16
-19
-26

skipif mysql # not compatible
query I rowsort label-1582
SELECT DISTINCT col0 / - col1 - col1 FROM tab1 AS cor0
----
-16
-19
-26

query I rowsort
SELECT + 89 - col0 AS col1 FROM tab1 AS cor0
----
25
86
9

query I rowsort
SELECT ALL + - col0 * 27 + - col2 FROM tab2 AS cor0
----
-2132
-216
-2171

query I rowsort
SELECT ALL + + ( - col1 ) - + col2 * + col2 FROM tab0 cor0
----
-1175
-6815
-98

query I rowsort
SELECT 46 FROM tab0, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

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

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

query I rowsort
SELECT - ( 87 ) - + col0 AS col2 FROM tab2 AS cor0
----
-165
-166
-94

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

query I rowsort
SELECT DISTINCT + col0 + - 23 FROM tab2 AS cor0
----
-16
55
56

query I rowsort
SELECT + + col2 * 16 + - col1 * - col0 FROM tab0 AS cor0
----
2592
3411
9411

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

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

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

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

query I rowsort
SELECT + + cor0.col1 * col1 * 60 AS col0 FROM tab0 AS cor0
----
443760
496860
564540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + cor0.col1 * - col1 col2 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT ALL + cor0.col0 * + cor0.col2 FROM tab0 AS cor0
----
35
7298
792

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

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 + cor0.col0 - col1 FROM tab0 AS cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( 66 + - col0 ) col0 FROM tab1 cor0
----
-182
1638
20

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1604
SELECT DISTINCT cor0.col0 + col1 DIV col2 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT cor0.col0 + col1 / col2 FROM tab0 AS cor0
----
132
26
90

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

query I rowsort
SELECT + 85 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT - col1 + - col0 * + 25 * - col0 FROM tab1
----
102390
159987
199

query I rowsort
SELECT ALL tab0.col0 + tab0.col2 FROM tab0
----
171
36
57

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

query I rowsort
SELECT 54 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT ALL - 30 + col0 * + ( col2 ) FROM tab0
----
5
7268
762

onlyif mysql # use DIV operator for integer division
query I rowsort label-1612
SELECT DISTINCT col2 + col2 + col1 DIV 10 FROM tab1
----
110
115
193

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT col2 + col2 + col1 / 10 FROM tab1
----
110
115
193

query I rowsort
SELECT DISTINCT + 19 + col0 * + ( col0 ) + tab0.col1 FROM tab0
----
1341
681
8031

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

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

query I rowsort
SELECT ALL - cor0.col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL col1 * col1 + ( + 53 ) * - col2 AS col2 FROM tab0 AS cor0
----
3935
5647
9356

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1620
SELECT ALL + col1 + + col0 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL + col1 + + col0 / cor0.col0 AS col2 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT col2 * - cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - + ( col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT 42 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT - col0 + col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT + - col0 + - 98 * col1 AS col2 FROM tab2 AS cor0
----
-1745
-3045
-5860

query I rowsort
SELECT ALL col0 - 11 FROM tab1
----
-8
53
69

query I rowsort
SELECT DISTINCT + tab2.col0 - + col1 * col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT - + cor0.col2 - 60 FROM tab0 AS cor0
----
-142
-61
-93

query I rowsort
SELECT + 69 FROM tab2, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

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

query I rowsort
SELECT ALL 65 * - tab1.col1 FROM tab1
----
-1690
-650
-845

query I rowsort
SELECT + 99 * ( - cor0.col2 ) FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to d6e0a7702a36e940e4bca9375ae0776c

query I rowsort
SELECT 77 FROM tab1
----
77
77
77

query I rowsort
SELECT 92 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT col1 * 81 AS col2 FROM tab0 AS cor0
----
6966
7371
7857

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

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

query I rowsort
SELECT DISTINCT - - col0 * col0 * - col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT 86 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
86

query I rowsort
SELECT + - col0 + - cor0.col1 FROM tab0 AS cor0
----
-110
-132
-180

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

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

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

query I rowsort
SELECT ( + tab2.col0 ) + col2 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL + ( 25 ) AS col1 FROM tab1
----
25
25
25

query I rowsort
SELECT + + 19 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT ALL ( - col0 ) * - col1 AS col1 FROM tab2
----
1343
217
4602

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

query I rowsort
SELECT DISTINCT 4 * + 16 + col0 * col1 * + ( - col1 + ( col1 ) ) AS col0 FROM tab2
----
64

query I rowsort
SELECT - 16 * + col2 FROM tab2 cor0
----
-416
-432
-608

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1652
SELECT ALL col0 DIV + 4 + + col0 * + col2 AS col0 FROM tab0
----
43
7320
798

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL col0 / + 4 + + col0 * + col2 AS col0 FROM tab0
----
43
7320
798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col2 * col1 col0 FROM tab1
----
-1344
-1458
-627

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

query I rowsort
SELECT - 45 * - col1 + + col0 FROM tab0 AS cor0
----
3894
4184
4400

query I rowsort
SELECT + 13 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT - 87 * - col2 FROM tab1 AS cor0
----
4698
4959
8352

query I rowsort
SELECT DISTINCT + + cor0.col1 * + col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL + + cor0.col1 * col2 + + col2 * + ( + col0 ) AS col1 FROM tab0 AS cor0
----
132
14760
3630

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

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

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

query I rowsort
SELECT ALL + 14 AS col1 FROM tab2 cor0
----
14
14
14

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

query I rowsort
SELECT - 77 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
6622
7007
7469

query I rowsort
SELECT col0 + col1 * + col2 * col2 FROM tab2 AS cor0
----
22606
24627
39962

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

query I rowsort
SELECT ALL - col0 * + col0 * + 96 FROM tab2 AS cor0
----
-4704
-584064
-599136

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

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

query I rowsort
SELECT DISTINCT 19 * col1 AS col0 FROM tab1 AS cor0
----
190
247
494

query I rowsort
SELECT ( - col0 ) * + col0 + col1 * + col2 AS col0 FROM tab1 cor0
----
-3526
-5152
1395

query I rowsort
SELECT + 0 * col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1674
SELECT col1 * + cor0.col0 + + col1 DIV cor0.col2 FROM tab0 AS cor0
----
2066
3492
8100

skipif mysql # not compatible
query I rowsort label-1674
SELECT col1 * + cor0.col0 + + col1 / cor0.col2 FROM tab0 AS cor0
----
2066
3492
8100

query I rowsort
SELECT + col1 * col2 + 0 FROM tab2 AS cor0
----
1534
646
837

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1678
SELECT + - col2 + + CAST( ( + col2 ) + ( - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-1678
SELECT + - col2 + + CAST ( ( + col2 ) + ( - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - col2 + 41 FROM tab2 AS cor0
----
14
15
3

query I rowsort
SELECT ALL col0 * 28 * col2 FROM tab2 AS cor0
----
5292
56784
84056

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

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

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL + - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
86
91
97

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

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL + - col0 * - cor0.col1 / - col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT - cor0.col1 * - cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b2e5b025b1c725661248b0f29aaef908

query I rowsort
SELECT ALL + 76 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT col1 + col2 - 50 AS col0 FROM tab2
----
35
5
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1687
SELECT DISTINCT + + 11 * - 98 + + cor0.col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-1074
-1078

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT + + 11 * - 98 + + cor0.col1 / col0 AS col2 FROM tab2 AS cor0
----
-1074
-1078

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( cor0.col1 ) + col2 col0 FROM tab1 AS cor0
----
28
47
83

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1691
SELECT DISTINCT - ( + cor0.col0 ) DIV col1 FROM tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT - ( + cor0.col0 ) / col1 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT + col1 - col0 * col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - + 5 AS col2 FROM tab2 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - - 54 + cor0.col2 FROM tab2 AS cor0
----
80
81
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + col2 col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL 35 AS col2 FROM tab0 cor0
----
35
35
35

query I rowsort
SELECT DISTINCT + + 64 + col0 * + col2 AS col0 FROM tab2 AS cor0
----
2092
253
3066

onlyif mysql # use DIV operator for integer division
query I rowsort label-1698
SELECT DISTINCT + col0 * + col2 + - col1 DIV - col0 FROM tab1 AS cor0
----
170
3648
7680

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT + col0 * + col2 + - col1 / - col0 FROM tab1 AS cor0
----
170
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + + col1 * col0 col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + 5 * + col1 + col1 AS col0 FROM tab0
----
516
546
582

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

query I rowsort
SELECT DISTINCT - 30 + - col0 * + tab2.col1 * - 11 + - col1 * col0 FROM tab2
----
13400
2140
45990

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

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

query I rowsort
SELECT DISTINCT 61 + + ( - col2 ) * - ( + col1 ) AS col0 FROM tab2 AS cor0
----
1595
707
898

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724

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

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

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

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

query I rowsort
SELECT - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT + tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT + col0 * 68 + + col0 - - col2 AS col0 FROM tab1 cor0
----
261
4473
5616

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

query I rowsort
SELECT ALL - col0 + cor0.col1 + + 20 * + col1 FROM tab1 AS cor0
----
146
193
543

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1719
SELECT col1 * + col1 DIV col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1719
SELECT col1 * + col1 / col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT col2 * col2 + col0 AS col2 FROM tab2 WHERE NOT ( NULL ) >= NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + cor0.col0 col0 FROM tab1 AS cor0
----
162
3648
7680

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

query I rowsort
SELECT + col1 * + col1 * + col2 AS col2 FROM tab0 AS cor0
----
244068
679042
9409

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1726
SELECT + col1 * col0 DIV - col1 + col0 - col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1726
SELECT + col1 * col0 / - col1 + col0 - col0 FROM tab1 AS cor0
----
-3
-64
-80

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

query I rowsort
SELECT DISTINCT + col1 + + tab0.col0 * col0 FROM tab0
----
1322
662
8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - tab0.col0 col1 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT + col1 * col0 - + col0 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1734
SELECT - col2 + col2 DIV + cor0.col0 FROM tab1 cor0
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-1734
SELECT - col2 + col2 / + cor0.col0 FROM tab1 cor0
----
-36
-57
-95

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

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

query I rowsort
SELECT ALL + 83 * col2 FROM tab2
----
2158
2241
3154

query I rowsort
SELECT - - col1 * cor0.col2 FROM tab0 cor0
----
2838
7462
97

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1739
SELECT ALL col1 DIV - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL col1 / - col1 FROM tab2
----
-1
-1
-1

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1743
SELECT DISTINCT + col2 + col0 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT + col2 + col0 / cor0.col0 AS col2 FROM tab2 AS cor0
----
27
28
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-1744
SELECT ALL - cor0.col2 DIV col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL - cor0.col2 / col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + tab0.col2 * col2 AS col0 FROM tab0
----
1
1089
6724

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 86dbd337f00ab84c613ad03d6fc06e28

query I rowsort
SELECT DISTINCT col2 * - col0 FROM tab1 WHERE NULL >= NULL
----

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

query I rowsort
SELECT - - cor0.col2 AS col0 FROM tab2 cor0
----
26
27
38

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

query I rowsort
SELECT DISTINCT col2 * col2 * col2 + + col0 FROM tab2
----
17654
19690
54951

onlyif mysql # use DIV operator for integer division
query I rowsort label-1752
SELECT DISTINCT - col1 + - col1 DIV + col1 AS col2 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT - col1 + - col1 / + col1 AS col2 FROM tab1
----
-11
-14
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-1753
SELECT DISTINCT col0 DIV - col1 - + col0 AS col2 FROM tab1
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-1753
SELECT DISTINCT col0 / - col1 - + col0 AS col2 FROM tab1
----
-3
-70
-86

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT 57 FROM tab0
----
57

query I rowsort
SELECT ALL 67 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

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

query I rowsort
SELECT 64 AS col0 FROM tab2
----
64
64
64

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

query I rowsort
SELECT col1 + col0 * + 6 AS col1 FROM tab0
----
230
307
625

query I rowsort
SELECT col1 * - col1 + col0 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT + tab1.col1 * col1 + col0 AS col0 FROM tab1 WHERE NOT col2 * col0 IN ( + col2 )
----
164
249
679

query I rowsort
SELECT - col0 * - tab1.col1 FROM tab1
----
1040
640
78

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

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

query I rowsort
SELECT ALL + col2 - + col0 * - col0 AS col1 FROM tab1
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + col0 * col1 * col1 col2 FROM tab1 AS cor0
----
14560
2106
7040

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

query I rowsort
SELECT col0 - col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * - col0 + cor0.col0 * col2 - cor0.col2 FROM tab1 AS cor0
----
15264
270
7239

query I rowsort
SELECT DISTINCT - col0 + - col1 * + col1 AS col1 FROM tab1
----
-164
-249
-679

query I rowsort
SELECT DISTINCT + col0 + cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + col0 * - col0 FROM tab0
----
-1225
-576
-7921

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

query I rowsort
SELECT DISTINCT - col0 + + col2 AS col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NULL IN ( col0 )
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1778
SELECT tab0.col1 * - col1 + tab0.col1 DIV + col1 FROM tab0
----
-7395
-8280
-9408

skipif mysql # not compatible
query I rowsort label-1778
SELECT tab0.col1 * - col1 + tab0.col1 / + col1 FROM tab0
----
-7395
-8280
-9408

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 + col1 * col1 col1 FROM tab2
----
327
3507
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + col1 col0 FROM tab0
----
-2752
-7371
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( col0 ) AND + col2 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * + col2 + col0 BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 * col0 col2 FROM tab0
----
2064
3395
8099

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 * - col1 col1 FROM tab1
----
36480
4212
99840

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

query I rowsort
SELECT DISTINCT col1 + col2 FROM tab1 WHERE NULL = ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1790
SELECT DISTINCT + col2 + + col1 DIV - col0 FROM tab2
----
23
26
38

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT + col2 + + col1 / - col0 FROM tab2
----
23
26
38

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

query I rowsort
SELECT DISTINCT + col2 * - 84 FROM tab0 AS cor0
----
-2772
-6888
-84

query I rowsort
SELECT - 43 + - cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3019f28137c0031ab24343035748d7b7

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

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

skipif mysql # not compatible
query I rowsort label-1795
SELECT - 67 + - col0 + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1796
SELECT ALL col2 + - CAST( - col0 AS SIGNED ) * col0 col0 FROM tab0
----
1226
609
8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL col2 + - CAST ( - col0 AS INTEGER ) * col0 col0 FROM tab0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-1797
SELECT + col0 * col1 - col0 DIV col2 AS col0 FROM tab0
----
2064
3360
8098

skipif mysql # not compatible
query I rowsort label-1797
SELECT + col0 * col1 - col0 / col2 AS col0 FROM tab0
----
2064
3360
8098

query I rowsort
SELECT + 25 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT col0 + - col2 * - col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT col2 * + 13 + ( - col1 ) AS col1 FROM tab0 cor0
----
-84
343
975

query I rowsort
SELECT DISTINCT col1 * col2 * - col0 + + tab2.col0 FROM tab2
----
-119574
-50955
-5852

onlyif mysql # use DIV operator for integer division
query I rowsort label-1802
SELECT ALL + col2 DIV col1 + - col1 DIV col0 + - 36 * + col2 AS col2 FROM tab1
----
-1950
-2047
-3449

skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL + col2 / col1 + - col1 / col0 + - 36 * + col2 AS col2 FROM tab1
----
-1950
-2047
-3449

query I rowsort
SELECT ALL - tab0.col0 * col0 + 5 * + col1 FROM tab0
----
-146
-740
-7466

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1805
SELECT DISTINCT - col1 * col0 + col1 + col1 DIV - col0 FROM tab1
----
-1027
-60
-630

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT - col1 * col0 + col1 + col1 / - col0 FROM tab1
----
-1027
-60
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col2 - cor0.col0 * - col2 col0 FROM tab0 AS cor0
----
14596
1584
70

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

query I rowsort
SELECT + col1 * ( 4 * col1 + 84 ) AS col2 FROM tab0 AS cor0
----
36808
40768
45784

query I rowsort
SELECT DISTINCT + ( 78 ) AS col0 FROM tab1
----
78

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

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

query I rowsort
SELECT - - ( + 53 ) AS col1 FROM tab1 cor0
----
53
53
53

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 9a402ad2669465fb284445c499a48f2c

query I rowsort
SELECT - + 65 FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT - - 82 + col2 AS col1 FROM tab0 AS cor0
----
115
164
83

query I rowsort
SELECT 65 AS col2 FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT + col0 + - col1 * + 29 FROM tab2 AS cor0
----
-1633
-414
-892

onlyif mysql # use DIV operator for integer division
query I rowsort label-1818
SELECT DISTINCT + - col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT + - col0 / + col1 AS col1 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT ALL + - col2 * - col2 * col2 + col1 FROM tab2 cor0
----
17635
19714
54889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

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

query I rowsort
SELECT DISTINCT 66 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1584
-2310
-5874

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

query I rowsort
SELECT ALL - 86 * tab1.col1 FROM tab1
----
-1118
-2236
-860

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

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

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

query I rowsort
SELECT DISTINCT + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - 22 + - cor0.col1 FROM tab1 AS cor0
----
-32
-35
-48

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

skipif mysql # not compatible
query I rowsort label-1830
SELECT + + col0 / + col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + - 43 FROM tab2 AS cor0
----
-43
-43
-43

query I rowsort
SELECT ALL + col0 + 2 + col1 FROM tab0 AS cor0
----
112
134
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - 56 col0 FROM tab1 AS cor0
----
66
69
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1834
SELECT ALL - col2 DIV 29 AS col0 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL - col2 / 29 AS col0 FROM tab2 cor0
----
-1
0
0

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

query I rowsort
SELECT ALL - + col1 + - col1 FROM tab2 cor0
----
-118
-34
-62

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

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

query I rowsort
SELECT DISTINCT + + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL col2 - 18 * + 77 AS col0 FROM tab1 AS cor0
----
-1290
-1329
-1332

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 + + col0 * 46 col2 FROM tab2
----
330
3596
3642

onlyif mysql # use DIV operator for integer division
query I rowsort label-1843
SELECT - col1 + - col0 DIV 70 FROM tab1
----
-10
-14
-26

skipif mysql # not compatible
query I rowsort label-1843
SELECT - col1 + - col0 / 70 FROM tab1
----
-10
-14
-26

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

query I rowsort
SELECT col2 + - col0 * + 95 FROM tab2
----
-638
-7384
-7467

query I rowsort
SELECT col2 * - col2 + col2 * + 7 AS col2 FROM tab1
----
-2538
-2850
-8544

query I rowsort
SELECT col0 + col0 * + col1 + - 90 AS col0 FROM tab1 AS cor0
----
-9
1030
614

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

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

skipif mysql # not compatible
query I rowsort label-1849
SELECT - + CAST ( NULL AS REAL ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT + col0 * - 97 FROM tab1 AS cor0
----
-291
-6208
-7760

query I rowsort
SELECT + + 98 + + col1 + + col0 FROM tab1 AS cor0
----
127
172
191

query I rowsort
SELECT DISTINCT col2 * + col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

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

query I rowsort
SELECT + 13 + - col0 FROM tab1 cor0
----
-51
-67
10

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

query I rowsort
SELECT ALL - 78 * col1 FROM tab1 AS cor0
----
-1014
-2028
-780

query I rowsort
SELECT - col1 + + 33 + - col2 * + ( 94 ) AS col0 FROM tab0 AS cor0
----
-158
-3155
-7766

query I rowsort
SELECT ALL - ( 75 ) * - cor0.col1 * + col1 FROM tab1 AS cor0
----
12675
50700
7500

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

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

query I rowsort
SELECT ALL - + ( - 29 ) + + col2 * col1 AS col0 FROM tab1 AS cor0
----
1277
1433
599

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

query I rowsort
SELECT ALL - 94 + 2 AS col0 FROM tab0 AS cor0
----
-92
-92
-92

query I rowsort
SELECT 92 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # use DIV operator for integer division
query I rowsort label-1866
SELECT ALL + + col2 + 26 DIV + col0 + col2 FROM tab1 AS cor0
----
114
116
192

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL + + col2 + 26 / + col0 + col2 FROM tab1 AS cor0
----
114
116
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + - col0 * - cor0.col0 + + col2 FROM tab2 AS cor0
----
6110
6279
76

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

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + CAST ( - ( - col1 ) * - col1 + col2 AS INTEGER ) FROM tab2
----
-251
-3455
-934

onlyif mysql # use DIV operator for integer division
query I rowsort label-1870
SELECT 74 DIV tab1.col1 + col0 * col1 FROM tab1
----
1045
647
80

skipif mysql # not compatible
query I rowsort label-1870
SELECT 74 / tab1.col1 + col0 * col1 FROM tab1
----
1045
647
80

query I rowsort
SELECT - cor0.col1 * - 30 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9693f5ea9151a0c78bc109319136ccd6

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

query I rowsort
SELECT cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col1 + col0 AS col1 FROM tab0 AS cor0
----
110
132
180

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1876
SELECT ALL - col1 + - col0 + col2 DIV - 66 FROM tab0 AS cor0
----
-110
-132
-181

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL - col1 + - col0 + col2 / - 66 FROM tab0 AS cor0
----
-110
-132
-181

query I rowsort
SELECT - 82 + - col1 FROM tab0 AS cor0
----
-168
-173
-179

query I rowsort
SELECT + 14 + - col2 FROM tab0 AS cor0
----
-19
-68
13

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

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

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

skipif mysql # not compatible
query I rowsort label-1881
SELECT + - col1 / cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT - 9 * + col0 FROM tab2 AS cor0
----
-63
-702
-711

query I rowsort
SELECT - + 61 AS col0 FROM tab1 AS cor0
----
-61
-61
-61

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

query I rowsort
SELECT - ( col2 ) * - col1 + + cor0.col2 FROM tab2 AS cor0
----
1560
684
864

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1887
SELECT ALL + col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL + col0 / - col2 AS col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1888
SELECT ALL + + 90 + - col1 DIV - col1 FROM tab1 AS cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL + + 90 + - col1 / - col1 FROM tab1 AS cor0
----
91
91
91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 * - col2 col0 FROM tab1 AS cor0
----
432
456
768

query I rowsort
SELECT - + ( cor0.col0 ) + ( + 67 ) * col2 * 61 FROM tab1 AS cor0
----
220695
232895
392272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) col0 FROM tab2 AS cor0
----
7
78
79

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

query I rowsort
SELECT 74 + col1 * - ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-1269
-143
-4528

query I rowsort
SELECT DISTINCT - 26 FROM tab1 cor0
----
-26

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

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

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

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

query I rowsort
SELECT ALL - 27 * + col0 AS col0 FROM tab2 cor0
----
-189
-2106
-2133

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

query I rowsort
SELECT DISTINCT + col2 * + 69 AS col1 FROM tab2 cor0
----
1794
1863
2622

query I rowsort
SELECT ALL + - cor1.col2 AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col2 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - + col2 * 5 FROM tab2 AS cor0
----
-130
-135
-190

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

query I rowsort
SELECT DISTINCT + col0 + col0 + + col0 AS col1 FROM tab1
----
192
240
9

query I rowsort
SELECT - col0 + - 88 * 43 FROM tab0 AS cor0
----
-3808
-3819
-3873

query I rowsort
SELECT - col2 + 60 FROM tab1 AS cor0
----
-36
3
6

query I rowsort
SELECT ALL + cor0.col1 * ( - col1 + col2 * col2 ) AS col2 FROM tab0 cor0
----
-9312
603603
86258

query I rowsort
SELECT + ( - col0 ) * col1 * + ( col0 ) FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT - 52 + - cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 70bf27a88e3a84fe848610e8b4878303

onlyif mysql # use DIV operator for integer division
query I rowsort label-1912
SELECT DISTINCT col2 DIV - col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT col2 / - col0 FROM tab0
----
-1
0

query I rowsort
SELECT - - 49 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # use DIV operator for integer division
query I rowsort label-1914
SELECT + + col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-1914
SELECT + + col0 / - col1 AS col0 FROM tab1 AS cor0
----
-6
-6
0

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

query I rowsort
SELECT - col0 - col2 FROM tab0 AS cor0
----
-171
-36
-57

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col0 + col1 AS REAL ) * 61 FROM tab0
----
10980
6710
8052

query I rowsort
SELECT + col0 * - col1 - - col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT tab0.col2 + tab0.col0 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT 2 + col2 FROM tab1 AS cor0
----
56
59
98

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

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

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

skipif mysql # not compatible
query I rowsort label-1924
SELECT ALL - + CAST ( col1 AS INTEGER ) + col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT col2 * - col0 * - col0 AS col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT ALL - 79 + 76 * col2 + cor0.col1 * 91 AS col1 FROM tab0 AS cor0
----
10255
14434
8824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col0 col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT 84 * col0 FROM tab2 AS cor0
----
588
6552
6636

query I rowsort
SELECT - 73 FROM tab0 cor0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT + 90 + + col0 AS col0 FROM tab2 cor0
----
168
169
97

query I rowsort
SELECT DISTINCT col1 * - col2 + col2 - tab2.col1 FROM tab2
----
-1567
-625
-841

query I rowsort
SELECT ( col1 ) * col0 + 59 + col0 AS col2 FROM tab0
----
2147
3489
8247

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab2 cor0, tab1 AS cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

query I rowsort
SELECT 40 FROM tab0, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1935
SELECT - ( col2 ) * col2 DIV - 54 AS col0 FROM tab0
----
0
124
20

skipif mysql # not compatible
query I rowsort label-1935
SELECT - ( col2 ) * col2 / - 54 AS col0 FROM tab0
----
0
124
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 * tab1.col1 - + col0 col2 FROM tab1
----
1142
2441
876

onlyif mysql # use DIV operator for integer division
query I rowsort label-1937
SELECT DISTINCT + col2 DIV 60 + col2 AS col1 FROM tab0 cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT + col2 / 60 + col2 AS col1 FROM tab0 cor0
----
1
33
83

query I rowsort
SELECT DISTINCT col1 * + col1 * col1 + - col2 FROM tab2 AS cor0
----
205353
29764
4875

query I rowsort
SELECT ALL - - col1 * col2 + + 47 FROM tab2 AS cor0
----
1581
693
884

query I rowsort
SELECT DISTINCT col2 * - col2 + + 35 FROM tab0
----
-1054
-6689
34

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

query I rowsort
SELECT ALL - 87 AS col1 FROM tab2
----
-87
-87
-87

query I rowsort
SELECT + 8 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT ALL - tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT - col2 * + 41 AS col2 FROM tab0 cor0
----
-1353
-3362
-41

query I rowsort
SELECT DISTINCT col2 + col1 * 27 FROM tab2 AS cor0
----
1619
497
864

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + - ( + 52 ) col1 FROM tab1 AS cor0
----
-106
-109
-148

query I rowsort
SELECT + 90 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1950
SELECT - col1 * CAST ( - col0 AS REAL ) * + col2 - + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - tab0.col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT col0 * - 16 AS col0 FROM tab1
----
-1024
-1280
-48

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1955
SELECT DISTINCT - - col1 DIV - 46 - - 44 AS col1 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT - - col1 / - 46 - - 44 AS col1 FROM tab1 AS cor0
----
44

query I rowsort
SELECT col2 + + 47 * col1 AS col1 FROM tab2
----
1484
2799
837

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + ( - col1 * cor0.col0 ) + + col2 * - col0 col1 FROM tab2 AS cor0
----
-375
-4328
-6571

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

query I rowsort
SELECT DISTINCT + 83 * col0 + - col2 AS col1 FROM tab2 AS cor0
----
554
6448
6519

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

query I rowsort
SELECT - - 5 + - 39 AS col0 FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT ( col1 ) AS col0 FROM tab1 cor0
----
10
13
26

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

query I rowsort
SELECT + ( + col1 * col0 ) + - tab0.col0 * + col2 * col0 AS col0 FROM tab0
----
-16944
-641423
2170

onlyif mysql # use DIV operator for integer division
query I rowsort label-1966
SELECT DISTINCT - col1 + col2 DIV - col0 FROM tab2 AS cor0
----
-17
-34
-59

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT - col1 + col2 / - col0 FROM tab2 AS cor0
----
-17
-34
-59

query I rowsort
SELECT + ( - col2 ) * + col1 + - 91 FROM tab1 AS cor0
----
-1339
-1495
-661

query I rowsort
SELECT DISTINCT - 87 * - cor0.col2 + + col0 * 99 FROM tab0 AS cor0
----
15945
3552
5247

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

query I rowsort
SELECT + 24 AS col1 FROM tab2 AS cor0
----
24
24
24

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

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

query I rowsort
SELECT ALL ( ( col1 ) ) * + 51 + - 30 FROM tab1 AS cor0
----
1296
480
633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - ( + 24 ) AS col2 FROM tab2 cor0
----
-24

query I rowsort
SELECT + + 24 FROM tab1 cor0
----
24
24
24

query I rowsort
SELECT ALL - - 61 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT + 48 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1979
SELECT ALL 72 + col1 * + CAST( - 30 AS SIGNED ) FROM tab1
----
-228
-318
-708

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL 72 + col1 * + CAST ( - 30 AS INTEGER ) FROM tab1
----
-228
-318
-708

query I rowsort
SELECT col1 * + col0 * cor0.col2 AS col0 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT ALL + - 57 AS col2 FROM tab0 cor0
----
-57
-57
-57

query I rowsort
SELECT + - cor0.col1 * + col1 - 58 FROM tab0 AS cor0
----
-7454
-8339
-9467

query I rowsort
SELECT + + col0 + cor0.col2 FROM tab0 AS cor0
----
171
36
57

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

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

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

skipif mysql # not compatible
query I rowsort label-1986
SELECT DISTINCT col2 / col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + 22 AS col2 FROM tab0 AS cor0
----
22
22
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-1988
SELECT col1 + col2 DIV col2 - col2 FROM tab1 AS cor0
----
-27
-46
-82

skipif mysql # not compatible
query I rowsort label-1988
SELECT col1 + col2 / col2 - col2 FROM tab1 AS cor0
----
-27
-46
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1989
SELECT - 76 DIV + col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-1989
SELECT - 76 / + col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL + + col2 + col1 * col1 AS col0 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - col2 + cor0.col2 - ( + 80 ) AS col0 FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT ALL - 22 * cor0.col1 FROM tab1 AS cor0
----
-220
-286
-572

query I rowsort
SELECT DISTINCT + - cor0.col1 + col1 * col1 * + col0 FROM tab0 AS cor0
----
177418
329218
736918

onlyif mysql # use DIV operator for integer division
query I rowsort label-1994
SELECT + 82 DIV + col2 + col2 * col0 AS col0 FROM tab1 AS cor0
----
163
3649
7680

skipif mysql # not compatible
query I rowsort label-1994
SELECT + 82 / + col2 + col2 * col0 AS col0 FROM tab1 AS cor0
----
163
3649
7680

query I rowsort
SELECT ALL - + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

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

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

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

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

query I rowsort
SELECT col2 * - col2 + col1 + + col2 FROM tab2
----
-1389
-591
-671

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

query I rowsort
SELECT + col1 * + col1 + + 66 FROM tab1 AS cor0
----
166
235
742

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

skipif mysql # not compatible
query I rowsort label-2003
SELECT + 61 / col0 AS col1 FROM tab0 AS cor0
----
0
1
2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 40 ) * - tab0.col0 col1 FROM tab0
----
-1400
-3560
-960

query I rowsort
SELECT DISTINCT - ( + col0 ) + col0 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2007
SELECT col1 * - col0 + + tab0.col2 DIV col0 AS col2 FROM tab0
----
-2063
-3395
-8099

skipif mysql # not compatible
query I rowsort label-2007
SELECT col1 * - col0 + + tab0.col2 / col0 AS col2 FROM tab0
----
-2063
-3395
-8099

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2009
SELECT DISTINCT - tab1.col1 DIV - tab1.col0 FROM tab1
----
0
8

skipif mysql # not compatible
query I rowsort label-2009
SELECT DISTINCT - tab1.col1 / - tab1.col0 FROM tab1
----
0
8

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

query I rowsort
SELECT ALL 52 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT - ( + cor0.col1 ) AS col0 FROM tab2 cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2013
SELECT + col1 DIV + col2 + 46 AS col1 FROM tab1 cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-2013
SELECT + col1 / + col2 + 46 AS col1 FROM tab1 cor0
----
46
46
46

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

query I rowsort
SELECT ALL - 64 FROM tab0 AS cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT - ( 55 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-55

query I rowsort
SELECT - + 84 FROM tab2 AS cor0
----
-84
-84
-84

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

query I rowsort
SELECT ALL - + col1 * cor0.col0 + - col0 * col2 FROM tab1 cor0
----
-240
-4288
-8720

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

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

query I rowsort
SELECT DISTINCT col0 * + ( col0 ) + col2 FROM tab0
----
1226
609
8003

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

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

query I rowsort
SELECT DISTINCT - + col0 * + ( col2 ) + cor0.col2 * - col1 + cor0.col0 FROM tab2 AS cor0
----
-1019
-3484
-3569

query I rowsort
SELECT DISTINCT + - col0 * 93 * col2 AS col2 FROM tab1 AS cor0
----
-15066
-339264
-714240

query I rowsort
SELECT DISTINCT + col2 * 48 + col2 * col2 FROM tab0 AS cor0
----
10660
2673
49

query I rowsort
SELECT - col1 * col2 + 44 AS col1 FROM tab2 AS cor0
----
-1490
-602
-793

query I rowsort
SELECT ALL col0 + 76 FROM tab1 AS cor0
----
140
156
79

query I rowsort
SELECT 37 FROM tab1, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

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

query I rowsort
SELECT DISTINCT + col2 * - col1 + col0 - + col0 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

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

query I rowsort
SELECT + + 12 + ( + col1 ) * 50 AS col0 FROM tab2 AS cor0
----
1562
2962
862

query I rowsort
SELECT DISTINCT + ( 16 ) * + col2 - col1 FROM tab1 AS cor0
----
1523
838
902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2036
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * col2 * + tab0.col2 FROM tab0
----
26136
35
598436

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * col2 * + tab0.col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT + 0 * - col2 AS col1 FROM tab2
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-2038
SELECT CAST ( NULL AS INTEGER ) / col1 FROM tab2
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT - ( - 70 ) FROM tab0
----
70

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

query I rowsort
SELECT - 94 + + 78 FROM tab1 AS cor0
----
-16
-16
-16

onlyif mysql # use DIV operator for integer division
query I rowsort label-2043
SELECT + + ( - col2 ) - + col2 DIV - 92 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-2043
SELECT + + ( - col2 ) - + col2 / - 92 FROM tab2 AS cor0
----
-26
-27
-38

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

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

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

query I rowsort
SELECT - - cor0.col1 * 24 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
1475
425
775

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

query I rowsort
SELECT ( + col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79

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

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

query I rowsort
SELECT + + col1 + - cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT 88 FROM tab0 AS cor0
----
88

query I rowsort
SELECT ALL - + col2 * + col0 * + ( - col0 * col2 ) AS col0 FROM tab1 AS cor0
----
13307904
26244
58982400

query I rowsort
SELECT DISTINCT col0 * ( - col0 * col1 ) FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT col1 * - 23 AS col0 FROM tab1 AS cor0
----
-230
-299
-598

query I rowsort
SELECT col1 * + 53 AS col0 FROM tab1 AS cor0
----
1378
530
689

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2056
SELECT DISTINCT - cor0.col2 * CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-2056
SELECT DISTINCT - cor0.col2 * CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2057
SELECT DISTINCT - col0 + ( 38 ) * cor0.col2 DIV 73 FROM tab0 AS cor0
----
-35
-47
-7

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT - col0 + ( 38 ) * cor0.col2 / 73 FROM tab0 AS cor0
----
-35
-47
-7

query I rowsort
SELECT - col0 + - 3 AS col1 FROM tab0 AS cor0
----
-27
-38
-92

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

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

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

query I rowsort
SELECT 14 + - 98 FROM tab2 AS cor0
----
-84
-84
-84

query I rowsort
SELECT + - 55 + - col0 FROM tab1 AS cor0
----
-119
-135
-58

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

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

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

skipif mysql # not compatible
query I rowsort label-2066
SELECT - - col0 / + col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2067
SELECT + cor0.col1 + + ( - 89 ) * cor0.col0 DIV 23 AS col0 FROM tab2 AS cor0
----
-242
-288
4

skipif mysql # not compatible
query I rowsort label-2067
SELECT + cor0.col1 + + ( - 89 ) * cor0.col0 / 23 AS col0 FROM tab2 AS cor0
----
-242
-288
4

query I rowsort
SELECT cor0.col0 * 24 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
141
1846
1858

query I rowsort
SELECT DISTINCT - - col0 - + col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT col0 * cor0.col0 + 20 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1236
1245
9561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 82 col0 FROM tab0 cor0
----
7052
7462
7954

query I rowsort
SELECT DISTINCT - - col1 * 96 AS col2 FROM tab1 AS cor0
----
1248
2496
960

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

query I rowsort
SELECT DISTINCT - cor0.col2 + 37 + cor0.col0 FROM tab2 AS cor0
----
17
78
89

query I rowsort
SELECT 24 AS col1 FROM tab0 AS cor0
----
24
24
24

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

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT - - col2 + + 8 / col0 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - + col0 - + 45 FROM tab0 AS cor0
----
-134
-69
-80

query I rowsort
SELECT - + cor0.col0 + - 87 FROM tab2 AS cor0
----
-165
-166
-94

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2082
SELECT DISTINCT + col1 DIV + 15 + col2 col1 FROM tab0 AS cor0
----
38
7
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT + col1 / + 15 + col2 col1 FROM tab0 AS cor0
----
38
7
88

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 * col1 * + 23 AS col2 FROM tab1
----
-13110
-28704
-32292

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

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

query I rowsort
SELECT ALL + 75 * cor0.col1 FROM tab2 AS cor0
----
1275
2325
4425

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

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

query I rowsort
SELECT - ( col0 ) * + col0 * - ( col2 ) + - col1 FROM tab1 AS cor0
----
233462
460
614387

query I rowsort
SELECT col1 * - tab0.col1 - - col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL - col1 * tab1.col1 + col1 AS col1 FROM tab1
----
-156
-650
-90

query III rowsort
SELECT * FROM tab2 WHERE NULL = NULL
----

query I rowsort
SELECT ALL + tab1.col2 * - col0 AS col1 FROM tab1 WHERE - col2 * col2 NOT IN ( col2 )
----
-162
-3648
-7680

query I rowsort
SELECT 60 + + cor0.col0 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3cfa0b29d1ab5e94da4b4436d85ad509

query I rowsort
SELECT - col2 + + col0 * - ( + col1 ) * - col2 AS col2 FROM tab0 cor0
----
3394
664036
68079

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

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

query I rowsort
SELECT - col0 + col0 - - 95 FROM tab0 AS cor0
----
95
95
95

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2100
SELECT DISTINCT + col1 + col1 + col0 DIV - col0 col2 FROM tab2
----
117
33
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT + col1 + col1 + col0 / - col0 col2 FROM tab2
----
117
33
61

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

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

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

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

query I rowsort
SELECT DISTINCT col0 - col1 FROM tab0 AS cor0
----
-2
-62

skipif mysql # not compatible
query I rowsort
SELECT - col1 * - CAST ( 21 AS REAL ) AS col1 FROM tab2 AS cor0
----
1239
357
651

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

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

query I rowsort
SELECT DISTINCT 29 * - col0 + - col1 AS col0 FROM tab0
----
-1112
-2672
-782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + ( col2 ) col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2110
SELECT + col2 + + col2 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2110
SELECT + col2 + + col2 / cor0.col2 AS col1 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT + ( + 30 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT DISTINCT + tab0.col1 - - 30 AS col1 FROM tab0, tab1 AS cor0
----
116
121
127

query I rowsort
SELECT col0 * + col1 * - col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT col2 * - col0 * - 76 FROM tab0
----
2660
554648
60192

query I rowsort
SELECT + col1 + tab0.col0 * 34 FROM tab0
----
1287
3117
902

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

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-2118
SELECT DISTINCT + + col1 DIV 49 + + col1 * cor0.col0 + 25 AS col0 FROM tab1 cor0
----
103
1065
665

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT + + col1 / 49 + + col1 * cor0.col0 + 25 AS col0 FROM tab1 cor0
----
103
1065
665

query I rowsort
SELECT - col2 * 16 + + col2 AS col1 FROM tab0 AS cor0
----
-1230
-15
-495

query I rowsort
SELECT DISTINCT - - col2 + - col0 * - 61 FROM tab2 AS cor0
----
454
4784
4857

onlyif mysql # use DIV operator for integer division
query I rowsort label-2121
SELECT ALL + col0 DIV - col0 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL + col0 / - col0 AS col0 FROM tab0
----
-1
-1
-1

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

query I rowsort
SELECT col0 + - col2 * - col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT tab0.col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT 19 + col0 * + col0 FROM tab0
----
1244
595
7940

query I rowsort
SELECT ALL ( 85 + - col0 ) AS col0 FROM tab2
----
6
7
78

query I rowsort
SELECT DISTINCT + 8 FROM tab2
----
8

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

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

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

query I rowsort
SELECT ALL col1 * + ( - col1 ) * tab1.col2 AS col0 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT + cor0.col2 * + cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0

query I rowsort
SELECT ( - ( col2 ) * + 83 ) + - col0 FROM tab1
----
-4485
-4795
-8048

query I rowsort
SELECT + 28 AS col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT - + 10 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT DISTINCT - 44 + - col1 * - col0 AS col0 FROM tab0 AS cor0
----
2020
3351
8055

query I rowsort
SELECT ALL - col2 + + col2 * cor0.col0 * 72 FROM tab2 AS cor0
----
13581
145990
216106

query I rowsort
SELECT ALL + col2 + - tab2.col0 + + col1 FROM tab2
----
-24
51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col2 * + 14 col0 FROM tab0 AS cor0
----
111
1239
548

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2140
SELECT DISTINCT + + cor0.col2 * col0 DIV col1 + col1 * cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
3395
664198
68121

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT + + cor0.col2 * col0 / col1 + col1 * cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
3395
664198
68121

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2141
SELECT - cor0.col0 * - cor0.col2 - - CAST( + 77 AS SIGNED ) FROM tab1 AS cor0
----
239
3725
7757

skipif mysql # not compatible
query I rowsort label-2141
SELECT - cor0.col0 * - cor0.col2 - - CAST ( + 77 AS INTEGER ) FROM tab1 AS cor0
----
239
3725
7757

query I rowsort
SELECT DISTINCT + 15 * - col0 AS col0 FROM tab0 AS cor0
----
-1335
-360
-525

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

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

query I rowsort
SELECT ALL + col2 * + col1 + - ( - col1 ) FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT ALL + col1 * col2 + + col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT ALL - - 28 AS col1 FROM tab0 AS cor0
----
28
28
28

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + cor0.col2 col0 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2149
SELECT DISTINCT - + cor0.col1 * col1 + + 60 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
-7395
-8281
-9349

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT - + cor0.col1 * col1 + + 60 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
-7395
-8281
-9349

query I rowsort
SELECT ALL + col1 * col0 + cor0.col0 - - cor0.col1 * + col0 AS col0 FROM tab2 AS cor0
----
2765
441
9282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 * + col2 col1 FROM tab2
----
17576
19683
54872

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

query I rowsort
SELECT col2 + col2 * col2 + - col0 FROM tab2 cor0
----
1403
624
749

query I rowsort
SELECT - cor0.col0 * col0 + - col2 FROM tab2 AS cor0
----
-6110
-6279
-76

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

query I rowsort
SELECT - col0 + + tab0.col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2157
SELECT - col1 DIV col0 + - col0 * + col2 AS col2 FROM tab2
----
-193
-2028
-3002

skipif mysql # not compatible
query I rowsort label-2157
SELECT - col1 / col0 + - col0 * + col2 AS col2 FROM tab2
----
-193
-2028
-3002

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

query I rowsort
SELECT tab0.col2 * col2 AS col0 FROM tab0
----
1
1089
6724

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col0 * - col2 col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT 79 * col2 FROM tab1 AS cor0
----
4266
4503
7584

query I rowsort
SELECT - 76 AS col0 FROM tab0 AS cor0
----
-76
-76
-76

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

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

query I rowsort
SELECT ALL + 69 AS col0 FROM tab1
----
69
69
69

query I rowsort
SELECT + + 59 AS col2 FROM tab2 AS cor0
----
59
59
59

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

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

query I rowsort
SELECT DISTINCT 57 AS col0 FROM tab1
----
57

query I rowsort
SELECT - + ( - col0 ) * + col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + + 82 + - col2 AS col0 FROM tab2 AS cor0
----
44
55
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 + col1 col2 FROM tab2 AS cor0
----
-36
-64
-78

query I rowsort
SELECT ALL + col2 * - col1 AS col0 FROM tab1
----
-1248
-1404
-570

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

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

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL - col2 + col2 / col0 AS col0 FROM tab2
----
-24
-26
-38

query I rowsort
SELECT col2 * + col0 FROM tab1 WHERE NOT - col2 * + col2 / + col1 = ( + col2 * - tab1.col1 + + col2 )
----
162
3648
7680

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= NULL
----

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

query I rowsort
SELECT DISTINCT col0 * - col2 * - col1 - + col0 AS col1 FROM tab2
----
119574
50955
5852

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

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

query I rowsort
SELECT ALL col0 * col1 - col0 * col2 * col1 FROM tab2
----
-115050
-49691
-5642

query I rowsort
SELECT DISTINCT col0 + + tab0.col1 / col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 / - col0 AS col1 FROM tab2 WHERE NOT ( NULL ) <= + col1
----

query I rowsort
SELECT - col1 + - col0 AS col1 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT DISTINCT - col2 + - col2 + tab1.col2 * col0 * - col2 FROM tab1
----
-208050
-737472
-8856

onlyif mysql # use DIV operator for integer division
query I rowsort label-2187
SELECT + col0 DIV + col2 + col1 * col2 FROM tab1
----
1248
1404
571

skipif mysql # not compatible
query I rowsort label-2187
SELECT + col0 / + col2 + col1 * col2 FROM tab1
----
1248
1404
571

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2189
SELECT col1 DIV - tab1.col2 + + col2 DIV col0 AS col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-2189
SELECT col1 / - tab1.col2 + + col2 / col0 AS col0 FROM tab1
----
0
1
18

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

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

query I rowsort
SELECT ALL + tab1.col0 + col2 + + col0 FROM tab1
----
185
256
60

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) NOT IN ( - col2 - - col0 )
----

query I rowsort
SELECT ALL col1 + col0 * col0 AS col1 FROM tab0
----
1322
662
8012

query I rowsort
SELECT DISTINCT - col0 * col0 + - col1 + - col2 AS col0 FROM tab1
----
-4163
-6509
-89

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

query I rowsort
SELECT DISTINCT - col1 * - col1 + + col2 - col0 AS col1 FROM tab2
----
248
3429
981

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT tab1.col2 * col0 * col1 AS col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL col2 * col2 * col2 FROM tab1
----
157464
185193
884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-2201
SELECT DISTINCT + tab1.col1 * col0 DIV col1 AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT + tab1.col1 * col0 / col1 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT col0 * + col0 * col1 AS col0 FROM tab2
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-2203
SELECT DISTINCT + col2 DIV col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT + col2 / col1 FROM tab1
----
2
5
7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( col1 )
----

query I rowsort
SELECT ALL col2 + - col0 - col1 FROM tab2
----
-11
-111
-58

query I rowsort
SELECT + + col2 * - col2 + col2 FROM tab0 AS cor0
----
-1056
-6642
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + col0 * col2 * col1 + + col0 FROM tab1 cor0
----
36544
4215
99920

query I rowsort
SELECT - tab0.col1 * - tab0.col2 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL + tab2.col0 * col1 FROM tab2 WHERE ( + col0 ) <> ( col0 + col1 )
----
1343
217
4602

query I rowsort
SELECT cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # use DIV operator for integer division
query I rowsort label-2212
SELECT tab1.col1 DIV tab1.col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2212
SELECT tab1.col1 / tab1.col1 FROM tab1
----
1
1
1

query I rowsort
SELECT col1 * col2 + + tab2.col2 + + col2 * - col0 AS col2 FROM tab2
----
-2318
-468
675

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE + col2 IN ( - col2 / - col1 )
----

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

query I rowsort
SELECT tab1.col1 + col0 AS col0 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT ( + col0 ) + col0 FROM tab2
----
14
156
158

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

query I rowsort
SELECT - cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + + col2 * - 90 + - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-3267
-3874
-4066

query I rowsort
SELECT + 69 * + col1 + - col0 FROM tab0 AS cor0
----
5910
6190
6658

onlyif mysql # use DIV operator for integer division
query I rowsort label-2223
SELECT 37 + col1 * tab2.col0 + + col2 DIV - col0 FROM tab2
----
1380
251
4639

skipif mysql # not compatible
query I rowsort label-2223
SELECT 37 + col1 * tab2.col0 + + col2 / - col0 FROM tab2
----
1380
251
4639

query I rowsort
SELECT - - 70 * - col2 + + col1 AS col2 FROM tab0 AS cor0
----
-2224
-5649
27

query I rowsort
SELECT DISTINCT ( col0 ) * 7 FROM tab2 AS cor0
----
49
546
553

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

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

query I rowsort
SELECT DISTINCT ( col2 ) AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT + 68 FROM tab0 cor0
----
68
68
68

query I rowsort
SELECT DISTINCT col0 + col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-2231
SELECT DISTINCT - 31 * col2 + 28 DIV 23 FROM tab1 AS cor0
----
-1673
-1766
-2975

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT - 31 * col2 + 28 / 23 FROM tab1 AS cor0
----
-1673
-1766
-2975

query I rowsort
SELECT + col0 * - col2 AS col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT 81 AS col0 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT ALL - + 32 + - col1 FROM tab2 cor0
----
-49
-63
-91

query I rowsort
SELECT ALL col0 - - 47 FROM tab2
----
125
126
54

query I rowsort
SELECT - 63 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT 64 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT DISTINCT col1 - + col2 * + 50 FROM tab2 AS cor0
----
-1241
-1319
-1883

onlyif mysql # use DIV operator for integer division
query I rowsort label-2239
SELECT cor0.col0 DIV - 10 AS col1 FROM tab2 cor0
----
-7
-7
0

skipif mysql # not compatible
query I rowsort label-2239
SELECT cor0.col0 / - 10 AS col1 FROM tab2 cor0
----
-7
-7
0

query I rowsort
SELECT + cor0.col1 - - 70 * col0 AS col2 FROM tab2 AS cor0
----
521
5519
5547

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

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

query I rowsort
SELECT ALL + col0 + + 79 * col2 - + 60 FROM tab2 AS cor0
----
2072
2080
3021

query I rowsort
SELECT - - 7 * + col0 + col2 * + col2 FROM tab2 AS cor0
----
1222
1997
778

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

query I rowsort
SELECT ALL col0 + col2 + + col1 AS col1 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT ALL 72 * col1 FROM tab0 AS cor0
----
6192
6552
6984

query I rowsort
SELECT DISTINCT - ( col0 ) * - col2 * col1 + 9 AS col2 FROM tab2 cor0
----
119661
51043
5868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - col0 * col1 col0 FROM tab0 AS cor0
----
1978
3298
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( - 12 ) col0 FROM tab2
----
312
324
456

query I rowsort
SELECT DISTINCT - col2 * + 82 AS col0 FROM tab0
----
-2706
-6724
-82

query I rowsort
SELECT ALL + col1 - 81 AS col2 FROM tab1
----
-55
-68
-71

query I rowsort
SELECT DISTINCT 14 * cor0.col0 FROM tab2 AS cor0
----
1092
1106
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2254
SELECT - CAST( + 92 AS SIGNED ) + col1 col0 FROM tab0 AS cor0
----
-1
-6
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2254
SELECT - CAST ( + 92 AS INTEGER ) + col1 col0 FROM tab0 AS cor0
----
-1
-6
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2255
SELECT col1 * + col1 DIV col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2255
SELECT col1 * + col1 / col1 FROM tab1
----
10
13
26

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

query I rowsort
SELECT ALL + + col0 * + col0 * col0 AS col0 FROM tab1 AS cor0
----
262144
27
512000

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

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

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

query I rowsort
SELECT - 75 * + col0 + col0 AS col2 FROM tab0 AS cor0
----
-1776
-2590
-6586

query I rowsort
SELECT DISTINCT - col1 + 42 FROM tab1 AS cor0
----
16
29
32

query I rowsort
SELECT + ( + col0 ) * col2 + - cor0.col2 * col2 - - col2 AS col1 FROM tab2 AS cor0
----
-513
1378
1596

query I rowsort
SELECT col1 - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + col0 + ( + col0 ) * 98 FROM tab0 AS cor0
----
2376
3465
8811

onlyif mysql # use DIV operator for integer division
query I rowsort label-2265
SELECT col1 * col0 DIV - col1 + + 27 - 15 DIV col0 AS col1 FROM tab2 AS cor0
----
-51
-52
18

skipif mysql # not compatible
query I rowsort label-2265
SELECT col1 * col0 / - col1 + + 27 - 15 / col0 AS col1 FROM tab2 AS cor0
----
-51
-52
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-2266
SELECT ALL + ( col0 ) DIV - col0 + - 2 * 23 FROM tab1
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL + ( col0 ) / - col0 + - 2 * 23 FROM tab1
----
-47
-47
-47

query I rowsort
SELECT DISTINCT + 75 + 67 AS col2 FROM tab2
----
142

query I rowsort
SELECT - tab1.col1 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2271
SELECT - col2 + - col2 DIV col2 FROM tab1
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-2271
SELECT - col2 + - col2 / col2 FROM tab1
----
-55
-58
-97

query I rowsort
SELECT 14 + col0 + col0 AS col1 FROM tab2
----
170
172
28

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

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

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

query I rowsort
SELECT ALL col2 + + col0 * col0 + + col0 * - 91 FROM tab1
----
-1671
-210
-784

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2278
SELECT DISTINCT col1 DIV CAST( 28 AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT col1 / CAST ( 28 AS INTEGER ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + col0 * + col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2280
SELECT DISTINCT - - col0 + + col1 DIV - col1 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT - - col0 + + col1 / - col1 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT DISTINCT + - cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

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

skipif mysql # not compatible
query I rowsort label-2282
SELECT + col2 / + col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + + cor0.col0 * 77 FROM tab0 AS cor0
----
1848
2695
6853

onlyif mysql # use DIV operator for integer division
query I rowsort label-2284
SELECT - col1 DIV + col0 + ( + ( - col0 ) ) FROM tab1
----
-11
-64
-80

skipif mysql # not compatible
query I rowsort label-2284
SELECT - col1 / + col0 + ( + ( - col0 ) ) FROM tab1
----
-11
-64
-80

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

query I rowsort
SELECT col1 - ( - col1 * col2 ) AS col0 FROM tab1
----
1261
1430
580

query I rowsort
SELECT ALL + col2 * col0 + 21 * - cor0.col0 FROM tab1 cor0
----
2304
6000
99

query I rowsort
SELECT - col2 + 63 AS col2 FROM tab0 AS cor0
----
-19
30
62

query I rowsort
SELECT ALL - - col0 * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - - cor0.col1 + ( 19 ) * col0 FROM tab1 cor0
----
1226
1533
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * 4 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f05afd9473a849c2dc980325118b8c8e

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

skipif mysql # not compatible
query I rowsort label-2292
SELECT col2 / - col1 AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT + 17 AS col0 FROM tab0 AS cor0
----
17
17
17

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

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

query I rowsort
SELECT DISTINCT 13 * col2 FROM tab1
----
1248
702
741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 65 * - 83 * - col0 col2 FROM tab2 AS cor0
----
-37738
-420784
-426167

query I rowsort
SELECT - col1 - + ( cor0.col1 ) FROM tab0 cor0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col2 + 39 col1 FROM tab0 AS cor0
----
136
2877
7501

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

query I rowsort
SELECT ALL col1 * col2 * col2 + + col1 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
120848
33130
75894

query I rowsort
SELECT ALL col2 * col1 * col2 + + ( + col2 ) * + 99 * 47 + col1 * - tab0.col0 AS col1 FROM tab0
----
1355
245139
985331

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

query I rowsort
SELECT ALL + + col1 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1461
735
760

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

query I rowsort
SELECT - ( - 0 ) * - col1 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2309
SELECT ALL cor0.col0 DIV col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL cor0.col0 / col0 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT ( - 64 ) + col2 FROM tab2 AS cor0
----
-26
-37
-38

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

query I rowsort
SELECT - 47 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

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

query I rowsort
SELECT DISTINCT - 44 + + col0 * - col0 * ( cor0.col0 ) FROM tab2 AS cor0
----
-387
-474596
-493083

query I rowsort
SELECT + col0 * col0 + - cor0.col0 + + col2 FROM tab1 AS cor0
----
4089
60
6416

query I rowsort
SELECT + 3 FROM tab0 AS cor0
----
3
3
3

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 col0 FROM tab1
----
3
64
80

query I rowsort
SELECT - + 20 * col0 FROM tab2 AS cor0
----
-140
-1560
-1580

query I rowsort
SELECT + cor0.col2 * col2 * 76 AS col2 FROM tab0 AS cor0
----
511024
76
82764

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2322
SELECT 24 + - col0 * + CAST( ( - col1 ) + - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
264
4312
8744

skipif mysql # not compatible
query I rowsort label-2322
SELECT 24 + - col0 * + CAST ( ( - col1 ) + - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
264
4312
8744

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

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

query I rowsort
SELECT - 94 * cor0.col1 FROM tab0 AS cor0
----
-8084
-8554
-9118

query I rowsort
SELECT - col2 * col2 * + 55 FROM tab1 AS cor0
----
-160380
-178695
-506880

query I rowsort
SELECT ALL - 54 FROM tab2 AS cor0
----
-54
-54
-54

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

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

query I rowsort
SELECT DISTINCT + - col1 + + ( 16 ) * col2 AS col2 FROM tab1 AS cor0
----
1523
838
902

query I rowsort
SELECT ALL + col2 * - 3 - 90 FROM tab1 AS cor0
----
-252
-261
-378

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

query I rowsort
SELECT ALL 78 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT + 67 + tab0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to e1fcf074d345e992f85d57a04f30cab4

query I rowsort
SELECT 88 - - col2 * + col0 * ( + col0 ) FROM tab1
----
233560
574
614488

query I rowsort
SELECT ALL + - cor0.col2 FROM tab0, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT - 2 + + cor0.col0 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 40b553b1c84d766843d6eaaf09676877

query I rowsort
SELECT + col2 * - col1 + col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT 8 FROM tab0, tab2 cor0
----
8

query I rowsort
SELECT ALL + + col1 * - 13 FROM tab1 cor0
----
-130
-169
-338

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2340
SELECT DISTINCT - col0 / CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT - col0 / CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - cor0.col0 + + 14 FROM tab0 AS cor0
----
-10
-21
-75

query I rowsort
SELECT ALL + - cor0.col1 + + col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL col0 * 99 FROM tab1 cor0
----
297
6336
7920

query I rowsort
SELECT - col1 * col0 + + 62 AS col1 FROM tab2 AS cor0
----
-1281
-155
-4540

query I rowsort
SELECT - - col1 - - col1 AS col0 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT ALL - tab1.col0 * - col2 - + ( + col0 ) FROM tab1
----
159
3584
7600

query I rowsort
SELECT 80 * + col2 AS col2 FROM tab0
----
2640
6560
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 col1 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2349
SELECT col2 * col2 DIV + col2 AS col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2349
SELECT col2 * col2 / + col2 AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT col2 * - col0 + + col1 - col2 AS col1 FROM tab2
----
-185
-1995
-3023

query I rowsort
SELECT col2 + + col2 + 74 FROM tab0
----
140
238
76

query I rowsort
SELECT DISTINCT 79 - + col2 FROM tab2
----
41
52
53

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT col1 + ( + col1 ) FROM tab2
----
118
34
62

query I rowsort
SELECT DISTINCT - 87 * + cor1.col2 + 43 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-2828
-44
-7091

query I rowsort
SELECT 98 FROM tab2, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 6624b1f09c0594f5576803ac29f4499d

query I rowsort
SELECT ALL - cor0.col0 * + ( ( + col1 ) ) FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - col0 * - col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + + col2 * 87 + cor0.col2 FROM tab1 AS cor0
----
4752
5016
8448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 51 + - col0 col1 FROM tab0 AS cor0
----
-1707
-4271
-86

query I rowsort
SELECT col1 + 23 FROM tab2 AS cor0
----
40
54
82

query I rowsort
SELECT ALL + col0 + ( col2 ) + - col2 FROM tab2
----
7
78
79

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 cor2
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT ( - tab0.col0 ) FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL ( 71 + - col1 ) FROM tab1
----
45
58
61

query I rowsort
SELECT 92 AS col1 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT DISTINCT col2 * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - + 20 FROM tab1 AS cor0
----
-20
-20
-20

query I rowsort
SELECT + 62 + - col1 * col2 FROM tab0 AS cor0
----
-2776
-35
-7400

query I rowsort
SELECT ALL - tab1.col1 * + col2 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL - col2 * - col1 * ( + 17 ) AS col2 FROM tab0
----
126854
1649
48246

query I rowsort
SELECT DISTINCT - col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * col0 + - col0 col0 FROM tab1 AS cor0
----
512
72
880

query I rowsort
SELECT ALL 60 * cor0.col1 FROM tab2 AS cor0
----
1020
1860
3540

query I rowsort
SELECT DISTINCT + cor0.col0 + col0 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
69
7305
783

query I rowsort
SELECT DISTINCT + col2 * col1 + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL + 47 + + col2 AS col0 FROM tab1 AS cor0
----
101
104
143

query I rowsort
SELECT DISTINCT - - cor0.col0 * 78 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
546
6084
6162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2381
SELECT DISTINCT + - 43 * col1 - CAST( - 6 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-1039
-1136
-814

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT + - 43 * col1 - CAST ( - 6 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-1039
-1136
-814

query I rowsort
SELECT + - cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL 97 * col1 FROM tab2 AS cor0
----
1649
3007
5723

query I rowsort
SELECT DISTINCT + col1 * col2 * 21 AS col2 FROM tab0 AS cor0
----
156702
2037
59598

query I rowsort
SELECT ALL - col0 + + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + ( - col0 ) AS col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT col1 + cor0.col1 - - 1 AS col0 FROM tab0 AS cor0
----
173
183
195

query I rowsort
SELECT DISTINCT - - col0 + + cor0.col0 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2389
SELECT ALL - col0 + 99 DIV - col2 AS col0 FROM tab1 cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL - col0 + 99 / - col2 AS col0 FROM tab1 cor0
----
-4
-65
-81

query I rowsort
SELECT DISTINCT + - col2 * + col2 + - col1 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT 77 AS col2 FROM tab2, tab2 AS cor0
----
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-2392
SELECT DISTINCT tab1.col1 DIV + tab1.col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT tab1.col1 / + tab1.col1 FROM tab1
----
1

query I rowsort
SELECT - cor0.col0 + - 31 FROM tab0 AS cor0
----
-120
-55
-66

query I rowsort
SELECT DISTINCT + col2 + 92 AS col2 FROM tab2 AS cor0
----
118
119
130

query I rowsort
SELECT + + col0 + col1 * ( col2 + + 55 ) AS col0 FROM tab1 AS cor0
----
1184
2043
2837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2396
SELECT + 38 DIV + col2 + + 20 AS col0 FROM tab0
----
20
21
58

skipif mysql # not compatible
query I rowsort label-2396
SELECT + 38 / + col2 + + 20 AS col0 FROM tab0
----
20
21
58

query I rowsort
SELECT + col1 + - 94 * + 90 AS col2 FROM tab2 AS cor0
----
-8401
-8429
-8443

query I rowsort
SELECT ALL + col0 * + 32 FROM tab0 cor0
----
1120
2848
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col1 FROM tab2 AS cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col1 FROM tab2, tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT 84 * col2 FROM tab2 AS cor0
----
2184
2268
3192

query I rowsort
SELECT ALL - ( - col2 * col0 ) AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT + 7 + 88 FROM tab0 AS cor0
----
95
95
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT - ( col0 ) DIV col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2404
SELECT - ( col0 ) / col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col1 * - 74 FROM tab0 AS cor0
----
-6364
-6734
-7178

query I rowsort
SELECT DISTINCT - 84 * - 1 AS col1 FROM tab2 AS cor0
----
84

query I rowsort
SELECT DISTINCT + 87 + - col0 FROM tab0 cor0
----
-2
52
63

query I rowsort
SELECT ALL + + col0 + - col0 * col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + + 92 FROM tab0 cor0
----
92
92
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2410
SELECT DISTINCT + col0 * cor0.col0 + - CAST( + col1 AS SIGNED ) + col1 FROM tab1 cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT + col0 * cor0.col0 + - CAST ( + col1 AS INTEGER ) + col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ( - col2 ) * - col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - 69 * - col1 + cor0.col2 + - col2 FROM tab2 cor0
----
1173
2139
4071

query I rowsort
SELECT DISTINCT + 83 + col2 * + 97 FROM tab0 AS cor0
----
180
3284
8037

query I rowsort
SELECT tab2.col2 + 6 FROM tab2
----
32
33
44

query I rowsort
SELECT DISTINCT - 73 FROM tab2
----
-73

query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab1
----
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2417
SELECT DISTINCT col0 DIV + CAST( col2 AS SIGNED ) FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-2417
SELECT DISTINCT col0 / + CAST ( col2 AS INTEGER ) FROM tab1
----
0
1

query I rowsort
SELECT ALL + + cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - 88 FROM tab1
----
-88
-88
-88

query I rowsort
SELECT ALL + tab0.col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT ( 46 ) FROM tab1
----
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-2422
SELECT + + col0 DIV + col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2422
SELECT + + col0 / + col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + - col1 * col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + 21 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2426
SELECT ( cor0.col0 ) DIV col0 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2426
SELECT ( cor0.col0 ) / col0 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - 17 AS col0 FROM tab2
----
-17
-17
-17

query I rowsort
SELECT ( tab0.col2 ) * - ( col0 ) + + col1 AS col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + 74 AS col0 FROM tab0
----
74

query I rowsort
SELECT 33 * col0 * - col1 FROM tab1
----
-21120
-2574
-34320

onlyif mysql # use DIV operator for integer division
query I rowsort label-2431
SELECT DISTINCT - col2 * - col1 DIV - col1 AS col1 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-2431
SELECT DISTINCT - col2 * - col1 / - col1 AS col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL - col0 - - col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - - 18 FROM tab2 cor0
----
18

query I rowsort
SELECT ALL cor0.col1 * + col1 + 37 + 52 * - col1 AS col1 FROM tab0 cor0
----
2961
3586
4402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 * 93 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b079ecdfa2def654c20e71b140414b79

query I rowsort
SELECT - col2 + - col1 + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-1019
-344
-3566

query I rowsort
SELECT + - cor0.col2 * + 4 * col2 + col2 + - ( + 34 ) FROM tab1 AS cor0
----
-11644
-12973
-36802

query I rowsort
SELECT col2 + - 15 FROM tab2 AS cor0
----
11
12
23

query I rowsort
SELECT ALL + - cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + + col2 + col1 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT tab2.col1 * - 69 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to b8da5275e074d9481980f6b8a24fd2b2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2442
SELECT + - col0 DIV col2 + col0 DIV + cor0.col1 col0 FROM tab1 AS cor0
----
0
5
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2442
SELECT + - col0 / col2 + col0 / + cor0.col1 col0 FROM tab1 AS cor0
----
0
5
6

query I rowsort
SELECT col2 * + ( col1 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col0 + - 58 FROM tab1
----
-122
-138
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-2445
SELECT - col1 DIV + 16 + + 27 AS col1 FROM tab2
----
24
26
26

skipif mysql # not compatible
query I rowsort label-2445
SELECT - col1 / + 16 + + 27 AS col1 FROM tab2
----
24
26
26

query I rowsort
SELECT 5 * cor1.col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0e2e8c8d930a1d8cc62663577dc7aa82

query I rowsort
SELECT DISTINCT + 14 AS col2 FROM tab2, tab2 AS cor0
----
14

query I rowsort
SELECT - + col1 + + 9 * + 29 FROM tab0 AS cor0
----
164
170
175

query I rowsort
SELECT ALL + col0 * - ( + col2 * cor0.col2 + 96 ) AS col1 FROM tab2 AS cor0
----
-121660
-5775
-60216

query I rowsort
SELECT col1 + + col1 AS col0 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT ALL - col1 + ( col0 ) FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - 58 AS col0 FROM tab0 AS cor0
----
-58
-58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2454
SELECT - + CAST( col0 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-2454
SELECT - + CAST ( col0 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - 10 AS col0 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT ( cor0.col2 ) + cor0.col0 * cor0.col1 * 60 FROM tab1 AS cor0
----
38457
4734
62496

query I rowsort
SELECT ALL + col2 + - col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
104
179
82

query I rowsort
SELECT DISTINCT col1 * 97 + col1 FROM tab1 AS cor0
----
1274
2548
980

onlyif mysql # use DIV operator for integer division
query I rowsort label-2459
SELECT col1 DIV col0 AS col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2459
SELECT col1 / col0 AS col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT + - ( cor0.col0 ) FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 33 col0 FROM tab0
----
2838
3003
3201

query I rowsort
SELECT ALL 57 + - 49 FROM tab0 AS cor0
----
8
8
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2463
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * 75 - col2 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT + - CAST ( NULL AS REAL ) * 75 - col2 AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + + ( 96 ) + cor0.col0 * + ( + col2 ) * col0 FROM tab1 AS cor0
----
233568
582
614496

query I rowsort
SELECT DISTINCT - col0 * + 38 + col1 AS col1 FROM tab1 AS cor0
----
-2422
-3027
-88

query I rowsort
SELECT ALL - + col1 + 50 FROM tab1 AS cor0
----
24
37
40

query I rowsort
SELECT + col1 * cor0.col1 - - ( + cor0.col1 ) * col1 FROM tab2 AS cor0
----
1922
578
6962

query I rowsort
SELECT col0 + - col2 * ( - col1 + + col2 ) FROM tab0 AS cor0
----
131
1773
827

query I rowsort
SELECT 57 * - col2 FROM tab2 AS cor0
----
-1482
-1539
-2166

query I rowsort
SELECT ALL + 78 * + col2 FROM tab0 AS cor0
----
2574
6396
78

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab2, tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT - + col2 + col0 + col0 AS col1 FROM tab0 AS cor0
----
15
69
96

query I rowsort
SELECT DISTINCT + 3 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
3

query I rowsort
SELECT + col2 + - col0 - col1 AS col1 FROM tab1 cor0
----
-17
25
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2475
SELECT ALL - + cor0.col0 * + col0 DIV col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL - + cor0.col0 * + col0 / col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + col2 + - col2 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT - col0 + - col1 - + ( col1 ) * + col0 FROM tab0
----
-2174
-3527
-8279

query I rowsort
SELECT DISTINCT + tab2.col0 FROM tab2, tab1 cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * - col2 col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL - + ( + col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - - ( col0 ) * + col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - 80 + - col1 AS col2 FROM tab1 AS cor0
----
-106
-90
-93

query I rowsort
SELECT DISTINCT cor0.col1 + 53 * - col1 FROM tab2 AS cor0
----
-1612
-3068
-884

query I rowsort
SELECT ALL - ( col0 ) * cor0.col0 * col1 + col0 AS col0 FROM tab2 cor0
----
-106018
-1512
-358878

query I rowsort
SELECT + + 91 AS col1 FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT ALL - cor0.col2 + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2489
SELECT DISTINCT - CAST( 24 AS SIGNED ) * + col0 AS col0 FROM tab0 AS cor0
----
-2136
-576
-840

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT - CAST ( 24 AS INTEGER ) * + col0 AS col0 FROM tab0 AS cor0
----
-2136
-576
-840

onlyif mysql # use DIV operator for integer division
query I rowsort label-2490
SELECT + col2 + 0 * - col1 DIV col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2490
SELECT + col2 + 0 * - col1 / col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - 92 * 26 + + cor0.col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1352
-1752
-2314

query I rowsort
SELECT ALL + 82 * - col0 FROM tab2 AS cor0
----
-574
-6396
-6478

query I rowsort
SELECT + 37 + + col0 FROM tab0 AS cor0
----
126
61
72

query I rowsort
SELECT - + 36 * col0 FROM tab2 AS cor0
----
-252
-2808
-2844

query I rowsort
SELECT ALL - cor0.col0 * - ( cor0.col0 ) AS col2 FROM tab1 cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2496
SELECT DISTINCT - 85 DIV 14 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT - 85 / 14 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT 61 AS col0 FROM tab2 AS cor0
----
61

query I rowsort
SELECT ALL cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + col1 - - tab0.col2 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT 42 * - col0 AS col2 FROM tab2 AS cor0
----
-294
-3276
-3318

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 624c4b72c6f348b0f702418bfe39bd29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * col0 - col0 col1 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT col0 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ( col1 ) + - col2 * tab2.col2 AS col2 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT + - cor0.col1 * + col0 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col1 * - 88 FROM tab1 AS cor0
----
-1144
-2288
-880

query I rowsort
SELECT DISTINCT - col2 * ( 0 ) AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - + 31 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-31

query I rowsort
SELECT + 99 * tab2.col1 * col0 FROM tab2
----
132957
21483
455598

query I rowsort
SELECT DISTINCT - col0 + tab0.col2 * 25 FROM tab0
----
-10
1961
801

query I rowsort
SELECT tab1.col1 * - col1 * col2 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT + col0 - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - 53 FROM tab0, tab1 cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( col1 ) col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + col1 * 93 AS col2 FROM tab0 AS cor0
----
7998
8463
9021

query I rowsort
SELECT col0 * col1 - col2 FROM tab0
----
2031
3394
8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2517
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2517
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 4406ccc71f02ae9c1e947ffcd89b0db7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2519
SELECT + ( col2 ) DIV col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2519
SELECT + ( col2 ) / col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2520
SELECT - 41 DIV + col0 FROM tab1 AS cor0
----
-13
0
0

skipif mysql # not compatible
query I rowsort label-2520
SELECT - 41 / + col0 FROM tab1 AS cor0
----
-13
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2521
SELECT - - CAST( + 77 AS SIGNED ) FROM tab2 cor0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-2521
SELECT - - CAST ( + 77 AS INTEGER ) FROM tab2 cor0
----
77
77
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-2522
SELECT ALL - col0 DIV 51 col1 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL - col0 / 51 col1 FROM tab0
----
-1
0
0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to a1a9b1c1e9ca8f59e89e834a7cdebbd0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2524
SELECT DISTINCT + col0 + + cor0.col1 DIV ( col1 ) FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-2524
SELECT DISTINCT + col0 + + cor0.col1 / ( col1 ) FROM tab1 AS cor0
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2525
SELECT ALL + + cor0.col2 DIV 1 - col0 AS col0 FROM tab0 cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL + + cor0.col2 / 1 - col0 AS col0 FROM tab0 cor0
----
-34
-7
9

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab0, tab2 AS cor1
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

query I rowsort
SELECT DISTINCT - 68 FROM tab2, tab2 AS cor0
----
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-2528
SELECT ALL - 48 DIV cor0.col1 col1 FROM tab1 cor0
----
-1
-3
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL - 48 / cor0.col1 col1 FROM tab1 cor0
----
-1
-3
-4

query I rowsort
SELECT ALL + 21 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2531
SELECT ALL CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * tab1.col2 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL + ( + col0 * col1 + - col2 ) FROM tab2
----
1305
190
4576

query I rowsort
SELECT DISTINCT + ( - 42 ) AS col2 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT ALL + + 29 AS col1 FROM tab0 AS cor0
----
29
29
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2536
SELECT + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2536
SELECT + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col1 col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + - ( 27 ) * cor0.col0 FROM tab1 cor0
----
-1728
-2160
-81

query I rowsort
SELECT DISTINCT + + ( 77 ) * col0 FROM tab2 AS cor0
----
539
6006
6083

query I rowsort
SELECT ALL + 11 * col2 + + tab0.col1 FROM tab0
----
108
449
993

query I rowsort
SELECT DISTINCT ( col1 ) + col0 FROM tab2
----
137
38
96

query I rowsort
SELECT 83 + - col0 * col0 AS col1 FROM tab2
----
-6001
-6158
34

query I rowsort
SELECT + col2 * tab0.col1 * 78 FROM tab0
----
221364
582036
7566

query I rowsort
SELECT ALL 9 AS col1 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT + + ( col2 ) - ( ( col0 ) ) AS col1 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT ALL - cor0.col2 + - col0 * + col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT - col0 * - col1 + + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + - 60 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-3
-6
36

query I rowsort
SELECT + cor0.col1 - - col1 AS col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - - col0 * col2 + - col1 AS col0 FROM tab0 cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT + 8 + col2 * tab1.col0 FROM tab1
----
170
3656
7688

query I rowsort
SELECT ALL col0 * + col1 - col2 * - 89 AS col1 FROM tab1 AS cor0
----
4884
5713
9584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 + - col0 col2 FROM tab0 AS cor0
----
-49
16
5

query I rowsort
SELECT DISTINCT + col2 * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-2555
SELECT ALL 16 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL 16 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + - 70 FROM tab2 AS cor0
----
-63
8
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + col1 col2 FROM tab1 AS cor0
----
-4086
-6387
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-2558
SELECT DISTINCT + - col2 DIV ( - 37 ) + - col2 * col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6722

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT + - col2 / ( - 37 ) + - col2 * col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6722

onlyif mysql # use DIV operator for integer division
query I rowsort label-2559
SELECT DISTINCT col0 * - ( ( col2 ) ) + col2 - + col0 DIV - cor0.col0 FROM tab1 AS cor0
----
-107
-3590
-7583

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT col0 * - ( ( col2 ) ) + col2 - + col0 / - cor0.col0 FROM tab1 AS cor0
----
-107
-3590
-7583

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * + col0 col0 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT ALL - + col2 * col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL cor0.col0 * ( col0 * + cor0.col0 ) + col2 FROM tab1 AS cor0
----
262201
512096
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2563
SELECT - col2 DIV 11 + 14 * + col1 col0 FROM tab0 AS cor0
----
1201
1267
1358

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2563
SELECT - col2 / 11 + 14 * + col1 col0 FROM tab0 AS cor0
----
1201
1267
1358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + col2 * - ( col2 * + col2 ) AS col1 FROM tab0 AS cor0
----
-1
-35937
-551368

query I rowsort
SELECT ALL + col0 * + col2 + col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT - col2 * ( - 72 ) + + col0 FROM tab0 cor0
----
107
2400
5993

query I rowsort
SELECT + 77 AS col2 FROM tab2 AS cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - ( - 86 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT ALL - ( - tab0.col0 + 60 ) FROM tab0, tab0 cor0
----
9 values hashing to 06f04bfcdb56eeaa9cad0ee07fea05c3

query I rowsort
SELECT ALL + 97 * - col0 AS col2 FROM tab2
----
-679
-7566
-7663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2573
SELECT - - col1 + - CAST( - col1 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
306
3540
992

skipif mysql # not compatible
query I rowsort label-2573
SELECT - - col1 + - CAST ( - col1 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT ALL cor0.col2 + - col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - ( tab2.col2 + + col1 * col2 ) FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT - cor0.col1 + ( + 17 ) FROM tab2, tab0 cor0
----
9 values hashing to 7ab40850e1ce4e2b79c2858498fb11f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col1 FROM tab2
----
17
17
17

query I rowsort
SELECT ALL - 48 * col0 FROM tab0
----
-1152
-1680
-4272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 * - tab0.col0 col1 FROM tab0
----
-1968
-2870
-7298

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2581
SELECT CAST( cor0.col2 AS SIGNED ) - - col2 AS col1 FROM tab1 AS cor0
----
108
114
192

skipif mysql # not compatible
query I rowsort label-2581
SELECT CAST ( cor0.col2 AS INTEGER ) - - col2 AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL ( 11 ) FROM tab0, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + tab1.col2 col2 FROM tab1
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2584
SELECT + CAST( NULL AS SIGNED ) + - ( col1 * + col1 + - col0 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2584
SELECT + CAST ( NULL AS INTEGER ) + - ( col1 * + col1 + - col0 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + 2 ) + + col2 * 80 AS col1 FROM tab1 AS cor0
----
4318
4558
7678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT ALL + ( cor0.col2 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2588
SELECT col0 * - CAST( + 14 AS SIGNED ) FROM tab1
----
-1120
-42
-896

skipif mysql # not compatible
query I rowsort label-2588
SELECT col0 * - CAST ( + 14 AS INTEGER ) FROM tab1
----
-1120
-42
-896

query I rowsort
SELECT DISTINCT - tab2.col1 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-17
-31
-59

query I rowsort
SELECT - col0 * - 74 + + col2 AS col1 FROM tab0
----
1809
2591
6668

onlyif mysql # use DIV operator for integer division
query I rowsort label-2591
SELECT 61 DIV col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2591
SELECT 61 / col2 FROM tab1
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL 32 FROM tab2, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT + col0 + - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2595
SELECT - cor0.col1 * col0 - - col0 DIV 38 FROM tab2 AS cor0
----
-1341
-217
-4600

skipif mysql # not compatible
query I rowsort label-2595
SELECT - cor0.col1 * col0 - - col0 / 38 FROM tab2 AS cor0
----
-1341
-217
-4600

query I rowsort
SELECT - ( 23 ) + col2 AS col2 FROM tab2 cor0
----
15
3
4

query I rowsort
SELECT + + col2 * - col0 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2598
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + col1 * + col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + col1 * + col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 5 * + col2 + + col1 FROM tab1 cor0
----
-244
-275
-467

onlyif mysql # use DIV operator for integer division
query I rowsort label-2600
SELECT + 26 DIV ( - col0 + col2 ) FROM tab1 AS cor0
----
-3
0
1

skipif mysql # not compatible
query I rowsort label-2600
SELECT + 26 / ( - col0 + col2 ) FROM tab1 AS cor0
----
-3
0
1

query I rowsort
SELECT DISTINCT - + col0 * + 31 + cor0.col0 FROM tab0 AS cor0
----
-1050
-2670
-720

query I rowsort
SELECT - + col1 * 5 - col1 FROM tab1 AS cor0
----
-156
-60
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2603
SELECT + - CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2603
SELECT + - CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL ( col1 ) AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT + 92 * + col1 FROM tab0
----
7912
8372
8924

query I rowsort
SELECT + 88 * - col0 * col1 AS col1 FROM tab0
----
-181632
-298760
-712712

query I rowsort
SELECT ALL + 78 - col2 AS col0 FROM tab1
----
-18
21
24

query I rowsort
SELECT ( 89 ) - - col2 FROM tab2 AS cor0
----
115
116
127

query I rowsort
SELECT ALL + 68 * + tab0.col0 - - col2 * + col0 FROM tab0
----
13350
2415
2424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - col0 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - tab0.col2 + col2 + col2 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2612
SELECT - 8 DIV cor0.col2 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2612
SELECT - 8 / cor0.col2 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col2 + - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + + ( col0 ) * col2 + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + - cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT - col2 * cor0.col0 - - 81 * + cor0.col2 FROM tab2 AS cor0
----
1998
76
78

query I rowsort
SELECT DISTINCT + - 95 * col1 + + col1 - col1 FROM tab0 cor0
----
-8170
-8645
-9215

query I rowsort
SELECT col2 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + 43 * - col2 FROM tab0 cor0
----
-1419
-3526
-43

query I rowsort
SELECT DISTINCT - 47 * + col1 + col2 AS col2 FROM tab1 AS cor0
----
-1168
-413
-515

query I rowsort
SELECT DISTINCT - - 56 * col1 * col1 AS col2 FROM tab1 AS cor0
----
37856
5600
9464

query I rowsort
SELECT 44 * + col2 FROM tab0 AS cor0
----
1452
3608
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + cor0.col1 col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + 95 + + 52 AS col1 FROM tab0, tab2 AS cor0
----
147

query I rowsort
SELECT col1 * - col2 * col2 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-2627
SELECT col1 DIV CAST( - col1 + - col2 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2627
SELECT col1 / CAST ( - col1 + - col2 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - col2 + - 0 * cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT cor0.col2 * + 29 FROM tab0 AS cor0
----
2378
29
957

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2630
SELECT CAST( + col0 AS SIGNED ) - cor0.col1 * - ( + 60 ) FROM tab0 AS cor0
----
5184
5549
5855

skipif mysql # not compatible
query I rowsort label-2630
SELECT CAST ( + col0 AS INTEGER ) - cor0.col1 * - ( + 60 ) FROM tab0 AS cor0
----
5184
5549
5855

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col0 ) - col0 col1 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT - - col1 + - col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT + col0 * + col0 - + col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT ALL + col1 * + col1 - + col2 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT + col0 * - ( - 58 ) + + col1 FROM tab2
----
437
4583
4599

query I rowsort
SELECT DISTINCT + col1 * col0 * col1 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT - cor0.col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + cor0.col1 + + 55 - col2 FROM tab1 AS cor0
----
-28
27
8

query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col1 * col0 + - col2 FROM tab2 cor0
----
106059
1492
358930

query I rowsort
SELECT ALL - 26 AS col2 FROM tab0 cor0
----
-26
-26
-26

query I rowsort
SELECT + - 45 * 5 * - cor0.col2 FROM tab2 AS cor0
----
5850
6075
8550

query I rowsort
SELECT ALL - - 58 FROM tab2 AS cor0
----
58
58
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2643
SELECT DISTINCT - + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT - + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2644
SELECT ALL - col0 + 75 DIV - col2 FROM tab0 AS cor0
----
-110
-26
-89

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL - col0 + 75 / - col2 FROM tab0 AS cor0
----
-110
-26
-89

query I rowsort
SELECT DISTINCT - col1 * col1 + + col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT + 74 + 18 * + col2 AS col0 FROM tab0 AS cor0
----
1550
668
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-2647
SELECT 22 DIV + col1 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2647
SELECT 22 / + col1 FROM tab1 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT - + cor0.col2 * + ( col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - - 75 * - 42 AS col2 FROM tab0 AS cor0
----
-3150
-3150
-3150

query I rowsort
SELECT ( - 96 ) * col1 FROM tab1 AS cor0
----
-1248
-2496
-960

query I rowsort
SELECT ALL + 6 AS col2 FROM tab2 AS cor0
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 + + col1 * col1 col0 FROM tab2 AS cor0
----
1178
1632
8083

query I rowsort
SELECT DISTINCT + + col1 + - col0 * col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - col0 + cor0.col0 + - col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - + col0 + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1, tab2 AS cor0, tab0, tab0 AS cor1
----
-7
-78
-79

query I rowsort
SELECT ALL - col1 * col0 + - col1 * - ( tab0.col2 * + col2 ) AS col1 FROM tab0
----
-3298
603785
91590

query I rowsort
SELECT ALL + + 2 * col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT ( cor0.col0 ) + + ( + 92 ) FROM tab1 AS cor0
----
156
172
95

query I rowsort
SELECT ALL + cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2663
SELECT - 63 * + col1 + + 64 DIV - 84 - + col2 FROM tab2 AS cor0
----
-1109
-1980
-3743

skipif mysql # not compatible
query I rowsort label-2663
SELECT - 63 * + col1 + + 64 / - 84 - + col2 FROM tab2 AS cor0
----
-1109
-1980
-3743

query I rowsort
SELECT + 30 + - col2 FROM tab0 AS cor0
----
-3
-52
29

query I rowsort
SELECT DISTINCT cor0.col2 + col0 * + 61 * col0 FROM tab0 cor0
----
35169
483263
74726

query I rowsort
SELECT DISTINCT + + col0 - - col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + ( cor0.col2 ) - 38 FROM tab1 AS cor0
----
16
19
58

query I rowsort
SELECT DISTINCT + col1 * col0 * col1 FROM tab2 AS cor0
----
22831
271518
6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2669
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * col2 * col2 AS col1 FROM tab0 cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT - + cor0.col0 * + 21 FROM tab1 AS cor0
----
-1344
-1680
-63

query I rowsort
SELECT DISTINCT - col0 + 11 * col2 AS col0 FROM tab1 AS cor0
----
563
591
976

query I rowsort
SELECT ( col0 ) * col1 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2674
SELECT 67 - tab1.col2 DIV - tab1.col2 FROM tab1
----
68
68
68

skipif mysql # not compatible
query I rowsort label-2674
SELECT 67 - tab1.col2 / - tab1.col2 FROM tab1
----
68
68
68

query I rowsort
SELECT DISTINCT col1 + - col1 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + cor0.col1 * 61 AS col2 FROM tab0 AS cor0
----
-5246
-5551
-5917

query I rowsort
SELECT ALL - col0 * + 15 AS col0 FROM tab2 AS cor0
----
-105
-1170
-1185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + - col2 * + col1 col1 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT - + cor0.col1 * 91 FROM tab1 AS cor0
----
-1183
-2366
-910

query I rowsort
SELECT + col2 * + ( ( col0 ) ) FROM tab2 cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 74 col2 FROM tab0 AS cor0
----
-2442
-6068
-74

query I rowsort
SELECT - col2 * - col1 + col0 AS col2 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - col1 + - 9 * - col2 FROM tab0 cor0
----
-88
211
647

query I rowsort
SELECT ALL - - col2 * + col0 - col0 AS col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL 41 + - col1 * + col1 AS col0 FROM tab0
----
-7355
-8240
-9368

query I rowsort
SELECT ALL tab0.col2 * + col0 * - col1 + col2 + - col1 AS col2 FROM tab0
----
-3491
-664127
-68165

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2687
SELECT + col1 - - CAST( - col1 AS SIGNED ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT + col1 - - CAST ( - col1 AS INTEGER ) FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col0 + col0 * + ( + col2 + cor0.col2 ) FROM tab0 AS cor0
----
105
14685
1608

query I rowsort
SELECT + col0 * ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL col1 * + col1 AS col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT - ( 3 ) * col0 FROM tab2 AS cor0
----
-21
-234
-237

query I rowsort
SELECT - col2 * cor0.col1 + - col0 AS col1 FROM tab2 cor0
----
-1612
-725
-844

query I rowsort
SELECT 58 FROM tab0, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT DISTINCT tab1.col1 * - 35 FROM tab1
----
-350
-455
-910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 * 18 col1 FROM tab0, tab1 cor0
----
1566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * + tab2.col1 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d9cc92c402a4159be19434b1b50d150a

query I rowsort
SELECT cor0.col2 - col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - 54 + col1 + col0 * - col1 FROM tab0 AS cor0
----
-2032
-3352
-8062

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2699
SELECT + CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2699
SELECT + CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT 99 * - tab0.col2 AS col2 FROM tab0
----
-3267
-8118
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2702
SELECT col0 DIV - col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2702
SELECT col0 / - col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ( + col2 ) * - col2 AS col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col2 * + tab0.col1 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL 2 * - col2 + ( + col2 ) + col0 * 7 FROM tab2
----
22
515
520

onlyif mysql # use DIV operator for integer division
query I rowsort label-2706
SELECT ALL 72 DIV + tab1.col1 + - col0 * col0 AS col1 FROM tab1
----
-4089
-6395
-7

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL 72 / + tab1.col1 + - col0 * col0 AS col1 FROM tab1
----
-4089
-6395
-7

query I rowsort
SELECT DISTINCT + + ( col0 ) + col2 * + col0 FROM tab2 cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2708
SELECT - 3 * col0 * - CAST( NULL AS SIGNED ) + - col2 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT - 3 * col0 * - CAST ( NULL AS INTEGER ) + - col2 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + col2 + 82 FROM tab0 AS cor0
----
82
82
82

query I rowsort
SELECT - 46 * + col1 FROM tab0
----
-3956
-4186
-4462

query I rowsort
SELECT - col2 + cor0.col0 * + col0 - + ( cor0.col0 ) FROM tab0 AS cor0
----
1189
519
7750

query I rowsort
SELECT DISTINCT 31 AS col0 FROM tab0 AS cor0
----
31

query I rowsort
SELECT col2 * + col1 * + col0 AS col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL + 81 FROM tab1, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT + 43 - col0 * col1 FROM tab1 cor0
----
-35
-597
-997

query I rowsort
SELECT 87 + - col0 FROM tab0 AS cor0
----
-2
52
63

query I rowsort
SELECT + + 44 + + 25 * - col0 FROM tab0 AS cor0
----
-2181
-556
-831

onlyif mysql # use DIV operator for integer division
query I rowsort label-2718
SELECT + ( + col0 ) DIV ( cor0.col0 ) + + cor0.col0 + - col2 FROM tab0 AS cor0
----
-8
35
8

skipif mysql # not compatible
query I rowsort label-2718
SELECT + ( + col0 ) / ( cor0.col0 ) + + cor0.col0 + - col2 FROM tab0 AS cor0
----
-8
35
8

query I rowsort
SELECT col2 + + col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + - col2 * + col1 * + col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL + tab2.col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab2, tab1 AS cor0
----
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2723
SELECT - col2 * - 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-2723
SELECT - col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 1 * cor0.col2 FROM tab0, tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - 38 AS col1 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3

query I rowsort
SELECT ALL col2 + - 90 * - col2 * + cor0.col0 + - cor0.col2 * col1 * - cor0.col2 FROM tab1 AS cor0
----
360867
811104
90450

query I rowsort
SELECT DISTINCT ( + col1 ) + + cor0.col1 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2728
SELECT col2 DIV + CAST( - 34 AS SIGNED ) FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2728
SELECT col2 / + CAST ( - 34 AS INTEGER ) FROM tab0
----
-2
0
0

query I rowsort
SELECT DISTINCT 18 + tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
114
72
75

query I rowsort
SELECT + col1 - - cor0.col2 AS col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2731
SELECT + ( col1 ) * - cor0.col0 + 79 DIV - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-1040
-641
-79

skipif mysql # not compatible
query I rowsort label-2731
SELECT + ( col1 ) * - cor0.col0 + 79 / - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-1040
-641
-79

query I rowsort
SELECT DISTINCT + col2 * 12 FROM tab1
----
1152
648
684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 * col1 col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - cor1.col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2735
SELECT ALL col0 DIV ( + col1 + 60 * + 63 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL col0 / ( + col1 + 60 * + 63 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2737
SELECT ALL + 13 + - 54 * col1 DIV col1 + col1 AS col2 FROM tab0 cor0
----
45
50
56

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL + 13 + - 54 * col1 / col1 + col1 AS col2 FROM tab0 cor0
----
45
50
56

query I rowsort
SELECT DISTINCT ( + cor0.col2 + cor0.col2 ) FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
108
114
192

query I rowsort
SELECT + 21 FROM tab2, tab2 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT cor0.col2 * col0 + - col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT + tab0.col2 * - col1 + - col0 * - 73 - + col2 AS col1 FROM tab0
----
-1047
-1119
2457

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2742
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2742
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + col1 - col2 AS col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT - 8 + 55 * col1 FROM tab1
----
1422
542
707

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 * - col2 col0 FROM tab2 AS cor0
----
-442
-459
-646

query I rowsort
SELECT ALL - + col2 * - col2 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
-157464
-185193
-884736

query I rowsort
SELECT DISTINCT 69 FROM tab1 cor0
----
69

query I rowsort
SELECT DISTINCT - ( 27 ) AS col2 FROM tab1
----
-27

query I rowsort
SELECT - ( col1 * tab0.col2 ) FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2750
SELECT col0 DIV 50 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2750
SELECT col0 / 50 AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT + tab0.col2 * 40 * + col0 AS col2 FROM tab0
----
1400
291920
31680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2752
SELECT ALL - CAST( - col0 AS SIGNED ) + col2 FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL - CAST ( - col0 AS INTEGER ) + col2 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + col0 * + col0 - col1 AS col0 FROM tab1
----
-17
4086
6387

query I rowsort
SELECT - 25 AS col0 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a

query I rowsort
SELECT ALL col0 + - 84 * col2 - col1 FROM tab2
----
-2165
-2292
-3130

query I rowsort
SELECT ALL col1 - col1 * tab1.col0 * col0 AS col2 FROM tab1
----
-208
-40950
-83187

query I rowsort
SELECT + 27 * + col2 AS col0 FROM tab0
----
2214
27
891

query I rowsort
SELECT ALL col0 + - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - cor0.col2 * ( + col1 ) * col0 + 47 FROM tab2 AS cor0
----
-119605
-50987
-5812

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2760
SELECT ALL + col1 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * 91 AS col2 FROM tab0 AS cor0
----
-2184
-3185
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2762
SELECT DISTINCT + - col1 * CAST( - 20 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
19220
5780
69620

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT + - col1 * CAST ( - 20 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
19220
5780
69620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - col0 + - col1 AS col2 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ALL + + 25 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

onlyif mysql # use DIV operator for integer division
query I rowsort label-2766
SELECT DISTINCT + col2 DIV 98 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT + col2 / 98 FROM tab2 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2767
SELECT - col1 * CAST( - 62 AS SIGNED ) + - col1 col0 FROM tab0 AS cor0
----
5246
5551
5917

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2767
SELECT - col1 * CAST ( - 62 AS INTEGER ) + - col1 col0 FROM tab0 AS cor0
----
5246
5551
5917

query I rowsort
SELECT ALL + col0 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT - col1 * 41 FROM tab2 AS cor0
----
-1271
-2419
-697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2770
SELECT + col1 + CAST( col1 AS SIGNED ) * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

skipif mysql # not compatible
query I rowsort label-2770
SELECT + col1 + CAST ( col1 AS INTEGER ) * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 66 col1 FROM tab0 AS cor0
----
1584
2310
5874

onlyif mysql # use DIV operator for integer division
query I rowsort label-2772
SELECT - cor0.col1 DIV col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2772
SELECT - cor0.col1 / col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2773
SELECT col0 DIV - col2 + + col2 - col1 DIV col0 AS col0 FROM tab0
----
-36
30
80

skipif mysql # not compatible
query I rowsort label-2773
SELECT col0 / - col2 + + col2 - col1 / col0 AS col0 FROM tab0
----
-36
30
80

query I rowsort
SELECT ALL - 45 + - col0 AS col2 FROM tab2
----
-123
-124
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2775
SELECT DISTINCT + cor0.col0 DIV col1 + col1 * - col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
636056
753571
912673

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT + cor0.col0 / col1 + col1 * - col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT + + col1 * col1 + ( col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
1178
1632
8083

query I rowsort
SELECT - + col0 + cor0.col2 FROM tab2 cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - ( cor0.col1 ) * - col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - - col0 * - col2 * + col2 + col0 + + col2 AS col0 FROM tab1 AS cor0
----
-207815
-737104
-8691

query I rowsort
SELECT ALL ( + 96 ) + col1 FROM tab1
----
106
109
122

query I rowsort
SELECT DISTINCT tab2.col1 + + ( col1 + + tab2.col0 * col0 ) AS col2 FROM tab2
----
111
6202
6275

query I rowsort
SELECT + 96 + ( col1 ) + col1 FROM tab1
----
116
122
148

query I rowsort
SELECT DISTINCT + 76 AS col1 FROM tab1, tab1 AS cor0
----
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col0 * + tab0.col2 col0 FROM tab0
----
-36
-7380
-825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2786
SELECT CAST( col0 AS SIGNED ) + + col0 AS col0 FROM tab0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-2786
SELECT CAST ( col0 AS INTEGER ) + + col0 AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL 95 + + col1 AS col0 FROM tab1
----
105
108
121

query I rowsort
SELECT + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT col2 * - cor0.col0 + - col0 * + 53 AS col0 FROM tab2 AS cor0
----
-560
-6162
-7189

query I rowsort
SELECT ALL - + col2 + col0 + col1 FROM tab0 AS cor0
----
131
77
98

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 + 13 AS col0 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT col0 + col0 * + col2 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - - cor0.col0 + col1 * + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 2 AS col0 FROM tab0 AS cor0
----
2

query I rowsort
SELECT ALL - 92 * + col2 * - 65 FROM tab0 cor0
----
197340
490360
5980

query I rowsort
SELECT + + col1 + + col1 + - 93 FROM tab2 AS cor0
----
-31
-59
25

query I rowsort
SELECT ALL - 44 * - col2 AS col2 FROM tab2 AS cor0
----
1144
1188
1672

query I rowsort
SELECT 27 * cor0.col2 FROM tab0 AS cor0
----
2214
27
891

query I rowsort
SELECT ALL + 45 * - col2 FROM tab2 AS cor0
----
-1170
-1215
-1710

query I rowsort
SELECT + - 97 + + col0 FROM tab2 AS cor0
----
-18
-19
-90

query I rowsort
SELECT ALL + + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 64 col2 FROM tab0
----
-18
31
63

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 1b06ddc48fd89ff2b1df6d82072316da

query I rowsort
SELECT ALL col2 - + col1 FROM tab1
----
28
47
83

query I rowsort
SELECT - + cor0.col2 * col1 + + col1 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2808
SELECT ALL + - col1 * - ( + col0 ) + col0 * + ( col0 ) DIV - col0 FROM tab0 AS cor0
----
2040
3360
8010

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL + - col1 * - ( + col0 ) + col0 * + ( col0 ) / - col0 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-2809
SELECT DISTINCT - col2 DIV + 40 - col0 AS col1 FROM tab2 cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT - col2 / + 40 - col0 AS col1 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - col0 * - 52 * 68 FROM tab0 AS cor0
----
123760
314704
84864

onlyif mysql # use DIV operator for integer division
query I rowsort label-2811
SELECT ALL col2 + + col2 DIV 60 FROM tab1 AS cor0
----
54
57
97

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL col2 + + col2 / 60 FROM tab1 AS cor0
----
54
57
97

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474

query I rowsort
SELECT DISTINCT + + ( - 78 ) FROM tab1 cor0
----
-78

query I rowsort
SELECT col1 + + cor0.col2 * + col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT 54 * + col0 * + col2 AS col2 FROM tab2 AS cor0
----
10206
109512
162108

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2816
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - 76 AS col1 FROM tab1 AS cor0
----
-76
-76
-76

query I rowsort
SELECT + 86 * col1 - - col1 FROM tab1 AS cor0
----
1131
2262
870

onlyif mysql # use DIV operator for integer division
query I rowsort label-2819
SELECT ALL + 1 DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL + 1 / col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 22 - col0 FROM tab1 AS cor0
----
-102
-25
-86

query I rowsort
SELECT ALL + 68 * - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2fdd4cfb0b35b796e309f1b4c404bbf1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 col1 FROM tab0, tab0 AS cor0
----
12

query I rowsort
SELECT + 57 FROM tab2, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 92 col0 FROM tab2 AS cor0
----
118
119
130

query I rowsort
SELECT ALL - 0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 19 + 68 * col0 AS col0 FROM tab2 AS cor0
----
495
5323
5391

query I rowsort
SELECT DISTINCT - col0 * - col2 + col0 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT - + 8 * ( + col1 * cor0.col2 ) - 37 FROM tab0 AS cor0
----
-22741
-59733
-813

query I rowsort
SELECT + - ( col2 ) + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - col2 - col0 * - col1 AS col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL + + ( 20 ) + col2 FROM tab0 AS cor0
----
102
21
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-2833
SELECT DISTINCT + ( + cor0.col1 ) DIV col2 - col1 * cor0.col2 AS col1 FROM tab0 cor0
----
-2836
-7461
0

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT + ( + cor0.col1 ) / col2 - col1 * cor0.col2 AS col1 FROM tab0 cor0
----
-2836
-7461
0

query I rowsort
SELECT - ( + col0 ) * - col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT 61 AS col1 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT ALL - + col2 * col1 - + col0 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT 36 * + col2 + - col0 FROM tab0 AS cor0
----
1
1164
2863

query I rowsort
SELECT - 67 * - 67 + - col1 AS col0 FROM tab2 AS cor0
----
4430
4458
4472

query I rowsort
SELECT ALL - 70 FROM tab0 AS cor0
----
-70
-70
-70

query I rowsort
SELECT ALL - + col0 * col1 + col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + + 89 * col1 * - col0 FROM tab1 AS cor0
----
-56960
-6942
-92560

query I rowsort
SELECT - - col0 * + cor0.col0 - - col0 AS col1 FROM tab0 cor0
----
1260
600
8010

query I rowsort
SELECT - 53 * - ( + col2 ) FROM tab0
----
1749
4346
53

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0, tab0 cor1
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0

query I rowsort
SELECT + 80 FROM tab0, tab0 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT ALL - col0 + 34 AS col2 FROM tab1 AS cor0
----
-30
-46
31

query I rowsort
SELECT col0 + - 48 AS col0 FROM tab2 AS cor0
----
-41
30
31

query I rowsort
SELECT cor0.col2 + 85 * 98 * col1 AS col0 FROM tab1 AS cor0
----
108386
216634
83357

onlyif mysql # use DIV operator for integer division
query I rowsort label-2850
SELECT ALL + col0 * ( col1 ) DIV col2 AS col1 FROM tab1 AS cor0
----
1
10
11

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL + col0 * ( col1 ) / col2 AS col1 FROM tab1 AS cor0
----
1
10
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2851
SELECT ALL + col2 + - CAST( col2 AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL + col2 + - CAST ( col2 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col1 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT + 42 AS col1 FROM tab2 AS cor0
----
42
42
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-2855
SELECT ALL - col0 DIV ( - 1 ) col1 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL - col0 / ( - 1 ) col1 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2856
SELECT - col1 DIV - col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2856
SELECT - col1 / - col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT 18 * - col2 FROM tab2
----
-468
-486
-684

onlyif mysql # use DIV operator for integer division
query I rowsort label-2858
SELECT col2 - col2 DIV 23 AS col0 FROM tab0
----
1
32
79

skipif mysql # not compatible
query I rowsort label-2858
SELECT col2 - col2 / 23 AS col0 FROM tab0
----
1
32
79

query I rowsort
SELECT DISTINCT col2 - ( tab2.col2 ) * + col2 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT col2 - col2 * + 84 AS col0 FROM tab2 AS cor0
----
-2158
-2241
-3154

query I rowsort
SELECT - col1 - + col0 AS col2 FROM tab1 cor0
----
-29
-74
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2862
SELECT CAST( 48 AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

skipif mysql # not compatible
query I rowsort label-2862
SELECT CAST ( 48 AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2863
SELECT - CAST( NULL AS SIGNED ) * ( tab0.col2 ) AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2863
SELECT - CAST ( NULL AS INTEGER ) * ( tab0.col2 ) AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - 57 FROM tab0, tab2 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT ALL 32 FROM tab1, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT - 31 * ( - col2 ) * col0 FROM tab2 AS cor0
----
5859
62868
93062

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - + ( + 81 ) + + col1 FROM tab1 AS cor0
----
-55
-68
-71

query I rowsort
SELECT + - col0 + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - 74 AS col2 FROM tab2 AS cor0
----
74
74
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 * ( - cor0.col0 ) - 75 col2 FROM tab1 AS cor0
----
-252
-3851
-4795

query I rowsort
SELECT 97 + - col1 * - col2 AS col0 FROM tab1 AS cor0
----
1345
1501
667

query I rowsort
SELECT 0 * - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - 75 * col1 - - 44 * tab0.col0 FROM tab0
----
-2909
-5394
-5735

query I rowsort
SELECT ALL 75 * - col2 AS col2 FROM tab0 AS cor0
----
-2475
-6150
-75

query I rowsort
SELECT - 60 * col2 AS col1 FROM tab0 AS cor0
----
-1980
-4920
-60

query I rowsort
SELECT ALL + col1 * col2 * + col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT - col0 + + cor0.col2 * ( col0 ) FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT + 66 * cor0.col1 * + col0 FROM tab0 AS cor0
----
136224
224070
534534

query I rowsort
SELECT ALL + 76 * col0 FROM tab2 AS cor0
----
532
5928
6004

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2883
SELECT DISTINCT + - cor0.col2 + CAST( NULL AS SIGNED ) / col1 col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT + - cor0.col2 + CAST ( NULL AS INTEGER ) / col1 col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col0 * 28 FROM tab0 AS cor0
----
-2492
-672
-980

onlyif mysql # use DIV operator for integer division
query I rowsort label-2885
SELECT ALL cor0.col2 DIV - col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL cor0.col2 / - col1 FROM tab1 AS cor0
----
-2
-5
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2886
SELECT col0 + + 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-2886
SELECT col0 + + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2888
SELECT - - cor0.col1 * CAST( + col1 AS SIGNED ) + col1 AS col1 FROM tab1 cor0
----
110
182
702

skipif mysql # not compatible
query I rowsort label-2888
SELECT - - cor0.col1 * CAST ( + col1 AS INTEGER ) + col1 AS col1 FROM tab1 cor0
----
110
182
702

query I rowsort
SELECT DISTINCT + col0 + 75 * - col1 AS col2 FROM tab0 AS cor0
----
-6426
-6736
-7240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2890
SELECT ALL - col0 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL - col0 + - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - col2 AS col1 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT 85 * col1 * 25 AS col2 FROM tab1
----
21250
27625
55250

query I rowsort
SELECT 50 - + col1 AS col1 FROM tab2
----
-9
19
33

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab2 cor0, tab1 AS cor1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea

query I rowsort
SELECT - - 30 * 0 * col0 + - 81 AS col2 FROM tab1 AS cor0
----
-81
-81
-81

query I rowsort
SELECT 86 + + col2 + col1 AS col0 FROM tab2 cor0
----
141
144
171

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2897
SELECT ALL + CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL + CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2898
SELECT DISTINCT 31 DIV col1 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT 31 / col1 AS col0 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT col2 + + 80 FROM tab1 AS cor0
----
134
137
176

onlyif mysql # use DIV operator for integer division
query I rowsort label-2901
SELECT + col0 DIV - ( col1 ) FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-2901
SELECT + col0 / - ( col1 ) FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT col2 + - ( - col1 ) * + col0 AS col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - 99 + 54 AS col1 FROM tab2 AS cor0
----
-45
-45
-45

query I rowsort
SELECT - cor0.col1 * col1 + + col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT - tab2.col0 * + 57 AS col1 FROM tab2
----
-399
-4446
-4503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * tab2.col0 col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT - col1 * ( - col1 ) AS col0 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-2908
SELECT DISTINCT + col0 DIV 86 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT + col0 / 86 AS col0 FROM tab1
----
0

query I rowsort
SELECT + tab0.col1 * 72 FROM tab0
----
6192
6552
6984

query I rowsort
SELECT - 30 FROM tab2, tab1 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT DISTINCT tab1.col2 + + col0 * - col2 + + col1 FROM tab1
----
-3581
-7571
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2912
SELECT CAST( NULL AS SIGNED ) * + col1 * col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2912
SELECT CAST ( NULL AS INTEGER ) * + col1 * col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 96 * + col1 FROM tab1
----
-1248
-2496
-960

query I rowsort
SELECT ( - col1 ) + + col2 * - col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT col2 * cor0.col0 + + col1 + + 83 AS col2 FROM tab1 AS cor0
----
271
3741
7776

query I rowsort
SELECT col0 * + col0 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
238
8112
9243

onlyif mysql # use DIV operator for integer division
query I rowsort label-2917
SELECT + cor0.col1 - - 11 DIV col2 AS col1 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2917
SELECT + cor0.col1 - - 11 / col2 AS col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL + + col2 * - col1 * col1 + col0 + cor0.col0 * + col2 * + col0 FROM tab0 AS cor0
----
-225036
-29431
-8149

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2919
SELECT DISTINCT - + col0 - CAST( - col1 AS SIGNED ) * col1 FROM tab0 cor0
----
7372
8192
9374

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT - + col0 - CAST ( - col1 AS INTEGER ) * col1 FROM tab0 cor0
----
7372
8192
9374

query I rowsort
SELECT - cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col1 + col2 * - 8 FROM tab1 AS cor0
----
-406
-446
-755

query I rowsort
SELECT col2 - - cor0.col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT DISTINCT - col0 * col0 * + col0 AS col0 FROM tab0
----
-13824
-42875
-704969

query I rowsort
SELECT 49 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT - col2 + col0 - 73 * col1 FROM tab0 AS cor0
----
-6287
-6636
-7047

query I rowsort
SELECT DISTINCT - + cor0.col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + col2 * + col2 + + col1 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2928
SELECT ALL cor0.col0 + CAST( + 74 AS SIGNED ) * col1 + - col0 col0 FROM tab1 AS cor0
----
1924
740
962

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL cor0.col0 + CAST ( + 74 AS INTEGER ) * col1 + - col0 col0 FROM tab1 AS cor0
----
1924
740
962

query I rowsort
SELECT ALL + 97 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL col2 - - col1 * - col0 FROM tab0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 * 40 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 0a4c2e9fcd751bfcf9e2d068ead79f31

query I rowsort
SELECT ALL col0 * col0 + col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT + + 77 * + col0 + - col1 AS col2 FROM tab1 AS cor0
----
205
4918
6147

query I rowsort
SELECT + - col2 + col1 AS col2 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT - col2 * + tab0.col2 AS col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT - col1 + ( + tab0.col2 * col1 ) + + ( col2 ) FROM tab0
----
1
2785
7453

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2937
SELECT CAST( NULL AS DECIMAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2937
SELECT CAST ( NULL AS REAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col1 * 17 + + ( col1 + + col1 ) AS col1 FROM tab1
----
190
247
494

query I rowsort
SELECT DISTINCT - 9 + + col1 FROM tab0 AS cor0
----
77
82
88

query I rowsort
SELECT - 26 + - col0 AS col2 FROM tab0 AS cor0
----
-115
-50
-61

query I rowsort
SELECT ALL - 24 AS col1 FROM tab1 AS cor0
----
-24
-24
-24

query I rowsort
SELECT - 61 + col0 FROM tab0
----
-26
-37
28

query I rowsort
SELECT DISTINCT - col2 + - col0 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - 44 * + cor0.col2 * col2 + + col0 FROM tab0 AS cor0
----
-295767
-47892
-9

query I rowsort
SELECT DISTINCT - 57 + col1 FROM tab1 cor0
----
-31
-44
-47

query I rowsort
SELECT + 61 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT ALL + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2948
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2948
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2949
SELECT DISTINCT - col1 DIV 38 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT - col1 / 38 AS col0 FROM tab1
----
0

query I rowsort
SELECT 46 FROM tab0
----
46
46
46

query I rowsort
SELECT ALL + 32 FROM tab0
----
32
32
32

query I rowsort
SELECT ALL 6 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # use DIV operator for integer division
query I rowsort label-2953
SELECT col1 * + col0 * - col0 + col2 DIV tab0.col1 AS col2 FROM tab0
----
-118825
-49536
-720811

skipif mysql # not compatible
query I rowsort label-2953
SELECT col1 * + col0 * - col0 + col2 / tab0.col1 AS col2 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT 79 * col1 + col0 FROM tab0
----
6818
7278
7698

onlyif mysql # use DIV operator for integer division
query I rowsort label-2955
SELECT DISTINCT col1 DIV - col2 col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT col1 / - col2 col1 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT ALL + 30 AS col0 FROM tab0 AS cor0
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * col1 * + cor0.col2 col1 FROM tab0 cor0
----
-244068
-679042
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + col0 col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT cor0.col0 * col0 + + col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT - ( col2 + + col0 ) FROM tab2
----
-104
-117
-34

query I rowsort
SELECT - + 22 + + col0 * + col0 * col2 AS col1 FROM tab2 AS cor0
----
1301
158162
237136

query I rowsort
SELECT DISTINCT - - 58 * - col0 FROM tab1 cor0
----
-174
-3712
-4640

query I rowsort
SELECT ALL - + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col2 * col2 AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT - 41 FROM tab1
----
-41
-41
-41

query I rowsort
SELECT - tab1.col0 * tab1.col0 FROM tab1, tab2 cor0
----
9 values hashing to b1a10d0ce1bd78a97a3f25900325a81f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2968
SELECT ALL - tab0.col1 DIV col2 AS col0 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL - tab0.col1 / col2 AS col0 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT ALL - 1 * - col1 AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT - - cor0.col0 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-2971
SELECT + + col1 DIV + col0 AS col2 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2971
SELECT + + col1 / + col0 AS col2 FROM tab0 cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2972
SELECT col2 DIV - 82 AS col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2972
SELECT col2 / - 82 AS col0 FROM tab0 cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2973
SELECT + col2 * - col2 DIV - col2 AS col1 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2973
SELECT + col2 * - col2 / - col2 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT col0 + ( col0 ) FROM tab2 AS cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2975
SELECT ALL + + 37 * ( - cor0.col1 ) DIV col1 + col1 * col2 FROM tab1 AS cor0
----
1211
1367
533

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL + + 37 * ( - cor0.col1 ) / col1 + col1 * col2 FROM tab1 AS cor0
----
1211
1367
533

query I rowsort
SELECT DISTINCT - - 0 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL col2 * col2 + + col2 * - col1 FROM tab1 AS cor0
----
1512
2679
7968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2978
SELECT + CAST( - col0 AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-2978
SELECT + CAST ( - col0 AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-2979
SELECT ALL ( + col1 ) * cor0.col1 - col2 DIV col2 AS col0 FROM tab0 AS cor0
----
7395
8280
9408

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL ( + col1 ) * cor0.col1 - col2 / col2 AS col0 FROM tab0 AS cor0
----
7395
8280
9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2980
SELECT DISTINCT + CAST( + col0 AS SIGNED ) * col0 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + col2 * - ( + col0 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + - 10 * col0 AS col0 FROM tab2 AS cor0
----
-70
-780
-790

query I rowsort
SELECT ALL - - col0 + - cor0.col2 AS col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT + + col0 * - 75 AS col1 FROM tab1 AS cor0
----
-225
-4800
-6000

query I rowsort
SELECT - + col0 + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL - cor0.col1 * 32 FROM tab2 cor0
----
-1888
-544
-992

onlyif mysql # use DIV operator for integer division
query I rowsort label-2987
SELECT - - 46 DIV cor0.col2 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2987
SELECT - - 46 / cor0.col2 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + 9 * - col2 + col2 AS col0 FROM tab2 AS cor0
----
-208
-216
-304

query I rowsort
SELECT ALL - + 73 * cor0.col0 FROM tab1 AS cor0
----
-219
-4672
-5840

query I rowsort
SELECT ALL - - 13 * - 75 + col0 + col0 AS col1 FROM tab2 AS cor0
----
-817
-819
-961

query I rowsort
SELECT col1 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT + 21 * - cor0.col1 FROM tab2 AS cor0
----
-1239
-357
-651

onlyif mysql # use DIV operator for integer division
query I rowsort label-2993
SELECT DISTINCT + 24 DIV cor0.col1 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT + 24 / cor0.col1 FROM tab1 AS cor0
----
0
1
2

query I rowsort
SELECT 85 AS col2 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT ALL + ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2996
SELECT + - col1 + col2 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2996
SELECT + - col1 + col2 / cor0.col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col2 * - col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - cor0.col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + ( + col2 ) + col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + - 15 * + col0 AS col0 FROM tab1 AS cor0
----
-1200
-45
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 6 col1 FROM tab0
----
198
492
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 42 * - 95 col2 FROM tab1 AS cor0
----
3990
3990
3990

query I rowsort
SELECT ALL + col2 * 99 * - col2 FROM tab1 AS cor0
----
-288684
-321651
-912384

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3004
SELECT + CAST( ( + col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3004
SELECT + CAST ( ( + col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + ( - 58 ) AS col1 FROM tab1 AS cor0
----
-58
-58
-58

query I rowsort
SELECT + 25 FROM tab2
----
25
25
25

query I rowsort
SELECT DISTINCT 35 AS col0 FROM tab2, tab1 AS cor0
----
35

query I rowsort
SELECT ALL + 13 FROM tab1
----
13
13
13

query I rowsort
SELECT ALL - 39 * - col0 * - 97 FROM tab2
----
-26481
-295074
-298857

onlyif mysql # use DIV operator for integer division
query I rowsort label-3010
SELECT col1 DIV + col0 + - col2 * - col2 FROM tab0 AS cor0
----
1092
3
6725

skipif mysql # not compatible
query I rowsort label-3010
SELECT col1 / + col0 + - col2 * - col2 FROM tab0 AS cor0
----
1092
3
6725

skipif mysql # not compatible
query I rowsort
SELECT ALL tab0.col0 * + col1 + col0 * - col0 * CAST ( col0 AS REAL ) FROM tab0
----
-11760
-39480
-696870

query I rowsort
SELECT - col1 - + 97 FROM tab1
----
-107
-110
-123

query I rowsort
SELECT ALL + col2 * col0 + - col1 AS col2 FROM tab1
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-3014
SELECT ALL tab1.col2 DIV + ( 13 + - tab1.col2 ) AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL tab1.col2 / + ( 13 + - tab1.col2 ) AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT 12 FROM tab0, tab1 cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT col2 + col0 * 1 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT col1 * - 35 * - col2 + - col2 + - col0 AS col0 FROM tab0
----
260999
3359
99273

query I rowsort
SELECT - col2 * - tab2.col1 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT 19 * - col2 AS col2 FROM tab2 AS cor0
----
-494
-513
-722

query I rowsort
SELECT col1 * - col1 * - col0 AS col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT + cor0.col0 + + cor0.col0 * col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL - cor1.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3024
SELECT ALL + cor0.col2 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL + cor0.col2 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( 6 ) * col0 AS col1 FROM tab2 cor0
----
-42
-468
-474

query I rowsort
SELECT - 32 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7106326ae056e78044adc0aef747ef08

query I rowsort
SELECT + ( col1 ) * col1 + + col1 AS col1 FROM tab1
----
110
182
702

query I rowsort
SELECT ALL col0 + + col1 AS col2 FROM tab2 cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 + + cor0.col1 col0 FROM tab0 AS cor0
----
101
90
95

query I rowsort
SELECT DISTINCT - - 51 FROM tab1 AS cor0
----
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3031
SELECT CAST( - 13 AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to d1ee13c6e23ea99b2cf17e8ca7cf45ee

skipif mysql # not compatible
query I rowsort label-3031
SELECT CAST ( - 13 AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to d1ee13c6e23ea99b2cf17e8ca7cf45ee

query I rowsort
SELECT col2 * - col0 * - col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT ALL 42 - col1 FROM tab2
----
-17
11
25

query I rowsort
SELECT DISTINCT + 22 - - col0 AS col1 FROM tab2
----
100
101
29

query I rowsort
SELECT - col2 * + col0 * - col1 + col0 - - col1 AS col1 FROM tab2
----
119789
51130
5897

query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - col1 - col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT + - 67 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT - - col2 - + cor0.col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - col1 + - col0 * + col2 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-3041
SELECT ALL + col0 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL + col0 / col2 AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT - col0 + ( ( col2 ) ) + ( + cor0.col1 ) * col2 FROM tab2 AS cor0
----
1482
605
857

query I rowsort
SELECT DISTINCT - col2 + + col2 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - cor0.col0 + col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - col1 * - col0 + + 21 FROM tab1 cor0
----
1061
661
99

query I rowsort
SELECT DISTINCT + + col0 * - col2 + + 62 AS col1 FROM tab0 AS cor0
----
-7236
-730
27

query I rowsort
SELECT + - col2 + ( + col2 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3048
SELECT + + cor0.col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT + + cor0.col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3049
SELECT ALL - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3050
SELECT ALL + - col2 DIV + col1 + + 59 FROM tab2 AS cor0
----
57
59
59

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL + - col2 / + col1 + + 59 FROM tab2 AS cor0
----
57
59
59

query I rowsort
SELECT ALL + + col1 - col1 * col2 FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT - col2 + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + 67 * + col0 - + tab1.col2 FROM tab1
----
147
4231
5264

query I rowsort
SELECT DISTINCT ( - col2 * col2 ) FROM tab2
----
-1444
-676
-729

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab2 AS cor0, tab0 cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d

query I rowsort
SELECT DISTINCT + 96 + - col2 - + ( cor0.col0 ) * col2 AS col0 FROM tab0 AS cor0
----
-7284
-729
60

query I rowsort
SELECT 25 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT ALL 57 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1305
1461
627

query I rowsort
SELECT DISTINCT - col2 + - cor0.col2 * col1 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT + 79 FROM tab2 AS cor0
----
79

query I rowsort
SELECT ALL - col0 * - col1 + + col0 FROM tab2 cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3062
SELECT ALL - + col1 + col0 DIV 94 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL - + col1 + col0 / 94 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - ( col1 ) + - cor0.col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL - + col0 * + 58 AS col1 FROM tab2 cor0
----
-406
-4524
-4582

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3065
SELECT ALL - cor0.col2 / CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL - cor0.col2 / CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + ( - col2 ) * col1 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + col0 * - col2 + col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT - col0 - col1 * - col1 FROM tab2 cor0
----
210
3403
954

query I rowsort
SELECT cor0.col0 + cor0.col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + cor0.col2 - - 45 * - col0 AS col1 FROM tab1 AS cor0
----
-2823
-3504
-81

query I rowsort
SELECT DISTINCT col2 * ( + col0 ) * - col2 + - 47 * col1 * + col1 AS col0 FROM tab2 AS cor0
----
-127659
-216335
-50270

query I rowsort
SELECT DISTINCT - col2 * + ( + cor0.col1 ) + col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL + - col0 * + col0 - + 30 FROM tab0 AS cor0
----
-1255
-606
-7951

query I rowsort
SELECT DISTINCT - col2 * - col2 + + col1 FROM tab1 cor0
----
2942
3259
9229

query I rowsort
SELECT col0 + col0 AS col1 FROM tab0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3076
SELECT - col1 DIV + col2 + - 21 AS col2 FROM tab0
----
-118
-22
-23

skipif mysql # not compatible
query I rowsort label-3076
SELECT - col1 / + col2 + - 21 AS col2 FROM tab0
----
-118
-22
-23

query I rowsort
SELECT DISTINCT + 51 AS col2 FROM tab1
----
51

query I rowsort
SELECT - col1 * + col1 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + tab2.col2 * + col1 + col0 FROM tab2
----
1612
725
844

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 ) < ( NULL )
----

query I rowsort
SELECT col0 * + col1 + col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL col0 * col0 + col1 AS col2 FROM tab0
----
1322
662
8012

query I rowsort
SELECT ALL - col0 + tab0.col2 AS col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + col0 + + col0 AS col2 FROM tab1
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 col1 FROM tab1
----
121
176
57

query III rowsort
SELECT * FROM tab0 WHERE col2 * + col1 BETWEEN col0 + + col2 AND NULL
----

query I rowsort
SELECT ALL col2 * col0 * col0 FROM tab1
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-3088
SELECT DISTINCT + col1 DIV col1 + + tab0.col2 - + tab0.col1 DIV + col2 FROM tab0
----
-95
32
82

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT + col1 / col1 + + tab0.col2 - + tab0.col1 / + col2 FROM tab0
----
-95
32
82

query I rowsort
SELECT + col0 + col0 * col1 + + col2 FROM tab0
----
2121
3431
8270

query I rowsort
SELECT ALL - tab2.col0 + + col2 + tab2.col0 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL + col0 * - col0 AS col2 FROM tab0 WHERE col2 = ( col1 * + col2 * col1 )
----

query I rowsort
SELECT ALL col0 * - col1 + + col1 AS col2 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT + tab0.col2 * - col1 AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + col0 + col1 * + col2 + + col1 FROM tab1 WHERE - col2 > col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - col1 + + col0 * - col0 * + tab2.col0 )
----

query I rowsort
SELECT - col0 + - col0 * - ( 95 * + col0 ) AS col1 FROM tab2 AS cor0
----
4648
577902
592816

query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT DISTINCT tab1.col2 + + tab1.col0 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT - tab0.col0 + + col2 - col2 AS col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT tab0.col0 * col2 + col0 FROM tab0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 col2 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL col2 / col2 + col0 FROM tab1 WHERE NOT + col0 = ( NULL )
----

query I rowsort
SELECT 19 * col0 FROM tab1 cor0
----
1216
1520
57

query I rowsort
SELECT - + col0 * col2 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + 18 * 29 + col0 AS col0 FROM tab2
----
529
600
601

onlyif mysql # use DIV operator for integer division
query I rowsort label-3107
SELECT - col0 DIV + cor0.col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-3107
SELECT - col0 / + cor0.col1 FROM tab1 AS cor0
----
-6
-6
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3108
SELECT + - col2 + col1 + + CAST( NULL AS DECIMAL ) * + col0 * cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3108
SELECT + - col2 + col1 + + CAST ( NULL AS REAL ) * + col0 * cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + col1 * col1 FROM tab0
----
7420
8370
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * col2 col0 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL + col0 * cor0.col0 * col0 FROM tab1 AS cor0
----
262144
27
512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-3112
SELECT DISTINCT + 53 DIV - col2 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT + 53 / - col2 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col2 + col1 * + col0 * col2 FROM tab2 AS cor0
----
119626
50996
5832

query I rowsort
SELECT DISTINCT 42 AS col2 FROM tab0
----
42

query I rowsort
SELECT ALL - 50 * + col1 FROM tab0 AS cor0
----
-4300
-4550
-4850

query I rowsort
SELECT DISTINCT 3 * + col2 AS col0 FROM tab0 cor0
----
246
3
99

query I rowsort
SELECT ALL + col0 * - 71 + - 83 * - col0 AS col0 FROM tab2
----
84
936
948

query I rowsort
SELECT DISTINCT - - col2 * - cor0.col0 + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT ALL + + cor0.col2 * + ( 22 ) FROM tab2 AS cor0
----
572
594
836

query I rowsort
SELECT DISTINCT + col2 * col1 + - ( col0 ) FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT col2 - ( 33 + + cor0.col0 ) * - 30 FROM tab0 AS cor0
----
1743
2041
3742

query I rowsort
SELECT DISTINCT col2 + - ( + col1 ) AS col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL + - 59 FROM tab2 AS cor0
----
-59
-59
-59

query I rowsort
SELECT ( col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - ( 47 ) AS col0 FROM tab0 AS cor0
----
-47
-47
-47

query I rowsort
SELECT ALL 69 FROM tab1
----
69
69
69

query I rowsort
SELECT - - col2 * col2 + col1 + - col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - + 76 * + 42 AS col2 FROM tab2 AS cor0
----
-3192
-3192
-3192

query I rowsort
SELECT - + col1 + + cor0.col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - + col1 + cor0.col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - col1 + col2 + tab0.col1 FROM tab0
----
1
33
82

query I rowsort
SELECT + col2 + col1 * + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL - - 28 + + col0 AS col2 FROM tab0 AS cor0
----
117
52
63

query I rowsort
SELECT - + col2 + col2 * col1 AS col2 FROM tab0 cor0
----
2805
7380
96

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 13 * - col1 + - col1 AS col1 FROM tab2 AS cor0
----
-238
-434
-826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + cor0.col2 * col2 col0 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT ALL - col0 * col0 * col1 + col2 FROM tab2 AS cor0
----
-106059
-1492
-358930

query I rowsort
SELECT ALL - col0 + col0 + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - + col0 * col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col0 * 70 * col1 + col1 - col0 FROM tab1 AS cor0
----
-44854
-5437
-72867

query I rowsort
SELECT - + col1 + - col0 * - col2 AS col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT + 9 * col2 FROM tab1
----
486
513
864

query I rowsort
SELECT DISTINCT col1 * + 92 FROM tab2
----
1564
2852
5428

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 AS REAL ) FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - ( tab0.col1 ) * + col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL 85 * tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 0da078821e50a7125af78a6823b284c4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3148
SELECT ALL + 85 * + col1 - col0 DIV + col1 FROM tab0
----
7310
7735
8245

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL + 85 * + col1 - col0 / + col1 FROM tab0
----
7310
7735
8245

query I rowsort
SELECT DISTINCT + col1 * 33 * col0 FROM tab0
----
112035
267267
68112

query I rowsort
SELECT ALL cor0.col2 FROM tab1 AS cor0 WHERE - col1 = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3151
SELECT DISTINCT col2 DIV col1 AS col1 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT col2 / col1 AS col1 FROM tab2 AS cor0
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 col2 FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3153
SELECT ALL col2 DIV - col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL col2 / - col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + tab0.col1 + - col0 FROM tab0
----
2
62
62

query I rowsort
SELECT DISTINCT - tab2.col1 - + col1 AS col1 FROM tab2
----
-118
-34
-62

query III rowsort
SELECT * FROM tab0 WHERE col2 + + col1 IN ( col1 * - col0 * - col0 )
----

query I rowsort
SELECT ALL col1 - col1 * + col1 AS col1 FROM tab2
----
-272
-3422
-930

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col2 * + col2 col2 FROM tab1
----
-2916
-3249
-9216

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 col2 FROM tab0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - tab2.col0 * tab2.col1 col0 FROM tab2
----
22831
271518
6727

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) < ( NULL )
----

query I rowsort
SELECT + col0 * col0 + + col0 * col2 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - col2 - col1 )
----

query I rowsort
SELECT ALL col2 * col0 * + col2 + col2 - col0 AS col0 FROM tab0
----
1
26145
598429

query I rowsort
SELECT DISTINCT - col1 * + col0 AS col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3167
SELECT DISTINCT - col1 DIV - col0 + tab2.col0 + col0 * + col0 FROM tab2
----
60
6162
6320

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT - col1 / - col0 + tab2.col0 + col0 * + col0 FROM tab2
----
60
6162
6320

query I rowsort
SELECT + col0 * col0 + col0 AS col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT - cor0.col0 - + cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 col2 FROM tab2
----
-1534
-646
-837

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col0 / col2 ) IN ( + cor0.col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3172
SELECT DISTINCT tab1.col2 DIV col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT tab1.col2 / col2 FROM tab1
----
1

query I rowsort
SELECT - col2 + tab1.col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT col1 - - tab0.col2 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL - tab1.col2 * cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d85bc2e8ce42c10576fce198c34232af

onlyif mysql # use DIV operator for integer division
query I rowsort label-3176
SELECT - col1 DIV + col1 + - col0 * col0 FROM tab0 AS cor0
----
-1226
-577
-7922

skipif mysql # not compatible
query I rowsort label-3176
SELECT - col1 / + col1 + - col0 * col0 FROM tab0 AS cor0
----
-1226
-577
-7922

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 + col1 * + col2 + col2 col2 FROM tab2 AS cor0
----
1081
2027
6162

query I rowsort
SELECT col1 + + col0 * + tab0.col0 + - col2 * col0 FROM tab0
----
-130
1287
714

query I rowsort
SELECT DISTINCT + col2 - - col2 AS col2 FROM tab0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col1 col0 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col2 + + col1 col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + + col0 + col2 - - col2 FROM tab2 AS cor0
----
130
155
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col2 + + cor0.col0 col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3185
SELECT + col2 + - col1 DIV col1 AS col2 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-3185
SELECT + col2 + - col1 / col1 AS col2 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT DISTINCT + - cor0.col2 * + col2 * col1 AS col2 FROM tab2 cor0
----
-22599
-24548
-39884

query I rowsort
SELECT DISTINCT - col1 * col1 + cor0.col0 * - col0 + col0 * - col2 FROM tab0 AS cor0
----
-10669
-23500
-8764

query I rowsort
SELECT ALL 83 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to a9068b700464993db9fae6f630605fde

query I rowsort
SELECT ALL 51 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3
----
243 values hashing to a82d7aa6706433125f80558d877b8f07

query I rowsort
SELECT ALL 12 * 2 FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT ALL 83 * - col1 AS col1 FROM tab2
----
-1411
-2573
-4897

query I rowsort
SELECT ALL - ( + 29 ) FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e

query I rowsort
SELECT 91 * 27 AS col2 FROM tab0 cor0
----
2457
2457
2457

query I rowsort
SELECT DISTINCT - 20 AS col2 FROM tab1, tab0 AS cor0
----
-20

query I rowsort
SELECT - 98 * + col0 AS col0 FROM tab1 AS cor0
----
-294
-6272
-7840

query I rowsort
SELECT ALL + cor0.col0 * - 74 * + col0 FROM tab0 AS cor0
----
-42624
-586154
-90650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 + - col0 col1 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT 4 AS col0 FROM tab2 AS cor0
----
4

query I rowsort
SELECT ALL 15 + - col0 AS col0 FROM tab1
----
-49
-65
12

query I rowsort
SELECT + tab2.col0 * + col0 * + col0 AS col1 FROM tab2
----
343
474552
493039

query I rowsort
SELECT + col2 + tab2.col1 * 74 FROM tab2
----
1296
2321
4392

query I rowsort
SELECT ALL 74 + col1 AS col2 FROM tab0
----
160
165
171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 col0 FROM tab1, tab0, tab2 cor0
----
50

query I rowsort
SELECT ALL cor0.col1 + - col2 * - 54 AS col2 FROM tab0 AS cor0
----
151
1868
4519

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 + col1 * - col0 col1 FROM tab0 AS cor0
----
-2029
-3360
-8064

query I rowsort
SELECT + 24 + cor0.col0 FROM tab2 AS cor0
----
102
103
31

query I rowsort
SELECT DISTINCT col2 + col2 + col0 AS col2 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT ALL + col2 + - col0 * col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL + 17 * - col1 + col2 + - ( cor0.col1 + col1 ) AS col0 FROM tab1 AS cor0
----
-133
-151
-440

query I rowsort
SELECT ALL col1 + + ( - col1 ) * col2 * + col0 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
-36413
-4132
-99731

query I rowsort
SELECT ALL + col2 + + ( 16 ) * + col1 AS col2 FROM tab2 AS cor0
----
310
523
970

query I rowsort
SELECT DISTINCT + col0 * 96 AS col1 FROM tab1 AS cor0
----
288
6144
7680

query I rowsort
SELECT col1 * col2 + 4 + col1 AS col2 FROM tab0 AS cor0
----
198
2928
7557

query I rowsort
SELECT DISTINCT - col0 * col0 * + col2 AS col2 FROM tab2 cor0
----
-1323
-158184
-237158

query I rowsort
SELECT ALL + + cor0.col1 * + 97 FROM tab0 AS cor0
----
8342
8827
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3217
SELECT ALL - - col0 DIV 24 FROM tab0 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL - - col0 / 24 FROM tab0 AS cor0
----
1
1
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3218
SELECT + col0 * CAST( - col2 * col0 AS SIGNED ) + + col1 + 16 AS col0 FROM tab1 AS cor0
----
-233446
-444
-614371

skipif mysql # not compatible
query I rowsort label-3218
SELECT + col0 * CAST ( - col2 * col0 AS INTEGER ) + + col1 + 16 AS col0 FROM tab1 AS cor0
----
-233446
-444
-614371

query I rowsort
SELECT DISTINCT + - col1 * 21 + - 39 + col1 AS col0 FROM tab0 AS cor0
----
-1759
-1859
-1979

query I rowsort
SELECT DISTINCT col0 + 97 AS col2 FROM tab1 AS cor0
----
100
161
177

query I rowsort
SELECT DISTINCT + 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 13 * col1 col2 FROM tab0
----
1118
1183
1261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col2 col0 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL - ( col2 ) + - 24 FROM tab0
----
-106
-25
-57

query I rowsort
SELECT ALL 56 + - col1 * - col0 * ( col0 ) AS col1 FROM tab1
----
290
41016
83256

query I rowsort
SELECT ALL + 39 + col1 * - 23 FROM tab2
----
-1318
-352
-674

query I rowsort
SELECT col0 * - col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT + + col1 + 4 + + 81 FROM tab0 AS cor0
----
171
176
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 * col1 col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT + col2 + col0 * col2 * col2 FROM tab0 cor0
----
26169
36
598518

query I rowsort
SELECT + col1 + ( - cor0.col0 ) * + col2 AS col1 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + col2 + + ( - 87 ) FROM tab2 AS cor0
----
-49
-60
-61

query I rowsort
SELECT + + col2 * - col0 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3234
SELECT + col2 - - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3234
SELECT + col2 - - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab0, tab2 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT tab0.col2 * - col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT - col0 * tab0.col1 * - tab0.col0 FROM tab0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-3238
SELECT - - col0 + 7 * + col2 DIV - col2 FROM tab0 AS cor0
----
17
28
82

skipif mysql # not compatible
query I rowsort label-3238
SELECT - - col0 + 7 * + col2 / - col2 FROM tab0 AS cor0
----
17
28
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3239
SELECT - CAST( NULL AS SIGNED ) + + col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT - CAST ( NULL AS INTEGER ) + + col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3240
SELECT col0 DIV + 72 + + col0 * - col1 + col0 FROM tab0 cor0
----
-2040
-3360
-8009

skipif mysql # not compatible
query I rowsort label-3240
SELECT col0 / + 72 + + col0 * - col1 + col0 FROM tab0 cor0
----
-2040
-3360
-8009

query I rowsort
SELECT + + col2 + - col1 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3242
SELECT col2 + CAST( 69 AS SIGNED ) AS col0 FROM tab0
----
102
151
70

skipif mysql # not compatible
query I rowsort label-3242
SELECT col2 + CAST ( 69 AS INTEGER ) AS col0 FROM tab0
----
102
151
70

query I rowsort
SELECT - col1 * - col2 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT + - 18 AS col0 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT + - cor0.col1 + - col2 AS col1 FROM tab1 cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 20 col2 FROM tab2 AS cor0
----
-20
-20
-20

query I rowsort
SELECT + - col1 * - col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + col2 + + col1 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT tab2.col0 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - - 91 * 34 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e48ec466767a988802400373a4708a3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 40 col0 FROM tab1 AS cor0
----
120
2560
3200

query I rowsort
SELECT ALL - col2 + col1 * + col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT + 28 AS col0 FROM tab0 AS cor0
----
28

query I rowsort
SELECT DISTINCT + ( col1 ) * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + + col1 - + cor0.col1 FROM tab1 AS cor0
----
0
0
0

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab0, tab2 AS cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

query I rowsort
SELECT DISTINCT + - col2 * col1 + 13 * - 95 FROM tab0 AS cor0
----
-1332
-4073
-8697

query I rowsort
SELECT ( - col2 ) * tab1.col2 * ( col2 ) AS col1 FROM tab1
----
-157464
-185193
-884736

query I rowsort
SELECT ALL - tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT 56 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT + col2 * col0 + col0 * + ( col0 ) FROM tab2 AS cor0
----
238
8112
9243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col1 * - col0 col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT col1 * ( - col2 ) - - col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3264
SELECT CAST( + 98 AS SIGNED ) + - col0 * ( + tab2.col0 ) FROM tab2
----
-5986
-6143
49

skipif mysql # not compatible
query I rowsort label-3264
SELECT CAST ( + 98 AS INTEGER ) + - col0 * ( + tab2.col0 ) FROM tab2
----
-5986
-6143
49

query I rowsort
SELECT ALL + col1 + 62 - + col1 AS col0 FROM tab0
----
62
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3266
SELECT + ( col2 ) DIV col1 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3266
SELECT + ( col2 ) / col1 FROM tab2
----
0
0
2

query I rowsort
SELECT + col0 * col2 * ( - col0 ) FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT + 81 AS col0 FROM tab1 AS cor0
----
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3269
SELECT ALL - col1 DIV col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL - col1 / col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT DISTINCT + col0 * col2 + cor0.col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - ( col0 ) + - ( cor0.col0 * col2 ) FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT ALL + 8 + - col1 * - cor0.col2 AS col0 FROM tab1 cor0
----
1256
1412
578

onlyif mysql # use DIV operator for integer division
query I rowsort label-3273
SELECT col0 DIV col0 + CAST( - 63 * - col2 AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
3429
3602
6062

skipif mysql # not compatible
query I rowsort label-3273
SELECT col0 / col0 + CAST ( - 63 * - col2 AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
3429
3602
6062

query I rowsort
SELECT + + col2 * cor0.col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + + 92 AS col0 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT + + 32 * col1 + 25 AS col1 FROM tab2 cor0
----
1017
1913
569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 col2 FROM tab1
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3278
SELECT - col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT - col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 87 * 27 * col1 AS col2 FROM tab0 AS cor0
----
-202014
-213759
-227853

query I rowsort
SELECT + col2 - + col1 * col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 + - col0 col1 FROM tab0 cor0
----
-16
-27
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 29 col1 FROM tab0 AS cor0
----
-29
-29
-29

query I rowsort
SELECT ALL + 61 * col2 FROM tab0 AS cor0
----
2013
5002
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-3284
SELECT - - col2 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3284
SELECT - - col2 / + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3285
SELECT col1 * - cor0.col2 + col0 DIV col0 FROM tab2 AS cor0
----
-1533
-645
-836

skipif mysql # not compatible
query I rowsort label-3285
SELECT col1 * - cor0.col2 + col0 / col0 FROM tab2 AS cor0
----
-1533
-645
-836

query I rowsort
SELECT ALL - 30 + 52 * + col2 * + col2 + - col2 FROM tab1 AS cor0
----
151548
168861
479106

onlyif mysql # use DIV operator for integer division
query I rowsort label-3287
SELECT DISTINCT 39 DIV - 87 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT 39 / - 87 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col1 AS REAL ) + col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - 77 * col2 FROM tab1 AS cor0
----
-4158
-4389
-7392

query I rowsort
SELECT ALL - - 60 AS col2 FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT - - col2 + 66 AS col1 FROM tab0 cor0
----
148
67
99

query I rowsort
SELECT DISTINCT - col0 * + col1 + col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - 20 + tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 9587973dd957c4efe7c538db83fbb878

query I rowsort
SELECT DISTINCT + 73 * + 98 AS col1 FROM tab2 AS cor0
----
7154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 8 ) col2 FROM tab2 AS cor0
----
8

query I rowsort
SELECT ALL - - col1 * - 89 + cor0.col0 FROM tab2 AS cor0
----
-1434
-2752
-5173

query I rowsort
SELECT + 62 * + 27 AS col2 FROM tab1 AS cor0
----
1674
1674
1674

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 - + col2 col0 FROM tab2 AS cor0
----
-72
-73
-84

query I rowsort
SELECT DISTINCT - 45 * + cor0.col2 AS col2 FROM tab2 cor0
----
-1170
-1215
-1710

query I rowsort
SELECT DISTINCT + + col0 - col2 * col2 FROM tab0 AS cor0
----
-1065
-6635
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3301
SELECT ALL - - col1 + 9 DIV + col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL - - col1 + 9 / + col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3302
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 28 - - 32 AS col1 FROM tab0 AS cor0
----
60

query I rowsort
SELECT ALL ( col1 ) * - col0 * 77 + col2 * - col1 FROM tab1 AS cor0
----
-49850
-7410
-81328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 - + col0 * + col1 * - 20 col1 FROM tab2
----
23858
4151
90012

query I rowsort
SELECT - ( + col2 ) - + col2 * col2 * col1 AS col1 FROM tab0 AS cor0
----
-611966
-93687
-98

query I rowsort
SELECT DISTINCT + cor0.col2 + col2 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-3308
SELECT DISTINCT + + col1 DIV - col1 - - cor0.col1 col2 FROM tab0 AS cor0
----
85
90
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT + + col1 / - col1 - - cor0.col1 col2 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT ALL + + 89 * cor0.col1 - ( + col1 ) FROM tab2 AS cor0
----
1496
2728
5192

query I rowsort
SELECT DISTINCT - col2 * + 62 FROM tab2 AS cor0
----
-1612
-1674
-2356

query I rowsort
SELECT DISTINCT - col1 * 67 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1060
-2070
-3875

query I rowsort
SELECT DISTINCT + col2 * - 90 FROM tab1 AS cor0
----
-4860
-5130
-8640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3313
SELECT - cor0.col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3313
SELECT - cor0.col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + - 44 * + col0 AS col1 FROM tab1 AS cor0
----
-2759
-3424
-78

query I rowsort
SELECT ALL - + col2 + + cor0.col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( 54 ) - + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ec0797faa2261b7d545dec5d1011a5e1

query I rowsort
SELECT + 58 + - 82 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT DISTINCT + ( 7 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
7

query I rowsort
SELECT ALL + tab1.col2 * col1 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + col0 - + ( col2 ) AS col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT - col0 * - 54 * col0 + + col2 AS col0 FROM tab1
----
221241
345696
540

query I rowsort
SELECT ALL + col2 * 43 FROM tab2
----
1118
1161
1634

query I rowsort
SELECT - col1 + ( col0 ) AS col2 FROM tab1
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - ( + 14 ) col1 FROM tab2 AS cor0
----
238
434
826

query I rowsort
SELECT - cor0.col2 * - 29 + - col1 AS col2 FROM tab2 AS cor0
----
1085
695
752

query I rowsort
SELECT DISTINCT 5 FROM tab1, tab2 AS cor0
----
5

query I rowsort
SELECT col1 * col0 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL + + 49 * - col2 FROM tab1 AS cor0
----
-2646
-2793
-4704

query I rowsort
SELECT - + col0 * col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT 89 * 88 FROM tab0
----
7832
7832
7832

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19

query I rowsort
SELECT DISTINCT - 85 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
-85

query I rowsort
SELECT - col0 * + col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3334
SELECT 99 + col1 DIV - col0 FROM tab1
----
91
99
99

skipif mysql # not compatible
query I rowsort label-3334
SELECT 99 + col1 / - col0 FROM tab1
----
91
99
99

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - 46 * + col2 AS col0 FROM tab2
----
-1196
-1242
-1748

query I rowsort
SELECT DISTINCT - 40 AS col1 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT col2 * col2 + ( + col0 + - col1 ) AS col1 FROM tab1
----
2893
3303
9283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - 16 * + col0 col2 FROM tab2
----
-1222
-1226
-85

query I rowsort
SELECT + col2 * 14 + col2 * col1 * col0 + col2 AS col2 FROM tab1
----
101280
37335
5022

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col2 FROM tab2, tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - ( 93 ) FROM tab1 AS cor0
----
-93
-93
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3343
SELECT col0 + col0 DIV col1 FROM tab2
----
7
79
83

skipif mysql # not compatible
query I rowsort label-3343
SELECT col0 + col0 / col1 FROM tab2
----
7
79
83

query I rowsort
SELECT DISTINCT + col1 * + 81 - + col1 * col1 FROM tab1
----
1430
710
884

query I rowsort
SELECT 93 FROM tab0, tab2 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT DISTINCT col1 + - 99 FROM tab2 AS cor0
----
-40
-68
-82

query I rowsort
SELECT - col2 * col0 + col1 AS col1 FROM tab0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3348
SELECT + tab0.col0 * 4 + + col0 DIV - col1 AS col0 FROM tab0
----
140
356
96

skipif mysql # not compatible
query I rowsort label-3348
SELECT + tab0.col0 * 4 + + col0 / - col1 AS col0 FROM tab0
----
140
356
96

query I rowsort
SELECT - 6 + + col0 * - col0 FROM tab1 AS cor0
----
-15
-4102
-6406

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3350
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( + col1 ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + + col2 * + 1 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col0 col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT ALL - + 42 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT + - col0 * 8 AS col1 FROM tab2 AS cor0
----
-56
-624
-632

query I rowsort
SELECT DISTINCT col2 + col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - - 68 * + col2 + - col2 AS col0 FROM tab1 AS cor0
----
3618
3819
6432

onlyif mysql # use DIV operator for integer division
query I rowsort label-3358
SELECT ALL col2 DIV col1 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL col2 / col1 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + - 36 FROM tab0 AS cor0
----
-3
-35
46

query I rowsort
SELECT + + 56 * + 72 FROM tab1 AS cor0
----
4032
4032
4032

onlyif mysql # use DIV operator for integer division
query I rowsort label-3361
SELECT DISTINCT col2 + cor0.col1 DIV col2 col0 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT col2 + cor0.col1 / col2 col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + 47 - + ( + col0 + - 83 ) * - col0 * - cor0.col1 AS col0 FROM tab0 cor0
----
-48547
121823
163007

onlyif mysql # use DIV operator for integer division
query I rowsort label-3363
SELECT + col1 DIV col1 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-3363
SELECT + col1 / col1 col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + col2 + col1 - col2 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 7 col2 FROM tab0
----
602
637
679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3366
SELECT DISTINCT CAST( col0 + col1 AS SIGNED ) * col0 AS col1 FROM tab0
----
16020
2640
4620

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT CAST ( col0 + col1 AS INTEGER ) * col0 AS col1 FROM tab0
----
16020
2640
4620

onlyif mysql # use DIV operator for integer division
query I rowsort label-3367
SELECT 16 DIV 61 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3367
SELECT 16 / 61 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT 5 * - 42 FROM tab0
----
-210
-210
-210

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab2, tab0 AS cor0
----
63

query I rowsort
SELECT DISTINCT tab1.col0 * - ( + col2 ) * + col0 + + 19 FROM tab1
----
-233453
-467
-614381

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT cor0.col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT cor0.col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - 26 AS col1 FROM tab2 AS cor0
----
-26
-26
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3376
SELECT - col0 DIV + col0 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3376
SELECT - col0 / + col0 AS col0 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 26 col1 FROM tab0 AS cor0
----
112
117
123

query I rowsort
SELECT ALL + col0 + - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * col1 + - 0 AS col2 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-3380
SELECT - col2 DIV - col2 - - 12 FROM tab1 AS cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-3380
SELECT - col2 / - col2 - - 12 FROM tab1 AS cor0
----
13
13
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-3381
SELECT col1 DIV + col2 col2 FROM tab0 cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3381
SELECT col1 / + col2 col2 FROM tab0 cor0
----
1
2
97

query I rowsort
SELECT + + col1 * col0 + - ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + cor0.col0 + col0 * + col1 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - - 49 + col0 AS col0 FROM tab0 cor0
----
138
73
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3385
SELECT ALL CAST( + col2 AS SIGNED ) DIV - col0 + ( - col0 ) * tab2.col0 FROM tab2
----
-52
-6084
-6241

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL CAST ( + col2 AS INTEGER ) / - col0 + ( - col0 ) * tab2.col0 FROM tab2
----
-52
-6084
-6241

query I rowsort
SELECT ALL - ( 16 ) + col2 * + tab0.col1 FROM tab0
----
2822
7446
81

query I rowsort
SELECT ( col1 ) * + col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT 37 AS col1 FROM tab2 AS cor0
----
37
37
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-3389
SELECT DISTINCT - col2 + - ( + col0 ) + col2 DIV - 29 FROM tab2 AS cor0
----
-104
-118
-34

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT - col2 + - ( + col0 ) + col2 / - 29 FROM tab2 AS cor0
----
-104
-118
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3390
SELECT DISTINCT + col0 DIV + 95 + 8 col2 FROM tab1 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT + col0 / + 95 + 8 col2 FROM tab1 AS cor0
----
8

query I rowsort
SELECT ALL - - col0 * 70 + + col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1068
2415
888

query I rowsort
SELECT ALL col0 * + col1 + + 70 - - cor0.col1 FROM tab2 AS cor0
----
1430
318
4731

query I rowsort
SELECT ALL + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col2 * col0 * col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - col0 * cor0.col0 * + 42 FROM tab0 AS cor0
----
-24192
-332682
-51450

query I rowsort
SELECT - - cor0.col2 * ( - ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT 49 FROM tab2, tab0 AS cor0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + ( 62 ) col1 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 2e0615eaae733fcbcc007c100de3db20

query I rowsort
SELECT 95 FROM tab0, tab1 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT + 57 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( 61 * - col1 ) col1 FROM tab1
----
-1583
-546
-713

onlyif mysql # use DIV operator for integer division
query I rowsort label-3403
SELECT DISTINCT + col2 + 35 DIV + col2 + col0 AS col1 FROM tab0 AS cor0
----
171
58
71

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT + col2 + 35 / + col2 + col0 AS col1 FROM tab0 AS cor0
----
171
58
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-3404
SELECT + cor0.col0 DIV ( 6 ) FROM tab1 AS cor0
----
0
10
13

skipif mysql # not compatible
query I rowsort label-3404
SELECT + cor0.col0 / ( 6 ) FROM tab1 AS cor0
----
0
10
13

query I rowsort
SELECT ALL + - col2 * ( - col2 ) * + cor0.col1 AS col0 FROM tab2 AS cor0
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-3406
SELECT + + col0 DIV 1 + col0 - col0 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3406
SELECT + + col0 / 1 + col0 - col0 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT cor0.col2 * - ( col2 * col0 ) + cor0.col0 - - col1 AS col1 FROM tab0 AS cor0
----
-26026
-598256
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3409
SELECT - col1 / - col0 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3409
SELECT - col1 / - col0 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - col1 * + 85 AS col1 FROM tab2
----
-130390
-54910
-71145

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3411
SELECT ALL col0 + - CAST( NULL AS SIGNED ) - - tab1.col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) - - tab1.col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 23 AS col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

query I rowsort
SELECT col2 + 17 * - 40 AS col1 FROM tab1 AS cor0
----
-584
-623
-626

query I rowsort
SELECT col2 * - 25 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
1239
3370
6049

onlyif mysql # use DIV operator for integer division
query I rowsort label-3415
SELECT + col1 DIV + ( cor0.col2 * col0 ) + + ( + col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3415
SELECT + col1 / + ( cor0.col2 * col0 ) + + ( + col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3416
SELECT - + cor0.col2 * col1 + - col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
-1247
-1386
-570

skipif mysql # not compatible
query I rowsort label-3416
SELECT - + cor0.col2 * col1 + - col2 / - col0 AS col0 FROM tab1 AS cor0
----
-1247
-1386
-570

query I rowsort
SELECT + col0 * 36 * cor0.col0 - - col1 * + col2 AS col1 FROM tab0 AS cor0
----
23574
292618
44197

query I rowsort
SELECT DISTINCT - 83 FROM tab2
----
-83

query I rowsort
SELECT + 64 * + col2 FROM tab2
----
1664
1728
2432

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3420
SELECT DISTINCT CAST( - 89 * + col2 AS SIGNED ) col1 FROM tab2
----
-2314
-2403
-3382

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT CAST ( - 89 * + col2 AS INTEGER ) col1 FROM tab2
----
-2314
-2403
-3382

query I rowsort
SELECT 63 + 36 AS col2 FROM tab0 cor0
----
99
99
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3422
SELECT - CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3422
SELECT - CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - tab1.col2 FROM tab1, tab0 AS cor0
----
-54
-57
-96

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a

query I rowsort
SELECT col2 * - tab1.col2 - col2 AS col0 FROM tab1
----
-2970
-3306
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-3426
SELECT + 76 DIV + col0 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-3426
SELECT + 76 / + col0 FROM tab0 AS cor0
----
0
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 + - col1 col1 FROM tab0 AS cor0
----
-5
1
6

query I rowsort
SELECT ALL - 6 + - cor0.col0 FROM tab1 cor0
----
-70
-86
-9

query I rowsort
SELECT ALL + ( - 26 ) AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754

query I rowsort
SELECT - 41 AS col0 FROM tab2 AS cor0
----
-41
-41
-41

query I rowsort
SELECT - - ( + 66 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT - ( col0 ) * col0 + - col1 * col0 FROM tab1 AS cor0
----
-4736
-7440
-87

query I rowsort
SELECT DISTINCT + + col2 * + cor0.col2 + + 47 FROM tab2 AS cor0
----
1491
723
776

query I rowsort
SELECT ALL - - ( cor0.col1 ) - col1 * + col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL - col0 - + cor0.col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT 61 AS col0 FROM tab2 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3438
SELECT ALL col2 + col1 DIV ( - 5 ) AS col2 FROM tab1 cor0
----
49
55
94

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL col2 + col1 / ( - 5 ) AS col2 FROM tab1 cor0
----
49
55
94

query I rowsort
SELECT ALL - + 67 + col1 AS col1 FROM tab0 AS cor0
----
19
24
30

query I rowsort
SELECT DISTINCT + + 28 + - col0 * - col2 FROM tab1 AS cor0
----
190
3676
7708

query I rowsort
SELECT 67 + col2 FROM tab0 cor0
----
100
149
68

query I rowsort
SELECT DISTINCT + 70 * + col2 AS col2 FROM tab2 AS cor0
----
1820
1890
2660

query I rowsort
SELECT DISTINCT + + col0 * + cor0.col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ALL cor0.col2 * col2 AS col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT - - col2 + + ( 2 ) * + col2 FROM tab0 cor0
----
246
3
99

query I rowsort
SELECT ALL - col2 * ( + col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT 36 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT DISTINCT + + col2 * 67 + col0 FROM tab0 AS cor0
----
102
2235
5583

query I rowsort
SELECT ALL col1 + + 10 AS col2 FROM tab2 AS cor0
----
27
41
69

query I rowsort
SELECT ALL - col2 + - ( col0 ) FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - - col2 * + ( - cor0.col2 ) + + col0 * + col2 FROM tab2 AS cor0
----
-540
1352
1558

query I rowsort
SELECT cor1.col0 * + 25 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 26c85ffb7fde8f0fd786e4f219069417

query I rowsort
SELECT + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - 52 * 5 - - cor0.col2 FROM tab1 AS cor0
----
-164
-203
-206

query I rowsort
SELECT DISTINCT + 23 AS col2 FROM tab1 AS cor0
----
23

query I rowsort
SELECT - - ( col2 ) * + col1 - col2 AS col0 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3458
SELECT - CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3458
SELECT - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + col2 + - ( col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - 28 FROM tab0 AS cor0
----
-28
-28
-28

query I rowsort
SELECT - + col2 * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + + ( col0 ) AS col1 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + ( + col2 ) * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3464
SELECT + CAST( NULL AS SIGNED ) * 73 + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT + CAST ( NULL AS INTEGER ) * 73 + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 96 * - col2 AS col0 FROM tab0 AS cor0
----
3168
7872
96

query I rowsort
SELECT ALL 68 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT ALL - ( - 94 ) FROM tab2
----
94
94
94

query I rowsort
SELECT ALL - 47 AS col0 FROM tab2
----
-47
-47
-47

query I rowsort
SELECT - col0 + col0 * col2 FROM tab0
----
0
7209
768

query I rowsort
SELECT DISTINCT - - col1 * col0 * 53 + col1 * col1 FROM tab2 AS cor0
----
12462
247387
71468

query I rowsort
SELECT cor0.col2 * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - + cor0.col1 * + col2 + 87 FROM tab1 cor0
----
-1161
-1317
-483

query I rowsort
SELECT 18 AS col1 FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT 10 * - col0 FROM tab1 AS cor0
----
-30
-640
-800

query I rowsort
SELECT - 95 + col2 FROM tab1 AS cor0
----
-38
-41
1

query I rowsort
SELECT + tab1.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL - 29 + - col2 AS col2 FROM tab0
----
-111
-30
-62

query I rowsort
SELECT ALL - 44 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79

query I rowsort
SELECT - 48 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT ALL 12 + + col0 AS col1 FROM tab1
----
15
76
92

query I rowsort
SELECT 1 * - 19 + col2 * col0 AS col0 FROM tab2
----
170
2009
2983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + ( - col1 * + ( col2 ) + - col1 ) col1 FROM tab2
----
-1515
-584
-861

query I rowsort
SELECT ALL + col2 - - col1 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT + tab2.col0 - + col2 AS col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT col2 + - col2 AS col0 FROM tab2
----
0

query I rowsort
SELECT + col1 + tab2.col2 * + col2 AS col2 FROM tab2
----
1461
735
760

query I rowsort
SELECT + tab0.col1 - + col2 AS col0 FROM tab0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 + + col1 col0 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT col0 + col2 + col0 FROM tab2
----
182
196
41

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + tab0.col0 - - col1 ) NOT BETWEEN col1 AND - col0 * + col0
----

query I rowsort
SELECT tab2.col0 * - col2 + tab2.col2 AS col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ALL - tab0.col2 + col2 * col0 + col0 FROM tab0
----
69
7305
783

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE ( + col2 - col2 ) NOT IN ( col2 )
----
-17
-31
-59

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT - col0 IN ( col0 / col0 + col1 )
----
-86
-91
-97

query I rowsort
SELECT ALL col1 * col1 + + col2 FROM tab2
----
327
3507
988

query I rowsort
SELECT col0 * tab1.col1 + - col1 AS col0 FROM tab1
----
1027
52
630

query I rowsort
SELECT 91 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT - col0 * col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 40e4acd618698dd2305f1f7b8b547f7a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col2 col0 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT tab0.col1 * - tab0.col2 AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col2 * col1 + + col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT ALL - col1 + col0 FROM tab0 WHERE NOT - col0 + + col1 NOT IN ( col0 / col2 )
----

query I rowsort
SELECT DISTINCT tab2.col0 * col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - col2 + col2 + 84 AS col1 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT col0 + + col2 FROM tab1 WHERE ( NULL ) NOT IN ( + col2 )
----

query I rowsort
SELECT DISTINCT col1 * col0 * - col1 AS col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT - col1 * col0 * + col0 FROM tab2
----
-106097
-1519
-358956

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( + col2 + - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col2 * col1 )
----

query I rowsort
SELECT col2 / - col0 + col1 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + cor0.col1 * col0 + col2 FROM tab1 AS cor0 WHERE - col0 < ( - col1 )
----
1136
697

query I rowsort
SELECT DISTINCT - col1 * col0 + - col0 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT + tab2.col0 * col2 + - col2 * - col0 AS col2 FROM tab2
----
378
4056
6004

query I rowsort
SELECT + cor0.col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL - col2 - + col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT col2 + - col1 * col2 AS col1 FROM tab0
----
-2805
-7380
-96

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 IN ( + col1 * col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col2 )
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE NULL >= - col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3521
SELECT col0 DIV col1 AS col2 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3521
SELECT col0 / col1 AS col2 FROM tab1
----
0
6
6

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + col2 + - tab0.col1 AS col2 FROM tab0
----
-96
1003
6633

onlyif mysql # use DIV operator for integer division
query I rowsort label-3524
SELECT + col0 - - col2 DIV col1 FROM tab2
----
7
78
81

skipif mysql # not compatible
query I rowsort label-3524
SELECT + col0 - - col2 / col1 FROM tab2
----
7
78
81

query I rowsort
SELECT DISTINCT + tab2.col0 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT + col1 + col1 AS col2 FROM tab0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col2 col1 FROM tab1
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-3528
SELECT ALL + col1 DIV - col0 + col0 AS col2 FROM tab1
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL + col1 / - col0 + col0 AS col2 FROM tab1
----
-5
64
80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT - col0 / col1 + col2 FROM tab1 WHERE NOT NULL > col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 IN ( tab0.col0 * tab0.col0 / - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3532
SELECT DISTINCT - col1 DIV col0 + + col0 col1 FROM tab1
----
-5
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT - col1 / col0 + + col0 col1 FROM tab1
----
-5
64
80

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 4037d65571c1bbf6e0e7d759f858120e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL 20 * col2 FROM tab2
----
520
540
760

query I rowsort
SELECT 75 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT 86 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL col1 * + tab2.col0 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - + ( - col2 ) + col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 * + col1 col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT + 62 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT ALL + 65 + tab2.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e4ea4378635a26f2e84e688553dc7174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col0 col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 + col0 * - col1 AS col2 FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT DISTINCT + col1 * col0 + + col1 * - col1 * - col1 FROM tab2 AS cor0
----
209981
30008
6256

query I rowsort
SELECT DISTINCT - 0 * + col0 FROM tab0
----
0

query I rowsort
SELECT cor0.col1 FROM tab1, tab2 cor0, tab0 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT col2 * - ( + cor0.col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + col1 * - cor0.col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + + col1 + ( 46 ) AS col1 FROM tab1 AS cor0
----
56
59
72

query I rowsort
SELECT col1 + 79 * + 6 + - col1 FROM tab0 AS cor0
----
474
474
474

onlyif mysql # use DIV operator for integer division
query I rowsort label-3552
SELECT - cor0.col1 + CAST( col0 AS SIGNED ) DIV + cor0.col0 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-3552
SELECT - cor0.col1 + CAST ( col0 AS INTEGER ) / + cor0.col0 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT + col2 + ( + col1 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab0, tab2 AS cor0
----
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-3555
SELECT + col1 + - col2 DIV - col0 col1 FROM tab0
----
87
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3555
SELECT + col1 + - col2 / - col0 col1 FROM tab0
----
87
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3556
SELECT + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3556
SELECT + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 8 + 17 FROM tab0 AS cor0
----
25
25
25

query I rowsort
SELECT DISTINCT col2 * - ( col1 ) + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-3559
SELECT DISTINCT + + 69 + - 49 DIV - col0 AS col2 FROM tab2 AS cor0
----
69
76

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT + + 69 + - 49 / - col0 AS col2 FROM tab2 AS cor0
----
69
76

query I rowsort
SELECT ALL 26 FROM tab1, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT ALL - - 32 + col2 * - col0 FROM tab0 AS cor0
----
-3
-7266
-760

query I rowsort
SELECT ALL ( + col0 ) + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - col0 + col2 * col0 * cor0.col1 FROM tab1 AS cor0
----
36416
4209
99760

query I rowsort
SELECT ALL + - col0 + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - - cor0.col0 * + cor0.col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + + 33 + col0 AS col0 FROM tab0 AS cor0
----
122
57
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-3567
SELECT DISTINCT col0 + + col1 DIV + col0 col1 FROM tab1 AS cor0
----
11
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT col0 + + col1 / + col0 col1 FROM tab1 AS cor0
----
11
64
80

query I rowsort
SELECT ALL + 18 + col0 + + col0 FROM tab1 AS cor0
----
146
178
24

query I rowsort
SELECT ALL + 40 * col1 + + col2 AS col1 FROM tab2 AS cor0
----
1267
2386
718

query I rowsort
SELECT - col2 + + 31 * - col0 AS col1 FROM tab0
----
-1086
-2841
-777

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3571
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 + - col2 ) col2 FROM tab0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3573
SELECT ALL 61 DIV - col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL 61 / - col1 AS col0 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3574
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + + col1 + + cor0.col1 * col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT ALL + - col1 * col0 * col2 AS col2 FROM tab2 cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - col1 + + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3578
SELECT ALL - + col0 DIV - 99 + col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL - + col0 / - 99 + col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3579
SELECT - col2 * CAST( - 87 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2871
7134
87

skipif mysql # not compatible
query I rowsort label-3579
SELECT - col2 * CAST ( - 87 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2871
7134
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3580
SELECT ALL - col2 DIV cor0.col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL - col2 / cor0.col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT - + cor0.col0 * + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - + cor0.col2 * ( 40 * col0 ) FROM tab0 AS cor0
----
-1400
-291920
-31680

query I rowsort
SELECT 74 AS col2 FROM tab0
----
74
74
74

query I rowsort
SELECT 97 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3585
SELECT col0 - 21 DIV + col0 AS col2 FROM tab1
----
-4
64
80

skipif mysql # not compatible
query I rowsort label-3585
SELECT col0 - 21 / + col0 AS col2 FROM tab1
----
-4
64
80

query I rowsort
SELECT ALL 70 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT - cor0.col1 * 53 + 55 AS col1 FROM tab2 cor0
----
-1588
-3072
-846

query I rowsort
SELECT col1 + - col2 + + col0 FROM tab2
----
11
111
58

query I rowsort
SELECT ALL col2 + col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL tab1.col1 + + tab1.col0 + - col0 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT - tab1.col0 + - col1 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT DISTINCT - - col0 * + col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col2 + + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - - cor0.col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + col1 * - col0 * col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL col2 * tab1.col0 * col0 + col0 FROM tab1
----
233536
489
614480

onlyif mysql # use DIV operator for integer division
query I rowsort label-3598
SELECT DISTINCT + col1 DIV - col0 + col0 DIV tab2.col0 AS col0 FROM tab2
----
-3
1

skipif mysql # not compatible
query I rowsort label-3598
SELECT DISTINCT + col1 / - col0 + col0 / tab2.col0 AS col0 FROM tab2
----
-3
1

query I rowsort
SELECT DISTINCT tab0.col1 + tab0.col2 FROM tab0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3600
SELECT DISTINCT col2 + tab0.col2 DIV col0 + - col0 FROM tab0
----
-34
-7
10

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT col2 + tab0.col2 / col0 + - col0 FROM tab0
----
-34
-7
10

query I rowsort
SELECT ALL + col2 * col1 + + col1 * col2 AS col0 FROM tab2
----
1292
1674
3068

query I rowsort
SELECT DISTINCT + col1 + col0 + col0 AS col0 FROM tab0
----
134
167
269

query I rowsort
SELECT ALL col2 * col2 + col1 * col1 FROM tab1
----
3349
3592
9385

query I rowsort
SELECT col2 + + col2 * - col2 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT ALL cor0.col1 - - col1 AS col2 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3606
SELECT + col2 * col0 + - cor0.col0 * - col0 + col1 DIV + col1 col1 FROM tab1 AS cor0
----
14081
172
7745

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3606
SELECT + col2 * col0 + - cor0.col0 * - col0 + col1 / + col1 col1 FROM tab1 AS cor0
----
14081
172
7745

query I rowsort
SELECT ALL + col0 * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col0 + + col1 + - col2 AS col0 FROM tab2 AS cor0
----
-100
-3
-45

query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 + col1 + - cor0.col1 * + col1 FROM tab0 AS cor0
----
-14706
-16471
-18721

query I rowsort
SELECT ALL + + cor0.col1 - + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 * col1 - - col0 * cor0.col2 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT - col2 + col1 * col0 AS col2 FROM tab1
----
24
583
944

query I rowsort
SELECT DISTINCT - col2 + + col2 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3614
SELECT DISTINCT - 56 * + col1 + + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-1456
-554
-722

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT - 56 * + col1 + + col0 / col1 AS col1 FROM tab1 AS cor0
----
-1456
-554
-722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col2 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT cor0.col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - 70 FROM tab0 cor0
----
-70
-70
-70

query I rowsort
SELECT ALL - col1 + - col0 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - - ( cor0.col0 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col0 * + col2 + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 * + col1 col0 FROM tab0
----
-7224
-7644
-8148

onlyif mysql # use DIV operator for integer division
query I rowsort label-3623
SELECT col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3623
SELECT col0 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT - ( - col2 ) * + col0 + - col0 - col1 AS col2 FROM tab0 AS cor0
----
-97
682
7118

onlyif mysql # use DIV operator for integer division
query I rowsort label-3625
SELECT col1 + col1 * col0 DIV col2 AS col0 FROM tab1 AS cor0
----
21
23
27

skipif mysql # not compatible
query I rowsort label-3625
SELECT col1 + col1 * col0 / col2 AS col0 FROM tab1 AS cor0
----
21
23
27

query I rowsort
SELECT ALL - - col2 * - col1 + - col2 * - col2 AS col2 FROM tab2 AS cor0
----
-108
-858
798

query I rowsort
SELECT + + col1 + col1 * - cor0.col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - col0 + - col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT - col1 + col0 * cor0.col1 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT - col0 * - col1 - col2 FROM tab1 cor0
----
24
583
944

query I rowsort
SELECT ALL - 85 AS col2 FROM tab2
----
-85
-85
-85

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 * + col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT - + 47 + - cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eec730a4795cc3cc06dadcace2b421ac

query I rowsort
SELECT DISTINCT + - col2 * + cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT ( col2 ) + - col1 * col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - 57 * - col0 + - col1 + col2 FROM tab1 AS cor0
----
199
3695
4643

query I rowsort
SELECT 69 AS col0 FROM tab0 cor0
----
69
69
69

query I rowsort
SELECT ALL - 77 * - cor0.col1 FROM tab1 AS cor0
----
1001
2002
770

query I rowsort
SELECT DISTINCT - + 51 AS col2 FROM tab0 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + 71 + - col0 FROM tab1 AS cor0
----
-9
68
7

query I rowsort
SELECT col2 - 62 AS col1 FROM tab0 AS cor0
----
-29
-61
20

query I rowsort
SELECT ALL + col0 * ( col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - col2 + ( + col2 ) + + cor0.col0 * 95 FROM tab1 AS cor0
----
285
6080
7600

query I rowsort
SELECT DISTINCT col2 + - ( + col2 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - col1 * cor0.col2 - col0 * cor0.col2 FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT - 98 * + 41 FROM tab0, tab2 AS cor0
----
9 values hashing to 1db032f7ea6248e063b149c56893f861

onlyif mysql # use DIV operator for integer division
query I rowsort label-3647
SELECT + + col1 DIV ( col0 ) col1 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3647
SELECT + + col1 / ( col0 ) col1 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT DISTINCT - - ( col1 ) - col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ALL - 81 * 6 AS col1 FROM tab2 AS cor0
----
-486
-486
-486

onlyif mysql # use DIV operator for integer division
query I rowsort label-3650
SELECT ALL - col0 DIV cor0.col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL - col0 / cor0.col1 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT DISTINCT - col1 * 93 FROM tab2 AS cor0
----
-1581
-2883
-5487

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * col0 col1 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + col2 * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + + 27 + col0 AS col2 FROM tab1 cor0
----
107
30
91

query I rowsort
SELECT DISTINCT + ( + 80 ) + + col1 AS col1 FROM tab1 AS cor0
----
106
90
93

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
-86
-91
-97

query I rowsort
SELECT + col2 * - col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 99 col1 FROM tab1 AS cor0
----
-5346
-5643
-9504

query I rowsort
SELECT ALL + col1 + - 90 * col2 FROM tab2 AS cor0
----
-2281
-2399
-3403

query I rowsort
SELECT DISTINCT - col1 * - col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + + 29 * col0 + col0 + + col0 AS col2 FROM tab0 AS cor0
----
1085
2759
744

skipif mysql # not compatible
query I rowsort
SELECT - ( ( col2 ) ) + - CAST ( ( col0 ) AS REAL ) FROM tab1
----
-121
-176
-57

query I rowsort
SELECT col1 + + col1 * col0 AS col0 FROM tab2
----
1360
248
4661

query I rowsort
SELECT + + 22 FROM tab0 AS cor0
----
22
22
22

query I rowsort
SELECT + + cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + + ( col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT 92 FROM tab2, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT 67 FROM tab2
----
67

query I rowsort
SELECT ALL + col2 * col1 * ( 57 ) FROM tab1
----
32490
71136
80028

query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab2
----
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-3671
SELECT DISTINCT - col2 * + col1 + + col1 DIV + col0 FROM tab1 cor0
----
-1248
-1396
-570

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT - col2 * + col1 + + col1 / + col0 FROM tab1 cor0
----
-1248
-1396
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + col1 col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT + col0 * - ( col1 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3674
SELECT ALL + col2 - CAST( - cor0.col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL + col2 - CAST ( - cor0.col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL col2 * - col0 AS col1 FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 * col1 col0 FROM tab1
----
1482
570
741

query I rowsort
SELECT ALL - 22 + col0 * ( - col0 ) AS col2 FROM tab0
----
-1247
-598
-7943

query I rowsort
SELECT - ( - cor0.col0 ) + - cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT + + ( + col1 ) + col2 - 7 FROM tab1 AS cor0
----
102
60
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-3680
SELECT col1 DIV - 54 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3680
SELECT col1 / - 54 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3681
SELECT ALL + col1 * CAST( - 24 AS SIGNED ) FROM tab1
----
-240
-312
-624

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL + col1 * CAST ( - 24 AS INTEGER ) FROM tab1
----
-240
-312
-624

query I rowsort
SELECT ALL col0 + 43 AS col1 FROM tab1
----
107
123
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-3683
SELECT - col1 DIV col0 + col0 + + col0 AS col1 FROM tab0
----
177
45
68

skipif mysql # not compatible
query I rowsort label-3683
SELECT - col1 / col0 + col0 + + col0 AS col1 FROM tab0
----
177
45
68

query I rowsort
SELECT col1 * - tab1.col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL col2 * + 6 * col2 FROM tab2
----
4056
4374
8664

query I rowsort
SELECT ALL + ( col2 ) * col0 AS col2 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3687
SELECT + col2 + + col2 DIV col1 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-3687
SELECT + col2 + + col2 / col1 FROM tab2 AS cor0
----
26
27
40

query I rowsort
SELECT - ( - 5 ) * + col0 + 83 * col0 FROM tab1 AS cor0
----
264
5632
7040

onlyif mysql # use DIV operator for integer division
query I rowsort label-3689
SELECT + 10 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3689
SELECT + 10 / + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT ALL + ( 53 ) + + cor0.col1 FROM tab2 AS cor0
----
112
70
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) - - col0 col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + ( col1 ) * + cor0.col0 + ( col2 ) FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL col0 + ( col2 ) * - col2 * + col2 AS col2 FROM tab1
----
-157461
-185129
-884656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 col2 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3696
SELECT col1 * 53 + col0 DIV col1 AS col1 FROM tab2
----
1643
3128
905

skipif mysql # not compatible
query I rowsort label-3696
SELECT col1 * 53 + col0 / col1 AS col1 FROM tab2
----
1643
3128
905

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col1 col2 FROM tab1
----
29
74
93

query I rowsort
SELECT - col2 - + col0 AS col2 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT col1 * + 16 + - col1 * - col0 + + col2 FROM tab1 AS cor0
----
1344
548
857

query I rowsort
SELECT ALL 85 FROM tab1, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 97 + - col2 col1 FROM tab2 cor0
----
1611
2980
5697

query I rowsort
SELECT DISTINCT - - col2 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL - 9 * + 85 FROM tab0 AS cor0
----
-765
-765
-765

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3704
SELECT CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3705
SELECT DISTINCT col1 DIV ( col0 + - cor0.col1 ) FROM tab0 cor0
----
-1
-45

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT col1 / ( col0 + - cor0.col1 ) FROM tab0 cor0
----
-1
-45

query I rowsort
SELECT + ( 21 ) * col2 AS col2 FROM tab1 AS cor0
----
1134
1197
2016

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3707
SELECT DISTINCT - + CAST( 43 AS SIGNED ) + col1 * col2 AS col1 FROM tab0 AS cor0
----
2795
54
7419

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT - + CAST ( 43 AS INTEGER ) + col1 * col2 AS col1 FROM tab0 AS cor0
----
2795
54
7419

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col1 col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL ( 8 ) * cor0.col1 FROM tab1 cor0
----
104
208
80

query I rowsort
SELECT - col1 + - 0 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + + 66 AS col2 FROM tab1 cor0
----
66
66
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3712
SELECT DISTINCT CAST( + col1 AS SIGNED ) + col0 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL cor0.col0 + col0 * col1 FROM tab1 AS cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 19 col2 FROM tab1
----
1216
1520
57

query I rowsort
SELECT ALL + 51 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT + - ( 66 ) FROM tab0 AS cor0
----
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3717
SELECT ALL + + CAST( + cor0.col1 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL + + CAST ( + cor0.col1 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + ( 52 ) * col0 FROM tab2 AS cor0
----
364
4056
4108

query I rowsort
SELECT DISTINCT + col2 + 87 * + col0 AS col1 FROM tab1 AS cor0
----
315
5625
7056

query I rowsort
SELECT + col1 + - col1 - col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT col0 + - col1 * col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT + cor0.col2 + + col2 * + ( col0 ) AS col0 FROM tab2 cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3723
SELECT col2 * - tab0.col0 + - CAST( col2 AS SIGNED ) - tab0.col1 AS col2 FROM tab0
----
-133
-7471
-911

skipif mysql # not compatible
query I rowsort label-3723
SELECT col2 * - tab0.col0 + - CAST ( col2 AS INTEGER ) - tab0.col1 AS col2 FROM tab0
----
-133
-7471
-911

onlyif mysql # use DIV operator for integer division
query I rowsort label-3724
SELECT - col2 + col2 + col0 * + col0 DIV col0 AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3724
SELECT - col2 + col2 + col0 * + col0 / col0 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT - 25 - - col1 AS col1 FROM tab0 AS cor0
----
61
66
72

query I rowsort
SELECT + - ( col2 ) + + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col1 * col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT 42 FROM tab2 cor0
----
42
42
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-3729
SELECT ALL - - col0 DIV - col0 + + col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL - - col0 / - col0 + + col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT - - cor0.col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - - 97 * - col1 + col1 FROM tab0 AS cor0
----
-8256
-8736
-9312

query I rowsort
SELECT - - col0 - col2 * - col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT col0 * col2 + + 97 + + col2 FROM tab2 AS cor0
----
2151
313
3137

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab2, tab2 AS cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 * + 5 * col2 col2 FROM tab0 AS cor0
----
14190
37310
485

query I rowsort
SELECT DISTINCT + + col2 * + col1 - + col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL cor0.col1 + 35 FROM tab2 AS cor0
----
52
66
94

query I rowsort
SELECT + - cor0.col2 * 65 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3295716af7d52eec30d656ffdb147305

query I rowsort
SELECT ALL - - col2 * - 61 FROM tab2 cor0
----
-1586
-1647
-2318

query I rowsort
SELECT ALL - col2 + - cor0.col2 * cor0.col1 * col2 AS col2 FROM tab1 cor0
----
-119904
-32547
-75870

onlyif mysql # use DIV operator for integer division
query I rowsort label-3741
SELECT + col0 DIV - col1 + - col0 FROM tab2 AS cor0
----
-7
-79
-83

skipif mysql # not compatible
query I rowsort label-3741
SELECT + col0 / - col1 + - col0 FROM tab2 AS cor0
----
-7
-79
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * ( 37 ) + col1 col2 FROM tab1 AS cor0
----
-360
-468
-936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 56 + + cor0.col0 - col0 col1 FROM tab0 AS cor0
----
1848
4592
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3744
SELECT DISTINCT + + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT + + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + cor0.col1 + + ( cor0.col0 ) - col2 AS col0 FROM tab0 AS cor0
----
131
77
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3746
SELECT col2 + col1 * 72 DIV - col0 FROM tab2 AS cor0
----
-28
-291
23

skipif mysql # not compatible
query I rowsort label-3746
SELECT col2 + col1 * 72 / - col0 FROM tab2 AS cor0
----
-28
-291
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3747
SELECT DISTINCT + col1 / + col1 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT + col1 / + col1 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col1 - - col0 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3749
SELECT ALL + col0 DIV + col0 + + col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL + col0 / + col0 + + col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT DISTINCT - - col1 - + col2 * + cor0.col0 * + col2 AS col0 FROM tab2 cor0
----
-114059
-5072
-52669

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3751
SELECT ALL col2 * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL col2 * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT tab1.col0 * col0 * + ( - ( tab1.col0 ) * 39 ) + col0 * - col0 - + 93 AS col1 FROM tab1
----
-10227805
-1155
-19974493

query I rowsort
SELECT DISTINCT tab0.col1 - - col1 FROM tab0
----
172
182
194

query I rowsort
SELECT - col1 + col0 AS col2 FROM tab0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3755
SELECT DISTINCT col0 DIV tab1.col1 + - 7 + col0 FROM tab1
----
-4
63
79

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT col0 / tab1.col1 + - 7 + col0 FROM tab1
----
-4
63
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 + 69 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 02b4d5764406369f6f6542b407f7a5fd

onlyif mysql # use DIV operator for integer division
query I rowsort label-3757
SELECT DISTINCT - cor0.col2 DIV + ( col0 ) + + cor0.col2 FROM tab1 AS cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT - cor0.col2 / + ( col0 ) + + cor0.col2 FROM tab1 AS cor0
----
36
57
95

query I rowsort
SELECT DISTINCT + - cor0.col0 * 15 * + cor0.col2 + col2 AS col0 FROM tab0 cor0
----
-109388
-11847
-524

query I rowsort
SELECT ALL col1 * + 42 AS col1 FROM tab0 AS cor0
----
3612
3822
4074

query I rowsort
SELECT + + col1 * col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + - col0 * cor0.col0 * + col2 FROM tab0 cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT - tab0.col2 * ( + col1 ) + col0 AS col0 FROM tab0
----
-2814
-62
-7373

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 8e89a67df0eeeac4bb0eedb403f6bb3e

query I rowsort
SELECT - col2 * col2 + col2 * col0 * col2 + col1 FROM tab0
----
131
25133
591803

query I rowsort
SELECT ALL - 71 AS col1 FROM tab2 AS cor0
----
-71
-71
-71

query I rowsort
SELECT - col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - col1 * col2 + 2 AS col1 FROM tab1 cor0
----
-1246
-1402
-568

query I rowsort
SELECT + - col0 * + col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL tab1.col1 + + col0 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL 95 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT ALL - cor0.col0 * col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3772
SELECT DISTINCT - - ( - col2 ) DIV - 90 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - - ( - col2 ) / - 90 FROM tab1 cor0
----
0
1

query I rowsort
SELECT col0 + + cor0.col0 * cor0.col0 FROM tab2 cor0
----
56
6162
6320

query I rowsort
SELECT col2 + 64 FROM tab0 AS cor0
----
146
65
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3775
SELECT - CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3775
SELECT - CAST ( NULL AS REAL ) * col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + 69 AS col2 FROM tab2
----
147
148
76

query I rowsort
SELECT - tab2.col2 * + col0 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT ( tab2.col0 ) AS col2 FROM tab2
----
7
78
79

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0 CROSS JOIN tab2, tab1 cor1
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab

query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab2
----
4

query I rowsort
SELECT DISTINCT 10 FROM tab2
----
10

query I rowsort
SELECT ALL + + col1 * + col2 + col0 * col1 + ( + col1 ) * col0 AS col2 FROM tab0 cor0
----
23660
6887
6966

query I rowsort
SELECT DISTINCT + - 37 FROM tab0 AS cor0
----
-37

query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab2 AS cor0
----
27

query I rowsort
SELECT - col0 * - col2 + 32 FROM tab1 AS cor0
----
194
3680
7712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col2 col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - 63 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT + col1 * 13 FROM tab0 cor0
----
1118
1183
1261

query I rowsort
SELECT + cor0.col1 + col2 * - col1 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-3790
SELECT DISTINCT + col1 + - 67 DIV + ( col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT + col1 + - 67 / + ( col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + 84 col2 FROM tab0 AS cor0
----
2016
2940
7476

query I rowsort
SELECT DISTINCT - + col2 * + col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3793
SELECT - CAST( NULL AS SIGNED ) 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-3793
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 * + ( - 98 ) FROM tab0
----
-8428
-8918
-9506

query I rowsort
SELECT DISTINCT col2 * + 14 FROM tab2 AS cor0
----
364
378
532

onlyif mysql # use DIV operator for integer division
query I rowsort label-3796
SELECT - cor0.col1 * 19 DIV ( + col0 * + 98 ) + col1 * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-3796
SELECT - cor0.col1 * 19 / ( + col0 * + 98 ) + col1 * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
24
35
89

query I rowsort
SELECT DISTINCT - col2 - col2 * - 12 FROM tab2
----
286
297
418

query I rowsort
SELECT + col2 - ( + col0 ) FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - col1 * col0 * col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3801
SELECT - + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT - + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - + col2 * 87 AS col0 FROM tab2 AS cor0
----
-2288
-2376
-3344

query I rowsort
SELECT + + col2 * col0 + + 63 + + col1 FROM tab0 AS cor0
----
195
7452
941

query I rowsort
SELECT col2 * - 45 AS col1 FROM tab1 AS cor0
----
-2430
-2565
-4320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col1 ) col0 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - - ( 51 ) AS col0 FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT ( 22 ) + + col1 + - 42 * col0 FROM tab2 AS cor0
----
-241
-3195
-3279

query I rowsort
SELECT ALL cor1.col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT col0 * ( 89 ) * + col2 AS col0 FROM tab0
----
3115
649522
70488

query I rowsort
SELECT ALL 58 FROM tab1, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT + col0 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT + - ( 60 ) * + col1 FROM tab2 AS cor0
----
-1020
-1860
-3540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + 9 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to fc0ef704234555bf64b7d2d9c1079bf6

query I rowsort
SELECT + + 76 + col0 FROM tab0 AS cor0
----
100
111
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 + - col2 * col2 col1 FROM tab1 AS cor0
----
-18432
-5832
-6498

query I rowsort
SELECT cor0.col0 + + 58 FROM tab2 AS cor0
----
136
137
65

query I rowsort
SELECT ALL + col1 + col0 * tab1.col2 * col2 FROM tab1
----
207946
737293
8774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 + + 31 col2 FROM tab2
----
320
3512
992

query I rowsort
SELECT - col0 * - cor0.col0 * + 57 + + col1 FROM tab1 AS cor0
----
233482
364813
539

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col2 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col1 + - cor0.col1 col2 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL + 82 AS col1 FROM tab2
----
82
82
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3823
SELECT ALL 13 DIV col0 FROM tab1
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL 13 / col0 FROM tab1
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab1.col0 ) col0 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3825
SELECT ALL col0 DIV + col1 col0 FROM tab1 AS cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL col0 / + col1 col0 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT ALL - 67 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

query I rowsort
SELECT - 65 + cor0.col2 * 5 FROM tab2 AS cor0
----
125
65
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3828
SELECT DISTINCT col1 + col0 DIV - col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT col1 + col0 / - col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col2 + - col0 * - 70 FROM tab1 AS cor0
----
156
4423
5504

query I rowsort
SELECT + 13 - - col0 * + col2 FROM tab0 AS cor0
----
48
7311
805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - cor0.col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 col0 FROM tab1
----
128
160
6

query I rowsort
SELECT col1 * ( + col2 * - tab0.col2 ) AS col2 FROM tab0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3834
SELECT DISTINCT col2 - - col0 DIV + col0 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT col2 - - col0 / + col0 FROM tab0
----
2
34
83

query I rowsort
SELECT + col1 * col1 + - 45 AS col2 FROM tab2
----
244
3436
916

query I rowsort
SELECT + 46 FROM tab0
----
46
46
46

query I rowsort
SELECT cor1.col0 + 29 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 02c27a6aef1144249bb6c32539a39d73

query I rowsort
SELECT - 12 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3839
SELECT ALL col2 DIV - col0 - 10 * + cor0.col1 FROM tab2 AS cor0
----
-170
-313
-590

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL col2 / - col0 - 10 * + cor0.col1 FROM tab2 AS cor0
----
-170
-313
-590

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3840
SELECT + col2 + col0 * CAST( col0 AS SIGNED ) * col0 col2 FROM tab0 AS cor0
----
13857
42876
705051

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3840
SELECT + col2 + col0 * CAST ( col0 AS INTEGER ) * col0 col2 FROM tab0 AS cor0
----
13857
42876
705051

query I rowsort
SELECT ALL + - ( col1 ) * + col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col1 * - col0 + + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + cor0.col1 - col0 FROM tab0 AS cor0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 + - cor0.col2 * 6 col2 FROM tab0 AS cor0
----
-150
-444
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-3845
SELECT ALL - col0 DIV 91 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL - col0 / 91 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * + 87 * 62 FROM tab1
----
291276
307458
517824

query I rowsort
SELECT + col2 + + col2 * + 39 AS col1 FROM tab2
----
1040
1080
1520

query I rowsort
SELECT col0 + 1 FROM tab1
----
4
65
81

query I rowsort
SELECT col1 * 86 - - col2 * - col0 AS col1 FROM tab0
----
528
6604
8307

query I rowsort
SELECT + col2 * + col1 + col0 AS col2 FROM tab1
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # use DIV operator for integer division
query I rowsort label-3852
SELECT - + col0 * - ( - col1 ) DIV col1 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-3852
SELECT - + col0 * - ( - col1 ) / col1 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 57 col2 FROM tab0
----
-1368
-1995
-5073

query I rowsort
SELECT col1 * ( - col0 ) * - col1 + + col0 * tab0.col2 AS col1 FROM tab0
----
178296
329350
744307

query I rowsort
SELECT 47 + - 39 * - col0 - col1 FROM tab0 AS cor0
----
1315
3427
897

query I rowsort
SELECT ALL - - ( + cor0.col0 ) FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT + 63 + col2 - + col0 FROM tab0 cor0
----
29
56
72

query I rowsort
SELECT DISTINCT cor0.col2 + 20 * col0 AS col2 FROM tab2 AS cor0
----
1586
1618
167

query I rowsort
SELECT DISTINCT + - col1 + + col0 + + cor0.col0 AS col0 FROM tab2 cor0
----
-17
141
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3860
SELECT + cor0.col2 + 62 DIV + col2 + col0 * - col0 FROM tab1 AS cor0
----
-4038
-6304
46

skipif mysql # not compatible
query I rowsort label-3860
SELECT + cor0.col2 + 62 / + col2 + col0 * - col0 FROM tab1 AS cor0
----
-4038
-6304
46

query I rowsort
SELECT - col2 * col1 + + col2 - cor0.col1 FROM tab1 AS cor0
----
-1165
-1376
-523

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3862
SELECT CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + ( + 99 ) * - col1 AS col0 FROM tab0 AS cor0
----
-8514
-9009
-9603

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3864
SELECT DISTINCT + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3865
SELECT ALL - CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL - CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 * + col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ( - col2 ) + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL + + 31 * col1 * + cor0.col2 FROM tab1 AS cor0
----
17670
38688
43524

query I rowsort
SELECT + col0 * col0 * cor0.col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT 23 AS col2 FROM tab2, tab1 AS cor0
----
23

query I rowsort
SELECT - + 26 AS col0 FROM tab1 cor0
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 * + 44 + - col2 * col0 * - col0 col2 FROM tab0 AS cor0
----
1269
19052
649566

query I rowsort
SELECT - ( 85 ) AS col0 FROM tab2 AS cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT + col2 + col0 + col0 AS col1 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT - ( + 35 ) FROM tab1 AS cor0
----
-35
-35
-35

query I rowsort
SELECT ALL + col1 + 60 FROM tab0 AS cor0
----
146
151
157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL 54 FROM tab2, tab0 cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32

query I rowsort
SELECT ALL col2 * + 60 AS col2 FROM tab0 cor0
----
1980
4920
60

query I rowsort
SELECT DISTINCT + 32 FROM tab2, tab2 AS cor0
----
32

query I rowsort
SELECT DISTINCT - - cor0.col0 * col2 + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL - + col1 * cor0.col2 + - 3 * + col0 AS col1 FROM tab0 AS cor0
----
-202
-2910
-7729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 - + col0 col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT col1 - + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 67 + + col0 AS col0 FROM tab0 AS cor0
----
102
156
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-3886
SELECT ALL - + col2 * col0 DIV col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL - + col2 * col0 / col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 * 7 AS col2 FROM tab2 AS cor0
----
136
248
472

onlyif mysql # use DIV operator for integer division
query I rowsort label-3888
SELECT - col2 DIV - col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3888
SELECT - col2 / - col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT + col1 - + col2 * 70 FROM tab2 AS cor0
----
-1761
-1859
-2643

query I rowsort
SELECT DISTINCT - 68 + 5 - col0 AS col1 FROM tab0
----
-152
-87
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3891
SELECT + - ( - cor0.col2 ) DIV + 43 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3891
SELECT + - ( - cor0.col2 ) / + 43 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 92 - + ( col1 + + col2 ) AS col0 FROM tab0
----
-27
-6
-81

query I rowsort
SELECT DISTINCT + 22 - + col1 AS col1 FROM tab1
----
-4
12
9

query I rowsort
SELECT - - cor0.col2 * + col0 * cor0.col0 + - col0 AS col0 FROM tab1 AS cor0
----
233408
483
614320

query I rowsort
SELECT ALL + - col0 * - ( ( + col1 ) ) + 66 AS col0 FROM tab0 AS cor0
----
2130
3461
8165

query I rowsort
SELECT ALL + col2 * 63 AS col2 FROM tab1 AS cor0
----
3402
3591
6048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 col2 FROM tab1 cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3898
SELECT DISTINCT + col1 * - col1 + - 56 DIV cor0.col2 FROM tab1 AS cor0
----
-100
-169
-677

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT + col1 * - col1 + - 56 / cor0.col2 FROM tab1 AS cor0
----
-100
-169
-677

query I rowsort
SELECT ALL + col2 + + 29 AS col1 FROM tab0 AS cor0
----
111
30
62

query I rowsort
SELECT cor0.col0 * 30 FROM tab2 AS cor0
----
210
2340
2370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + 5 col0 FROM tab2 cor0
----
-12
-83
-84

query I rowsort
SELECT ALL col2 + - 34 AS col0 FROM tab1 AS cor0
----
20
23
62

query I rowsort
SELECT DISTINCT - 34 AS col1 FROM tab2
----
-34

query I rowsort
SELECT ALL col1 * - col1 + 57 FROM tab1
----
-112
-43
-619

query I rowsort
SELECT ALL + col2 + - col0 AS col2 FROM tab1
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 * col0 col0 FROM tab0
----
1128
1645
4183

query I rowsort
SELECT - + col0 * col2 * + col2 FROM tab0 cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL - col1 + + 68 FROM tab1 AS cor0
----
42
55
58

query I rowsort
SELECT + col0 * col0 + + col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL col2 + 49 FROM tab1 AS cor0
----
103
106
145

query I rowsort
SELECT DISTINCT - - col1 - col1 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3912
SELECT DISTINCT - col2 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT - col2 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 + - 75 AS col1 FROM tab1 AS cor0
----
-101
-85
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3914
SELECT ALL - col1 * - CAST( NULL AS DECIMAL ) * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL - col1 * - CAST ( NULL AS REAL ) * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 24 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT - col0 + - ( - tab1.col1 + col0 ) FROM tab1
----
-118
-147
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-3917
SELECT cor1.col2 DIV cor0.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 46dc82396a3ef8c6a2f1d1e7bccce5f0

skipif mysql # not compatible
query I rowsort label-3917
SELECT cor1.col2 / cor0.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 46dc82396a3ef8c6a2f1d1e7bccce5f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 - + col1 col1 FROM tab1 AS cor0
----
-62
-65
-78

query I rowsort
SELECT - col2 * + cor0.col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL - 46 + - col0 * 38 FROM tab2 AS cor0
----
-3010
-3048
-312

query I rowsort
SELECT ALL + - col0 * col1 + col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col0 * col0 * 78 AS col1 FROM tab1 AS cor0
----
319498
499213
728

query I rowsort
SELECT DISTINCT + 25 * col1 + - col0 - col2 AS col0 FROM tab0 cor0
----
2093
2104
2389

query I rowsort
SELECT 99 * col2 + ( - ( - col0 ) * - ( - cor0.col1 ) + col1 ) AS col1 FROM tab2 cor0
----
2921
5122
7235

query I rowsort
SELECT ALL + 48 + + col2 AS col2 FROM tab0 AS cor0
----
130
49
81

query I rowsort
SELECT DISTINCT col1 + col1 * 8 FROM tab1 AS cor0
----
117
234
90

query I rowsort
SELECT ( + col2 ) + ( cor0.col1 ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + col2 * col1 + col1 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT + + cor0.col0 * + cor0.col2 + col1 FROM tab0 AS cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 + + col1 col1 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3931
SELECT - CAST( NULL AS SIGNED ) + - 33 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3931
SELECT - CAST ( NULL AS INTEGER ) + - 33 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - 59 AS col0 FROM tab2
----
-59

query I rowsort
SELECT + cor0.col0 - - cor0.col0 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + + ( 33 ) * - col2 AS col1 FROM tab2 AS cor0
----
-1254
-858
-891

query I rowsort
SELECT + col1 - 95 AS col1 FROM tab0 AS cor0
----
-4
-9
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 col0 FROM tab1, tab1 cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT ALL ( 89 ) + col1 FROM tab2
----
106
120
148

query I rowsort
SELECT ALL 29 FROM tab0
----
29
29
29

query I rowsort
SELECT 47 FROM tab0, tab2 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL - col0 * col0 + + col2 AS col0 FROM tab2
----
-22
-6058
-6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-3941
SELECT DISTINCT + 77 * 64 DIV + col0 + + 62 FROM tab0
----
117
202
267

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT + 77 * 64 / + col0 + + 62 FROM tab0
----
117
202
267

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3942
SELECT DISTINCT 44 * - col2 + col1 * CAST( NULL AS DECIMAL ) + - cor0.col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT 44 * - col2 + col1 * CAST ( NULL AS REAL ) + - cor0.col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 - 67 FROM tab2 AS cor0
----
-105
-93
-94

query I rowsort
SELECT ALL + col1 * 66 AS col0 FROM tab0 cor0
----
5676
6006
6402

query I rowsort
SELECT DISTINCT 56 + - col1 AS col1 FROM tab2 AS cor0
----
-3
25
39

query I rowsort
SELECT + 3 * cor0.col2 + + col2 FROM tab0 AS cor0
----
132
328
4

query I rowsort
SELECT - ( col2 ) * col0 - - ( 51 ) AS col0 FROM tab0 AS cor0
----
-7247
-741
16

query I rowsort
SELECT ALL + col2 - col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT + 41 + + col1 * col1 AS col1 FROM tab2 AS cor0
----
1002
330
3522

query I rowsort
SELECT ALL ( + 21 ) AS col2 FROM tab2
----
21
21
21

query I rowsort
SELECT 87 AS col1 FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT ( col1 ) * - col0 * col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3953
SELECT DISTINCT col0 * tab1.col2 DIV tab1.col1 AS col1 FROM tab1
----
364
590
6

skipif mysql # not compatible
query I rowsort label-3953
SELECT DISTINCT col0 * tab1.col2 / tab1.col1 AS col1 FROM tab1
----
364
590
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3954
SELECT + 33 DIV tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3954
SELECT + 33 / tab0.col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - cor0.col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT - col2 + + col0 + tab0.col2 * col2 FROM tab0
----
1080
35
6731

query I rowsort
SELECT + 36 + - col0 - - 33 * - col0 FROM tab0
----
-1154
-2990
-780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 - tab1.col1 col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT col1 - col0 AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL + - 54 * col2 AS col1 FROM tab2 cor0
----
-1404
-1458
-2052

query I rowsort
SELECT 39 * cor0.col2 * col0 FROM tab2 AS cor0
----
117078
7371
79092

query I rowsort
SELECT DISTINCT - 55 + - 65 AS col1 FROM tab0, tab1 AS cor0
----
-120

query I rowsort
SELECT DISTINCT - 98 FROM tab2, tab0 AS cor0
----
-98

query I rowsort
SELECT DISTINCT 5 FROM tab1, tab0 cor0
----
5

query I rowsort
SELECT ALL col0 + ( col2 ) AS col1 FROM tab0 AS cor0
----
171
36
57

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to 72eb3d4d523f5d0c69d1b855edd18f4a

query I rowsort
SELECT - col1 * 7 FROM tab1 AS cor0
----
-182
-70
-91

query I rowsort
SELECT - 64 AS col1 FROM tab1 AS cor0
----
-64
-64
-64

query I rowsort
SELECT - 25 FROM tab1 cor0
----
-25
-25
-25

query I rowsort
SELECT + col1 * - 31 AS col2 FROM tab1 AS cor0
----
-310
-403
-806

query I rowsort
SELECT + 40 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT DISTINCT 43 FROM tab0, tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 5 AS REAL ) AS col2 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT ALL tab1.col2 * - 11 AS col1 FROM tab1
----
-1056
-594
-627

query I rowsort
SELECT ALL - col2 * col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - - cor0.col2 + - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3977
SELECT + + cor0.col0 + CAST( + 54 + - col0 AS SIGNED ) * - 48 FROM tab2 AS cor0
----
-2249
1230
1279

skipif mysql # not compatible
query I rowsort label-3977
SELECT + + cor0.col0 + CAST ( + 54 + - col0 AS INTEGER ) * - 48 FROM tab2 AS cor0
----
-2249
1230
1279

query I rowsort
SELECT - col1 * 55 FROM tab0 AS cor0
----
-4730
-5005
-5335

query I rowsort
SELECT DISTINCT - col1 * + col0 + + col2 AS col1 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL + col0 * 17 FROM tab0 AS cor0
----
1513
408
595

query I rowsort
SELECT ALL - col0 * - ( col0 ) - + col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT ALL 6 FROM tab0, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # use DIV operator for integer division
query I rowsort label-3983
SELECT + col2 DIV + col1 AS col2 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3983
SELECT + col2 / + col1 AS col2 FROM tab2
----
0
0
2

query I rowsort
SELECT DISTINCT col0 - - col2 * 10 * - col1 AS col1 FROM tab2
----
-15262
-6381
-8363

query I rowsort
SELECT col1 * + col2 - - col1 * col0 FROM tab0
----
15561
3492
4902

query I rowsort
SELECT ALL - ( - 27 ) + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-37
-53
24

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
26
27
38

query I rowsort
SELECT col1 + col2 - + ( col1 ) * - col2 FROM tab0
----
195
2957
7635

onlyif mysql # use DIV operator for integer division
query I rowsort label-3989
SELECT tab0.col2 DIV + tab0.col2 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3989
SELECT tab0.col2 / + tab0.col2 AS col2 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - tab0.col1 * - col2 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL - 2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab0, tab2 AS cor0
----
97

query I rowsort
SELECT ( - tab2.col0 ) AS col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT ( 60 ) * + col1 FROM tab0
----
5160
5460
5820

query I rowsort
SELECT ALL - 68 FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to 3a5c3d9872a8a4148ab98ed0ab0a6c62

query I rowsort
SELECT DISTINCT + + col1 + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - - 89 + cor0.col2 * col1 AS col0 FROM tab0 cor0
----
186
2927
7551

query I rowsort
SELECT ALL - + 77 FROM tab2 AS cor0
----
-77
-77
-77

query I rowsort
SELECT - ( col0 ) AS col2 FROM tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 * col0 col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL ( - col2 ) * + col1 * + col1 AS col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ( - col2 ) + 24 * col2 FROM tab2 AS cor0
----
598
621
874

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 36 * - col0 AS col0 FROM tab0 cor0
----
-1260
-3204
-864

query I rowsort
SELECT + col2 + col0 * + col0 * col0 FROM tab2 AS cor0
----
370
474578
493077

query I rowsort
SELECT ALL + + col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT col1 + - col2 * + col1 AS col0 FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT + - ( col0 ) + ( + ( + col0 ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( col0 ) + + col2 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + - 97 AS col1 FROM tab0 AS cor0
----
-97
-97
-97

query I rowsort
SELECT - 0 * col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4014
SELECT + cor0.col1 + col0 DIV - 79 AS col1 FROM tab2 cor0
----
16
31
59

skipif mysql # not compatible
query I rowsort label-4014
SELECT + cor0.col1 + col0 / - 79 AS col1 FROM tab2 cor0
----
16
31
59

query I rowsort
SELECT + 83 + + 93 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 6f3f6ff7150b3da5d8d0905676190e0a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-4017
SELECT + cor0.col1 * 15 DIV col0 FROM tab0 AS cor0
----
15
41
53

skipif mysql # not compatible
query I rowsort label-4017
SELECT + cor0.col1 * 15 / col0 FROM tab0 AS cor0
----
15
41
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-4018
SELECT ALL + col1 DIV + cor0.col1 + col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL + col1 / + cor0.col1 + col0 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4019
SELECT + cor0.col0 DIV - cor0.col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-4019
SELECT + cor0.col0 / - cor0.col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL + - cor0.col0 * ( ( col0 ) ) * + col1 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col2 + - 3 * - col2 AS col2 FROM tab2 cor0
----
-108
-1950
-2888

onlyif mysql # use DIV operator for integer division
query I rowsort label-4022
SELECT DISTINCT + col0 DIV + ( cor0.col0 * col1 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT + col0 / + ( cor0.col0 * col1 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 * + 13 * col0 FROM tab0
----
105287
26832
44135

query I rowsort
SELECT - col2 + cor0.col0 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4025
SELECT ALL - col2 DIV + ( + col1 ) FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL - col2 / + ( + col1 ) FROM tab1 AS cor0
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * - ( col1 + 15 ) col2 FROM tab1 AS cor0
----
-1368
-2160
-2592

query I rowsort
SELECT ALL cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col1 * + ( - ( + cor0.col1 ) ) * col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT - + col2 + cor0.col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT col2 * 83 + + col0 FROM tab1 AS cor0
----
4485
4795
8048

query I rowsort
SELECT ALL - cor0.col2 - + col2 * - col1 AS col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT - 78 * col0 FROM tab0 cor0
----
-1872
-2730
-6942

query I rowsort
SELECT ALL + - 53 AS col1 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT + ( col2 ) * col1 * ( + 75 ) + + col0 * 78 AS col0 FROM tab1 AS cor0
----
105534
47742
99840

query I rowsort
SELECT DISTINCT - 22 * - col0 + col2 AS col1 FROM tab2
----
1742
1776
181

query I rowsort
SELECT DISTINCT - tab0.col0 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
-24
-35
-89

query I rowsort
SELECT ALL col2 + col0 * col1 AS col1 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT - + col1 + + col0 * + col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT + - 20 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT DISTINCT + - cor0.col2 * + col2 + col0 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( + col2 AS REAL ) - + cor0.col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL 70 * col1 + cor0.col0 + 21 FROM tab0 cor0
----
6065
6480
6846

query I rowsort
SELECT DISTINCT + - 58 * 87 + - col1 FROM tab1 AS cor0
----
-5056
-5059
-5072

query I rowsort
SELECT ( col0 ) + + col2 * + col2 + col1 FROM tab0 AS cor0
----
1199
133
6904

query I rowsort
SELECT DISTINCT + 30 * + 97 AS col2 FROM tab2 AS cor0
----
2910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4046
SELECT + CAST( NULL AS SIGNED ) + + ( - col0 ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT + CAST ( NULL AS INTEGER ) + + ( - col0 ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 59 * 77 AS col2 FROM tab1 AS cor0
----
4543
4543
4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4048
SELECT ALL col0 * + col2 + + col0 * CAST( NULL AS SIGNED ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL col0 * + col2 + + col0 * CAST ( NULL AS INTEGER ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 22 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4050
SELECT DISTINCT - 14 DIV cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT - 14 / cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + ( - col2 ) + + cor0.col0 * + ( - col1 ) AS col2 FROM tab2 cor0
----
-1381
-244
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-4052
SELECT DISTINCT - col1 DIV cor0.col1 + + 75 * - 49 FROM tab1 AS cor0
----
-3676

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT - col1 / cor0.col1 + + 75 * - 49 FROM tab1 AS cor0
----
-3676

query I rowsort
SELECT ALL + ( tab1.col0 ) * col2 + ( - 1 * - col1 ) AS col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT 4 * col0 + col0 FROM tab1
----
15
320
400

query I rowsort
SELECT ALL + 87 * col1 FROM tab2
----
1479
2697
5133

query I rowsort
SELECT ALL 6 AS col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT - col0 * + ( + col2 * - 99 + col2 ) FROM tab1
----
15876
357504
752640

query I rowsort
SELECT DISTINCT 9 FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT ALL col0 + 15 AS col0 FROM tab1
----
18
79
95

query I rowsort
SELECT col2 + + 40 AS col2 FROM tab0 AS cor0
----
122
41
73

query I rowsort
SELECT + - 93 * + col2 FROM tab2 AS cor0
----
-2418
-2511
-3534

query I rowsort
SELECT + 41 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT - 39 FROM tab1 cor0
----
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-4064
SELECT - 81 DIV + col0 - col2 AS col0 FROM tab2 AS cor0
----
-27
-38
-39

skipif mysql # not compatible
query I rowsort label-4064
SELECT - 81 / + col0 - col2 AS col0 FROM tab2 AS cor0
----
-27
-38
-39

query I rowsort
SELECT - col1 * + col1 * - col2 - col1 * col0 * - col2 FROM tab2 AS cor0
----
210158
31806
62016

query I rowsort
SELECT + col0 + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - col2 + + cor0.col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 - - col2 col1 FROM tab0 AS cor0
----
-8
24
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4069
SELECT ALL + 18 DIV + col1 + col1 + col2 col2 FROM tab2
----
56
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + 18 / + col1 + col1 + col2 col2 FROM tab2
----
56
58
85

query I rowsort
SELECT ALL + tab0.col0 + + 51 + - col1 FROM tab0
----
-11
-11
49

query I rowsort
SELECT - - col0 - + col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT 58 + col1 FROM tab1 AS cor0
----
68
71
84

query I rowsort
SELECT + cor0.col0 * - col1 * + 86 FROM tab2 AS cor0
----
-115498
-18662
-395772

query I rowsort
SELECT ALL + col2 + col0 + col0 AS col1 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT DISTINCT - col0 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT + col1 * - ( - col1 ) + col0 AS col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT + col0 * - 99 AS col0 FROM tab1 AS cor0
----
-297
-6336
-7920

query I rowsort
SELECT 30 * 27 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 56bd740432b75e5f5544015950316746

query I rowsort
SELECT DISTINCT + 84 + cor0.col0 FROM tab0, tab2 AS cor0
----
162
163
91

query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80

query I rowsort
SELECT DISTINCT - col1 * - col0 + cor0.col2 - col2 * col1 FROM tab0 AS cor0
----
-741
3299
719

query I rowsort
SELECT - - 43 + - 16 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1493
-821
-869

query I rowsort
SELECT ALL - ( cor0.col2 ) AS col0 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT - 28 * + col0 + - col2 * col0 FROM tab1 AS cor0
----
-246
-5440
-9920

query I rowsort
SELECT DISTINCT 8 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
8

query I rowsort
SELECT DISTINCT - 87 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT DISTINCT + col2 * - 47 AS col0 FROM tab0 AS cor0
----
-1551
-3854
-47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4088
SELECT ALL - - CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL - - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + ( ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + - 95 AS col2 FROM tab1 cor0
----
-95
-95
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4091
SELECT DISTINCT - CAST( col1 AS SIGNED ) * col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 55 AS col1 FROM tab2
----
55
55
55

query I rowsort
SELECT DISTINCT cor0.col1 * 39 AS col2 FROM tab0 AS cor0
----
3354
3549
3783

query I rowsort
SELECT + cor0.col0 + ( - col1 ) * - col1 * col2 FROM tab1 AS cor0
----
16304
36507
5764

query I rowsort
SELECT ( - 55 ) FROM tab0, tab1 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT ALL + col1 * + ( col0 ) AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col1 * 28 FROM tab0 cor0
----
-2408
-2548
-2716

query I rowsort
SELECT + 1 * - col0 AS col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT - 35 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b

query I rowsort
SELECT ALL - col1 + 50 FROM tab1
----
24
37
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-4101
SELECT DISTINCT col2 DIV + ( + col0 ) + col0 AS col2 FROM tab2
----
10
78
79

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT col2 / + ( + col0 ) + col0 AS col2 FROM tab2
----
10
78
79

query I rowsort
SELECT ALL tab0.col0 + + 21 * col0 FROM tab0
----
1958
528
770

query I rowsort
SELECT DISTINCT + col0 * ( - col1 ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL - 64 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 100c625e45715c20368551989514ba64

query I rowsort
SELECT ALL 0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col0 + + col0 * 61 * - col1 AS col1 FROM tab0 AS cor0
----
-125928
-207130
-494128

query I rowsort
SELECT DISTINCT + - col0 * cor0.col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4109
SELECT - cor0.col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4109
SELECT - cor0.col1 / - col0 AS col1 FROM tab2 AS cor0
----
0
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4110
SELECT - ( - col2 ) + + col0 DIV 5 AS col2 FROM tab1 AS cor0
----
112
54
69

skipif mysql # not compatible
query I rowsort label-4110
SELECT - ( - col2 ) + + col0 / 5 AS col2 FROM tab1 AS cor0
----
112
54
69

query I rowsort
SELECT - - col1 + + col2 * - 99 AS col1 FROM tab2 AS cor0
----
-2515
-2642
-3745

query I rowsort
SELECT DISTINCT - - 6 AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT - - 87 - col1 FROM tab2 AS cor0
----
28
56
70

query I rowsort
SELECT 18 FROM tab0 AS cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col1 FROM tab0 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4116
SELECT + col1 DIV + cor0.col1 col0 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4116
SELECT + col1 / + cor0.col1 col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - - cor0.col2 + - 92 AS col1 FROM tab0 AS cor0
----
-10
-59
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-4119
SELECT - col0 DIV ( - 85 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4119
SELECT - col0 / ( - 85 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col1 + - 73 * + col1 FROM tab1 cor0
----
-1924
-740
-962

query I rowsort
SELECT - col2 - + col2 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT DISTINCT + col1 + col1 + col1 AS col1 FROM tab1 AS cor0
----
30
39
78

query I rowsort
SELECT DISTINCT - tab0.col1 * + col1 AS col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT col2 - - col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + col1 * + col2 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-3068
-697
620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 40 * 1 - + col1 col0 FROM tab2 AS cor0
----
-19
23
9

query I rowsort
SELECT ALL - - col1 + - 36 * - cor0.col1 FROM tab1 AS cor0
----
370
481
962

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( 82 AS REAL ) + - cor0.col1 AS col0 FROM tab1 AS cor0
----
56
69
72

query I rowsort
SELECT DISTINCT - 34 + + col1 FROM tab0
----
52
57
63

query I rowsort
SELECT DISTINCT - cor0.col1 + + ( - 28 ) FROM tab0, tab2 AS cor0
----
-45
-59
-87

query I rowsort
SELECT - col0 + 98 FROM tab2 AS cor0
----
19
20
91

query I rowsort
SELECT ALL - ( + 21 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # use DIV operator for integer division
query I rowsort label-4133
SELECT DISTINCT 69 * col1 DIV + col2 + - col1 FROM tab1 cor0
----
-4
2
7

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT 69 * col1 / + col2 + - col1 FROM tab1 cor0
----
-4
2
7

query I rowsort
SELECT ( + col0 ) * + col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4135
SELECT CAST( col2 AS SIGNED ) FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4135
SELECT CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT 85 FROM tab1 AS cor0
----
85

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) + col0 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT 83 * col0 FROM tab0 AS cor0
----
1992
2905
7387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) * 54 + + col1 col1 FROM tab0 AS cor0
----
-1210
-1793
-4715

query I rowsort
SELECT + 28 * + col0 FROM tab1 AS cor0
----
1792
2240
84

query I rowsort
SELECT DISTINCT + col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT 69 * - col1 + + col1 FROM tab0 AS cor0
----
-5848
-6188
-6596

query I rowsort
SELECT col2 + - col1 * + ( col1 ) FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT ALL + + col1 + - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - 56 * - col2 * tab2.col0 + - col0 + + col0 AS col0 FROM tab2
----
10584
113568
168112

query I rowsort
SELECT ALL col0 * tab2.col1 + - col2 FROM tab2
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 * - col0 ) + - col0 col0 FROM tab1
----
-12
-4160
-6480

query I rowsort
SELECT DISTINCT + ( + tab1.col1 ) + col1 AS col1 FROM tab1
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4149
SELECT ALL col0 DIV col1 + col1 AS col0 FROM tab1
----
16
19
26

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL col0 / col1 + col1 AS col0 FROM tab1
----
16
19
26

query I rowsort
SELECT DISTINCT - - col2 + + col2 + 65 FROM tab1 AS cor0
----
173
179
257

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141

query I rowsort
SELECT + 51 + - col2 FROM tab2
----
13
24
25

query I rowsort
SELECT + 63 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT ALL - col1 * - cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + col0 * + col2 AS col2 FROM tab1 cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 + ( + col1 ) ) col0 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4157
SELECT DISTINCT col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - ( + col0 ) + col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + col1 + col0 - + tab2.col1 * + col1 * tab2.col2 FROM tab2
----
-10886
-25909
-90369

query I rowsort
SELECT ( - 54 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT ALL col2 * - 40 FROM tab0
----
-1320
-3280
-40

query I rowsort
SELECT cor0.col1 * ( col1 + - col0 ) FROM tab2 AS cor0
----
-1054
-1121
744

query I rowsort
SELECT + col2 * - 32 AS col1 FROM tab1 AS cor0
----
-1728
-1824
-3072

onlyif mysql # use DIV operator for integer division
query I rowsort label-4164
SELECT ALL + col2 DIV 95 AS col0 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL + col2 / 95 AS col0 FROM tab1 cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4165
SELECT DISTINCT + 31 DIV 51 AS col1 FROM tab1, tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT + 31 / 51 AS col1 FROM tab1, tab2 cor0
----
0

query I rowsort
SELECT col1 * - ( + col0 ) + + col1 * - 23 + col0 FROM tab1
----
-1259
-673
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-4167
SELECT col2 + + col0 DIV + cor0.col0 - 63 FROM tab2 AS cor0
----
-24
-35
-36

skipif mysql # not compatible
query I rowsort label-4167
SELECT col2 + + col0 / + cor0.col0 - 63 FROM tab2 AS cor0
----
-24
-35
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + 87 col1 FROM tab1 cor0
----
261
5568
6960

query I rowsort
SELECT DISTINCT + 65 FROM tab2 AS cor0
----
65

query I rowsort
SELECT ALL - ( 86 ) AS col1 FROM tab0 AS cor0
----
-86
-86
-86

query I rowsort
SELECT DISTINCT - ( + col2 ) + col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + 71 - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-9
68
7

query I rowsort
SELECT - col0 * - 61 + - col2 FROM tab0 AS cor0
----
1431
2134
5347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col2 FROM tab1 cor0
----
51
51
51

query I rowsort
SELECT DISTINCT col1 * + col1 + + col0 AS col0 FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-4176
SELECT 25 DIV col1 + - col1 FROM tab1 AS cor0
----
-12
-26
-8

skipif mysql # not compatible
query I rowsort label-4176
SELECT 25 / col1 + - col1 FROM tab1 AS cor0
----
-12
-26
-8

query I rowsort
SELECT ALL + col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4178
SELECT + - CAST( + col1 AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

skipif mysql # not compatible
query I rowsort label-4178
SELECT + - CAST ( + col1 AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT col0 * - col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + col2 - + col1 AS col0 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4181
SELECT + + col1 DIV 49 + cor0.col0 * cor0.col2 * + col2 AS col2 FROM tab0 AS cor0
----
26137
36
598437

skipif mysql # not compatible
query I rowsort label-4181
SELECT + + col1 / 49 + cor0.col0 * cor0.col2 * + col2 AS col2 FROM tab0 AS cor0
----
26137
36
598437

query I rowsort
SELECT + ( + col2 ) - cor0.col1 * + cor0.col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT + ( col0 ) + cor0.col0 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + tab2.col1 + - col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 89 AS col1 FROM tab2
----
-89
-89
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4186
SELECT col1 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT col1 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab1.col2 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT - col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1, tab0, tab1 AS cor0
----
-54
-57
-96

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab0, tab1 cor1
----
972 values hashing to 9af67d6f98010464af5d560bf949d487

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4191
SELECT col2 * CAST( col1 AS SIGNED ) + col2 + + col1 AS col2 FROM tab1 AS cor0
----
1357
1484
637

skipif mysql # not compatible
query I rowsort label-4191
SELECT col2 * CAST ( col1 AS INTEGER ) + col2 + + col1 AS col2 FROM tab1 AS cor0
----
1357
1484
637

query I rowsort
SELECT DISTINCT + col0 * - ( - 38 + - col2 * 51 ) AS col1 FROM tab0 AS cor0
----
3115
375580
41304

query I rowsort
SELECT + cor0.col1 * - 37 FROM tab0 cor0
----
-3182
-3367
-3589

query I rowsort
SELECT ALL - ( + 0 ) * cor0.col0 * + cor0.col1 FROM tab2, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col0 + + 80 AS col1 FROM tab2 AS cor0
----
158
159
87

query I rowsort
SELECT cor0.col0 + + 91 * - col1 FROM tab2 AS cor0
----
-1468
-2814
-5291

query I rowsort
SELECT + - col2 * + 89 * 62 FROM tab2 AS cor0
----
-143468
-148986
-209684

query I rowsort
SELECT + col1 + col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - 0 FROM tab0, tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 85 FROM tab0
----
85

query I rowsort
SELECT ALL - 54 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT ALL 42 + 3 AS col2 FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT DISTINCT - 39 * - col1 FROM tab2 cor0
----
1209
2301
663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 + - 14 * - col2 + - col1 col0 FROM tab2 AS cor0
----
307
349
517

query I rowsort
SELECT + cor0.col0 * + col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 22 AS REAL ) * col2 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1134
-1197
-2016

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4207
SELECT - - CAST( col0 AS SIGNED ) col1 FROM tab0 cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4207
SELECT - - CAST ( col0 AS INTEGER ) col1 FROM tab0 cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + 61 + col1 col2 FROM tab2 cor0
----
-396
-4699
-4802

query I rowsort
SELECT DISTINCT 83 * + 48 - col0 AS col1 FROM tab2 AS cor0
----
3905
3906
3977

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 col1 FROM tab2 AS cor0
----
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4211
SELECT ALL - col1 * + col1 DIV - cor0.col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL - col1 * + col1 / - cor0.col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4212
SELECT + + CAST( NULL AS SIGNED ) * col1 + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT + + CAST ( NULL AS INTEGER ) * col1 + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col1 col2 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4214
SELECT DISTINCT - - 36 DIV - col1 AS col1 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT - - 36 / - col1 AS col1 FROM tab1 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL 19 FROM tab2, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT 27 FROM tab1, tab0 AS cor0
----
27

query I rowsort
SELECT col0 * + col0 + col2 * + col1 AS col1 FROM tab1
----
1413
4666
7648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 73 + - col1 col0 FROM tab1 AS cor0
----
47
60
63

query I rowsort
SELECT ALL + + col0 + - col1 * - ( - 47 ) FROM tab1 AS cor0
----
-1219
-406
-531

query I rowsort
SELECT + ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL 90 + col0 FROM tab1 AS cor0
----
154
170
93

query I rowsort
SELECT ALL - col1 * cor0.col1 + col0 * - col2 FROM tab2 cor0
----
-1150
-3291
-5509

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 + ( - col1 ) col2 FROM tab0 cor0
----
-1322
-662
-8012

query I rowsort
SELECT col2 + col2 * - col1 * col0 FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT ALL + col1 + - ( - 81 ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
2030
2932
7300

query I rowsort
SELECT ALL + - col2 * col0 * col1 + cor0.col2 FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT + col1 + ( - col1 ) * + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-4228
SELECT ALL cor0.col1 DIV - col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL cor0.col1 / - col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col1 * - 88 + - col2 * col2 FROM tab2 cor0
----
-2940
-3457
-5868

onlyif mysql # use DIV operator for integer division
query I rowsort label-4230
SELECT DISTINCT 76 DIV tab0.col2 AS col0 FROM tab0
----
0
2
76

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT 76 / tab0.col2 AS col0 FROM tab0
----
0
2
76

query I rowsort
SELECT ( 64 ) * col2 + col1 FROM tab1 AS cor0
----
3482
3658
6157

query I rowsort
SELECT - + cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT DISTINCT + ( + ( + col2 ) ) * col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT - + cor0.col1 - - col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT - 21 * col2 FROM tab2
----
-546
-567
-798

onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT ALL + 72 * col1 DIV + col2 - - col2 FROM tab1
----
105
69
88

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL + 72 * col1 / + col2 - - col2 FROM tab1
----
105
69
88

query I rowsort
SELECT ALL 91 - + 33 AS col1 FROM tab2
----
58
58
58

query I rowsort
SELECT col0 + 33 - - col2 AS col1 FROM tab1
----
154
209
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4239
SELECT col2 * 29 DIV col0 + col0 * + ( col1 ) FROM tab2
----
1356
328
4611

skipif mysql # not compatible
query I rowsort label-4239
SELECT col2 * 29 / col0 + col0 * + ( col1 ) FROM tab2
----
1356
328
4611

query I rowsort
SELECT ALL - 87 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT ALL col0 + tab1.col1 * + col1 + - col0 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col1 + 43 col1 FROM tab0 AS cor0
----
140
2881
7505

onlyif mysql # use DIV operator for integer division
query I rowsort label-4244
SELECT - + col2 DIV - col0 + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-958

skipif mysql # not compatible
query I rowsort label-4244
SELECT - + col2 / - col0 + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-958

onlyif mysql # use DIV operator for integer division
query I rowsort label-4245
SELECT + col0 * col1 + + col0 + - col2 DIV + 96 FROM tab0 cor0
----
2088
3430
8188

skipif mysql # not compatible
query I rowsort label-4245
SELECT + col0 * col1 + + col0 + - col2 / + 96 FROM tab0 cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4246
SELECT + col2 * - CAST( NULL AS SIGNED ) + col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4246
SELECT + col2 * - CAST ( NULL AS INTEGER ) + col2 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 73 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

onlyif mysql # use DIV operator for integer division
query I rowsort label-4248
SELECT DISTINCT tab1.col1 * ( - col0 ) + + col2 * ( col1 ) DIV + col1 + col0 FROM tab1
----
-21
-519
-864

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT tab1.col1 * ( - col0 ) + + col2 * ( col1 ) / + col1 + col0 FROM tab1
----
-21
-519
-864

query I rowsort
SELECT - - col2 + 74 FROM tab1 AS cor0
----
128
131
170

query I rowsort
SELECT ALL + 66 FROM tab0, tab1 cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4251
SELECT CAST( NULL AS SIGNED ) + + ( - col2 ) / col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT CAST ( NULL AS INTEGER ) + + ( - col2 ) / col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4252
SELECT - CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4252
SELECT - CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL col0 * + col0 AS col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL cor0.col2 * 35 FROM tab0 AS cor0
----
1155
2870
35

query I rowsort
SELECT DISTINCT - 68 AS col1 FROM tab0 cor0
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 20 * - 20 col1 FROM tab2 AS cor0
----
-400
-400
-400

query I rowsort
SELECT ALL + ( 45 ) FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT + - 64 AS col2 FROM tab0 AS cor0
----
-64
-64
-64

query I rowsort
SELECT + 9 * col0 FROM tab0
----
216
315
801

query I rowsort
SELECT ALL ( col2 ) + + 97 - 95 * + col2 FROM tab2
----
-2347
-2441
-3475

query I rowsort
SELECT 40 * tab2.col1 - - col2 FROM tab2
----
1267
2386
718

query I rowsort
SELECT DISTINCT + 28 * col2 AS col0 FROM tab1 AS cor0
----
1512
1596
2688

query I rowsort
SELECT - col0 - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4264
SELECT + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4264
SELECT + col0 / col0 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col0 * col1 + - 31 AS col2 FROM tab1 AS cor0
----
1009
47
609

query I rowsort
SELECT + col0 - col0 * + col1 * col1 FROM tab0 AS cor0
----
-177480
-329280
-736920

onlyif mysql # use DIV operator for integer division
query I rowsort label-4267
SELECT - col0 - - col0 DIV ( + 11 ) FROM tab2 cor0
----
-7
-71
-72

skipif mysql # not compatible
query I rowsort label-4267
SELECT - col0 - - col0 / ( + 11 ) FROM tab2 cor0
----
-7
-71
-72

query I rowsort
SELECT + ( - col0 ) * + ( col0 ) AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4269
SELECT col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4269
SELECT col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4270
SELECT ALL + col1 DIV - 51 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL + col1 / - 51 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - + col2 + + 93 * + col0 AS col0 FROM tab2 AS cor0
----
624
7228
7309

query I rowsort
SELECT DISTINCT - + cor0.col0 * ( cor0.col1 ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-4275
SELECT DISTINCT - col0 + cor0.col1 DIV 31 col2 FROM tab2 cor0
----
-6
-77
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT - col0 + cor0.col1 / 31 col2 FROM tab2 cor0
----
-6
-77
-79

query I rowsort
SELECT ALL col1 + col0 * - 19 FROM tab2 AS cor0
----
-102
-1423
-1484

onlyif mysql # use DIV operator for integer division
query I rowsort label-4277
SELECT col0 DIV + ( 2 ) FROM tab2 AS cor0
----
3
39
39

skipif mysql # not compatible
query I rowsort label-4277
SELECT col0 / + ( 2 ) FROM tab2 AS cor0
----
3
39
39

query I rowsort
SELECT ALL col1 * cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4279
SELECT + col1 * - CAST( 48 AS SIGNED ) + col0 FROM tab2 AS cor0
----
-1481
-2754
-737

skipif mysql # not compatible
query I rowsort label-4279
SELECT + col1 * - CAST ( 48 AS INTEGER ) + col0 FROM tab2 AS cor0
----
-1481
-2754
-737

query I rowsort
SELECT + col1 * col1 + 23 + col1 FROM tab0 cor0
----
7505
8395
9529

query I rowsort
SELECT ALL + col1 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT col2 - - col0 FROM tab0
----
171
36
57

query I rowsort
SELECT col0 * - col0 - + cor0.col2 FROM tab1 cor0
----
-4153
-63
-6496

query I rowsort
SELECT ALL + col2 * - col1 + col2 + - col2 * - 96 FROM tab2 AS cor0
----
1782
3040
988

query I rowsort
SELECT 90 AS col0 FROM tab1
----
90
90
90

query I rowsort
SELECT ALL col1 - - ( + 38 ) AS col0 FROM tab2 AS cor0
----
55
69
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 + + 14 col1 FROM tab2 cor0
----
31
45
73

query I rowsort
SELECT ALL - - col0 * col1 + + col0 * - col1 + - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - col2 - + ( 3 ) FROM tab2 AS cor0
----
-29
-30
-41

query I rowsort
SELECT - tab2.col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT col0 * + 11 + col1 + + col2 AS col1 FROM tab2 cor0
----
135
924
943

query I rowsort
SELECT DISTINCT - - col0 * 22 + 42 FROM tab1 AS cor0
----
108
1450
1802

query I rowsort
SELECT ALL col2 - col2 * ( - col1 ) * + col2 FROM tab2
----
22626
24586
39910

query I rowsort
SELECT DISTINCT - + col1 - col2 * 93 FROM tab1 AS cor0
----
-5048
-5311
-8941

query I rowsort
SELECT col0 - col0 * + ( + col1 ) AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL - - col1 * col1 + 11 AS col0 FROM tab1 AS cor0
----
111
180
687

query I rowsort
SELECT ALL col1 + 8 FROM tab1
----
18
21
34

query I rowsort
SELECT ALL - col0 + - tab1.col2 AS col1 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT + 98 + col2 FROM tab1 AS cor0
----
152
155
194

query I rowsort
SELECT 21 + ( - col1 ) FROM tab0 cor0
----
-65
-70
-76

query I rowsort
SELECT - col0 * - tab2.col2 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT 98 FROM tab1, tab0 AS cor0
----
98

query I rowsort
SELECT ALL + 88 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT ALL + col1 + + 14 AS col1 FROM tab1
----
24
27
40

query I rowsort
SELECT ALL + 56 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT + - 41 + - col0 * + col2 * + col2 AS col2 FROM tab2 cor0
----
-114117
-5144
-52769

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT col1 * col2 - + col1 * col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - - 81 + - col2 * - 69 * col1 AS col1 FROM tab0 AS cor0
----
195903
514959
6774

query I rowsort
SELECT DISTINCT - tab1.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-54
-57
-96

query I rowsort
SELECT ALL 53 FROM tab2, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL 87 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT + col0 + + col0 * ( tab1.col2 * + col1 ) AS col1 FROM tab1
----
36544
4215
99920

query I rowsort
SELECT ALL + 96 + + col0 FROM tab1 AS cor0
----
160
176
99

query I rowsort
SELECT ALL + 95 - col2 AS col0 FROM tab1 AS cor0
----
-1
38
41

query I rowsort
SELECT DISTINCT - + 68 AS col1 FROM tab0 AS cor0
----
-68

query I rowsort
SELECT ALL cor0.col2 + col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + cor0.col2 + cor0.col0 * - ( - col1 ) AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - cor0.col1 * col0 * - 15 FROM tab1 AS cor0
----
1170
15600
9600

query I rowsort
SELECT ALL col2 * - col1 + 91 FROM tab1 AS cor0
----
-1157
-1313
-479

query I rowsort
SELECT 90 * - col1 AS col0 FROM tab1 AS cor0
----
-1170
-2340
-900

query I rowsort
SELECT DISTINCT - ( col1 ) * 23 * - 35 AS col0 FROM tab0 AS cor0
----
69230
73255
78085

query I rowsort
SELECT + ( + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - 85 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 52d0d7df19a17e2c727a9028680c1c2f

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4329
SELECT - + CAST( 75 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-1275
-2325
-4425

skipif mysql # not compatible
query I rowsort label-4329
SELECT - + CAST ( 75 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-1275
-2325
-4425

query I rowsort
SELECT - col1 + - cor0.col0 * col0 FROM tab0 AS cor0
----
-1322
-662
-8012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4331
SELECT + + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4331
SELECT + + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 40e4acd618698dd2305f1f7b8b547f7a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col2 FROM tab0
----
-4
-4
-4

query I rowsort
SELECT ALL - ( col2 + col2 ) FROM tab0
----
-164
-2
-66

query I rowsort
SELECT + 48 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT + - 46 + col1 * col2 FROM tab0 AS cor0
----
2792
51
7416

query I rowsort
SELECT ALL - + col1 + col0 * - 76 FROM tab2 AS cor0
----
-563
-5987
-6021

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4338
SELECT ALL - col2 + + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - col2 + + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 96 AS col1 FROM tab1 cor0
----
96

query I rowsort
SELECT tab2.col2 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + tab2.col1 col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT - 9 * - col1 - - col2 * col2 FROM tab1
----
3150
3339
9333

query I rowsort
SELECT ALL - ( 30 ) AS col2 FROM tab2
----
-30
-30
-30

query I rowsort
SELECT - - col1 * + col1 + - 48 * - cor0.col1 * 15 FROM tab1 AS cor0
----
19396
7300
9529

query I rowsort
SELECT + col1 * col2 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT - - col2 * + col2 * - col0 AS col1 FROM tab0 cor0
----
-26136
-35
-598436

query I rowsort
SELECT - col1 * cor0.col2 - + 30 FROM tab0 AS cor0
----
-127
-2868
-7492

query I rowsort
SELECT DISTINCT - tab1.col1 + - 68 FROM tab1, tab1 AS cor0
----
-78
-81
-94

query I rowsort
SELECT ALL ( col1 ) + col0 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - col0 + tab0.col1 FROM tab0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col2 * + col2 col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT 68 + 52 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 91f9e9255675d23f0a69e18018d9daf1

query I rowsort
SELECT - col2 + + 23 FROM tab1 AS cor0
----
-31
-34
-73

query I rowsort
SELECT - col0 * cor0.col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT - col2 + - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT col0 + 80 FROM tab1 AS cor0
----
144
160
83

query I rowsort
SELECT DISTINCT - + cor0.col2 * ( - col0 ) FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col0 col2 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col0 col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT col1 * - 73 FROM tab2
----
-1241
-2263
-4307

onlyif mysql # use DIV operator for integer division
query I rowsort label-4361
SELECT col0 DIV - 50 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4361
SELECT col0 / - 50 FROM tab2
----
-1
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4362
SELECT - col2 DIV - ( - col2 ) AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4362
SELECT - col2 / - ( - col2 ) AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL 67 * + ( + cor0.col2 ) FROM tab1 cor0
----
3618
3819
6432

query I rowsort
SELECT - col2 * ( + ( + col2 ) ) FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT + col2 * 36 FROM tab2
----
1368
936
972

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4366
SELECT ALL + CAST( - 56 AS SIGNED ) FROM tab2, tab2 cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL + CAST ( - 56 AS INTEGER ) FROM tab2, tab2 cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4367
SELECT col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4368
SELECT cor0.col2 * + col2 + + col2 DIV col0 FROM tab1 AS cor0
----
2934
3249
9217

skipif mysql # not compatible
query I rowsort label-4368
SELECT cor0.col2 * + col2 + + col2 / col0 FROM tab1 AS cor0
----
2934
3249
9217

onlyif mysql # use DIV operator for integer division
query I rowsort label-4369
SELECT DISTINCT col1 + - tab1.col0 DIV 56 - col2 col2 FROM tab1
----
-28
-48
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT col1 + - tab1.col0 / 56 - col2 col2 FROM tab1
----
-28
-48
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4370
SELECT col2 DIV - ( tab1.col2 * tab1.col0 + - 21 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4370
SELECT col2 / - ( tab1.col2 * tab1.col0 + - 21 ) FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4371
SELECT - CAST( - col2 AS SIGNED ) + - col2 * col0 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

skipif mysql # not compatible
query I rowsort label-4371
SELECT - CAST ( - col2 AS INTEGER ) + - col2 * col0 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4372
SELECT - CAST( - 40 AS SIGNED ) FROM tab0 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-4372
SELECT - CAST ( - 40 AS INTEGER ) FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT + tab2.col0 * ( - tab2.col2 ) - ( + tab2.col0 * - col0 ) AS col1 FROM tab2
----
-140
3239
4056

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998

query I rowsort
SELECT col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + 91 * + cor0.col2 + + col0 AS col1 FROM tab1 AS cor0
----
4917
5251
8816

query I rowsort
SELECT DISTINCT + col0 - 91 AS col2 FROM tab1 cor0
----
-11
-27
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4378
SELECT DISTINCT + CAST( - col2 AS SIGNED ) - col2 FROM tab0 AS cor0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) - col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT + + col1 * cor0.col2 + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL col2 + col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + + col1 * + 18 AS col2 FROM tab1 cor0
----
180
234
468

query I rowsort
SELECT DISTINCT - col1 * - 52 FROM tab1 AS cor0
----
1352
520
676

query I rowsort
SELECT DISTINCT - ( 62 ) FROM tab2 AS cor0
----
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4384
SELECT - CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT - CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - col0 * col0 AS col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT + 76 + - ( col0 ) * 32 AS col0 FROM tab1 AS cor0
----
-1972
-20
-2484

onlyif mysql # use DIV operator for integer division
query I rowsort label-4387
SELECT DISTINCT - 2 DIV 30 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT - 2 / 30 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT + tab1.col0 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL 7 * - tab0.col0 * col0 AS col0 FROM tab0
----
-4032
-55447
-8575

query I rowsort
SELECT - 47 * - col0 FROM tab2 AS cor0
----
329
3666
3713

query I rowsort
SELECT col2 + col1 * 9 FROM tab0 AS cor0
----
807
874
901

query I rowsort
SELECT - + cor0.col1 * col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - col0 + 13 * - col1 - col2 AS col0 FROM tab0 cor0
----
-1175
-1297
-1354

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4394
SELECT col0 + - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT col0 + - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col0 * + 35 FROM tab0 AS cor0
----
118825
283465
72240

query I rowsort
SELECT - tab0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT ALL - + col1 + col0 + - col2 AS col0 FROM tab0 AS cor0
----
-63
-84
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - col2 - - col0 col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT 84 + cor0.col2 FROM tab1 AS cor0
----
138
141
180

query I rowsort
SELECT ALL col2 * col2 + - col2 * col2 + + col2 * ( col0 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + 42 FROM tab2 cor0
----
42
42
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-4402
SELECT DISTINCT + - col0 DIV col0 + + col0 AS col2 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT + - col0 / col0 + + col0 AS col2 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT - col2 - - col1 * - col2 FROM tab2 AS cor0
----
-1560
-684
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col0 col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT cor0.col2 + col0 + + col1 * col0 FROM tab2 AS cor0
----
1460
251
4706

query I rowsort
SELECT + + 67 * col2 + + 74 AS col0 FROM tab2 AS cor0
----
1816
1883
2620

query I rowsort
SELECT - 7 + col0 AS col0 FROM tab2 cor0
----
0
71
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 - col1 col0 FROM tab1
----
-68
-71
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4409
SELECT ALL col1 - col0 DIV col0 AS col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL col1 - col0 / col0 AS col1 FROM tab2
----
16
30
58

query I rowsort
SELECT DISTINCT 7 - col0 FROM tab2
----
-71
-72
0

query I rowsort
SELECT ALL - col1 * + col1 - 20 * 13 * col2 AS col1 FROM tab2 AS cor0
----
-10169
-10241
-7981

query I rowsort
SELECT - col0 + + col0 * 91 AS col0 FROM tab1 AS cor0
----
270
5760
7200

query I rowsort
SELECT - 79 AS col2 FROM tab1
----
-79
-79
-79

query I rowsort
SELECT + 15 * col1 FROM tab2
----
255
465
885

query I rowsort
SELECT 71 - - 69 FROM tab1
----
140
140
140

query I rowsort
SELECT col2 + col0 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT - ( col0 ) * tab2.col2 + col1 * col2 + tab2.col2 AS col2 FROM tab2
----
-2318
-468
675

query I rowsort
SELECT DISTINCT + col2 * + col0 + 52 AS col0 FROM tab2
----
2080
241
3054

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4419
SELECT ALL col2 * col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL col2 * col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - ( + cor0.col1 ) * col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4421
SELECT ALL - cor0.col0 DIV - col1 + col2 + col1 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL - cor0.col0 / - col1 + col2 + col1 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4422
SELECT DISTINCT + + col2 DIV + col0 + col1 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT + + col2 / + col0 + col1 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab0 AS cor2, tab1 AS cor3
----
13122 values hashing to 94657c8c1d9dda82be248377944370da

query I rowsort
SELECT DISTINCT 88 AS col1 FROM tab1, tab1 AS cor0
----
88

query I rowsort
SELECT DISTINCT + cor0.col2 - col1 * col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT + ( ( col1 ) ) - + 76 AS col0 FROM tab1 AS cor0
----
-50
-63
-66

query I rowsort
SELECT - col1 * - 35 FROM tab0 AS cor0
----
3010
3185
3395

query I rowsort
SELECT ALL 70 FROM tab2, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # use DIV operator for integer division
query I rowsort label-4430
SELECT DISTINCT - 73 + + tab0.col1 DIV - col0 AS col0 FROM tab0
----
-74
-75
-76

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT - 73 + + tab0.col1 / - col0 AS col0 FROM tab0
----
-74
-75
-76

query I rowsort
SELECT DISTINCT - tab1.col1 + - col2 * col1 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT ALL - 58 + col2 AS col2 FROM tab0 AS cor0
----
-25
-57
24

query I rowsort
SELECT ALL + col1 - col0 AS col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - col0 - col1 * + col0 AS col1 FROM tab1 cor0
----
-1120
-704
-81

query I rowsort
SELECT - 44 FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT ALL + cor0.col1 * col0 + cor0.col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL 94 AS col0 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab1 AS cor0
----
29

query I rowsort
SELECT + + 56 * - 34 AS col2 FROM tab2 cor0
----
-1904
-1904
-1904

query I rowsort
SELECT ALL - - 99 AS col1 FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT + ( col2 ) * col2 * - 33 AS col0 FROM tab2 AS cor0
----
-22308
-24057
-47652

query I rowsort
SELECT ALL - + 14 FROM tab0 AS cor0
----
-14
-14
-14

query I rowsort
SELECT ALL + - 91 + 98 AS col0 FROM tab2 cor0
----
7
7
7

query I rowsort
SELECT ALL + 17 * + col0 + col2 FROM tab1 cor0
----
105
1145
1456

query I rowsort
SELECT DISTINCT 35 + col2 AS col0 FROM tab1 AS cor0
----
131
89
92

query I rowsort
SELECT ALL - col2 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4447
SELECT ALL - 10 * col2 + + col0 DIV + col0 FROM tab0 AS cor0
----
-329
-819
-9

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL - 10 * col2 + + col0 / + col0 FROM tab0 AS cor0
----
-329
-819
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4448
SELECT DISTINCT CAST( 58 AS SIGNED ) FROM tab0 cor0
----
58

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT CAST ( 58 AS INTEGER ) FROM tab0 cor0
----
58

query I rowsort
SELECT - col2 + col1 - cor0.col2 FROM tab1 AS cor0
----
-104
-179
-82

query I rowsort
SELECT ALL cor0.col2 + col2 * 65 FROM tab0 AS cor0
----
2178
5412
66

query I rowsort
SELECT - 91 * - col0 + 83 - col0 AS col2 FROM tab0 AS cor0
----
2243
3233
8093

query I rowsort
SELECT DISTINCT cor0.col2 * + col2 FROM tab1 cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-4453
SELECT col1 DIV - col2 + - col1 * - col0 AS col1 FROM tab0 AS cor0
----
2062
3298
8098

skipif mysql # not compatible
query I rowsort label-4453
SELECT col1 / - col2 + - col1 * - col0 AS col1 FROM tab0 AS cor0
----
2062
3298
8098

query I rowsort
SELECT + 83 * col1 + + 63 + col2 AS col1 FROM tab1 AS cor0
----
1238
2275
950

query I rowsort
SELECT + 68 * - col1 FROM tab1
----
-1768
-680
-884

query I rowsort
SELECT + 78 + + col1 * + col0 FROM tab2 AS cor0
----
1421
295
4680

query I rowsort
SELECT DISTINCT col1 + + ( - 1 * col2 ) + - col0 * - col2 FROM tab0 AS cor0
----
131
7307
845

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 + - cor0.col1 * col2 col2 FROM tab0 cor0
----
-194
-2924
-7553

query I rowsort
SELECT ( cor0.col1 ) - + 66 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 81508080f3c0e3e5019b22bb6b95a911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( cor0.col0 ) * - col1 col1 FROM tab0 cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-4461
SELECT + col2 DIV - ( col2 ) + - col1 AS col1 FROM tab0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-4461
SELECT + col2 / - ( col2 ) + - col1 AS col1 FROM tab0
----
-87
-92
-98

query I rowsort
SELECT DISTINCT col2 * 97 AS col2 FROM tab1
----
5238
5529
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 8 ) col2 FROM tab2, tab2 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT DISTINCT - col1 * + col2 * - 68 FROM tab2 AS cor0
----
104312
43928
56916

query I rowsort
SELECT - col2 + - 68 AS col1 FROM tab1 AS cor0
----
-122
-125
-164

query I rowsort
SELECT - - ( + 95 ) * + col2 AS col0 FROM tab0 AS cor0
----
3135
7790
95

query I rowsort
SELECT DISTINCT - + 1 * col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT col2 * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col1 * + 57 * + col1 AS col0 FROM tab1 AS cor0
----
38532
5700
9633

query I rowsort
SELECT col1 + + 18 AS col1 FROM tab1
----
28
31
44

query I rowsort
SELECT DISTINCT col1 * 89 FROM tab1
----
1157
2314
890

query I rowsort
SELECT DISTINCT - col1 * + col0 FROM tab0 WHERE NOT - col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * col0 / + col2 < NULL
----

query I rowsort
SELECT + col1 * + col0 + col0 * - tab1.col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + cor0.col2 * - col2 - col1 col0 FROM tab2 AS cor0
----
-22630
-24565
-39943

query I rowsort
SELECT col1 - col0 * + col2 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT + cor0.col1 FROM tab0 AS cor0 WHERE ( + col2 * + col2 ) IN ( - cor0.col2 * + cor0.col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + col1 col0 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 * col1 + col1 col0 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT ALL col1 - - col0 FROM tab2
----
137
38
96

query I rowsort
SELECT col1 * - col1 - col0 AS col2 FROM tab1
----
-164
-249
-679

query I rowsort
SELECT ALL col0 - col2 AS col1 FROM tab2
----
-20
41
52

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col2 IN ( col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

onlyif mysql # use DIV operator for integer division
query I rowsort label-4484
SELECT tab1.col1 + + col1 DIV col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-4484
SELECT tab1.col1 + + col1 / col1 FROM tab1
----
11
14
27

query I rowsort
SELECT ALL - col1 + tab2.col1 * col2 FROM tab2
----
1475
629
806

query I rowsort
SELECT col1 + col1 AS col1 FROM tab2 WHERE NOT + col2 / - col0 <> NULL
----

query I rowsort
SELECT col2 + + tab0.col2 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - tab0.col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * col0 / col2 BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL + col1 + col2 AS col1 FROM tab2
----
55
58
85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT IN ( - col0 * - col0 + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 + col1 col1 FROM tab1 WHERE ( NULL ) = - col2
----

query I rowsort
SELECT col0 + col2 * + tab1.col0 AS col2 FROM tab1
----
165
3712
7760

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col2 OR NOT NULL NOT BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT cor0.col2 * col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT - col1 - - cor0.col0 * col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT + col1 + col0 * + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT col2 + - tab0.col2 * - col2 AS col1 FROM tab0
----
1122
2
6806

query I rowsort
SELECT - col1 * - tab0.col0 + col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT col0 * - col2 + - col1 AS col2 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT col2 * + col1 * col2 AS col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT ALL + col2 + - col1 * col1 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT + - col1 * col0 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - col1 + - col1 * col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT col1 * + col1 * col1 AS col2 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT tab0.col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT col1 + ( ( col2 ) ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - col1 + - ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 - col2 * - col1 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col0 + + ( + ( col2 ) ) AS col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT col1 - - ( + 9 ) AS col2 FROM tab1 AS cor0
----
19
22
35

query I rowsort
SELECT ALL + + cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col0 - - ( col1 ) AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + col2 + col2 - + col0 AS col0 FROM tab2 AS cor0
----
-26
-3
47

query I rowsort
SELECT ALL - col1 + + col0 * col2 AS col0 FROM tab1 cor0
----
136
3638
7667

query I rowsort
SELECT ALL + 97 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT - col1 * tab0.col1 + col2 AS col1 FROM tab0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT + 25 AS col0 FROM tab1
----
25

query I rowsort
SELECT ALL tab2.col0 - + tab2.col1 * + col0 AS col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT - col0 + 42 AS col2 FROM tab2 AS cor0
----
-36
-37
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4522
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) + col2 FROM tab2
----
NULL

query I rowsort
SELECT tab0.col0 - col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT col0 + + col1 * col1 AS col1 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE col2 * - col0 NOT IN ( - col0 )
----
-7
-78
-79

query I rowsort
SELECT col2 + + col1 * col1 AS col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT - col0 + + tab2.col0 * + col1 AS col1 FROM tab2
----
1264
210
4524

query I rowsort
SELECT + tab0.col2 FROM tab0 WHERE ( col1 / col0 ) IN ( + col0 * + col2 + - tab0.col0 )
----

query I rowsort
SELECT ALL col2 + col0 * col1 FROM tab2
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-4530
SELECT - col2 DIV + col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4530
SELECT - col2 / + col1 AS col2 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE - col0 * + col0 + col1 NOT IN ( col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 * + tab0.col1 col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT ALL + tab1.col1 * + tab1.col0 AS col1 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4534
SELECT - col1 DIV col0 col0 FROM tab2
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4534
SELECT - col1 / col0 col0 FROM tab2
----
-4
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4535
SELECT - tab1.col1 DIV - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4535
SELECT - tab1.col1 / - col2 AS col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 col0 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT ALL + tab1.col0 + tab1.col1 AS col1 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT 26 FROM tab2 cor0
----
26
26
26

query I rowsort
SELECT + - 47 FROM tab2 AS cor0
----
-47
-47
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-4541
SELECT + ( col1 ) DIV ( cor0.col0 ) col0 FROM tab0 AS cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4541
SELECT + ( col1 ) / ( cor0.col0 ) col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT + - 45 * cor0.col0 FROM tab2 AS cor0
----
-315
-3510
-3555

onlyif mysql # use DIV operator for integer division
query I rowsort label-4543
SELECT 5 + col2 DIV - col1 AS col1 FROM tab1
----
-2
0
3

skipif mysql # not compatible
query I rowsort label-4543
SELECT 5 + col2 / - col1 AS col1 FROM tab1
----
-2
0
3

query I rowsort
SELECT 65 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT DISTINCT - col0 + + cor0.col1 * + col2 AS col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL + - 14 * col0 FROM tab1 AS cor0
----
-1120
-42
-896

query I rowsort
SELECT ALL - - 48 - col0 AS col0 FROM tab0 AS cor0
----
-41
13
24

query I rowsort
SELECT ALL col1 * col2 + + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL - - col1 + col1 * col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + col1 * 91 FROM tab2 cor0
----
1547
2821
5369

query I rowsort
SELECT DISTINCT + - cor0.col0 + cor0.col1 FROM tab0 AS cor0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col1 FROM tab0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col1 FROM tab1 cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 31 col2 FROM tab0 AS cor0
----
2666
2821
3007

query I rowsort
SELECT ALL - - col2 * ( + ( cor0.col1 ) ) + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT cor0.col1 * - 54 + col0 FROM tab0 AS cor0
----
-4620
-4825
-5203

query I rowsort
SELECT DISTINCT col2 * + 76 AS col1 FROM tab2 AS cor0
----
1976
2052
2888

query I rowsort
SELECT DISTINCT col2 * 3 AS col1 FROM tab2 AS cor0
----
114
78
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4559
SELECT ALL - col2 + CAST( col2 AS SIGNED ) * + cor0.col0 AS col2 FROM tab1 AS cor0
----
108
3591
7584

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL - col2 + CAST ( col2 AS INTEGER ) * + cor0.col0 AS col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT col2 + - cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT + col1 + + col2 + + 54 FROM tab0 AS cor0
----
152
173
227

query I rowsort
SELECT ALL + col0 * - col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col2 + + 81 FROM tab2 AS cor0
----
107
108
119

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4564
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) * col0 - col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) * col0 - col0 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 * + 86 FROM tab1 AS cor0
----
4644
4902
8256

query I rowsort
SELECT DISTINCT + col0 * - col0 + - cor0.col2 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT ALL + + col1 * cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + ( - col2 ) * + col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( cor0.col2 ) col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - + ( cor0.col2 ) + col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL + - ( col2 ) * - col0 * col2 AS col1 FROM tab2 AS cor0
----
114076
5103
52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 13 + - col0 col2 FROM tab2 cor0
----
-20
-91
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4573
SELECT + 79 DIV - cor0.col0 FROM tab2 AS cor0
----
-1
-1
-11

skipif mysql # not compatible
query I rowsort label-4573
SELECT + 79 / - cor0.col0 FROM tab2 AS cor0
----
-1
-1
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + cor0.col1 + 31 col1 FROM tab0 cor0
----
1353
693
8043

onlyif mysql # use DIV operator for integer division
query I rowsort label-4575
SELECT DISTINCT + ( + col0 ) DIV - 24 + + cor0.col0 FROM tab1 AS cor0
----
3
62
77

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT + ( + col0 ) / - 24 + + cor0.col0 FROM tab1 AS cor0
----
3
62
77

query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) * col0 * - col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT - - col1 * cor0.col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1, tab0 AS cor0
----
3
64
80

query I rowsort
SELECT col1 * 33 FROM tab2
----
1023
1947
561

query I rowsort
SELECT - 85 + tab2.col2 * + 9 FROM tab2
----
149
158
257

onlyif mysql # use DIV operator for integer division
query I rowsort label-4582
SELECT col2 DIV + col2 - col0 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-4582
SELECT col2 / + col2 - col0 FROM tab1
----
-2
-63
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT ALL + + cor0.col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL 42 FROM tab2 cor0
----
42
42
42

query I rowsort
SELECT + - 86 AS col1 FROM tab1 AS cor0
----
-86
-86
-86

query I rowsort
SELECT ( tab2.col1 ) FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + col1 + - tab2.col1 * - tab2.col1 * 98 AS col0 FROM tab2
----
28339
341197
94209

query I rowsort
SELECT + 44 + - col2 AS col2 FROM tab2 AS cor0
----
17
18
6

query I rowsort
SELECT ALL tab1.col1 * - col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT + 36 + + col1 FROM tab1
----
46
49
62

query I rowsort
SELECT ALL - col1 + + col2 * col2 + col0 FROM tab0 AS cor0
----
-61
1027
6722

query I rowsort
SELECT ALL - + col0 * col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL 63 + col2 * - col2 + tab0.col1 FROM tab0
----
-6570
-940
159

query I rowsort
SELECT DISTINCT 68 + tab0.col0 * + col0 + tab0.col0 FROM tab0
----
1328
668
8078

query I rowsort
SELECT ALL - 55 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4597
SELECT ALL 56 + col2 + + col1 DIV - col2 FROM tab1
----
110
113
152

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL 56 + col2 + + col1 / - col2 FROM tab1
----
110
113
152

query I rowsort
SELECT + col0 * + col0 * - tab2.col1 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT + cor0.col2 + + col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - 68 * col1 - col1 * col2 FROM tab2 AS cor0
----
-1802
-2945
-5546

query I rowsort
SELECT DISTINCT + - col0 + - col0 * + cor0.col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT - 50 * + cor0.col2 - + col1 * col0 FROM tab0 cor0
----
-12199
-3445
-3714

query I rowsort
SELECT DISTINCT - 71 + 37 FROM tab0 AS cor0
----
-34

query I rowsort
SELECT DISTINCT + col0 + - 1 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT ALL + ( 28 ) FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT DISTINCT 26 FROM tab1 AS cor0
----
26

query I rowsort
SELECT DISTINCT - 45 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT ALL 48 + - col1 * col0 FROM tab0 AS cor0
----
-2016
-3347
-8051

query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - + col0 * - col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - col2 + + col1 AS col0 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL - + 67 AS col2 FROM tab2 AS cor0
----
-67
-67
-67

query I rowsort
SELECT 17 * col0 * col1 FROM tab2 AS cor0
----
22831
3689
78234

query I rowsort
SELECT col1 * col0 + col0 + col1 * col2 FROM tab1 AS cor0
----
1274
1485
2368

query I rowsort
SELECT ALL + col1 * col0 * col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT ALL - + cor0.col2 AS col2 FROM tab2 cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * cor0.col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - col0 + col0 * cor0.col0 * + cor0.col2 FROM tab0 AS cor0
----
1190
18984
649433

query I rowsort
SELECT ALL + ( - col1 ) * col0 + col1 AS col0 FROM tab0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * col2 + col1 col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - 21 AS col2 FROM tab0, tab1 AS cor0
----
-21

query I rowsort
SELECT ( + 27 ) AS col2 FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT col1 * + tab0.col1 FROM tab0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4625
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 * + col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 * + col0 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT 45 + tab2.col0 AS col1 FROM tab2
----
123
124
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4627
SELECT - col0 * col0 + tab0.col2 DIV col2 + col1 * - col1 * 32 FROM tab0
----
-237247
-272912
-302312

skipif mysql # not compatible
query I rowsort label-4627
SELECT - col0 * col0 + tab0.col2 / col2 + col1 * - col1 * 32 FROM tab0
----
-237247
-272912
-302312

query I rowsort
SELECT DISTINCT col0 - col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 32 - col0 * ( col0 ) FROM tab2
----
-17
-6052
-6209

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4630
SELECT tab2.col0 + + tab2.col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4630
SELECT tab2.col0 + + tab2.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4631
SELECT ALL col2 / col1 + + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL col2 / col1 + + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab0 AS cor0, tab1 AS cor1
----
972 values hashing to 82e15d5967b272804e574774895a0222

onlyif mysql # use DIV operator for integer division
query I rowsort label-4633
SELECT - col2 * col1 + + CAST( + ( + col0 ) AS SIGNED ) - cor0.col1 DIV 54 FROM tab1 cor0
----
-1168
-1401
-506

skipif mysql # not compatible
query I rowsort label-4633
SELECT - col2 * col1 + + CAST ( + ( + col0 ) AS INTEGER ) - cor0.col1 / 54 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL 57 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # use DIV operator for integer division
query I rowsort label-4635
SELECT ALL col0 DIV + 22 col1 FROM tab2
----
0
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL col0 / + 22 col1 FROM tab2
----
0
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4636
SELECT - - cor0.col2 DIV 42 AS col0 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4636
SELECT - - cor0.col2 / 42 AS col0 FROM tab1 AS cor0
----
1
1
2

query I rowsort
SELECT + col1 * + ( + col0 ) FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-4639
SELECT cor0.col2 * + col0 DIV - col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4639
SELECT cor0.col2 * + col0 / - col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 92 - - cor0.col0 * ( - cor0.col2 ) AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-3556
-70
-7588

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4641
SELECT col2 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT col2 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col2 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT + - tab1.col1 * - 42 FROM tab1, tab0, tab0 AS cor0, tab2
----
1092
420
546

query I rowsort
SELECT - col1 * 18 FROM tab1 AS cor0
----
-180
-234
-468

query I rowsort
SELECT + col2 + - 72 * - col1 AS col0 FROM tab0 AS cor0
----
6225
6634
6985

query I rowsort
SELECT col1 * 22 * - col0 AS col0 FROM tab1 AS cor0
----
-14080
-1716
-22880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4648
SELECT DISTINCT - - CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT tab1.col2 * ( - col0 ) AS col0 FROM tab1
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4651
SELECT col0 + col0 DIV col1 col0 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4651
SELECT col0 + col0 / col1 col0 FROM tab0
----
24
35
89

query I rowsort
SELECT col0 * - 67 + + col0 AS col2 FROM tab0
----
-1584
-2310
-5874

query I rowsort
SELECT + - 70 * - col1 FROM tab1 cor0
----
1820
700
910

query I rowsort
SELECT DISTINCT col2 * + 88 AS col2 FROM tab0 cor0
----
2904
7216
88

query I rowsort
SELECT ALL + col2 + - 47 * col1 AS col2 FROM tab0 AS cor0
----
-4009
-4195
-4558

query I rowsort
SELECT DISTINCT cor0.col0 * col2 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT 34 + cor0.col2 * - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1410
-642
-695

onlyif mysql # use DIV operator for integer division
query I rowsort label-4658
SELECT 45 + cor0.col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
-52
43
44

skipif mysql # not compatible
query I rowsort label-4658
SELECT 45 + cor0.col1 / - col2 AS col1 FROM tab0 AS cor0
----
-52
43
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4659
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4660
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 86 * col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 86 * col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 26 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 92c9dcf04a06d25c174ffa715aa22fcf

query I rowsort
SELECT DISTINCT + 84 AS col2 FROM tab1, tab2 AS cor0
----
84

query I rowsort
SELECT ALL + 71 * col2 + + col0 AS col1 FROM tab1 AS cor0
----
3837
4111
6896

query I rowsort
SELECT ALL - 96 AS col1 FROM tab1 AS cor0
----
-96
-96
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4665
SELECT + col0 DIV cor0.col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4665
SELECT + col0 / cor0.col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col2 + - col1 * - col1 AS col1 FROM tab1 AS cor0
----
157
265
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col0 FROM tab2
----
-54
-54
-54

query I rowsort
SELECT DISTINCT - cor0.col0 + ( col0 ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4669
SELECT + 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-4669
SELECT + col1 + + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + - 49 * col2 * col0 - + 51 FROM tab2 AS cor0
----
-147111
-9285
-99397

query I rowsort
SELECT col2 * - col1 + col1 * - col2 FROM tab0 AS cor0
----
-14924
-194
-5676

query I rowsort
SELECT DISTINCT 70 * + col2 AS col0 FROM tab0
----
2310
5740
70

query I rowsort
SELECT ALL + - col2 * col1 + + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 * ( + col1 ) col2 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL + col0 * + col0 + - ( - col0 ) FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + tab0.col2 - cor0.col1 AS col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 8d4f084d3560870b9fbbdc5acc1f3ed3

query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT + - col0 * - col1 + ( col2 ) FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - col1 * 48 * 94 AS col0 FROM tab0 cor0
----
-388032
-410592
-437664

query I rowsort
SELECT 71 + - tab1.col1 * col1 AS col0 FROM tab1
----
-29
-605
-98

query I rowsort
SELECT + tab1.col1 * + col2 + 1 AS col0 FROM tab1
----
1249
1405
571

query I rowsort
SELECT ALL 63 * + col1 AS col1 FROM tab1
----
1638
630
819

query I rowsort
SELECT DISTINCT + + cor0.col1 + - col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + col2 * + col1 - col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT cor0.col2 * col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4686
SELECT - col2 + + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT - col2 + + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - col0 * - col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + col1 * col2 * - col0 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + - col2 * 4 FROM tab2 cor0
----
-104
-108
-152

query I rowsort
SELECT - 7 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT - + col2 + + ( col1 ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL tab1.col2 * col1 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + cor0.col0 * + 37 * col1 AS col0 FROM tab0 AS cor0
----
125615
299663
76368

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4694
SELECT ALL + - cor0.col2 * CAST( + ( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL + - cor0.col2 * CAST ( + ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT col0 * - col2 + + col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT col0 * 6 AS col0 FROM tab1 AS cor0
----
18
384
480

query I rowsort
SELECT - + col2 * - ( + col0 ) + - cor0.col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4698
SELECT ALL - + col0 + + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL - + col0 + + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL + 92 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT ALL + col0 * + cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT + 24 * ( + col1 ) FROM tab1 AS cor0
----
240
312
624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 19 + 83 + col1 col2 FROM tab0 cor0
----
188
193
199

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4703
SELECT DISTINCT CAST( - col0 AS SIGNED ) + col2 * + 14 + col0 AS col2 FROM tab0
----
1148
14
462

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT CAST ( - col0 AS INTEGER ) + col2 * + 14 + col0 AS col2 FROM tab0
----
1148
14
462

onlyif mysql # use DIV operator for integer division
query I rowsort label-4704
SELECT DISTINCT + + 6 DIV - 97 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT + + 6 / - 97 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - ( - 9 ) + - col1 FROM tab1 AS cor0
----
-1
-17
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4706
SELECT - CAST( NULL AS DECIMAL ) + - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4706
SELECT - CAST ( NULL AS REAL ) + - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 45 * col1 + col2 AS col2 FROM tab1 AS cor0
----
-1116
-393
-489

query I rowsort
SELECT DISTINCT + ( + col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + - col0 + + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4710
SELECT ALL - - cor0.col2 DIV - col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL - - cor0.col2 / - col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + - col1 * + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4712
SELECT ALL + CAST( NULL AS SIGNED ) * col1 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-4712
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + 71 + - col2 AS col2 FROM tab1 AS cor0
----
-38
-9
4

query I rowsort
SELECT DISTINCT - - col2 * - col0 AS col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col1 * col0 * - col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT 5 FROM tab1 AS cor0
----
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-4717
SELECT DISTINCT + - 43 + + col0 DIV ( - col2 ) AS col1 FROM tab1 AS cor0
----
-43
-44

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT + - 43 + + col0 / ( - col2 ) AS col1 FROM tab1 AS cor0
----
-43
-44

query I rowsort
SELECT - + ( + cor0.col1 ) * + ( + col2 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + col0 * col1 + col0 FROM tab2
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4720
SELECT DISTINCT - col2 + col0 DIV 87 AS col2 FROM tab0 AS cor0
----
-1
-33
-81

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT - col2 + col0 / 87 AS col2 FROM tab0 AS cor0
----
-1
-33
-81

query I rowsort
SELECT - col1 * col0 + col1 + col2 AS col2 FROM tab2 cor0
----
-1288
-159
-4517

query I rowsort
SELECT DISTINCT + col2 + col0 AS col2 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - cor0.col1 + col1 * col1 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4724
SELECT cor0.col0 DIV col2 + - col1 DIV + col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4724
SELECT cor0.col0 / col2 + - col1 / + col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort
SELECT + 11 + cor0.col1 * + CAST ( 17 AS REAL ) FROM tab0 AS cor0
----
1473
1558
1660

query I rowsort
SELECT DISTINCT - 77 + cor0.col1 FROM tab2, tab1, tab1 AS cor0
----
-51
-64
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 98 col2 FROM tab0
----
184
189
195

query I rowsort
SELECT 84 + col1 FROM tab1 cor0
----
110
94
97

query I rowsort
SELECT - ( cor0.col0 ) + 12 FROM tab0 AS cor0
----
-12
-23
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + col0 + ( + col1 ) col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT - 25 * col2 + - col2 AS col1 FROM tab0
----
-2132
-26
-858

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4732
SELECT - col1 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT - col1 + + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 - - col1 FROM tab2
----
55
58
85

query I rowsort
SELECT col1 * + col1 + + col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT - + col0 * 97 - - col2 AS col1 FROM tab2 AS cor0
----
-652
-7540
-7625

query I rowsort
SELECT 25 * col0 FROM tab0
----
2225
600
875

query I rowsort
SELECT DISTINCT + 14 AS col0 FROM tab0
----
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4738
SELECT ALL CAST( NULL AS SIGNED ) * + tab2.col2 + col2 * 4 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL CAST ( NULL AS INTEGER ) * + tab2.col2 + col2 * 4 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 18 + - col1 * col0 FROM tab1
----
-1058
-658
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4740
SELECT DISTINCT + col1 DIV + cor0.col0 FROM tab2 cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT + col1 / + cor0.col0 FROM tab2 cor0
----
0
4

query I rowsort
SELECT - cor0.col0 - - col1 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 - - ( col1 ) col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - 68 * cor0.col2 - col1 FROM tab2 AS cor0
----
-1827
-1867
-2601

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

query I rowsort
SELECT - + col0 * col1 - col2 * 11 FROM tab1 AS cor0
----
-1267
-2096
-672

query I rowsort
SELECT ALL + col0 + col0 * + col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL - + col1 * ( - 64 ) - col1 FROM tab1 AS cor0
----
1638
630
819

query I rowsort
SELECT DISTINCT - 15 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-15

query I rowsort
SELECT - tab2.col2 * 79 - 63 AS col1 FROM tab2
----
-2117
-2196
-3065

query I rowsort
SELECT + tab0.col1 * tab0.col2 * col2 AS col0 FROM tab0
----
611884
93654
97

query I rowsort
SELECT + 19 FROM tab0, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT - 73 * tab1.col0 FROM tab1
----
-219
-4672
-5840

query I rowsort
SELECT - 79 AS col0 FROM tab1
----
-79
-79
-79

query I rowsort
SELECT col0 * + ( + col0 * - col2 ) FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT col0 - col0 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col1 * col2 + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - cor0.col1 * - cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - - col2 * + 53 + + col0 FROM tab1 AS cor0
----
2865
3085
5168

query I rowsort
SELECT DISTINCT 26 FROM tab2, tab0 AS cor0
----
26

query I rowsort
SELECT DISTINCT + 39 * - ( col0 ) FROM tab1
----
-117
-2496
-3120

query I rowsort
SELECT - ( - col0 ) * col0 AS col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT 84 AS col0 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT 66 + - col0 FROM tab1 AS cor0
----
-14
2
63

query I rowsort
SELECT + 59 * + col2 * col2 AS col1 FROM tab2 AS cor0
----
39884
43011
85196

query I rowsort
SELECT - ( tab0.col2 ) AS col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT + col2 + col2 * - 20 FROM tab1 AS cor0
----
-1026
-1083
-1824

query I rowsort
SELECT + ( - col0 ) * cor0.col1 + ( col0 ) * 92 FROM tab1 AS cor0
----
198
5248
6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4769
SELECT 0 * col2 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4769
SELECT 0 * col2 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + + col1 AS col0 FROM tab0 cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4771
SELECT - col2 + cor0.col0 DIV + ( col1 ) + col1 col1 FROM tab1 AS cor0
----
-28
-41
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4771
SELECT - col2 + cor0.col0 / + ( col1 ) + col1 col1 FROM tab1 AS cor0
----
-28
-41
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col1 + col2 col1 FROM tab1
----
109
67
80

query I rowsort
SELECT 27 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

onlyif mysql # use DIV operator for integer division
query I rowsort label-4774
SELECT + col0 DIV col1 + - ( col2 * + col2 ) AS col2 FROM tab0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-4774
SELECT + col0 / col1 + - ( col2 * + col2 ) AS col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT + 72 + + col2 AS col2 FROM tab1
----
126
129
168

query I rowsort
SELECT ALL - col0 * - col0 + 47 FROM tab2
----
6131
6288
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4777
SELECT + tab2.col0 - col2 DIV - 38 AS col1 FROM tab2
----
7
78
80

skipif mysql # not compatible
query I rowsort label-4777
SELECT + tab2.col0 - col2 / - 38 AS col1 FROM tab2
----
7
78
80

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 cor1, tab2, tab2 AS cor2
----
3645 values hashing to bb6428239bf7f3ea361f6a10500a581d

query I rowsort
SELECT + + col1 + - col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL col0 + - col2 * + 0 FROM tab1
----
3
64
80

query I rowsort
SELECT 10 * - col1 + - col2 FROM tab0 AS cor0
----
-893
-971
-992

query I rowsort
SELECT + - col0 + 48 FROM tab1 AS cor0
----
-16
-32
45

query I rowsort
SELECT DISTINCT + col2 * 51 AS col2 FROM tab0 AS cor0
----
1683
4182
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-4784
SELECT + + col1 DIV - 86 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4784
SELECT + + col1 / - 86 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + ( 64 ) FROM tab0 AS cor0
----
150
155
161

onlyif mysql # use DIV operator for integer division
query I rowsort label-4786
SELECT ALL - - col0 DIV col0 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL - - col0 / col0 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col1 * + col0 * + col1 AS col2 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT + - cor0.col2 + + ( + cor0.col0 * + col0 ) + 18 FROM tab1 AS cor0
----
-27
4057
6322

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4789
SELECT DISTINCT + col1 * CAST( + col2 AS SIGNED ) + col0 * 9 FROM tab0 cor0
----
3054
412
8263

skipif mysql # not compatible
query I rowsort label-4789
SELECT DISTINCT + col1 * CAST ( + col2 AS INTEGER ) + col0 * 9 FROM tab0 cor0
----
3054
412
8263

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4790
SELECT - col0 * - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-4790
SELECT - col0 * - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + + cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + cor0.col0 + - col0 * - 19 AS col1 FROM tab0 AS cor0
----
1780
480
700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4793
SELECT + CAST( - col1 AS SIGNED ) * col1 + + 92 FROM tab0 AS cor0
----
-7304
-8189
-9317

skipif mysql # not compatible
query I rowsort label-4793
SELECT + CAST ( - col1 AS INTEGER ) * col1 + + 92 FROM tab0 AS cor0
----
-7304
-8189
-9317

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4794
SELECT + CAST( NULL AS SIGNED ) * col2 * cor0.col1 - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4794
SELECT + CAST ( NULL AS INTEGER ) * col2 * cor0.col1 - col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + col1 - col0 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-4796
SELECT + 76 * col2 DIV + col2 + col2 FROM tab0 AS cor0
----
109
158
77

skipif mysql # not compatible
query I rowsort label-4796
SELECT + 76 * col2 / + col2 + col2 FROM tab0 AS cor0
----
109
158
77

query I rowsort
SELECT DISTINCT 96 FROM tab2 AS cor0
----
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4798
SELECT DISTINCT + - cor0.col1 DIV 67 + - col0 * col2 AS col1 FROM tab0 cor0
----
-36
-7299
-793

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT + - cor0.col1 / 67 + - col0 * col2 AS col1 FROM tab0 cor0
----
-36
-7299
-793

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( col2 AS REAL ) * - col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4800
SELECT cor0.col2 * + col0 DIV - col0 - - 58 * + col0 * col1 col2 FROM tab2 AS cor0
----
12559
266890
77856

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4800
SELECT cor0.col2 * + col0 / - col0 - - 58 * + col0 * col1 col2 FROM tab2 AS cor0
----
12559
266890
77856

query I rowsort
SELECT ALL + cor0.col1 + - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT + col2 - 0 AS col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT ALL + ( col0 ) + + col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + ( col0 ) + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + col2 - + col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - + ( col1 ) * + col1 * col2 + - col0 AS col2 FROM tab0 AS cor0
----
-244092
-679131
-9444

query I rowsort
SELECT col2 * + col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT 30 AS col2 FROM tab0
----
30
30
30

query I rowsort
SELECT + cor0.col2 * 85 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 103148d8b5fd23508b2d9e1680287d72

query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + cor0.col1 col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - - col2 * + col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - 47 + col0 * + col2 * 43 + cor0.col0 AS col1 FROM tab0 cor0
----
1493
313856
34033

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4815
SELECT col2 + CAST( NULL AS SIGNED ) * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT col2 + CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( - cor0.col0 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - cor0.col1 + - col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - col1 + + 87 * 26 * - col0 AS col0 FROM tab1
----
-144778
-180973
-6812

query I rowsort
SELECT DISTINCT tab0.col1 * 36 + 8 FROM tab0
----
3104
3284
3500

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4820
SELECT col2 + - CAST( NULL AS SIGNED ) + col0 * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4820
SELECT col2 + - CAST ( NULL AS INTEGER ) + col0 * col2 FROM tab2
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 6726a15019c52908f1f1d0df0cd4c1b8

query I rowsort
SELECT ALL ( + 91 ) FROM tab2 AS cor0
----
91
91
91

query I rowsort
SELECT DISTINCT + col2 * - 30 FROM tab2 AS cor0
----
-1140
-780
-810

query I rowsort
SELECT ALL - + 59 AS col1 FROM tab2 AS cor0
----
-59
-59
-59

query I rowsort
SELECT + cor0.col0 * 85 + col2 FROM tab0 AS cor0
----
2073
2976
7647

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4826
SELECT CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4826
SELECT CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT cor0.col1 * + col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + ( 33 ) * - col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-204
-2548
-2569

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4829
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * col1 + 72 * col2 + - col0 FROM tab1 cor0
----
3209
3940
6663

skipif mysql # not compatible
query I rowsort label-4829
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * col1 + 72 * col2 + - col0 FROM tab1 cor0
----
3209
3940
6663

query I rowsort
SELECT ALL ( + 24 ) - col1 FROM tab1 AS cor0
----
-2
11
14

query I rowsort
SELECT ALL - - 10 * + col1 FROM tab0 AS cor0
----
860
910
970

onlyif mysql # use DIV operator for integer division
query I rowsort label-4832
SELECT ALL - + col2 * - col1 + col1 DIV - 47 + - 24 * - col1 AS col2 FROM tab1 AS cor0
----
1560
2028
810

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL - + col2 * - col1 + col1 / - 47 + - 24 * - col1 AS col2 FROM tab1 AS cor0
----
1560
2028
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 23 ) col2 FROM tab0 AS cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT + + 13 FROM tab2 AS cor0
----
13

query I rowsort
SELECT + col2 * 10 AS col1 FROM tab0 AS cor0
----
10
330
820

query I rowsort
SELECT DISTINCT - + col2 + col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT col1 + + 69 * col1 * - ( 43 ) FROM tab1 AS cor0
----
-29660
-38558
-77116

query I rowsort
SELECT 68 * + col0 FROM tab2 cor0
----
476
5304
5372

query I rowsort
SELECT DISTINCT + col1 - col2 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL - + 66 * + col2 + 37 AS col2 FROM tab1 AS cor0
----
-3527
-3725
-6299

query I rowsort
SELECT DISTINCT col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + + 31 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT ALL - 20 + col1 AS col2 FROM tab1 cor0
----
-10
-7
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4844
SELECT - col1 * col2 + col1 DIV + 55 AS col0 FROM tab0 AS cor0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-4844
SELECT - col1 * col2 + col1 / + 55 AS col0 FROM tab0 AS cor0
----
-2837
-7461
-96

query I rowsort
SELECT ALL - cor0.col1 * col1 * ( + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT - col2 * - col2 * - col1 AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT col0 + - col0 + + col2 * col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT + + cor0.col2 * col2 * - ( - col2 ) AS col2 FROM tab2 AS cor0
----
17576
19683
54872

onlyif mysql # use DIV operator for integer division
query I rowsort label-4849
SELECT + col2 + + col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4849
SELECT + col2 + + col0 / + col0 AS col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT DISTINCT - - col1 * 10 AS col0 FROM tab1 AS cor0
----
100
130
260

onlyif mysql # use DIV operator for integer division
query I rowsort label-4851
SELECT ALL + + col0 + - 29 DIV + col0 AS col2 FROM tab1 AS cor0
----
-6
64
80

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL + + col0 + - 29 / + col0 AS col2 FROM tab1 AS cor0
----
-6
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4852
SELECT col0 * CAST( 87 * + tab2.col1 AS SIGNED ) col0 FROM tab2
----
116841
18879
400374

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4852
SELECT col0 * CAST ( 87 * + tab2.col1 AS INTEGER ) col0 FROM tab2
----
116841
18879
400374

query I rowsort
SELECT ALL - col1 * col2 - 97 * col2 * + col0 FROM tab1 cor0
----
-17118
-354426
-746208

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 cor1, tab0, tab2 cor2
----
3645 values hashing to fa0488bdae83f58c7ffa92505e928570

query I rowsort
SELECT - col0 + ( ( col1 ) * col1 ) FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT DISTINCT + col2 + ( col0 ) AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + cor0.col0 + + 27 * col1 * cor0.col1 FROM tab1 AS cor0
----
18255
2764
4643

onlyif mysql # use DIV operator for integer division
query I rowsort label-4858
SELECT col0 DIV + 99 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4858
SELECT col0 / + 99 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col0 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col1 + + 4 * - col0 * - col0 FROM tab1 AS cor0
----
10
16374
25587

onlyif mysql # use DIV operator for integer division
query I rowsort label-4861
SELECT DISTINCT + + col1 + 29 DIV + col0 FROM tab2 cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT + + col1 + 29 / + col0 FROM tab2 cor0
----
17
35
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4862
SELECT ALL + - col0 * + CAST( NULL AS SIGNED ) + + 16 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL + - col0 * + CAST ( NULL AS INTEGER ) + + 16 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * - ( 52 + col2 ) AS col2 FROM tab1 AS cor0
----
-11840
-318
-6976

query I rowsort
SELECT + col1 - 85 * - cor0.col0 FROM tab0 AS cor0
----
2126
3072
7656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 + - col2 * col2 col2 FROM tab0 cor0
----
-15005
-8485
-9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-4866
SELECT ALL col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL col2 / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4867
SELECT + col0 - col2 DIV col2 AS col2 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-4867
SELECT + col0 - col2 / col2 AS col2 FROM tab0 AS cor0
----
23
34
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4868
SELECT - - col0 - - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4868
SELECT - - col0 - - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4869
SELECT - col2 * cor0.col0 + col2 DIV col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-791

skipif mysql # not compatible
query I rowsort label-4869
SELECT - col2 * cor0.col0 + col2 / col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-791

query I rowsort
SELECT - cor0.col1 * col0 - - 45 AS col1 FROM tab0 AS cor0
----
-2019
-3350
-8054

query I rowsort
SELECT DISTINCT - - col1 + col2 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + cor0.col0 * - col0 * + col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT - ( - col1 ) * cor0.col1 AS col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT - col0 * 65 * 91 + - col0 AS col0 FROM tab1
----
-17748
-378624
-473280

query I rowsort
SELECT - col2 * tab0.col1 AS col1 FROM tab0
----
-2838
-7462
-97

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to d24b34b0673c90715a7101e7e630fa94

query I rowsort
SELECT ALL - col0 + cor0.col2 + - 91 AS col2 FROM tab2 AS cor0
----
-132
-143
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-4878
SELECT DISTINCT col0 + + col1 DIV - 5 + ( col0 + - ( 6 ) ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
45
601
6877

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT col0 + + col1 / - 5 + ( col0 + - ( 6 ) ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
45
601
6877

query I rowsort
SELECT ALL - 62 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6

query I rowsort
SELECT 92 AS col1 FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT DISTINCT - col1 * - col1 + + ( - col0 * - col1 ) + + 28 AS col2 FROM tab0 cor0
----
12832
16408
9488

query I rowsort
SELECT DISTINCT + - col0 * cor0.col2 + 9 FROM tab2 AS cor0
----
-180
-2019
-2993

query I rowsort
SELECT ALL - - col1 + + col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT cor0.col1 + - cor0.col1 * - col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + + cor0.col0 * - ( col0 ) - + col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT + col2 + - col0 * + col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL ( + col2 ) * - col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - + 22 AS col0 FROM tab2 AS cor0
----
-22

query I rowsort
SELECT col0 + - tab1.col1 * col1 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT + col1 * + col0 + cor0.col1 * col1 * col1 AS col2 FROM tab0 AS cor0
----
638120
761670
916068

query I rowsort
SELECT col0 * col2 + col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - col1 * + col0 - - col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT col0 + col1 * tab0.col0 * col0 FROM tab0
----
118860
49560
720900

onlyif mysql # use DIV operator for integer division
query I rowsort label-4895
SELECT ALL tab1.col2 DIV + tab1.col2 FROM tab1 cor0 CROSS JOIN tab1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL tab1.col2 / + tab1.col2 FROM tab1 cor0 CROSS JOIN tab1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # use DIV operator for integer division
query I rowsort label-4896
SELECT DISTINCT - col2 DIV col0 + col1 col2 FROM tab1 AS cor0
----
10
12
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT - col2 / col0 + col1 col2 FROM tab1 AS cor0
----
10
12
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + - col1 * col0 + + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-4899
SELECT - col1 DIV - col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4899
SELECT - col1 / - col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - cor0.col0 + - cor0.col2 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4901
SELECT ALL - col2 DIV + col1 AS col2 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL - col2 / + col1 AS col2 FROM tab2
----
-2
0
0

query I rowsort
SELECT DISTINCT + col2 * + col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4903
SELECT ALL col2 DIV tab1.col1 AS col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL col2 / tab1.col1 AS col1 FROM tab1
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4904
SELECT ALL col1 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL col1 / col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 * col1 - + col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - - cor0.col0 + - col1 + - col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col2 * col2 * - col0 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT ALL - cor0.col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + tab1.col0 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # use DIV operator for integer division
query I rowsort label-4910
SELECT ALL - tab1.col0 * col0 DIV + col1 FROM tab1
----
-409
-492
0

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL - tab1.col0 * col0 / + col1 FROM tab1
----
-409
-492
0

query I rowsort
SELECT col0 + - col0 + - cor0.col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT ALL col1 * - col2 + + col1 AS col1 FROM tab0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4913
SELECT - col1 DIV cor0.col1 + + col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-4913
SELECT - col1 / cor0.col1 + + col1 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT col1 * col0 * + col1 FROM tab0
----
177504
329315
737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * tab1.col0 col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + tab1.col1 * - col0 * tab1.col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT - col2 + + col2 AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL col0 + tab1.col2 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL - + col2 * + col0 + - cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
-34
-574
297

query I rowsort
SELECT ALL col1 * + col2 + col0 * col0 + col1 FROM tab1
----
1439
4676
7661

query I rowsort
SELECT col0 - - col1 AS col0 FROM tab0 WHERE NOT col2 - col0 >= col1
----
110
132
180

query I rowsort
SELECT + cor0.col1 * col2 - 67 AS col1 FROM tab2 cor0
----
1467
579
770

onlyif mysql # use DIV operator for integer division
query I rowsort label-4923
SELECT DISTINCT - + col2 + col0 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT - + col2 + col0 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT ALL + - cor0.col2 + col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 + col0 + + col2 col1 FROM tab0
----
-2781
-61
-7291

query I rowsort
SELECT col0 + - col1 * - col0 - - col0 AS col0 FROM tab1
----
1200
768
84

query I rowsort
SELECT ALL - col0 + col1 + col2 FROM tab1
----
29
3
77

query I rowsort
SELECT - col2 * + col1 * + col2 FROM tab1
----
-119808
-32490
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-4929
SELECT ALL tab0.col0 + + col0 + + col1 DIV + tab0.col2 col0 FROM tab0
----
167
179
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL tab0.col0 + + col0 + + col1 / + tab0.col2 col0 FROM tab0
----
167
179
50

query I rowsort
SELECT DISTINCT col2 + tab1.col2 + + col2 AS col1 FROM tab1
----
162
171
288

query I rowsort
SELECT DISTINCT + col2 + col2 * - tab1.col0 + + col1 FROM tab1
----
-3581
-7571
-82

query I rowsort
SELECT + col2 + col0 * + col2 + + col1 AS col2 FROM tab1
----
242
3715
7789

query I rowsort
SELECT tab0.col0 * col0 * col2 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT NULL IN ( col0 )
----

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4936
SELECT ALL + col0 DIV - tab2.col1 + col1 FROM tab2
----
13
31
58

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL + col0 / - tab2.col1 + col1 FROM tab2
----
13
31
58

query I rowsort
SELECT + 0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4938
SELECT DISTINCT - ( col0 ) * CAST( - ( - col2 ) AS SIGNED ) + col0 - 1 FROM tab0 AS cor0
----
-1
-7210
-769

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT - ( col0 ) * CAST ( - ( - col2 ) AS INTEGER ) + col0 - 1 FROM tab0 AS cor0
----
-1
-7210
-769

query I rowsort
SELECT DISTINCT - - 54 AS col2 FROM tab0 AS cor0
----
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-4940
SELECT DISTINCT + col1 * col0 DIV - col1 - cor0.col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT + col1 * col0 / - col1 - cor0.col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL - col1 - + col2 * - col1 FROM tab1
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-4942
SELECT - col0 DIV - col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4942
SELECT - col0 / - col1 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE col1 >= - col2 * + col1 * + col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 < col2 - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4946
SELECT + tab2.col1 + col2 DIV - tab2.col1 col0 FROM tab2
----
15
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4946
SELECT + tab2.col1 + col2 / - tab2.col1 col0 FROM tab2
----
15
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4947
SELECT + col2 DIV + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4947
SELECT + col2 / + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + + col2 AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT col0 + - col1 * tab1.col1 AS col0 FROM tab1
----
-36
-673
-89

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) NOT BETWEEN NULL AND - col2
----
24
86
33

query I rowsort
SELECT tab0.col2 - col1 AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL - col2 * col1 * + col2 + col2 AS col2 FROM tab0
----
-611802
-93621
-96

query I rowsort
SELECT ALL - col2 * col0 FROM tab1 WHERE ( + col2 + col0 ) NOT IN ( col1 )
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col0 * + tab2.col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT col1 * + col1 * + tab0.col2 + col0 FROM tab0
----
244092
679131
9444

query I rowsort
SELECT DISTINCT + tab1.col1 + - tab1.col1 + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL - col2 * col1 AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT tab1.col0 * tab1.col0 AS col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT - col2 + - col2 * + col2 * - col2 FROM tab2
----
17550
19656
54834

query I rowsort
SELECT ALL col1 + col2 + col0 * - col1 FROM tab0
----
-1945
-3297
-7926

query I rowsort
SELECT col0 * tab1.col2 + - col2 * col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 - tab0.col0 FROM tab0
----
2
62

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 AND - col0 * + col2
----

query I rowsort
SELECT col1 * col2 + - col2 FROM tab0
----
2805
7380
96

query I rowsort
SELECT ALL tab1.col2 * - col0 AS col0 FROM tab1
----
-162
-3648
-7680

query III rowsort
SELECT * FROM tab2 WHERE - tab2.col2 + col0 >= ( NULL )
----

query I rowsort
SELECT ALL col1 - - col0 * tab0.col1 AS col0 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT tab1.col0 * col0 + + col1 FROM tab1
----
35
4106
6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col2 ) col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col1 * + col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - - col1 * - cor0.col1 + col2 * col0 FROM tab1 AS cor0
----
-514
3548
7511

query I rowsort
SELECT DISTINCT - ( - col2 ) * - ( - col2 ) AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - col2 - - col0 * 87 AS col1 FROM tab1 cor0
----
207
5511
6864

query I rowsort
SELECT DISTINCT + col1 * col2 + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL 65 * + col0 FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT + 91 + col1 FROM tab1 AS cor0
----
101
104
117

query I rowsort
SELECT DISTINCT col2 + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - cor0.col2 col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + col2 * - 11 FROM tab1 cor0
----
-1056
-594
-627

query I rowsort
SELECT - - col2 + - col0 + - 33 * col2 FROM tab0 AS cor0
----
-1080
-2713
-67

query I rowsort
SELECT + - col0 * - col1 + + 28 + col1 AS col0 FROM tab0 AS cor0
----
2178
3520
8218

query I rowsort
SELECT + col2 * + col0 + ( col1 ) * - col2 + - cor0.col1 FROM tab2 AS cor0
----
-679
2339
435

query I rowsort
SELECT + col1 * 6 FROM tab1 cor0
----
156
60
78

query I rowsort
SELECT DISTINCT - 97 FROM tab2
----
-97

query I rowsort
SELECT ALL 4 * + col0 + col0 * - col1 + col0 AS col0 FROM tab1
----
-320
-63
-640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4987
SELECT ALL - - CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL - - CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 68 * col0 FROM tab0 AS cor0
----
1632
2380
6052

query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 + - col2 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT ALL - ( - col1 ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4991
SELECT ALL + - col1 DIV + 93 + - col2 * - ( ( col0 ) ) * + col2 + col0 FROM tab1 AS cor0
----
208000
737360
8751

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL + - col1 / + 93 + - col2 * - ( ( col0 ) ) * + col2 + col0 FROM tab1 AS cor0
----
208000
737360
8751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT + 28 * col1 AS col0 FROM tab1 AS cor0
----
280
364
728

query I rowsort
SELECT DISTINCT + 52 AS col2 FROM tab2 AS cor0
----
52

query I rowsort
SELECT cor1.col1 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4996
SELECT + col1 + - CAST( col0 * - col0 AS SIGNED ) AS col1 FROM tab0
----
1322
662
8012

skipif mysql # not compatible
query I rowsort label-4996
SELECT + col1 + - CAST ( col0 * - col0 AS INTEGER ) AS col1 FROM tab0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-4997
SELECT DISTINCT col0 + col0 DIV - col0 FROM tab2
----
6
77
78

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT col0 + col0 / - col0 FROM tab2
----
6
77
78

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0 CROSS JOIN tab0, tab1 cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

query I rowsort
SELECT ALL + 91 - col2 AS col1 FROM tab0
----
58
9
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + col1 * col2 + - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT - + cor0.col0 + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - col0 + - 27 * cor0.col2 AS col1 FROM tab0 cor0
----
-2303
-62
-915

query I rowsort
SELECT ALL ( 79 ) - col1 * ( - col0 ) FROM tab1 AS cor0
----
1119
157
719

query I rowsort
SELECT DISTINCT + col2 * + col2 * col0 FROM tab1 cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT + - ( 21 ) * + col1 + + col2 FROM tab1 AS cor0
----
-153
-177
-492

onlyif mysql # use DIV operator for integer division
query I rowsort label-5007
SELECT DISTINCT - col0 DIV - col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT - col0 / - col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT + + ( + col2 ) + - col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 13 FROM tab1
----
13

query I rowsort
SELECT DISTINCT - col2 * ( cor0.col2 ) + 58 * + 60 AS col2 FROM tab1 AS cor0
----
-5736
231
564

onlyif mysql # use DIV operator for integer division
query I rowsort label-5011
SELECT ALL + col1 DIV + col0 + + col0 - + 44 AS col2 FROM tab1 AS cor0
----
-33
20
36

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL + col1 / + col0 + + col0 - + 44 AS col2 FROM tab1 AS cor0
----
-33
20
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-5012
SELECT ALL + col2 DIV + cor0.col2 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL + col2 / + cor0.col2 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5013
SELECT DISTINCT CAST( 66 AS SIGNED ) col0 FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT CAST ( 66 AS INTEGER ) col0 FROM tab1
----
66

query I rowsort
SELECT + + ( + col0 ) + cor0.col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL ( col2 ) * - col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + - col1 * + col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL col0 * tab0.col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL 17 FROM tab0
----
17
17
17

query I rowsort
SELECT cor0.col2 AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + - col0 * col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT - 64 * col2 * + col0 AS col0 FROM tab1 AS cor0
----
-10368
-233472
-491520

query I rowsort
SELECT - col2 - col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT cor0.col0 + - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 col0 FROM tab0, tab2 AS cor0
----
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5026
SELECT - - cor0.col0 * col2 + + col2 * col2 + col1 DIV col0 FROM tab1 cor0
----
16896
3086
6897

skipif mysql # not compatible
query I rowsort label-5026
SELECT - - cor0.col0 * col2 + + col2 * col2 + col1 / col0 FROM tab1 cor0
----
16896
3086
6897

query I rowsort
SELECT - + col0 + + col1 + + 86 * - cor0.col1 FROM tab2 AS cor0
----
-1524
-2642
-5093

onlyif mysql # use DIV operator for integer division
query I rowsort label-5028
SELECT - col0 + + col1 DIV + col1 + cor0.col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1522
-735
-753

skipif mysql # not compatible
query I rowsort label-5028
SELECT - col0 + + col1 / + col1 + cor0.col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1522
-735
-753

onlyif mysql # use DIV operator for integer division
query I rowsort label-5029
SELECT DISTINCT col0 + 6 DIV + col1 FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT col0 + 6 / + col1 FROM tab2 cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col2 * + cor0.col1 col0 FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5031
SELECT DISTINCT + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT + col0 / col1 AS col1 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT + + 23 AS col2 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT DISTINCT - 33 + ( - col1 ) * - col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-11015
-25980
-90539

query I rowsort
SELECT tab2.col0 + ( col1 ) * col2 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-5035
SELECT ALL - col1 DIV 7 FROM tab2
----
-2
-4
-8

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL - col1 / 7 FROM tab2
----
-2
-4
-8

query I rowsort
SELECT - col1 * - 92 AS col2 FROM tab2
----
1564
2852
5428

query I rowsort
SELECT + col2 + col0 * + cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - + 4 * + 43 AS col2 FROM tab2 AS cor0
----
-172
-172
-172

query I rowsort
SELECT - 74 FROM tab2, tab1 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT DISTINCT - tab0.col2 * col2 * + 14 + + col1 + col0 AS col0 FROM tab0
----
-15136
-93956
118

query I rowsort
SELECT tab0.col2 + + col0 + col2 * - col0 FROM tab0
----
-7127
-735
1

query I rowsort
SELECT - 71 FROM tab1, tab0 cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # use DIV operator for integer division
query I rowsort label-5043
SELECT col1 * - cor0.col2 DIV ( col2 ) FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-5043
SELECT col1 * - cor0.col2 / ( col2 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + + col2 + 56 * col0 FROM tab2 cor0
----
419
4394
4462

onlyif mysql # use DIV operator for integer division
query I rowsort label-5045
SELECT + col2 + - ( - cor0.col1 ) * col2 DIV 23 + 24 * col1 FROM tab1 AS cor0
----
321
462
739

skipif mysql # not compatible
query I rowsort label-5045
SELECT + col2 + - ( - cor0.col1 ) * col2 / 23 + 24 * col1 FROM tab1 AS cor0
----
321
462
739

query I rowsort
SELECT + col0 + 94 AS col1 FROM tab1 AS cor0
----
158
174
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col2 + 35 col2 FROM tab2 AS cor0
----
-1409
-641
-694

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5048
SELECT + CAST( cor0.col0 AS SIGNED ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5048
SELECT + CAST ( cor0.col0 AS INTEGER ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + col1 * - 94 AS col0 FROM tab2 AS cor0
----
-1598
-2914
-5546

query I rowsort
SELECT ALL - 5 AS col2 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT - col1 + col0 * col2 FROM tab1 cor0
----
136
3638
7667

query I rowsort
SELECT ALL - col1 * cor0.col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - + cor1.col1 + cor0.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
-14
-28
-42
0
14
28
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-5054
SELECT col1 DIV - col0 AS col1 FROM tab1 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5054
SELECT col1 / - col0 AS col1 FROM tab1 cor0
----
-8
0
0

query I rowsort
SELECT ALL 44 FROM tab1
----
44
44
44

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163

query I rowsort
SELECT - - col0 * col0 + col1 - cor0.col0 FROM tab0 AS cor0
----
1287
638
7923

onlyif mysql # use DIV operator for integer division
query I rowsort label-5058
SELECT col2 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5058
SELECT col2 / col0 AS col2 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT - - cor0.col2 * col0 * col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT + 75 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
75

query I rowsort
SELECT - col2 * col0 + - col0 * cor0.col2 FROM tab1 AS cor0
----
-15360
-324
-7296

query I rowsort
SELECT col2 + + ( + ( col1 ) ) FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - col1 * - col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT ALL + ( + tab1.col1 + + col0 ) FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5065
SELECT ( - tab0.col1 ) DIV - ( - tab0.col2 + + col0 ) AS col1 FROM tab0
----
-9
13
2

skipif mysql # not compatible
query I rowsort label-5065
SELECT ( - tab0.col1 ) / - ( - tab0.col2 + + col0 ) AS col1 FROM tab0
----
-9
13
2

query I rowsort
SELECT - 62 * + tab1.col2 FROM tab1
----
-3348
-3534
-5952

query I rowsort
SELECT ALL cor0.col0 * + ( 29 ) FROM tab1, tab2 AS cor0
----
9 values hashing to af4733015d9e577cc3ec6bccfb989962

query I rowsort
SELECT ALL + + col0 * + 22 + col1 AS col1 FROM tab0 AS cor0
----
2049
614
867

query I rowsort
SELECT ALL - col2 + 40 * col2 AS col2 FROM tab2 AS cor0
----
1014
1053
1482

query I rowsort
SELECT DISTINCT + + col1 + col0 * + col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - + col2 + - 57 AS col0 FROM tab1 cor0
----
-111
-114
-153

query I rowsort
SELECT DISTINCT col1 + ( - col1 + - cor0.col2 ) FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + - 8 * - col0 * col2 col1 FROM tab1 AS cor0
----
1293
29120
61360

query I rowsort
SELECT DISTINCT - - col2 - col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT col2 + + col0 * col0 - col1 FROM tab0
----
1129
523
7912

query I rowsort
SELECT DISTINCT + - ( 44 ) AS col0 FROM tab0 AS cor0
----
-44

query I rowsort
SELECT ALL 42 AS col2 FROM tab0 cor0
----
42
42
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-5078
SELECT col1 * - cor0.col1 + + col1 DIV 35 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-5078
SELECT col1 * - cor0.col1 + + col1 / 35 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + 99 * - col1 AS col2 FROM tab0 AS cor0
----
-8514
-9009
-9603

onlyif mysql # use DIV operator for integer division
query I rowsort label-5080
SELECT tab1.col2 DIV col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-5080
SELECT tab1.col2 / col0 FROM tab1
----
0
1
18

query I rowsort
SELECT + - col1 - col0 * - col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT - col2 - - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - tab2.col0 + col0 * col2 + col2 FROM tab2
----
1976
209
2961

skipif mysql # not compatible
query I rowsort
SELECT col1 + - CAST ( - 83 * col1 AS REAL ) + - 74 * 17 * col0 AS col2 FROM tab1
----
-1590
-79672
-99548

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col0 * col2 * col2 col2 FROM tab0
----
-26050
-598345
62

query I rowsort
SELECT ALL + 66 AS col0 FROM tab2
----
66
66
66

query I rowsort
SELECT DISTINCT 29 FROM tab2
----
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-5088
SELECT DISTINCT + + cor0.col1 + col0 + col2 DIV - 14 col2 FROM tab2 AS cor0
----
136
37
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT + + cor0.col1 + col0 + col2 / - 14 col2 FROM tab2 AS cor0
----
136
37
94

query I rowsort
SELECT + 87 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT ALL - 56 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-25
-39
3

query I rowsort
SELECT - ( + col0 ) + 87 * - col2 FROM tab1 AS cor0
----
-4701
-5023
-8432

query I rowsort
SELECT ALL - col1 * + col2 - col1 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-5093
SELECT ALL - col2 + - col0 * col1 DIV 65 FROM tab2 AS cor0
----
-30
-58
-96

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL - col2 + - col0 * col1 / 65 FROM tab2 AS cor0
----
-30
-58
-96

query I rowsort
SELECT - 45 + - col1 AS col1 FROM tab0 AS cor0
----
-131
-136
-142

query I rowsort
SELECT 35 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT ALL - col0 + - cor0.col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL 30 + col1 FROM tab2
----
47
61
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5098
SELECT ALL col0 * - col2 + - col1 + CAST( + col0 AS SIGNED ) * col1 FROM tab0
----
1186
3263
710

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL col0 * - col2 + - col1 + CAST ( + col0 AS INTEGER ) * col1 FROM tab0
----
1186
3263
710

query I rowsort
SELECT ALL + ( col1 * col2 ) + ( col2 ) AS col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT ALL col1 + + col0 * - col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL + 4 + + tab0.col0 FROM tab0
----
28
39
93

query I rowsort
SELECT ALL - 99 + - col0 + + col2 FROM tab0
----
-106
-133
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5103
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + - 48 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-48

query I rowsort
SELECT cor0.col1 * - col1 AS col2 FROM tab1 cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5106
SELECT ALL + col1 + cor0.col1 DIV col2 AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL + col1 + cor0.col1 / col2 AS col0 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 * col2 + - col0 col1 FROM tab0 cor0
----
-34
1065
6635

onlyif mysql # use DIV operator for integer division
query I rowsort label-5108
SELECT ALL 99 DIV + col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL 99 / + col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT cor0.col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - 8 * col2 FROM tab0 AS cor0
----
-264
-656
-8

query I rowsort
SELECT - - 34 AS col2 FROM tab1 cor0
----
34
34
34

query I rowsort
SELECT 57 FROM tab1, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT - 77 FROM tab1 AS cor0
----
-77

query I rowsort
SELECT ALL + 16 FROM tab1, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT ALL + ( + 18 ) * col0 FROM tab1
----
1152
1440
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - tab2.col2 col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL cor0.col2 * + col0 + col1 * col1 AS col0 FROM tab1 AS cor0
----
3748
7849
838

query I rowsort
SELECT DISTINCT - 2 * col0 + col2 FROM tab1 AS cor0
----
-64
-71
48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5119
SELECT - - CAST( NULL AS SIGNED ) * cor0.col0 * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT - - CAST ( NULL AS INTEGER ) * cor0.col0 * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5120
SELECT - + ( + cor0.col0 ) * col0 DIV + col1 col0 FROM tab1 AS cor0
----
-409
-492
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5120
SELECT - + ( + cor0.col0 ) * col0 / + col1 col0 FROM tab1 AS cor0
----
-409
-492
0

query I rowsort
SELECT DISTINCT + col2 * - 54 FROM tab1 AS cor0
----
-2916
-3078
-5184

query I rowsort
SELECT + 14 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ALL + col2 + - col1 + - col0 FROM tab1 AS cor0
----
-17
25
3

query I rowsort
SELECT - 33 FROM tab2, tab2 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT - col2 * col0 - - col2 * col1 * col1 FROM tab1 cor0
----
2052
36342
8544

onlyif mysql # use DIV operator for integer division
query I rowsort label-5126
SELECT - - 33 DIV col0 - ( col2 ) AS col2 FROM tab2 AS cor0
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-5126
SELECT - - 33 / col0 - ( col2 ) AS col2 FROM tab2 AS cor0
----
-23
-26
-38

query I rowsort
SELECT + cor0.col2 + + cor0.col0 * ( col1 * + cor0.col0 ) FROM tab2 AS cor0
----
106135
1546
358982

query I rowsort
SELECT + 64 + cor0.col1 FROM tab1 cor0
----
74
77
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 * - col1 col2 FROM tab2 cor0
----
-1054
-1922
-3658

query I rowsort
SELECT ALL col0 - col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - ( cor0.col0 ) * - col1 + 81 FROM tab2 AS cor0
----
1424
298
4683

query I rowsort
SELECT ALL + - col1 - + col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * + col2 col0 FROM tab2 cor0
----
208
216
304

query I rowsort
SELECT ALL col1 + - col2 * col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL col0 + 96 + col2 AS col0 FROM tab0
----
132
153
267

query I rowsort
SELECT col2 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT col1 - 2 FROM tab1
----
11
24
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5138
SELECT - ( - col0 ) + + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT - ( - col0 ) + + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + ( - ( col1 ) + ( col1 ) ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col0 * col1 + + 43 AS col2 FROM tab0 AS cor0
----
-2021
-3352
-8056

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5141
SELECT DISTINCT + col2 * + col0 + ( + col0 ) * + CAST( cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
240
4288
8720

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT + col2 * + col0 + ( + col0 ) * + CAST ( cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT + - col0 * ( - 90 ) AS col1 FROM tab2 AS cor0
----
630
7020
7110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * cor0.col0 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - cor0.col2 * 10 AS col1 FROM tab1 AS cor0
----
-540
-570
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5145
SELECT DISTINCT - col0 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT - col0 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col2 * - col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col2 * 5 * col1 AS col0 FROM tab1 AS cor0
----
2850
6240
7020

query I rowsort
SELECT DISTINCT col1 * - 5 + col1 * cor0.col0 FROM tab1 AS cor0
----
-52
590
975

query I rowsort
SELECT DISTINCT col2 + - col0 AS col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT col1 * - ( - 93 ) FROM tab2 AS cor0
----
1581
2883
5487

query I rowsort
SELECT ALL - 31 + + tab1.col2 * ( col1 ) FROM tab1
----
1217
1373
539

onlyif mysql # use DIV operator for integer division
query I rowsort label-5152
SELECT DISTINCT col2 DIV col0 + - 8 FROM tab0 AS cor0
----
-7
-8

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT col2 / col0 + - 8 FROM tab0 AS cor0
----
-7
-8

query I rowsort
SELECT ALL - col1 + - cor0.col2 AS col1 FROM tab0 cor0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5154
SELECT ALL col0 * + CAST( - col0 + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1190
-623
216

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL col0 * + CAST ( - col0 + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1190
-623
216

query I rowsort
SELECT ALL + + col1 + ( col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-5156
SELECT DISTINCT - - col2 + + col2 * - 0 DIV - col0 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT - - col2 + + col2 * - 0 / - col0 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col1 * + 45 AS col1 FROM tab2 AS cor0
----
1395
2655
765

query I rowsort
SELECT ALL - col1 + col2 * - 44 FROM tab2 cor0
----
-1203
-1219
-1689

query I rowsort
SELECT - + col2 * + cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col2 * - ( col2 ) FROM tab0 AS cor0
----
1
1089
6724

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to fb3687512d3714969d7c6afc5561ed79

query I rowsort
SELECT - col2 * 16 + + col1 AS col2 FROM tab2 AS cor0
----
-357
-401
-591

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2 cor1
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed

query I rowsort
SELECT DISTINCT - col1 * + col2 + col1 AS col1 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL - 99 * + col0 + + col2 + 80 * col2 AS col1 FROM tab1 AS cor0
----
-144
-1719
4077

query I rowsort
SELECT DISTINCT + col0 * - col1 + + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT + col1 * + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141

query I rowsort
SELECT DISTINCT 47 FROM tab2
----
47

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0 CROSS JOIN tab1, tab0 cor1
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL + - 14 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT DISTINCT - 74 * col0 FROM tab0 AS cor0
----
-1776
-2590
-6586

query I rowsort
SELECT DISTINCT - col0 * col2 + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT + col0 * - col2 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - col0 * - col1 + ( + col0 ) FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL - col0 * - 35 * - col1 AS col1 FROM tab1 AS cor0
----
-22400
-2730
-36400

query I rowsort
SELECT + cor1.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL + col0 * + col0 + + col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL + + col1 * - 63 + + col2 FROM tab1 AS cor0
----
-1584
-573
-723

query I rowsort
SELECT + + col2 * ( col0 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL 73 * - col2 AS col0 FROM tab1 AS cor0
----
-3942
-4161
-7008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT col1 * col0 + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT cor0.col2 + cor0.col0 * + ( + col1 ) AS col2 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5187
SELECT DISTINCT - + col2 + + col0 * - ( + col0 * - col2 + + CAST( NULL AS DECIMAL ) * col1 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5187
SELECT DISTINCT - + col2 + + col0 * - ( + col0 * - col2 + + CAST ( NULL AS REAL ) * col1 ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 98 + col0 * cor0.col2 FROM tab1 AS cor0
----
260
3746
7778

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5189
SELECT ALL ( + col0 ) - + CAST( - col1 + col1 AS SIGNED ) col2 FROM tab1 cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL ( + col0 ) - + CAST ( - col1 + col1 AS INTEGER ) col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT + col0 - + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 18 AS col2 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT DISTINCT - + cor0.col1 * + col0 + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - col2 * col1 * col2 + 96 AS col0 FROM tab1 AS cor0
----
-119712
-32394
-75720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + col1 * 57 col1 FROM tab1 cor0
----
1485
634
821

query I rowsort
SELECT ALL + tab0.col2 * col0 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL col2 * col0 * 42 FROM tab1
----
153216
322560
6804

query I rowsort
SELECT + col1 * + col0 - + col0 AS col2 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT - + 41 + - col0 * ( cor0.col0 * - col1 ) AS col0 FROM tab0 AS cor0
----
118784
49495
720770

query I rowsort
SELECT DISTINCT - + 33 * + cor0.col0 + col1 * 69 + cor0.col2 * ( ( - col0 ) ) FROM tab0 AS cor0
----
-3956
4350
5503

query I rowsort
SELECT DISTINCT tab0.col0 + + tab0.col1 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ( col0 ) + - col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - tab1.col0 * - 7 * + col1 FROM tab1
----
4480
546
7280

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5203
SELECT - - cor0.col0 * + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5203
SELECT - - cor0.col0 * + 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-5204
SELECT CAST( NULL AS SIGNED ) / + 60 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5204
SELECT CAST ( NULL AS INTEGER ) / + 60 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 29 col2 FROM tab2 AS cor0
----
-2
-30
12

query I rowsort
SELECT + col2 + + col2 * col0 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT 63 FROM tab2 AS cor0
----
63

query I rowsort
SELECT DISTINCT + ( - col0 ) AS col1 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT ALL 82 AS col0 FROM tab2
----
82
82
82

query I rowsort
SELECT DISTINCT - ( + 54 ) AS col2 FROM tab1
----
-54

query I rowsort
SELECT DISTINCT - 50 AS col2 FROM tab2
----
-50

query I rowsort
SELECT ALL - 74 FROM tab0 AS cor0
----
-74
-74
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5213
SELECT - CAST( - col1 AS SIGNED ) * + col2 * cor0.col1 FROM tab2 AS cor0
----
10982
25947
90506

skipif mysql # not compatible
query I rowsort label-5213
SELECT - CAST ( - col1 AS INTEGER ) * + col2 * cor0.col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT + col2 + 84 AS col2 FROM tab2 AS cor0
----
110
111
122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 + - col2 col0 FROM tab2 AS cor0
----
-61
-62
-73

query I rowsort
SELECT + ( + 0 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + col0 ) + + col2 AS col2 FROM tab0 cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - 94 AS col1 FROM tab2 AS cor0
----
-94
-94
-94

query I rowsort
SELECT DISTINCT + ( + col2 ) * cor0.col2 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5221
SELECT - + 82 + + col0 * col2 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT - + 82 + + col0 * col2 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 79 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1422
296
4681

query I rowsort
SELECT DISTINCT - col0 + - 17 * col2 AS col0 FROM tab0 AS cor0
----
-1483
-52
-585

query I rowsort
SELECT 34 * + col1 FROM tab0 cor0
----
2924
3094
3298

query I rowsort
SELECT DISTINCT - - cor0.col0 + - col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 9 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-117
-234
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 - col0 col1 FROM tab0 AS cor0
----
-16
-5
-70

query I rowsort
SELECT DISTINCT + 25 + - col1 FROM tab1 AS cor0
----
-1
12
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
86
91
97

query I rowsort
SELECT col1 * + 0 + tab0.col0 FROM tab0
----
24
35
89

query I rowsort
SELECT - + 9 AS col1 FROM tab0 AS cor0
----
-9
-9
-9

query I rowsort
SELECT ALL + - 61 FROM tab2 AS cor0
----
-61
-61
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 19 * col1 col0 FROM tab1 AS cor0
----
-126
-167
-491

query I rowsort
SELECT DISTINCT + + col0 * - 8 AS col2 FROM tab1 AS cor0
----
-24
-512
-640

query I rowsort
SELECT - + col2 * + 74 AS col2 FROM tab1 AS cor0
----
-3996
-4218
-7104

onlyif mysql # use DIV operator for integer division
query I rowsort label-5236
SELECT - cor0.col1 + 39 + - col1 DIV col0 FROM tab1 AS cor0
----
26
29
5

skipif mysql # not compatible
query I rowsort label-5236
SELECT - cor0.col1 + 39 + - col1 / col0 FROM tab1 AS cor0
----
26
29
5

query I rowsort
SELECT DISTINCT + 4 FROM tab1, tab0 AS cor0
----
4

query I rowsort
SELECT ALL + + col0 * col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT ( tab0.col2 ) FROM tab0, tab2 cor0
----
1
33
82

query I rowsort
SELECT ALL - tab2.col1 + - col0 * col0 + col1 AS col2 FROM tab2
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5241
SELECT DISTINCT + + CAST( col2 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT + + CAST ( col2 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5242
SELECT DISTINCT + col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT + col0 / + col0 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 45 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT + - ( + col2 ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5245
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( col0 ) * + cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL - ( + cor0.col1 ) * col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 75 ) col0 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT ALL + col2 + 23 AS col2 FROM tab2
----
49
50
61

query I rowsort
SELECT DISTINCT + 46 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
46

query I rowsort
SELECT DISTINCT col0 * col1 + 4 AS col2 FROM tab0
----
2068
3399
8103

query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1, tab0 cor0
----
10
13
26

query I rowsort
SELECT ALL col1 + - 57 FROM tab1
----
-31
-44
-47

query I rowsort
SELECT - ( - 4 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT DISTINCT ( - tab1.col0 ) FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - 0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 6 ) col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT 84 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5259
SELECT ALL col2 * 1 DIV - col2 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL col2 * 1 / - col2 AS col2 FROM tab0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5260
SELECT DISTINCT - - cor0.col0 * col0 DIV - col2 + + cor0.col0 FROM tab1 cor0
----
-7
14
3

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT - - cor0.col0 * col0 / - col2 + + cor0.col0 FROM tab1 cor0
----
-7
14
3

query I rowsort
SELECT ALL - col2 * col1 + + col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + 80 FROM tab2 AS cor0
----
1041
3561
369

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5263
SELECT + CAST( NULL AS SIGNED ) * col2 + - col2 * - col2 + col2 * tab0.col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5263
SELECT + CAST ( NULL AS INTEGER ) * col2 + - col2 * - col2 + col2 * tab0.col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( tab0.col2 * col2 ) + - ( col2 ) + col1 FROM tab0
----
1142
6733
97

query I rowsort
SELECT ALL 94 + tab1.col2 FROM tab1
----
148
151
190

onlyif mysql # use DIV operator for integer division
query I rowsort label-5266
SELECT ALL tab0.col1 DIV col0 + + col2 DIV col1 AS col2 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL tab0.col1 / col0 + + col2 / col1 AS col2 FROM tab0
----
1
2
3

query I rowsort
SELECT DISTINCT + col0 + 18 * col0 AS col1 FROM tab0 AS cor0
----
1691
456
665

query I rowsort
SELECT + ( - cor0.col2 ) * col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + 35 * col1 AS col1 FROM tab1 AS cor0
----
350
455
910

query I rowsort
SELECT 34 * - 14 * col2 - - col2 AS col2 FROM tab0 AS cor0
----
-15675
-38950
-475

query I rowsort
SELECT DISTINCT - 94 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT ALL + - col0 * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + 76 + - col2 FROM tab1 AS cor0
----
-20
19
22

query I rowsort
SELECT DISTINCT - + col1 * col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

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-5276
SELECT ALL - 29 + - col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL - 29 + - col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 1 - + col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col0 col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + col1 * col1 * cor0.col2 FROM tab1 cor0
----
16224
36504
5700

query I rowsort
SELECT - - 83 + col0 FROM tab0 AS cor0
----
107
118
172

onlyif mysql # use DIV operator for integer division
query I rowsort label-5281
SELECT ALL + col2 + col2 DIV col2 + + col1 AS col0 FROM tab1 AS cor0
----
110
68
81

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL + col2 + col2 / col2 + + col1 AS col0 FROM tab1 AS cor0
----
110
68
81

query I rowsort
SELECT + 6 * - col2 + - 2 FROM tab1 AS cor0
----
-326
-344
-578

query I rowsort
SELECT DISTINCT - - col0 * cor0.col2 - + 84 FROM tab0 AS cor0
----
-49
708
7214

query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT col2 * col2 + - cor0.col0 * + ( + col0 ) FROM tab2 cor0
----
-4797
-5408
680

query I rowsort
SELECT ALL cor0.col2 + - col1 + - col1 FROM tab0 AS cor0
----
-100
-139
-193

query I rowsort
SELECT + 16 * - col2 FROM tab2 AS cor0
----
-416
-432
-608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 + - col1 col2 FROM tab2 cor0
----
-306
-3540
-992

query I rowsort
SELECT - - ( - col2 ) * - cor0.col0 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col0 + + ( + col2 ) * - ( col0 ) * + col2 FROM tab2
----
-114155
-5110
-52806

query I rowsort
SELECT 9 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT + col0 + col2 + col1 AS col1 FROM tab0
----
133
143
262

query I rowsort
SELECT DISTINCT + col1 + col0 * + col1 AS col0 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT 21 * col0 * - 6 + - cor0.col1 FROM tab0 AS cor0
----
-11305
-3110
-4507

query I rowsort
SELECT - + cor0.col0 * - col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + 28 * + col0 AS col1 FROM tab0 AS cor0
----
2492
672
980

query I rowsort
SELECT - 43 * - col0 + - col2 AS col2 FROM tab0 AS cor0
----
1504
3745
999

query I rowsort
SELECT 71 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab2
----
11

query I rowsort
SELECT - 19 * col1 + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-1746
1204
5733

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 col2 FROM tab2
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-5302
SELECT DISTINCT tab1.col2 DIV - 58 AS col2 FROM tab1, tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT tab1.col2 / - 58 AS col2 FROM tab1, tab1 AS cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5303
SELECT + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5303
SELECT + col2 / col1 AS col0 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT + cor0.col1 + - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - 15 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT + 85 * + cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
1462
2666
5074

query I rowsort
SELECT + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT col2 * - 52 AS col1 FROM tab2 AS cor0
----
-1352
-1404
-1976

query I rowsort
SELECT DISTINCT col1 + + cor0.col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT col0 * 50 AS col0 FROM tab2 cor0
----
350
3900
3950

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5311
SELECT + + col1 * + CAST( + col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5311
SELECT + + col1 * + CAST ( + col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5312
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + + col2 + - 54 - - col0 AS col0 FROM tab1 AS cor0
----
122
3
67

query I rowsort
SELECT 39 + col0 FROM tab2 AS cor0
----
117
118
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-5315
SELECT + ( - col2 ) DIV + col1 col1 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5315
SELECT + ( - col2 ) / + col1 col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col1 + - ( col0 ) FROM tab0
----
2
62
62

query I rowsort
SELECT 25 AS col0 FROM tab0 cor0
----
25
25
25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5318
SELECT + CAST( NULL AS SIGNED ) + col1 / + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5318
SELECT + CAST ( NULL AS INTEGER ) + col1 / + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * col0 + - col0 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT - col1 - - cor0.col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5321
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 44 * - col2 AS col2 FROM tab1 AS cor0
----
-2376
-2508
-4224

query I rowsort
SELECT DISTINCT col0 * col2 * + col0 AS col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT col1 * 64 FROM tab0
----
5504
5824
6208

query I rowsort
SELECT col2 * + 49 AS col1 FROM tab1
----
2646
2793
4704

onlyif mysql # use DIV operator for integer division
query I rowsort label-5326
SELECT DISTINCT - + col0 DIV col2 + - 78 AS col0 FROM tab0 AS cor0
----
-113
-78
-79

skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT - + col0 / col2 + - 78 AS col0 FROM tab0 AS cor0
----
-113
-78
-79

query I rowsort
SELECT ALL + cor0.col2 + + col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - 83 AS col0 FROM tab2
----
-83

query I rowsort
SELECT 26 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

onlyif mysql # use DIV operator for integer division
query I rowsort label-5330
SELECT DISTINCT + - col0 * + col0 + + ( - col2 ) + col2 DIV col1 AS col2 FROM tab1 cor0
----
-4148
-61
-6489

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT + - col0 * + col0 + + ( - col2 ) + col2 / col1 AS col2 FROM tab1 cor0
----
-4148
-61
-6489

query I rowsort
SELECT DISTINCT - cor0.col0 + col2 * col2 AS col0 FROM tab0 AS cor0
----
-34
1065
6635

onlyif mysql # use DIV operator for integer division
query I rowsort label-5332
SELECT ALL ( col0 ) + + col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL ( col0 ) + + col2 / - col1 AS col1 FROM tab1 AS cor0
----
1
59
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5333
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5333
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed

onlyif mysql # use DIV operator for integer division
query I rowsort label-5335
SELECT ALL - col2 DIV - col0 + cor0.col1 col2 FROM tab1 AS cor0
----
10
14
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL - col2 / - col0 + cor0.col1 col2 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT ALL + + col1 * col2 + ( 52 ) * - col2 FROM tab0 AS cor0
----
1122
3198
45

query I rowsort
SELECT - 64 + col0 AS col0 FROM tab0
----
-29
-40
25

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab0 AS cor0, tab1 cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e

query I rowsort
SELECT ALL - 7 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

onlyif mysql # use DIV operator for integer division
query I rowsort label-5340
SELECT ALL - 52 * col1 DIV - col2 FROM tab1
----
25
7
9

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL - 52 * col1 / - col2 FROM tab1
----
25
7
9

query I rowsort
SELECT - 43 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c

query I rowsort
SELECT 9 + col1 AS col2 FROM tab0
----
100
106
95

query I rowsort
SELECT ( - col2 * + col2 ) - col1 AS col0 FROM tab0
----
-1175
-6815
-98

query I rowsort
SELECT DISTINCT + - cor0.col2 + col1 + 53 AS col1 FROM tab0 AS cor0
----
106
149
62

query I rowsort
SELECT DISTINCT - + 16 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-16

query I rowsort
SELECT DISTINCT 97 + col2 AS col0 FROM tab2
----
123
124
135

query I rowsort
SELECT - col2 + col0 * - ( + 21 + col0 ) AS col0 FROM tab2 AS cor0
----
-223
-7748
-7938

query I rowsort
SELECT + col2 * + col2 + + 56 AS col2 FROM tab0 AS cor0
----
1145
57
6780

query I rowsort
SELECT ALL + ( - col2 ) + ( col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 33 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1089
-2706
-33

query I rowsort
SELECT DISTINCT 71 * col0 + 29 AS col0 FROM tab2
----
526
5567
5638

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT ALL col1 * col2 + 94 * + col1 AS col0 FROM tab2 cor0
----
2244
3751
7080

query I rowsort
SELECT DISTINCT + col0 + - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab2 cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( col2 ) col2 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL + cor0.col1 * - 7 AS col1 FROM tab1 cor0
----
-182
-70
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 col1 FROM tab0 AS cor0
----
171
36
57

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 DISTINCT - col0 + - 23 * col2 AS col2 FROM tab1 AS cor0
----
-1245
-1375
-2288

query I rowsort
SELECT - col0 * col2 + cor0.col1 * + 34 FROM tab2 AS cor0
----
-22
-2424
865

query I rowsort
SELECT col0 + + 51 + col1 FROM tab2
----
147
188
89

query I rowsort
SELECT - 73 - col0 AS col2 FROM tab2
----
-151
-152
-80

query I rowsort
SELECT 49 + - 74 * col2 + - col1 * 19 * col0 FROM tab0
----
-159900
-41609
-64530

query I rowsort
SELECT ALL - col0 * 75 + - cor0.col2 * 60 FROM tab0 AS cor0
----
-11595
-2685
-3780

query I rowsort
SELECT ALL - - 98 + + col2 FROM tab2 cor0
----
124
125
136

query I rowsort
SELECT DISTINCT + + col1 * col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + cor0.col1 - col0 * cor0.col0 * + col1 AS col1 FROM tab2 cor0
----
-106080
-1488
-358897

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 cor1, tab0, tab1 AS cor2
----
3645 values hashing to b3ea820890445d59f3f7464a1521d42d

query I rowsort
SELECT ALL - col2 * col0 + + cor0.col1 + + col2 FROM tab2 AS cor0
----
-131
-1943
-2947

query I rowsort
SELECT + 24 + 1 * col0 AS col1 FROM tab1 AS cor0
----
104
27
88

query I rowsort
SELECT ALL - + cor0.col2 + - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - col0 * cor0.col0 * - 17 FROM tab2 AS cor0
----
103428
106097
833

query I rowsort
SELECT DISTINCT + - 69 FROM tab2 cor0
----
-69

query I rowsort
SELECT ALL + + ( col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + col1 + col1 * - ( cor0.col0 ) FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + - col0 - - col2 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5378
SELECT - + 44 + col1 * CAST( NULL AS DECIMAL ) * - cor0.col0 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-5378
SELECT - + 44 + col1 * CAST ( NULL AS REAL ) * - cor0.col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + + col0 * cor0.col1 + 85 * - cor0.col2 FROM tab0 AS cor0
----
-827
1038
3213

query I rowsort
SELECT ALL + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5381
SELECT + CAST( NULL AS SIGNED ) * - 21 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT + CAST ( NULL AS INTEGER ) * - 21 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT tab1.col0 * 46 + col1 FROM tab1
----
164
2954
3693

onlyif mysql # use DIV operator for integer division
query I rowsort label-5383
SELECT col0 DIV - 13 FROM tab0
----
-1
-2
-6

skipif mysql # not compatible
query I rowsort label-5383
SELECT col0 / - 13 FROM tab0
----
-1
-2
-6

query I rowsort
SELECT - ( 99 ) - col0 AS col2 FROM tab0
----
-123
-134
-188

query I rowsort
SELECT DISTINCT 77 + + col2 - + col2 FROM tab1
----
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5386
SELECT - - col1 * + col1 + cor0.col1 DIV col1 AS col0 FROM tab2 AS cor0
----
290
3482
962

skipif mysql # not compatible
query I rowsort label-5386
SELECT - - col1 * + col1 + cor0.col1 / col1 AS col0 FROM tab2 AS cor0
----
290
3482
962

query I rowsort
SELECT DISTINCT + + col0 + + cor0.col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + + 17 AS col2 FROM tab1, tab0, tab1 cor0
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT - + ( + col0 ) + cor0.col0 * + col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT - 30 FROM tab2 AS cor0
----
-30
-30
-30

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 5d64bf87effa587b137e9591cd2c54bf

onlyif mysql # use DIV operator for integer division
query I rowsort label-5392
SELECT - col0 + col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
-27
-37
-90

skipif mysql # not compatible
query I rowsort label-5392
SELECT - col0 + col1 / - col0 AS col1 FROM tab0 AS cor0
----
-27
-37
-90

query I rowsort
SELECT DISTINCT - col2 + cor0.col1 * col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT col0 * - ( - col1 * - tab0.col2 ) AS col2 FROM tab0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 39 col2 FROM tab2
----
117
118
46

query I rowsort
SELECT + - col1 * 47 AS col1 FROM tab0 cor0
----
-4042
-4277
-4559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 13 ) col1 FROM tab1
----
13
13
13

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL 25 * + ( cor0.col2 ) FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 8951caa3ed9ea224feb51dd9a58efd67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5400
SELECT - col2 DIV - col0 + col1 * col0 FROM tab0
----
2065
3395
8099

skipif mysql # not compatible
query I rowsort label-5400
SELECT - col2 / - col0 + col1 * col0 FROM tab0
----
2065
3395
8099

query I rowsort
SELECT ALL 57 + cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 14d5564270ff6545a23d1e15904ed7c9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5402
SELECT ALL - CAST( NULL AS SIGNED ) * 68 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL - CAST ( NULL AS INTEGER ) * 68 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 2 * 73 + col0 - 24 * 98 * col1 AS col1 FROM tab2 AS cor0
----
-138544
-39759
-72759

query I rowsort
SELECT - col0 * 62 AS col1 FROM tab2
----
-434
-4836
-4898

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5405
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + 38 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 * + 73 + + 85 col0 FROM tab0
----
-2238
-5810
109

onlyif mysql # use DIV operator for integer division
query I rowsort label-5408
SELECT col1 * col0 DIV + ( col1 ) col0 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5408
SELECT col1 * col0 / + ( col1 ) col0 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5409
SELECT ALL tab1.col2 + col0 + + col0 DIV col2 AS col1 FROM tab1
----
122
176
57

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL tab1.col2 + col0 + + col0 / col2 AS col1 FROM tab1
----
122
176
57

query I rowsort
SELECT DISTINCT + - 6 * col2 AS col1 FROM tab2 AS cor0
----
-156
-162
-228

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 7e572cf6967c395d92dce41dcb35c4db

query I rowsort
SELECT ALL 24 * - col1 AS col0 FROM tab1 AS cor0
----
-240
-312
-624

query I rowsort
SELECT ALL + 6 * + col2 * 93 + + col0 AS col1 FROM tab2
----
14586
15073
21283

query I rowsort
SELECT ALL - col1 * col2 + + 34 FROM tab0
----
-2804
-63
-7428

onlyif mysql # use DIV operator for integer division
query I rowsort label-5415
SELECT DISTINCT + 0 DIV col2 + - 44 AS col2 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT + 0 / col2 + - 44 AS col2 FROM tab0
----
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 col0 FROM tab1
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5417
SELECT ALL - col0 - CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL - col0 - CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col1 + 57 FROM tab1 AS cor0
----
67
70
83

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763

query I rowsort
SELECT ALL - 18 FROM tab2, tab2 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT + col1 + col2 * cor0.col2 - - col2 AS col0 FROM tab1 AS cor0
----
2996
3316
9325

query I rowsort
SELECT col2 * - cor0.col1 + - col2 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT col0 + ( ( cor0.col1 ) ) AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL col2 + - 46 * + cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
-3837
-4013
-4364

query I rowsort
SELECT col1 * + ( + col0 ) + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - cor0.col1 + - ( cor0.col1 ) FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ALL - col2 + - 95 AS col1 FROM tab1 AS cor0
----
-149
-152
-191

query I rowsort
SELECT ALL 87 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT - col0 + - 73 - - col1 FROM tab2 AS cor0
----
-135
-49
-92

query I rowsort
SELECT - cor0.col0 * 26 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to c92395831283e282f0b4f7729615a208

query I rowsort
SELECT - col1 + + col1 - - col2 AS col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5432
SELECT + col1 * 85 DIV + col1 FROM tab2
----
85
85
85

skipif mysql # not compatible
query I rowsort label-5432
SELECT + col1 * 85 / + col1 FROM tab2
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 32 + - 10 col2 FROM tab2 AS cor0
----
-234
-2506
-2538

query I rowsort
SELECT 91 * + ( col1 ) + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
12222
16380
9890

query I rowsort
SELECT + 16 + col2 FROM tab2 AS cor0
----
42
43
54

query I rowsort
SELECT + ( + cor0.col0 ) * col1 - col1 FROM tab1 AS cor0
----
1027
52
630

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col0 AS REAL ) + + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 * col1 col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL col2 + - col2 * 94 * col2 AS col2 FROM tab2
----
-135698
-63518
-68499

query I rowsort
SELECT ALL + col0 + tab0.col1 AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL - 53 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT col2 * - ( - col1 ) + 80 * + 96 AS col2 FROM tab2 AS cor0
----
8326
8517
9214

query I rowsort
SELECT + col2 * - col2 + col1 AS col0 FROM tab0 cor0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5444
SELECT DISTINCT cor0.col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT cor0.col1 / + col1 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT 75 AS col1 FROM tab2 cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * - col2 col0 FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT + 42 + col1 FROM tab2 AS cor0
----
101
59
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-5448
SELECT col1 DIV col1 col2 FROM tab1 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5448
SELECT col1 / col1 col2 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ALL + col1 * col0 * + 12 FROM tab1 AS cor0
----
12480
7680
936

query I rowsort
SELECT ALL - 42 AS col2 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27

query I rowsort
SELECT + 58 + + cor0.col1 FROM tab0, tab2 cor0
----
9 values hashing to c2d0909e210f7304bd2ecf45ce4cea34

query I rowsort
SELECT + col2 * 91 AS col0 FROM tab1 cor0
----
4914
5187
8736

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL - col0 + + col1 * col1 FROM tab1
----
36
673
89

query I rowsort
SELECT - 54 * + col0 * + cor0.col2 FROM tab1 AS cor0
----
-196992
-414720
-8748

query I rowsort
SELECT + - col0 * col0 + - col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT ALL col1 + ( 80 ) FROM tab1 AS cor0
----
106
90
93

query I rowsort
SELECT ALL + col2 + col1 - + col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - col2 * - 52 FROM tab2 AS cor0
----
1352
1404
1976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5460
SELECT DISTINCT col0 * + CAST( + col1 AS SIGNED ) + col2 FROM tab1 AS cor0
----
1136
132
697

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT col0 * + CAST ( + col1 AS INTEGER ) + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT col1 * + col2 + col1 * + 25 + - col1 FROM tab2
----
1054
1581
2950

query I rowsort
SELECT DISTINCT + + cor0.col1 - 76 * - col0 FROM tab1 AS cor0
----
254
4874
6093

query I rowsort
SELECT - col2 * - 68 AS col1 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT DISTINCT col0 - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - col1 + 4 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-14
246
307

onlyif mysql # use DIV operator for integer division
query I rowsort label-5467
SELECT DISTINCT + + col1 DIV - ( col2 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT + + col1 / - ( col2 ) FROM tab1 cor0
----
0

query I rowsort
SELECT - 83 - col2 AS col0 FROM tab0 AS cor0
----
-116
-165
-84

query I rowsort
SELECT - col0 * + 79 * col1 AS col2 FROM tab0 AS cor0
----
-163056
-268205
-639821

query I rowsort
SELECT + col2 + - col1 FROM tab2 cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-5471
SELECT + + 10 * cor0.col2 - col0 DIV + col2 FROM tab0 AS cor0
----
-25
330
819

skipif mysql # not compatible
query I rowsort label-5471
SELECT + + 10 * cor0.col2 - col0 / + col2 FROM tab0 AS cor0
----
-25
330
819

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5472
SELECT CAST( 97 AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0
----
-3201
-7954
-97

skipif mysql # not compatible
query I rowsort label-5472
SELECT CAST ( 97 AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0
----
-3201
-7954
-97

query I rowsort
SELECT + + col1 + + col0 * col0 AS col1 FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-5474
SELECT DISTINCT + col1 + 8 * col2 DIV col0 FROM tab2 AS cor0
----
20
61

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT + col1 + 8 * col2 / col0 FROM tab2 AS cor0
----
20
61

query I rowsort
SELECT ALL cor0.col1 * + col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL - cor0.col1 + col0 * - col0 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT - + col0 * col2 + col1 * + 80 FROM tab2 AS cor0
----
-1642
2291
2692

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5478
SELECT tab1.col0 * CAST( + 9 AS SIGNED ) AS col0 FROM tab1
----
27
576
720

skipif mysql # not compatible
query I rowsort label-5478
SELECT tab1.col0 * CAST ( + 9 AS INTEGER ) AS col0 FROM tab1
----
27
576
720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5479
SELECT ALL + - CAST( 78 AS SIGNED ) + col2 FROM tab2 AS cor0
----
-40
-51
-52

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL + - CAST ( 78 AS INTEGER ) + col2 FROM tab2 AS cor0
----
-40
-51
-52

query I rowsort
SELECT - 14 - + col2 AS col2 FROM tab0 AS cor0
----
-15
-47
-96

query I rowsort
SELECT DISTINCT ( col0 ) + col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - 64 + 81 FROM tab2 cor0
----
17
17
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5483
SELECT ALL - cor0.col1 * - ( col1 * - CAST( - ( col1 ) AS SIGNED ) ) AS col0 FROM tab0 cor0
----
636056
753571
912673

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL - cor0.col1 * - ( col1 * - CAST ( - ( col1 ) AS INTEGER ) ) AS col0 FROM tab0 cor0
----
636056
753571
912673

query I rowsort
SELECT DISTINCT + - ( col2 ) * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-5485
SELECT col1 DIV - col1 col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5485
SELECT col1 / - col1 col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 25 FROM tab0 AS cor0
----
25
25
25

query I rowsort
SELECT DISTINCT ( col2 ) + col1 * ( col1 ) AS col0 FROM tab2 AS cor0
----
327
3507
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT 78 * - cor0.col2 * col1 FROM tab0 AS cor0
----
-221364
-582036
-7566

query I rowsort
SELECT ALL + 31 * + col1 AS col0 FROM tab0 cor0
----
2666
2821
3007

query I rowsort
SELECT + col2 * + col2 * + 3 AS col0 FROM tab1 AS cor0
----
27648
8748
9747

query I rowsort
SELECT ALL + + col2 * - cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
92

query I rowsort
SELECT ALL 96 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT DISTINCT 27 FROM tab0, tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT 35 * - col2 FROM tab1 AS cor0
----
-1890
-1995
-3360

query I rowsort
SELECT ALL - - 2 + col0 FROM tab1 AS cor0
----
5
66
82

query I rowsort
SELECT - col0 + + col1 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT ALL - - ( + col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + cor0.col1 + col1 AS col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT cor0.col1 * + col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - + 73 + - col0 * - col1 AS col2 FROM tab1 cor0
----
5
567
967

query I rowsort
SELECT ALL + + 12 * col0 FROM tab1 AS cor0
----
36
768
960

query I rowsort
SELECT col0 * col2 AS col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL + ( col2 ) * ( + col0 ) + cor0.col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - col1 * - cor0.col1 + ( col2 ) FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT col2 + col1 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL col2 + + col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - 44 AS col0 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT - col2 + - col2 + - ( col2 ) AS col0 FROM tab1 AS cor0
----
-162
-171
-288

query I rowsort
SELECT + 28 FROM tab0
----
28
28
28

query I rowsort
SELECT DISTINCT ( col1 ) * - tab1.col2 * 81 + - col2 * - col1 AS col1 FROM tab1
----
-112320
-45600
-99840

query I rowsort
SELECT + ( - 83 ) + + col0 + 79 FROM tab1
----
-1
60
76

query I rowsort
SELECT 53 * ( - col2 ) FROM tab2
----
-1378
-1431
-2014

query I rowsort
SELECT + col1 * - col0 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col0 + col0 * tab0.col2 + 0 FROM tab0
----
0
7209
768

query I rowsort
SELECT 30 + col0 * - 8 AS col2 FROM tab0
----
-162
-250
-682

query I rowsort
SELECT - 94 + - cor0.col1 FROM tab2 cor0
----
-111
-125
-153

query I rowsort
SELECT ALL + + 70 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ALL - col2 * - col1 + col2 + + ( col1 ) * cor0.col0 FROM tab2 AS cor0
----
1081
2027
6162

query I rowsort
SELECT - - col0 * + col2 + 10 * + col0 FROM tab0 AS cor0
----
1032
385
8188

query I rowsort
SELECT ALL + ( - col1 ) * + col2 + - ( col2 ) AS col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT - col0 + - col1 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1247
179
4465

query I rowsort
SELECT - col1 * col0 - 48 * + tab1.col2 AS col0 FROM tab1
----
-2670
-3376
-5648

query I rowsort
SELECT cor1.col2 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-5526
SELECT ALL + ( - 28 ) * cor0.col2 - 9 DIV col0 FROM tab2 AS cor0
----
-1064
-728
-757

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL + ( - 28 ) * cor0.col2 - 9 / col0 FROM tab2 AS cor0
----
-1064
-728
-757

query I rowsort
SELECT DISTINCT - 12 AS col2 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT 40 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5529
SELECT ALL ( col2 ) DIV + col2 + col1 AS col2 FROM tab1 cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL ( col2 ) / + col2 + col1 AS col2 FROM tab1 cor0
----
11
14
27

query I rowsort
SELECT DISTINCT - col1 + col2 * col2 * ( col0 * col0 ) FROM tab1
----
13307894
26218
58982387

query I rowsort
SELECT col2 * col0 + + col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT DISTINCT - col1 + + ( tab1.col1 ) * + col1 * + col2 + col0 * - col1 FROM tab1
----
15171
36400
5050

query I rowsort
SELECT DISTINCT + + 9 * 47 + col2 FROM tab1 AS cor0
----
477
480
519

query I rowsort
SELECT - - 99 FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT + 65 FROM tab0, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL col2 - + col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL 45 + col0 FROM tab2 AS cor0
----
123
124
52

query I rowsort
SELECT + - col2 * col2 - col1 FROM tab2 cor0
----
-1461
-735
-760

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col1 AS REAL ) + + cor0.col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5540
SELECT DISTINCT - 36 DIV col0 + - col1 * ( col1 ) AS col1 FROM tab0 AS cor0
----
-7397
-8281
-9410

skipif mysql # not compatible
query I rowsort label-5540
SELECT DISTINCT - 36 / col0 + - col1 * ( col1 ) AS col1 FROM tab0 AS cor0
----
-7397
-8281
-9410

query I rowsort
SELECT col1 - + ( cor0.col1 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 * ( col2 ) + col0 * col1 FROM tab0 AS cor0
----
15397
2856
3430

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 8a7905bab027a06731ba57659d83981d

onlyif mysql # use DIV operator for integer division
query I rowsort label-5544
SELECT - - col1 DIV 75 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5544
SELECT - - col1 / 75 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + - col1 + - 14 * col1 FROM tab1 AS cor0
----
-150
-195
-390

query I rowsort
SELECT - col0 * ( col1 * - col2 ) + + col1 AS col0 FROM tab2 AS cor0
----
119711
51051
5890

query I rowsort
SELECT cor0.col2 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - cor0.col1 + + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5550
SELECT CAST( NULL AS DECIMAL ) * ( col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5550
SELECT CAST ( NULL AS REAL ) * ( col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5551
SELECT DISTINCT + tab2.col2 + + tab2.col2 * col2 DIV - col1 AS col1 FROM tab2
----
-46
15
4

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT + tab2.col2 + + tab2.col2 * col2 / - col1 AS col1 FROM tab2
----
-46
15
4

query I rowsort
SELECT 64 * col2 + col0 * + cor0.col0 FROM tab1 AS cor0
----
12544
3465
7744

query I rowsort
SELECT + col1 + + col2 AS col2 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT 3 * - cor0.col1 FROM tab2 cor0
----
-177
-51
-93

query I rowsort
SELECT DISTINCT - - col1 + + col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - - col1 + - col2 + 47 AS col2 FROM tab2 AS cor0
----
26
51
80

query I rowsort
SELECT 48 AS col1 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5559
SELECT ALL - col2 * + col0 * CAST( ( col1 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL - col2 * + col0 * CAST ( ( col1 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT + col0 - tab2.col2 AS col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT + tab0.col1 + - col0 * - col0 FROM tab0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-5563
SELECT - col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5563
SELECT - col2 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 41 + + col0 AS col2 FROM tab2
----
-34
37
38

query I rowsort
SELECT DISTINCT ( 47 + tab2.col1 ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
106
64
78

query I rowsort
SELECT + col0 + + col0 - col1 AS col0 FROM tab1 AS cor0
----
-20
118
147

query I rowsort
SELECT col2 + - col2 + - ( col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL 56 AS col2 FROM tab0
----
56
56
56

query I rowsort
SELECT 91 AS col2 FROM tab0
----
91
91
91

query I rowsort
SELECT DISTINCT ( - ( - cor1.col2 ) ) + cor0.col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
9 values hashing to b8b62762005dc0d7237145d0538edb34

query I rowsort
SELECT ALL + - ( + col0 ) AS col2 FROM tab0 cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5572
SELECT ALL + 84 * + col1 * - CAST( - 4 AS SIGNED ) FROM tab2
----
10416
19824
5712

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL + 84 * + col1 * - CAST ( - 4 AS INTEGER ) FROM tab2
----
10416
19824
5712

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT - col2 * + 61 + 48 + col0 * 86 * col0 AS col1 FROM tab2 AS cor0
----
2615
521686
534456

query I rowsort
SELECT DISTINCT + col1 + 38 * col2 + + col1 AS col0 FROM tab0 AS cor0
----
1426
232
3298

query I rowsort
SELECT DISTINCT col0 * col2 + col2 - col2 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT col1 - 92 FROM tab2
----
-33
-61
-75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5578
SELECT + CAST( col1 + - col0 * + col2 AS SIGNED ) FROM tab2
----
-158
-1969
-2985

skipif mysql # not compatible
query I rowsort label-5578
SELECT + CAST ( col1 + - col0 * + col2 AS INTEGER ) FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT ALL + 38 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT + col0 * 64 AS col2 FROM tab1 cor0
----
192
4096
5120

query I rowsort
SELECT cor0.col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 * 77 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0ca9e866b4d8f3ffb9b218cb234799d2

query I rowsort
SELECT DISTINCT + 99 FROM tab1
----
99

query I rowsort
SELECT + 14 AS col2 FROM tab1
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 25 AS col0 FROM tab0
----
25
25
25

query I rowsort
SELECT + 85 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT - col1 * - col2 + ( col0 ) * col1 FROM tab2 AS cor0
----
1054
1989
6136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + + 82 col0 FROM tab2 AS cor0
----
1043
3563
371

query I rowsort
SELECT ( cor0.col2 ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT - + 12 FROM tab1 AS cor0
----
-12
-12
-12

query I rowsort
SELECT ALL + 81 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT - col2 * - tab0.col0 FROM tab0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( + 7 ) + col0 col1 FROM tab2
----
198
224
491

query I rowsort
SELECT DISTINCT + 71 * + col0 AS col1 FROM tab0 AS cor0
----
1704
2485
6319

query I rowsort
SELECT + - col2 * + 81 + + col0 * - 77 FROM tab1 AS cor0
----
-13936
-4605
-9545

query I rowsort
SELECT ALL - 71 * col1 FROM tab0 cor0
----
-6106
-6461
-6887

query I rowsort
SELECT ALL + cor0.col2 + col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT col2 * 28 FROM tab0
----
2296
28
924

query I rowsort
SELECT + 7 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5601
SELECT - col1 + CAST( NULL AS SIGNED ) * 40 - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5601
SELECT - col1 + CAST ( NULL AS INTEGER ) * 40 - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + col0 - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + col2 - + 50 AS col1 FROM tab2
----
-12
-23
-24

query I rowsort
SELECT DISTINCT col0 + + col2 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5606
SELECT ALL col0 DIV 93 + 46 * + col0 FROM tab2
----
322
3588
3634

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL col0 / 93 + 46 * + col0 FROM tab2
----
322
3588
3634

query I rowsort
SELECT + ( - col0 ) + cor0.col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - col0 + + 92 FROM tab0 cor0
----
3
57
68

query I rowsort
SELECT 32 * col1 + col1 FROM tab0
----
2838
3003
3201

query I rowsort
SELECT ALL - + 79 * + 15 + col2 FROM tab1 cor0
----
-1089
-1128
-1131

query I rowsort
SELECT + col2 + - col0 * - col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - ( col2 ) + col1 * 14 FROM tab0 AS cor0
----
1171
1192
1357

query I rowsort
SELECT ALL - 92 FROM tab1 cor0
----
-92
-92
-92

query I rowsort
SELECT - col1 * + 77 FROM tab2 AS cor0
----
-1309
-2387
-4543

query I rowsort
SELECT ALL + + col1 + - 32 * col2 FROM tab1 AS cor0
----
-1702
-1814
-3059

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5616
SELECT DISTINCT - + CAST( col0 AS SIGNED ) * col1 + col2 FROM tab1 cor0
----
-24
-583
-944

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT - + CAST ( col0 AS INTEGER ) * col1 + col2 FROM tab1 cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col2 ) col0 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - 36 col0 FROM tab2 AS cor0
----
-19
-5
23

query I rowsort
SELECT DISTINCT 88 AS col0 FROM tab0 AS cor0
----
88

query I rowsort
SELECT + ( + col1 ) + 67 * ( col0 ) AS col1 FROM tab0
----
1694
2442
6054

query I rowsort
SELECT 94 * col1 AS col0 FROM tab0 AS cor0
----
8084
8554
9118

query I rowsort
SELECT DISTINCT + 2 * col2 * - col0 FROM tab1
----
-15360
-324
-7296

query I rowsort
SELECT - 73 * col1 * + 45 AS col2 FROM tab1 AS cor0
----
-32850
-42705
-85410

query I rowsort
SELECT 74 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1924
740
962

query I rowsort
SELECT ALL - + cor0.col2 + - 57 * col0 AS col0 FROM tab0 AS cor0
----
-1401
-1996
-5155

query I rowsort
SELECT + cor0.col0 - col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + + col2 + - 43 + col0 AS col0 FROM tab0 AS cor0
----
-7
128
14

query I rowsort
SELECT + + col2 * + ( col0 ) - col0 FROM tab0 cor0
----
0
7209
768

query I rowsort
SELECT 55 * + col1 AS col1 FROM tab1
----
1430
550
715

query I rowsort
SELECT ALL + col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT col2 + + ( col0 ) FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5632
SELECT - cor0.col0 DIV col1 + + col1 - - col1 AS col2 FROM tab0 cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-5632
SELECT - cor0.col0 / col1 + + col1 - - col1 AS col2 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT - col1 * + col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - col1 + 36 * + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-134
-2314
-2893

query I rowsort
SELECT ALL - + col2 * 82 * 55 FROM tab0 AS cor0
----
-148830
-369820
-4510

query I rowsort
SELECT ALL col2 * - 24 AS col2 FROM tab2 AS cor0
----
-624
-648
-912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 84 col1 FROM tab2 AS cor0
----
5
6
77

query I rowsort
SELECT - - col1 * 88 AS col1 FROM tab2 cor0
----
1496
2728
5192

query I rowsort
SELECT ALL - col0 * + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-35
-4106
-6413

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 DISTINCT + col2 * cor0.col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT - col0 + + ( col0 ) * - col1 FROM tab2 cor0
----
-1422
-224
-4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5643
SELECT + col2 + + ( col0 ) DIV col0 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-5643
SELECT + col2 + + ( col0 ) / col0 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT ALL + + col0 + + col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT col2 + ( + col1 ) FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT - 26 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5647
SELECT DISTINCT CAST( - col0 AS SIGNED ) * - cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-5647
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * - cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + - cor0.col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT + 98 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT + 32 * + 85 * - col2 FROM tab0 cor0
----
-223040
-2720
-89760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5651
SELECT ALL - CAST( NULL AS SIGNED ) * 0 - + cor0.col2 * - 75 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL - CAST ( NULL AS INTEGER ) * 0 - + cor0.col2 * - 75 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 13 * col2 AS col0 FROM tab2 AS cor0
----
338
351
494

query I rowsort
SELECT ( - 81 ) FROM tab2 AS cor0
----
-81
-81
-81

query I rowsort
SELECT ALL - tab0.col1 - + col0 AS col0 FROM tab0
----
-110
-132
-180

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 1b40f6ebec12e55a9e5893620c5636c7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5656
SELECT DISTINCT - 64 DIV - col0 + - col0 col2 FROM tab1 AS cor0
----
-63
-80
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT - 64 / - col0 + - col0 col2 FROM tab1 AS cor0
----
-63
-80
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-5657
SELECT ALL + ( - col1 ) DIV - 83 + 82 AS col0 FROM tab1 cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL + ( - col1 ) / - 83 + 82 AS col0 FROM tab1 cor0
----
82
82
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5658
SELECT ALL - + col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL - + col0 / - col0 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - - col0 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL 24 * - col2 FROM tab2 AS cor0
----
-624
-648
-912

query I rowsort
SELECT - ( + col2 ) - + tab0.col2 * - col1 FROM tab0
----
2805
7380
96

query I rowsort
SELECT + 39 * + 72 FROM tab1
----
2808
2808
2808

query I rowsort
SELECT ALL 44 + tab1.col0 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to e598e6783e1ea47ed1cb350c2563a05d

query I rowsort
SELECT 74 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT 29 * + col0 FROM tab0
----
1015
2581
696

query I rowsort
SELECT DISTINCT - 47 AS col1 FROM tab0 AS cor0
----
-47

query I rowsort
SELECT ALL + col2 + col1 + + ( col1 ) * col0 AS col1 FROM tab2 AS cor0
----
1398
275
4687

query I rowsort
SELECT tab2.col2 * + col1 + col0 * + col2 AS col2 FROM tab2
----
1026
3562
3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-5670
SELECT 43 * - col2 + 98 DIV - col2 FROM tab0
----
-141
-1421
-3527

skipif mysql # not compatible
query I rowsort label-5670
SELECT 43 * - col2 + 98 / - col2 FROM tab0
----
-141
-1421
-3527

query I rowsort
SELECT DISTINCT - 71 FROM tab2
----
-71

query I rowsort
SELECT + 68 + + col1 FROM tab1 cor0
----
78
81
94

query I rowsort
SELECT ALL - col0 + - col2 * col1 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT 89 AS col2 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT DISTINCT + 37 + col0 AS col2 FROM tab1 AS cor0
----
101
117
40

query I rowsort
SELECT ALL + ( - col1 ) FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5677
SELECT - + 77 + col1 * col1 DIV col1 AS col2 FROM tab1 cor0
----
-51
-64
-67

skipif mysql # not compatible
query I rowsort label-5677
SELECT - + 77 + col1 * col1 / col1 AS col2 FROM tab1 cor0
----
-51
-64
-67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5678
SELECT DISTINCT + - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT + - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + - col2 * cor0.col1 + + col0 * 20 FROM tab2 AS cor0
----
-697
26
934

onlyif mysql # use DIV operator for integer division
query I rowsort label-5680
SELECT - - ( - col2 ) - - 48 DIV - col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5680
SELECT - - ( - col2 ) - - 48 / - col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
5
66
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 - col2 col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT cor0.col0 * col2 - ( 16 * col1 ) FROM tab1 AS cor0
----
-254
3488
7472

query I rowsort
SELECT + 31 * col0 + + col0 FROM tab2 AS cor0
----
224
2496
2528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * - 38 col0 FROM tab0 AS cor0
----
-1254
-3116
-38

query I rowsort
SELECT DISTINCT - col2 + + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5687
SELECT + col0 + CAST( cor0.col2 AS SIGNED ) FROM tab0 cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-5687
SELECT + col0 + CAST ( cor0.col2 AS INTEGER ) FROM tab0 cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5688
SELECT DISTINCT + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT + col2 / + col0 AS col1 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT + col0 + + col2 * col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT + + 57 AS col0 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT - 25 + + col2 FROM tab0 AS cor0
----
-24
57
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5692
SELECT - ( col1 ) + col0 * CAST( 5 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
34
354
78

skipif mysql # not compatible
query I rowsort label-5692
SELECT - ( col1 ) + col0 * CAST ( 5 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
34
354
78

query I rowsort
SELECT col2 + + 66 FROM tab0 AS cor0
----
148
67
99

query I rowsort
SELECT + col2 + col1 * cor0.col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL col2 * - ( col0 + col0 ) AS col1 FROM tab2
----
-378
-4056
-6004

query I rowsort
SELECT - + col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - cor1.col0 * - cor0.col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
9 values hashing to d678abade8bf70a0dcfdc79d6219306c

query I rowsort
SELECT + cor0.col0 + 96 AS col0 FROM tab2 cor0
----
103
174
175

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5699
SELECT ALL - CAST( + cor0.col2 AS SIGNED ) + - col0 * ( col0 * col0 ) AS col1 FROM tab2 AS cor0
----
-370
-474578
-493077

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL - CAST ( + cor0.col2 AS INTEGER ) + - col0 * ( col0 * col0 ) AS col1 FROM tab2 AS cor0
----
-370
-474578
-493077

query I rowsort
SELECT ALL 47 * tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to dae9cbf013c3ba38993d39e6103456e0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col2 FROM tab2
----
32
32
32

query I rowsort
SELECT DISTINCT ( col1 ) AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT 88 * + col1 FROM tab2
----
1496
2728
5192

query I rowsort
SELECT DISTINCT col0 + col1 * ( + 29 + col1 ) FROM tab2 AS cor0
----
1867
5270
861

onlyif mysql # use DIV operator for integer division
query I rowsort label-5705
SELECT - - col0 + - col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-5705
SELECT - - col0 + - col1 / + col1 AS col1 FROM tab0 AS cor0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 + col0 col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + col2 AS col1 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT 25 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT DISTINCT - - 7 AS col0 FROM tab0 AS cor0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 * tab0.col2 col2 FROM tab0
----
2574
6396
78

query I rowsort
SELECT DISTINCT 29 * + tab1.col1 AS col2 FROM tab1
----
290
377
754

query I rowsort
SELECT ALL + ( - 52 ) FROM tab2
----
-52
-52
-52

query I rowsort
SELECT col0 * + ( 88 ) + - col0 FROM tab0 cor0
----
2088
3045
7743

query I rowsort
SELECT - col0 + + col1 + - ( - col1 ) * + col0 * ( ( col2 ) * - col1 ) FROM tab2
----
-181605
-7059487
-867640

query I rowsort
SELECT col2 - - ( - col2 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( col1 + 25 * col2 ) FROM tab1
----
1376
1435
2413

onlyif mysql # use DIV operator for integer division
query I rowsort label-5717
SELECT ALL + col2 * col1 DIV 73 FROM tab0
----
1
102
38

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL + col2 * col1 / 73 FROM tab0
----
1
102
38

query I rowsort
SELECT DISTINCT - 81 + + 2 FROM tab2, tab2 AS cor0
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 3 col1 FROM tab2 AS cor0
----
10
81
82

query I rowsort
SELECT col1 * + 44 + 17 FROM tab0 AS cor0
----
3801
4021
4285

query I rowsort
SELECT - col2 + + 89 * col0 AS col2 FROM tab1 AS cor0
----
213
5639
7024

query I rowsort
SELECT col0 + col2 * ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
1523
736
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 99 - - col1 col2 FROM tab0 AS cor0
----
-13
-2
-8

query I rowsort
SELECT DISTINCT + + col1 * col2 + 15 FROM tab1 AS cor0
----
1263
1419
585

query I rowsort
SELECT DISTINCT + col1 + col0 * col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ( col0 ) - col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - - 88 * + col2 AS col1 FROM tab0 cor0
----
2904
7216
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5728
SELECT - + 68 DIV col1 - + col1 * col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-5728
SELECT - + 68 / col1 - + col1 * col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - 17 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

query I rowsort
SELECT DISTINCT - col1 + - col1 * - ( + 61 ) * col0 FROM tab2 AS cor0
----
13206
280663
81906

query I rowsort
SELECT - 99 * col1 + col1 * - col0 - + col2 AS col1 FROM tab1 AS cor0
----
-1687
-2423
-2706

onlyif mysql # use DIV operator for integer division
query I rowsort label-5732
SELECT ALL + col0 + col1 DIV + col0 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL + col0 + col1 / + col0 FROM tab1 AS cor0
----
11
64
80

query I rowsort
SELECT ALL col2 * - col1 - 27 * ( + tab2.col0 + 85 ) FROM tab2
----
-3321
-5074
-5935

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5734
SELECT + col0 + col0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5734
SELECT + col0 + col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab1.col2 * col0 + - col1 * - col0 * + col0 FROM tab1
----
396
44608
90880

query I rowsort
SELECT DISTINCT col1 + - col0 - + 45 AS col2 FROM tab1
----
-112
-22
-99

query I rowsort
SELECT + 38 * tab2.col1 - col1 * - col2 AS col2 FROM tab2
----
1292
2015
3776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col0 * + 33 FROM tab1 AS cor0
----
2112
2640
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 * col0 col2 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL col0 * 20 FROM tab1 AS cor0
----
1280
1600
60

query I rowsort
SELECT + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + - col0 * - col1 + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL 17 + + col2 * - 78 * ( - col2 ) + col0 FROM tab2
----
112728
52823
56886

query I rowsort
SELECT - ( cor1.col0 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT col1 * col2 * - col0 + + 38 AS col0 FROM tab0
----
-3357
-664080
-68074

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5747
SELECT DISTINCT + ( col0 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5747
SELECT DISTINCT + ( col0 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab2 cor0, tab0 AS cor1
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT ALL col2 * - 89 AS col2 FROM tab2
----
-2314
-2403
-3382

query I rowsort
SELECT ALL + - 90 + - col0 FROM tab0 AS cor0
----
-114
-125
-179

query I rowsort
SELECT ALL - + ( + cor0.col1 ) * col1 + col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5752
SELECT DISTINCT CAST( + col0 AS SIGNED ) + + col2 FROM tab2 cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + + col2 FROM tab2 cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5753
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * col2 - + 62 * + col1 * col2 FROM tab2 AS cor0
----
-40698
-52731
-96642

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * col2 - + 62 * + col1 * col2 FROM tab2 AS cor0
----
-40698
-52731
-96642

query I rowsort
SELECT + - 95 AS col1 FROM tab0 cor0
----
-95
-95
-95

query I rowsort
SELECT ALL - ( col0 ) + col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + col2 * + 85 AS col2 FROM tab2 AS cor0
----
2210
2295
3230

query I rowsort
SELECT DISTINCT - col1 + col2 - cor0.col1 * ( + col2 ) AS col1 FROM tab0 AS cor0
----
-193
-2891
-7471

query I rowsort
SELECT ALL tab2.col2 + - ( tab2.col0 ) AS col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL col0 + col2 * + col2 + - col2 AS col1 FROM tab1 AS cor0
----
2865
3256
9200

query I rowsort
SELECT - + 3 * cor0.col1 FROM tab1 AS cor0
----
-30
-39
-78

query I rowsort
SELECT ALL 48 + + col2 * col2 FROM tab1 AS cor0
----
2964
3297
9264

query I rowsort
SELECT ( cor0.col0 ) * cor0.col0 AS col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL + col1 + + 17 + - col0 AS col1 FROM tab1 AS cor0
----
-37
-50
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5764
SELECT DISTINCT CAST( + 60 AS SIGNED ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT CAST ( + 60 AS INTEGER ) FROM tab1
----
60

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab1, tab0 AS cor0
----
90

query I rowsort
SELECT ALL col1 * + tab2.col2 AS col0 FROM tab2
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5767
SELECT - CAST( col2 AS SIGNED ) + col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5767
SELECT - CAST ( col2 AS INTEGER ) + col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL ( - col2 * + col1 ) FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT + + col2 AS col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + - 15 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT + 85 FROM tab2, tab1 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5772
SELECT CAST( NULL AS SIGNED ) + ( col0 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT CAST ( NULL AS INTEGER ) + ( col0 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 0 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT 68 * - cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
-3672
-3876
-6528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col0 FROM tab2
----
7
78
79

query I rowsort
SELECT - 93 FROM tab2
----
-93
-93
-93

query I rowsort
SELECT + 93 AS col2 FROM tab2 cor0
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col1 col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT + 32 * col1 + + col1 FROM tab2 AS cor0
----
1023
1947
561

onlyif mysql # use DIV operator for integer division
query I rowsort label-5780
SELECT DISTINCT col1 DIV + cor0.col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5780
SELECT DISTINCT col1 / + cor0.col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - + col1 + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + col0 + + cor0.col0 * - col0 AS col2 FROM tab0 cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT + + col0 + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - + 44 * + col1 + col0 FROM tab0 AS cor0
----
-3760
-3915
-4233

query I rowsort
SELECT ALL + col0 * col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT DISTINCT + - col2 * col2 * - 14 AS col1 FROM tab1 AS cor0
----
129024
40824
45486

query I rowsort
SELECT DISTINCT - col1 + col0 + + col2 AS col1 FROM tab2 AS cor0
----
100
3
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + col0 col2 FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT ALL + col0 + - cor0.col0 * + 26 + cor0.col0 FROM tab1 AS cor0
----
-1536
-1920
-72

query I rowsort
SELECT DISTINCT col1 * + ( - col1 ) + - col0 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT col2 * col1 + + 14 * + col2 AS col0 FROM tab1 AS cor0
----
1368
2160
2592

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5792
SELECT DISTINCT + col1 * CAST( col0 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
1381
244
4628

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT + col1 * CAST ( col0 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + 27 + - col1 col0 FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT DISTINCT + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + + col0 + - col0 * + col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + col2 + 92 AS col2 FROM tab0 AS cor0
----
125
174
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 24 col2 FROM tab2 AS cor0
----
-168
-1872
-1896

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - col2 + ( cor0.col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col2 + col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + cor0.col0 * - col2 + col1 * cor0.col1 FROM tab0 AS cor0
----
6604
9374
983

query I rowsort
SELECT ALL - + 3 * 36 FROM tab2 AS cor0
----
-108
-108
-108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - + 45 FROM tab1 AS cor0
----
-45
-45
-45

query I rowsort
SELECT - cor0.col0 * - cor0.col0 AS col2 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT col1 * ( - col2 ) * + col2 AS col0 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT ALL + tab2.col2 + 50 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to b9742db8b1bf309580788cf7f58b30d4

query I rowsort
SELECT DISTINCT tab1.col1 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
10
13
26

query I rowsort
SELECT col1 - col1 * col1 AS col0 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT - + col0 + 81 FROM tab1 AS cor0
----
1
17
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5811
SELECT - - col0 + + ( 42 ) DIV col0 FROM tab0 AS cor0
----
25
36
89

skipif mysql # not compatible
query I rowsort label-5811
SELECT - - col0 + + ( 42 ) / col0 FROM tab0 AS cor0
----
25
36
89

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 + col2 * col1 * - col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + + col2 + + 0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - 19 * + col2 FROM tab1
----
-1026
-1083
-1824

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT 35 * + col0 + col0 FROM tab0
----
1260
3204
864

query I rowsort
SELECT + col2 * + col0 + col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT DISTINCT + - col2 * - col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5820
SELECT col1 * + col0 + col1 DIV col1 AS col1 FROM tab0 AS cor0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-5820
SELECT col1 * + col0 + col1 / col1 AS col1 FROM tab0 AS cor0
----
2065
3396
8100

query I rowsort
SELECT - ( col0 ) + col2 * - 32 AS col2 FROM tab1 cor0
----
-1731
-1888
-3152

query I rowsort
SELECT - - col0 + cor0.col0 * col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - + col2 * + cor0.col0 + 76 AS col2 FROM tab2 cor0
----
-113
-1952
-2926

query I rowsort
SELECT DISTINCT + col2 * col0 + 47 AS col1 FROM tab1 AS cor0
----
209
3695
7727

skipif mysql # not compatible
query I rowsort
SELECT ALL - + col0 + col0 * CAST ( ( col0 ) AS REAL ) FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT ALL - 25 * - col2 AS col1 FROM tab2 AS cor0
----
650
675
950

query I rowsort
SELECT ALL - + col1 * col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 1 * - col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col2 FROM tab2 AS cor0
----
-92
-92
-92

query I rowsort
SELECT DISTINCT 19 * col2 AS col2 FROM tab0
----
1558
19
627

query I rowsort
SELECT 68 * + col2 AS col0 FROM tab2 AS cor0
----
1768
1836
2584

query I rowsort
SELECT - 12 * - col0 + + col1 * col1 FROM tab2 AS cor0
----
1045
1237
4417

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * col1 * col2 col0 FROM tab1 AS cor0
----
31920
69888
78624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5834
SELECT - - cor0.col1 + col1 * - CAST( + col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
-1027
-52
-630

skipif mysql # not compatible
query I rowsort label-5834
SELECT - - cor0.col1 + col1 * - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-5835
SELECT ALL + cor0.col0 DIV - 64 + col0 AS col1 FROM tab1 AS cor0
----
3
63
79

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL + cor0.col0 / - 64 + col0 AS col1 FROM tab1 AS cor0
----
3
63
79

query I rowsort
SELECT - tab1.col0 * + 28 FROM tab1, tab2 AS cor0
----
9 values hashing to a36eeacd0e9675e9abdc77ec2d6faceb

query I rowsort
SELECT - tab2.col0 * + col0 AS col0 FROM tab2
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5838
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5839
SELECT DISTINCT col2 + - col2 DIV cor0.col1 FROM tab2 AS cor0
----
26
27
36

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT col2 + - col2 / cor0.col1 FROM tab2 AS cor0
----
26
27
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - 86 col1 FROM tab0 AS cor0
----
-2838
-7052
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5841
SELECT col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5841
SELECT col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + - ( col1 + col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
375
4328
6571

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - 89 * + col1 col0 FROM tab0 AS cor0
----
7678
8188
8668

query I rowsort
SELECT + col2 + - col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + ( 99 * + col1 ) + 2 - col2 AS col2 FROM tab0
----
8483
8929
9604

query I rowsort
SELECT + 5 + - 32 + + col2 * - col2 * + col0 FROM tab2 AS cor0
----
-114103
-5130
-52755

query I rowsort
SELECT + - cor0.col2 + + ( - col2 ) + + col2 * + col2 FROM tab1 AS cor0
----
2808
3135
9024

onlyif mysql # use DIV operator for integer division
query I rowsort label-5848
SELECT cor0.col2 DIV cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-5848
SELECT cor0.col2 / cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT + col2 * - 82 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2870
-598436
-64944

query I rowsort
SELECT DISTINCT - ( col2 ) - ( + col0 ) * cor0.col0 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT ALL cor0.col1 * col0 + ( + ( - col1 ) ) * + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + cor0.col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + + cor0.col0 - - col2 * col1 AS col2 FROM tab1 cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-5855
SELECT cor0.col1 DIV + col1 + - ( col0 + col1 ) AS col1 FROM tab1 AS cor0
----
-28
-73
-92

skipif mysql # not compatible
query I rowsort label-5855
SELECT cor0.col1 / + col1 + - ( col0 + col1 ) AS col1 FROM tab1 AS cor0
----
-28
-73
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-5856
SELECT - - col0 * + col2 * cor0.col2 + - ( - col1 ) DIV + ( - 92 ) AS col0 FROM tab1 cor0
----
207936
737280
8748

skipif mysql # not compatible
query I rowsort label-5856
SELECT - - col0 * + col2 * cor0.col2 + - ( - col1 ) / + ( - 92 ) AS col0 FROM tab1 cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT 12 FROM tab2 AS cor0
----
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5858
SELECT CAST( NULL AS SIGNED ) / tab1.col0 col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5858
SELECT CAST ( NULL AS INTEGER ) / tab1.col0 col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + 16 * 79 FROM tab1
----
1264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 col0 FROM tab1, tab0 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL + tab0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL - 74 AS col2 FROM tab2
----
-74
-74
-74

query I rowsort
SELECT - col1 * cor0.col1 * - col0 AS col2 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT + col1 * col2 AS col2 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5866
SELECT col1 + col0 DIV + col1 FROM tab1
----
16
19
26

skipif mysql # not compatible
query I rowsort label-5866
SELECT col1 + col0 / + col1 FROM tab1
----
16
19
26

query I rowsort
SELECT - col1 + - col0 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT ALL - col2 + - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col2 * + col0 col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT + col1 * - col2 + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-1026
-3562
-3648

query I rowsort
SELECT DISTINCT col0 + col2 + + col2 * - col1 FROM tab1 cor0
----
-1072
-1347
-449

query I rowsort
SELECT DISTINCT - - col0 - + col2 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT col1 * + col0 * cor0.col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - col0 * + col2 * col0 + - col1 FROM tab0 AS cor0
----
-1322
-19094
-649613

query I rowsort
SELECT ALL - + cor0.col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT col2 + - col2 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT + - cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5878
SELECT - col2 + - col2 DIV + col0 FROM tab1 AS cor0
----
-57
-72
-97

skipif mysql # not compatible
query I rowsort label-5878
SELECT - col2 + - col2 / + col0 FROM tab1 AS cor0
----
-57
-72
-97

query I rowsort
SELECT - col1 * col1 * + col2 + + col2 - - col2 * - col1 AS col2 FROM tab1 AS cor0
----
-17376
-37854
-6213

query I rowsort
SELECT - col2 + + col0 + col2 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - + col0 + + col2 * - col2 * col1 FROM tab1 AS cor0
----
-119888
-32554
-75819

query I rowsort
SELECT ALL - col0 * - col2 * tab2.col2 AS col2 FROM tab2
----
114076
5103
52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col0 ) * col0 + + col1 col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT - 63 FROM tab2 AS cor0
----
-63
-63
-63

query I rowsort
SELECT ALL - 45 * col1 AS col1 FROM tab0 AS cor0
----
-3870
-4095
-4365

query I rowsort
SELECT DISTINCT + - 16 * col0 FROM tab0 AS cor0
----
-1424
-384
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 + - col1 ) col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 63 * col1 AS col2 FROM tab0 AS cor0
----
5418
5733
6111

query I rowsort
SELECT DISTINCT - 26 FROM tab2
----
-26

query I rowsort
SELECT - col1 - + col2 * + col0 * col0 AS col0 FROM tab0
----
-1322
-19094
-649613

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * col0 + + tab1.col0 * col0 = ( col0 * col2 * col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT - col1 * - tab0.col0 * col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT ALL tab2.col2 + + col0 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NULL IN ( + col2 / + col2 )
----

query I rowsort
SELECT col2 * col0 + - col1 * col2 AS col2 FROM tab0
----
-164
-2046
-62

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + col1 + tab2.col0 )
----

query I rowsort
SELECT DISTINCT col0 * col2 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL + col1 + col2 * col0 * col2 AS col1 FROM tab2
----
114093
5134
52787

query I rowsort
SELECT ALL + col1 * - tab0.col0 + col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL col2 * col2 - + col2 FROM tab2
----
1406
650
702

query I rowsort
SELECT DISTINCT col2 * + tab2.col0 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL - col1 * - col0 * + col0 AS col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT DISTINCT + col1 * col2 - + col0 * + col1 AS col0 FROM tab1
----
-70
1326
208

query I rowsort
SELECT DISTINCT col1 * - col2 * + col2 FROM tab2 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT - col2 + + col0 * col2 FROM tab2
----
162
2002
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col0 col0 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5907
SELECT col2 DIV - col1 FROM tab1 WHERE NOT - col1 + - col2 IN ( tab1.col0 )
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5907
SELECT col2 / - col1 FROM tab1 WHERE NOT - col1 + - col2 IN ( tab1.col0 )
----
-2
-5
-7

query I rowsort
SELECT - tab0.col2 + col0 * col2 * - col2 AS col0 FROM tab0
----
-26169
-36
-598518

query I rowsort
SELECT + col2 * col2 AS col2 FROM tab2
----
1444
676
729

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col2 AND NULL
----

query I rowsort
SELECT - col1 * + col1 + + tab1.col1 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT DISTINCT tab1.col2 + - col0 AS col2 FROM tab1
----
-7
16
51

query I rowsort
SELECT - tab0.col1 * + col2 FROM tab0 WHERE NOT NULL IN ( col2 * - col0 * col0 )
----

query I rowsort
SELECT ALL + col0 + + col1 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 col1 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL - col0 + tab0.col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND - col1 * + col1 + col0 * col0 / - col0
----

query I rowsort
SELECT DISTINCT + col2 + - tab1.col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT - tab1.col2 + - col0 AS col0 FROM tab1
----
-121
-176
-57

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT BETWEEN ( NULL ) AND - col1 + col1 - col2 * col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT + col2 + - col0 * tab2.col2 FROM tab2
----
-162
-2002
-2964

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) = + col0 * + col2 - + col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT + col1 * - col2 + - tab0.col1 AS col1 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT + col1 + col0 * col0 + col1 * col0 AS col0 FROM tab0
----
16111
2726
4717

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + col1 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 + cor0.col1 * col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + - col1 * col0 + col0 - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col2 * + col1 AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - col0 * cor0.col0 - col1 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT + col2 * + col2 + + cor0.col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT cor0.col2 + - col1 * col1 - col0 FROM tab0 AS cor0
----
-7387
-8288
-9443

query I rowsort
SELECT ALL - col1 * col2 + - col1 AS col0 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT col2 + - col1 + + col2 AS col1 FROM tab1 AS cor0
----
104
179
82

query I rowsort
SELECT ALL cor0.col2 * + col2 AS col0 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - cor0.col0 * col2 - col0 FROM tab1 cor0
----
-165
-3712
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 - - col1 AS col2 FROM tab1
----
29
74
93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * + col0 + - col2 * col0 = NULL
----

query I rowsort
SELECT + ( col2 ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + cor0.col1 + - 43 * + col1 * - 17 FROM tab0 AS cor0
----
62952
66612
71004

query I rowsort
SELECT col0 * - col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + col0 * + 91 FROM tab2 AS cor0
----
637
7098
7189

query I rowsort
SELECT DISTINCT - 60 AS col2 FROM tab1 AS cor0
----
-60

query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 + col0 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - + 10 + cor0.col1 AS col2 FROM tab1 AS cor0
----
0
16
3

query I rowsort
SELECT 30 + - 86 * col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-4560
-4815
-8130

query I rowsort
SELECT + 40 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT - ( - col2 ) + + cor0.col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - - ( 77 ) * + col2 AS col1 FROM tab2 AS cor0
----
2002
2079
2926

query I rowsort
SELECT - - col2 + 36 * col0 + 46 FROM tab0 AS cor0
----
1307
3332
943

onlyif mysql # use DIV operator for integer division
query I rowsort label-5950
SELECT + 53 DIV 26 AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

skipif mysql # not compatible
query I rowsort label-5950
SELECT + 53 / 26 AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

onlyif mysql # use DIV operator for integer division
query I rowsort label-5951
SELECT ALL ( - 50 ) * col2 DIV col0 AS col1 FROM tab1
----
-44
-60
-900

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL ( - 50 ) * col2 / col0 AS col1 FROM tab1
----
-44
-60
-900

query I rowsort
SELECT col2 * cor0.col2 AS col0 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT - col0 * 37 - - 97 AS col1 FROM tab0 AS cor0
----
-1198
-3196
-791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 * col0 col0 FROM tab0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-5955
SELECT ALL col2 DIV - 32 FROM tab1
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL col2 / - 32 FROM tab1
----
-1
-1
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5956
SELECT - col2 * + CAST( NULL AS DECIMAL ) * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5956
SELECT - col2 * + CAST ( NULL AS REAL ) * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5957
SELECT DISTINCT + + col1 * ( col0 * + col2 ) + CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT + + col1 * ( col0 * + col2 ) + CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col1 * - col0 + + 32 * - col1 * + ( - ( col0 ) ) FROM tab2 AS cor0
----
151866
44319
7161

onlyif mysql # use DIV operator for integer division
query I rowsort label-5959
SELECT - col1 * 33 DIV col1 + + col0 * col0 AS col0 FROM tab0 AS cor0
----
1192
543
7888

skipif mysql # not compatible
query I rowsort label-5959
SELECT - col1 * 33 / col1 + + col0 * col0 AS col0 FROM tab0 AS cor0
----
1192
543
7888

query I rowsort
SELECT ALL - tab0.col2 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT col0 - - col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - col0 * col1 + col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT - + col2 + col0 * col1 AS col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL + col2 * - ( 34 ) - tab1.col1 FROM tab1
----
-1862
-1948
-3277

query I rowsort
SELECT col0 + col0 * - col1 - col1 * + tab1.col1 AS col2 FROM tab1
----
-1129
-676
-751

query I rowsort
SELECT + col0 * col2 * 72 FROM tab0
----
2520
525456
57024

query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
94

query I rowsort
SELECT + 32 * + tab0.col0 * col1 AS col1 FROM tab0
----
108640
259168
66048

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5970
SELECT + CAST( NULL AS DECIMAL ) - col1 col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5970
SELECT + CAST ( NULL AS REAL ) - col1 col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + 51 + + cor0.col1 col0 FROM tab2 cor0
----
147
188
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5972
SELECT DISTINCT - col0 + 74 DIV + col0 FROM tab1
----
-63
-80
21

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT - col0 + 74 / + col0 FROM tab1
----
-63
-80
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 - - col0 col2 FROM tab2
----
127
128
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5974
SELECT DISTINCT CAST( - col2 AS SIGNED ) + + col1 AS col2 FROM tab2
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + + col1 AS col2 FROM tab2
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5975
SELECT ALL CAST( NULL AS SIGNED ) * - col1 + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 + - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 41 - col2 AS col2 FROM tab0 AS cor0
----
-123
-42
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5977
SELECT CAST( - col0 AS SIGNED ) - + col0 * - col2 FROM tab2 AS cor0
----
182
1950
2923

skipif mysql # not compatible
query I rowsort label-5977
SELECT CAST ( - col0 AS INTEGER ) - + col0 * - col2 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5978
SELECT ALL + CAST( col1 AS SIGNED ) + - col0 FROM tab2 cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL + CAST ( col1 AS INTEGER ) + - col0 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT + col0 - 78 AS col2 FROM tab0 AS cor0
----
-43
-54
11

query I rowsort
SELECT ALL 41 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5981
SELECT ALL - ( + col2 + CAST( - 31 AS SIGNED ) ) AS col2 FROM tab0
----
-2
-51
30

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL - ( + col2 + CAST ( - 31 AS INTEGER ) ) AS col2 FROM tab0
----
-2
-51
30

query I rowsort
SELECT + - col0 + col2 * 51 FROM tab1 cor0
----
2751
2843
4816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + ( 29 * - col2 ) col1 FROM tab2 AS cor0
----
19604
21141
41876

query I rowsort
SELECT - + cor0.col2 * + col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + ( tab2.col1 ) * col1 AS col2 FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL - col2 * 29 + + col2 AS col2 FROM tab1 AS cor0
----
-1512
-1596
-2688

query I rowsort
SELECT DISTINCT + + col2 - + col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL + - col2 * 1 FROM tab1 AS cor0
----
-54
-57
-96

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab2, tab0 cor1
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT - 37 AS col1 FROM tab0 cor0
----
-37
-37
-37

query I rowsort
SELECT - col0 * - col0 + ( 97 ) AS col0 FROM tab2 AS cor0
----
146
6181
6338

query I rowsort
SELECT DISTINCT - col1 * - col1 - col2 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT 32 + - col1 FROM tab0
----
-54
-59
-65

query I rowsort
SELECT ALL + col2 * + 75 FROM tab0 AS cor0
----
2475
6150
75

query I rowsort
SELECT col0 * - 46 AS col1 FROM tab1 AS cor0
----
-138
-2944
-3680

query I rowsort
SELECT DISTINCT - col2 * - ( cor0.col1 ) AS col2 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 col1 FROM tab2, tab0 AS cor0
----
64

query I rowsort
SELECT ALL + ( tab0.col2 ) FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL + col2 + - cor0.col0 + ( cor0.col2 ) FROM tab0 AS cor0
----
-33
42
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-6000
SELECT ALL - col0 + col2 DIV col0 AS col2 FROM tab0 AS cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL - col0 + col2 / col0 AS col2 FROM tab0 AS cor0
----
-23
-35
-89

query I rowsort
SELECT ALL - cor0.col2 + + cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT DISTINCT + col2 + col1 + col1 FROM tab1 AS cor0
----
106
122
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6003
SELECT DISTINCT + ( - 21 ) + col2 DIV 98 + + col2 FROM tab2
----
17
5
6

skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT + ( - 21 ) + col2 / 98 + + col2 FROM tab2
----
17
5
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6004
SELECT DISTINCT col2 DIV 3 + - col2 + col0 FROM tab1
----
-33
16
26

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT col2 / 3 + - col2 + col0 FROM tab1
----
-33
16
26

query I rowsort
SELECT - ( + tab1.col1 ) AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT + col2 * - col1 * col2 + col1 FROM tab1 AS cor0
----
-119795
-32480
-75790

query I rowsort
SELECT 36 * - 11 + + tab2.col0 + tab2.col2 FROM tab2
----
-279
-292
-362

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6008
SELECT ALL - + CAST( NULL AS SIGNED ) * cor0.col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL - + CAST ( NULL AS INTEGER ) * cor0.col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - cor0.col1 ) * + cor0.col2 - col0 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT col1 * 45 FROM tab2 AS cor0
----
1395
2655
765

query I rowsort
SELECT ALL - 90 + cor0.col1 FROM tab2 cor0
----
-31
-59
-73

query I rowsort
SELECT + - col1 + + 44 * + col0 - + 8 AS col2 FROM tab1 AS cor0
----
2798
3499
98

query I rowsort
SELECT ALL - col2 - col2 * cor0.col0 * - ( col0 ) FROM tab1 AS cor0
----
233415
432
614304

query I rowsort
SELECT DISTINCT + cor0.col0 * + 67 FROM tab2, tab1 AS cor0
----
201
4288
5360

query I rowsort
SELECT ALL + + col1 * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6016
SELECT DISTINCT - + col0 DIV - col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT - + col0 / - col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 * - col1 col1 FROM tab0 cor0
----
-7138
-7553
-8051

query I rowsort
SELECT col1 + + col2 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT col1 + col1 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-45
40
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 * - col1 + + col2 col2 FROM tab0 AS cor0
----
-4525
-4741
-5140

query I rowsort
SELECT ALL ( + col0 ) * - 60 + col1 + col2 * col0 * col2 AS col2 FROM tab2 AS cor0
----
109353
4714
48107

query I rowsort
SELECT DISTINCT - - col2 * col2 - col2 AS col1 FROM tab2 cor0
----
1406
650
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-6023
SELECT DISTINCT - col2 DIV + cor0.col1 - cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT - col2 / + cor0.col1 - cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT 74 + cor0.col1 FROM tab1 AS cor0
----
100
84
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - col2 * col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - col2 - 73 AS col2 FROM tab0
----
-106
-155
-74

query I rowsort
SELECT + 32 - + col1 FROM tab1
----
19
22
6

query I rowsort
SELECT col0 - + col2 AS col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT + ( + 50 * + tab0.col2 + col2 ) AS col0 FROM tab0
----
1683
4182
51

query I rowsort
SELECT + + col2 * + col1 + 69 AS col1 FROM tab2 AS cor0
----
1603
715
906

query I rowsort
SELECT DISTINCT - 90 + + cor0.col1 FROM tab1 AS cor0
----
-64
-77
-80

query I rowsort
SELECT DISTINCT + + col1 * col2 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL col2 + col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 * - col0 col1 FROM tab2 AS cor0
----
378
4212
4266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 * - cor0.col2 + + ( col2 ) col2 FROM tab1 AS cor0
----
-216
-228
-384

query I rowsort
SELECT DISTINCT - - ( col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - - col2 * col0 + + 31 AS col2 FROM tab2 AS cor0
----
2059
220
3033

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6039
SELECT - col0 * col2 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT - col0 * col2 + + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + col1 - col0 AS col2 FROM tab0 cor0
----
2040
3360
8010

query I rowsort
SELECT ALL + + 2 * col0 AS col2 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT col2 * col2 - col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT ALL 83 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6044
SELECT - cor0.col2 DIV - ( - col2 ) AS col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6044
SELECT - cor0.col2 / - ( - col2 ) AS col2 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT - 97 * - tab0.col0 + - 4 * 21 FROM tab0
----
2244
3311
8549

query I rowsort
SELECT col1 * - 48 FROM tab2 AS cor0
----
-1488
-2832
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-6047
SELECT col1 + ( + col2 ) DIV + col0 AS col1 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-6047
SELECT col1 + ( + col2 ) / + col0 AS col1 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT + 60 * - col2 AS col0 FROM tab0
----
-1980
-4920
-60

query I rowsort
SELECT ALL ( cor1.col2 ) AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL + 64 * - col0 FROM tab2
----
-448
-4992
-5056

query I rowsort
SELECT DISTINCT - 95 AS col1 FROM tab0
----
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6052
SELECT CAST( NULL AS DECIMAL ) * + cor0.col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6052
SELECT CAST ( NULL AS REAL ) * + cor0.col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col0 + - col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL - + col1 + cor0.col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT DISTINCT - + ( ( col2 ) ) * - 16 + - 5 FROM tab2 AS cor0
----
411
427
603

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * - col2 + 43 AS col0 FROM tab0 AS cor0
----
1132
44
6767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # use DIV operator for integer division
query I rowsort label-6058
SELECT ALL col0 DIV - tab0.col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL col0 / - tab0.col0 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 + col1 col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT + - ( + col0 ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + 84 ) * - col1 + + 54 FROM tab1 AS cor0
----
-1038
-2130
-786

query I rowsort
SELECT DISTINCT - 58 * - cor0.col0 AS col0 FROM tab0 cor0
----
1392
2030
5162

query I rowsort
SELECT ALL + + col1 + + cor0.col0 + - col2 * + col1 * col2 AS col1 FROM tab0 AS cor0
----
-611704
-93544
35

query I rowsort
SELECT + - 8 AS col1 FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT - + col1 * - col2 + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT ( - 84 ) AS col1 FROM tab1 AS cor0
----
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6067
SELECT - + 11 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6067
SELECT - + 11 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 + 66 * - col1 + col2 FROM tab0
----
-5619
-5835
-6366

query I rowsort
SELECT ALL + col0 * - 74 AS col1 FROM tab2
----
-518
-5772
-5846

query I rowsort
SELECT + - col0 - + col1 * col2 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT - - col0 * col1 - col1 AS col2 FROM tab1 AS cor0
----
1027
52
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - cor0.col1 + - col2 col0 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT + cor0.col2 - ( col1 ) AS col0 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT cor0.col0 * + col2 + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - - 68 AS col2 FROM tab0 AS cor0
----
68
68
68

query I rowsort
SELECT + 77 AS col1 FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT DISTINCT col1 + col1 * col0 - col2 AS col0 FROM tab2 AS cor0
----
1322
221
4635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 + - col1 col1 FROM tab0 AS cor0
----
-25
-30
-36

query I rowsort
SELECT ALL + col0 * 48 + + col1 AS col1 FROM tab2 cor0
----
367
3803
3809

query I rowsort
SELECT - ( 63 ) + col1 FROM tab0 AS cor0
----
23
28
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( col2 ) ) col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6083
SELECT 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-6083
SELECT col1 / - cor0.col2 col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6084
SELECT DISTINCT 15 DIV col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT 15 / col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 26 * col1 FROM tab1 AS cor0
----
260
338
676

query I rowsort
SELECT DISTINCT + col0 * - col1 + + col0 + + col2 * + col0 FROM tab2 AS cor0
----
-21
-2496
1738

query I rowsort
SELECT + 41 AS col0 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT + - col0 + col2 * 99 FROM tab2 AS cor0
----
2496
2666
3683

query I rowsort
SELECT - + 25 AS col2 FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT col0 + col2 * - 61 * 66 FROM tab0 AS cor0
----
-132834
-330043
-3991

query I rowsort
SELECT + 17 * col0 FROM tab1 AS cor0
----
1088
1360
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6093
SELECT + col0 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6093
SELECT + col0 * + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor1.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8

query I rowsort
SELECT col1 * col0 * + col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT DISTINCT + col1 + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - - col1 * ( + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - cor0.col2 * col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-6099
SELECT col1 DIV - 62 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6099
SELECT col1 / - 62 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col0 * col2 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT 54 AS col2 FROM tab1
----
54
54
54

query I rowsort
SELECT DISTINCT + col2 * 93 AS col2 FROM tab2 cor0
----
2418
2511
3534

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-6104
SELECT DISTINCT col1 + CAST( - col0 AS SIGNED ) * cor0.col2 AS col0 FROM tab2 cor0
----
-158
-1969
-2985

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT col1 + CAST ( - col0 AS INTEGER ) * cor0.col2 AS col0 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL + col1 + + ( cor0.col2 ) * + col2 FROM tab0 AS cor0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6106
SELECT 42 * 48 DIV col0 FROM tab2 AS cor0
----
25
25
288

skipif mysql # not compatible
query I rowsort label-6106
SELECT 42 * 48 / col0 FROM tab2 AS cor0
----
25
25
288

query I rowsort
SELECT ALL + ( col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT col1 + - 11 AS col2 FROM tab0
----
75
80
86

query I rowsort
SELECT - - cor1.col2 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT - col2 * - col0 - + 20 FROM tab1
----
142
3628
7660

query I rowsort
SELECT DISTINCT + + col2 * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col2 + + col1 AS col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - 40 FROM tab0 cor0
----
-40
-40
-40

query I rowsort
SELECT ALL 61 + col1 AS col0 FROM tab1 AS cor0
----
71
74
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-6115
SELECT DISTINCT - + col2 * - col2 + ( ( col0 ) ) * 15 DIV 34 AS col0 FROM tab0 AS cor0
----
1099
16
6763

skipif mysql # not compatible
query I rowsort label-6115
SELECT DISTINCT - + col2 * - col2 + ( ( col0 ) ) * 15 / 34 AS col0 FROM tab0 AS cor0
----
1099
16
6763

query I rowsort
SELECT - col0 * tab0.col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-6118
SELECT + col1 * cor0.col2 + col1 DIV - col0 + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1140
2496
2800

skipif mysql # not compatible
query I rowsort label-6118
SELECT + col1 * cor0.col2 + col1 / - col0 + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1140
2496
2800

query I rowsort
SELECT - - col2 * col2 + + col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT + + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + col2 + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + 7 AS col2 FROM tab2 AS cor0
----
7

query I rowsort
SELECT DISTINCT + - 71 + col0 FROM tab0 AS cor0
----
-36
-47
18

query I rowsort
SELECT ALL - 51 * col1 * col2 + cor0.col2 * col2 FROM tab0 AS cor0
----
-143649
-373838
-4946

query I rowsort
SELECT ALL + col0 * + ( ( col1 ) ) + + ( col2 ) AS col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT - 74 + + cor1.col0 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to a63d1b45b18c696e0e35cb4c1bb9a331

query I rowsort
SELECT DISTINCT + 69 AS col2 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
69

query I rowsort
SELECT ALL col2 * - ( - col1 ) + + col0 * + col0 AS col1 FROM tab2
----
6887
7618
886

query I rowsort
SELECT ALL 60 * - col2 AS col1 FROM tab2
----
-1560
-1620
-2280

onlyif mysql # use DIV operator for integer division
query I rowsort label-6130
SELECT ALL col2 DIV + tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL col2 / + tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - - 40 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT DISTINCT - col1 * + col0 + - col2 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT - + 2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-56
-59
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6134
SELECT ALL + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT col0 + col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + 50 AS col1 FROM tab2, tab1 AS cor0
----
50

query I rowsort
SELECT + cor0.col1 * - col2 + - col2 + col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + + 30 + 93 + col1 AS col2 FROM tab0 cor0
----
209
214
220

query I rowsort
SELECT ALL + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL 54 AS col1 FROM tab2
----
54
54
54

query I rowsort
SELECT - col1 - - col1 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 + ( col2 ) AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * + col2 + - 38 AS col2 FROM tab2 AS cor0
----
1496
608
799

query I rowsort
SELECT ALL + col1 * + 25 FROM tab0 AS cor0
----
2150
2275
2425

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab1, tab1 cor0, tab2, tab0 cor1
----
1
33
82

query I rowsort
SELECT DISTINCT + col2 + - col1 FROM tab0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6148
SELECT DISTINCT - col1 - + col0 DIV 75 AS col2 FROM tab0 AS cor0
----
-86
-92
-97

skipif mysql # not compatible
query I rowsort label-6148
SELECT DISTINCT - col1 - + col0 / 75 AS col2 FROM tab0 AS cor0
----
-86
-92
-97

query I rowsort
SELECT - + col0 + + 62 * cor0.col0 AS col2 FROM tab2 AS cor0
----
427
4758
4819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - - col2 + col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT col2 - ( - col1 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - col0 * + 47 FROM tab2 AS cor0
----
-329
-3666
-3713

query I rowsort
SELECT DISTINCT + col1 * - 66 AS col0 FROM tab2 AS cor0
----
-1122
-2046
-3894

query I rowsort
SELECT - - col0 - cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + cor0.col2 + cor0.col1 + - cor0.col2 col2 FROM tab2 AS cor0
----
-1465
-643
-725

query I rowsort
SELECT DISTINCT col2 + + ( + col1 * - col0 ) AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT - + col2 + ( - cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 - col0 col0 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT ALL col0 * + col1 + ( + col0 ) FROM tab2 cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6162
SELECT - CAST( NULL AS SIGNED ) - - cor0.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6162
SELECT - CAST ( NULL AS INTEGER ) - - cor0.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 + + col0 * 47 col0 FROM tab2 AS cor0
----
322
3588
3634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6164
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) + - 68 * col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) + - 68 * col2 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6165
SELECT + col1 DIV 28 + 92 + + col1 col0 FROM tab2
----
109
124
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6165
SELECT + col1 / 28 + 92 + + col1 col0 FROM tab2
----
109
124
153

onlyif mysql # use DIV operator for integer division
query I rowsort label-6166
SELECT DISTINCT tab1.col1 DIV + 55 + - tab1.col0 AS col0 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT tab1.col1 / + 55 + - tab1.col0 AS col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL + col1 + + 16 * 84 FROM tab2
----
1361
1375
1403

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab0 cor2
----
3645 values hashing to c8e4a9d810c83d17322e338b2adc95b6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6169
SELECT col1 DIV + 27 AS col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6169
SELECT col1 / + 27 AS col1 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6170
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6171
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6171
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6172
SELECT ALL + col2 + col2 DIV + cor0.col1 FROM tab2 cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL + col2 + col2 / + cor0.col1 FROM tab2 cor0
----
26
27
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6173
SELECT ALL - + col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL - + col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 + col1 col0 FROM tab1 AS cor0
----
77
80
93

query I rowsort
SELECT + - 50 + col0 * + col1 AS col2 FROM tab0 AS cor0
----
2014
3345
8049

query I rowsort
SELECT DISTINCT - 69 AS col2 FROM tab2 cor0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) * + col1 + - col2 col0 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT + col1 + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL + + 57 * ( + col0 ) FROM tab0 AS cor0
----
1368
1995
5073

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 93 col2 FROM tab2 cor0
----
1581
2883
5487

query I rowsort
SELECT - + ( col0 ) + col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT tab1.col1 + + 62 FROM tab1
----
72
75
88

query I rowsort
SELECT col2 + 64 FROM tab2
----
102
90
91

query I rowsort
SELECT DISTINCT + col2 + - 10 AS col1 FROM tab2
----
16
17
28

query I rowsort
SELECT DISTINCT col0 * 67 + - 87 AS col1 FROM tab0
----
1521
2258
5876

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + col2 + + 90 * - 12 FROM tab2
----
-1042
-1053
-1054

query I rowsort
SELECT ALL - - 78 AS col0 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT ALL + col0 * col1 * - col1 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL + 57 * col2 FROM tab1 AS cor0
----
3078
3249
5472

onlyif mysql # use DIV operator for integer division
query I rowsort label-6191
SELECT DISTINCT col0 DIV col0 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6191
SELECT DISTINCT col0 / col0 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - col1 * cor0.col2 + ( + cor0.col0 + - cor0.col2 ) FROM tab1 AS cor0
----
-1264
-1455
-563

query I rowsort
SELECT ALL cor0.col2 * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + ( col1 ) + - 61 FROM tab0 cor0
----
25
30
36

query I rowsort
SELECT + col0 * + col0 + + col2 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-6196
SELECT ALL 3 DIV - col2 + + 58 FROM tab1 cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL 3 / - col2 + + 58 FROM tab1 cor0
----
58
58
58

query I rowsort
SELECT cor0.col2 + - col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + col1 + 22 AS col1 FROM tab1
----
32
35
48

query I rowsort
SELECT ALL - 15 + col0 + col1 * - col0 AS col1 FROM tab2
----
-1279
-225
-4539

query I rowsort
SELECT - col1 - 75 AS col0 FROM tab1
----
-101
-85
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6201
SELECT + + col0 DIV + col2 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6201
SELECT + + col0 / + col2 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + 8 * col2 * + 22 AS col0 FROM tab1 AS cor0
----
10032
16896
9504

query I rowsort
SELECT + - col0 + col2 + - 41 FROM tab2 AS cor0
----
-21
-82
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6204
SELECT - - col2 DIV + col0 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-6204
SELECT - - col2 / + col0 FROM tab1 cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + + col0 col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT DISTINCT - 70 FROM tab1
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 65 ) col2 FROM tab1
----
65
65
65

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab1
----
38

query I rowsort
SELECT - ( 94 ) FROM tab1
----
-94
-94
-94

query I rowsort
SELECT cor0.col1 + col0 * ( col1 + col0 ) AS col1 FROM tab1 AS cor0
----
113
4746
7453

query I rowsort
SELECT + 59 AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-6213
SELECT + 11 DIV col0 FROM tab1
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6213
SELECT + 11 / col0 FROM tab1
----
0
0
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6214
SELECT 12 - - cor0.col1 * 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-6214
SELECT 12 - - cor0.col1 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + cor0.col1 * 9 * - col1 FROM tab2 AS cor0
----
-2618
-31388
-8680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col1 FROM tab0 AS cor0
----
-89
-89
-89

query I rowsort
SELECT 50 * col0 + col2 * 20 - col0 AS col2 FROM tab1 AS cor0
----
1227
4276
5840

query I rowsort
SELECT 92 FROM tab1, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # use DIV operator for integer division
query I rowsort label-6219
SELECT 55 DIV 43 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

skipif mysql # not compatible
query I rowsort label-6219
SELECT 55 / 43 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 6193516da5556fc054f35e0d2f4e5372

onlyif mysql # use DIV operator for integer division
query I rowsort label-6221
SELECT ALL + + col1 * + col2 - - col0 DIV col0 AS col1 FROM tab2 AS cor0
----
1535
647
838

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL + + col1 * + col2 - - col0 / col0 AS col1 FROM tab2 AS cor0
----
1535
647
838

query I rowsort
SELECT DISTINCT - col2 + + col2 * + col2 AS col2 FROM tab2 cor0
----
1406
650
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6223
SELECT DISTINCT + col2 * - col1 + ( + col1 ) * - CAST( NULL AS SIGNED ) + - col2 * col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT + col2 * - col1 + ( + col1 ) * - CAST ( NULL AS INTEGER ) + - col2 * col2 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL cor0.col1 + - 40 * + col2 * + col1 FROM tab2 cor0
----
-25823
-33449
-61301

onlyif mysql # use DIV operator for integer division
query I rowsort label-6225
SELECT DISTINCT - col2 DIV col1 - + cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT - col2 / col1 - + cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col1 + 99 FROM tab2 cor0
----
116
130
158

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab2, tab0 cor0, tab0 cor1
----
1
33
82

query I rowsort
SELECT DISTINCT + 81 AS col2 FROM tab2 cor0
----
81

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 980274175fafec015a83080672486a9a

query I rowsort
SELECT + col0 * + ( - cor0.col1 ) AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ( col0 ) - tab1.col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - 85 + - col0 FROM tab1 AS cor0
----
-149
-165
-88

query I rowsort
SELECT ALL 43 FROM tab0 AS cor0
----
43
43
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6235
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6235
SELECT DISTINCT + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 * col1 * col1 AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT - ( - 7 ) + + col1 AS col2 FROM tab1 AS cor0
----
17
20
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6238
SELECT - CAST( - col2 AS SIGNED ) * + col0 + - col2 + - col0 AS col0 FROM tab2 AS cor0
----
155
1924
2885

skipif mysql # not compatible
query I rowsort label-6238
SELECT - CAST ( - col2 AS INTEGER ) * + col0 + - col2 + - col0 AS col0 FROM tab2 AS cor0
----
155
1924
2885

query I rowsort
SELECT ALL - + ( - col2 ) + + ( col2 ) - + cor0.col0 FROM tab2 AS cor0
----
-26
-3
47

query I rowsort
SELECT ALL - + 16 FROM tab2 cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT - 28 * col2 * tab2.col2 FROM tab2
----
-18928
-20412
-40432

query I rowsort
SELECT cor1.col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT - - col1 - + ( - col2 * + col1 ) FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + - col0 * - col1 + + col2 * col1 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT ALL + - cor0.col2 * + col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL - + cor0.col0 * 52 AS col2 FROM tab2 AS cor0
----
-364
-4056
-4108

query I rowsort
SELECT DISTINCT - 25 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-25

query I rowsort
SELECT ALL 21 FROM tab0, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT col1 + col0 * 52 + col0 FROM tab2
----
402
4193
4204

query I rowsort
SELECT + 17 FROM tab2, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT - col2 * + ( - ( - col1 ) ) AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - col2 * - 90 AS col0 FROM tab0
----
2970
7380
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6254
SELECT DISTINCT col2 * col0 + col0 DIV tab1.col0 FROM tab1
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT col2 * col0 + col0 / tab1.col0 FROM tab1
----
163
3649
7681

query I rowsort
SELECT DISTINCT col1 * - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT + 61 + cor0.col2 FROM tab2 cor0
----
87
88
99

query I rowsort
SELECT ALL 33 FROM tab0 AS cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 63 * cor0.col0 + col0 col1 FROM tab0 AS cor0
----
-1488
-2170
-5518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 70 + - col1 col0 FROM tab2 AS cor0
----
-101
-129
-87

query I rowsort
SELECT ALL + - ( col0 ) * - col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 84 + col2 col2 FROM tab2 cor0
----
110
111
122

query I rowsort
SELECT ALL - col1 * + col1 + - col0 AS col2 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT ALL + + 43 * col1 FROM tab1 AS cor0
----
1118
430
559

query I rowsort
SELECT ALL - 25 FROM tab1 AS cor0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT + 60 * col1 AS col2 FROM tab2 AS cor0
----
1020
1860
3540

query I rowsort
SELECT ALL + - col0 * - col2 - col2 * col1 FROM tab2 cor0
----
-648
2356
494

query I rowsort
SELECT DISTINCT + + col1 + + col1 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-6270
SELECT ALL - + col1 * col1 DIV - cor0.col0 AS col1 FROM tab2 cor0
----
137
3
44

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL - + col1 * col1 / - cor0.col0 AS col1 FROM tab2 cor0
----
137
3
44

query I rowsort
SELECT + col1 + col2 AS col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL + col2 + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL 41 * col0 + col1 FROM tab2
----
318
3256
3257

query I rowsort
SELECT ALL + col2 * - col2 + - col2 FROM tab0
----
-1122
-2
-6806

query I rowsort
SELECT DISTINCT col0 + col0 * col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT ALL col2 + 32 FROM tab0 AS cor0
----
114
33
65

query I rowsort
SELECT 27 + 53 FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT ALL - ( - 45 ) * col1 AS col0 FROM tab1 cor0
----
1170
450
585

onlyif mysql # use DIV operator for integer division
query I rowsort label-6279
SELECT DISTINCT 73 DIV - 91 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6279
SELECT DISTINCT 73 / - 91 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6281
SELECT - col1 DIV + 21 AS col0 FROM tab0 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-6281
SELECT - col1 / + 21 AS col0 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL - 60 + 95 * + col0 AS col2 FROM tab0 cor0
----
2220
3265
8395

query I rowsort
SELECT col0 + 16 * col1 AS col1 FROM tab1
----
224
288
419

query I rowsort
SELECT ALL + col2 + + 37 * tab2.col2 + col2 * - col1 AS col1 FROM tab2
----
-546
189
798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 col2 FROM tab2
----
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6286
SELECT DISTINCT - ( + col0 ) DIV + col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT - ( + col0 ) / + col1 FROM tab2
----
-1
-4
0

query I rowsort
SELECT ( + 25 ) FROM tab2
----
25
25
25

query I rowsort
SELECT ALL ( col0 + + col1 ) FROM tab1
----
29
74
93

query I rowsort
SELECT ALL col2 * + col1 * tab2.col1 AS col1 FROM tab2
----
10982
25947
90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6290
SELECT ALL + col2 DIV 59 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL + col2 / 59 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 * + col0 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6292
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6293
SELECT ALL - - cor0.col2 * + col0 DIV col0 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL - - cor0.col2 * + col0 / col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + 23 FROM tab2 AS cor0
----
23

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT ALL col2 * - tab0.col2 AS col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT - tab2.col0 * + tab2.col2 FROM tab2 cor0 CROSS JOIN tab2
----
9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NOT NULL <> - col0
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + col2 * col1 IN ( - col1 * col0 / - col2 )
----
35
97
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > + col0
----

query I rowsort
SELECT ALL col0 - col1 AS col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT + col2 + + tab0.col0 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + tab2.col0 * col1 * + col1 - + col2 FROM tab2
----
22793
271492
6700

query I rowsort
SELECT ALL col2 * col0 + col2 FROM tab0 WHERE ( + col2 * + col0 ) = + col1 + tab0.col1
----

query I rowsort
SELECT - col1 + - tab1.col2 AS col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT + col2 * col2 * col0 AS col1 FROM tab1 AS cor0
----
207936
737280
8748

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 * + col1 )
----

query I rowsort
SELECT ALL tab0.col0 * tab0.col2 AS col0 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6309
SELECT DISTINCT tab1.col2 DIV - col0 + + col2 FROM tab1
----
36
57
95

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT tab1.col2 / - col0 + + col2 FROM tab1
----
36
57
95

query I rowsort
SELECT ALL + col1 + - col1 * col1 AS col0 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT - - col2 * cor0.col2 AS col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT + - col1 * col0 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - col2 - col1 * col2 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT + - cor0.col1 AS col2 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 col1 FROM tab0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - col1 * cor0.col0 - - col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col1 col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL + - col2 + col2 * col0 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-6322
SELECT DISTINCT + + cor0.col1 * cor0.col2 DIV cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT + + cor0.col1 * cor0.col2 / cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL + col0 * - col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT + col1 + col2 * - col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT - + col2 * 29 FROM tab2 AS cor0
----
-1102
-754
-783

query I rowsort
SELECT - ( - 30 ) FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT - cor0.col0 + col0 * 1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL cor0.col1 * 28 * - col0 AS col0 FROM tab1 AS cor0
----
-17920
-2184
-29120

query I rowsort
SELECT DISTINCT - 77 AS col0 FROM tab1, tab0 AS cor0
----
-77

query I rowsort
SELECT ALL 97 + - cor0.col0 FROM tab2, tab1 cor0
----
9 values hashing to 55f34a8b858f7c9a5365626b9e3baa54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6331
SELECT CAST( NULL AS SIGNED ) + + col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6331
SELECT CAST ( NULL AS INTEGER ) + + col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 * + col2 col0 FROM tab2 AS cor0
----
1170
1215
1710

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( 66 AS REAL ) * col1 AS col1 FROM tab2 AS cor0
----
1122
2046
3894

query I rowsort
SELECT DISTINCT - 13 * col1 + cor0.col0 AS col2 FROM tab0 cor0
----
-1094
-1226

onlyif mysql # use DIV operator for integer division
query I rowsort label-6335
SELECT DISTINCT ( + ( cor0.col2 ) ) DIV - ( - cor0.col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT ( + ( cor0.col2 ) ) / - ( - cor0.col1 ) FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6336
SELECT + + CAST( NULL AS DECIMAL ) * 32 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT + + CAST ( NULL AS REAL ) * 32 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col0 * + cor0.col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL + - ( + 4 ) AS col2 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT cor1.col0 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT + col1 * 49 * + col0 FROM tab0
----
101136
166355
396851

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6341
SELECT CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6341
SELECT CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT + + cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + + cor0.col1 + - cor0.col0 AS col1 FROM tab2 cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col1 FROM tab2
----
68
68
68

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT col2 * + tab0.col2 AS col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT cor0.col0 + - col1 + + col0 AS col2 FROM tab2 AS cor0
----
-17
141
97

query I rowsort
SELECT - 84 + + col2 + ( + 63 + col2 ) AS col2 FROM tab1 AS cor0
----
171
87
93

query I rowsort
SELECT + - col1 + + cor0.col0 + - col2 FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT - col0 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6352
SELECT col2 * + col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6352
SELECT col2 * + col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - tab1.col2 AS col2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT + + cor0.col1 + 70 FROM tab1 AS cor0
----
80
83
96

query I rowsort
SELECT col1 - + cor0.col2 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - 58 + - col2 FROM tab1
----
-112
-115
-154

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6357
SELECT DISTINCT col0 * + col0 + + CAST( 12 + + col2 AS SIGNED ) * col0 AS col2 FROM tab2
----
10191
322
9048

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT col0 * + col0 + + CAST ( 12 + + col2 AS INTEGER ) * col0 AS col2 FROM tab2
----
10191
322
9048

query I rowsort
SELECT DISTINCT col1 + col2 + + col2 * 82 AS col0 FROM tab2
----
2217
2272
3171

query I rowsort
SELECT + col0 * tab0.col2 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL col1 + - col2 * 31 * - col2 FROM tab1
----
100729
285709
90422

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6362
SELECT + + col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6362
SELECT + + col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6363
SELECT - + col1 DIV ( cor0.col0 * + col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6363
SELECT - + col1 / ( cor0.col0 * + col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 36 AS col0 FROM tab1, tab0 AS cor0
----
36

query I rowsort
SELECT - col1 * + col0 + - 80 FROM tab1
----
-1120
-158
-720

query I rowsort
SELECT - col1 * - 58 + - ( col2 ) FROM tab0 AS cor0
----
4955
5196
5625

onlyif mysql # use DIV operator for integer division
query I rowsort label-6367
SELECT DISTINCT cor0.col1 DIV - col0 + - col1 * col1 FROM tab0 AS cor0
----
-7399
-8282
-9411

skipif mysql # not compatible
query I rowsort label-6367
SELECT DISTINCT cor0.col1 / - col0 + - col1 * col1 FROM tab0 AS cor0
----
-7399
-8282
-9411

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6368
SELECT ALL - col0 * + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-6368
SELECT ALL - col0 * + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - col0 * col0 + ( + col1 ) * col0 * col1 AS col2 FROM tab1 cor0
----
2019
2304
7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-6370
SELECT ALL + + col0 DIV - ( col1 ) AS col0 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL + + col0 / - ( col1 ) AS col0 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT + col1 + 41 AS col0 FROM tab2 cor0
----
100
58
72

query I rowsort
SELECT - col2 * - 6 FROM tab1 AS cor0
----
324
342
576

query I rowsort
SELECT DISTINCT col1 * - col1 * + 64 FROM tab1 cor0
----
-10816
-43264
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6374
SELECT - col0 + + col0 DIV - col0 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-6374
SELECT - col0 + + col0 / - col0 FROM tab2 AS cor0
----
-79
-8
-80

query I rowsort
SELECT col1 + col1 + cor0.col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1066
130
660

query I rowsort
SELECT DISTINCT + col0 + - ( col0 ) + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 CROSS JOIN tab2
----
243 values hashing to 042fa16c43ab365359ee93c064e44127

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 CROSS JOIN tab0
----
243 values hashing to b3323704f6873113d863f8e27386b356

query I rowsort
SELECT + 21 * - col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1633
-669
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - col2 ) col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - ( - ( + col1 ) ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ( - col2 ) * col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6383
SELECT ALL + - cor0.col1 * cor0.col1 + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-156
-650
-90

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL + - cor0.col1 * cor0.col1 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL - - col2 - col1 * + ( + 60 * col0 ) FROM tab0 AS cor0
----
-123807
-203699
-485858

query I rowsort
SELECT ALL 35 AS col0 FROM tab0, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to ca814400b6361c20866ff8fe01717430

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6386
SELECT DISTINCT 98 + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT 98 + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + col0 col1 FROM tab2 cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6388
SELECT DISTINCT - + col2 DIV - col1 - - col2 DIV + 92 col0 FROM tab2 AS cor0
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT - + col2 / - col1 - - col2 / + 92 col0 FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT DISTINCT - - ( - col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + 50 + cor0.col1 AS col2 FROM tab1 AS cor0
----
60
63
76

query I rowsort
SELECT ALL - - col0 + col2 FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6392
SELECT ALL 93 + + col1 DIV col1 FROM tab2 cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL 93 + + col1 / col1 FROM tab2 cor0
----
94
94
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6393
SELECT DISTINCT + - CAST( + 88 AS SIGNED ) + col1 * - col2 FROM tab0 AS cor0
----
-185
-2926
-7550

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT + - CAST ( + 88 AS INTEGER ) + col1 * - col2 FROM tab0 AS cor0
----
-185
-2926
-7550

query I rowsort
SELECT - 71 FROM tab0 AS cor0
----
-71
-71
-71

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 cor1, tab1 cor2
----
972 values hashing to 5621675b1bd32b061d284d0444c76601

query I rowsort
SELECT ALL - col0 * col1 - + ( + col2 ) FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT + ( + col0 ) + 8 * - cor0.col1 AS col0 FROM tab2 cor0
----
-241
-394
-57

query I rowsort
SELECT DISTINCT + - ( col1 ) * 14 + col1 AS col1 FROM tab2 cor0
----
-221
-403
-767

query I rowsort
SELECT ALL - - col2 * col2 + col0 AS col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL - - col0 - col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - col0 - col0 FROM tab1 AS cor0
----
-128
-160
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + cor0.col1 col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT 32 + - col1 FROM tab2
----
-27
1
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col0 FROM tab0, tab2 AS cor0
----
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-6405
SELECT + 77 DIV col0 - + col0 FROM tab2
----
-78
-79
4

skipif mysql # not compatible
query I rowsort label-6405
SELECT + 77 / col0 - + col0 FROM tab2
----
-78
-79
4

query I rowsort
SELECT + + 41 + cor0.col1 FROM tab2 AS cor0
----
100
58
72

skipif mysql # not compatible
query I rowsort
SELECT ALL + 51 * - col1 + + CAST ( col0 AS REAL ) * + col1 FROM tab0 AS cor0
----
-1552
-2322
3458

query I rowsort
SELECT DISTINCT - + ( - cor0.col1 ) * - ( col0 ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - + col0 + - 78 * - col0 * col0 FROM tab0 AS cor0
----
44904
617749
95515

query I rowsort
SELECT ALL col2 + ( + cor0.col1 + + cor0.col1 ) FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT DISTINCT - col0 + + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 * col0 col2 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT + col1 + 61 * - col0 AS col2 FROM tab2 AS cor0
----
-396
-4699
-4802

query I rowsort
SELECT 24 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT ALL - col0 * + 5 AS col1 FROM tab1 AS cor0
----
-15
-320
-400

query I rowsort
SELECT ALL - 54 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211

query I rowsort
SELECT ALL col2 * 38 FROM tab0 AS cor0
----
1254
3116
38

query I rowsort
SELECT ALL + 35 FROM tab2 AS cor0
----
35
35
35

query I rowsort
SELECT DISTINCT 16 * cor0.col2 AS col0 FROM tab2 AS cor0
----
416
432
608

query I rowsort
SELECT col1 * 33 AS col1 FROM tab0 AS cor0
----
2838
3003
3201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 col2 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT col2 + ( col2 ) * + col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT ALL - tab2.col1 + col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 30 ) * + col2 * col0 col0 FROM tab1 AS cor0
----
109440
230400
4860

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6425
SELECT + CAST( ( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6425
SELECT + CAST ( ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + cor0.col2 * + col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT col2 * col1 * col1 + col2 + - col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL - + cor0.col2 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT - col0 + ( - 11 * col2 ) FROM tab2
----
-304
-364
-497

onlyif mysql # use DIV operator for integer division
query I rowsort label-6430
SELECT DISTINCT - tab2.col1 DIV - col1 + + tab2.col1 AS col0 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT - tab2.col1 / - col1 + + tab2.col1 AS col0 FROM tab2
----
18
32
60

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

query I rowsort
SELECT 12 * col2 AS col1 FROM tab1 cor0
----
1152
648
684

query I rowsort
SELECT - 27 + + col0 FROM tab2 AS cor0
----
-20
51
52

query I rowsort
SELECT - - 98 AS col2 FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT DISTINCT + + 38 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6436
SELECT CAST( - 1 AS SIGNED ) 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-6436
SELECT CAST ( - 1 AS INTEGER ) col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col1 + + col2 + - 32 FROM tab1
----
35
48
77

query I rowsort
SELECT col2 + + tab1.col2 * col0 * col2 AS col1 FROM tab1
----
207993
737376
8802

query I rowsort
SELECT DISTINCT - tab0.col0 AS col1 FROM tab0, tab1, tab2 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL col2 * + col1 AS col2 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6441
SELECT ALL - - ( - cor0.col1 ) DIV - cor0.col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL - - ( - cor0.col1 ) / - cor0.col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT ALL + + ( - 14 ) AS col0 FROM tab1 cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT - col2 + + col0 AS col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT - 16 + - col0 * col1 AS col1 FROM tab0
----
-2080
-3411
-8115

query I rowsort
SELECT col0 + - col2 * + col1 AS col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT col2 + + tab0.col0 FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 + col2 col2 FROM tab1
----
109
67
80

query I rowsort
SELECT + 93 + - col1 FROM tab0 cor0
----
-4
2
7

query I rowsort
SELECT DISTINCT - - cor0.col1 + - col1 * - 15 * + col1 AS col1 FROM tab0 AS cor0
----
111026
124306
141232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - tab1.col2 + + 99 col0 FROM tab1
----
-3549
-63
-7581

query I rowsort
SELECT 61 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT - 57 * col2 AS col0 FROM tab1
----
-3078
-3249
-5472

query I rowsort
SELECT ALL 73 + tab0.col2 FROM tab0
----
106
155
74

query I rowsort
SELECT col1 * tab1.col1 AS col0 FROM tab1
----
100
169
676

query I rowsort
SELECT col1 * col2 + + col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT + + col2 + col2 AS col1 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT ALL - + cor0.col0 * col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT cor0.col2 * cor0.col1 AS col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL 74 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT + col2 + + 96 * col1 FROM tab1 AS cor0
----
1017
1344
2550

query I rowsort
SELECT DISTINCT - col2 * - col1 + 0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + - col2 + + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + cor0.col0 + - col2 AS col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT + cor0.col1 * + col2 + 89 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-2989
-6343
1331

query I rowsort
SELECT DISTINCT + - col0 * + col2 + - col2 * col1 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT ALL col1 + col1 * 63 FROM tab1 AS cor0
----
1664
640
832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT col0 * + col1 * - col1 + col1 AS col0 FROM tab1
----
-13507
-2002
-6390

query I rowsort
SELECT 12 AS col1 FROM tab2
----
12
12
12

query I rowsort
SELECT DISTINCT ( - col0 + - col1 ) * col1 AS col2 FROM tab0
----
-12804
-16380
-9460

query I rowsort
SELECT DISTINCT - cor0.col1 * + 0 FROM tab1, tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6473
SELECT - cor0.col2 + - col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6473
SELECT - cor0.col2 + - col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col2 * - ( - col1 ) AS col2 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6475
SELECT + col0 + col2 * - CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6475
SELECT + col0 + col2 * - CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6476
SELECT - + col0 * + CAST( cor0.col0 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
106097
1519
358956

skipif mysql # not compatible
query I rowsort label-6476
SELECT - + col0 * + CAST ( cor0.col0 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT - col2 * 68 + + 35 FROM tab2 AS cor0
----
-1733
-1801
-2549

query I rowsort
SELECT - + col1 * 26 * + 4 FROM tab0 AS cor0
----
-10088
-8944
-9464

query I rowsort
SELECT + col1 * + ( - col2 + - col1 ) AS col1 FROM tab2 AS cor0
----
-1798
-5015
-935

query I rowsort
SELECT - ( - tab1.col1 ) + tab1.col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c3106673b5165f666b99e75c964d6287

query I rowsort
SELECT ALL - tab0.col0 + 37 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to ae382347ae555ee7f298aff18d37743a

query I rowsort
SELECT - - 7 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col1 )
----

query I rowsort
SELECT col2 - col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 + + col0 * col0 - col0 FROM tab0
----
1191
585
7914

query I rowsort
SELECT col1 * + col2 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - col0 * - col0 * + col0 FROM tab2
----
343
474552
493039

onlyif mysql # use DIV operator for integer division
query I rowsort label-6488
SELECT ALL col2 DIV + tab1.col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL col2 / + tab1.col2 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + col0 * col0 + col2 * col2 + col2 * - tab2.col2 FROM tab2
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-6490
SELECT ALL + col2 * col0 DIV tab1.col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL + col2 * col0 / tab1.col0 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL col2 * + col0 + col0 - col2 FROM tab0
----
69
7305
783

query I rowsort
SELECT DISTINCT col2 + tab2.col0 + col2 FROM tab2
----
130
155
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col1 * col0 col1 FROM tab1
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 / col0 NOT IN ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col2 + col0 * - col2 * col1 AS col2 FROM tab0
----
-3394
-664036
-68079

onlyif mysql # use DIV operator for integer division
query I rowsort label-6497
SELECT DISTINCT - col0 - - col0 DIV + col1 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT - col0 - - col0 / + col1 FROM tab0
----
-24
-35
-89

query III rowsort
SELECT * FROM tab0 WHERE ( col2 * - col0 / - col1 ) IN ( col1 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL NOT IN ( + tab1.col1 )
----

query I rowsort
SELECT DISTINCT col0 * col0 + + col2 + + col1 AS col0 FROM tab0
----
1323
695
8094

query I rowsort
SELECT DISTINCT col1 * + tab1.col2 AS col2 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6502
SELECT col2 DIV - col1 + - col1 DIV col1 FROM tab1
----
-3
-6
-8

skipif mysql # not compatible
query I rowsort label-6502
SELECT col2 / - col1 + - col1 / col1 FROM tab1
----
-3
-6
-8

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL + col2 + col0 + - tab0.col1 FROM tab0
----
-29
-61
80

query I rowsort
SELECT col0 * + col2 * col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT col2 * col1 + + col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT + tab2.col1 + + col2 AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL - col2 * col2 + col2 AS col2 FROM tab0
----
-1056
-6642
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * col2 NOT BETWEEN col1 AND ( col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( - col0 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 * + col2 col2 FROM tab1
----
119808
32490
75816

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col1 - col1 AS col2 FROM tab0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-6516
SELECT DISTINCT - col1 DIV + col0 + + col2 AS col1 FROM tab2
----
23
26
38

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT - col1 / + col0 + + col2 AS col1 FROM tab2
----
23
26
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6517
SELECT DISTINCT col2 + col1 DIV col1 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT col2 + col1 / col1 FROM tab0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 col0 FROM tab0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6519
SELECT DISTINCT - col0 + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
-64
-80
5

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT - col0 + col1 / col0 AS col0 FROM tab1 AS cor0
----
-64
-80
5

query I rowsort
SELECT ALL col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + col0 * col1 + - col2 * - cor0.col2 FROM tab1 AS cor0
----
10256
2994
3889

query I rowsort
SELECT + col0 - - col0 * ( col2 * + col2 ) FROM tab1 AS cor0
----
208000
737360
8751

query I rowsort
SELECT DISTINCT col1 + col1 * col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT tab0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
24
35
89

query I rowsort
SELECT 39 FROM tab0, tab2 cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # use DIV operator for integer division
query I rowsort label-6526
SELECT col0 - col1 DIV + cor0.col0 col2 FROM tab2 AS cor0
----
3
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6526
SELECT col0 - col1 / + cor0.col0 col2 FROM tab2 AS cor0
----
3
78
79

query I rowsort
SELECT ALL 56 AS col0 FROM tab1 cor0
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - + 88 * + col2 + cor0.col0 * col0 * col1 AS col1 FROM tab1 AS cor0
----
-4518
35944
74752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 + + col2 col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - + col2 + + cor0.col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT 92 - - col1 FROM tab2 AS cor0
----
109
123
151

query I rowsort
SELECT ALL - cor0.col2 * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + 54 AS REAL ) - tab2.col1 FROM tab2
----
-5
23
37

query I rowsort
SELECT ALL + ( 2 ) FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6536
SELECT - CAST( NULL AS SIGNED ) + 50 * tab2.col0 col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6536
SELECT - CAST ( NULL AS INTEGER ) + 50 * tab2.col0 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( cor1.col1 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT 69 * col1 + col0 + - col2 AS col0 FROM tab2
----
1214
2119
4123

onlyif mysql # use DIV operator for integer division
query I rowsort label-6539
SELECT ALL col1 DIV col1 + ( col0 ) DIV col1 + - 31 FROM tab1
----
-24
-24
-30

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL col1 / col1 + ( col0 ) / col1 + - 31 FROM tab1
----
-24
-24
-30

query I rowsort
SELECT ( + col2 ) * col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT 12 * col0 FROM tab1 AS cor0
----
36
768
960

query I rowsort
SELECT ALL + col2 * + col0 + 46 AS col0 FROM tab2 AS cor0
----
2074
235
3048

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6543
SELECT + - 52 * + col1 + CAST( NULL AS DECIMAL ) + 12 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6543
SELECT + - 52 * + col1 + CAST ( NULL AS REAL ) + 12 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + 21 AS col2 FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT col2 * col0 * col1 - col2 FROM tab0
----
3394
664036
68079

query I rowsort
SELECT DISTINCT 43 FROM tab2, tab2 AS cor0
----
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-6548
SELECT DISTINCT + - col1 * - col1 DIV col1 + - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT + - col1 * - col1 / col1 + - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6549
SELECT ALL 21 * - col1 + cor0.col2 DIV + col2 + col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-536
3887
6128

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL 21 * - col1 + cor0.col2 / + col2 + col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-536
3887
6128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col1 FROM tab0 AS cor0
----
9
9
9

query I rowsort
SELECT ALL + 48 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT ALL + col0 * cor0.col1 + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - 93 * + col2 AS col1 FROM tab2 cor0
----
-2418
-2511
-3534

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-6555
SELECT + col1 + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
10
13
34

skipif mysql # not compatible
query I rowsort label-6555
SELECT + col1 + col1 / col0 AS col0 FROM tab1 AS cor0
----
10
13
34

query I rowsort
SELECT DISTINCT - col0 * - 33 + cor0.col2 AS col2 FROM tab0 AS cor0
----
1156
3019
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * cor0.col2 col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 255bedb67400f83d272763889db4ca4f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 * col0 + col2 col1 FROM tab0
----
1328
369
491

query I rowsort
SELECT - - col1 * - cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL 62 * col2 FROM tab1
----
3348
3534
5952

query I rowsort
SELECT DISTINCT + col0 + tab0.col0 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) FROM tab2, tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT 35 - + cor1.col2 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to eab1bc85575c10f8ddfcb30f0807b077

onlyif mysql # use DIV operator for integer division
query I rowsort label-6564
SELECT ALL - col0 + - col2 DIV + 18 AS col0 FROM tab2 AS cor0
----
-79
-8
-81

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL - col0 + - col2 / + 18 AS col0 FROM tab2 AS cor0
----
-79
-8
-81

query I rowsort
SELECT - cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + - col1 * + ( col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6567
SELECT - cor0.col2 * + col2 + + col2 DIV - col0 FROM tab2 AS cor0
----
-1444
-676
-732

skipif mysql # not compatible
query I rowsort label-6567
SELECT - cor0.col2 * + col2 + + col2 / - col0 FROM tab2 AS cor0
----
-1444
-676
-732

query I rowsort
SELECT ALL col2 + + cor0.col1 * - col0 * col0 AS col2 FROM tab1 AS cor0
----
-180
-40903
-83104

onlyif mysql # use DIV operator for integer division
query I rowsort label-6569
SELECT ALL - col0 DIV col0 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6569
SELECT ALL - col0 / col0 FROM tab0 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + cor0.col1 col0 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - col0 * col2 AS col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT + col0 * - col2 + + col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT 47 FROM tab2, tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 + col2 col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT ALL - col2 * + col0 * col1 + + col0 * col0 FROM tab1
----
-32384
-4203
-93440

query I rowsort
SELECT ALL 97 * - col0 FROM tab0 AS cor0
----
-2328
-3395
-8633

query I rowsort
SELECT DISTINCT - col2 * + col2 + - col1 * - ( + col0 ) FROM tab2 AS cor0
----
-101
-512
3926

query I rowsort
SELECT DISTINCT + ( - 57 ) * - col0 + col2 FROM tab1 cor0
----
225
3705
4656

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6580
SELECT - CAST( NULL AS SIGNED ) * cor0.col0 * cor0.col1 + + 74 * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT - CAST ( NULL AS INTEGER ) * cor0.col0 * cor0.col1 + + 74 * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 94 * - 30 FROM tab0 AS cor0
----
-2820

query I rowsort
SELECT DISTINCT - + 10 + col2 + col0 FROM tab2 AS cor0
----
107
24
94

query I rowsort
SELECT ALL + ( col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + 63 * col2 + col2 * - col2 FROM tab1 AS cor0
----
-3168
342
486

query I rowsort
SELECT DISTINCT 13 + - col1 FROM tab0
----
-73
-78
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6587
SELECT DISTINCT + + CAST( - col0 AS SIGNED ) + col1 * + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT + + CAST ( - col0 AS INTEGER ) + col1 * + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - - col1 * - 93 AS col1 FROM tab1 AS cor0
----
-1209
-2418
-930

query I rowsort
SELECT DISTINCT - 30 - col0 * - 72 FROM tab1 AS cor0
----
186
4578
5730

query I rowsort
SELECT + + 79 + + col1 AS col2 FROM tab2 AS cor0
----
110
138
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + col0 + + 97 col1 FROM tab1 cor0
----
151
164
74

query I rowsort
SELECT DISTINCT + + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6594
SELECT + CAST( NULL AS SIGNED ) + - col0 / + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT + CAST ( NULL AS INTEGER ) + - col0 / + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 + - col0 * - col2 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT - + 37 AS col2 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT + 23 * col2 AS col1 FROM tab2 cor0
----
598
621
874

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6598
SELECT + col0 * + col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6598
SELECT + col0 * + col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + + ( col2 ) - 2 * + cor0.col0 * cor0.col0 FROM tab0 AS cor0
----
-1119
-15760
-2449

query I rowsort
SELECT col2 * col2 + col0 AS col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT - 39 + cor0.col2 FROM tab1 AS cor0
----
15
18
57

query I rowsort
SELECT + col2 * cor0.col1 + 50 - col1 * - cor0.col0 FROM tab2 AS cor0
----
1104
2039
6186

query I rowsort
SELECT ALL - 80 * col2 + + 3 + + col1 AS col0 FROM tab0 AS cor0
----
-2551
-6466
20

query I rowsort
SELECT - - cor0.col2 * 69 FROM tab1 AS cor0
----
3726
3933
6624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT 59 * col2 AS col0 FROM tab0
----
1947
4838
59

query I rowsort
SELECT + col0 + + 71 FROM tab1 AS cor0
----
135
151
74

query I rowsort
SELECT tab2.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - col2 * + col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 24 * - 71 FROM tab0 AS cor0
----
-1704
-1704
-1704

onlyif mysql # use DIV operator for integer division
query I rowsort label-6613
SELECT DISTINCT + col2 DIV col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT + col2 / col2 FROM tab0 cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6614
SELECT CAST( + 86 AS SIGNED ) * col2 FROM tab2 AS cor0
----
2236
2322
3268

skipif mysql # not compatible
query I rowsort label-6614
SELECT CAST ( + 86 AS INTEGER ) * col2 FROM tab2 AS cor0
----
2236
2322
3268

query I rowsort
SELECT col0 + 62 * + col0 AS col0 FROM tab0 cor0
----
1512
2205
5607

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6616
SELECT DISTINCT - CAST( col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6616
SELECT DISTINCT - CAST ( col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + col2 * col1 * + col1 AS col1 FROM tab1 cor0
----
16224
36504
5700

query I rowsort
SELECT ALL - ( - cor0.col0 ) * col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT tab1.col0 * col2 AS col1 FROM tab1
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6620
SELECT - CAST( NULL AS SIGNED ) + tab0.col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6620
SELECT - CAST ( NULL AS INTEGER ) + tab0.col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 62 ) + - col2 + - ( 67 ) col0 FROM tab0
----
-38
-6
-87

query I rowsort
SELECT DISTINCT 12 + + col0 FROM tab0
----
101
36
47

query I rowsort
SELECT DISTINCT col1 * col2 * tab2.col0 + col1 FROM tab2
----
119711
51051
5890

onlyif mysql # use DIV operator for integer division
query I rowsort label-6624
SELECT - col1 DIV col2 - 66 DIV - cor0.col1 AS col2 FROM tab0 cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-6624
SELECT - col1 / col2 - 66 / - cor0.col1 AS col2 FROM tab0 cor0
----
-1
-2
-97

query I rowsort
SELECT + - 22 + + cor0.col0 FROM tab1 AS cor0
----
-19
42
58

query I rowsort
SELECT DISTINCT + 30 * col0 AS col0 FROM tab1
----
1920
2400
90

query I rowsort
SELECT - ( + col0 ) + col2 * + col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT + 50 AS col1 FROM tab0 cor0
----
50

query I rowsort
SELECT - tab2.col0 + - tab2.col0 + - col1 AS col0 FROM tab2
----
-175
-215
-45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6630
SELECT + col0 + - CAST( col0 * - col2 AS SIGNED ) - 65 * - tab2.col1 AS col2 FROM tab2
----
2211
4186
5941

skipif mysql # not compatible
query I rowsort label-6630
SELECT + col0 + - CAST ( col0 * - col2 AS INTEGER ) - 65 * - tab2.col1 AS col2 FROM tab2
----
2211
4186
5941

query I rowsort
SELECT col2 * col2 * + 49 FROM tab2
----
33124
35721
70756

query I rowsort
SELECT ALL 87 + + col1 FROM tab1
----
100
113
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6633
SELECT 92 * 47 + col1 DIV + ( col0 ) col2 FROM tab0 AS cor0
----
4325
4326
4327

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6633
SELECT 92 * 47 + col1 / + ( col0 ) col2 FROM tab0 AS cor0
----
4325
4326
4327

query I rowsort
SELECT DISTINCT + 18 + - 81 AS col2 FROM tab1
----
-63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6635
SELECT - CAST( - col1 AS SIGNED ) + - col0 col1 FROM tab2
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6635
SELECT - CAST ( - col1 AS INTEGER ) + - col0 col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT - 15 * tab2.col1 - col0 AS col1 FROM tab2
----
-334
-472
-963

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 1c1b1a313871216b88e662d7d3078b12

query I rowsort
SELECT DISTINCT + col2 * - 91 AS col0 FROM tab0 AS cor0
----
-3003
-7462
-91

query I rowsort
SELECT 28 + - 14 + - cor1.col0 FROM tab0, tab2 AS cor0, tab1 cor1, tab2 cor2
----
81 values hashing to bb2cc01d2e23553d735d40ddeedc23ce

query I rowsort
SELECT ALL 50 FROM tab2, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + 8 AS REAL ) FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT + 72 AS col1 FROM tab0
----
72
72
72

query I rowsort
SELECT 1 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT - 54 AS col0 FROM tab0 AS cor0
----
-54
-54
-54

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT - + col1 - ( + col1 * + col2 ) FROM tab2 cor0
----
-1593
-663
-868

query I rowsort
SELECT + ( col0 + col0 ) AS col2 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT - col0 + + col0 * + col0 + col1 FROM tab2 AS cor0
----
6065
6179
73

query I rowsort
SELECT DISTINCT - + col0 * - ( + 31 ) + col0 AS col2 FROM tab1 AS cor0
----
2048
2560
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6650
SELECT + + col0 + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-6650
SELECT + + col0 + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT cor0.col2 + 13 AS col0 FROM tab2 cor0
----
39
40
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6652
SELECT ALL col2 + ( col1 ) DIV col2 FROM tab0 AS cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL col2 + ( col1 ) / col2 FROM tab0 AS cor0
----
35
83
98

query I rowsort
SELECT + 89 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab1 cor0, tab2 AS cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6655
SELECT DISTINCT + col1 - CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6655
SELECT DISTINCT + col1 - CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 * + ( col1 ) col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - + col2 * + 31 + + col0 * col1 FROM tab0 AS cor0
----
1041
3364
5557

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-6659
SELECT DISTINCT + col0 + + CAST( col2 AS SIGNED ) DIV col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT + col0 + + CAST ( col2 AS INTEGER ) / col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + 54 * - col1 * col1 - col0 AS col0 FROM tab2 AS cor0
----
-15685
-188052
-51901

query I rowsort
SELECT DISTINCT 89 * - cor0.col0 AS col2 FROM tab0 cor0
----
-2136
-3115
-7921

query I rowsort
SELECT ALL + + col2 * col1 + col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-6663
SELECT - col2 DIV col0 - col0 AS col2 FROM tab0 AS cor0
----
-25
-35
-89

skipif mysql # not compatible
query I rowsort label-6663
SELECT - col2 / col0 - col0 AS col2 FROM tab0 AS cor0
----
-25
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 + - col1 col1 FROM tab2 AS cor0
----
15
43
57

query I rowsort
SELECT ALL - 79 * col0 + + col0 FROM tab1 AS cor0
----
-234
-4992
-6240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6666
SELECT CAST( col0 AS SIGNED ) + cor0.col0 AS col1 FROM tab0 cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-6666
SELECT CAST ( col0 AS INTEGER ) + cor0.col0 AS col1 FROM tab0 cor0
----
178
48
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6667
SELECT ALL CAST( - col2 AS SIGNED ) + col0 * 87 col2 FROM tab1 AS cor0
----
207
5511
6864

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL CAST ( - col2 AS INTEGER ) + col0 * 87 col2 FROM tab1 AS cor0
----
207
5511
6864

onlyif mysql # use DIV operator for integer division
query I rowsort label-6668
SELECT DISTINCT - ( - col2 ) DIV + col2 + cor0.col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT - ( - col2 ) / + col2 + cor0.col1 FROM tab1 AS cor0
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 4 - 15 col0 FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT + col1 + + col1 * - col0 * - col2 AS col2 FROM tab1 cor0
----
36490
4238
99853

query I rowsort
SELECT DISTINCT - cor0.col1 - cor0.col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT 38 * - 38 FROM tab1 AS cor0
----
-1444

query I rowsort
SELECT ALL + + col1 + + col2 * + col0 + - col2 FROM tab1 AS cor0
----
134
3601
7597

query I rowsort
SELECT 61 AS col1 FROM tab2 AS cor0
----
61
61
61

query I rowsort
SELECT ALL - cor0.col2 + ( tab0.col2 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 0b65e3a549910903b0e666f5e0860c54

query I rowsort
SELECT - tab1.col0 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT + col0 + col2 + + col1 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT col0 + col0 * col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT - col0 * + col1 * - col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + - col1 * col0 + - col2 + - col1 * - col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL 15 + cor0.col2 AS col1 FROM tab0 AS cor0
----
16
48
97

query I rowsort
SELECT ALL - 62 AS col2 FROM tab2 AS cor0
----
-62
-62
-62

query I rowsort
SELECT DISTINCT - + 54 FROM tab0 AS cor0
----
-54

query I rowsort
SELECT + 19 * col1 + + ( col0 ) * col0 FROM tab2 AS cor0
----
638
6564
7205

query I rowsort
SELECT ALL - + col1 + col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6686
SELECT CAST( NULL AS DECIMAL ) * + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6686
SELECT CAST ( NULL AS REAL ) * + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( col2 ) + + tab2.col1 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT - - 66 AS col1 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT ALL 44 FROM tab0 cor0
----
44
44
44

query I rowsort
SELECT DISTINCT - 87 * col0 + cor0.col0 FROM tab0 AS cor0
----
-2064
-3010
-7654

query I rowsort
SELECT DISTINCT cor0.col1 * - 70 AS col1 FROM tab1, tab1 cor0
----
-1820
-700
-910

query I rowsort
SELECT - col1 + - col1 * + col0 FROM tab1 AS cor0
----
-104
-1053
-650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6693
SELECT + ( ( + col1 ) ) - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6693
SELECT + ( ( + col1 ) ) - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6694
SELECT CAST( 80 AS SIGNED ) DIV col0 AS col0 FROM tab2 cor0
----
1
1
11

skipif mysql # not compatible
query I rowsort label-6694
SELECT CAST ( 80 AS INTEGER ) / col0 AS col0 FROM tab2 cor0
----
1
1
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-6695
SELECT DISTINCT - 68 DIV col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT - 68 / col1 FROM tab0 cor0
----
0

query I rowsort
SELECT 37 + col0 AS col0 FROM tab2 AS cor0
----
115
116
44

query I rowsort
SELECT 5 * - col0 AS col2 FROM tab2 AS cor0
----
-35
-390
-395

query I rowsort
SELECT + ( col2 ) + + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - col2 + + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + 9 * 75 AS col0 FROM tab0 AS cor0
----
675
675
675

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( 43 AS REAL ) * + col1 + + 70 AS col0 FROM tab0 AS cor0
----
3768
3983
4241

query I rowsort
SELECT - col1 + col2 * - col1 * - col0 - 21 FROM tab1
----
36449
4165
99806

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ( 13 ) FROM tab1, tab1 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT + col2 + 38 AS col2 FROM tab2
----
64
65
76

query I rowsort
SELECT 14 * + col1 FROM tab1
----
140
182
364

query I rowsort
SELECT col1 * + col1 + - tab1.col0 FROM tab1
----
36
673
89

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0 CROSS JOIN tab0, tab0 AS cor1
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163

query I rowsort
SELECT - 28 * col2 AS col1 FROM tab2 AS cor0
----
-1064
-728
-756

query I rowsort
SELECT + col2 * + col0 * + col2 AS col1 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL - 34 FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT ALL - + col1 * 88 AS col1 FROM tab2 AS cor0
----
-1496
-2728
-5192

query I rowsort
SELECT DISTINCT col2 * - 57 AS col1 FROM tab0
----
-1881
-4674
-57

query I rowsort
SELECT - - col0 + + ( col1 ) AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - col2 * ( - col1 ) FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6716
SELECT - 53 - - col2 DIV + col1 FROM tab1
----
-46
-48
-51

skipif mysql # not compatible
query I rowsort label-6716
SELECT - 53 - - col2 / + col1 FROM tab1
----
-46
-48
-51

query I rowsort
SELECT DISTINCT col2 * col2 + + col1 AS col0 FROM tab0
----
1175
6815
98

query I rowsort
SELECT ALL - col1 * + col2 + col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - + col1 * col1 + - col1 * - col0 AS col2 FROM tab2 AS cor0
----
-744
1054
1121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col0 col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT col0 + ( cor0.col1 ) FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6722
SELECT col0 * CAST( NULL AS SIGNED ) + + col1 + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT col0 * CAST ( NULL AS INTEGER ) + + col1 + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 81 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT DISTINCT tab1.col0 * + 80 + col0 AS col2 FROM tab1
----
243
5184
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 46 + - 47 col0 FROM tab1
----
2
63
79

query I rowsort
SELECT ALL + col0 + + 80 FROM tab1 cor0
----
144
160
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6727
SELECT col2 DIV 69 + + 66 AS col1 FROM tab2 cor0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-6727
SELECT col2 / 69 + + 66 AS col1 FROM tab2 cor0
----
66
66
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6728
SELECT col2 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6728
SELECT col2 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - ( col0 ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT ALL 11 FROM tab0, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6731
SELECT CAST( NULL AS DECIMAL ) + - cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6731
SELECT CAST ( NULL AS REAL ) + - cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col0 + col2 * col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL - col2 + ( col0 + - col2 ) AS col1 FROM tab1
----
-105
-112
-50

query I rowsort
SELECT 40 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab1 AS cor2, tab1 AS cor3
----
243 values hashing to 6437ca8040a6463bd67a07092ce5ffb6

query I rowsort
SELECT ALL col1 * + col2 + - col1 * col0 FROM tab0
----
-3298
-637
774

query I rowsort
SELECT ALL + col0 - + col2 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 + + col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL + col0 + col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + cor0.col2 * 73 FROM tab2 AS cor0
----
1898
1971
2774

onlyif mysql # use DIV operator for integer division
query I rowsort label-6740
SELECT DISTINCT + + cor0.col1 DIV col2 + col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT + + cor0.col1 / col2 + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - cor0.col2 - col2 * - col0 AS col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT + 46 - col1 AS col0 FROM tab0 AS cor0
----
-40
-45
-51

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 59bb9dc93b6f10de841a7db8eb3857e9

query I rowsort
SELECT DISTINCT + - cor0.col1 + - 87 AS col2 FROM tab0, tab2 AS cor0
----
-104
-118
-146

query I rowsort
SELECT - + col2 * - col1 + + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + ( + col2 + col1 ) * + 77 * + ( + col1 + tab0.col2 ) FROM tab0
----
1090397
2304533
739508

onlyif mysql # use DIV operator for integer division
query I rowsort label-6747
SELECT DISTINCT ( cor0.col2 ) * col2 DIV ( col1 ) + col1 * + ( col2 ) FROM tab2 AS cor0
----
1545
730
860

skipif mysql # not compatible
query I rowsort label-6747
SELECT DISTINCT ( cor0.col2 ) * col2 / ( col1 ) + col1 * + ( col2 ) FROM tab2 AS cor0
----
1545
730
860

query I rowsort
SELECT ALL - - cor0.col0 * 50 + col0 FROM tab1 cor0
----
153
3264
4080

query I rowsort
SELECT + cor0.col1 FROM tab0, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - col1 - ( + cor0.col0 ) FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT - col0 - col0 * + col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT ALL - col1 + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - 32 * + col1 + col2 + - col0 AS col2 FROM tab1 cor0
----
-327
-400
-781

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 col2 FROM tab0 cor0
----
-46

query I rowsort
SELECT DISTINCT + cor0.col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - 58 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9

query I rowsort
SELECT + + 11 FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT DISTINCT + col2 * - col1 + ( + col0 + + col0 ) FROM tab0 AS cor0
----
-27
-2790
-7284

query I rowsort
SELECT ALL - + col2 + + col1 AS col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT - - col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6761
SELECT DISTINCT + + cor0.col0 DIV - col0 + col2 AS col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT + + cor0.col0 / - col0 + col2 AS col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT + col0 * col1 * + col0 AS col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT - 60 AS col0 FROM tab2
----
-60
-60
-60

query I rowsort
SELECT ALL col0 + + cor0.col1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6765
SELECT col1 * col2 DIV - col0 FROM tab0 AS cor0
----
-118
-2
-83

skipif mysql # not compatible
query I rowsort label-6765
SELECT col1 * col2 / - col0 FROM tab0 AS cor0
----
-118
-2
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6766
SELECT ALL + col2 DIV col1 + + col2 + - col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL + col2 / col1 + + col2 + - col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT + 57 + col2 FROM tab2 AS cor0
----
83
84
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6768
SELECT 99 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-6768
SELECT 99 / cor0.col0 AS col0 FROM tab0 AS cor0
----
1
2
4

query I rowsort
SELECT - - cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-6770
SELECT - 31 + + col2 DIV CAST( 38 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-30
-31
-31

skipif mysql # not compatible
query I rowsort label-6770
SELECT - 31 + + col2 / CAST ( 38 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-30
-31
-31

query I rowsort
SELECT ALL - ( + col1 ) - 91 AS col0 FROM tab2
----
-108
-122
-150

query I rowsort
SELECT DISTINCT 68 - col0 FROM tab0
----
-21
33
44

query I rowsort
SELECT ALL - col0 + tab0.col0 - col1 * + col1 AS col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL 73 AS col2 FROM tab2
----
73
73
73

query I rowsort
SELECT DISTINCT 79 * col1 FROM tab2
----
1343
2449
4661

query I rowsort
SELECT DISTINCT ( cor0.col1 ) FROM tab1, tab2 AS cor0, tab0 AS cor1
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6777
SELECT ALL 71 DIV - tab2.col0 col2 FROM tab2
----
-10
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL 71 / - tab2.col0 col2 FROM tab2
----
-10
0
0

query I rowsort
SELECT + 62 * - col1 + cor0.col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-2619
-3268
2457

query I rowsort
SELECT - col2 - col1 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT col1 + col0 - - col2 AS col2 FROM tab2
----
134
163
65

query I rowsort
SELECT ALL - col2 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + - col1 + + ( col0 ) FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + + col1 * tab0.col1 col2 FROM tab0
----
4558
819
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-6784
SELECT DISTINCT + col1 DIV - 33 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT + col1 / - 33 FROM tab0
----
-2

query I rowsort
SELECT - cor0.col2 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 81 ) col0 FROM tab1 AS cor0
----
81
81
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6787
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6787
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6788
SELECT cor0.col2 DIV col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6788
SELECT cor0.col2 / col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT - col0 * - ( col1 * col2 ) AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL + tab1.col2 * col1 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6791
SELECT col0 + + 9 DIV + col0 AS col0 FROM tab2
----
78
79
8

skipif mysql # not compatible
query I rowsort label-6791
SELECT col0 + + 9 / + col0 AS col0 FROM tab2
----
78
79
8

query I rowsort
SELECT ( ( col2 ) ) + - col1 * + col2 FROM tab1
----
-1152
-1350
-513

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 199388980dc5177ebebcfdbc0408ba02

query I rowsort
SELECT DISTINCT 94 FROM tab1 AS cor0
----
94

query I rowsort
SELECT ALL + + 95 * col1 * + col2 + + 85 FROM tab1 AS cor0
----
118645
133465
54235

query I rowsort
SELECT + 61 * 44 FROM tab2 AS cor0
----
2684
2684
2684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 col2 FROM tab0
----
-40
-40
-40

query I rowsort
SELECT - ( col0 ) + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - 77 AS col2 FROM tab1 AS cor0
----
-77
-77
-77

query I rowsort
SELECT DISTINCT - 25 + col0 AS col0 FROM tab0 AS cor0
----
-1
10
64

query I rowsort
SELECT ALL - col2 * col0 - - ( col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
-1026
-3562
-3648

query I rowsort
SELECT DISTINCT + 28 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
124
82
85

query I rowsort
SELECT - 73 * + col2 + + col1 * col2 FROM tab1 AS cor0
----
-2538
-3591
-5760

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col1 + col2 * - col0 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT ALL - col0 * - col1 AS col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + - ( - col2 ) * col1 + - cor0.col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT + + col2 + - col0 FROM tab0 cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6808
SELECT DISTINCT ( 14 ) DIV col0 + - 88 FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT ( 14 ) / col0 + - 88 FROM tab0
----
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6809
SELECT DISTINCT + 7 * - col0 + + 95 DIV cor0.col2 + - col1 AS col2 FROM tab1 cor0
----
-457
-46
-573

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT + 7 * - col0 + + 95 / cor0.col2 + - col1 AS col2 FROM tab1 cor0
----
-457
-46
-573

query I rowsort
SELECT DISTINCT + 12 * col2 + - cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
2460
3407
9083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - - col0 + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + tab1.col0 * tab1.col1 + col2 * col1 col2 FROM tab1
----
1220
1508
2301

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6814
SELECT - col1 + - CAST( col1 AS SIGNED ) * - col2 col1 FROM tab0 AS cor0
----
0
2752
7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6814
SELECT - col1 + - CAST ( col1 AS INTEGER ) * - col2 col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col1 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6817
SELECT + col2 DIV 87 + - 5 * col0 FROM tab0 AS cor0
----
-120
-175
-445

skipif mysql # not compatible
query I rowsort label-6817
SELECT + col2 / 87 + - 5 * col0 FROM tab0 AS cor0
----
-120
-175
-445

onlyif mysql # use DIV operator for integer division
query I rowsort label-6818
SELECT DISTINCT col0 DIV col2 col2 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT col0 / col2 col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + 96 FROM tab2, tab0, tab0 cor0
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT col0 * 56 FROM tab2 AS cor0
----
392
4368
4424

query I rowsort
SELECT ALL + + col1 * + col2 * col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT col1 + - col2 * col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT ALL + col2 - col2 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + col1 + cor0.col1 * col0 * + col2 AS col2 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT ALL + - col0 * + 76 - 2 * col0 AS col0 FROM tab0 AS cor0
----
-1872
-2730
-6942

query I rowsort
SELECT DISTINCT + col2 * col2 + - cor0.col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT - cor0.col2 + + 20 FROM tab2 AS cor0
----
-18
-6
-7

query I rowsort
SELECT + - ( 25 ) + col0 AS col1 FROM tab1 cor0
----
-22
39
55

query I rowsort
SELECT DISTINCT + + ( cor0.col0 ) * col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL 50 + - col1 + col2 * - 53 AS col2 FROM tab1 AS cor0
----
-2838
-2981
-5051

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 * col1 + + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - - 77 AS col0 FROM tab1 AS cor0
----
77
77
77

query I rowsort
SELECT - col0 * - col0 * col1 AS col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT - ( + cor1.col1 ) + 14 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-17
-3
-45

query I rowsort
SELECT - 72 FROM tab2, tab1 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT DISTINCT tab0.col2 * - tab0.col1 + ( + col1 ) AS col0 FROM tab0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6839
SELECT col1 + col2 + - col2 DIV tab1.col2 AS col2 FROM tab1
----
108
66
79

skipif mysql # not compatible
query I rowsort label-6839
SELECT col1 + col2 + - col2 / tab1.col2 AS col2 FROM tab1
----
108
66
79

query I rowsort
SELECT col1 * - 78 + tab1.col1 * - col2 * - col0 FROM tab1
----
2184
35700
98826

onlyif mysql # use DIV operator for integer division
query I rowsort label-6841
SELECT DISTINCT - col2 * col1 DIV 74 + + col0 FROM tab1 AS cor0
----
-15
57
64

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT - col2 * col1 / 74 + + col0 FROM tab1 AS cor0
----
-15
57
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - ( + 74 + col2 ) col2 FROM tab0 AS cor0
----
-40
-67
-83

query I rowsort
SELECT - col0 + - col2 * - 5 FROM tab2 cor0
----
111
128
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6844
SELECT + col2 + + CAST( NULL AS SIGNED ) * 7 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6844
SELECT + col2 + + CAST ( NULL AS INTEGER ) * 7 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * - ( + col1 ) - cor0.col2 FROM tab1 cor0
----
-1136
-132
-697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6846
SELECT ( col2 ) * cor0.col0 - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6846
SELECT ( col2 ) * cor0.col0 - + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 80 + col2 * col0 FROM tab0 AS cor0
----
115
7378
872

query I rowsort
SELECT ( cor0.col1 ) * + col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + 91 + col2 AS col0 FROM tab2 AS cor0
----
117
118
129

query I rowsort
SELECT - 90 FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT ALL + col0 * - 6 + + col0 * + col1 AS col1 FROM tab2
----
175
4134
869

query I rowsort
SELECT - ( - col0 ) * col1 - - col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6853
SELECT CAST( 63 AS SIGNED ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
117
120
159

skipif mysql # not compatible
query I rowsort label-6853
SELECT CAST ( 63 AS INTEGER ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
117
120
159

query I rowsort
SELECT ALL + ( - col0 ) * col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - col1 * - col0 * col1 AS col2 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
17
31
59

query I rowsort
SELECT ALL - col0 + col1 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT col0 * + cor0.col0 FROM tab1 cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col0 + - col2 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT col0 + + cor0.col2 * + col1 AS col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT ALL - + 78 AS col1 FROM tab0 AS cor0
----
-78
-78
-78

query I rowsort
SELECT + 93 * col2 FROM tab0 AS cor0
----
3069
7626
93

query I rowsort
SELECT + ( tab2.col0 ) * - ( - col1 ) + col1 AS col2 FROM tab2
----
1360
248
4661

query I rowsort
SELECT DISTINCT + tab2.col0 AS col0 FROM tab2, tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL - 54 FROM tab1
----
-54
-54
-54

query I rowsort
SELECT col2 + 44 * ( + col2 + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
3005
3574
4892

onlyif mysql # use DIV operator for integer division
query I rowsort label-6868
SELECT + + cor0.col1 DIV - cor0.col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6868
SELECT + + cor0.col1 / - cor0.col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col0 * - col1 col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + col1 + 77 * + col1 FROM tab1 AS cor0
----
1014
2028
780

query I rowsort
SELECT col2 * + ( - 91 ) * col2 FROM tab0 AS cor0
----
-611884
-91
-99099

query I rowsort
SELECT ALL - col2 * + col1 AS col0 FROM tab2
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col1 FROM tab0
----
85
85
85

query I rowsort
SELECT DISTINCT 14 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + - cor0.col1 + 76 FROM tab0 AS cor0
----
-10
-15
-21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6877
SELECT CAST( NULL AS SIGNED ) + col0 + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6877
SELECT CAST ( NULL AS INTEGER ) + col0 + - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - cor1.col0 + + 63 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0a835443bd27872a2ab7c53b171326d9

query I rowsort
SELECT 6 * + ( col2 ) * - col1 FROM tab1
----
-3420
-7488
-8424

onlyif mysql # use DIV operator for integer division
query I rowsort label-6880
SELECT - 26 DIV tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6880
SELECT - 26 / tab0.col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 + - col1 + col2 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT + ( cor0.col2 ) * + col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - col1 * + cor0.col1 + + col2 + - 86 * - cor0.col1 FROM tab1 AS cor0
----
1045
1614
817

query I rowsort
SELECT DISTINCT - 85 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1445
-2635
-5015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 * 98 col1 FROM tab2
----
1666
3038
5782

query I rowsort
SELECT 66 * + col1 + 16 + - 47 FROM tab0 AS cor0
----
5645
5975
6371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT - ( tab1.col2 ) FROM tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6890
SELECT DISTINCT - col0 DIV + tab1.col2 + col0 * col1 FROM tab1
----
1040
639
78

skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT - col0 / + tab1.col2 + col0 * col1 FROM tab1
----
1040
639
78

query I rowsort
SELECT col2 * col2 + col1 - col2 * col0 AS col2 FROM tab1
----
-389
1549
2780

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) > col2 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + - tab0.col1 col1 FROM tab0
----
-1175
-6815
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + col0 + tab1.col0 AS col2 FROM tab1
----
128
160
6

query I rowsort
SELECT col0 + - col0 FROM tab1 WHERE NOT + tab1.col2 NOT BETWEEN ( NULL ) AND + col0 + - col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6897
SELECT ALL col2 * + col2 DIV - col2 + - tab1.col1 * + col1 DIV col1 AS col2 FROM tab1
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL col2 * + col2 / - col2 + - tab1.col1 * + col1 / col1 AS col2 FROM tab1
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 col1 FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT col0 * col2 * + col0 + col1 * - tab0.col2 AS col1 FROM tab0
----
1128
16170
642060

onlyif mysql # use DIV operator for integer division
query I rowsort label-6901
SELECT - col1 + - col1 DIV col0 FROM tab0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-6901
SELECT - col1 + - col1 / col0 FROM tab0
----
-89
-92
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - tab2.col1 col2 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL col0 * col1 + col0 * col0 FROM tab0
----
16020
2640
4620

query III rowsort
SELECT * FROM tab2 WHERE col2 IN ( - col0 )
----

query I rowsort
SELECT DISTINCT col2 + col1 - col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - col1 + + col2 AS col2 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 23 + col1 col0 FROM tab0 AS cor0
----
63
68
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6908
SELECT DISTINCT + + 78 / col1 - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6908
SELECT DISTINCT + + 78 / col1 - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + + 86 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1429
303
4688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col1 * - col1 + - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT ALL - 82 + cor0.col0 * + 74 AS col1 FROM tab2 AS cor0
----
436
5690
5764

query I rowsort
SELECT ALL col2 * + col0 + + col0 FROM tab1
----
165
3712
7760

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + col1 )
----

query I rowsort
SELECT DISTINCT col0 + + col1 * tab2.col2 AS col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT cor0.col0 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-6917
SELECT ALL - 1 + col2 * 44 DIV + cor0.col0 - col1 FROM tab1 AS cor0
----
28
38
765

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL - 1 + col2 * 44 / + cor0.col0 - col1 FROM tab1 AS cor0
----
28
38
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 + tab0.col2 AS col0 FROM tab0
----
-53
-9
-96

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) <> ( NULL )
----

query I rowsort
SELECT col0 * + col2 + col1 * col2 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT ALL + tab0.col1 * + col1 FROM tab0
----
7396
8281
9409

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 + col0 * - col1 + + col1 AND col2
----

query I rowsort
SELECT col0 * - col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-6925
SELECT DISTINCT - col1 DIV col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT - col1 / col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT - col2 * + col2 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6928
SELECT DISTINCT + col2 + - col1 DIV + col1 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT + col2 + - col1 / + col1 FROM tab0
----
0
32
81

query I rowsort
SELECT tab2.col1 * tab2.col2 - tab2.col1 * col2 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6930
SELECT ALL + col1 DIV + col2 + col1 FROM tab0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL + col1 / + col2 + col1 FROM tab0
----
194
88
92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 + + col1 * col0 ) IN ( + col1 )
----

query I rowsort
SELECT - tab2.col2 * col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT col2 * - col2 * tab1.col1 AS col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT tab1.col0 FROM tab1 WHERE NULL BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT tab0.col1 * - col2 AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL 57 FROM tab0 AS cor0
----
57
57
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6937
SELECT - - ( + col2 ) + col0 + + CAST( col1 AS SIGNED ) DIV col0 FROM tab0 AS cor0
----
172
38
60

skipif mysql # not compatible
query I rowsort label-6937
SELECT - - ( + col2 ) + col0 + + CAST ( col1 AS INTEGER ) / col0 FROM tab0 AS cor0
----
172
38
60

query I rowsort
SELECT DISTINCT - col0 * cor0.col2 * col2 FROM tab2 cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT tab1.col1 * - col0 FROM tab1
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6940
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 85 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 85 FROM tab0, tab1 AS cor0
----
NULL

query I rowsort
SELECT + ( 95 ) AS col0 FROM tab1, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a

query I rowsort
SELECT - 98 + - col1 * - col0 FROM tab0 AS cor0
----
1966
3297
8001

query I rowsort
SELECT - cor0.col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT 83 * 68 AS col2 FROM tab0 AS cor0
----
5644

query I rowsort
SELECT ALL - 22 * col2 FROM tab1 AS cor0
----
-1188
-1254
-2112

query I rowsort
SELECT ALL col2 + - col1 + col0 AS col2 FROM tab1
----
111
163
31

query I rowsort
SELECT ALL - 41 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT + tab0.col1 + - col1 + + 94 * col0 * - ( - 23 ) AS col0 FROM tab0
----
192418
51888
75670

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6949
SELECT CAST( - col1 AS SIGNED ) + tab0.col2 FROM tab0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-6949
SELECT CAST ( - col1 AS INTEGER ) + tab0.col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL + 36 FROM tab1, tab0 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # use DIV operator for integer division
query I rowsort label-6951
SELECT ALL col0 DIV - col1 col2 FROM tab1
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL col0 / - col1 col2 FROM tab1
----
-6
-6
0

query I rowsort
SELECT - col0 * + 41 * col0 + - col2 AS col2 FROM tab0
----
-23649
-324843
-50226

query I rowsort
SELECT cor0.col0 * + ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6954
SELECT ALL + - CAST( + 44 AS SIGNED ) FROM tab1 AS cor0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL + - CAST ( + 44 AS INTEGER ) FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT + ( - col2 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + ( col2 ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL + 54 + + 68 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to acf899d57890676abe1c114047afc513

query I rowsort
SELECT ALL - - ( 82 ) FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT - 94 * + ( - col1 ) + col2 AS col1 FROM tab1 AS cor0
----
1318
2498
997

query I rowsort
SELECT ALL col2 - + tab1.col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT - 11 AS col1 FROM tab1, tab2, tab0 AS cor0
----
-11

query I rowsort
SELECT col1 + - 37 AS col2 FROM tab0 AS cor0
----
49
54
60

query I rowsort
SELECT ALL + col0 * 79 FROM tab2 AS cor0
----
553
6162
6241

query I rowsort
SELECT ALL - - col2 * + 83 * + col1 FROM tab2 AS cor0
----
127322
53618
69471

query I rowsort
SELECT DISTINCT col0 + cor0.col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6966
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6966
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + col2 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT col1 + ( - col2 ) + col1 FROM tab1
----
-2
-37
-70

query I rowsort
SELECT ALL - + col0 * ( - 49 + + cor0.col2 ) * 80 AS col2 FROM tab2 AS cor0
----
12320
143520
69520

onlyif mysql # use DIV operator for integer division
query I rowsort label-6970
SELECT ALL - col0 DIV cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL - col0 / cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6971
SELECT col2 + - col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-6971
SELECT col2 + - col0 / - col1 AS col0 FROM tab2 AS cor0
----
27
27
42

query I rowsort
SELECT - col2 + 79 FROM tab2 cor0
----
41
52
53

query I rowsort
SELECT DISTINCT + + col0 + cor0.col0 FROM tab0 cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6974
SELECT - col2 * col0 + + 7 DIV - col2 + - 1 FROM tab0 AS cor0
----
-43
-7299
-793

skipif mysql # not compatible
query I rowsort label-6974
SELECT - col2 * col0 + + 7 / - col2 + - 1 FROM tab0 AS cor0
----
-43
-7299
-793

query I rowsort
SELECT DISTINCT + + col1 * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - col2 + + col0 * - cor0.col2 FROM tab2 AS cor0
----
-2054
-216
-3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 43 col2 FROM tab0 AS cor0
----
125
44
76

query I rowsort
SELECT DISTINCT col2 * - 34 FROM tab0 AS cor0
----
-1122
-2788
-34

query I rowsort
SELECT DISTINCT + - col1 * col2 * + 1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col0 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL 50 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT ALL - ( ( col2 ) ) FROM tab1
----
-54
-57
-96

query I rowsort
SELECT + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ( ( - col0 ) ) FROM tab0
----
-24
-35
-89

query I rowsort
SELECT - + col1 * cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + 77 + - col2 * - col1 FROM tab2 AS cor0
----
1611
723
914

query I rowsort
SELECT DISTINCT + ( col1 ) + ( + col0 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + - col0 + col2 + + 86 AS col2 FROM tab2 AS cor0
----
106
34
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT col2 + col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + 75 AS col0 FROM tab1 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 73 col0 FROM tab2 AS cor0
----
-73
-73
-73

query I rowsort
SELECT ALL + - col2 + + cor0.col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL 5 + col1 AS col1 FROM tab0
----
102
91
96

query I rowsort
SELECT DISTINCT + col2 * - col1 + - col2 FROM tab2 cor0
----
-1560
-684
-864

query I rowsort
SELECT 78 + + col2 AS col1 FROM tab0 cor0
----
111
160
79

query I rowsort
SELECT DISTINCT + col1 * + col1 AS col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - 34 + col1 * + col1 FROM tab2 AS cor0
----
255
3447
927

query I rowsort
SELECT 50 * - col1 AS col0 FROM tab0 AS cor0
----
-4300
-4550
-4850

query I rowsort
SELECT + - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + + col1 * - 25 AS col2 FROM tab0 AS cor0
----
-2150
-2275
-2425

query I rowsort
SELECT ALL - col2 * + 79 AS col2 FROM tab1 AS cor0
----
-4266
-4503
-7584

query I rowsort
SELECT ALL cor0.col2 * + col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-7005
SELECT DISTINCT - col1 + + col2 * 44 DIV cor0.col1 FROM tab2 AS cor0
----
-40
7
81

skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT - col1 + + col2 * 44 / cor0.col1 FROM tab2 AS cor0
----
-40
7
81

query I rowsort
SELECT - col1 * + ( + col2 * col2 ) FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT - col2 * - 49 + + 53 FROM tab1 AS cor0
----
2699
2846
4757

onlyif mysql # use DIV operator for integer division
query I rowsort label-7008
SELECT ALL - + col1 DIV + cor0.col1 + col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL - + col1 / + cor0.col1 + col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT DISTINCT - col2 * 27 - 64 FROM tab0 AS cor0
----
-2278
-91
-955

query I rowsort
SELECT + - col0 + 90 AS col0 FROM tab2 AS cor0
----
11
12
83

query I rowsort
SELECT - col2 + - col1 * + col1 AS col0 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT ALL + cor0.col2 + + col2 AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - col2 * - 64 + col2 AS col2 FROM tab1 AS cor0
----
3510
3705
6240

query I rowsort
SELECT ALL - cor0.col2 * 11 AS col1 FROM tab0 AS cor0
----
-11
-363
-902

query I rowsort
SELECT DISTINCT + col1 + - 36 FROM tab1 cor0
----
-10
-23
-26

query I rowsort
SELECT ALL + col0 * ( col2 ) + col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7017
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL cor0.col0 + cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 00ff93cbcc751be1393f9e1fd72170f8

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 col1 FROM tab1 AS cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 29 col0 FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT ALL + col0 + 32 FROM tab2 AS cor0
----
110
111
39

query I rowsort
SELECT DISTINCT - col0 + 24 * - col1 + + col2 * + col1 FROM tab1 AS cor0
----
266
777
856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL - ( ( col0 ) ) + col1 * col0 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-7026
SELECT ALL tab1.col1 + col2 DIV col1 AS col1 FROM tab1
----
15
20
28

skipif mysql # not compatible
query I rowsort label-7026
SELECT ALL tab1.col1 + col2 / col1 AS col1 FROM tab1
----
15
20
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-7027
SELECT col0 * col1 + col2 DIV + ( - ( + col2 ) ) + col1 FROM tab0 AS cor0
----
2149
3491
8189

skipif mysql # not compatible
query I rowsort label-7027
SELECT col0 * col1 + col2 / + ( - ( + col2 ) ) + col1 FROM tab0 AS cor0
----
2149
3491
8189

query I rowsort
SELECT - col0 * - 73 * col2 AS col0 FROM tab1 AS cor0
----
11826
266304
560640

query I rowsort
SELECT + + 24 * col0 FROM tab0 AS cor0
----
2136
576
840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7030
SELECT + col0 * col1 + cor0.col1 * - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-182
-5332
-6014

skipif mysql # not compatible
query I rowsort label-7030
SELECT + col0 * col1 + cor0.col1 * - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-182
-5332
-6014

query I rowsort
SELECT DISTINCT 6 * + 8 AS col0 FROM tab1 AS cor0
----
48

query I rowsort
SELECT - ( + 75 ) + col1 + - cor0.col2 AS col0 FROM tab1 cor0
----
-103
-122
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 78 + + col0 + - col0 col1 FROM tab0 AS cor0
----
-78
-78
-78

query I rowsort
SELECT - - col2 + + ( + col1 ) * cor0.col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT + - 85 * 34 + col2 FROM tab1 AS cor0
----
-2794
-2833
-2836

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7036
SELECT - - CAST( col1 AS SIGNED ) + + col0 AS col2 FROM tab0 cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-7036
SELECT - - CAST ( col1 AS INTEGER ) + + col0 AS col2 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT - col2 * 23 AS col2 FROM tab1
----
-1242
-1311
-2208

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1, tab2 cor0
----
7
78
79

query I rowsort
SELECT - cor0.col2 + - col0 * col0 * + col0 AS col2 FROM tab0 AS cor0
----
-13857
-42876
-705051

query I rowsort
SELECT - 85 FROM tab2, tab0 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT col0 + col2 * ( col1 ) * - col2 - + ( col1 ) AS col0 FROM tab0 AS cor0
----
-159
-611886
-93716

query I rowsort
SELECT col2 - - col1 * 16 FROM tab2 cor0
----
310
523
970

query I rowsort
SELECT DISTINCT + 81 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
81

query I rowsort
SELECT ALL - 20 + - col0 FROM tab2
----
-27
-98
-99

query I rowsort
SELECT ALL - col2 + col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7046
SELECT ALL col0 DIV - ( 58 ) AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL col0 / - ( 58 ) AS col2 FROM tab2
----
-1
-1
0

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab1 AS cor0, tab0 cor1
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

query I rowsort
SELECT DISTINCT + col2 * ( + col2 ) FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 - - col0 * col1 col0 FROM tab2 cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-65

query I rowsort
SELECT - tab0.col1 * col0 AS col0 FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - ( 39 ) + + col2 * + ( - col2 ) col1 FROM tab0 AS cor0
----
-10195
-1366
-2025

query I rowsort
SELECT DISTINCT 21 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
21

query I rowsort
SELECT - col1 + + col1 * - col1 FROM tab2 AS cor0
----
-306
-3540
-992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7055
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) + - col0 * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) + - col0 * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0, tab1 cor2
----
3645 values hashing to b3ea820890445d59f3f7464a1521d42d

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab0 cor1, tab1 cor2
----
972 values hashing to 9af67d6f98010464af5d560bf949d487

query I rowsort
SELECT ALL - col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + col0 + - 95 FROM tab1 AS cor0
----
-15
-31
-92

query I rowsort
SELECT 55 FROM tab1, tab1 cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to c59acfbb70996777fa5053195838c3d6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7061
SELECT + col0 DIV col2 - - col1 AS col1 FROM tab1 cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-7061
SELECT + col0 / col2 - - col1 AS col1 FROM tab1 cor0
----
11
13
26

query I rowsort
SELECT + col2 - 97 AS col0 FROM tab0 AS cor0
----
-15
-64
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7063
SELECT - tab1.col2 DIV col2 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7063
SELECT - tab1.col2 / col2 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT cor0.col0 * + col0 + - col1 FROM tab1 AS cor0
----
-17
4086
6387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 * - col1 col0 FROM tab2 AS cor0
----
-170
-310
-590

query I rowsort
SELECT - - 57 + + col1 - - col1 * ( col0 ) AS col0 FROM tab1 AS cor0
----
1110
161
707

query I rowsort
SELECT + + col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 AS col2 FROM tab2 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7069
SELECT DISTINCT - col1 DIV col0 + + ( - cor0.col2 ) * + col1 AS col1 FROM tab0 AS cor0
----
-2841
-7463
-99

skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT - col1 / col0 + + ( - cor0.col2 ) * + col1 AS col1 FROM tab0 AS cor0
----
-2841
-7463
-99

query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col2 + - col0 * + col1 * - col0 AS col1 FROM tab0 AS cor0
----
118824
49503
720729

query I rowsort
SELECT ALL - cor0.col1 - col1 * - 65 * + col0 AS col2 FROM tab1 AS cor0
----
41590
5044
67587

query I rowsort
SELECT + + 24 + + col2 * 32 FROM tab1 AS cor0
----
1752
1848
3096

query I rowsort
SELECT ALL 42 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT + - ( col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL - 79 - + col0 AS col0 FROM tab1 AS cor0
----
-143
-159
-82

query I rowsort
SELECT 7 * col2 FROM tab0
----
231
574
7

query I rowsort
SELECT ALL 37 AS col0 FROM tab2
----
37
37
37

query I rowsort
SELECT - 94 FROM tab1
----
-94
-94
-94

query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab1
----
31

query I rowsort
SELECT DISTINCT - 28 FROM tab1
----
-28

onlyif mysql # use DIV operator for integer division
query I rowsort label-7082
SELECT + col2 DIV - col0 col2 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7082
SELECT + col2 / - col0 col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - - cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + 43 * col0 FROM tab0 cor0
----
1032
1505
3827

query I rowsort
SELECT + col1 * + col1 + - 18 FROM tab0 AS cor0
----
7378
8263
9391

query I rowsort
SELECT + - ( col0 ) * - 88 - + col1 FROM tab0 AS cor0
----
2026
2983
7741

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7087
SELECT ALL + + ( + col2 ) * CAST( col1 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL + + ( + col2 ) * CAST ( col1 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + cor0.col0 * cor0.col0 * col1 + - col2 * - col2 - col2 * col1 AS col0 FROM tab0 AS cor0
----
118729
47787
720073

query I rowsort
SELECT - + 68 + - cor0.col2 * - col1 FROM tab0 AS cor0
----
2770
29
7394

query I rowsort
SELECT col2 + + col2 + tab1.col0 AS col1 FROM tab1
----
111
178
272

query I rowsort
SELECT DISTINCT ( - tab2.col1 ) * 97 + - col0 FROM tab2
----
-1728
-3014
-5801

query I rowsort
SELECT DISTINCT - col1 + col1 * col1 FROM tab2
----
272
3422
930

query I rowsort
SELECT col0 + + ( 23 ) AS col0 FROM tab2 AS cor0
----
101
102
30

query I rowsort
SELECT ALL + + col0 * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7095
SELECT DISTINCT 85 - - col2 * - ( - col1 + col0 ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT 85 - - col2 * - ( - col1 + col0 ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col0 * - col0 + + 15 * col2 * + tab0.col2 AS col1 FROM tab0
----
108781
1240
16911

query I rowsort
SELECT DISTINCT - 10 * tab1.col0 + - 45 * col1 FROM tab1
----
-1090
-1200
-1385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 * + 1 col2 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT + + 62 FROM tab2 AS cor0
----
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7100
SELECT ALL CAST( NULL AS SIGNED ) * 83 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL CAST ( NULL AS INTEGER ) * 83 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7101
SELECT - 47 DIV - ( + col1 * + ( + col1 ) ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7101
SELECT - 47 / - ( + col1 * + ( + col1 ) ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7102
SELECT DISTINCT - col1 * col0 DIV col1 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT - col1 * col0 / col1 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7103
SELECT ALL CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7104
SELECT ALL + col0 DIV ( - 45 ) AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL + col0 / ( - 45 ) AS col1 FROM tab2
----
-1
-1
0

query I rowsort
SELECT + 26 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT - col0 - + 57 AS col0 FROM tab2
----
-135
-136
-64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7107
SELECT DISTINCT + CAST( 18 AS SIGNED ) * - col1 FROM tab2
----
-1062
-306
-558

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT + CAST ( 18 AS INTEGER ) * - col1 FROM tab2
----
-1062
-306
-558

query I rowsort
SELECT ALL - - col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7109
SELECT + col1 DIV 15 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7109
SELECT + col1 / 15 FROM tab2 AS cor0
----
1
2
3

query I rowsort
SELECT ALL - ( + col2 ) * + col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + + 99 + - col0 AS col2 FROM tab0 AS cor0
----
10
64
75

query I rowsort
SELECT col1 * 39 AS col2 FROM tab0 AS cor0
----
3354
3549
3783

query I rowsort
SELECT ALL - + cor0.col1 + - col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT - col2 + - col2 * col0 * - col2 + - col0 AS col1 FROM tab2 AS cor0
----
113959
5069
52624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7115
SELECT DISTINCT + CAST( + ( - cor0.col2 ) * CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT + CAST ( + ( - cor0.col2 ) * CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT - + cor0.col0 * col1 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7117
SELECT - + cor0.col1 + + CAST( + col0 * + cor0.col0 AS SIGNED ) + cor0.col0 * - col2 col2 FROM tab1 AS cor0
----
-1293
-179
438

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7117
SELECT - + cor0.col1 + + CAST ( + col0 * + cor0.col0 AS INTEGER ) + cor0.col0 * - col2 col2 FROM tab1 AS cor0
----
-1293
-179
438

query I rowsort
SELECT ALL col2 * - ( + 1 ) AS col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL col1 * - tab1.col1 AS col0 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + + tab0.col2 AS col1 FROM tab0, tab1, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col1 + + col2 * + ( col2 ) AS col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT + col2 * + 61 AS col2 FROM tab1 AS cor0
----
3294
3477
5856

query I rowsort
SELECT col0 * - col2 * - 89 AS col2 FROM tab1
----
14418
324672
683520

query I rowsort
SELECT + - col0 * + col1 - + col0 * - col2 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT - + col1 + - col2 * + col2 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT - ( col1 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - col0 + - col0 FROM tab1
----
-128
-160
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7128
SELECT col2 DIV 85 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7128
SELECT col2 / 85 FROM tab2
----
0
0
0

query I rowsort
SELECT ( - col2 ) * + col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + ( 69 ) FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7131
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 * tab1.col0 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 * tab1.col0 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT tab2.col0 * + 98 + col2 FROM tab2
----
713
7670
7780

query I rowsort
SELECT col2 + - 66 FROM tab2
----
-28
-39
-40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7134
SELECT - CAST( NULL AS SIGNED ) * + col1 * tab0.col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7134
SELECT - CAST ( NULL AS INTEGER ) * + col1 * tab0.col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 * - col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7136
SELECT DISTINCT + - col2 + col1 DIV + col0 AS col0 FROM tab1 cor0
----
-46
-57
-96

skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT + - col2 + col1 / + col0 AS col0 FROM tab1 cor0
----
-46
-57
-96

query I rowsort
SELECT - 2 + col2 * tab1.col1 + + tab1.col2 AS col0 FROM tab1
----
1342
1456
625

query I rowsort
SELECT - col2 * - col1 + - col2 + col0 FROM tab0 AS cor0
----
131
2829
7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + - col2 col2 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7140
SELECT DISTINCT col0 DIV col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT col0 / col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col1 + col1 AS col2 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT ALL col1 + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + - col0 + + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - col0 - cor0.col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT - 33 AS col2 FROM tab1
----
-33

query I rowsort
SELECT 42 * + col0 * + tab0.col0 AS col1 FROM tab0
----
24192
332682
51450

query I rowsort
SELECT + + 7 FROM tab1, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT 54 + + cor0.col0 FROM tab0 AS cor0
----
143
78
89

query I rowsort
SELECT - col1 - col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL 58 AS col0 FROM tab0
----
58
58
58

query I rowsort
SELECT col1 + - 91 * + 81 + cor0.col1 FROM tab0 AS cor0
----
-7177
-7189
-7199

query I rowsort
SELECT ALL col2 + col1 + + col1 FROM tab2
----
144
72
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - - cor0.col1 + + cor0.col2 + ( col2 ) FROM tab2 cor0
----
111
85
93

query I rowsort
SELECT + cor0.col1 * - 39 + + col2 + + col1 FROM tab0 AS cor0
----
-3235
-3376
-3685

query I rowsort
SELECT - cor0.col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 + 3 * + col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT cor0.col2 * - col2 + + 53 FROM tab0 AS cor0
----
-1036
-6671
52

query I rowsort
SELECT ALL - + col1 + + 96 FROM tab1 AS cor0
----
70
83
86

query I rowsort
SELECT - + 9 * + 98 FROM tab1 AS cor0
----
-882
-882
-882

query I rowsort
SELECT + + 0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - 59 + cor0.col1 FROM tab2 AS cor0
----
-28
-42
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7163
SELECT CAST( - ( col0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7163
SELECT CAST ( - ( col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT col1 + + col2 * col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + col0 * + cor0.col2 - col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT + col0 * col2 - + col1 AS col1 FROM tab1 AS cor0
----
136
3638
7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT DISTINCT - 93 AS col2 FROM tab0, tab1 AS cor0
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - ( cor0.col1 ) ) - ( col2 ) * col2 col1 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT ALL + + col1 * 49 AS col0 FROM tab1 AS cor0
----
1274
490
637

query I rowsort
SELECT + + col1 + - cor0.col0 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-7172
SELECT DISTINCT - col0 DIV col1 FROM tab2 cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT - col0 / col1 FROM tab2 cor0
----
-1
-4
0

query I rowsort
SELECT - ( - col0 ) * col1 - - ( + col0 ) * col2 FROM tab1 cor0
----
240
4288
8720

onlyif mysql # use DIV operator for integer division
query I rowsort label-7174
SELECT ALL + cor0.col1 + - col1 * - col2 DIV CAST( ( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL + cor0.col1 + - col1 * - col2 / CAST ( ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT - 45 * - col2 - - col0 AS col2 FROM tab2 AS cor0
----
1222
1248
1789

query I rowsort
SELECT DISTINCT - col2 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT - col1 + + 37 AS col0 FROM tab1 AS cor0
----
11
24
27

query I rowsort
SELECT ALL + col2 + col1 * - col2 - col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT tab1.col0 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - + 92 * 35 - - col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1816
-1972
-2650

query I rowsort
SELECT + + col1 + col2 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - ( + col1 ) + col2 * + col0 AS col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT - 74 FROM tab0 cor0
----
-74

query I rowsort
SELECT - - ( 10 ) * col1 * 82 FROM tab2 AS cor0
----
13940
25420
48380

query I rowsort
SELECT ALL + col1 + 63 AS col1 FROM tab1 AS cor0
----
73
76
89

query I rowsort
SELECT + 87 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT ALL ( col1 ) AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT + col2 + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT - 75 * cor0.col0 FROM tab1 cor0
----
-225
-4800
-6000

query I rowsort
SELECT - col2 - col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT 80 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab1, tab0 AS cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

query I rowsort
SELECT + col2 * 60 FROM tab0 AS cor0
----
1980
4920
60

query I rowsort
SELECT + col2 * + cor0.col1 * col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT col0 + col0 * col1 + col0 AS col0 FROM tab1
----
1200
768
84

query I rowsort
SELECT ALL col0 * ( + 69 ) - tab0.col0 * - ( + tab0.col0 ) AS col2 FROM tab0
----
14062
2232
3640

query I rowsort
SELECT ALL - col2 + col2 - - ( - col0 ) * - col2 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7198
SELECT col0 DIV 56 AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7198
SELECT col0 / 56 AS col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT - + col1 * col0 + col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL col2 * + col0 * col0 + col1 FROM tab1 cor0
----
233482
512
614413

query I rowsort
SELECT ALL 74 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # use DIV operator for integer division
query I rowsort label-7202
SELECT DISTINCT - - col2 + + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT - - col2 + + col0 / col1 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col0 + col2 * + col2 FROM tab1
----
2919
3313
9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7204
SELECT + cor0.col0 * CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-7204
SELECT + cor0.col0 * CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + col0 * + ( - col1 ) + + col1 * - 33 FROM tab2 cor0
----
-1240
-1904
-6549

onlyif mysql # use DIV operator for integer division
query I rowsort label-7206
SELECT ALL col1 * - col0 + col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
-1034
-634
-78

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL col1 * - col0 + col0 / + col1 AS col0 FROM tab1 AS cor0
----
-1034
-634
-78

query I rowsort
SELECT - - col2 * - 57 FROM tab2 AS cor0
----
-1482
-1539
-2166

query I rowsort
SELECT ALL - col0 * ( + 86 ) + col0 * + col1 AS col1 FROM tab0 AS cor0
----
0
385
445

query I rowsort
SELECT - cor0.col0 * ( col1 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - col0 * ( + 13 ) - cor0.col0 * col2 FROM tab2 AS cor0
----
-280
-3042
-4029

query I rowsort
SELECT col0 + + col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL + col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + - col1 + col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - cor0.col2 + + col1 AS col2 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7215
SELECT ALL - CAST( ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL - CAST ( ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + ( col0 ) * - col1 + 51 - - cor0.col1 FROM tab2 AS cor0
----
-1275
-135
-4492

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7217
SELECT DISTINCT + + CAST( + col2 AS SIGNED ) * + col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
14823
3153
3396

skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT + + CAST ( + col2 AS INTEGER ) * + col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
14823
3153
3396

query I rowsort
SELECT DISTINCT cor0.col0 * col0 + - cor0.col1 AS col0 FROM tab1 cor0
----
-17
4086
6387

onlyif mysql # use DIV operator for integer division
query I rowsort label-7219
SELECT - col2 - + col0 DIV + col0 FROM tab0 cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-7219
SELECT - col2 - + col0 / + col0 FROM tab0 cor0
----
-2
-34
-83

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 51e2051aff75c58a5edaa314f1412983

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab1 AS cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

query I rowsort
SELECT ALL 63 * + 49 AS col2 FROM tab0 AS cor0
----
3087
3087
3087

query I rowsort
SELECT ALL 92 AS col2 FROM tab2 AS cor0
----
92
92
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7224
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + 51 * col1 AS col0 FROM tab2 AS cor0
----
1581
3009
867

query I rowsort
SELECT ALL + + 13 * col0 AS col2 FROM tab0 AS cor0
----
1157
312
455

onlyif mysql # use DIV operator for integer division
query I rowsort label-7227
SELECT DISTINCT - + col2 + - col2 DIV col0 AS col1 FROM tab1 AS cor0
----
-57
-72
-97

skipif mysql # not compatible
query I rowsort label-7227
SELECT DISTINCT - + col2 + - col2 / col0 AS col1 FROM tab1 AS cor0
----
-57
-72
-97

query I rowsort
SELECT - col0 * - col1 * + col0 AS col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT - col1 * + cor0.col2 * ( cor0.col0 + - col1 ) AS col1 FROM tab0 AS cor0
----
14924
175956
6014

query I rowsort
SELECT ALL col2 * col2 * ( - col2 ) FROM tab1 cor0
----
-157464
-185193
-884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-7231
SELECT DISTINCT + + cor0.col1 DIV col1 + 46 * col1 + - col2 AS col2 FROM tab1 AS cor0
----
1143
404
503

skipif mysql # not compatible
query I rowsort label-7231
SELECT DISTINCT + + cor0.col1 / col1 + 46 * col1 + - col2 AS col2 FROM tab1 AS cor0
----
1143
404
503

query I rowsort
SELECT ALL col0 * ( col0 ) + + col2 * + col0 + + col0 AS col1 FROM tab2 AS cor0
----
245
8190
9322

query I rowsort
SELECT ALL + col0 + + col1 AS col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL + col1 * - col2 + col0 FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-7235
SELECT DISTINCT - cor0.col0 + col2 DIV ( + cor0.col1 * col1 ) FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT - cor0.col0 + col2 / ( + cor0.col1 * col1 ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - 58 * col1 - tab2.col1 * col0 * - col1 FROM tab2
----
21845
268096
4929

query I rowsort
SELECT col0 - - col0 FROM tab0
----
178
48
70

query I rowsort
SELECT + 77 AS col2 FROM tab2
----
77
77
77

query I rowsort
SELECT ALL - + col1 + col1 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + 23 AS col1 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT ALL - col2 * ( - col2 * col2 ) AS col1 FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT DISTINCT + - 12 * col2 FROM tab1 AS cor0
----
-1152
-648
-684

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT + 44 * 38 FROM tab1 AS cor0
----
1672
1672
1672

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7245
SELECT CAST( NULL AS DECIMAL ) * 2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7245
SELECT CAST ( NULL AS REAL ) * 2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7246
SELECT + + col0 + - 29 DIV + col0 AS col0 FROM tab1 AS cor0
----
-6
64
80

skipif mysql # not compatible
query I rowsort label-7246
SELECT + + col0 + - 29 / + col0 AS col0 FROM tab1 AS cor0
----
-6
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7247
SELECT DISTINCT col2 * 25 + + col1 DIV - col0 FROM tab1
----
1342
1425
2400

skipif mysql # not compatible
query I rowsort label-7247
SELECT DISTINCT col2 * 25 + + col1 / - col0 FROM tab1
----
1342
1425
2400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7248
SELECT + CAST( col0 AS SIGNED ) * tab1.col2 col0 FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7248
SELECT + CAST ( col0 AS INTEGER ) * tab1.col2 col0 FROM tab1
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7249
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 * - col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7249
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 * - col2 AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 col0 FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + cor0.col0 col0 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7252
SELECT 81 DIV - tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 96308c1047e27c000d229f71df430662

skipif mysql # not compatible
query I rowsort label-7252
SELECT 81 / - tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 96308c1047e27c000d229f71df430662

query I rowsort
SELECT ALL 94 * col1 AS col2 FROM tab0
----
8084
8554
9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 * + ( cor0.col2 * - col0 ) col2 FROM tab1 AS cor0
----
-13307904
-26244
-58982400

query I rowsort
SELECT - cor0.col1 + - 76 * col1 FROM tab0 AS cor0
----
-6622
-7007
-7469

query I rowsort
SELECT ALL + col1 * - col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT col2 * - 66 FROM tab1 AS cor0
----
-3564
-3762
-6336

query I rowsort
SELECT + cor0.col1 * - 12 AS col1 FROM tab1 cor0
----
-120
-156
-312

query I rowsort
SELECT ALL + cor0.col2 + - col0 * col0 FROM tab0 AS cor0
----
-1224
-543
-7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( - col0 ) col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col1 * col2 * - tab1.col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - col2 * col0 * col1 FROM tab0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-7263
SELECT ALL 85 DIV + col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL 85 / + col1 AS col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7264
SELECT + col0 - - col2 * cor0.col2 DIV - col1 FROM tab1 AS cor0
----
-109
-260
-628

skipif mysql # not compatible
query I rowsort label-7264
SELECT + col0 - - col2 * cor0.col2 / - col1 FROM tab1 AS cor0
----
-109
-260
-628

query I rowsort
SELECT ALL + - cor0.col2 * + 43 + col2 AS col2 FROM tab0 AS cor0
----
-1386
-3444
-42

query I rowsort
SELECT cor0.col2 + + ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL + col2 + 9 AS col1 FROM tab1 AS cor0
----
105
63
66

query I rowsort
SELECT col1 * - col2 - col2 FROM tab1 cor0
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT + col0 * + ( + cor0.col1 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL 52 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT DISTINCT + col1 * - col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col0 * - col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7273
SELECT + col0 DIV + col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7273
SELECT + col0 / + col0 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col0 - - col1 BETWEEN col1 * col0 / - col1 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 * + col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT col0 * + col0 AS col2 FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-7277
SELECT - col1 * - col2 DIV - col2 + col0 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-7277
SELECT - col1 * - col2 / - col2 + col0 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7278
SELECT - col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7278
SELECT - col0 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 * + col2 + col1 * cor0.col1 * - col0 FROM tab0 AS cor0
----
-176415
-329314
-730285

query I rowsort
SELECT - col0 - + col1 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col1 * - col0 col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT + col2 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-7283
SELECT DISTINCT + col0 DIV - col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT + col0 / - col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - 51 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
-16
-27
38

query I rowsort
SELECT - + cor0.col0 * cor0.col1 + - col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT col2 * col2 + - col2 * col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 * col2 + col2 * - col1 + col1 FROM tab2 AS cor0
----
-617
2373
553

query I rowsort
SELECT DISTINCT cor0.col2 - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL - 49 * col1 FROM tab2 AS cor0
----
-1519
-2891
-833

query I rowsort
SELECT + col2 + col1 * + 73 FROM tab1 AS cor0
----
1045
1952
787

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col1 + + col1 * col1 AS REAL ) AS col0 FROM tab2
----
306
3540
992

query I rowsort
SELECT ALL + 3 AS col1 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT cor0.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT col1 * tab0.col1 AS col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - col0 + - col0 AS col2 FROM tab1 cor0
----
-128
-160
-6

query I rowsort
SELECT ALL col2 * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT tab1.col0 * - col1 AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT col0 * + col0 + + col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT + + col2 * cor0.col2 + col2 + col0 AS col0 FROM tab0 cor0
----
1146
37
6895

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7302
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7302
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7303
SELECT ALL col1 DIV 63 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL col1 / 63 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT + 72 FROM tab0
----
72

query I rowsort
SELECT DISTINCT - tab2.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-7
-78
-79

query I rowsort
SELECT ALL + 26 * + col2 AS col2 FROM tab0
----
2132
26
858

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7307
SELECT CAST( - cor0.col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7307
SELECT CAST ( - cor0.col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT - 85 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to 52d0d7df19a17e2c727a9028680c1c2f

query I rowsort
SELECT DISTINCT + 23 AS col1 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
23

query I rowsort
SELECT DISTINCT + ( 54 ) FROM tab1
----
54

query I rowsort
SELECT ALL 30 * - 97 AS col1 FROM tab1 AS cor0
----
-2910
-2910
-2910

query I rowsort
SELECT + + col1 + col2 + col2 AS col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT ALL - ( - 82 ) FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT DISTINCT + - 40 AS col2 FROM tab0 AS cor0
----
-40

query I rowsort
SELECT 35 + col2 AS col0 FROM tab1 AS cor0
----
131
89
92

query I rowsort
SELECT col0 * 84 + col2 AS col1 FROM tab1
----
306
5433
6816

query I rowsort
SELECT DISTINCT + 14 AS col0 FROM tab1
----
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-7318
SELECT DISTINCT col1 DIV - col1 AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT col1 / - col1 AS col0 FROM tab2 cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7319
SELECT - col2 + col0 DIV tab0.col2 AS col0 FROM tab0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-7319
SELECT - col2 + col0 / tab0.col2 AS col0 FROM tab0
----
-33
-81
34

query I rowsort
SELECT ALL 3 AS col0 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * tab1.col0 * 14 col2 FROM tab1
----
107520
2268
51072

query I rowsort
SELECT ALL tab2.col0 FROM tab2, tab1 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL + + 13 * - col0 AS col0 FROM tab2 AS cor0
----
-1014
-1027
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-7324
SELECT ALL col0 DIV - col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL col0 / - col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col1 * col1 + + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 col0 FROM tab0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7327
SELECT - col2 * + CAST( col2 AS SIGNED ) * tab2.col0 FROM tab2
----
-114076
-5103
-52728

skipif mysql # not compatible
query I rowsort label-7327
SELECT - col2 * + CAST ( col2 AS INTEGER ) * tab2.col0 FROM tab2
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-7328
SELECT DISTINCT - col2 * col2 + - col2 DIV + col0 AS col0 FROM tab0
----
-1
-1090
-6724

skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT - col2 * col2 + - col2 / + col0 AS col0 FROM tab0
----
-1
-1090
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 col2 FROM tab2
----
55
58
85

query I rowsort
SELECT - tab0.col0 + tab0.col1 AS col1 FROM tab0
----
2
62
62

query I rowsort
SELECT col2 - col0 * col0 FROM tab1 cor0
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT col0 + - cor0.col1 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7333
SELECT col2 * CAST( col2 AS SIGNED ) - cor0.col1 AS col2 FROM tab2 AS cor0
----
1427
617
698

skipif mysql # not compatible
query I rowsort label-7333
SELECT col2 * CAST ( col2 AS INTEGER ) - cor0.col1 AS col2 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT + col0 * col2 + + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT col2 * + cor0.col2 + cor0.col2 - - col2 FROM tab2 AS cor0
----
1520
728
783

query I rowsort
SELECT ALL + 87 + + col0 AS col2 FROM tab1 AS cor0
----
151
167
90

query I rowsort
SELECT DISTINCT + 53 AS col1 FROM tab0 AS cor0
----
53

query I rowsort
SELECT DISTINCT ( + col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - - cor0.col0 * col2 + col2 * + col1 FROM tab0 cor0
----
132
14760
3630

query I rowsort
SELECT ALL 82 + col2 * + col1 FROM tab2 cor0
----
1616
728
919

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7341
SELECT CAST( + ( col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7341
SELECT CAST ( + ( col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + 29 * - col0 + - col2 - + cor0.col1 FROM tab0 AS cor0
----
-1113
-2754
-815

query I rowsort
SELECT + 25 + 49 FROM tab0 AS cor0
----
74
74
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7344
SELECT DISTINCT + CAST( + 54 AS SIGNED ) * + cor0.col1 FROM tab2 AS cor0
----
1674
3186
918

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT + CAST ( + 54 AS INTEGER ) * + cor0.col1 FROM tab2 AS cor0
----
1674
3186
918

query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL - ( 39 ) + col0 + 72 FROM tab1 AS cor0
----
113
36
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - ( 9 ) + col0 FROM tab0 AS cor0
----
15
26
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7349
SELECT ALL - col1 * + col0 * cor0.col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL - col1 * + col0 * cor0.col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 + - col1 * col0 * col1 AS col2 FROM tab2 AS cor0
----
-22910
-271596
-6734

query I rowsort
SELECT DISTINCT + tab1.col2 + - ( 63 ) + - col0 FROM tab1
----
-12
-47
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7352
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7352
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + + col1 + col0 - 14 AS col1 FROM tab0 AS cor0
----
118
166
96

query I rowsort
SELECT ALL cor0.col0 * col0 + + 32 * cor0.col1 FROM tab0 cor0
----
10833
3328
4329

query I rowsort
SELECT ALL - col1 * - cor0.col1 + - 96 FROM tab2 AS cor0
----
193
3385
865

query I rowsort
SELECT DISTINCT - col2 + + ( - col2 * col0 ) FROM tab1 AS cor0
----
-216
-3705
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-7357
SELECT + col1 DIV - col0 AS col1 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7357
SELECT + col1 / - col0 AS col1 FROM tab0 cor0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7358
SELECT DISTINCT - + col0 DIV col1 FROM tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT - + col0 / col1 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT 4 + cor0.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3fada32f942e7f8b31d7498275f3ed7b

query I rowsort
SELECT ALL 99 * + col2 FROM tab1
----
5346
5643
9504

query I rowsort
SELECT 15 + col0 AS col2 FROM tab0 AS cor0
----
104
39
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-7362
SELECT + 3 + - 57 DIV col1 AS col1 FROM tab2 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-7362
SELECT + 3 + - 57 / col1 AS col1 FROM tab2 AS cor0
----
0
2
3

query I rowsort
SELECT - - 38 AS col2 FROM tab1 AS cor0
----
38
38
38

query I rowsort
SELECT - + ( - col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - + 82 * col1 FROM tab0 AS cor0
----
-7052
-7462
-7954

query I rowsort
SELECT - + 86 AS col2 FROM tab0 AS cor0
----
-86
-86
-86

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 + + 77 * col0 AS col1 FROM tab2 AS cor0
----
1376
6729
7540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + + cor0.col1 * col0 + + col0 * + col0 AS col1 FROM tab0 AS cor0
----
16020
2640
4620

onlyif mysql # use DIV operator for integer division
query I rowsort label-7370
SELECT DISTINCT + - col2 + + col0 DIV 6 FROM tab2 AS cor0
----
-13
-25
-26

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT + - col2 + + col0 / 6 FROM tab2 AS cor0
----
-13
-25
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7372
SELECT - col1 DIV - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-7372
SELECT - col1 / - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-7373
SELECT - - col0 DIV ( + col0 * + col1 ) AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7373
SELECT - - col0 / ( + col0 * + col1 ) AS col2 FROM tab0 cor0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to e7ea8a30caeb35409d15d2ce0abbd5a6

query I rowsort
SELECT ALL - col0 * + cor0.col1 * col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT + cor0.col2 + - ( - ( col2 ) ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - 94 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f

query I rowsort
SELECT DISTINCT 28 - cor0.col2 FROM tab2, tab2 AS cor0
----
-10
1
2

query I rowsort
SELECT DISTINCT - col0 * - ( col0 ) AS col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL - col1 + ( col2 ) + - 49 FROM tab0 AS cor0
----
-102
-145
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-7381
SELECT ALL - 36 + col2 DIV col1 AS col1 FROM tab0 AS cor0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL - 36 + col2 / col1 AS col1 FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT - ( + 73 ) AS col0 FROM tab2 AS cor0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT + 14 * + 70 + col2 FROM tab1 cor0
----
1034
1037
1076

query I rowsort
SELECT - col2 * 78 FROM tab0 cor0
----
-2574
-6396
-78

query I rowsort
SELECT DISTINCT 46 AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ( - 3 ) FROM tab2 AS cor0
----
-3
-3
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7387
SELECT DISTINCT + - 17 + - cor0.col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT + - 17 + - cor0.col0 / - col0 AS col0 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT DISTINCT + col2 * + 13 AS col1 FROM tab2
----
338
351
494

query I rowsort
SELECT col2 - 39 * col2 AS col2 FROM tab0
----
-1254
-3116
-38

query I rowsort
SELECT col1 + ( + col0 + col0 ) * + col1 FROM tab0
----
16289
4214
6887

query I rowsort
SELECT + 69 * col2 + col2 + 96 FROM tab2 cor0
----
1916
1986
2756

query I rowsort
SELECT - ( cor0.col1 ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 30 AS col2 FROM tab2
----
30
30
30

query I rowsort
SELECT DISTINCT + 93 AS col2 FROM tab0
----
93

query I rowsort
SELECT col1 + + cor0.col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL - 23 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT 26 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 * + col1 + col1 * - col2 + 21 col1 FROM tab0
----
-2817
-7441
-76

query I rowsort
SELECT 80 FROM tab0, tab0 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT + - cor1.col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT col0 * col0 + col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT - - cor0.col1 * col2 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + ( col2 * + col0 ) AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT ( - col0 * col1 ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + col2 * col2 AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT + 50 * col0 + + col2 * - 76 AS col0 FROM tab2
----
-1702
1062
1924

query I rowsort
SELECT + 89 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT cor0.col1 * 75 FROM tab0 AS cor0
----
6450
6825
7275

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7409
SELECT ALL - CAST( + 27 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-189
-2106
-2133

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL - CAST ( + 27 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-189
-2106
-2133

query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL + ( col0 ) * col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - - 17 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 71801088bb30ca6eac036729ebfbbace

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col2 AS REAL ) AS col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + - ( col2 ) + - 98 FROM tab0 AS cor0
----
-131
-180
-99

query I rowsort
SELECT DISTINCT + col0 + + col0 * 23 AS col1 FROM tab2 AS cor0
----
168
1872
1896

onlyif mysql # use DIV operator for integer division
query I rowsort label-7416
SELECT ALL 14 DIV - col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL 14 / - col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT + 18 AS col2 FROM tab2 AS cor0
----
18

query I rowsort
SELECT DISTINCT - + col1 * - col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-7420
SELECT 34 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7420
SELECT 34 / - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 69 * + col2 FROM tab0 AS cor0
----
2277
5658
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-7422
SELECT DISTINCT - col1 DIV - col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
q