sqllogictest
Artifact Content
Not logged in

Artifact 21008b61035a10fa736078551a8bcfd87ddd7710:


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)

onlyif mysql # use DIV operator for integer division
query I rowsort label-0
SELECT + ( - cor0.col1 ) + 93 DIV - col1 FROM tab1 AS cor0
----
-19
-20
-29

skipif mysql # not compatible
query I rowsort label-0
SELECT + ( - cor0.col1 ) + 93 / - col1 FROM tab1 AS cor0
----
-19
-20
-29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1
SELECT DISTINCT - CAST( col2 AS SIGNED ) + + col0 AS col2 FROM tab2
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-1
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + + col0 AS col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT + cor1.col1 + 70 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e30a2f1f299c4383765eacbdb3c27ae2

query I rowsort
SELECT DISTINCT + col0 * + 19 + + col1 FROM tab1
----
1226
1533
83

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-5
SELECT col1 * - cor0.col1 * - col2 + col2 DIV - col1 AS col0 FROM tab2 AS cor0
----
10980
25947
90506

skipif mysql # not compatible
query I rowsort label-5
SELECT col1 * - cor0.col1 * - col2 + col2 / - col1 AS col0 FROM tab2 AS cor0
----
10980
25947
90506

query I rowsort
SELECT ALL - ( col0 ) + + ( + 27 ) AS col1 FROM tab1 AS cor0
----
-37
-53
24

query I rowsort
SELECT DISTINCT - 36 * + col2 + ( + 31 ) FROM tab1 AS cor0
----
-1913
-2021
-3425

query I rowsort
SELECT - - cor0.col2 * - cor0.col1 + + 37 FROM tab1 AS cor0
----
-1211
-1367
-533

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

query I rowsort
SELECT + 58 + col2 FROM tab2 AS cor0
----
84
85
96

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab0 AS cor0, tab0 cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0

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

query I rowsort
SELECT 59 * col1 FROM tab1
----
1534
590
767

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-15
SELECT tab1.col0 DIV 3 FROM tab1, tab2 AS cor0
----
9 values hashing to 0289c80b4fd479e29202b6361bf12c02

skipif mysql # not compatible
query I rowsort label-15
SELECT tab1.col0 / 3 FROM tab1, tab2 AS cor0
----
9 values hashing to 0289c80b4fd479e29202b6361bf12c02

query I rowsort
SELECT ALL + col2 * - 16 AS col1 FROM tab1
----
-1536
-864
-912

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

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

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

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

query I rowsort
SELECT ALL + + col1 * col1 + - col1 * + col0 AS col1 FROM tab0 AS cor0
----
182
5332
6014

query I rowsort
SELECT DISTINCT + + 83 - + col1 AS col1 FROM tab2 AS cor0
----
24
52
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-21
SELECT + - 78 DIV cor0.col1 - col2 AS col2 FROM tab1 AS cor0
----
-102
-57
-64

skipif mysql # not compatible
query I rowsort label-21
SELECT + - 78 / cor0.col1 - col2 AS col2 FROM tab1 AS cor0
----
-102
-57
-64

query I rowsort
SELECT + + 41 - col1 FROM tab2 AS cor0
----
-18
10
24

query I rowsort
SELECT ALL - 92 + 33 AS col0 FROM tab1 AS cor0
----
-59
-59
-59

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-24
SELECT - CAST ( 30 AS INTEGER ) col2 FROM tab1 AS cor0
----
-30
-30
-30

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

query I rowsort
SELECT DISTINCT + 94 * + col0 FROM tab2 AS cor0
----
658
7332
7426

query I rowsort
SELECT - 46 * col2 - - col2 FROM tab1 AS cor0
----
-2430
-2565
-4320

query I rowsort
SELECT - - 48 FROM tab2 cor0
----
48
48
48

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

query I rowsort
SELECT ALL 86 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

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

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

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

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

query I rowsort
SELECT ALL + tab0.col1 + + col0 * - tab0.col2 FROM tab0
----
-706
-7207
62

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 32 + col2 * + col0 col1 FROM tab0
----
10146
1155
1560

query I rowsort
SELECT + 44 + 62 FROM tab0, tab1 AS cor0
----
9 values hashing to e3a970c661a05070afa8a3ed8dca742e

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

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

query I rowsort
SELECT ( + ( - col0 ) ) + col2 * 34 FROM tab2 AS cor0
----
1213
806
911

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

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

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

query I rowsort
SELECT cor0.col0 + - 79 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to b729ca2055453125f9340c954ea7ec3c

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 + cor0.col0 * - col2 col1 FROM tab1 AS cor0
----
-174
-3660
-7692

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

query I rowsort
SELECT + 78 + + col2 * col0 + col0 * + col0 FROM tab2 AS cor0
----
316
8190
9321

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

query I rowsort
SELECT - ( + col2 ) * col0 + - col0 * col1 * + col2 FROM tab0 AS cor0
----
-3430
-671416
-68904

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

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

query I rowsort
SELECT DISTINCT 52 * col2 FROM tab2 cor0
----
1352
1404
1976

query I rowsort
SELECT DISTINCT - col0 * + col0 + - col1 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT ( col1 ) + - cor0.col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT + col2 + col2 - col0 * col0 AS col0 FROM tab2 AS cor0
----
-6032
-6165
5

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

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

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

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

query I rowsort
SELECT - 8 - - col1 AS col0 FROM tab1 AS cor0
----
18
2
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) + + col1 * col1 col1 FROM tab2 AS cor0
----
272
3422
930

onlyif mysql # use DIV operator for integer division
query I rowsort label-65
SELECT DISTINCT - + col0 * col0 DIV + cor0.col1 + col0 - col0 * - col1 AS col0 FROM tab2 AS cor0
----
1055
223
4577

skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT - + col0 * col0 / + cor0.col1 + col0 - col0 * - col1 AS col0 FROM tab2 AS cor0
----
1055
223
4577

query I rowsort
SELECT - + 64 - col0 AS col1 FROM tab2 cor0
----
-142
-143
-71

query I rowsort
SELECT ALL + col1 * + 59 * - col2 + col1 * + cor0.col1 FROM tab1 cor0
----
-33530
-73463
-82160

query I rowsort
SELECT DISTINCT - 15 - + cor0.col1 AS col2 FROM tab1 AS cor0
----
-25
-28
-41

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

query I rowsort
SELECT 46 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT + col0 + - 72 FROM tab2 AS cor0
----
-65
6
7

query I rowsort
SELECT DISTINCT - 9 FROM tab2, tab0 cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT 82 * 13 FROM tab2 AS cor0
----
1066
1066
1066

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

query I rowsort
SELECT + 4 * - col0 AS col1 FROM tab0
----
-140
-356
-96

query I rowsort
SELECT ALL 96 - - tab2.col2 FROM tab2
----
122
123
134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 - - tab2.col2 col1 FROM tab2
----
65
66
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 col0 FROM tab2 AS cor0
----
52
54
76

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

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

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

query I rowsort
SELECT ALL - 68 AS col0 FROM tab0
----
-68
-68
-68

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

query I rowsort
SELECT + 55 * 64 * + cor0.col2 + col1 FROM tab0 AS cor0
----
116246
288731
3617

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

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

query I rowsort
SELECT ALL ( 36 ) - col0 FROM tab1
----
-28
-44
33

query I rowsort
SELECT col2 * ( - col2 ) - + col2 FROM tab2
----
-1482
-702
-756

query I rowsort
SELECT - col1 * col2 * col1 + - col1 * - col1 * col0 + + col2 FROM tab1
----
-2608
-34422
757

query I rowsort
SELECT - 54 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211

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

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

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

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

query I rowsort
SELECT ALL col1 + 81 AS col0 FROM tab1
----
107
91
94

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

query I rowsort
SELECT DISTINCT + 84 * - col0 AS col0 FROM tab1 AS cor0
----
-252
-5376
-6720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-96
SELECT ALL - CAST( 91 AS SIGNED ) + - cor0.col1 * + 24 AS col1 FROM tab0 AS cor0
----
-2155
-2275
-2419

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL - CAST ( 91 AS INTEGER ) + - cor0.col1 * + 24 AS col1 FROM tab0 AS cor0
----
-2155
-2275
-2419

query I rowsort
SELECT ( 49 ) + - col1 FROM tab1 AS cor0
----
23
36
39

query I rowsort
SELECT DISTINCT 54 AS col0 FROM tab1, tab1 cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 * col2 * + col1 col2 FROM tab1 AS cor0
----
3420
7488
8424

query I rowsort
SELECT DISTINCT - - ( + 33 ) AS col1 FROM tab0 AS cor0
----
33

query I rowsort
SELECT DISTINCT col2 * col0 + col2 + cor0.col0 FROM tab0 AS cor0
----
71
7469
849

query I rowsort
SELECT ALL + + 22 + - 84 - + col2 FROM tab1 AS cor0
----
-116
-119
-158

onlyif mysql # use DIV operator for integer division
query I rowsort label-103
SELECT DISTINCT col0 DIV - col1 FROM tab1
----
-6
0

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT col0 / - col1 FROM tab1
----
-6
0

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

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

query I rowsort
SELECT - + 15 FROM tab2 AS cor0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT - 47 + + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-144
-2885
-7509

query I rowsort
SELECT ALL + col0 * + col1 - + col2 * tab0.col2 FROM tab0
----
1375
3394
975

query I rowsort
SELECT - + tab1.col2 * - cor0.col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 6eca0fdf700a988d88ac850bac7633ab

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

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

query I rowsort
SELECT DISTINCT col2 + + col0 * + 84 AS col0 FROM tab1
----
306
5433
6816

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-113
SELECT ( - col2 ) DIV - 49 + 75 * - col2 * col1 col2 FROM tab0
----
-212850
-559649
-7275

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-113
SELECT ( - col2 ) / - 49 + 75 * - col2 * col1 col2 FROM tab0
----
-212850
-559649
-7275

query I rowsort
SELECT 44 * - 11 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 9fa79ed1f6ca2de7b78771a9268d587f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col0 col1 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT col2 * col1 * col2 AS col0 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT - col2 * col0 + col2 + + col0 FROM tab2 AS cor0
----
-155
-1924
-2885

query I rowsort
SELECT + - col0 - - ( - 25 ) * + col0 * + ( - 33 ) AS col0 FROM tab2 AS cor0
----
5768
64272
65096

query I rowsort
SELECT - col2 + + 19 + + 89 * col1 AS col0 FROM tab0 AS cor0
----
7640
8036
8651

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

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

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

query I rowsort
SELECT DISTINCT col1 + + 82 FROM tab1 AS cor0
----
108
92
95

query I rowsort
SELECT - + col0 * 82 * + 49 - col0 FROM tab0 AS cor0
----
-140665
-357691
-96456

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

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

query I rowsort
SELECT - col0 - + col2 * 56 FROM tab2 AS cor0
----
-1519
-1534
-2207

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-128
SELECT - col0 + CAST( + col0 + - col1 AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
-1512
-2205
-267

skipif mysql # not compatible
query I rowsort label-128
SELECT - col0 + CAST ( + col0 + - col1 AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
-1512
-2205
-267

query I rowsort
SELECT ALL - col2 - + tab0.col0 AS col2 FROM tab0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 * 61 col1 FROM tab0
----
2037
5091
96

query I rowsort
SELECT DISTINCT ( + col1 ) - col2 * + 24 AS col1 FROM tab1
----
-1270
-1358
-2291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 * - tab1.col2 - - tab1.col1 col2 FROM tab1
----
207946
737293
8774

query I rowsort
SELECT - col1 * - 11 * + cor0.col0 FROM tab0 AS cor0
----
22704
37345
89089

query I rowsort
SELECT ALL - 43 * + tab0.col0 * 23 - col1 AS col1 FROM tab0
----
-23822
-34712
-88112

query I rowsort
SELECT ALL + 48 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + ( col2 ) + col0 + + 99 * + 53 col1 FROM tab1 cor0
----
13007
5412
8959

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

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 72eb3d4d523f5d0c69d1b855edd18f4a

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-140
SELECT ALL col1 * col1 DIV col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL col1 * col1 / col1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT - col0 * col2 + + 91 FROM tab2 AS cor0
----
-1937
-2911
-98

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-144
SELECT - + CAST( - col0 AS SIGNED ) + col0 * + ( col0 * - col0 ) - col0 AS col2 FROM tab2 cor0
----
-343
-474552
-493039

skipif mysql # not compatible
query I rowsort label-144
SELECT - + CAST ( - col0 AS INTEGER ) + col0 * + ( col0 * - col0 ) - col0 AS col2 FROM tab2 cor0
----
-343
-474552
-493039

query I rowsort
SELECT + col0 + 47 AS col0 FROM tab1
----
111
127
50

skipif mysql # not compatible
query I rowsort
SELECT col1 + CAST ( - 60 AS REAL ) FROM tab2
----
-1
-29
-43

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-148
SELECT + - 59 DIV col2 + + col2 + col1 * 30 * col0 FROM tab0 AS cor0
----
101792
243052
61952

skipif mysql # not compatible
query I rowsort label-148
SELECT + - 59 / col2 + + col2 + col1 * 30 * col0 FROM tab0 AS cor0
----
101792
243052
61952

query I rowsort
SELECT - 41 + - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2957
-3290
-9257

onlyif mysql # use DIV operator for integer division
query I rowsort label-150
SELECT tab0.col0 * col0 DIV - tab0.col2 FROM tab0
----
-1225
-17
-96

skipif mysql # not compatible
query I rowsort label-150
SELECT tab0.col0 * col0 / - tab0.col2 FROM tab0
----
-1225
-17
-96

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

query I rowsort
SELECT DISTINCT col1 * 1 AS col0 FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-153
SELECT - tab2.col0 * col2 DIV 38 FROM tab2
----
-4
-53
-79

skipif mysql # not compatible
query I rowsort label-153
SELECT - tab2.col0 * col2 / 38 FROM tab2
----
-4
-53
-79

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

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

query I rowsort
SELECT - 58 AS col1 FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT + + 37 + - col2 AS col1 FROM tab2 cor0
----
-1
10
11

query I rowsort
SELECT DISTINCT col2 * - cor0.col2 - - cor0.col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) col2 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT + tab2.col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
17
31
59

query I rowsort
SELECT + 23 + 9 * tab2.col0 FROM tab2
----
725
734
86

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
10
13
26

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

query I rowsort
SELECT ALL 32 * + col0 + 77 FROM tab2 AS cor0
----
2573
2605
301

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

query I rowsort
SELECT DISTINCT - cor0.col1 + col2 * - ( - col1 + - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
1275
1643
3009

query I rowsort
SELECT ALL - 87 + + col2 * ( col2 ) FROM tab1 AS cor0
----
2829
3162
9129

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

query I rowsort
SELECT - col2 * - col2 + ( 73 ) AS col1 FROM tab1 cor0
----
2989
3322
9289

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 - + col1 col1 FROM tab0 AS cor0
----
-71
-76
-82

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

query I rowsort
SELECT - cor0.col0 * + 49 FROM tab1 AS cor0
----
-147
-3136
-3920

query I rowsort
SELECT + col1 * 90 * 73 FROM tab0 AS cor0
----
565020
597870
637290

query I rowsort
SELECT ALL + col0 * 3 AS col0 FROM tab0 cor0
----
105
267
72

query I rowsort
SELECT - ( - col1 + 45 ) * col2 AS col2 FROM tab1
----
-1026
-1995
-3072

query I rowsort
SELECT + 26 + + col2 FROM tab1
----
122
80
83

query I rowsort
SELECT col2 * - col2 - col1 * + col2 FROM tab1
----
-10464
-3819
-4320

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

query I rowsort
SELECT ALL 43 + + col1 FROM tab1 cor0
----
53
56
69

query I rowsort
SELECT - 36 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT DISTINCT + 75 * + col2 FROM tab2 AS cor0
----
1950
2025
2850

query I rowsort
SELECT ALL cor0.col0 + - 93 * - col2 * + 71 FROM tab2 AS cor0
----
171756
178288
250993

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

query I rowsort
SELECT + col2 + - 20 * - col2 FROM tab2 AS cor0
----
546
567
798

query I rowsort
SELECT - + 19 + - col2 * - col0 FROM tab1 AS cor0
----
143
3629
7661

query I rowsort
SELECT ALL + 69 - + col1 AS col1 FROM tab2 AS cor0
----
10
38
52

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

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

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

query I rowsort
SELECT col2 * + tab2.col2 * ( col1 ) FROM tab2
----
22599
24548
39884

query I rowsort
SELECT ALL - + cor0.col2 * 22 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3d9a9e2c9949022ffe0fcb90d9355113

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

query I rowsort
SELECT + ( - 32 * - col2 + col1 * 55 ) FROM tab0
----
5367
5786
7629

query I rowsort
SELECT + cor0.col0 * - col2 - - cor0.col0 * - 86 FROM tab2 AS cor0
----
-791
-8736
-9796

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

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

query I rowsort
SELECT 47 * + col2 - col2 FROM tab0 AS cor0
----
1518
3772
46

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

query I rowsort
SELECT - ( cor0.col1 ) * + cor0.col0 + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + tab0.col2 + ( - col2 ) + 92 AS col1 FROM tab0
----
92
92
92

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-204
SELECT + col0 DIV - 18 FROM tab1
----
-3
-4
0

skipif mysql # not compatible
query I rowsort label-204
SELECT + col0 / - 18 FROM tab1
----
-3
-4
0

query I rowsort
SELECT DISTINCT ( - tab2.col1 ) - tab2.col2 * ( + col0 ) FROM tab2
----
-2087
-220
-3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-206
SELECT DISTINCT ( col2 ) DIV tab0.col1 + - col0 * - 23 AS col2 FROM tab0
----
2047
552
805

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT ( col2 ) / tab0.col1 + - col0 * - 23 AS col2 FROM tab0
----
2047
552
805

onlyif mysql # use DIV operator for integer division
query I rowsort label-207
SELECT - tab1.col2 DIV - tab1.col1 + - col0 FROM tab1
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-207
SELECT - tab1.col2 / - tab1.col1 + - col0 FROM tab1
----
-1
-59
-73

query I rowsort
SELECT ALL + col1 * col1 - + 11 AS col0 FROM tab2 AS cor0
----
278
3470
950

query I rowsort
SELECT - cor0.col0 * - cor0.col1 + + 26 FROM tab1 AS cor0
----
104
1066
666

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

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

query I rowsort
SELECT ALL + - 43 + - col1 FROM tab1 AS cor0
----
-53
-56
-69

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

query I rowsort
SELECT 86 * + col2 FROM tab1
----
4644
4902
8256

query I rowsort
SELECT DISTINCT + 40 + + col0 FROM tab2 AS cor0
----
118
119
47

query I rowsort
SELECT ( - col1 ) AS col2 FROM tab2 cor0
----
-17
-31
-59

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

query I rowsort
SELECT ALL - - 43 * col0 AS col1 FROM tab1 AS cor0
----
129
2752
3440

onlyif mysql # use DIV operator for integer division
query I rowsort label-219
SELECT ( - col2 ) - - col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-219
SELECT ( - col2 ) - - col2 / + col0 AS col2 FROM tab1 AS cor0
----
-36
-57
-95

query I rowsort
SELECT DISTINCT - 17 * - col1 + ( - 50 ) * + col2 AS col2 FROM tab2 AS cor0
----
-1611
-297
-823

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

query I rowsort
SELECT DISTINCT ( 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-223
SELECT ALL + cor0.col1 / + cor0.col0 + CAST( NULL AS SIGNED ) * 90 * col0 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-223
SELECT ALL + cor0.col1 / + cor0.col0 + CAST ( NULL AS INTEGER ) * 90 * col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 * - ( - 74 ) FROM tab1 AS cor0
----
1924
740
962

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

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

query I rowsort
SELECT DISTINCT - - col1 + - 68 FROM tab0 AS cor0
----
18
23
29

query I rowsort
SELECT - - col1 * 28 AS col0 FROM tab1 AS cor0
----
280
364
728

query I rowsort
SELECT DISTINCT + col1 * - 62 AS col0 FROM tab2 AS cor0
----
-1054
-1922
-3658

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

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

query I rowsort
SELECT ALL + - 80 + + ( col0 ) AS col1 FROM tab2 AS cor0
----
-1
-2
-73

query I rowsort
SELECT ALL + + ( 44 ) + + cor0.col2 * - col2 FROM tab2 AS cor0
----
-1400
-632
-685

onlyif mysql # use DIV operator for integer division
query I rowsort label-237
SELECT + cor0.col1 DIV - 68 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-237
SELECT + cor0.col1 / - 68 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

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

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT col0 + + col2 / + col0 AS col1 FROM tab0 cor0
----
25
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) col1 FROM tab1 AS cor0
----
10
13
26

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

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

query I rowsort
SELECT ALL - 79 AS col0 FROM tab1 AS cor0
----
-79
-79
-79

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

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

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

query I rowsort
SELECT + col0 - 24 AS col2 FROM tab0 AS cor0
----
0
11
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-245
SELECT ALL - col0 * CAST( col0 AS SIGNED ) + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-4153
-63
-6496

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL - col0 * CAST ( col0 AS INTEGER ) + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT col1 * col1 + + col1 AS col2 FROM tab1 AS cor0
----
110
182
702

skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 + - CAST ( - 6 AS REAL ) FROM tab1 AS cor0
----
-20
-4
-7

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

query I rowsort
SELECT ALL cor0.col2 * 14 AS col0 FROM tab2 AS cor0
----
364
378
532

query I rowsort
SELECT ALL col0 * col2 * ( col2 + + col0 ) FROM tab0
----
1247958
1260
45144

query I rowsort
SELECT col0 * col1 * + 81 + - col0 AS col2 FROM tab2
----
108704
17570
372684

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

query I rowsort
SELECT col1 + col1 - - col1 * + col0 FROM tab0 AS cor0
----
2236
3589
8281

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

query I rowsort
SELECT - col2 * 75 + + col1 * col1 * col1 + - ( col0 ) * col1 FROM tab1 AS cor0
----
-3915
-6043
13448

query I rowsort
SELECT col0 + 24 FROM tab2 AS cor0
----
102
103
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-257
SELECT + CAST( 35 AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

skipif mysql # not compatible
query I rowsort label-257
SELECT + CAST ( 35 AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

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

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

query I rowsort
SELECT - 96 * - col1 AS col2 FROM tab1
----
1248
2496
960

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

query I rowsort
SELECT - + ( + col2 ) + col2 * col2 AS col1 FROM tab2 cor0
----
1406
650
702

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

query I rowsort
SELECT - - 41 * col1 FROM tab2 AS cor0
----
1271
2419
697

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

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

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

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

query I rowsort
SELECT col1 * - col0 * + cor0.col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

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

query I rowsort
SELECT ALL - col1 * - col0 + + 91 AS col0 FROM tab1 AS cor0
----
1131
169
731

query I rowsort
SELECT ( - ( cor1.col2 ) ) * + 29 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 1bce918ecf990eef31e995e69f9539a7

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

skipif mysql # not compatible
query I rowsort label-272
SELECT + ( - col1 ) / col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL - 86 * cor0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9ff1f8be9e1e4fbfc49ccebbe6d270e7

onlyif mysql # use DIV operator for integer division
query I rowsort label-274
SELECT DISTINCT ( + col2 ) * col2 DIV - ( col1 + col1 * + ( 3 ) ) AS col0 FROM tab2
----
-2
-21
-5

skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT ( + col2 ) * col2 / - ( col1 + col1 * + ( 3 ) ) AS col0 FROM tab2
----
-2
-21
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-275
SELECT CAST( 41 AS SIGNED ) col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 0733f496a5445ffeac9d19797afe4831

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-275
SELECT CAST ( 41 AS INTEGER ) col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 0733f496a5445ffeac9d19797afe4831

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-277
SELECT - + ( col1 ) + col0 + - CAST( - 26 * + col2 + 40 AS SIGNED ) FROM tab0 AS cor0
----
-76
2090
756

skipif mysql # not compatible
query I rowsort label-277
SELECT - + ( col1 ) + col0 + - CAST ( - 26 * + col2 + 40 AS INTEGER ) FROM tab0 AS cor0
----
-76
2090
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-278
SELECT DISTINCT + col0 * 95 + + col0 DIV col2 FROM tab1 AS cor0
----
285
6081
7600

skipif mysql # not compatible
query I rowsort label-278
SELECT DISTINCT + col0 * 95 + + col0 / col2 FROM tab1 AS cor0
----
285
6081
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-279
SELECT + col2 + ( + col2 ) * ( col1 ) DIV + col0 FROM tab2 AS cor0
----
146
45
46

skipif mysql # not compatible
query I rowsort label-279
SELECT + col2 + ( + col2 ) * ( col1 ) / + col0 FROM tab2 AS cor0
----
146
45
46

query I rowsort
SELECT ( + col0 ) * col2 + 18 AS col0 FROM tab2 cor0
----
2046
207
3020

query I rowsort
SELECT - col2 + - 53 * + col0 FROM tab1 AS cor0
----
-213
-3449
-4336

query I rowsort
SELECT + + 20 * col2 + + cor0.col1 * col2 * col2 FROM tab2 AS cor0
----
23139
25308
40404

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

query I rowsort
SELECT + + 84 + col1 FROM tab1 cor0
----
110
94
97

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

query I rowsort
SELECT - 74 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2442
-6068
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 53 ) * tab0.col1 col0 FROM tab0
----
4558
4823
5141

query I rowsort
SELECT ALL - 7 * + col2 AS col2 FROM tab0
----
-231
-574
-7

query I rowsort
SELECT DISTINCT col1 - ( + col1 ) * + col0 AS col2 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT col0 * + 17 - col0 FROM tab0
----
1424
384
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col2 + ( col1 + cor0.col1 ) col0 FROM tab1 AS cor0
----
109
141
202

query I rowsort
SELECT + - col2 + + col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col2 * - 80 - - ( - col1 ) * col0 FROM tab1
----
-4398
-5200
-8720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-294
SELECT ALL CAST( NULL AS SIGNED ) * + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL CAST ( NULL AS INTEGER ) * + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-295
SELECT col1 DIV col1 + tab2.col0 * col2 - + ( 15 ) FROM tab2
----
175
2014
2988

skipif mysql # not compatible
query I rowsort label-295
SELECT col1 / col1 + tab2.col0 * col2 - + ( 15 ) FROM tab2
----
175
2014
2988

query I rowsort
SELECT - col0 * col0 + + 21 FROM tab1 AS cor0
----
-4075
-6379
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-297
SELECT - cor0.col0 * col0 DIV col0 + - col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-297
SELECT - cor0.col0 * col0 / col0 + - col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-298
SELECT + - col2 * + 90 + + col1 * CAST( + col2 AS SIGNED ) + cor0.col0 FROM tab1 AS cor0
----
-3453
-4496
-7312

skipif mysql # not compatible
query I rowsort label-298
SELECT + - col2 * + 90 + + col1 * CAST ( + col2 AS INTEGER ) + cor0.col0 FROM tab1 AS cor0
----
-3453
-4496
-7312

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

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL CAST ( col2 AS INTEGER ) + + col1 * + col1 * col2 AS col2 FROM tab1 cor0
----
16320
36558
5757

query I rowsort
SELECT - + 34 * - 16 + - col1 FROM tab0 AS cor0
----
447
453
458

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

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

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

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

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

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

query I rowsort
SELECT - 43 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-19
-8
46

query I rowsort
SELECT - - 89 + col1 * col2 AS col2 FROM tab0 AS cor0
----
186
2927
7551

query I rowsort
SELECT ALL + col0 * 16 AS col2 FROM tab1 AS cor0
----
1024
1280
48

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-310
SELECT ALL - col1 + + col2 DIV col2 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL - col1 + + col2 / col2 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT + - 45 * col2 FROM tab2 cor0
----
-1170
-1215
-1710

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

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

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

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

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

query I rowsort
SELECT + - 39 * col1 FROM tab2 AS cor0
----
-1209
-2301
-663

query I rowsort
SELECT ALL 8 * + 13 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d32adf5fdd5e4096e2c037977ca3f009

onlyif mysql # use DIV operator for integer division
query I rowsort label-318
SELECT DISTINCT - + col2 DIV - 91 - col0 AS col0 FROM tab1 cor0
----
-3
-64
-79

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT - + col2 / - 91 - col0 AS col0 FROM tab1 cor0
----
-3
-64
-79

query I rowsort
SELECT DISTINCT cor0.col2 + ( col2 ) + + col0 FROM tab2 AS cor0
----
130
155
61

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

query I rowsort
SELECT DISTINCT + col0 * 78 - cor0.col2 * + col0 FROM tab2 AS cor0
----
3160
357
4056

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

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT + cor0.col0 * - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL + + col2 * 32 + col0 + + col1 AS col0 FROM tab0 AS cor0
----
1166
164
2804

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

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

query I rowsort
SELECT ALL - + col1 * + 57 + + col0 AS col2 FROM tab2 AS cor0
----
-1760
-3285
-890

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + + col2 + - CAST ( + 98 AS REAL ) * - col0 col1 FROM tab2 AS cor0
----
713
7670
7780

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

query I rowsort
SELECT 53 * col0 + col1 FROM tab2
----
402
4193
4204

query I rowsort
SELECT DISTINCT col2 - - 3 FROM tab0
----
36
4
85

query I rowsort
SELECT DISTINCT - - col0 * ( col2 * col0 + - col1 ) FROM tab1 cor0
----
232832
408
613360

query I rowsort
SELECT ALL + - col0 + + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-164
-249
-679

skipif mysql # not compatible
query I rowsort
SELECT col0 + CAST ( col0 AS REAL ) FROM tab1 AS cor0
----
128
160
6

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

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

query I rowsort
SELECT ALL + col1 * col1 + col2 * - col0 + - 11 FROM tab0
----
6593
9363
972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 col2 FROM tab1
----
64
64
64

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

query I rowsort
SELECT ALL - col0 * - col0 + - cor0.col0 FROM tab2 AS cor0
----
42
6006
6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * - col2 col1 FROM tab0 AS cor0
----
1148
14
462

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

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

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

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

query I rowsort
SELECT ALL + 36 + + col0 FROM tab1 AS cor0
----
100
116
39

query I rowsort
SELECT ALL + col2 * 70 + + col0 AS col2 FROM tab0 AS cor0
----
105
2334
5829

query I rowsort
SELECT ALL col2 + col1 + + col0 AS col1 FROM tab2 AS cor0
----
134
163
65

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

skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT ( col1 ) / + col1 AS col2 FROM tab1 AS cor0
----
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-350
SELECT ALL CAST ( col0 AS INTEGER ) col0 FROM tab2
----
7
78
79

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

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

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL col2 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-354
SELECT DISTINCT + CAST( 73 AS SIGNED ) * col0 + 98 + cor0.col1 AS col0 FROM tab0 AS cor0
----
1936
2750
6686

skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT + CAST ( 73 AS INTEGER ) * col0 + 98 + cor0.col1 AS col0 FROM tab0 AS cor0
----
1936
2750
6686

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-356
SELECT 66 DIV col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-356
SELECT 66 / col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT - ( - ( tab0.col1 ) ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT - col1 * col1 + + col0 * + col2 AS col0 FROM tab1
----
-514
3548
7511

query I rowsort
SELECT DISTINCT - 24 + + 23 * + cor0.col1 FROM tab0 AS cor0
----
1954
2069
2207

query I rowsort
SELECT ALL + - col1 * 35 + col0 * + ( - 56 ) AS col2 FROM tab0 AS cor0
----
-4354
-5355
-8169

query I rowsort
SELECT DISTINCT - - 95 * col2 FROM tab1 AS cor0
----
5130
5415
9120

query I rowsort
SELECT ALL - + 28 FROM tab2 AS cor0
----
-28
-28
-28

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

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

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

query I rowsort
SELECT 77 AS col2 FROM tab0
----
77
77
77

query I rowsort
SELECT 71 * + col2 - col1 AS col0 FROM tab1 AS cor0
----
3808
4037
6803

onlyif mysql # use DIV operator for integer division
query I rowsort label-367
SELECT - col0 DIV - col1 + ( 59 * col0 ) AS col0 FROM tab0 AS cor0
----
1416
2065
5251

skipif mysql # not compatible
query I rowsort label-367
SELECT - col0 / - col1 + ( 59 * col0 ) AS col0 FROM tab0 AS cor0
----
1416
2065
5251

query I rowsort
SELECT + col1 + col2 * - col1 * - col0 AS col1 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
17
31
59

query I rowsort
SELECT DISTINCT + + 28 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
28

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

query I rowsort
SELECT + col2 * - 48 + col0 * col1 + col1 AS col1 FROM tab2 AS cor0
----
-1048
-464
3413

onlyif mysql # use DIV operator for integer division
query I rowsort label-373
SELECT + tab2.col0 DIV col0 + tab2.col2 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-373
SELECT + tab2.col0 / col0 + tab2.col2 FROM tab2
----
27
28
39

query I rowsort
SELECT 43 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT col0 * 88 + + 2 AS col1 FROM tab1
----
266
5634
7042

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

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

query I rowsort
SELECT col1 + 76 AS col1 FROM tab2 AS cor0
----
107
135
93

query I rowsort
SELECT ALL + + 52 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-380
SELECT - CAST( 2 AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387

skipif mysql # not compatible
query I rowsort label-380
SELECT - CAST ( 2 AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387

query I rowsort
SELECT DISTINCT + 16 + col1 * - 30 AS col1 FROM tab2
----
-1754
-494
-914

query I rowsort
SELECT DISTINCT col2 * + tab0.col0 + + col2 * - ( col0 ) * + 15 FROM tab0
----
-102172
-11088
-490

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

query I rowsort
SELECT DISTINCT - - 17 * - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-137683
-35088
-57715

query I rowsort
SELECT ( col2 ) * 47 + - col2 FROM tab2 AS cor0
----
1196
1242
1748

query I rowsort
SELECT - 61 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-87
-88
-99

query I rowsort
SELECT + col1 + + 62 FROM tab1 AS cor0
----
72
75
88

query I rowsort
SELECT DISTINCT - - col0 * ( col0 ) * col0 + - col2 - col1 AS col0 FROM tab1 AS cor0
----
-53
262077
511891

query I rowsort
SELECT - - cor0.col2 + - 36 FROM tab0 AS cor0
----
-3
-35
46

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * + col1 - col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1054
-1989
-6136

query I rowsort
SELECT cor0.col2 + 87 * + col1 AS col2 FROM tab1 AS cor0
----
1227
2316
927

query I rowsort
SELECT - col1 + 6 FROM tab0 cor0
----
-80
-85
-91

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

query I rowsort
SELECT + col2 * - col2 + + col0 * + col0 AS col1 FROM tab1
----
-2816
-2907
847

query I rowsort
SELECT 6 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT ALL - cor0.col1 * col1 + ( col0 ) + - col1 AS col1 FROM tab2 AS cor0
----
-227
-3462
-985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 + col2 col1 FROM tab2 AS cor0
----
101
102
113

query I rowsort
SELECT DISTINCT - 23 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-23

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-403
SELECT + 29 DIV col0 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-403
SELECT + 29 / col0 AS col0 FROM tab0
----
0
0
1

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

query I rowsort
SELECT DISTINCT - ( col0 ) * col0 - col1 * + col2 AS col0 FROM tab0
----
-1322
-15383
-3414

query I rowsort
SELECT - col2 * + col0 + - 88 FROM tab0 cor0
----
-123
-7386
-880

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-408
SELECT DISTINCT + col0 * + col0 + + 56 DIV - col0 FROM tab0 AS cor0
----
1224
574
7921

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT + col0 * + col0 + + 56 / - col0 FROM tab0 AS cor0
----
1224
574
7921

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

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

query I rowsort
SELECT DISTINCT 62 * col1 + 5 FROM tab2 AS cor0
----
1059
1927
3663

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

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

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT + col1 + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT - col2 * 91 FROM tab2
----
-2366
-2457
-3458

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 + ( col0 ) col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL 52 + + 39 FROM tab2, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

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

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

query I rowsort
SELECT + cor0.col0 * 47 FROM tab0 AS cor0
----
1128
1645
4183

query I rowsort
SELECT DISTINCT + 66 * 26 - col1 * + 48 AS col0 FROM tab2 cor0
----
-1116
228
900

query I rowsort
SELECT DISTINCT + 91 + + 27 * - col0 AS col0 FROM tab2 AS cor0
----
-2015
-2042
-98

query I rowsort
SELECT - cor0.col0 * + 22 AS col1 FROM tab1 AS cor0
----
-1408
-1760
-66

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 35 AS col1 FROM tab1
----
-35

query I rowsort
SELECT ALL + 82 AS col2 FROM tab2 cor0
----
82
82
82

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

query I rowsort
SELECT DISTINCT - + cor0.col1 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT ALL + col0 + 48 AS col2 FROM tab1 AS cor0
----
112
128
51

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

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

query I rowsort
SELECT ALL - col0 * - col1 + + cor0.col0 * + col0 FROM tab2 AS cor0
----
10686
266
7584

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

query I rowsort
SELECT ALL - - col2 * + 35 + col2 FROM tab1 AS cor0
----
1944
2052
3456

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

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

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

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT col2 / col0 - + col0 AS col2 FROM tab0 AS cor0
----
-23
-35
-89

query I rowsort
SELECT + 74 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
2102
263
3076

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

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

query I rowsort
SELECT col0 * col2 - col0 FROM tab1
----
159
3584
7600

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

query I rowsort
SELECT - 77 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT DISTINCT + tab2.col0 * col0 * - col0 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT ALL ( + 79 + col0 ) FROM tab0
----
103
114
168

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

query I rowsort
SELECT ALL + cor0.col1 * 13 FROM tab1 AS cor0
----
130
169
338

onlyif mysql # use DIV operator for integer division
query I rowsort label-451
SELECT DISTINCT + + col1 * - 52 + ( col0 ) DIV - col1 AS col1 FROM tab2 AS cor0
----
-1612
-3069
-888

skipif mysql # not compatible
query I rowsort label-451
SELECT DISTINCT + + col1 * - 52 + ( col0 ) / - col1 AS col1 FROM tab2 AS cor0
----
-1612
-3069
-888

onlyif mysql # use DIV operator for integer division
query I rowsort label-452
SELECT - col0 * col2 DIV 5 - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1549
-58
-739

skipif mysql # not compatible
query I rowsort label-452
SELECT - col0 * col2 / 5 - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1549
-58
-739

query I rowsort
SELECT ALL - cor0.col2 * + 70 + - cor0.col1 FROM tab0 AS cor0
----
-167
-2396
-5831

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-457
SELECT ALL - col2 * - CAST( + col1 AS SIGNED ) + col1 DIV col1 FROM tab0 AS cor0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL - col2 * - CAST ( + col1 AS INTEGER ) + col1 / col1 FROM tab0 AS cor0
----
2839
7463
98

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + col2 * col1 col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-464
SELECT DISTINCT tab0.col2 DIV col0 + col2 + + col2 * - col2 FROM tab0
----
-1055
-6642
0

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT tab0.col2 / col0 + col2 + + col2 * - col2 FROM tab0
----
-1055
-6642
0

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

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

query I rowsort
SELECT DISTINCT - - col1 * + 21 AS col0 FROM tab1 AS cor0
----
210
273
546

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

query I rowsort
SELECT ALL + + col2 * 41 FROM tab2 AS cor0
----
1066
1107
1558

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

query I rowsort
SELECT ALL col1 + - ( 22 ) FROM tab0
----
64
69
75

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

query I rowsort
SELECT 62 AS col0 FROM tab0
----
62
62
62

query I rowsort
SELECT + col1 * col0 + - col2 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
1226
183
4498

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

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

query I rowsort
SELECT ALL col2 + col2 * col1 * cor0.col1 FROM tab2 AS cor0
----
11020
25974
90532

query I rowsort
SELECT + 40 * + col2 AS col2 FROM tab2
----
1040
1080
1520

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + cor0.col1 - CAST ( + cor0.col0 AS REAL ) * - cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190

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

query I rowsort
SELECT col0 + + 27 * - 62 FROM tab1 AS cor0
----
-1594
-1610
-1671

query I rowsort
SELECT col2 + + col0 AS col1 FROM tab0 AS cor0
----
171
36
57

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-486
SELECT + col2 + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-486
SELECT + col2 + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - col1 * - 23 FROM tab2 AS cor0
----
1357
391
713

query I rowsort
SELECT + ( 35 ) * col1 * + 42 FROM tab1
----
14700
19110
38220

query I rowsort
SELECT ALL - - col0 * 23 FROM tab0 AS cor0
----
2047
552
805

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-491
SELECT DISTINCT - cor0.col0 * col0 DIV - col1 FROM tab1 AS cor0
----
0
409
492

skipif mysql # not compatible
query I rowsort label-491
SELECT DISTINCT - cor0.col0 * col0 / - col1 FROM tab1 AS cor0
----
0
409
492

query I rowsort
SELECT - + 60 * + col0 AS col0 FROM tab2 AS cor0
----
-420
-4680
-4740

query I rowsort
SELECT - ( col2 ) + - col0 + + col1 AS col1 FROM tab1 AS cor0
----
-111
-163
-31

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 + + 12 AS col2 FROM tab2 AS cor0
----
19
90
91

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

query I rowsort
SELECT ALL + 15 * 45 FROM tab1 AS cor0
----
675
675
675

query I rowsort
SELECT + - 25 + - cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1368
-242
-4627

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

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

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

query I rowsort
SELECT DISTINCT - cor0.col1 * 49 * + col1 FROM tab2 cor0
----
-14161
-170569
-47089

query I rowsort
SELECT ( - 4 ) FROM tab1 AS cor0
----
-4
-4
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-506
SELECT ALL 41 DIV col1 col1 FROM tab2 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-506
SELECT ALL 41 / col1 col1 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT ALL + + 97 + + col2 FROM tab1 AS cor0
----
151
154
193

query I rowsort
SELECT 9 + + cor0.col1 * 54 FROM tab0 cor0
----
4653
4923
5247

query I rowsort
SELECT DISTINCT - - 1 * col2 + ( col0 ) * + cor0.col1 - + 12 AS col2 FROM tab1 AS cor0
----
1124
120
685

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

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

query I rowsort
SELECT ALL + 89 + col2 * - col1 FROM tab2
----
-1445
-557
-748

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

query I rowsort
SELECT + col0 + + cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT 47 + col2 - col0 * - col0 AS col1 FROM tab1 AS cor0
----
110
4200
6543

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

query I rowsort
SELECT + 52 + - cor0.col2 FROM tab1 cor0
----
-2
-44
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 * + col0 + col2 - + cor0.col2 * col1 col0 FROM tab0 AS cor0
----
-10406
-1286
-3621

query I rowsort
SELECT - 8 FROM tab1
----
-8
-8
-8

query I rowsort
SELECT + 24 * - col0 FROM tab2 AS cor0
----
-168
-1872
-1896

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

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

query I rowsort
SELECT ( - 41 ) * col1 FROM tab0 AS cor0
----
-3526
-3731
-3977

query I rowsort
SELECT ALL - - 79 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-527
SELECT DISTINCT tab2.col2 DIV + col0 FROM tab2
----
0
3

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT tab2.col2 / + col0 FROM tab2
----
0
3

query I rowsort
SELECT + 31 * - col2 FROM tab0
----
-1023
-2542
-31

query I rowsort
SELECT ALL + 45 AS col2 FROM tab0
----
45
45
45

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

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

skipif mysql # not compatible
query I rowsort label-532
SELECT 58 / + ( - col1 + + 17 * col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0

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

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

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

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL ( + col1 ) / cor0.col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - ( - 9 ) FROM tab0 cor0
----
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-537
SELECT DISTINCT - 83 * ( col1 * 80 ) + - 61 DIV + col2 FROM tab0 AS cor0
----
-571041
-604240
-644141

skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT - 83 * ( col1 * 80 ) + - 61 / + col2 FROM tab0 AS cor0
----
-571041
-604240
-644141

query I rowsort
SELECT + + cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

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

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

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

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL + - CAST ( NULL AS INTEGER ) + 94 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 8 + - cor0.col2 * 80 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 4cf6a927c3fbeee73aca4d0e9f0c3239

query I rowsort
SELECT ALL 27 AS col0 FROM tab2
----
27
27
27

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

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

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

query I rowsort
SELECT ALL + 40 AS col2 FROM tab2
----
40
40
40

query I rowsort
SELECT - 42 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27

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

query I rowsort
SELECT DISTINCT 63 FROM tab0
----
63

query I rowsort
SELECT - col1 + tab1.col0 AS col0 FROM tab1
----
-23
54
67

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

query I rowsort
SELECT ALL - - col1 * - cor0.col2 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - col2 col2 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-553
SELECT ALL - col2 * + CAST( - 86 AS SIGNED ) + - col0 + + 83 FROM tab2 AS cor0
----
2241
2398
3272

skipif mysql # not compatible
query I rowsort label-553
SELECT ALL - col2 * + CAST ( - 86 AS INTEGER ) + - col0 + + 83 FROM tab2 AS cor0
----
2241
2398
3272

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

skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT col0 + CAST ( col2 * col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT col0 + ( 64 ) AS col1 FROM tab2 AS cor0
----
142
143
71

query I rowsort
SELECT + col0 + + 46 AS col0 FROM tab1
----
110
126
49

query I rowsort
SELECT col2 + 76 * col2 AS col0 FROM tab0
----
2541
6314
77

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

query I rowsort
SELECT - col1 * - ( - col1 ) FROM tab1
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-560
SELECT col1 DIV - 85 + - col2 * col2 AS col2 FROM tab1
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-560
SELECT col1 / - 85 + - col2 * col2 AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT + ( 12 ) FROM tab1, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-563
SELECT ALL col2 + + tab0.col0 DIV + col0 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL col2 + + tab0.col0 / + col0 FROM tab0
----
2
34
83

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

query I rowsort
SELECT ALL col1 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
20
26
52

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

query I rowsort
SELECT DISTINCT - + col0 * + 53 FROM tab1 AS cor0
----
-159
-3392
-4240

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

query I rowsort
SELECT - 6 + + col0 * - col0 FROM tab2 AS cor0
----
-55
-6090
-6247

query I rowsort
SELECT col2 + 13 AS col1 FROM tab2 AS cor0
----
39
40
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-571
SELECT ALL col0 * + col1 DIV - col1 - col0 FROM tab2 AS cor0
----
-14
-156
-158

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL col0 * + col1 / - col1 - col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT + col2 * - 37 FROM tab2 AS cor0
----
-1406
-962
-999

query I rowsort
SELECT ALL - + 58 + - col1 FROM tab2 AS cor0
----
-117
-75
-89

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + 54 col2 FROM tab2 AS cor0
----
-24
-25
47

query I rowsort
SELECT ALL - col0 * + 85 + col0 AS col1 FROM tab1 AS cor0
----
-252
-5376
-6720

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-579
SELECT ALL - col1 DIV - col1 + + col2 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL - col1 / - col1 + + col2 FROM tab2
----
27
28
39

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

query I rowsort
SELECT ALL + ( col0 ) + col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1612
725
844

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 - - col1 col2 FROM tab0 AS cor0
----
148
153
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col0 + col0 + 8 col2 FROM tab2 AS cor0
----
-174
-1942
-2915

onlyif mysql # use DIV operator for integer division
query I rowsort label-586
SELECT - col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-586
SELECT - col1 / col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * cor0.col2 + + 89 * ( + cor0.col1 ) col2 FROM tab1 AS cor0
----
2476
4538
8837

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL col2 * - col2 * + col1 + cor0.col2 * col1 AS col1 FROM tab1 cor0
----
-118560
-31920
-74412

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

query I rowsort
SELECT DISTINCT + 3 * col1 * 71 FROM tab1 AS cor0
----
2130
2769
5538

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

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

skipif mysql # not compatible
query I rowsort label-595
SELECT + col0 / cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 64 * - ( - col1 ) AS col2 FROM tab2
----
-1088
-1984
-3776

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-600
SELECT ALL + col1 DIV - cor0.col1 + col2 * col0 FROM tab0 cor0
----
34
7297
791

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL + col1 / - cor0.col1 + col2 * col0 FROM tab0 cor0
----
34
7297
791

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

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

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

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

query I rowsort
SELECT DISTINCT 31 - tab1.col0 * + ( + col2 ) FROM tab1
----
-131
-3617
-7649

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

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

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

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

query I rowsort
SELECT - + 82 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

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

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

query I rowsort
SELECT col1 * tab0.col0 * col1 + - tab0.col2 FROM tab0
----
177471
329314
736927

onlyif mysql # use DIV operator for integer division
query I rowsort label-612
SELECT + col2 + tab2.col1 DIV col1 + - tab2.col0 FROM tab2
----
-40
-51
21

skipif mysql # not compatible
query I rowsort label-612
SELECT + col2 + tab2.col1 / col1 + - tab2.col0 FROM tab2
----
-40
-51
21

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

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

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

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

query I rowsort
SELECT - col2 * + col2 + col1 * col0 AS col0 FROM tab2
----
-101
-512
3926

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT col1 NOT IN ( - col2 )
----

query I rowsort
SELECT col1 * + tab0.col1 * col0 FROM tab0
----
177504
329315
737009

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IN ( col2 )
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-622
SELECT + col1 + col2 DIV - col1 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-622
SELECT + col1 + col2 / - col1 FROM tab2 AS cor0
----
15
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-623
SELECT + - col1 DIV col1 + cor0.col1 * col1 * col2 FROM tab0 AS cor0
----
244067
679041
9408

skipif mysql # not compatible
query I rowsort label-623
SELECT + - col1 / col1 + cor0.col1 * col1 * col2 FROM tab0 AS cor0
----
244067
679041
9408

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-625
SELECT col0 * col2 DIV - col2 + + col2 FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-625
SELECT col0 * col2 / - col2 + + col2 FROM tab1 AS cor0
----
-7
16
51

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 + - cor0.col2 + - col1 * - cor0.col0 col2 FROM tab2 cor0
----
-647
3042
659

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 * - col2 col2 FROM tab1 AS cor0
----
-432
-456
-768

query I rowsort
SELECT DISTINCT - - 81 * col2 - + cor0.col1 AS col2 FROM tab0 cor0
----
-16
2587
6551

query I rowsort
SELECT + + 18 + col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
1361
235
4620

query I rowsort
SELECT DISTINCT - 72 * + col1 + col1 + - col0 AS col2 FROM tab1 AS cor0
----
-1003
-1849
-774

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

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

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

query I rowsort
SELECT + col0 * - col0 + + col1 FROM tab2 cor0
----
-18
-6025
-6224

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

query I rowsort
SELECT ALL - - col2 * cor0.col0 + col2 * col0 FROM tab2 AS cor0
----
378
4056
6004

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

query I rowsort
SELECT + col2 + - col1 + tab0.col1 AS col2 FROM tab0
----
1
33
82

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

query I rowsort
SELECT + col1 * col1 + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-357
124
1947

onlyif mysql # use DIV operator for integer division
query I rowsort label-646
SELECT - tab1.col2 DIV + col2 AS col0 FROM tab1 WHERE + col2 * - col2 NOT IN ( + col2 )
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-646
SELECT - tab1.col2 / + col2 AS col0 FROM tab1 WHERE + col2 * - col2 NOT IN ( + col2 )
----
-1
-1
-1

query I rowsort
SELECT col2 + col1 - + col1 FROM tab2
----
26
27
38

query III rowsort
SELECT * FROM tab1 WHERE - col1 > NULL
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT col2 * + col0 < + col0 * col2
----
-7
-78
-79

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

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

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

query I rowsort
SELECT ALL col1 * + tab2.col2 + col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT + col2 + - col1 + + tab1.col1 * col2 FROM tab1
----
1331
1432
617

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-659
SELECT 0 - col2 * CAST( 57 * - col1 AS SIGNED ) FROM tab1 AS cor0
----
32490
71136
80028

skipif mysql # not compatible
query I rowsort label-659
SELECT 0 - col2 * CAST ( 57 * - col1 AS INTEGER ) FROM tab1 AS cor0
----
32490
71136
80028

query I rowsort
SELECT col2 * col0 + col0 AS col1 FROM tab0
----
70
7387
816

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

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

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

query I rowsort
SELECT col0 - + col2 * - col0 FROM tab1
----
165
3712
7760

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 IN ( cor0.col2 / - cor0.col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

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

skipif mysql # not compatible
query I rowsort label-665
SELECT + col0 / - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL IN ( tab1.col0 )
----

query I rowsort
SELECT col1 * col1 * + col0 + - tab0.col2 * col1 * col2 FROM tab0
----
125125
329218
83850

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

query I rowsort
SELECT tab2.col0 - col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + + col2 AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL tab1.col0 FROM tab1 WHERE NOT tab1.col1 IN ( - col2 )
----
3
64
80

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 col1 FROM tab2 WHERE NOT col2 * - col1 NOT IN ( tab2.col1 )
----

query I rowsort
SELECT tab1.col1 + col2 * + col0 AS col0 FROM tab1 WHERE NOT NULL < NULL
----

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-680
SELECT col1 + col0 DIV CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-680
SELECT col1 + col0 / CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL + + 32 FROM tab2 AS cor0
----
32
32
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-682
SELECT - 49 + + col0 DIV col0 col1 FROM tab1 AS cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-682
SELECT - 49 + + col0 / col0 col1 FROM tab1 AS cor0
----
-48
-48
-48

query I rowsort
SELECT ALL - + 71 FROM tab2 AS cor0
----
-71
-71
-71

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

query I rowsort
SELECT DISTINCT + - col2 * + col2 + - 50 + - col0 AS col2 FROM tab0 AS cor0
----
-1163
-6863
-86

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

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

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

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

query I rowsort
SELECT - col2 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864

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

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

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

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

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

query I rowsort
SELECT ALL - + col1 + col0 * col0 * col1 FROM tab0 AS cor0
----
118728
49450
720720

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

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

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

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

query I rowsort
SELECT ALL - col0 + - col2 + - ( - ( + col2 ) + ( - col0 ) ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT + 10 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ALL - 64 * - 24 AS col0 FROM tab1 AS cor0
----
1536
1536
1536

query I rowsort
SELECT col2 * + 5 - + col1 FROM tab1 AS cor0
----
244
275
467

query I rowsort
SELECT DISTINCT - - 18 + col2 * + col0 AS col2 FROM tab2 AS cor0
----
2046
207
3020

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

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

query I rowsort
SELECT - 41 + - col2 FROM tab1 cor0
----
-137
-95
-98

query I rowsort
SELECT ALL - - 16 + - cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf1b4a7b9cb629780df4b06df43b2f0

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

query I rowsort
SELECT 28 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 423726553d33e100432ebde49ddd31b5

onlyif mysql # use DIV operator for integer division
query I rowsort label-712
SELECT - + col1 - - cor0.col0 DIV cor0.col2 FROM tab1 AS cor0
----
-13
-26
-9

skipif mysql # not compatible
query I rowsort label-712
SELECT - + col1 - - cor0.col0 / cor0.col2 FROM tab1 AS cor0
----
-13
-26
-9

query I rowsort
SELECT ALL - col1 - tab1.col1 FROM tab1
----
-20
-26
-52

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

query I rowsort
SELECT - ( col2 + - col0 ) * - ( 19 ) AS col1 FROM tab0
----
-133
-646
171

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

query I rowsort
SELECT ALL 69 * - 35 + - col2 * + ( - col1 * col2 ) AS col2 FROM tab1
----
117393
30075
73401

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-718
SELECT DISTINCT CAST( col0 AS SIGNED ) * tab0.col2 + - col0 * tab0.col0 + tab0.col0 AS col0 FROM tab0
----
-1155
-534
240

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT CAST ( col0 AS INTEGER ) * tab0.col2 + - col0 * tab0.col0 + tab0.col0 AS col0 FROM tab0
----
-1155
-534
240

query I rowsort
SELECT col0 - + col1 * col1 AS col2 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT - 50 - - col1 AS col2 FROM tab0 cor0
----
36
41
47

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-723
SELECT ALL + col1 + cor0.col0 * + ( 78 ) + + cor0.col2 DIV - 69 FROM tab1 AS cor0
----
260
5002
6252

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL + col1 + cor0.col0 * + ( 78 ) + + cor0.col2 / - 69 FROM tab1 AS cor0
----
260
5002
6252

query I rowsort
SELECT + 21 * - col0 + - col2 + ( + col1 * col1 ) FROM tab0 AS cor0
----
6330
6859
8673

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

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

query I rowsort
SELECT DISTINCT + col0 + col0 + - col1 FROM tab2
----
-17
141
97

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

query I rowsort
SELECT col1 * tab1.col1 * - col2 + 71 * - tab1.col0 * col1 FROM tab1
----
-42042
-51140
-90064

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

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

query I rowsort
SELECT - col1 + tab1.col2 * 13 FROM tab1
----
1235
676
731

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

query I rowsort
SELECT col0 + - col2 * 95 FROM tab0 cor0
----
-3111
-60
-7701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * col1 col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT - col1 + 26 AS col2 FROM tab0
----
-60
-65
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-736
SELECT - col0 - ( - col1 ) DIV - col1 FROM tab1
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-736
SELECT - col0 - ( - col1 ) / - col1 FROM tab1
----
-4
-65
-81

query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 * + 80 AS col1 FROM tab0 AS cor0
----
-6794
-7189
-7663

query I rowsort
SELECT + col0 * ( col2 + col1 ) FROM tab0 AS cor0
----
15397
2856
3430

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

query I rowsort
SELECT ALL + 57 + - col2 + + col1 AS col1 FROM tab0 AS cor0
----
110
153
66

query I rowsort
SELECT DISTINCT + - col2 * + ( - col2 * - ( - col2 ) ) + col2 AS col0 FROM tab1 AS cor0
----
157518
185250
884832

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

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

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

query I rowsort
SELECT 48 AS col2 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT ALL - 62 AS col2 FROM tab0
----
-62
-62
-62

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

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

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

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

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

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

query I rowsort
SELECT ALL + col0 * 52 AS col0 FROM tab1 AS cor0
----
156
3328
4160

query I rowsort
SELECT col2 * col0 + 95 * tab2.col2 FROM tab2
----
2754
4498
6612

query I rowsort
SELECT DISTINCT + col0 + + col0 + + cor0.col2 * + col1 FROM tab1 AS cor0
----
1408
1410
698

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

query I rowsort
SELECT + cor0.col0 + 92 * col1 AS col2 FROM tab0 AS cor0
----
7936
8461
8959

onlyif mysql # use DIV operator for integer division
query I rowsort label-756
SELECT DISTINCT col0 * - 85 * col0 + + col1 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
-104124
-48959
-673284

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT col0 * - 85 * col0 + + col1 / cor0.col1 AS col1 FROM tab0 AS cor0
----
-104124
-48959
-673284

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-757
SELECT DISTINCT CAST( col0 AS SIGNED ) * - col1 * 75 + cor0.col2 + col1 FROM tab2 AS cor0
----
-100670
-16217
-345065

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT CAST ( col0 AS INTEGER ) * - col1 * 75 + cor0.col2 + col1 FROM tab2 AS cor0
----
-100670
-16217
-345065

query I rowsort
SELECT ALL + 48 - - col0 AS col2 FROM tab0 AS cor0
----
137
72
83

query I rowsort
SELECT ALL - 52 - + cor0.col2 FROM tab2 AS cor0
----
-78
-79
-90

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

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

query I rowsort
SELECT - col0 + - col1 * cor0.col2 FROM tab2 AS cor0
----
-1612
-725
-844

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

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

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

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

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

query I rowsort
SELECT 34 + - col1 AS col1 FROM tab0 AS cor0
----
-52
-57
-63

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

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

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

query I rowsort
SELECT - ( + col1 ) * - cor0.col0 * col2 - 44 FROM tab1 AS cor0
----
36436
4168
99796

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

query I rowsort
SELECT - ( 8 ) FROM tab2 AS cor0
----
-8
-8
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-772
SELECT ALL col0 DIV 29 AS col1 FROM tab1
----
0
2
2

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL col0 / 29 AS col1 FROM tab1
----
0
2
2

query I rowsort
SELECT col1 * ( - 4 + + col2 ) * + ( - col2 ) FROM tab0
----
-582036
-82302
291

query I rowsort
SELECT - 17 + 31 FROM tab1, tab0 cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

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

query I rowsort
SELECT + + 33 + col1 * - col1 FROM tab2 AS cor0
----
-256
-3448
-928

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-779
SELECT 73 DIV tab0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-779
SELECT 73 / tab0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL ( 94 ) FROM tab2
----
94
94
94

query I rowsort
SELECT - 98 + col1 AS col2 FROM tab1
----
-72
-85
-88

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

query I rowsort
SELECT DISTINCT + + col1 * - col2 * col2 AS col2 FROM tab1 cor0
----
-119808
-32490
-75816

query I rowsort
SELECT col0 * col0 + 30 FROM tab1 AS cor0
----
39
4126
6430

onlyif mysql # use DIV operator for integer division
query I rowsort label-785
SELECT ALL - - 85 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-12

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL - - 85 / - col0 FROM tab2 AS cor0
----
-1
-1
-12

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 75 + - col0 col1 FROM tab0 AS cor0
----
-14
40
51

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

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

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

query I rowsort
SELECT ALL + - col1 + - 98 AS col0 FROM tab1 AS cor0
----
-108
-111
-124

query I rowsort
SELECT DISTINCT - 67 + + col0 FROM tab2
----
-60
11
12

query I rowsort
SELECT + col0 * col2 - 97 * col0 AS col1 FROM tab0
----
-1335
-1536
-3360

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-797
SELECT + col1 * - CAST( - cor0.col0 AS SIGNED ) + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190

skipif mysql # not compatible
query I rowsort label-797
SELECT + col1 * - CAST ( - cor0.col0 AS INTEGER ) + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT col1 * - ( - col0 ) * ( - 58 ) FROM tab1
----
-37120
-4524
-60320

query I rowsort
SELECT DISTINCT + 6 AS col1 FROM tab1, tab2 AS cor0
----
6

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

query I rowsort
SELECT 38 * - col2 AS col0 FROM tab2
----
-1026
-1444
-988

query I rowsort
SELECT col2 - 3 * + col0 AS col1 FROM tab0 AS cor0
----
-104
-185
-39

query I rowsort
SELECT - + 60 * col1 + - col0 + - col1 * + 94 * col1 AS col0 FROM tab2 AS cor0
----
-28265
-330832
-92201

query I rowsort
SELECT - 53 * ( - col1 ) FROM tab0
----
4558
4823
5141

query I rowsort
SELECT 16 AS col2 FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT + col1 + - col0 * + col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT 12 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT ALL + col2 + + col1 * + col1 FROM tab2
----
327
3507
988

query I rowsort
SELECT DISTINCT col0 * - col0 - col2 FROM tab0
----
-1226
-609
-8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-810
SELECT - col0 DIV - col1 - - 47 AS col1 FROM tab0
----
47
47
47

skipif mysql # not compatible
query I rowsort label-810
SELECT - col0 / - col1 - - 47 AS col1 FROM tab0
----
47
47
47

query I rowsort
SELECT + cor0.col0 + 0 AS col2 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + - ( cor0.col2 ) * + cor0.col0 col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + 2 FROM tab0, tab0 cor0
----
2

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

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

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

query I rowsort
SELECT ALL - ( - col0 ) * col0 FROM tab1 AS cor0
----
4096
6400
9

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

query I rowsort
SELECT ALL + 42 - - 88 AS col1 FROM tab1 AS cor0
----
130
130
130

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

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

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

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

query I rowsort
SELECT DISTINCT + - ( col1 ) * - cor0.col0 + col2 * col1 FROM tab2 cor0
----
1054
1989
6136

query I rowsort
SELECT DISTINCT + ( tab1.col0 ) FROM tab1, tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT 52 * - col1 - - col1 * + ( 49 ) FROM tab1 AS cor0
----
-30
-39
-78

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 3 col0 FROM tab1 AS cor0
----
30
39
78

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-828
SELECT col1 * - col1 + col1 DIV + 59 AS col1 FROM tab0 cor0
----
-7395
-8280
-9408

skipif mysql # not compatible
query I rowsort label-828
SELECT col1 * - col1 + col1 / + 59 AS col1 FROM tab0 cor0
----
-7395
-8280
-9408

query I rowsort
SELECT 88 + col0 AS col2 FROM tab2 AS cor0
----
166
167
95

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

query I rowsort
SELECT 5 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( + 89 ) * col2 col1 FROM tab1 AS cor0
----
14418
324672
683520

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

query I rowsort
SELECT 36 FROM tab1
----
36
36
36

query I rowsort
SELECT ALL - 82 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0

query I rowsort
SELECT - col0 * col0 - ( cor0.col2 + + col0 ) * 33 FROM tab2 AS cor0
----
-10102
-1171
-9516

query I rowsort
SELECT - - col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
54
76

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

query I rowsort
SELECT ALL - col2 * col2 * cor0.col2 FROM tab1 AS cor0
----
-157464
-185193
-884736

query I rowsort
SELECT - + col0 * ( 22 ) + col1 * 7 * 19 FROM tab2 AS cor0
----
3969
523
6131

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-848
SELECT - - col0 * ( + col1 ) DIV - col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-848
SELECT - - col0 * ( + col1 ) / - col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - - col0 * 84 AS col1 FROM tab1 AS cor0
----
252
5376
6720

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + 15 * - col2 col0 FROM tab0 cor0
----
-1139
-409
82

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 41 - 10 * tab1.col0 col0 FROM tab1
----
-663
-839
8

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

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

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

query I rowsort
SELECT + 52 * col1 FROM tab1 AS cor0
----
1352
520
676

query I rowsort
SELECT ALL col0 * + col0 - + col1 * - col0 AS col1 FROM tab2
----
10686
266
7584

query I rowsort
SELECT col2 + ( col2 ) * col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT DISTINCT - col1 * ( col1 + col1 ) FROM tab1 AS cor0
----
-1352
-200
-338

query I rowsort
SELECT - 6 FROM tab1, tab2 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

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

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

query I rowsort
SELECT ALL - 44 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-3784
-4004
-4268

query I rowsort
SELECT - - 97 * cor0.col0 FROM tab0 AS cor0
----
2328
3395
8633

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

query I rowsort
SELECT DISTINCT + ( 71 ) * - col0 + + col2 AS col1 FROM tab1
----
-159
-4487
-5584

query I rowsort
SELECT ALL - 35 + col0 FROM tab2
----
-28
43
44

query I rowsort
SELECT ( - col0 + col1 ) * tab0.col1 FROM tab0
----
182
5332
6014

query I rowsort
SELECT col1 * 80 + col0 FROM tab0
----
6904
7369
7795

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-871
SELECT DISTINCT col0 + 55 * - col0 DIV col0 AS col1 FROM tab0
----
-20
-31
34

skipif mysql # not compatible
query I rowsort label-871
SELECT DISTINCT col0 + 55 * - col0 / col0 AS col1 FROM tab0
----
-20
-31
34

query I rowsort
SELECT + tab2.col0 * + 13 AS col2 FROM tab2
----
1014
1027
91

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

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

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

query I rowsort
SELECT col2 * col0 * col0 AS col2 FROM tab0 AS cor0
----
1225
19008
649522

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-877
SELECT ALL + - ( + cor0.col1 ) DIV ( col1 ) + col0 AS col0 FROM tab2 AS cor0
----
6
77
78

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

query I rowsort
SELECT + + col1 * - col1 + + 59 + - col0 * col1 AS col2 FROM tab1 AS cor0
----
-1150
-681
-695

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

query I rowsort
SELECT + + col1 * + col1 + - col0 AS col2 FROM tab1 AS cor0
----
36
673
89

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 * col0 + ( + col2 ) col2 FROM tab2 cor0
----
-225
-2782
-2806

query I rowsort
SELECT DISTINCT + + col2 + + col2 * col1 - + col0 * col1 FROM tab0 AS cor0
----
-3297
-555
807

query I rowsort
SELECT ( 9 ) FROM tab1
----
9
9
9

query I rowsort
SELECT ALL + 15 AS col0 FROM tab2
----
15
15
15

query I rowsort
SELECT 70 * + col1 AS col2 FROM tab2 AS cor0
----
1190
2170
4130

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 66 + - cor0.col1 col0 FROM tab0 AS cor0
----
-152
-157
-163

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

query I rowsort
SELECT DISTINCT + 25 FROM tab0
----
25

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

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

skipif mysql # not compatible
query I rowsort label-894
SELECT - ( - col2 ) * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + col2 * + col2 AS col1 FROM tab2 AS cor0
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 78 ) col1 FROM tab0
----
78
78
78

query I rowsort
SELECT ALL + col1 * col1 AS col1 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-898
SELECT - col1 * cor0.col2 + - col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1533
-642
-837

skipif mysql # not compatible
query I rowsort label-898
SELECT - col1 * cor0.col2 + - col0 / - col1 AS col0 FROM tab2 AS cor0
----
-1533
-642
-837

query I rowsort
SELECT ALL + + col1 * - 65 FROM tab1 AS cor0
----
-1690
-650
-845

query I rowsort
SELECT DISTINCT cor0.col1 * + 85 FROM tab0 AS cor0
----
7310
7735
8245

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

query I rowsort
SELECT - + col2 + 81 AS col0 FROM tab2 AS cor0
----
43
54
55

query I rowsort
SELECT DISTINCT - + cor0.col1 * 62 AS col1 FROM tab1 AS cor0
----
-1612
-620
-806

query I rowsort
SELECT DISTINCT col2 + 9 * - cor0.col0 FROM tab1 AS cor0
----
-519
-624
27

query I rowsort
SELECT DISTINCT + 27 * col0 + col2 * - 53 AS col0 FROM tab2
----
-1242
119
728

query I rowsort
SELECT - ( col1 ) * - 56 FROM tab0
----
4816
5096
5432

query I rowsort
SELECT col2 * + col1 + + col0 * col0 * tab1.col2 AS col2 FROM tab1
----
1890
234042
615648

query I rowsort
SELECT - - col0 + col0 * - col1 + col0 FROM tab1 AS cor0
----
-512
-72
-880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-909
SELECT - CAST( NULL AS SIGNED ) * + 95 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-909
SELECT - CAST ( NULL AS INTEGER ) * + 95 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * 23 AS col0 FROM tab2 AS cor0
----
-161
-1794
-1817

query I rowsort
SELECT tab1.col0 * ( - tab1.col0 + + col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT - + col0 + col0 * + col1 AS col1 FROM tab1 AS cor0
----
576
75
960

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

query I rowsort
SELECT + ( 9 ) + col0 * 48 AS col1 FROM tab0 AS cor0
----
1161
1689
4281

query I rowsort
SELECT DISTINCT 86 + col1 AS col0 FROM tab1 AS cor0
----
112
96
99

query I rowsort
SELECT DISTINCT ( col1 ) AS col1 FROM tab1 cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-917
SELECT - col2 + + col1 + + col0 * ( col0 ) DIV + col1 FROM tab1 cor0
----
-28
362
409

skipif mysql # not compatible
query I rowsort label-917
SELECT - col2 + + col1 + + col0 * ( col0 ) / + col1 FROM tab1 cor0
----
-28
362
409

query I rowsort
SELECT + col2 * 12 * - col0 AS col2 FROM tab0 AS cor0
----
-420
-87576
-9504

query I rowsort
SELECT - col0 * col0 * + col2 + col0 AS col0 FROM tab0 AS cor0
----
-1190
-18984
-649433

onlyif mysql # use DIV operator for integer division
query I rowsort label-920
SELECT + 41 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
13

skipif mysql # not compatible
query I rowsort label-920
SELECT + 41 / cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
13

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

query I rowsort
SELECT + tab0.col1 + 85 * + 12 AS col1 FROM tab0
----
1106
1111
1117

query I rowsort
SELECT - col1 + - 84 AS col2 FROM tab0 AS cor0
----
-170
-175
-181

query I rowsort
SELECT ALL + col1 * col1 + + col1 AS col1 FROM tab1 AS cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 + + cor0.col0 col2 FROM tab0 AS cor0
----
119
54
65

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-927
SELECT - 15 / + col2 - 81 col1 FROM tab0 AS cor0
----
-81
-81
-96

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

query I rowsort
SELECT - col1 * ( + 31 + + col2 ) AS col2 FROM tab0
----
-10283
-3104
-5504

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

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

query I rowsort
SELECT col0 * 32 - + ( col2 + ( - 25 ) ) * col2 * - col1 AS col0 FROM tab0 AS cor0
----
-1208
23472
428182

query I rowsort
SELECT ALL - - cor0.col1 + col0 * + col0 AS col0 FROM tab2 AS cor0
----
6143
6258
80

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

query I rowsort
SELECT ALL - - cor0.col1 * + 99 FROM tab1 cor0
----
1287
2574
990

query I rowsort
SELECT - 32 AS col2 FROM tab0
----
-32
-32
-32

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

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

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

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

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

query I rowsort
SELECT 76 FROM tab2, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

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

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

query I rowsort
SELECT ALL - + cor0.col0 + 57 FROM tab2 AS cor0
----
-21
-22
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-946
SELECT ALL col2 DIV - 47 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL col2 / - 47 FROM tab1 AS cor0
----
-1
-1
-2

query I rowsort
SELECT DISTINCT - col0 + - 81 * + col0 FROM tab1 AS cor0
----
-246
-5248
-6560

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

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

query I rowsort
SELECT ALL col1 + 14 AS col2 FROM tab2
----
31
45
73

query I rowsort
SELECT - + col0 + - 92 * 5 FROM tab1 AS cor0
----
-463
-524
-540

query I rowsort
SELECT DISTINCT + - cor0.col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT col2 * ( col0 ) - - col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT tab0.col1 * - col2 * tab0.col2 AS col1 FROM tab0 WHERE NOT NULL = ( + col2 )
----

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

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

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

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

query I rowsort
SELECT - col0 + - col2 * col0 AS col0 FROM tab1
----
-165
-3712
-7760

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

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

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

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

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

query I rowsort
SELECT tab2.col0 + - col2 + + col2 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL + col1 * col2 * tab2.col2 FROM tab2
----
22599
24548
39884

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

query I rowsort
SELECT 82 * + col1 AS col0 FROM tab1 AS cor0
----
1066
2132
820

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

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

query I rowsort
SELECT ALL col2 * col2 + col2 * - col0 * col2 FROM tab1 AS cor0
----
-204687
-5832
-728064

onlyif mysql # use DIV operator for integer division
query I rowsort label-970
SELECT DISTINCT - col0 * col2 DIV 45 FROM tab1 AS cor0
----
-170
-3
-81

skipif mysql # not compatible
query I rowsort label-970
SELECT DISTINCT - col0 * col2 / 45 FROM tab1 AS cor0
----
-170
-3
-81

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

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

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

query I rowsort
SELECT ALL col0 + col0 * + 70 FROM tab2 AS cor0
----
497
5538
5609

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

query I rowsort
SELECT ( + col1 ) * 58 FROM tab0
----
4988
5278
5626

query I rowsort
SELECT ALL 64 + + col1 FROM tab2 AS cor0
----
123
81
95

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

query I rowsort
SELECT - 59 * + cor0.col2 FROM tab0 AS cor0
----
-1947
-4838
-59

query I rowsort
SELECT DISTINCT - - col2 * col2 + col0 AS col2 FROM tab0 AS cor0
----
1113
36
6813

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-982
SELECT ALL col0 + col2 * col0 + col0 DIV - col2 AS col1 FROM tab1 cor0
----
165
3711
7760

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL col0 + col2 * col0 + col0 / - col2 AS col1 FROM tab1 cor0
----
165
3711
7760

query I rowsort
SELECT + col1 + 71 FROM tab0 AS cor0
----
157
162
168

query I rowsort
SELECT + + col0 * - 69 AS col2 FROM tab2 AS cor0
----
-483
-5382
-5451

query I rowsort
SELECT DISTINCT col2 + - col1 * 83 FROM tab1 AS cor0
----
-2104
-773
-983

query I rowsort
SELECT ALL - 54 * - col2 AS col2 FROM tab0
----
1782
4428
54

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

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

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

query I rowsort
SELECT col0 * + col0 + col0 * col1 - cor0.col1 AS col1 FROM tab0 AS cor0
----
15929
2554
4523

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

query I rowsort
SELECT + col2 + + col0 + col0 * + ( + col2 ) FROM tab2 AS cor0
----
2132
223
3119

query I rowsort
SELECT ALL 57 AS col2 FROM tab2
----
57
57
57

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-995
SELECT ALL + 64 DIV - 85 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL + 64 / - 85 FROM tab2 AS cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * 21 col1 FROM tab1 AS cor0
----
1344
1680
63

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

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

query I rowsort
SELECT - ( 33 ) + + col1 AS col0 FROM tab2
----
-16
-2
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 * col0 * - col0 + 29 col2 FROM tab1
----
-108771
-124
-69603

query I rowsort
SELECT ALL col2 * - tab0.col2 + - col0 FROM tab0
----
-1113
-36
-6813

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

skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0, tab2, tab1 AS cor0
----
NULL

query I rowsort
SELECT - ( 89 ) + tab0.col2 * ( + col1 ) FROM tab0
----
2749
7373
8

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

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

query I rowsort
SELECT - + col1 + + col0 * col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT - 64 * + col2 + col2 * col2 AS col2 FROM tab2
----
-988
-988
-999

query I rowsort
SELECT DISTINCT + col2 * 88 AS col0 FROM tab1
----
4752
5016
8448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( - col1 ) ) + 65 col0 FROM tab0
----
-21
-26
-32

query I rowsort
SELECT - 52 * + col0 + col1 * 69 FROM tab0
----
1651
4686
4873

query I rowsort
SELECT ALL - 36 + + col2 AS col1 FROM tab1
----
18
21
60

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

query I rowsort
SELECT ALL - ( - col2 ) + - tab1.col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 * + col0 * + col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT 65 * col2 FROM tab2
----
1690
1755
2470

query I rowsort
SELECT 47 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL 31 AS col2 FROM tab1
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * col2 col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - 88 + col0 FROM tab0
----
-53
-64
1

query I rowsort
SELECT + col2 * 84 AS col2 FROM tab0
----
2772
6888
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 + col1 col0 FROM tab0
----
53
58
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1021
SELECT - CAST( col0 AS SIGNED ) * - col1 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-1021
SELECT - CAST ( col0 AS INTEGER ) * - col1 FROM tab1
----
1040
640
78

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

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

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

query I rowsort
SELECT ALL col0 * col1 + - col0 * + col0 FROM tab2 AS cor0
----
-1482
-4898
168

query I rowsort
SELECT - 78 + - col0 + col0 FROM tab0 cor0
----
-78
-78
-78

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

query I rowsort
SELECT ALL tab1.col0 + 67 FROM tab1
----
131
147
70

query I rowsort
SELECT DISTINCT + 69 * - col0 + col1 AS col0 FROM tab2
----
-452
-5323
-5434

onlyif mysql # use DIV operator for integer division
query I rowsort label-1030
SELECT - CAST( ( - col1 ) AS SIGNED ) DIV col1 + col1 * col0 AS col0 FROM tab2
----
1344
218
4603

skipif mysql # not compatible
query I rowsort label-1030
SELECT - CAST ( ( - col1 ) AS INTEGER ) / col1 + col1 * col0 AS col0 FROM tab2
----
1344
218
4603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col1 * - tab1.col1 col2 FROM tab1
----
-36
-673
-89

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

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

query I rowsort
SELECT 93 + col1 AS col2 FROM tab2 cor0
----
110
124
152

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

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

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE NOT ( + col1 + + col0 ) = NULL
----

query I rowsort
SELECT - tab1.col0 + + col2 * + col1 AS col1 FROM tab1
----
1168
1401
506

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( + col1 )
----

query I rowsort
SELECT DISTINCT + col0 + - col2 + col2 * - col2 * - tab2.col0 AS col1 FROM tab2
----
114117
5083
52780

query I rowsort
SELECT - col1 + tab2.col0 + + col1 * col2 FROM tab2
----
1553
708
813

query I rowsort
SELECT col2 + col1 + - col1 * + col2 AS col0 FROM tab0
----
-2719
-7289
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1042
SELECT ALL - col2 * tab2.col2 + + col1 * col0 DIV + col1 + - col1 AS col2 FROM tab2
----
-1382
-657
-753

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL - col2 * tab2.col2 + + col1 * col0 / + col1 + - col1 AS col2 FROM tab2
----
-1382
-657
-753

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * col1 * col0 + + col0 FROM tab1
----
36544
4215
99920

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

query I rowsort
SELECT col0 + col0 + col1 FROM tab2
----
175
215
45

query I rowsort
SELECT DISTINCT + col0 * tab0.col0 + - col2 * + col0 FROM tab0
----
-216
1190
623

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 + col0 * col0 col2 FROM tab1
----
12
4160
6480

query I rowsort
SELECT DISTINCT tab2.col0 + + col2 + + col1 * col1 AS col1 FROM tab2
----
3585
406
995

query I rowsort
SELECT col0 * - col0 + + col1 FROM tab0
----
-1128
-490
-7830

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 <> NULL
----

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

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

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

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

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE - col0 * + col2 <> ( NULL )
----

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

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

query I rowsort
SELECT col1 + col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL OR NULL NOT IN ( - col0 )
----

query I rowsort
SELECT - 23 * cor0.col1 FROM tab2 AS cor0
----
-1357
-391
-713

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

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

query I rowsort
SELECT + col2 + 58 AS col2 FROM tab0 AS cor0
----
140
59
91

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

query I rowsort
SELECT ALL + col1 + - ( - col2 ) * ( + 75 ) FROM tab0 AS cor0
----
172
2561
6241

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

query I rowsort
SELECT ALL + - 33 * - col0 FROM tab1 AS cor0
----
2112
2640
99

query I rowsort
SELECT ALL - col2 * + 72 FROM tab0 AS cor0
----
-2376
-5904
-72

query I rowsort
SELECT 36 * - 85 AS col0 FROM tab2 AS cor0
----
-3060
-3060
-3060

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

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

query I rowsort
SELECT + col2 + + 87 * col2 FROM tab1 AS cor0
----
4752
5016
8448

query I rowsort
SELECT DISTINCT - 63 * + col0 FROM tab2 AS cor0
----
-441
-4914
-4977

query I rowsort
SELECT col1 - 6 FROM tab2
----
11
25
53

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1082
SELECT + col0 DIV - col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-1082
SELECT + col0 / - col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT ALL 8 * - 30 + col2 AS col2 FROM tab2 AS cor0
----
-202
-213
-214

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

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL - + CAST ( NULL AS REAL ) + - 31 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - tab0.col2 * col1 * - col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT ALL 16 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT DISTINCT 52 + + col1 * + 26 - - col1 AS col2 FROM tab2 cor0
----
1645
511
889

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

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

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

query I rowsort
SELECT DISTINCT - col1 * - col1 * - col2 AS col0 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT col2 + 38 FROM tab2 AS cor0
----
64
65
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1094
SELECT ALL - col1 DIV 1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL - col1 / 1 FROM tab2 AS cor0
----
-17
-31
-59

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL + col2 * CAST ( - col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT 32 + col2 FROM tab1
----
128
86
89

query I rowsort
SELECT + + 86 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 + - col2 col2 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT col1 + ( + 1 ) * + col2 AS col2 FROM tab2
----
55
58
85

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

query I rowsort
SELECT ALL col2 * - ( + col2 ) + tab0.col1 FROM tab0
----
-1003
-6633
96

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab0 AS cor2, tab1
----
13122 values hashing to fa5a5805740327247ad39749d2d7f6a0

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1104
SELECT DISTINCT col0 * + CAST( - 16 AS SIGNED ) col1 FROM tab0 AS cor0
----
-1424
-384
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1104
SELECT DISTINCT col0 * + CAST ( - 16 AS INTEGER ) col1 FROM tab0 AS cor0
----
-1424
-384
-560

query I rowsort
SELECT col2 + 18 * 80 FROM tab2 cor0
----
1466
1467
1478

query I rowsort
SELECT ALL 23 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

onlyif mysql # use DIV operator for integer division
query I rowsort label-1107
SELECT DISTINCT - - ( + cor0.col1 ) DIV col2 + ( - 48 ) FROM tab0 AS cor0
----
-46
-47
49

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT - - ( + cor0.col1 ) / col2 + ( - 48 ) FROM tab0 AS cor0
----
-46
-47
49

query I rowsort
SELECT ALL - col0 * 34 + col1 FROM tab1 cor0
----
-2166
-2707
-76

query I rowsort
SELECT ALL - ( + col1 + + col0 ) * 98 AS col0 FROM tab0
----
-10780
-12936
-17640

query I rowsort
SELECT - + col0 * - col1 + col2 * + ( 45 * cor0.col1 ) FROM tab1 AS cor0
----
26290
57200
63258

onlyif mysql # use DIV operator for integer division
query I rowsort label-1111
SELECT DISTINCT - + col2 * ( + col1 ) - col0 DIV + col0 FROM tab0 AS cor0
----
-2839
-7463
-98

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT - + col2 * ( + col1 ) - col0 / + col0 FROM tab0 AS cor0
----
-2839
-7463
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1112
SELECT ALL CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + - 3 + + 12 * col1 AS col2 FROM tab0 AS cor0
----
1029
1089
1161

onlyif mysql # use DIV operator for integer division
query I rowsort label-1114
SELECT DISTINCT + col2 + tab1.col1 DIV - ( - col0 ) FROM tab1
----
57
62
96

skipif mysql # not compatible
query I rowsort label-1114
SELECT DISTINCT + col2 + tab1.col1 / - ( - col0 ) FROM tab1
----
57
62
96

query I rowsort
SELECT - 9 * - col1 + - tab2.col1 * + col0 + + col2 FROM tab2
----
-1152
-4045
89

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

query I rowsort
SELECT DISTINCT 60 + tab2.col1 * 51 * + 46 AS col0 FROM tab2
----
138474
39942
72786

query I rowsort
SELECT DISTINCT + col0 + - col1 * - tab0.col1 * + col2 FROM tab0
----
244092
679131
9444

query I rowsort
SELECT - 7 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

query I rowsort
SELECT DISTINCT - 42 AS col1 FROM tab2 AS cor0
----
-42

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

query I rowsort
SELECT DISTINCT - - col1 * col2 AS col0 FROM tab1 cor0
----
1248
1404
570

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

query I rowsort
SELECT ALL - col2 * col1 + col0 AS col1 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + col1 * - 48 AS col0 FROM tab1 AS cor0
----
-1248
-480
-624

query I rowsort
SELECT DISTINCT + col0 + - 79 + col2 FROM tab0 AS cor0
----
-22
-43
92

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

query I rowsort
SELECT DISTINCT - col0 + - col2 * + col0 * + col2 AS col0 FROM tab0 AS cor0
----
-26160
-598525
-70

query I rowsort
SELECT ALL + col1 + 59 FROM tab1 cor0
----
69
72
85

skipif mysql # not compatible
query I rowsort
SELECT col1 + CAST ( col2 * cor0.col2 + + col2 AS REAL ) AS col2 FROM tab2 AS cor0
----
1499
761
787

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

query I rowsort
SELECT DISTINCT col2 * 22 + + col2 + + col0 * + ( + 39 ) FROM tab1 AS cor0
----
1359
3807
5328

query I rowsort
SELECT DISTINCT - col0 + - 35 FROM tab1 cor0
----
-115
-38
-99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + + 13 col0 FROM tab0 AS cor0
----
1102
14
6737

query I rowsort
SELECT ALL cor0.col0 * - col2 - + 16 AS col1 FROM tab0 AS cor0
----
-51
-7314
-808

query I rowsort
SELECT ALL col2 - col1 * - col1 FROM tab2
----
327
3507
988

query I rowsort
SELECT col0 * + col1 + - col1 + + 4 AS col0 FROM tab2 AS cor0
----
1330
190
4547

query I rowsort
SELECT - + col0 + col1 - - col2 * cor0.col1 FROM tab2 AS cor0
----
1515
584
861

query I rowsort
SELECT DISTINCT ( 69 ) * + tab0.col0 * 28 + 84 AS col2 FROM tab0
----
172032
46452
67704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 12 col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

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

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

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

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL + ( tab2.col2 + - CAST ( NULL AS INTEGER ) ) / + 80 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col0 + 47 AS col0 FROM tab2 AS cor0
----
6131
6288
96

query I rowsort
SELECT DISTINCT 38 * col1 AS col2 FROM tab1
----
380
494
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1147
SELECT - tab1.col0 + CAST( + col1 AS SIGNED ) FROM tab1
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-1147
SELECT - tab1.col0 + CAST ( + col1 AS INTEGER ) FROM tab1
----
-54
-67
23

query I rowsort
SELECT + 19 * - 12 FROM tab2 AS cor0
----
-228
-228
-228

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

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

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

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

query I rowsort
SELECT ALL - + 46 FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT - 11 - + cor0.col1 * + col2 FROM tab0 cor0
----
-108
-2849
-7473

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

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

query I rowsort
SELECT ALL col2 * 49 FROM tab0 AS cor0
----
1617
4018
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-1156
SELECT 7 * 38 + col1 * ( + col1 ) DIV + col1 FROM tab1 AS cor0
----
276
279
292

skipif mysql # not compatible
query I rowsort label-1156
SELECT 7 * 38 + col1 * ( + col1 ) / + col1 FROM tab1 AS cor0
----
276
279
292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 - col1 * col0 * col2 col0 FROM tab0 AS cor0
----
-3492
-664209
-68198

onlyif mysql # use DIV operator for integer division
query I rowsort label-1158
SELECT ( - cor0.col0 ) - + cor0.col0 DIV - col0 col2 FROM tab1 AS cor0
----
-2
-63
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1158
SELECT ( - cor0.col0 ) - + cor0.col0 / - col0 col2 FROM tab1 AS cor0
----
-2
-63
-79

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1160
SELECT - - CAST( 43 AS SIGNED ) * col0 * col2 - col2 AS col0 FROM tab0 AS cor0
----
1504
313732
34023

skipif mysql # not compatible
query I rowsort label-1160
SELECT - - CAST ( 43 AS INTEGER ) * col0 * col2 - col2 AS col0 FROM tab0 AS cor0
----
1504
313732
34023

query I rowsort
SELECT DISTINCT col1 + + 19 AS col2 FROM tab1 cor0
----
29
32
45

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

query I rowsort
SELECT - + ( 66 ) + col0 * + col0 AS col1 FROM tab1 AS cor0
----
-57
4030
6334

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1165
SELECT CAST( + col0 AS SIGNED ) FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-1165
SELECT CAST ( + col0 AS INTEGER ) FROM tab1
----
3
64
80

query I rowsort
SELECT + tab2.col2 * - 68 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d6419d0a846d84662788671e700042e9

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

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

query I rowsort
SELECT col1 * + col1 + + 8 FROM tab1 AS cor0
----
108
177
684

query I rowsort
SELECT DISTINCT + 41 + cor0.col2 AS col0 FROM tab0 AS cor0
----
123
42
74

query I rowsort
SELECT ALL col1 * col1 + ( - col0 ) - - col2 FROM tab1 AS cor0
----
185
727
93

query I rowsort
SELECT + 71 + + col1 * + col2 * col2 AS col0 FROM tab0 cor0
----
168
611955
93725

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

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

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

query I rowsort
SELECT ALL - 93 AS col1 FROM tab1 AS cor0
----
-93
-93
-93

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1180
SELECT - + col0 DIV + 76 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1180
SELECT - + col0 / + 76 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT + col1 * 89 FROM tab0 AS cor0
----
7654
8099
8633

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

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

skipif mysql # not compatible
query I rowsort label-1183
SELECT col1 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col1 * col1 * + col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

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

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

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

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL - col1 * col1 + col2 * CAST ( col0 * + cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
3536
36380
99671

query I rowsort
SELECT DISTINCT + - col0 + col2 - col2 FROM tab2 AS cor0
----
-7
-78
-79

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col1 col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-1190
SELECT ALL col2 DIV CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL col2 / CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
0
0
2

query I rowsort
SELECT 72 FROM tab0, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

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

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

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

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

query I rowsort
SELECT + 4 AS col1 FROM tab1
----
4
4
4

query I rowsort
SELECT DISTINCT + col2 + - col2 * + 12 * 14 AS col0 FROM tab0
----
-13694
-167
-5511

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

query I rowsort
SELECT cor1.col0 * + 58 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 019a546b5f88d82b97b897c84959203f

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1200
SELECT ( + cor0.col1 ) * 86 * - col1 + + col1 + + col2 DIV col2 FROM tab1 AS cor0
----
-14520
-58109
-8589

skipif mysql # not compatible
query I rowsort label-1200
SELECT ( + cor0.col1 ) * 86 * - col1 + + col1 + + col2 / col2 FROM tab1 AS cor0
----
-14520
-58109
-8589

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

query I rowsort
SELECT + 80 + col1 AS col2 FROM tab1 AS cor0
----
106
90
93

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1204
SELECT ALL - col1 DIV 14 AS col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL - col1 / 14 AS col1 FROM tab2 AS cor0
----
-1
-2
-4

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

query I rowsort
SELECT DISTINCT - - col2 + + col1 * + 53 AS col0 FROM tab0 AS cor0
----
4591
4905
5142

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

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

query I rowsort
SELECT ALL - - col2 + - col1 - col1 FROM tab1 AS cor0
----
2
37
70

query I rowsort
SELECT DISTINCT + cor0.col0 + 33 * - col2 FROM tab0 AS cor0
----
-1065
-2617
2

query I rowsort
SELECT + col2 * ( 85 ) + cor0.col1 FROM tab0 AS cor0
----
182
2891
7061

query I rowsort
SELECT - col1 - - tab1.col0 FROM tab1
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-1213
SELECT DISTINCT + col2 DIV tab0.col1 + + col1 * tab0.col0 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-1213
SELECT DISTINCT + col2 / tab0.col1 + + col1 * tab0.col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col1 * + col0 + + 82 AS col0 FROM tab0
----
2146
3477
8181

query I rowsort
SELECT ALL col0 + + col0 * 92 FROM tab0 AS cor0
----
2232
3255
8277

query I rowsort
SELECT ALL + col2 + + 13 AS col0 FROM tab2 AS cor0
----
39
40
51

query I rowsort
SELECT 38 - col1 FROM tab0 AS cor0
----
-48
-53
-59

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 * col0 + col0 * - cor0.col2 AS col1 FROM tab1 cor0
----
-107520
-40128
-4374

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

query I rowsort
SELECT ALL + 31 + - col0 * - col0 FROM tab0 AS cor0
----
1256
607
7952

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

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

query I rowsort
SELECT + - 33 AS col0 FROM tab0 AS cor0
----
-33
-33
-33

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

query I rowsort
SELECT + col1 * - 19 FROM tab1 cor0
----
-190
-247
-494

query I rowsort
SELECT ALL + 67 + - col1 FROM tab0 AS cor0
----
-19
-24
-30

query I rowsort
SELECT DISTINCT - ( col2 ) + col2 * 38 FROM tab0 AS cor0
----
1221
3034
37

query I rowsort
SELECT ALL - 70 * col0 AS col1 FROM tab1 AS cor0
----
-210
-4480
-5600

query I rowsort
SELECT DISTINCT - 70 * col2 AS col1 FROM tab2 AS cor0
----
-1820
-1890
-2660

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

query I rowsort
SELECT ALL - 50 AS col0 FROM tab0 cor0
----
-50
-50
-50

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1233
SELECT - col1 * + col0 - col0 DIV 31 AS col0 FROM tab1
----
-1042
-642
-78

skipif mysql # not compatible
query I rowsort label-1233
SELECT - col1 * + col0 - col0 / 31 AS col0 FROM tab1
----
-1042
-642
-78

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - cor0.col2 * - 19 col1 FROM tab2 cor0
----
520
540
760

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

query I rowsort
SELECT col2 + - col2 * - col0 + + col2 FROM tab0 AS cor0
----
37
7462
858

query I rowsort
SELECT ( col2 ) * + 90 + - col0 + - col2 FROM tab2 cor0
----
2236
2396
3303

query I rowsort
SELECT ( col2 ) + col1 * 33 + - col0 AS col0 FROM tab0 AS cor0
----
2847
2996
3167

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

query I rowsort
SELECT ALL - 86 + + col1 FROM tab0 AS cor0
----
0
11
5

query I rowsort
SELECT DISTINCT - 28 + + col1 + col1 AS col1 FROM tab0 AS cor0
----
144
154
166

query I rowsort
SELECT - 98 + + col1 AS col2 FROM tab2 AS cor0
----
-39
-67
-81

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1247
SELECT + col2 * col1 * + CAST( - 15 AS SIGNED ) FROM tab0 AS cor0
----
-111930
-1455
-42570

skipif mysql # not compatible
query I rowsort label-1247
SELECT + col2 * col1 * + CAST ( - 15 AS INTEGER ) FROM tab0 AS cor0
----
-111930
-1455
-42570

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

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

query I rowsort
SELECT DISTINCT - 59 * - col0 + col2 AS col2 FROM tab0 AS cor0
----
1449
2066
5333

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 - col1 col1 FROM tab0 AS cor0
----
-3
-9
2

query I rowsort
SELECT - 4 * col0 * 73 FROM tab2
----
-2044
-22776
-23068

query I rowsort
SELECT + col0 - col0 * - tab1.col1 * - col2 AS col2 FROM tab1
----
-36416
-4209
-99760

query I rowsort
SELECT + - 2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT + 95 * ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
665
7410
7505

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

query I rowsort
SELECT - 78 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1261
SELECT DISTINCT 43 DIV col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-1261
SELECT DISTINCT 43 / col0 FROM tab0
----
0
1

query I rowsort
SELECT - 84 + - 8 FROM tab1
----
-92
-92
-92

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

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

skipif mysql # not compatible
query I rowsort label-1264
SELECT col2 / - 96 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ( + 94 ) AS col1 FROM tab2
----
94
94
94

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

query I rowsort
SELECT ( cor0.col1 ) AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

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

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

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

query I rowsort
SELECT DISTINCT - col0 * col1 * col1 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1272
SELECT + - col0 DIV + col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1272
SELECT + - col0 / + col0 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + - ( + ( col2 ) ) * 63 + col0 FROM tab2 AS cor0
----
-1560
-1694
-2315

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

query I rowsort
SELECT + - col2 * - 2 * col2 FROM tab1 AS cor0
----
18432
5832
6498

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

query I rowsort
SELECT col1 * 60 FROM tab0
----
5160
5460
5820

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( - col1 AS REAL ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

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

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

query I rowsort
SELECT DISTINCT + col0 + - col1 * + col1 FROM tab1 AS cor0
----
-36
-673
-89

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

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

query I rowsort
SELECT 32 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col2 + ( + cor0.col2 ) col1 FROM tab1 AS cor0
----
1344
1458
627

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

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

query I rowsort
SELECT ALL cor0.col0 + 18 FROM tab1, tab2 AS cor0
----
9 values hashing to 32064469d96c313d1022cfd85b0c8b7c

query I rowsort
SELECT ALL col0 * + col1 * ( - ( col1 ) * - col0 ) AS col0 FROM tab0
----
11526025
4260096
65593801

query I rowsort
SELECT DISTINCT col0 * - 67 AS col2 FROM tab2 AS cor0
----
-469
-5226
-5293

query I rowsort
SELECT col1 * - 74 + col2 * col2 FROM tab2 AS cor0
----
-1565
-3690
186

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

query I rowsort
SELECT + col2 * + ( + 36 ) + cor0.col2 FROM tab2 AS cor0
----
1406
962
999

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

query I rowsort
SELECT ALL + + 15 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 - + ( - cor0.col1 * cor0.col1 ) col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 494670936b4f3e88f81a6bd4e8e37a50

query I rowsort
SELECT + tab0.col1 + ( tab0.col0 * + col2 ) FROM tab0
----
132
7389
878

query I rowsort
SELECT col2 * col2 + - col2 * + col0 FROM tab1
----
-399
1536
2754

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

query I rowsort
SELECT col1 * col1 - + ( col1 ) FROM tab0
----
7310
8190
9312

query I rowsort
SELECT col0 * - 92 + + col0 FROM tab0
----
-2184
-3185
-8099

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

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT - col0 * - CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT 67 * - col0 FROM tab2
----
-469
-5226
-5293

query I rowsort
SELECT ALL 44 * col1 AS col2 FROM tab0
----
3784
4004
4268

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

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

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

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL CAST ( + 49 AS INTEGER ) AS col0 FROM tab2
----
49
49
49

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

query I rowsort
SELECT ALL 48 * - 82 + + tab0.col1 * 27 FROM tab0
----
-1317
-1479
-1614

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 + cor0.col2 col1 FROM tab1 AS cor0
----
108
66
69

query I rowsort
SELECT col2 + - 40 * - col2 * 33 AS col2 FROM tab2 AS cor0
----
34346
35667
50198

query I rowsort
SELECT - 72 FROM tab1, tab0 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

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

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

query I rowsort
SELECT - 91 * col2 * col1 AS col2 FROM tab0 AS cor0
----
-258258
-679042
-8827

query I rowsort
SELECT + 57 + + col0 * - 53 FROM tab2 AS cor0
----
-314
-4077
-4130

query I rowsort
SELECT ALL + 95 + + col0 * - ( col1 ) + - col1 * + col1 FROM tab1
----
-1114
-645
-659

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

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

query I rowsort
SELECT - col0 * - col1 + - col0 * - col0 FROM tab2 AS cor0
----
10686
266
7584

query I rowsort
SELECT DISTINCT + 32 + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2806
-65
-7430

query I rowsort
SELECT DISTINCT + col0 * - col1 + 27 * + col2 AS col1 FROM tab2 AS cor0
----
-317
-3900
512

query I rowsort
SELECT ALL + - 48 * col0 - + 39 * - col0 * - col1 FROM tab2 AS cor0
----
-183222
-56169
-8799

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

skipif mysql # not compatible
query I rowsort label-1322
SELECT + 26 / col2 + 77 AS col0 FROM tab1 AS cor0
----
77
77
77

query I rowsort
SELECT ALL col0 * + col2 + + 35 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
105
7422
851

onlyif mysql # use DIV operator for integer division
query I rowsort label-1324
SELECT + 67 DIV col0 + 74 FROM tab2 AS cor0
----
74
74
83

skipif mysql # not compatible
query I rowsort label-1324
SELECT + 67 / col0 + 74 FROM tab2 AS cor0
----
74
74
83

query I rowsort
SELECT 79 * col1 + - col1 FROM tab0 AS cor0
----
6708
7098
7566

query I rowsort
SELECT + col1 + - col0 * + col1 + + col1 FROM tab1
----
-1014
-26
-620

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

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1332
SELECT DISTINCT + + 11 - col2 DIV col0 FROM tab2 cor0
----
11
8

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT + + 11 - col2 / col0 FROM tab2 cor0
----
11
8

query I rowsort
SELECT col0 + - 31 AS col1 FROM tab1
----
-28
33
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1334
SELECT DISTINCT - tab0.col1 + CAST( - 34 AS SIGNED ) * col2 FROM tab0
----
-1208
-131
-2879

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT - tab0.col1 + CAST ( - 34 AS INTEGER ) * col2 FROM tab0
----
-1208
-131
-2879

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

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

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

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

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

query I rowsort
SELECT + + cor0.col0 * 43 + col2 FROM tab0 AS cor0
----
1065
1506
3909

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1340
SELECT ALL col2 DIV - tab1.col0 + - col2 AS col1 FROM tab1
----
-57
-72
-97

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL col2 / - tab1.col0 + - col2 AS col1 FROM tab1
----
-57
-72
-97

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

query I rowsort
SELECT - col2 + 12 + col2 * tab0.col0 AS col2 FROM tab0
----
46
7228
771

query I rowsort
SELECT - tab0.col1 + + cor0.col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to fe1c51f864ee373c345b7628346f6621

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

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL col2 / ( + tab2.col1 + CAST ( NULL AS REAL ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col2 + + col1 * col0 * + col0 AS col0 FROM tab2 cor0
----
106059
1492
358930

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1347
SELECT ALL - 34 DIV col2 FROM tab0 AS cor0
----
-1
-34
0

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL - 34 / col2 FROM tab0 AS cor0
----
-1
-34
0

query I rowsort
SELECT + 63 * + cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
468
4940
5015

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

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

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

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

query I rowsort
SELECT DISTINCT - 4 * - col2 * + col2 FROM tab2 AS cor0
----
2704
2916
5776

query I rowsort
SELECT DISTINCT - ( 27 ) + - col0 * ( + ( col2 ) ) FROM tab2 AS cor0
----
-2055
-216
-3029

onlyif mysql # use DIV operator for integer division
query I rowsort label-1354
SELECT + CAST( - col1 AS SIGNED ) + + col1 DIV 83 AS col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-1354
SELECT + CAST ( - col1 AS INTEGER ) + + col1 / 83 AS col1 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT ALL + 26 * + 3 - col0 * 92 FROM tab0 AS cor0
----
-2130
-3142
-8110

query I rowsort
SELECT ALL + + ( col0 ) + col0 * + col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT + 36 * cor0.col2 FROM tab2 AS cor0
----
1368
936
972

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

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

query I rowsort
SELECT DISTINCT + - col0 + + col2 * + col1 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT - 73 * ( col1 ) + ( cor0.col1 ) AS col1 FROM tab2 cor0
----
-1224
-2232
-4248

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

query I rowsort
SELECT 15 + - cor0.col0 * col0 FROM tab2 AS cor0
----
-34
-6069
-6226

query I rowsort
SELECT + 39 * + 87 + cor0.col2 FROM tab0 AS cor0
----
3394
3426
3475

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

query I rowsort
SELECT - ( col0 ) * ( col0 ) FROM tab1 cor0
----
-4096
-6400
-9

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - 83 + + cor0.col2 * + col0 FROM tab1 AS cor0
----
3565
7597
79

query I rowsort
SELECT ALL - col1 + cor0.col1 + 15 AS col0 FROM tab2 AS cor0
----
15
15
15

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

query I rowsort
SELECT DISTINCT - col1 * + 82 + - 76 * col0 FROM tab1 AS cor0
----
-2360
-5684
-7146

onlyif mysql # use DIV operator for integer division
query I rowsort label-1378
SELECT ALL + - col0 * col2 + 11 DIV col1 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL + - col0 * col2 + 11 / col1 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col0 * + CAST ( - 27 AS REAL ) + - col1 * + col0 * - ( col2 ) AS col0 FROM tab1 AS cor0
----
34752
4131
97680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1380
SELECT ALL + + col1 + - col0 DIV + 7 col1 FROM tab1 cor0
----
1
2
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL + + col1 + - col0 / + 7 col1 FROM tab1 cor0
----
1
2
26

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 + col0 + col1 * + col0 FROM tab1 AS cor0
----
1107
55
694

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1385
SELECT col0 * CAST( - 63 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1512
-2205
-5607

skipif mysql # not compatible
query I rowsort label-1385
SELECT col0 * CAST ( - 63 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1512
-2205
-5607

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

query I rowsort
SELECT ALL - cor0.col2 - 23 FROM tab0 AS cor0
----
-105
-24
-56

query I rowsort
SELECT + cor0.col0 * col2 * + col0 FROM tab2 AS cor0
----
1323
158184
237158

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1391
SELECT - + col0 + col0 DIV - 68 FROM tab2 AS cor0
----
-7
-79
-80

skipif mysql # not compatible
query I rowsort label-1391
SELECT - + col0 + col0 / - 68 FROM tab2 AS cor0
----
-7
-79
-80

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

query I rowsort
SELECT DISTINCT + col2 - + 57 FROM tab1
----
-3
0
39

query I rowsort
SELECT + - col2 - - col2 * + col2 * + col0 FROM tab0 AS cor0
----
26103
34
598354

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

query I rowsort
SELECT DISTINCT + 73 AS col0 FROM tab1, tab2 cor0
----
73

query I rowsort
SELECT cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

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

query I rowsort
SELECT + 2 * + col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
2686
434
9204

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

query I rowsort
SELECT DISTINCT 52 + col1 * + col0 FROM tab2 AS cor0
----
1395
269
4654

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

query I rowsort
SELECT 23 AS col0 FROM tab0
----
23
23
23

query I rowsort
SELECT ALL col1 * 3 + + tab1.col1 AS col1 FROM tab1
----
104
40
52

query I rowsort
SELECT DISTINCT - 11 FROM tab1
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + - 30 + col1 FROM tab0 AS cor0
----
56
61
67

query I rowsort
SELECT ALL - col0 + col0 * - ( + cor0.col0 ) * + col1 FROM tab2 AS cor0
----
-106176
-1526
-359034

query I rowsort
SELECT ALL 48 * col0 * col2 AS col1 FROM tab2
----
144096
9072
97344

query I rowsort
SELECT + ( + 98 ) FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT + - ( - 62 ) FROM tab1 cor0
----
62
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1412
SELECT - CAST( col2 AS SIGNED ) + cor0.col2 * col1 FROM tab0 AS cor0
----
2805
7380
96

skipif mysql # not compatible
query I rowsort label-1412
SELECT - CAST ( col2 AS INTEGER ) + cor0.col2 * col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT 95 AS col1 FROM tab0, tab2 cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a

query I rowsort
SELECT ALL + - col1 + col0 * ( col2 ) AS col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT - 98 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f

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

query I rowsort
SELECT - + col2 * + 34 AS col2 FROM tab0 AS cor0
----
-1122
-2788
-34

query I rowsort
SELECT DISTINCT - - col0 - - col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL tab1.col1 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT + col2 * + 87 * col1 AS col1 FROM tab0
----
246906
649194
8439

onlyif mysql # use DIV operator for integer division
query I rowsort label-1421
SELECT col2 * ( col2 ) DIV - col2 + col2 * + 35 + cor0.col1 FROM tab0 AS cor0
----
1208
131
2879

skipif mysql # not compatible
query I rowsort label-1421
SELECT col2 * ( col2 ) / - col2 + col2 * + 35 + cor0.col1 FROM tab0 AS cor0
----
1208
131
2879

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

query I rowsort
SELECT - ( 59 ) AS col0 FROM tab1 AS cor0
----
-59
-59
-59

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

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

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

query I rowsort
SELECT DISTINCT - col1 * ( col0 ) FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ( - 67 ) FROM tab2, tab2 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT - 60 AS col0 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to 17ea60db8bdc9b534fe91b7fd55df3f9

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

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

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

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1434
SELECT ALL + - CAST( ( col0 ) AS SIGNED ) * + 4 FROM tab2 AS cor0
----
-28
-312
-316

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL + - CAST ( ( col0 ) AS INTEGER ) * + 4 FROM tab2 AS cor0
----
-28
-312
-316

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

query I rowsort
SELECT DISTINCT + - col2 + + col1 * col1 * col2 AS col0 FROM tab2 AS cor0
----
10944
25920
90480

onlyif mysql # use DIV operator for integer division
query I rowsort label-1437
SELECT DISTINCT - - col2 DIV col1 + + ( - col2 ) + - col1 FROM tab2 AS cor0
----
-53
-58
-85

skipif mysql # not compatible
query I rowsort label-1437
SELECT DISTINCT - - col2 / col1 + + ( - col2 ) + - col1 FROM tab2 AS cor0
----
-53
-58
-85

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

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

query I rowsort
SELECT ALL + + 78 + col0 * col2 + col1 AS col1 FROM tab0 AS cor0
----
210
7467
956

query I rowsort
SELECT ( - 88 ) - col2 * ( tab0.col1 ) FROM tab0
----
-185
-2926
-7550

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 - col0 col0 FROM tab2
----
8
80
9

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

query I rowsort
SELECT - 91 + + col0 AS col2 FROM tab0
----
-2
-56
-67

query I rowsort
SELECT tab0.col0 + col2 * col2 AS col0 FROM tab0
----
1113
36
6813

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 34 + col2 col2 FROM tab0
----
-2891
-3012
-3297

query I rowsort
SELECT DISTINCT - 78 + + col1 * + tab2.col0 AS col2 FROM tab2
----
1265
139
4524

query I rowsort
SELECT DISTINCT ( 35 ) + + col1 FROM tab1
----
45
48
61

query I rowsort
SELECT - cor0.col0 + col1 - 62 FROM tab2 AS cor0
----
-124
-38
-81

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1456
SELECT - + col0 DIV + 15 - col2 AS col0 FROM tab2 AS cor0
----
-27
-31
-43

skipif mysql # not compatible
query I rowsort label-1456
SELECT - + col0 / + 15 - col2 AS col0 FROM tab2 AS cor0
----
-27
-31
-43

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

query I rowsort
SELECT cor0.col2 * + ( + 34 ) AS col0 FROM tab1 AS cor0
----
1836
1938
3264

query I rowsort
SELECT ALL - col2 + + col1 * 38 * - col0 FROM tab2 AS cor0
----
-174902
-51072
-8273

onlyif mysql # use DIV operator for integer division
query I rowsort label-1460
SELECT DISTINCT 25 DIV + col0 AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT 25 / + col0 AS col1 FROM tab0
----
0
1

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

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

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

skipif mysql # not compatible
query I rowsort label-1462
SELECT + 18 / - col0 AS col0 FROM tab2
----
-2
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1463
SELECT col0 DIV - tab2.col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1463
SELECT col0 / - tab2.col1 FROM tab2
----
-1
-4
0

query I rowsort
SELECT DISTINCT ( + tab0.col0 ) AS col2 FROM tab0
----
24
35
89

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

query I rowsort
SELECT - cor0.col2 * - 77 - 27 FROM tab2 AS cor0
----
1975
2052
2899

query I rowsort
SELECT - - col1 + ( + 23 ) * + col0 AS col2 FROM tab0 AS cor0
----
2138
638
902

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

skipif mysql # not compatible
query I rowsort label-1468
SELECT DISTINCT - - cor0.col1 / col0 + 15 FROM tab2 AS cor0
----
15
19

query I rowsort
SELECT ALL - - col2 * 35 FROM tab0 AS cor0
----
1155
2870
35

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1473
SELECT + col1 DIV - 2 FROM tab1 AS cor0
----
-13
-5
-6

skipif mysql # not compatible
query I rowsort label-1473
SELECT + col1 / - 2 FROM tab1 AS cor0
----
-13
-5
-6

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

query I rowsort
SELECT ALL + col1 + 8 * 81 AS col1 FROM tab0 AS cor0
----
734
739
745

query I rowsort
SELECT ALL - 46 FROM tab1
----
-46
-46
-46

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

query I rowsort
SELECT ALL + col2 + - tab2.col2 FROM tab2
----
0
0
0

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

query I rowsort
SELECT ALL tab2.col2 * col2 + 95 * + col2 - + col1 FROM tab2
----
3087
3263
5037

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

query I rowsort
SELECT ALL + + col1 * cor0.col2 + - col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT tab0.col0 + 31 FROM tab0
----
120
55
66

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1485
SELECT CAST( + 24 + + col1 AS SIGNED ) AS col0 FROM tab0
----
110
115
121

skipif mysql # not compatible
query I rowsort label-1485
SELECT CAST ( + 24 + + col1 AS INTEGER ) AS col0 FROM tab0
----
110
115
121

onlyif mysql # use DIV operator for integer division
query I rowsort label-1486
SELECT col2 DIV - tab0.col2 + - col0 AS col1 FROM tab0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-1486
SELECT col2 / - tab0.col2 + - col0 AS col1 FROM tab0
----
-25
-36
-90

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

query I rowsort
SELECT ALL + 25 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT col2 * col1 * ( col0 ) + - col2 * 80 AS col1 FROM tab0
----
3315
65472
657558

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1491
SELECT + + 39 + cor0.col1 DIV cor0.col0 AS col2 FROM tab0 cor0
----
40
41
42

skipif mysql # not compatible
query I rowsort label-1491
SELECT + + 39 + cor0.col1 / cor0.col0 AS col2 FROM tab0 cor0
----
40
41
42

query I rowsort
SELECT ALL + - 44 * col1 + + col0 * col1 FROM tab0 AS cor0
----
-1720
-873
4095

query I rowsort
SELECT + 26 + + col1 * + 65 AS col2 FROM tab2 AS cor0
----
1131
2041
3861

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1495
SELECT col2 DIV + cor0.col2 AS col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1495
SELECT col2 / + cor0.col2 AS col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT + 81 + col0 AS col0 FROM tab2
----
159
160
88

query I rowsort
SELECT ALL - 99 AS col2 FROM tab1
----
-99
-99
-99

query I rowsort
SELECT + - col1 * col0 + + col1 AS col1 FROM tab0 cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) - cor0.col0 * 38 col0 FROM tab0 AS cor0
----
-1329
-3300
-879

query I rowsort
SELECT DISTINCT col0 + + col0 + + col2 AS col0 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT + col2 * - col2 * 95 + + 59 AS col0 FROM tab0 cor0
----
-103396
-36
-638721

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

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

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

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

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

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

query I rowsort
SELECT ALL + tab0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 42 col2 FROM tab2 cor0
----
1092
1134
1596

onlyif mysql # use DIV operator for integer division
query I rowsort label-1512
SELECT DISTINCT ( + col2 ) * cor0.col1 + + ( + col1 ) * col1 DIV col0 FROM tab1 AS cor0
----
1250
1629
571

skipif mysql # not compatible
query I rowsort label-1512
SELECT DISTINCT ( + col2 ) * cor0.col1 + + ( + col1 ) * col1 / col0 FROM tab1 AS cor0
----
1250
1629
571

query I rowsort
SELECT ALL + col0 * - 50 + col0 AS col0 FROM tab1 AS cor0
----
-147
-3136
-3920

query I rowsort
SELECT DISTINCT - - col2 + 62 AS col0 FROM tab1 AS cor0
----
116
119
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-1515
SELECT DISTINCT - 78 DIV col0 AS col1 FROM tab1 AS cor0
----
-1
-26
0

skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT - 78 / col0 AS col1 FROM tab1 AS cor0
----
-1
-26
0

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

query I rowsort
SELECT ALL + + col1 * 55 AS col0 FROM tab1 AS cor0
----
1430
550
715

query I rowsort
SELECT - + 29 + - col1 AS col0 FROM tab0 AS cor0
----
-115
-120
-126

query I rowsort
SELECT - + col1 + 11 * col0 AS col0 FROM tab2 AS cor0
----
46
799
852

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1524
SELECT + col1 * col1 + - col1 * + CAST ( col0 + col1 AS INTEGER ) FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1525
SELECT ALL - 75 + + col1 DIV col1 FROM tab2 AS cor0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL - 75 + + col1 / col1 FROM tab2 AS cor0
----
-74
-74
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-1526
SELECT DISTINCT col1 * - col0 - - col1 DIV + 69 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-1526
SELECT DISTINCT col1 * - col0 - - col1 / + 69 FROM tab2 AS cor0
----
-1343
-217
-4602

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

query I rowsort
SELECT + 78 + + cor0.col0 FROM tab1, tab0 cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 3b9f9b5a753014544477465add75df9a

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

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

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

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

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

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

query I rowsort
SELECT ALL - col2 * - col0 * col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT ( 45 ) * col2 FROM tab0 cor0
----
1485
3690
45

query I rowsort
SELECT - ( col2 ) * col2 * + col1 + col2 * col1 FROM tab1 AS cor0
----
-118560
-31920
-74412

query I rowsort
SELECT ALL + col2 * + ( col1 + - col2 ) * + ( 88 ) AS col2 FROM tab0
----
153912
64944
8448

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

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

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

query I rowsort
SELECT ALL + 81 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

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

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1543
SELECT DISTINCT - 76 DIV 39 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT - 76 / 39 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
-1

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

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

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

skipif mysql # not compatible
query I rowsort label-1546
SELECT DISTINCT + col1 * CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - col1 * - 91 + + col1 AS col2 FROM tab0 AS cor0
----
7912
8372
8924

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1549
SELECT - + col1 * col2 DIV + col2 - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229

skipif mysql # not compatible
query I rowsort label-1549
SELECT - + col1 * col2 / + col2 - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-1550
SELECT col0 * + ( - col0 ) + + col2 DIV col2 + col1 AS col2 FROM tab0
----
-1127
-489
-7829

skipif mysql # not compatible
query I rowsort label-1550
SELECT col0 * + ( - col0 ) + + col2 / col2 + col1 AS col2 FROM tab0
----
-1127
-489
-7829

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

query I rowsort
SELECT 60 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT - col1 + - 81 AS col2 FROM tab0 cor0
----
-167
-172
-178

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1555
SELECT - col1 * CAST( - col0 * col2 AS SIGNED ) FROM tab2
----
119652
51034
5859

skipif mysql # not compatible
query I rowsort label-1555
SELECT - col1 * CAST ( - col0 * col2 AS INTEGER ) FROM tab2
----
119652
51034
5859

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1557
SELECT col2 * + CAST( - 10 AS SIGNED ) - - col1 * + 10 FROM tab2
----
-210
330
40

skipif mysql # not compatible
query I rowsort label-1557
SELECT col2 * + CAST ( - 10 AS INTEGER ) - - col1 * + 10 FROM tab2
----
-210
330
40

query I rowsort
SELECT ALL + - cor0.col2 - - 58 AS col1 FROM tab2 cor0
----
20
31
32

query I rowsort
SELECT ALL + col1 + col0 - - 27 * col0 * + col2 AS col2 FROM tab0 AS cor0
----
1077
197226
21494

query I rowsort
SELECT - col0 * col0 + 58 FROM tab0 AS cor0
----
-1167
-518
-7863

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

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

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL - + CAST ( col2 AS INTEGER ) * col1 + + col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

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

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

query I rowsort
SELECT DISTINCT + - cor0.col1 * - col2 - col0 * - 15 AS col1 FROM tab2 AS cor0
----
1831
2704
942

onlyif mysql # use DIV operator for integer division
query I rowsort label-1566
SELECT + + col1 * + 95 + col1 DIV + col2 FROM tab1 AS cor0
----
1235
2470
950

skipif mysql # not compatible
query I rowsort label-1566
SELECT + + col1 * + 95 + col1 / + col2 FROM tab1 AS cor0
----
1235
2470
950

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

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

query I rowsort
SELECT DISTINCT - tab2.col1 AS col1 FROM tab2, tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-1570
SELECT cor0.col0 DIV + cor1.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d8d70cc2ca2ffaf6c88b17fac333e575

skipif mysql # not compatible
query I rowsort label-1570
SELECT cor0.col0 / + cor1.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d8d70cc2ca2ffaf6c88b17fac333e575

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

query I rowsort
SELECT DISTINCT - col1 + - 9 FROM tab0 AS cor0
----
-100
-106
-95

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

query I rowsort
SELECT + ( col1 ) - - 98 * 38 AS col1 FROM tab1
----
3734
3737
3750

query I rowsort
SELECT DISTINCT - + 94 * col0 * ( + col0 ) FROM tab1 AS cor0
----
-385024
-601600
-846

onlyif mysql # use DIV operator for integer division
query I rowsort label-1576
SELECT ALL - 67 DIV col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL - 67 / col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT 19 * col1 FROM tab2 AS cor0
----
1121
323
589

query I rowsort
SELECT DISTINCT 4 * + col0 FROM tab2 AS cor0
----
28
312
316

query I rowsort
SELECT ALL + 6 AS col0 FROM tab2 AS cor0
----
6
6
6

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1581
SELECT ALL + col0 * + col2 * - cor0.col1 + - col2 DIV cor0.col1 AS col2 FROM tab2 cor0
----
-119652
-51036
-5859

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL + col0 * + col2 * - cor0.col1 + - col2 / cor0.col1 AS col2 FROM tab2 cor0
----
-119652
-51036
-5859

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 45 col0 FROM tab2 AS cor0
----
-1395
-2655
-765

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

query I rowsort
SELECT + - col2 - - col0 * col1 * + col2 FROM tab2 cor0
----
119626
50996
5832

query I rowsort
SELECT + col0 * + col1 - 47 FROM tab2
----
1296
170
4555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col2 FROM tab2
----
73
73
73

query I rowsort
SELECT DISTINCT ( - col0 ) * - col0 AS col1 FROM tab1
----
4096
6400
9

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1591
SELECT DISTINCT - + ( col2 ) * col1 - 20 DIV 95 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT - + ( col2 ) * col1 - 20 / 95 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL col2 * 49 * col1 FROM tab0
----
139062
365638
4753

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

query I rowsort
SELECT DISTINCT - + ( ( col1 ) ) + 49 * col2 AS col0 FROM tab1 AS cor0
----
2620
2783
4691

query I rowsort
SELECT - 39 * col1 FROM tab1 AS cor0
----
-1014
-390
-507

query I rowsort
SELECT ALL + + 23 * - col1 AS col0 FROM tab0 cor0
----
-1978
-2093
-2231

query I rowsort
SELECT ALL 32 FROM tab0, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL + 71 * col0 FROM tab1 AS cor0
----
213
4544
5680

query I rowsort
SELECT DISTINCT col2 * col1 * + col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL + tab2.col2 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - + ( 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 - col1 * - col1 col2 FROM tab2 AS cor0
----
289
3481
961

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

query I rowsort
SELECT DISTINCT + 71 * col0 FROM tab2 AS cor0
----
497
5538
5609

query I rowsort
SELECT 9 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

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

query I rowsort
SELECT ALL ( - col1 + + col2 ) * + col1 FROM tab0
----
-4558
-819
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-1608
SELECT - col2 DIV - 81 + tab2.col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1608
SELECT - col2 / - 81 + tab2.col2 FROM tab2
----
26
27
38

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

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - - cor0.col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT cor0.col0 + + col2 - 50 AS col0 FROM tab0 AS cor0
----
-14
121
7

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1614
SELECT col2 + col1 * col1 DIV cor0.col1 AS col0 FROM tab1 cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-1614
SELECT col2 + col1 * col1 / cor0.col1 AS col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT ALL + col1 * 46 AS col1 FROM tab0 AS cor0
----
3956
4186
4462

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

query I rowsort
SELECT col0 + - ( - col1 ) + + col0 AS col1 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT DISTINCT cor0.col1 * - ( - 96 ) AS col1 FROM tab1 AS cor0
----
1248
2496
960

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

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

query I rowsort
SELECT ALL col0 * col1 * - 48 + + tab0.col0 * - col0 - col0 * ( col1 ) FROM tab0
----
-101712
-167580
-404772

query I rowsort
SELECT + col2 * 68 + col0 FROM tab0 AS cor0
----
103
2268
5665

query I rowsort
SELECT + col1 * col1 + col0 * col2 + col2 * col2 AS col1 FROM tab0 AS cor0
----
22303
9277
9445

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

query I rowsort
SELECT + 31 * col0 FROM tab1
----
1984
2480
93

query I rowsort
SELECT DISTINCT - 48 * 84 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
-4032

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 96 col1 FROM tab1
----
150
153
192

query I rowsort
SELECT - col1 - ( col1 ) FROM tab1
----
-20
-26
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1629
SELECT - col2 * + CAST( - 43 AS SIGNED ) FROM tab1 cor0
----
2322
2451
4128

skipif mysql # not compatible
query I rowsort label-1629
SELECT - col2 * + CAST ( - 43 AS INTEGER ) FROM tab1 cor0
----
2322
2451
4128

onlyif mysql # use DIV operator for integer division
query I rowsort label-1630
SELECT col0 + + 87 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
19
79
80

skipif mysql # not compatible
query I rowsort label-1630
SELECT col0 + + 87 / cor0.col0 AS col2 FROM tab2 AS cor0
----
19
79
80

query I rowsort
SELECT DISTINCT - cor0.col2 * 56 FROM tab1 AS cor0
----
-3024
-3192
-5376

query I rowsort
SELECT + - cor0.col2 + col2 + - col0 FROM tab0 AS cor0
----
-24
-35
-89

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

skipif mysql # not compatible
query I rowsort label-1633
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 cor0
----
NULL

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

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

query I rowsort
SELECT - col2 + 68 FROM tab1
----
-28
11
14

query I rowsort
SELECT 61 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT + col0 + col1 + 18 AS col2 FROM tab0
----
128
150
198

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1638
SELECT DISTINCT col2 * + CAST ( col1 AS INTEGER ) + tab0.col1 + - col0 col0 FROM tab0
----
159
2900
7464

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1640
SELECT + - col1 * 16 + col2 DIV 50 FROM tab2 AS cor0
----
-272
-496
-944

skipif mysql # not compatible
query I rowsort label-1640
SELECT + - col1 * 16 + col2 / 50 FROM tab2 AS cor0
----
-272
-496
-944

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

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

query I rowsort
SELECT DISTINCT col1 + ( - col2 ) * col1 + 86 FROM tab1
----
-1149
-1292
-474

query I rowsort
SELECT ALL 55 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

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

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9

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

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

query I rowsort
SELECT DISTINCT - 48 FROM tab0, tab0 AS cor0
----
-48

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

query I rowsort
SELECT 82 * - 90 FROM tab0 AS cor0
----
-7380
-7380
-7380

query I rowsort
SELECT ALL - + 75 * + col1 AS col1 FROM tab1 AS cor0
----
-1950
-750
-975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 89 + - col2 col1 FROM tab0 AS cor0
----
56
7
88

query I rowsort
SELECT ALL 90 * cor0.col2 AS col0 FROM tab2 AS cor0
----
2340
2430
3420

query I rowsort
SELECT ALL col1 + - 78 AS col2 FROM tab0 cor0
----
13
19
8

query I rowsort
SELECT ALL - 42 * col2 FROM tab0 cor0
----
-1386
-3444
-42

query I rowsort
SELECT 2 + + ( + col2 ) FROM tab2 AS cor0
----
28
29
40

query I rowsort
SELECT DISTINCT - 43 + col2 FROM tab0 AS cor0
----
-10
-42
39

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab2 AS cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * + col2 + ( ( col2 ) + - 95 * - col0 ) col2 FROM tab0 AS cor0
----
15835
3105
3361

onlyif mysql # use DIV operator for integer division
query I rowsort label-1660
SELECT ALL - + 2 DIV - cor1.col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL - + 2 / - cor1.col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1663
SELECT DISTINCT - cor0.col0 * col2 + col0 * col0 DIV + col1 AS col0 FROM tab2 cor0
----
-188
-1925
-2635

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT - cor0.col0 * col2 + col0 * col0 / + col1 AS col0 FROM tab2 cor0
----
-188
-1925
-2635

query I rowsort
SELECT col1 * cor0.col2 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL + + 28 * - col1 + + 43 - + col2 * col0 FROM tab2 AS cor0
----
-1014
-3435
-3637

query I rowsort
SELECT - 69 + - col0 FROM tab2
----
-147
-148
-76

query I rowsort
SELECT DISTINCT - - cor0.col0 + col2 + col2 * col0 AS col0 FROM tab1 AS cor0
----
219
3769
7856

query I rowsort
SELECT + 61 * + col2 AS col2 FROM tab2 AS cor0
----
1586
1647
2318

query I rowsort
SELECT ALL + col2 * + col2 + + ( + col2 ) FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL + + col1 + - 52 FROM tab2 AS cor0
----
-21
-35
7

query I rowsort
SELECT + col0 + - col2 * - col2 - col1 * + col0 * + 34 FROM tab2 cor0
----
-155714
-44139
-6642

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT ALL + col0 + - 49 * - 76 AS col2 FROM tab1 AS cor0
----
3727
3788
3804

query I rowsort
SELECT ALL cor0.col2 * 24 AS col1 FROM tab0 AS cor0
----
1968
24
792

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

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

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

query I rowsort
SELECT ALL cor0.col1 + - 68 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 7f0d58aa79d5c5e5e85166923d3285ba

query I rowsort
SELECT - col0 + + 15 * + 23 AS col1 FROM tab1 cor0
----
265
281
342

query I rowsort
SELECT - cor0.col1 + - cor0.col0 + - ( col2 ) AS col2 FROM tab0 cor0
----
-133
-143
-262

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

query I rowsort
SELECT - ( col0 ) * 23 + col2 * - cor0.col1 FROM tab0 AS cor0
----
-3390
-902
-9509

onlyif mysql # use DIV operator for integer division
query I rowsort label-1683
SELECT - 67 DIV col1 col2 FROM tab1
----
-2
-5
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1683
SELECT - 67 / col1 col2 FROM tab1
----
-2
-5
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * + col1 col2 FROM tab1 AS cor0
----
1120
704
81

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1686
SELECT ALL tab2.col2 DIV + 85 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL tab2.col2 / + 85 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 62 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
62

query I rowsort
SELECT tab0.col0 + + col0 FROM tab0
----
178
48
70

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

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

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

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

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

query I rowsort
SELECT ALL col2 * 75 AS col0 FROM tab0
----
2475
6150
75

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1695
SELECT cor0.col1 DIV + col2 - - 13 FROM tab0 cor0
----
110
14
15

skipif mysql # not compatible
query I rowsort label-1695
SELECT cor0.col1 / + col2 - - 13 FROM tab0 cor0
----
110
14
15

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

query I rowsort
SELECT 54 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-24
-25
47

query I rowsort
SELECT col2 + col2 * col1 + col1 FROM tab2
----
1619
701
895

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

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

query I rowsort
SELECT ALL 5 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

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

query I rowsort
SELECT ALL - col0 + - col1 * - col1 + + col2 FROM tab2 AS cor0
----
248
3429
981

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

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

query I rowsort
SELECT col1 * + col1 * ( + col1 ) + col1 + + col1 AS col2 FROM tab1 AS cor0
----
1020
17628
2223

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1707
SELECT DISTINCT col2 DIV + tab0.col0 + - col1 AS col2 FROM tab0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT col2 / + tab0.col0 + - col1 AS col2 FROM tab0
----
-85
-91
-97

query I rowsort
SELECT - col0 * ( - col2 ) + col2 * - tab1.col2 AS col2 FROM tab1
----
-1536
-2754
399

query I rowsort
SELECT - col2 + 81 FROM tab1
----
-15
24
27

query I rowsort
SELECT 12 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col2 col1 FROM tab2
----
52
54
76

query I rowsort
SELECT col1 + col2 * + ( + col2 ) FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT + col0 + 78 FROM tab1 AS cor0
----
142
158
81

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

query I rowsort
SELECT DISTINCT + + 72 * + ( cor0.col1 ) * 45 FROM tab2 AS cor0
----
100440
191160
55080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 * col0 col0 FROM tab2 AS cor0
----
2087
220
3019

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

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

query I rowsort
SELECT + 81 + col1 * col2 FROM tab0 AS cor0
----
178
2919
7543

query I rowsort
SELECT ALL 88 * + col2 * + col0 AS col0 FROM tab0 AS cor0
----
3080
642224
69696

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

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * col2 * col1 + - ( col0 ) AS col0 FROM tab0 AS cor0
----
244044
678953
9374

query I rowsort
SELECT ALL + col0 + - 11 * + cor0.col1 FROM tab2 AS cor0
----
-108
-334
-571

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

query I rowsort
SELECT DISTINCT + 2 * 92 FROM tab0 AS cor0
----
184

query I rowsort
SELECT - ( + 85 ) + + col0 FROM tab2 AS cor0
----
-6
-7
-78

query I rowsort
SELECT 27 * col0 AS col0 FROM tab1
----
1728
2160
81

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

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL ( col2 ) * CAST ( - ( - col0 ) AS INTEGER ) + - col0 * col2 FROM tab0
----
0
0
0

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

query I rowsort
SELECT ALL - ( - col1 ) + ( - 70 * - col1 ) FROM tab1
----
1846
710
923

query I rowsort
SELECT ALL + ( - col2 ) + col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1406
650
702

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

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

query I rowsort
SELECT ALL + col2 + + 62 AS col1 FROM tab1 AS cor0
----
116
119
158

query I rowsort
SELECT - 45 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col2 + 3 col1 FROM tab1 AS cor0
----
2919
3252
9219

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

query I rowsort
SELECT ALL + - col0 * - 67 * col0 AS col1 FROM tab0 AS cor0
----
38592
530707
82075

query I rowsort
SELECT ALL - 51 + col0 FROM tab2
----
-44
27
28

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

query I rowsort
SELECT 38 * + col1 + col1 * tab0.col2 FROM tab0
----
10920
3783
6106

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

query I rowsort
SELECT ( col2 * + col0 + - 13 ) AS col0 FROM tab2
----
176
2015
2989

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

skipif mysql # not compatible
query I rowsort label-1742
SELECT + col1 / + col0 AS col0 FROM tab0
----
1
2
3

query I rowsort
SELECT DISTINCT - - ( - cor0.col1 ) + + col1 * - 4 AS col1 FROM tab2 AS cor0
----
-155
-295
-85

query I rowsort
SELECT ALL 61 * - col2 + col2 * - col0 FROM tab0 AS cor0
----
-12300
-2805
-96

query I rowsort
SELECT ALL + + 59 + cor0.col2 FROM tab0 AS cor0
----
141
60
92

query I rowsort
SELECT + ( col1 ) + + col2 * col2 AS col0 FROM tab2 AS cor0
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 + - col0 col2 FROM tab2 AS cor0
----
-15
-16
56

query I rowsort
SELECT DISTINCT + cor0.col0 * 85 + + col1 AS col2 FROM tab0 AS cor0
----
2126
3072
7656

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

query I rowsort
SELECT - col1 + + cor0.col2 - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1165
-1376
-523

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

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL + 9 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 * + col2 * + 29 - + 50 FROM tab2 AS cor0
----
5431
58762
87008

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

query I rowsort
SELECT DISTINCT + 9 - col0 FROM tab0 AS cor0
----
-15
-26
-80

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 + - ( - col1 + col0 ) * col2 AS col1 FROM tab1 AS cor0
----
-32
1018
1251

onlyif mysql # use DIV operator for integer division
query I rowsort label-1756
SELECT ALL col1 * - tab2.col0 + - col0 DIV - col0 AS col1 FROM tab2
----
-1342
-216
-4601

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL col1 * - tab2.col0 + - col0 / - col0 AS col1 FROM tab2
----
-1342
-216
-4601

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

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

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

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

query I rowsort
SELECT ALL + - 20 FROM tab2, tab2 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1763
SELECT - ( cor0.col1 ) * CAST( 47 AS SIGNED ) - + col0 FROM tab1 cor0
----
-1225
-534
-691

skipif mysql # not compatible
query I rowsort label-1763
SELECT - ( cor0.col1 ) * CAST ( 47 AS INTEGER ) - + col0 FROM tab1 cor0
----
-1225
-534
-691

query I rowsort
SELECT - col1 * - cor0.col1 - - 22 FROM tab2 cor0
----
311
3503
983

query I rowsort
SELECT col0 * - col0 + 89 * - col2 AS col0 FROM tab2
----
-2452
-8398
-9623

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1766
SELECT - - col1 + CAST( col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1766
SELECT - - col1 + CAST ( col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
119
173
98

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

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

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

query I rowsort
SELECT ( + 47 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT 17 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

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

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL tab1.col1 * ( ( - col2 ) ) * CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 4 FROM tab0, tab0 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ALL 93 * 65 AS col0 FROM tab0 AS cor0
----
6045
6045
6045

query I rowsort
SELECT - + 51 * col0 + - col2 AS col0 FROM tab2 cor0
----
-384
-4004
-4067

query I rowsort
SELECT DISTINCT + ( 21 ) AS col0 FROM tab2 AS cor0
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 80 ) col0 FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT DISTINCT - col1 + - 39 AS col0 FROM tab0 AS cor0
----
-125
-130
-136

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 * col1 col2 FROM tab2 AS cor0
----
1023
1947
561

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

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

query I rowsort
SELECT 67 FROM tab0, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT + col2 + cor0.col1 * col1 * 58 FROM tab0 cor0
----
429001
480380
545723

onlyif mysql # use DIV operator for integer division
query I rowsort label-1785
SELECT ALL - tab1.col0 + col2 DIV + col2 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL - tab1.col0 + col2 / + col2 FROM tab1
----
-2
-63
-79

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

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

query I rowsort
SELECT + ( 71 ) + col0 FROM tab0 AS cor0
----
106
160
95

query I rowsort
SELECT + - col2 * ( col1 ) + - 47 FROM tab0 cor0
----
-144
-2885
-7509

query I rowsort
SELECT - col0 + 32 AS col1 FROM tab1 AS cor0
----
-32
-48
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 * col0 col1 FROM tab2 cor0
----
-623
-6942
-7031

query I rowsort
SELECT ALL + + ( + cor0.col2 ) * col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-1792
SELECT 63 DIV col1 + + col2 + + 7 * + col0 FROM tab1 AS cor0
----
511
660
77

skipif mysql # not compatible
query I rowsort label-1792
SELECT 63 / col1 + + col2 + + 7 * + col0 FROM tab1 AS cor0
----
511
660
77

query I rowsort
SELECT DISTINCT + 95 * + col1 AS col2 FROM tab2 AS cor0
----
1615
2945
5605

query I rowsort
SELECT ALL col0 * ( col0 ) * + ( 4 ) + - cor0.col2 + ( 20 ) AS col2 FROM tab1 AS cor0
----
16347
2
25524

query I rowsort
SELECT + - 41 FROM tab0 cor0
----
-41
-41
-41

query I rowsort
SELECT ( col0 ) + ( - cor0.col1 * - col2 ) AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + 60 * col1 FROM tab1 cor0
----
1560
600
780

query I rowsort
SELECT - col2 * - col2 * col0 + col2 FROM tab0 AS cor0
----
26169
36
598518

query I rowsort
SELECT - + col0 * cor0.col2 + col0 * col1 FROM tab2 AS cor0
----
-1659
2574
28

query I rowsort
SELECT ALL col1 * + ( + col1 ) AS col1 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-1801
SELECT DISTINCT + + col2 + col0 DIV col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT + + col2 + col0 / col0 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT + + col2 + 61 * col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
461
4862
4936

query I rowsort
SELECT DISTINCT - - 56 - + cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
30
43
46

query I rowsort
SELECT ALL + col0 * 11 * ( cor0.col0 * 62 ) + ( + col2 ) + 47 AS col0 FROM tab2 AS cor0
----
33492
4149361
4256447

query I rowsort
SELECT DISTINCT col1 - cor0.col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + col2 + + col0 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - 16 col0 FROM tab1 cor0
----
1024
1280
48

query I rowsort
SELECT - col1 * - ( cor0.col2 ) * col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ALL 21 * col0 FROM tab2
----
147
1638
1659

query I rowsort
SELECT DISTINCT - col2 * tab0.col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL + + col0 + 81 * col1 AS col2 FROM tab2 AS cor0
----
1456
2518
4857

query I rowsort
SELECT DISTINCT - col2 * + col0 - 91 * - col2 AS col0 FROM tab2 AS cor0
----
2268
338
456

query I rowsort
SELECT - - col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-1814
SELECT DISTINCT - - col2 + - 48 DIV col0 AS col1 FROM tab0 AS cor0
----
0
31
82

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT - - col2 + - 48 / col0 AS col1 FROM tab0 AS cor0
----
0
31
82

query I rowsort
SELECT ALL + 35 + + col0 - col2 * - col2 FROM tab2 AS cor0
----
1558
771
789

query I rowsort
SELECT - col2 + + col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
22
6058
6203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1817
SELECT ALL CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col0 + - ( col2 ) AS col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT 69 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT - - col2 + + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + col0 * - col0 * + col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

onlyif mysql # use DIV operator for integer division
query I rowsort label-1822
SELECT ALL col2 DIV + cor0.col0 AS col1 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL col2 / + cor0.col0 AS col1 FROM tab1 cor0
----
0
1
18

query I rowsort
SELECT + 26 + + col2 + + col2 AS col2 FROM tab2 AS cor0
----
102
78
80

query I rowsort
SELECT - 87 * + col1 AS col0 FROM tab1
----
-1131
-2262
-870

query I rowsort
SELECT ALL cor1.col2 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT - col2 * col0 * 74 - - col2 AS col0 FROM tab1
----
-11934
-269895
-568224

query I rowsort
SELECT DISTINCT + 54 FROM tab0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - tab2.col1 - col0 * - col2 col0 FROM tab2
----
-2574
-28
1659

query I rowsort
SELECT DISTINCT + col1 + col2 + + col0 AS col1 FROM tab0
----
133
143
262

query I rowsort
SELECT - 27 * + col0 FROM tab1 AS cor0
----
-1728
-2160
-81

query I rowsort
SELECT 70 * col1 FROM tab2 AS cor0
----
1190
2170
4130

query I rowsort
SELECT + 26 + col0 AS col0 FROM tab2
----
104
105
33

query I rowsort
SELECT - 96 * - col0 FROM tab1 AS cor0
----
288
6144
7680

query I rowsort
SELECT + 77 * + col1 + col0 * col2 AS col2 FROM tab1
----
2164
4418
8681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 7 ) col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT + - 69 + + cor0.col0 FROM tab0 cor0
----
-34
-45
20

query I rowsort
SELECT + tab2.col0 + tab2.col0 + tab2.col2 * + col1 FROM tab2
----
1690
804
851

query I rowsort
SELECT ALL col1 * + col2 + col1 + tab1.col1 * col0 AS col0 FROM tab1
----
1220
1508
2301

query I rowsort
SELECT - ( - col1 ) + 69 + cor0.col0 AS col2 FROM tab2 cor0
----
107
165
206

query I rowsort
SELECT - col1 + col1 - col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + col2 * - col1 * + col1 AS col1 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT ALL - col0 + col1 + + col1 FROM tab0
----
148
159
93

query I rowsort
SELECT + col0 * - col0 * + col1 FROM tab2
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-1845
SELECT ALL tab0.col2 DIV + col0 col0 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL tab0.col2 / + col0 col0 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL + col0 * + col0 * col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - col2 * col2 * + col0 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT ( - col1 ) * col2 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + tab2.col0 * + col0 * col0 AS col0 FROM tab2
----
343
474552
493039

query I rowsort
SELECT ALL 14 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT ALL + 36 * col1 FROM tab0 AS cor0
----
3096
3276
3492

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1852
SELECT DISTINCT - - col2 + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT - - col2 + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1853
SELECT ALL - col1 DIV + col0 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL - col1 / + col0 FROM tab0 cor0
----
-1
-2
-3

query I rowsort
SELECT - + 78 * col1 + + 74 AS col1 FROM tab2 AS cor0
----
-1252
-2344
-4528

query I rowsort
SELECT ALL + col2 * + tab0.col0 + col0 FROM tab0
----
70
7387
816

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 / + col1 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 <= - col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-1858
SELECT - col1 DIV - col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1858
SELECT - col1 / - col0 FROM tab0
----
1
2
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 + - col0 * - col1 AND NULL
----

query I rowsort
SELECT ALL - col2 * col0 + col0 * - col0 FROM tab0
----
-1260
-1368
-15219

onlyif mysql # use DIV operator for integer division
query I rowsort label-1861
SELECT + col0 * + col1 + col0 DIV col0 - - col1 AS col0 FROM tab1
----
105
1054
651

skipif mysql # not compatible
query I rowsort label-1861
SELECT + col0 * + col1 + col0 / col0 - - col1 AS col0 FROM tab1
----
105
1054
651

query I rowsort
SELECT DISTINCT tab1.col2 + tab1.col1 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - col2 * + col0 col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE + col2 * col0 + col1 * + col2 NOT IN ( - col1 / col1 )
----
-3
-64
-80

query I rowsort
SELECT + col0 * + col1 FROM tab0 WHERE + col1 <> ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT NULL IN ( - col0 + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 * + col0 col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE - col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 col2 FROM tab1
----
29
74
93

query III rowsort
SELECT * FROM tab2 WHERE NULL > + col0 / - col2
----

query I rowsort
SELECT tab2.col2 + + col2 AS col0 FROM tab2
----
52
54
76

query I rowsort
SELECT ALL tab1.col0 + + tab1.col1 AS col2 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 col1 FROM tab1 WHERE NOT NULL BETWEEN - col2 / + col2 AND ( NULL )
----

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE - col1 / col2 IN ( + col2 )
----

query I rowsort
SELECT tab2.col1 + - col1 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT tab2.col1 * col1 AS col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT tab1.col1 * - tab1.col2 * col2 + + col0 AS col2 FROM tab1
----
-119728
-32426
-75813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 * col1 col1 FROM tab0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT ALL col0 + - col1 * + col1 AS col0 FROM tab1
----
-36
-673
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 + + col1 col0 FROM tab2
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1883
SELECT + tab1.col0 + col1 + + col2 DIV col1 AS col1 FROM tab1
----
100
31
79

skipif mysql # not compatible
query I rowsort label-1883
SELECT + tab1.col0 + col1 + + col2 / col1 AS col1 FROM tab1
----
100
31
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) col2 FROM tab1
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1885
SELECT + CAST( NULL AS SIGNED ) + cor0.col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1885
SELECT + CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + cor0.col1 - 42 AS col1 FROM tab2 cor0
----
-11
-25
17

query I rowsort
SELECT ALL + + ( + 79 ) * + col2 * - col1 FROM tab2 AS cor0
----
-121186
-51034
-66123

query I rowsort
SELECT DISTINCT - ( col1 ) + col1 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 * - col0 + + col2 * col1 - + cor0.col2 FROM tab2 AS cor0
----
-2394
-520
621

query I rowsort
SELECT + + col1 * cor0.col1 FROM tab1 cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-1891
SELECT + - 87 DIV + col1 - - col0 FROM tab1 AS cor0
----
0
56
74

skipif mysql # not compatible
query I rowsort label-1891
SELECT + - 87 / + col1 - - col0 FROM tab1 AS cor0
----
0
56
74

query I rowsort
SELECT col2 - + col0 * col1 FROM tab1 AS cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col1 col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT 82 * tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1d2c15e844e1ec06584e2530ccb9d047

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1895
SELECT ALL - cor0.col2 * CAST( + ( col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL - cor0.col2 * CAST ( + ( col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - + cor0.col2 + + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + - col2 * + cor0.col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT + tab2.col0 * col0 AS col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT - col1 + + ( - 15 ) * - col1 * - col0 AS col2 FROM tab1 AS cor0
----
-1196
-15613
-9610

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1900
SELECT col0 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1900
SELECT col0 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - tab2.col2 + col2 * col0 + - col0 * col2 col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL + 93 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT DISTINCT - 32 FROM tab1, tab2, tab1 AS cor0
----
-32

query I rowsort
SELECT - + col0 + 82 * col1 AS col0 FROM tab1 AS cor0
----
2129
756
986

query I rowsort
SELECT + - col1 * 39 * col2 FROM tab0 AS cor0
----
-110682
-291018
-3783

query I rowsort
SELECT - col1 + 52 FROM tab1
----
26
39
42

query I rowsort
SELECT + ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - + ( + col1 ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + ( tab2.col2 ) AS col0 FROM tab2, tab1 AS cor0
----
26
27
38

query I rowsort
SELECT 12 AS col2 FROM tab2
----
12
12
12

query I rowsort
SELECT ALL - 33 + + col0 FROM tab2 AS cor0
----
-26
45
46

query I rowsort
SELECT DISTINCT 47 FROM tab1 cor0
----
47

query I rowsort
SELECT - 13 FROM tab2 cor0
----
-13
-13
-13

query I rowsort
SELECT ALL - - col0 + col1 * + col2 * col1 + col0 FROM tab1 AS cor0
----
16384
36510
5828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) * - col2 col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT + 41 + - ( + col0 + col1 ) AS col0 FROM tab0
----
-139
-69
-91

query I rowsort
SELECT ALL - 74 AS col2 FROM tab1
----
-74
-74
-74

query I rowsort
SELECT - ( ( - col0 ) * - col2 ) FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - 42 AS col2 FROM tab1
----
-42

query I rowsort
SELECT + col2 * col1 * + col2 - - tab1.col2 FROM tab1
----
119904
32547
75870

query I rowsort
SELECT + 96 + + col0 * + col2 AS col0 FROM tab0 cor0
----
131
7394
888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - - col2 + + col1 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - - cor0.col2 * col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 66 AS col2 FROM tab1 cor0
----
66

query I rowsort
SELECT + 20 + cor0.col2 * col1 FROM tab1 AS cor0
----
1268
1424
590

query I rowsort
SELECT - + cor0.col2 * cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col2 * - cor0.col0 * col2 AS col0 FROM tab1 cor0
----
-207936
-737280
-8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 * col1 * 61 col2 FROM tab2
----
-39406
-51057
-93574

query I rowsort
SELECT ALL 16 * + 94 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to e6fd06869cd23eb050b83e6ba42771c9

query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab1, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col0 * col1 * + 35 + - col1 * cor0.col2 FROM tab2 AS cor0
----
159536
46359
6758

query I rowsort
SELECT col1 + 53 AS col1 FROM tab0 AS cor0
----
139
144
150

query I rowsort
SELECT - col2 + + 55 FROM tab0 AS cor0
----
-27
22
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1935
SELECT - + CAST( 12 AS SIGNED ) + + col0 AS col2 FROM tab0 AS cor0
----
12
23
77

skipif mysql # not compatible
query I rowsort label-1935
SELECT - + CAST ( 12 AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0
----
12
23
77

query I rowsort
SELECT + + 34 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1292
884
918

query I rowsort
SELECT + col2 * col2 AS col0 FROM tab2 WHERE NULL NOT IN ( - col2 * col2 - - col1 * + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + col2 col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT col2 * col1 + + col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-1940
SELECT DISTINCT + + col1 + - cor0.col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT + + col1 + - cor0.col0 / + col0 AS col0 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT ALL - col1 * col1 + col2 * col1 FROM tab0
----
-4558
-819
-9312

query I rowsort
SELECT DISTINCT + col1 + col1 - col2 * col1 FROM tab2 AS cor0
----
-1416
-612
-775

query I rowsort
SELECT - + cor0.col0 * + col2 + - col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT - + col2 * + cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - col0 + col1 + col0 AS col1 FROM tab2 AS cor0
----
17
31
59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 AND + col1 * col1 * col2 - - col2 OR NOT ( - col2 - cor0.col1 * col1 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 + col2 col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT - - col0 * cor0.col2 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL - col2 + col2 * col0 AS col1 FROM tab2 cor0
----
162
2002
2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-1950
SELECT ALL col2 - col0 DIV col1 FROM tab2 AS cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL col2 - col0 / col1 FROM tab2 AS cor0
----
25
27
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - col0 * col0 * - col2 + col1 AS col2 FROM tab2 AS cor0
----
1354
158243
237175

query I rowsort
SELECT DISTINCT cor0.col1 * + col2 + - col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT col0 * col1 + col1 * col2 AS col0 FROM tab0
----
15561
3492
4902

onlyif mysql # use DIV operator for integer division
query I rowsort label-1955
SELECT ALL + col1 DIV + col1 - col0 * col2 * col1 AS col0 FROM tab1 AS cor0
----
-36479
-4211
-99839

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL + col1 / + col1 - col0 * col2 * col1 AS col0 FROM tab1 AS cor0
----
-36479
-4211
-99839

onlyif mysql # use DIV operator for integer division
query I rowsort label-1956
SELECT DISTINCT - col1 DIV col1 col1 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT - col1 / col1 col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - col1 * - col0 - - col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + cor0.col1 + - col2 + col2 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + - cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT ALL - 47 * + col2 AS col0 FROM tab0
----
-1551
-3854
-47

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab2 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1963
SELECT ALL + col2 - - col1 DIV + col2 AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL + col2 - - col1 / + col2 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL - - col2 + + col2 * + col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT col2 + col1 * col1 + col0 * + col2 * - col0 AS col1 FROM tab0
----
-11579
-641159
8185

query I rowsort
SELECT DISTINCT + tab2.col0 * - col2 + col1 * + col1 FROM tab2
----
-2713
1453
772

query I rowsort
SELECT - col0 + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-141
-97
17

query I rowsort
SELECT + col1 * - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT ALL col0 + + col2 * col2 AS col2 FROM tab2
----
1523
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-1970
SELECT ALL tab1.col1 DIV + col0 + - col0 * col1 FROM tab1
----
-1040
-640
-70

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL tab1.col1 / + col0 + - col0 * col1 FROM tab1
----
-1040
-640
-70

query I rowsort
SELECT ALL + cor0.col0 * + 98 FROM tab1 AS cor0
----
294
6272
7840

query I rowsort
SELECT + col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-1973
SELECT DISTINCT + col0 DIV + 8 FROM tab0 AS cor0
----
11
3
4

skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT + col0 / + 8 FROM tab0 AS cor0
----
11
3
4

query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 * - col2 + + cor0.col2 * + col0 + + col0 AS col1 FROM tab0 AS cor0
----
3465
671505
68928

query I rowsort
SELECT ALL + 53 FROM tab0, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL - - col1 + - 22 FROM tab0 AS cor0
----
64
69
75

query I rowsort
SELECT - + col1 * - ( - 80 ) + col2 FROM tab0 AS cor0
----
-6847
-7198
-7759

query I rowsort
SELECT DISTINCT - col0 + col0 * - col2 + col1 FROM tab1 cor0
----
-139
-3702
-7747

query I rowsort
SELECT ALL col1 + + 84 * - col1 AS col0 FROM tab2 AS cor0
----
-1411
-2573
-4897

query I rowsort
SELECT - col1 + + col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1981
SELECT CAST( ( col0 ) AS SIGNED ) - CAST( 27 AS SIGNED ) DIV + col1 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1981
SELECT CAST ( ( col0 ) AS INTEGER ) - CAST ( 27 AS INTEGER ) / + col1 AS col2 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1982
SELECT DISTINCT CAST( - 30 AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-1982
SELECT DISTINCT CAST ( - 30 AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
-30

query I rowsort
SELECT - 75 - 61 AS col2 FROM tab1 AS cor0
----
-136
-136
-136

query I rowsort
SELECT DISTINCT col2 + - 19 * col1 * - col2 AS col0 FROM tab2
----
12312
15930
29172

query I rowsort
SELECT DISTINCT + - ( - col2 ) * col0 * - 9 FROM tab2 AS cor0
----
-1701
-18252
-27018

onlyif mysql # use DIV operator for integer division
query I rowsort label-1986
SELECT 96 + + col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-1986
SELECT 96 + + col0 / + col0 AS col1 FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT ALL 59 AS col0 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT ALL + 65 FROM tab2 AS cor0
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - cor0.col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - ( col2 + col1 ) AS col1 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT DISTINCT col2 * + tab1.col1 + tab1.col0 FROM tab1
----
1328
1407
634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1992
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1992
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - 1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT ALL - + col2 * - col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 35 * col1 FROM tab1 AS cor0
----
350
455
910

query I rowsort
SELECT - col2 * + cor0.col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - 92 FROM tab0 cor0
----
-92

query I rowsort
SELECT + 39 + - col1 FROM tab1
----
13
26
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1999
SELECT - 27 + 1 * - cor1.col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1999
SELECT - 27 + 1 * - cor1.col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT cor0.col0 * 33 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 739b1604452f62ca3cad11617547075c

query I rowsort
SELECT DISTINCT cor0.col2 + 51 - tab0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
9 values hashing to d1f649be0efdb7c3647a16c45f207b79

query I rowsort
SELECT - col0 * - ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ( - col1 * + tab2.col1 ) AS col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL - col2 * - ( col2 + col0 ) * + col2 FROM tab1
----
1622016
166212
393129

query I rowsort
SELECT - tab0.col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT col2 * 66 AS col2 FROM tab0
----
2178
5412
66

query I rowsort
SELECT - 89 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

query I rowsort
SELECT - col2 * - 17 * - col2 AS col2 FROM tab0 AS cor0
----
-114308
-17
-18513

query I rowsort
SELECT + + col0 * col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL + 62 AS col2 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT 10 * - 58 AS col1 FROM tab1
----
-580
-580
-580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2012
SELECT + CAST( NULL AS SIGNED ) * col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2012
SELECT + CAST ( NULL AS INTEGER ) * col1 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2013
SELECT CAST( NULL AS SIGNED ) * + 75 * col0 + + 66 + + tab0.col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT CAST ( NULL AS INTEGER ) * + 75 * col0 + + 66 + + tab0.col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 cor1, tab2, tab0 AS cor2
----
3645 values hashing to ca4c79a162f92454e0544707b897521a

query I rowsort
SELECT - + col2 * + 51 + col1 * + 81 AS col0 FROM tab0 AS cor0
----
3189
5283
7806

query I rowsort
SELECT DISTINCT - 65 + + col2 FROM tab1 AS cor0
----
-11
-8
31

query I rowsort
SELECT ( + col1 ) + + col1 * col1 AS col0 FROM tab1 cor0
----
110
182
702

query I rowsort
SELECT + col0 * - col1 * cor0.col0 + + col0 * col2 AS col2 FROM tab2 AS cor0
----
-103095
-1330
-356928

query I rowsort
SELECT DISTINCT col2 + - col2 * + 10 * - col0 AS col1 FROM tab1 AS cor0
----
1674
36537
76896

query I rowsort
SELECT 65 + - col1 * col1 AS col0 FROM tab2 cor0
----
-224
-3416
-896

query I rowsort
SELECT ALL + 9 * + col0 AS col0 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT + + 53 * + col0 + - 55 FROM tab1 AS cor0
----
104
3337
4185

query I rowsort
SELECT - col0 + - col1 * + 10 FROM tab2 AS cor0
----
-249
-317
-668

onlyif mysql # use DIV operator for integer division
query I rowsort label-2024
SELECT col1 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2024
SELECT col1 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2025
SELECT DISTINCT CAST( col0 * col1 AS SIGNED ) + + 44 * + col1 AS col2 FROM tab2
----
1581
2091
7198

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT CAST ( col0 * col1 AS INTEGER ) + + 44 * + col1 AS col2 FROM tab2
----
1581
2091
7198

query I rowsort
SELECT - 84 + + col2 AS col1 FROM tab1 AS cor0
----
-27
-30
12

query I rowsort
SELECT col0 * col0 + 4 * 77 AS col0 FROM tab1 AS cor0
----
317
4404
6708

query I rowsort
SELECT + 63 * col2 FROM tab2 AS cor0
----
1638
1701
2394

query I rowsort
SELECT ALL + col1 * + ( col1 ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + + 49 AS col2 FROM tab2 AS cor0
----
49

query I rowsort
SELECT col0 + + 50 * col0 + - col1 FROM tab0 AS cor0
----
1138
1688
4448

onlyif mysql # use DIV operator for integer division
query I rowsort label-2032
SELECT - col1 DIV - cor0.col0 + col2 * col0 AS col0 FROM tab0 AS cor0
----
37
7299
795

skipif mysql # not compatible
query I rowsort label-2032
SELECT - col1 / - cor0.col0 + col2 * col0 AS col0 FROM tab0 AS cor0
----
37
7299
795

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) + - col1 * - col1 AS col2 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2034
SELECT + CAST( col1 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-2034
SELECT + CAST ( col1 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + ( col2 ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + - col2 * col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + + col1 * col0 * col1 FROM tab2 AS cor0
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-2038
SELECT DISTINCT - + 39 DIV cor0.col2 + - 58 AS col0 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2038
SELECT DISTINCT - + 39 / cor0.col2 + - 58 AS col0 FROM tab1 AS cor0
----
-58

query I rowsort
SELECT ALL + - cor0.col1 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - ( col1 * - col1 ) AS col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT tab0.col1 + - 69 AS col0 FROM tab0
----
17
22
28

query I rowsort
SELECT DISTINCT ( + 32 ) + col0 FROM tab1
----
112
35
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2043
SELECT + col1 DIV + col0 + - col2 + col1 FROM tab2 AS cor0
----
-21
33
8

skipif mysql # not compatible
query I rowsort label-2043
SELECT + col1 / + col0 + - col2 + col1 FROM tab2 AS cor0
----
-21
33
8

query I rowsort
SELECT + col0 * 95 + + col0 AS col0 FROM tab0 AS cor0
----
2304
3360
8544

query I rowsort
SELECT ALL col1 + ( + col1 ) * - cor0.col2 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT 86 * + col1 FROM tab0
----
7396
7826
8342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - col0 + - col0 * col0 col1 FROM tab2 AS cor0
----
-6221
-6337
-87

query I rowsort
SELECT - + col0 + 54 - col2 FROM tab2 AS cor0
----
-50
-63
20

query I rowsort
SELECT DISTINCT + col2 + - ( col0 ) AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - col0 * col2 * ( col2 ) AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL + col0 * ( - 57 ) FROM tab2 AS cor0
----
-399
-4446
-4503

query I rowsort
SELECT + cor0.col1 + ( col2 * col2 ) + col2 FROM tab1 AS cor0
----
2996
3316
9325

query I rowsort
SELECT DISTINCT + ( + col0 ) AS col1 FROM tab0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2054
SELECT DISTINCT + tab2.col2 * CAST( + col0 AS SIGNED ) * - col2 + - ( + col0 ) * col2 + col2 AS col2 FROM tab2
----
-117040
-5265
-54730

skipif mysql # not compatible
query I rowsort label-2054
SELECT DISTINCT + tab2.col2 * CAST ( + col0 AS INTEGER ) * - col2 + - ( + col0 ) * col2 + col2 AS col2 FROM tab2
----
-117040
-5265
-54730

query I rowsort
SELECT col1 * col2 - col1 * - tab0.col0 FROM tab0
----
15561
3492
4902

query I rowsort
SELECT + cor0.col0 + - col2 * - col0 + + col2 FROM tab0 AS cor0
----
71
7469
849

query I rowsort
SELECT + col1 + col0 + col1 AS col1 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT - col1 - + ( col1 * + col0 ) FROM tab2 AS cor0
----
-1360
-248
-4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2059
SELECT + col2 + 52 * col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2059
SELECT + col2 + 52 * col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + ( - col1 ) * col2 - + 75 FROM tab0
----
243993
678967
9334

query I rowsort
SELECT DISTINCT - - cor0.col1 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - col1 + col0 * + col1 FROM tab2
----
1326
186
4543

query I rowsort
SELECT ALL - col1 + 63 + col1 FROM tab1
----
63
63
63

query I rowsort
SELECT DISTINCT + col2 + col2 * - col1 AS col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL 42 + + col0 * + cor0.col2 FROM tab2 AS cor0
----
2070
231
3044

query I rowsort
SELECT ALL - - col1 + + 49 FROM tab1 AS cor0
----
59
62
75

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to 181d902c42955a43a374f13a73d8b0a1

query I rowsort
SELECT ALL - col0 * col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - ( + ( col1 ) ) * ( + 33 ) FROM tab2 AS cor0
----
-1023
-1947
-561

query I rowsort
SELECT ALL + ( - 7 ) AS col2 FROM tab0 AS cor0
----
-7
-7
-7

query I rowsort
SELECT 89 * + 85 * + col0 + 42 * + 9 + col0 FROM tab1 AS cor0
----
23076
484602
605658

query I rowsort
SELECT DISTINCT - - col0 * - 98 AS col1 FROM tab2 AS cor0
----
-686
-7644
-7742

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2073
SELECT ALL CAST( col0 AS SIGNED ) AS col0 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL CAST ( col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL + + 11 AS col0 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT ( col2 ) * - col0 + 3 AS col1 FROM tab2 AS cor0
----
-186
-2025
-2999

query I rowsort
SELECT - col0 * - cor0.col0 + + col0 FROM tab0 AS cor0
----
1260
600
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-2077
SELECT ALL cor0.col1 DIV 6 FROM tab2 AS cor0
----
2
5
9

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL cor0.col1 / 6 FROM tab2 AS cor0
----
2
5
9

query I rowsort
SELECT - + col0 * 72 + cor0.col0 * - ( col1 ) FROM tab1 AS cor0
----
-294
-5248
-6800

query I rowsort
SELECT ALL + + ( - col2 ) * - col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + col0 + - ( - col1 + col0 ) FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 col2 FROM tab1 AS cor0
----
52

query I rowsort
SELECT ( - col0 ) + - col1 AS col2 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT + - 7 * + col2 FROM tab0 AS cor0
----
-231
-574
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2084
SELECT ALL + col2 * + col2 + 31 DIV col1 AS col2 FROM tab1 AS cor0
----
2917
3252
9218

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL + col2 * + col2 + 31 / col1 AS col2 FROM tab1 AS cor0
----
2917
3252
9218

query I rowsort
SELECT ALL - 59 + col2 AS col1 FROM tab0 AS cor0
----
-26
-58
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-2086
SELECT DISTINCT - col1 DIV - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT - col1 / - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT ALL - + col0 * - col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * cor0.col1 * - ( - col0 ) + + col2 col1 FROM tab1 AS cor0
----
-180
-40903
-83104

query I rowsort
SELECT - col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + + col1 - - 18 * 16 AS col0 FROM tab1 AS cor0
----
298
301
314

query I rowsort
SELECT DISTINCT + col1 + col1 * - 71 FROM tab2 AS cor0
----
-1190
-2170
-4130

query I rowsort
SELECT ALL + col1 + + 44 + - col0 FROM tab1 AS cor0
----
-10
-23
67

query I rowsort
SELECT DISTINCT col0 + ( - 41 ) + - col0 FROM tab1 AS cor0
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 - - col1 col0 FROM tab2 cor0
----
6143
6258
80

query I rowsort
SELECT - - col1 - col2 * - 88 FROM tab2 AS cor0
----
2347
2407
3361

query I rowsort
SELECT ALL + cor0.col2 * ( col1 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col0 * + 30 + - col1 * col0 FROM tab2 AS cor0
----
-2262
-7
1027

query I rowsort
SELECT DISTINCT + col2 + + ( col0 + - col0 ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT col1 + - 80 * + 38 AS col0 FROM tab0 AS cor0
----
-2943
-2949
-2954

onlyif mysql # use DIV operator for integer division
query I rowsort label-2100
SELECT + col1 DIV + ( + ( - cor0.col1 ) ) AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2100
SELECT + col1 / + ( + ( - cor0.col1 ) ) AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 35 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT ALL - col1 + ( + col0 ) FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2103
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 + + col0 / 68 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2103
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 + + col0 / 68 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 49 * 47 - + col2 FROM tab0 AS cor0
----
2221
2270
2302

query I rowsort
SELECT DISTINCT + ( - col1 ) + cor0.col0 + + ( - ( col1 ) ) AS col0 FROM tab1 cor0
----
-49
44
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2106
SELECT ALL + CAST( NULL AS SIGNED ) * col2 * + col2 + col2 * 32 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 * + col2 + col2 * 32 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - col0 ) * + col0 + 32 FROM tab0 AS cor0
----
-1193
-544
-7889

query I rowsort
SELECT ALL + col0 + - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + col2 + 18 AS col2 FROM tab0 cor0
----
100
19
51

query I rowsort
SELECT DISTINCT ( - 93 ) * - col0 AS col2 FROM tab1 AS cor0
----
279
5952
7440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 * + col2 col0 FROM tab2 AS cor0
----
1664
1728
2432

onlyif mysql # use DIV operator for integer division
query I rowsort label-2112
SELECT DISTINCT - cor0.col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT - cor0.col2 / - col0 AS col1 FROM tab0 AS cor0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2113
SELECT ALL ( + col2 ) + col0 DIV 65 FROM tab0 AS cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL ( + col2 ) + col0 / 65 FROM tab0 AS cor0
----
1
33
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2114
SELECT ALL - 21 * col0 + col2 + CAST( col0 AS SIGNED ) DIV + col0 AS col0 FROM tab0 AS cor0
----
-1786
-470
-733

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL - 21 * col0 + col2 + CAST ( col0 AS INTEGER ) / + col0 AS col0 FROM tab0 AS cor0
----
-1786
-470
-733

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2115
SELECT col1 * - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2115
SELECT col1 * - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - col2 + 38 FROM tab1 AS cor0
----
-124
-3610
-7642

query I rowsort
SELECT ALL - 8 * - col1 AS col0 FROM tab2 AS cor0
----
136
248
472

onlyif mysql # use DIV operator for integer division
query I rowsort label-2118
SELECT cor1.col2 + + ( + 82 ) * cor1.col1 DIV ( 69 ) AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to bcb9a4e001cc19494000161d91aaba44

skipif mysql # not compatible
query I rowsort label-2118
SELECT cor1.col2 + + ( + 82 ) * cor1.col1 / ( 69 ) AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to bcb9a4e001cc19494000161d91aaba44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2119
SELECT ALL col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - col0 * - 70 AS col2 FROM tab1 AS cor0
----
207
4416
5520

query I rowsort
SELECT ALL + col1 + ( col2 ) * + col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT - + col1 + + col1 * col1 FROM tab0 cor0
----
7310
8190
9312

query I rowsort
SELECT + tab2.col2 * + col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT 34 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ALL - col2 + - col2 * - cor0.col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL - col2 + 65 FROM tab1 AS cor0
----
-31
11
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2127
SELECT ALL + col1 DIV 34 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL + col1 / 34 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT - - col2 * - 99 - 43 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2235
-4291
1406

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 + cor0.col0 col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
146
162
85

query I rowsort
SELECT + 88 * - 43 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 81d101299a59ef193ceb4868e980d2a5

query I rowsort
SELECT DISTINCT + col0 + - col2 AS col2 FROM tab0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2132
SELECT DISTINCT tab1.col2 DIV ( col2 ) + + col1 DIV + 33 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT tab1.col2 / ( col2 ) + + col1 / + 33 FROM tab1
----
1

query I rowsort
SELECT + + col0 * col2 + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT - + col1 * ( + col2 ) + 8 FROM tab2 AS cor0
----
-1526
-638
-829

onlyif mysql # use DIV operator for integer division
query I rowsort label-2135
SELECT + col0 DIV - col0 + - 77 DIV - col2 FROM tab0
----
-1
1
76

skipif mysql # not compatible
query I rowsort label-2135
SELECT + col0 / - col0 + - 77 / - col2 FROM tab0
----
-1
1
76

query I rowsort
SELECT col1 + - 7 AS col1 FROM tab2
----
10
24
52

query I rowsort
SELECT col2 + + 10 AS col2 FROM tab0
----
11
43
92

query I rowsort
SELECT col0 * + col2 * ( + col1 ) AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT + col1 + tab2.col0 FROM tab2
----
137
38
96

query I rowsort
SELECT - tab2.col2 + tab2.col0 FROM tab2
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + tab0.col0 col2 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT + col2 + ( col1 ) * col0 * + col2 FROM tab1
----
36537
4266
99936

query I rowsort
SELECT 81 + + col1 * - col2 * + col0 FROM tab2 AS cor0
----
-119571
-50953
-5778

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2144
SELECT - CAST( NULL AS DECIMAL ) * 33 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT - CAST ( NULL AS REAL ) * 33 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + col2 + cor0.col2 FROM tab0 AS cor0
----
-20
-95
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 55 ) col1 FROM tab1, tab2 cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT + + ( - 66 ) FROM tab1 AS cor0
----
-66
-66
-66

query I rowsort
SELECT + 99 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 * col1 col0 FROM tab0 AS cor0
----
636056
753571
912673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - tab0.col2 ) * - col0 col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL ( + col1 ) * - col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT ( tab2.col0 + - col2 ) FROM tab2
----
-20
41
52

query I rowsort
SELECT + + ( 35 ) + - col2 * col2 FROM tab1 cor0
----
-2881
-3214
-9181

query I rowsort
SELECT ALL - col1 * 56 * tab2.col2 FROM tab2
----
-36176
-46872
-85904

query I rowsort
SELECT ( - col2 ) + col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL - ( col1 ) * + tab1.col2 * + col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT col2 - 11 * col2 FROM tab2 AS cor0
----
-260
-270
-380

query I rowsort
SELECT DISTINCT col1 * - col2 * - ( col0 * - col0 ) AS col0 FROM tab2
----
-4031686
-41013
-9332856

query I rowsort
SELECT - - col0 * - ( cor0.col0 ) + + col2 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT col1 - + col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT cor0.col0 * cor0.col0 * col2 - - col2 * + 71 AS col2 FROM tab2 cor0
----
160030
239856
3240

query I rowsort
SELECT col0 + + ( 66 ) + - col2 FROM tab0 cor0
----
100
57
73

query I rowsort
SELECT - - cor0.col0 * cor0.col1 + cor0.col0 - + col2 * 31 * - col2 FROM tab1 AS cor0
----
101423
286816
90477

query I rowsort
SELECT - - col2 * 32 FROM tab1 AS cor0
----
1728
1824
3072

query I rowsort
SELECT ( ( cor1.col2 ) ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2166
SELECT DISTINCT 47 + col1 * CAST( ( + col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2111
3442
8146

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT 47 + col1 * CAST ( ( + col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2111
3442
8146

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2167
SELECT ALL - 21 * col2 - - CAST( 25 AS SIGNED ) FROM tab2 AS cor0
----
-521
-542
-773

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL - 21 * col2 - - CAST ( 25 AS INTEGER ) FROM tab2 AS cor0
----
-521
-542
-773

query I rowsort
SELECT - + col1 + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * col0 - 94 AS col2 FROM tab2 AS cor0
----
1934
2908
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + + 51 * 91 * - col0 col2 FROM tab1 AS cor0
----
-13897
-297014
-371267

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col1 * 64 AS col1 FROM tab1 AS cor0
----
1664
640
832

query I rowsort
SELECT ALL + col1 + col1 * + col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT col1 * - col0 + col0 * - col1 * - col1 - 36 * col1 AS col2 FROM tab1 AS cor0
----
1014
12012
5400

query I rowsort
SELECT - - col2 * - col0 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2176
SELECT ALL + col1 + cor0.col1 DIV col2 AS col0 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL + col1 + cor0.col1 / col2 AS col0 FROM tab1 cor0
----
10
13
26

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 ALL - cor0.col2 + 83 + + col2 * + col0 FROM tab0 AS cor0
----
117
7299
842

query I rowsort
SELECT col1 + + 36 FROM tab1 cor0
----
46
49
62

query I rowsort
SELECT DISTINCT - cor0.col0 + + 48 FROM tab0 AS cor0
----
-41
13
24

query I rowsort
SELECT ALL - col2 + 82 * col2 AS col0 FROM tab1 AS cor0
----
4374
4617
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-2182
SELECT DISTINCT + col2 DIV - 34 - 71 * - col0 FROM tab1 AS cor0
----
212
4543
5678

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT + col2 / - 34 - 71 * - col0 FROM tab1 AS cor0
----
212
4543
5678

query I rowsort
SELECT 58 * + col2 * + 87 FROM tab1
----
272484
287622
484416

query I rowsort
SELECT ALL tab2.col0 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL - 12 * col2 + 34 AS col0 FROM tab0
----
-362
-950
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2186
SELECT ALL - + col1 + CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL - + col1 + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + cor0.col0 * - col0 + - col2 * col0 AS col2 FROM tab0 AS cor0
----
-1260
-1368
-15219

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 7 col2 FROM tab1
----
7
7
7

query I rowsort
SELECT - col1 * + 12 FROM tab1 AS cor0
----
-120
-156
-312

query I rowsort
SELECT + col1 + - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT 82 * col0 AS col0 FROM tab0 AS cor0
----
1968
2870
7298

query I rowsort
SELECT ALL + col1 * col2 * - col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT col1 * - col0 * col2 AS col0 FROM tab1 cor0
----
-36480
-4212
-99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2195
SELECT ALL + CAST( NULL AS SIGNED ) + + col1 * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL + CAST ( NULL AS INTEGER ) + + col1 * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col1 FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT DISTINCT ( ( col0 ) ) - + col1 AS col2 FROM tab2 cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL - col2 + - col1 * 28 FROM tab0 cor0
----
-2441
-2630
-2717

onlyif mysql # use DIV operator for integer division
query I rowsort label-2200
SELECT ALL - col2 DIV + col0 - - col2 AS col1 FROM tab1
----
36
57
95

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL - col2 / + col0 - - col2 AS col1 FROM tab1
----
36
57
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 col1 FROM tab2, tab1 AS cor0
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + 46 + cor0.col0 AS col1 FROM tab1 AS cor0
----
110
126
49

query I rowsort
SELECT ALL - + ( col2 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL col0 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL - 92 AS col2 FROM tab1 AS cor0
----
-92
-92
-92

query I rowsort
SELECT ALL - ( - cor0.col2 ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT col0 + - cor0.col0 * col2 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-2209
SELECT cor0.col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2209
SELECT cor0.col0 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2210
SELECT ( - 83 ) * col2 - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2210
SELECT ( - 83 ) * col2 - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT - 34 * + col2 + col0 * 12 FROM tab1
----
-1170
-1800
-2304

query I rowsort
SELECT ALL + col2 + + col1 * col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT col2 - + col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + - col1 * col2 + 81 + - 29 AS col2 FROM tab2 cor0
----
-1482
-594
-785

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2216
SELECT ALL col0 + tab1.col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL col0 + tab1.col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 63 FROM tab2 AS cor0
----
-63

query I rowsort
SELECT + col2 * + col2 - + col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT DISTINCT + col1 * ( col2 ) + + col0 * + tab0.col1 FROM tab0
----
15561
3492
4902

query I rowsort
SELECT ALL + cor0.col1 * - 57 FROM tab1, tab1 AS cor0
----
9 values hashing to b3c8b5d59b492d1f7afa6ee176eab00d

query I rowsort
SELECT + col2 + cor0.col0 AS col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + ( col1 ) + - col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT + - ( - col2 ) + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + 33 AS col2 FROM tab0
----
33
33
33

query I rowsort
SELECT ALL 43 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT DISTINCT 22 * col2 FROM tab0
----
1804
22
726

query I rowsort
SELECT - ( col0 ) * col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 * cor0.col1 col1 FROM tab1 AS cor0
----
-100
-169
-676

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1

query I rowsort
SELECT ALL - + 5 * cor0.col2 FROM tab1 AS cor0
----
-270
-285
-480

query I rowsort
SELECT DISTINCT + col1 * tab1.col0 AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL - col2 * col0 * - col1 AS col1 FROM tab2
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col0 * col2 * tab2.col1 col0 FROM tab2
----
-119593
-51017
-5828

query I rowsort
SELECT ALL col1 / col0 FROM tab1 WHERE ( NULL ) NOT IN ( - col2 + + tab1.col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * tab1.col2 col0 FROM tab1
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2236
SELECT ALL col0 DIV + col1 + col0 * col1 FROM tab2
----
1347
217
4603

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL col0 / + col1 + col0 * col1 FROM tab2
----
1347
217
4603

query I rowsort
SELECT - col2 * col0 + col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT col1 * + tab0.col2 + + col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT DISTINCT tab0.col2 + col2 * col1 FROM tab0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - col1 + + col1 AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL col0 + tab0.col2 * + tab0.col2 FROM tab0
----
1113
36
6813

query I rowsort
SELECT ALL tab1.col2 FROM tab1 WHERE ( col0 * + col0 + + col1 * + col1 ) < ( col2 * + col0 + col0 )
----
96

query I rowsort
SELECT col0 + tab2.col2 * - tab2.col2 AS col2 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT ALL - col1 * + col0 + col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT col2 * - tab2.col2 + tab2.col0 AS col1 FROM tab2
----
-1365
-598
-722

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * col2 >= ( NULL )
----

query I rowsort
SELECT col1 - + col0 FROM tab0
----
2
62
62

query I rowsort
SELECT DISTINCT tab0.col1 * - col2 FROM tab0 WHERE ( - col2 ) >= NULL
----

query I rowsort
SELECT - col1 - - col2 AS col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN - col0 * col0 + col2 * - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 col0 FROM tab0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 col1 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2252
SELECT - tab1.col0 DIV col0 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2252
SELECT - tab1.col0 / col0 AS col2 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT + col0 * - col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + tab2.col0 + - col2 * - tab2.col0 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-2257
SELECT col1 * col2 DIV col0 FROM tab1
----
15
468
8

skipif mysql # not compatible
query I rowsort label-2257
SELECT col1 * col2 / col0 FROM tab1
----
15
468
8

query I rowsort
SELECT ALL + col1 * tab2.col0 + tab2.col0 AS col2 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL - col0 + + col2 AS col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT + + col2 * cor0.col0 * col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + - cor0.col1 + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col2 + cor0.col1 * + col2 * col1 FROM tab2 AS cor0
----
10944
25920
90480

query I rowsort
SELECT - col0 * + tab2.col0 * col0 FROM tab2 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND col0 / + col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * col2 * - col2
----

query I rowsort
SELECT + cor0.col2 + + cor0.col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL + col0 * col2 * + col1 + cor0.col1 * col2 FROM tab0 AS cor0
----
3492
671580
70950

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0 + col1 * col0 )
----

query I rowsort
SELECT col1 * col0 FROM tab2 WHERE col1 * col1 IN ( + col2 * col2 * - col2 )
----

query I rowsort
SELECT + col1 + - col1 + col2 AS col1 FROM tab2 AS cor0
----
26
27
38

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( + col0 + + col1 )
----

query I rowsort
SELECT DISTINCT - col1 + col0 + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1281
-241
-4583

query I rowsort
SELECT DISTINCT - col1 * col2 * col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT col2 * - col1 + + col2 * col2 + col1 AS col2 FROM tab1
----
1538
2689
7981

query I rowsort
SELECT + cor0.col1 * - cor0.col0 FROM tab0, tab1 cor0
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f

query I rowsort
SELECT col2 + - col0 * + col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT - + col1 + col1 - + col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col1 * 54 + col2 AS col1 FROM tab1 AS cor0
----
1458
597
798

query I rowsort
SELECT - - cor0.col2 - + 98 FROM tab1 AS cor0
----
-2
-41
-44

query I rowsort
SELECT + col1 * - col0 + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT 40 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT + - col0 * - col1 + cor0.col2 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT cor0.col2 - - col2 AS col1 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-2284
SELECT - cor0.col0 * 10 + + col0 DIV + 28 AS col2 FROM tab2 AS cor0
----
-70
-778
-788

skipif mysql # not compatible
query I rowsort label-2284
SELECT - cor0.col0 * 10 + + col0 / + 28 AS col2 FROM tab2 AS cor0
----
-70
-778
-788

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - cor0.col1 * + col1 + + col2 col2 FROM tab1 AS cor0
----
1057
17630
2293

query I rowsort
SELECT - - 77 * col0 + + col2 AS col0 FROM tab2 AS cor0
----
566
6032
6121

query I rowsort
SELECT ALL - cor0.col1 - col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 col0 FROM tab0, tab0 AS cor0
----
95

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 79b6ae096785aaecea9c1428e4a43e5f

query I rowsort
SELECT + 62 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT + col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - + 5 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-270
-285
-480

query I rowsort
SELECT DISTINCT - col0 * + tab2.col0 * + tab2.col2 + + col0 AS col2 FROM tab2
----
-1316
-158106
-237079

query I rowsort
SELECT DISTINCT 87 * col2 FROM tab0
----
2871
7134
87

query I rowsort
SELECT - + col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2296
SELECT DISTINCT + col0 * CAST( - col0 AS SIGNED ) + + col2 FROM tab0 cor0
----
-1224
-543
-7839

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT + col0 * CAST ( - col0 AS INTEGER ) + + col2 FROM tab0 cor0
----
-1224
-543
-7839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2297
SELECT + CAST( + col1 AS SIGNED ) * cor0.col0 + col1 + col1 AS col2 FROM tab0 AS cor0
----
2236
3589
8281

skipif mysql # not compatible
query I rowsort label-2297
SELECT + CAST ( + col1 AS INTEGER ) * cor0.col0 + col1 + col1 AS col2 FROM tab0 AS cor0
----
2236
3589
8281

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2298
SELECT ALL + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ( col0 ) + col2 * + tab2.col1 AS col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT col2 * + 39 + - col0 * tab0.col2 * col1 + col2 FROM tab0
----
-3355
-660838
-66792

query I rowsort
SELECT ALL ( 74 ) + - col0 * col0 AS col0 FROM tab1
----
-4022
-6326
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-2303
SELECT - col1 DIV - 57 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2303
SELECT - col1 / - 57 FROM tab0
----
1
1
1

query I rowsort
SELECT 50 - col1 * + col1 AS col0 FROM tab0
----
-7346
-8231
-9359

query I rowsort
SELECT ALL 44 + + tab0.col0 FROM tab0
----
133
68
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2306
SELECT DISTINCT ( 44 ) + - col1 + col2 DIV - col2 FROM tab1
----
17
30
33

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT ( 44 ) + - col1 + col2 / - col2 FROM tab1
----
17
30
33

query I rowsort
SELECT ALL - 57 FROM tab2, tab2 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT ALL ( - col2 ) * + col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( cor0.col2 AS REAL ) / col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2310
SELECT CAST( NULL AS SIGNED ) * - col1 - col2 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-2310
SELECT CAST ( NULL AS INTEGER ) * - col1 - col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + 62 ) * col2 + - cor0.col1 * col0 - + col1 AS col2 FROM tab2 AS cor0
----
-3049
1426
996

query I rowsort
SELECT DISTINCT + 84 + col2 * col2 AS col1 FROM tab0 AS cor0
----
1173
6808
85

query I rowsort
SELECT - 3 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT ALL - ( + 87 ) AS col0 FROM tab1 AS cor0
----
-87
-87
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-2315
SELECT + col2 DIV + col0 - col2 col2 FROM tab0 AS cor0
----
-1
-32
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2315
SELECT + col2 / + col0 - col2 col2 FROM tab0 AS cor0
----
-1
-32
-82

query I rowsort
SELECT DISTINCT + 86 AS col2 FROM tab0
----
86

query I rowsort
SELECT 75 + - col1 AS col0 FROM tab2
----
16
44
58

query I rowsort
SELECT tab1.col1 - col0 * - col0 FROM tab1
----
35
4106
6413

query I rowsort
SELECT + ( + col1 ) - + col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 30 col2 FROM tab1 AS cor0
----
30
30
30

query I rowsort
SELECT + ( + col2 ) + col0 + 54 * - cor0.col1 FROM tab2 cor0
----
-1640
-3082
-801

query I rowsort
SELECT ALL + cor0.col2 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + col0 + 17 AS col1 FROM tab2 AS cor0
----
24
95
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2324
SELECT DISTINCT + + col2 + + ( 45 ) DIV col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT + + col2 + + ( 45 ) / col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col1 + 12 FROM tab2 cor0
----
29
43
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 85 col1 FROM tab0 AS cor0
----
118
167
86

query I rowsort
SELECT ALL - col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2328
SELECT + col1 DIV 11 AS col1 FROM tab0 AS cor0
----
7
8
8

skipif mysql # not compatible
query I rowsort label-2328
SELECT + col1 / 11 AS col1 FROM tab0 AS cor0
----
7
8
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2329
SELECT + col2 * - CAST( NULL AS SIGNED ) / + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2329
SELECT + col2 * - CAST ( NULL AS INTEGER ) / + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 35 * - col2 FROM tab0
----
-1155
-2870
-35

query I rowsort
SELECT DISTINCT - col1 * - col0 + cor0.col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT col0 * 57 AS col2 FROM tab1 AS cor0
----
171
3648
4560

query I rowsort
SELECT ALL + col0 * 2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2335
SELECT DISTINCT + - col0 DIV col0 AS col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT + - col0 / col0 AS col1 FROM tab0 cor0
----
-1

query I rowsort
SELECT ALL col2 - col2 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2337
SELECT DISTINCT + col0 DIV cor0.col0 AS col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT + col0 / cor0.col0 AS col2 FROM tab0 cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2338
SELECT ALL + col0 + cor0.col1 DIV col1 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL + col0 + cor0.col1 / col1 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT + col2 * + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - - col0 + - col2 * col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + col2 * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + + col0 * col0 + + col1 * + col2 FROM tab2 AS cor0
----
6887
7618
886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 + - col0 col2 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT + col2 * + tab2.col1 + col2 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col0 + col2 * - col0 AND NULL <> ( NULL )
----

query I rowsort
SELECT col0 * + tab2.col1 + col0 AS col1 FROM tab2
----
1422
224
4680

query I rowsort
SELECT + col2 * + col1 + - col1 FROM tab2
----
1475
629
806

query I rowsort
SELECT DISTINCT - col0 + col0 * + col2 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL + 94 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT + 93 * - col2 AS col0 FROM tab1 AS cor0
----
-5022
-5301
-8928

query I rowsort
SELECT ALL - - col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + cor0.col0 * col1 * col2 + - col1 * - col0 + + cor0.col2 FROM tab0 AS cor0
----
672299
6791
70209

query I rowsort
SELECT + + 78 + + cor0.col2 * col2 AS col1 FROM tab2 cor0
----
1522
754
807

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col0 * col1 col0 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT - 63 + col0 * col0 FROM tab1 AS cor0
----
-54
4033
6337

query I rowsort
SELECT ALL col1 + tab0.col1 FROM tab0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col1 col0 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2358
SELECT DISTINCT + col2 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT + col2 / cor0.col0 AS col0 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT 74 + cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
-718
-7224
39

query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 - col2 * col0 col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT - ( col2 ) * - col1 * - col0 + col0 * + col0 * tab0.col0 FROM tab0
----
-54288
39480
40851

query I rowsort
SELECT tab2.col1 - - tab2.col2 * - col1 AS col2 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT col2 + col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - col0 * col0 - col2 FROM tab0 cor0
----
-1226
-609
-8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 + cor0.col2 col2 FROM tab1 AS cor0
----
120
78
81

query I rowsort
SELECT DISTINCT col0 + + col1 - col1 AS col1 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2368
SELECT - col0 * col1 - 63 DIV col0 FROM tab0 AS cor0
----
-2066
-3396
-8099

skipif mysql # not compatible
query I rowsort label-2368
SELECT - col0 * col1 - 63 / col0 FROM tab0 AS cor0
----
-2066
-3396
-8099

query I rowsort
SELECT - + 1 * col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - - 76 + col1 FROM tab1 AS cor0
----
102
86
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + cor0.col2 col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL - 80 AS col0 FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT 7 FROM tab1, tab0 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL col2 * ( col2 ) + - col2 * tab0.col0 FROM tab0
----
-34
-574
297

query I rowsort
SELECT ALL - ( col1 ) * col2 + tab1.col0 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - col1 * + col1 + + col1 FROM tab2
----
-272
-3422
-930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2377
SELECT 57 * + col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT 57 * + col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 69 + + col2 * + col1 FROM tab1 AS cor0
----
1317
1473
639

query I rowsort
SELECT DISTINCT - - col0 - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - col1 - col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL - 23 AS col1 FROM tab0
----
-23
-23
-23

query I rowsort
SELECT ALL + - 97 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT DISTINCT - 50 AS col0 FROM tab0, tab0 AS cor0
----
-50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2384
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 col1 FROM tab2
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2386
SELECT - col0 * ( 75 ) DIV + col1 + tab0.col0 FROM tab0
----
16
4
8

skipif mysql # not compatible
query I rowsort label-2386
SELECT - col0 * ( 75 ) / + col1 + tab0.col0 FROM tab0
----
16
4
8

query I rowsort
SELECT + cor1.col2 AS col2 FROM tab0, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT ALL + col0 * + col0 + col0 + - col2 FROM tab2
----
29
6136
6282

query I rowsort
SELECT ALL - col2 * 51 AS col0 FROM tab0
----
-1683
-4182
-51

query I rowsort
SELECT DISTINCT 56 AS col0 FROM tab2 AS cor0
----
56

query I rowsort
SELECT DISTINCT - col0 + 4 FROM tab0 cor0
----
-20
-31
-85

query I rowsort
SELECT - cor0.col2 + col0 AS col1 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT 71 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT 12 AS col1 FROM tab2, tab1 AS cor0
----
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2395
SELECT + - CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT + - CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - tab2.col1 + + col2 - + col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL 51 + - col2 - ( - col1 ) FROM tab1
----
-32
23
4

query I rowsort
SELECT - + 55 + - col2 + - col1 AS col1 FROM tab2 AS cor0
----
-110
-113
-140

query I rowsort
SELECT + + cor0.col0 + cor0.col1 * - col1 AS col2 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + 25 AS col0 FROM tab2 AS cor0
----
1469
701
754

query I rowsort
SELECT ALL - + col2 + col0 - + cor0.col1 FROM tab2 cor0
----
-51
-7
24

query I rowsort
SELECT - col1 + ( col1 ) AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - + cor0.col0 * 94 * 31 + col1 * cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
-250983
-62507
-92580

query I rowsort
SELECT ALL - col2 * col1 * + col2 AS col1 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT - col0 + - ( - col1 + + col1 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to c8e4a9d810c83d17322e338b2adc95b6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2407
SELECT - col1 * - col2 + col0 DIV + col0 FROM tab0 AS cor0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-2407
SELECT - col1 * - col2 + col0 / + col0 FROM tab0 AS cor0
----
2839
7463
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2408
SELECT - + CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-2408
SELECT - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL cor1.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL - col0 * col2 AS col1 FROM tab0 cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 * cor0.col0 col0 FROM tab2, tab2 AS cor0
----
140
1560
1580

query I rowsort
SELECT col2 * + 59 FROM tab0 AS cor0
----
1947
4838
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2413
SELECT + col1 * + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT + col1 * + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 * ( cor0.col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + col2 * + ( + 26 * tab2.col1 ) AS col2 FROM tab2
----
16796
21762
39884

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab1, tab2 cor0
----
62

query I rowsort
SELECT DISTINCT tab1.col1 * - col0 AS col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL + col0 * 94 FROM tab2
----
658
7332
7426

query I rowsort
SELECT + 70 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT DISTINCT col1 * 49 FROM tab1
----
1274
490
637

query I rowsort
SELECT - col0 + + 94 * - col0 * - col0 FROM tab0
----
115115
54120
744485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 * - col2 col2 FROM tab0 cor0
----
3135
7790
95

query I rowsort
SELECT - col2 * + cor0.col2 * ( 78 ) AS col1 FROM tab2 AS cor0
----
-112632
-52728
-56862

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2426
SELECT DISTINCT col2 DIV col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT col2 / col1 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2427
SELECT - tab0.col2 DIV tab0.col2 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

skipif mysql # not compatible
query I rowsort label-2427
SELECT - tab0.col2 / tab0.col2 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2428
SELECT ALL CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT - tab1.col2 * col2 AS col0 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT 16 - col1 FROM tab0
----
-70
-75
-81

query I rowsort
SELECT ALL + + cor0.col1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + col2 * col2 * - col0 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT ALL + 89 * + cor0.col2 FROM tab1 AS cor0
----
4806
5073
8544

query I rowsort
SELECT DISTINCT + - col2 * cor0.col2 AS col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT + - 42 * col1 AS col0 FROM tab1 AS cor0
----
-1092
-420
-546

query I rowsort
SELECT + 56 + + cor0.col0 FROM tab0 AS cor0
----
145
80
91

query I rowsort
SELECT ( + col2 ) + cor0.col1 AS col0 FROM tab1 cor0
----
109
67
80

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 cor0, tab1 AS cor1
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

query I rowsort
SELECT DISTINCT col2 + - col1 * tab2.col2 FROM tab2
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2440
SELECT + 16 + + col0 + - CAST( NULL AS SIGNED ) * 27 * - col2 col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2440
SELECT + 16 + + col0 + - CAST ( NULL AS INTEGER ) * 27 * - col2 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * col1 + + 87 * col1 AS col0 FROM tab0
----
10320
15379
8536

query I rowsort
SELECT 80 + tab0.col2 * 60 AS col1 FROM tab0
----
140
2060
5000

onlyif mysql # use DIV operator for integer division
query I rowsort label-2443
SELECT col0 + col0 DIV - col1 FROM tab1
----
3
58
74

skipif mysql # not compatible
query I rowsort label-2443
SELECT col0 + col0 / - col1 FROM tab1
----
3
58
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col1 FROM tab2
----
78
78
78

query I rowsort
SELECT DISTINCT - 61 + - col1 AS col2 FROM tab0
----
-147
-152
-158

query I rowsort
SELECT - + col0 * col0 + - 25 AS col0 FROM tab0 cor0
----
-1250
-601
-7946

query I rowsort
SELECT DISTINCT + col2 * col2 + 87 FROM tab2 AS cor0
----
1531
763
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-2448
SELECT ALL + col0 * - col0 DIV + col0 + 46 AS col2 FROM tab1 AS cor0
----
-18
-34
43

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL + col0 * - col0 / + col0 + 46 AS col2 FROM tab1 AS cor0
----
-18
-34
43

query I rowsort
SELECT ALL - 6 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 8be8910507908e6353d02a545b748252

query I rowsort
SELECT - cor0.col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2451
SELECT col0 * col1 + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1120
704
81

skipif mysql # not compatible
query I rowsort label-2451
SELECT col0 * col1 + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + 57 + col2 * - 37 FROM tab1 AS cor0
----
-1941
-2052
-3495

query I rowsort
SELECT - col1 + + cor0.col2 * + 64 AS col2 FROM tab1 AS cor0
----
3430
3638
6131

query I rowsort
SELECT ALL - - cor0.col2 + 39 * + col2 + cor0.col0 AS col1 FROM tab2 cor0
----
1087
1118
1599

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2455
SELECT - col2 * + CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT - col2 * + CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - 28 FROM tab1 AS cor0
----
-1512
-1596
-2688

query I rowsort
SELECT DISTINCT - - cor0.col0 * col2 + - col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL + + col2 * + 91 AS col0 FROM tab2 AS cor0
----
2366
2457
3458

query I rowsort
SELECT - cor0.col1 * col0 + - 49 FROM tab1 AS cor0
----
-1089
-127
-689

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2460
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) * + 26 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) * + 26 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - col0 + 42 AS col0 FROM tab1 AS cor0
----
-22
-38
39

query I rowsort
SELECT ALL + + col2 + - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT col0 * + col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + col2 * 83 + + ( - col1 * cor0.col0 ) FROM tab2 AS cor0
----
-2444
1811
2024

query I rowsort
SELECT - + cor0.col2 * - col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT col0 + - col2 * - col1 AS col2 FROM tab1 AS cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * col1 col1 FROM tab1
----
1000
17576
2197

query I rowsort
SELECT DISTINCT - 77 + - col0 AS col0 FROM tab2
----
-155
-156
-84

query I rowsort
SELECT ALL - col2 + - 79 * col0 AS col0 FROM tab2 AS cor0
----
-580
-6188
-6279

query I rowsort
SELECT + col0 + - 74 * - 61 FROM tab1 AS cor0
----
4517
4578
4594

query I rowsort
SELECT col2 * + 89 * col2 + + col2 + col2 * - col1 FROM tab2 AS cor0
----
127908
58656
64071

query I rowsort
SELECT + col0 + 25 FROM tab1 AS cor0
----
105
28
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col1 col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL - 63 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
126
1965
2939

query I rowsort
SELECT + + 17 + - ( - col0 ) FROM tab0 AS cor0
----
106
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * + 80 * col0 col1 FROM tab2 AS cor0
----
5600
62400
63200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2477
SELECT DISTINCT - ( - col2 ) * col0 - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2477
SELECT DISTINCT - ( - col2 ) * col0 - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * 53 + col2 FROM tab0 AS cor0
----
1305
1856
4799

query I rowsort
SELECT ALL + ( + col2 ) * col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT col2 + col0 * - col2 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL + 70 AS col1 FROM tab1 cor0
----
70
70
70

query I rowsort
SELECT DISTINCT + + cor0.col0 * - col0 * + col2 + + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1540
-162786
-238501

query I rowsort
SELECT ALL + col0 + col0 * - col1 - - 64 FROM tab1 AS cor0
----
-11
-512
-896

query I rowsort
SELECT DISTINCT - ( - 33 ) FROM tab0 cor0
----
33

query I rowsort
SELECT - + col2 * 99 + col0 FROM tab1 AS cor0
----
-5343
-5579
-9424

query I rowsort
SELECT DISTINCT + col0 * - ( col1 ) + + ( col1 * + col2 ) FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT ALL ( + cor0.col0 ) FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2488
SELECT 61 - + ( - cor0.col1 ) DIV - col1 col1 FROM tab0 AS cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2488
SELECT 61 - + ( - cor0.col1 ) / - col1 col1 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT DISTINCT + 20 AS col0 FROM tab1 AS cor0
----
20

query I rowsort
SELECT + col0 * col0 + col1 * + col2 * col2 FROM tab0
----
1322
619805
94230

query I rowsort
SELECT - 25 * col0 AS col0 FROM tab2 AS cor0
----
-175
-1950
-1975

query I rowsort
SELECT DISTINCT - + col2 * + col1 - - col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL + cor0.col1 * + col2 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - ( col2 ) * - col2 col2 FROM tab2
----
1427
617
698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 * tab0.col1 col0 FROM tab0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2496
SELECT ALL - col0 DIV - ( + ( cor0.col0 ) ) AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL - col0 / - ( + ( cor0.col0 ) ) AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - col1 + - col2 * - col2 FROM tab2 AS cor0
----
1427
617
698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2498
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2498
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col2 + + ( - col1 ) * - col2 * ( + col2 * + col0 ) AS col0 FROM tab0 AS cor0
----
2247729
3396
54457758

query I rowsort
SELECT - 17 + col0 + col2 AS col2 FROM tab2 AS cor0
----
100
17
87

query I rowsort
SELECT - 29 + 17 AS col2 FROM tab0 AS cor0
----
-12
-12
-12

query I rowsort
SELECT - col0 + 1 AS col1 FROM tab0 cor0
----
-23
-34
-88

query I rowsort
SELECT 69 * + col1 * col1 + col1 * col1 FROM tab2 AS cor0
----
20230
243670
67270

query I rowsort
SELECT - - 23 - 60 AS col1 FROM tab2 AS cor0
----
-37
-37
-37

query I rowsort
SELECT col0 * col1 + + col2 * + ( col2 ) - + col1 AS col1 FROM tab0 AS cor0
----
14732
3067
3299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 + - col0 * cor0.col0 * - col1 + col2 col1 FROM tab0 AS cor0
----
118775
49518
720842

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2507
SELECT CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2507
SELECT CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + col1 * ( + col1 ) - ( 89 ) AS col0 FROM tab2 AS cor0
----
200
3392
872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + col2 col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT + + col1 * + col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - + cor0.col0 * + col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT cor0.col0 * col2 + 15 AS col1 FROM tab2 AS cor0
----
204
2043
3017

query I rowsort
SELECT DISTINCT + + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - col1 col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - - col1 + col1 AS col0 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-2516
SELECT ALL - col2 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL - col2 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT col0 * col2 + + 86 FROM tab0 AS cor0
----
121
7384
878

query I rowsort
SELECT ALL + - 29 + col2 + col2 AS col2 FROM tab1 AS cor0
----
163
79
85

query I rowsort
SELECT DISTINCT + - cor0.col2 + col2 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2520
SELECT ALL - - col1 DIV - col1 - col0 FROM tab2 cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL - - col1 / - col1 - col0 FROM tab2 cor0
----
-79
-8
-80

query I rowsort
SELECT + + 55 + - col0 FROM tab0 AS cor0
----
-34
20
31

query I rowsort
SELECT - cor0.col2 + - col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL 96 AS col2 FROM tab2
----
96
96
96

query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * ( 83 ) * + col0 col1 FROM tab1 cor0
----
-13446
-302784
-637440

query I rowsort
SELECT - col2 + 56 * cor0.col0 FROM tab0 cor0
----
1311
1959
4902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2527
SELECT ALL + - cor0.col2 * CAST( 60 * - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
174960
194940
552960

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL + - cor0.col2 * CAST ( 60 * - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
174960
194940
552960

onlyif mysql # use DIV operator for integer division
query I rowsort label-2528
SELECT DISTINCT col1 DIV ( ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT col1 / ( ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 col0 FROM tab1
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2530
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-2530
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 59 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * - col2 col1 FROM tab1 AS cor0
----
2916
3249
9216

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7

query I rowsort
SELECT - + col0 + col0 + col1 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + 29 * + col1 + + col1 - + col1 FROM tab0 AS cor0
----
2494
2639
2813

query I rowsort
SELECT ALL cor0.col0 - - 23 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to aae25a385e3610a434f174d9d8117b0c

query I rowsort
SELECT ALL col0 * + tab1.col2 AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL tab0.col0 + - col1 AS col1 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT 44 + col1 AS col2 FROM tab0 AS cor0
----
130
135
141

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2542
SELECT + - CAST( NULL AS SIGNED ) / - 24 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2542
SELECT + - CAST ( NULL AS INTEGER ) / - 24 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 25 ) col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT - col0 + - cor0.col0 * - 90 AS col0 FROM tab1 AS cor0
----
267
5696
7120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2545
SELECT - + col0 * + col0 + CAST( + 43 AS SIGNED ) + + col0 AS col0 FROM tab0 AS cor0
----
-1147
-509
-7789

skipif mysql # not compatible
query I rowsort label-2545
SELECT - + col0 * + col0 + CAST ( + 43 AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0
----
-1147
-509
-7789

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-2547
SELECT - col0 DIV + col0 + col2 col1 FROM tab0 AS cor0
----
0
32
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2547
SELECT - col0 / + col0 + col2 col1 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col0 + - 60 AS col2 FROM tab2 AS cor0
----
-53
18
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 + + col1 * col1 col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - col2 + col0 AS col2 FROM tab0 cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 + 35 col2 FROM tab2 AS cor0
----
128
128
128

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2553
SELECT DISTINCT CAST( 38 AS SIGNED ) + - col0 * ( cor0.col2 ) AS col0 FROM tab2 cor0
----
-151
-1990
-2964

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT CAST ( 38 AS INTEGER ) + - col0 * ( cor0.col2 ) AS col0 FROM tab2 cor0
----
-151
-1990
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-2554
SELECT - ( col1 ) * cor0.col0 + ( col2 ) DIV col0 FROM tab1 AS cor0
----
-1039
-60
-640

skipif mysql # not compatible
query I rowsort label-2554
SELECT - ( col1 ) * cor0.col0 + ( col2 ) / col0 FROM tab1 AS cor0
----
-1039
-60
-640

query I rowsort
SELECT 58 AS col2 FROM tab2 AS cor0
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 * 52 + + col1 col2 FROM tab1 AS cor0
----
3234
3237
3250

query I rowsort
SELECT - col2 + - col0 * - col1 * col0 AS col1 FROM tab2 AS cor0
----
106059
1492
358930

query I rowsort
SELECT DISTINCT + col1 + ( - col1 ) + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + col0 * col1 * - col2 + 74 * + ( - col0 * - 31 ) AS col2 FROM tab1 AS cor0
----
110336
2670
83680

query I rowsort
SELECT DISTINCT cor0.col1 + col0 - - col0 AS col1 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT DISTINCT - ( 71 ) + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-33
-44
-45

query I rowsort
SELECT - - 50 + col1 + col2 AS col0 FROM tab1 AS cor0
----
117
130
159

query I rowsort
SELECT ALL + 18 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-126
-1404
-1422

query I rowsort
SELECT + 73 + col0 FROM tab0 AS cor0
----
108
162
97

query I rowsort
SELECT ALL + col2 * 35 * - col1 FROM tab2 AS cor0
----
-22610
-29295
-53690

query I rowsort
SELECT DISTINCT - ( col0 ) AS col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + 68 * col0 FROM tab2 AS cor0
----
476
5304
5372

query I rowsort
SELECT ALL + 71 * col1 AS col0 FROM tab0 AS cor0
----
6106
6461
6887

query I rowsort
SELECT DISTINCT 24 + col0 * ( 88 ) AS col1 FROM tab2 AS cor0
----
640
6888
6976

query I rowsort
SELECT ALL 22 * - col2 AS col0 FROM tab0 AS cor0
----
-1804
-22
-726

query I rowsort
SELECT ( + col0 ) * col1 + - ( col1 ) AS col2 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT col1 - + 92 FROM tab2
----
-33
-61
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2573
SELECT DISTINCT + cor0.col1 DIV col1 - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-2573
SELECT DISTINCT + cor0.col1 / col1 - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2574
SELECT ALL + col2 * - CAST( + col0 * col2 AS SIGNED ) FROM tab1 cor0
----
-207936
-737280
-8748

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL + col2 * - CAST ( + col0 * col2 AS INTEGER ) FROM tab1 cor0
----
-207936
-737280
-8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-2575
SELECT - col2 DIV col1 + col1 AS col0 FROM tab1 AS cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-2575
SELECT - col2 / col1 + col1 AS col0 FROM tab1 AS cor0
----
24
5
6

query I rowsort
SELECT ALL + - cor0.col2 * ( + 77 ) + - col1 FROM tab2 AS cor0
----
-2061
-2110
-2943

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 * cor1.col2 col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 00f153c5d80e692faff5018d8701b92d

query I rowsort
SELECT DISTINCT - 76 FROM tab0, tab1 AS cor0
----
-76

query I rowsort
SELECT col2 * - 89 + 23 FROM tab2
----
-2291
-2380
-3359

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-2581
SELECT ALL col0 DIV 93 + + 9 AS col0 FROM tab1
----
9
9
9

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL col0 / 93 + + 9 AS col0 FROM tab1
----
9
9
9

query I rowsort
SELECT DISTINCT - + ( col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + - col1 + + col2 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT ALL col0 + + 41 AS col1 FROM tab2 AS cor0
----
119
120
48

query I rowsort
SELECT tab0.col1 * 48 AS col0 FROM tab0
----
4128
4368
4656

query I rowsort
SELECT + col1 * ( tab2.col1 ) * col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ALL tab2.col2 * col1 + - col2 FROM tab2
----
1508
608
810

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1 cor2, tab2 AS cor3
----
3645 values hashing to 9aea36b1adc82580fae09bf05c24fd77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 9 + 98 + + col1 col0 FROM tab0 AS cor0
----
193
198
204

query I rowsort
SELECT cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - 96 + 33 FROM tab1
----
-63
-63
-63

query I rowsort
SELECT + col0 * 65 FROM tab1
----
195
4160
5200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2593
SELECT DISTINCT ( + ( col0 ) ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT ( + ( col0 ) ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - tab2.col2 * - col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL col0 + ( - tab2.col1 ) * + 59 AS col1 FROM tab2
----
-1822
-3403
-924

query I rowsort
SELECT DISTINCT - ( - ( - col2 ) ) * cor0.col0 - - col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT 65 + 62 FROM tab0 AS cor0
----
127
127
127

query I rowsort
SELECT DISTINCT + col1 * 80 - - col1 * - col2 FROM tab2 cor0
----
1643
3186
714

query I rowsort
SELECT - ( col2 ) - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - 35 * col1 FROM tab1 cor0
----
-350
-455
-910

query I rowsort
SELECT + + 86 + - col0 FROM tab0 AS cor0
----
-3
51
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2602
SELECT + col2 - + col0 DIV col1 col2 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2602
SELECT + col2 - + col0 / col1 col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col0 * - col1 * col1 + col0 + 49 * col1 AS col1 FROM tab1 AS cor0
----
-12803
-5846
-751

onlyif mysql # use DIV operator for integer division
query I rowsort label-2604
SELECT DISTINCT CAST( col0 AS SIGNED ) * col2 - + ( - col0 ) DIV col2 AS col0 FROM tab1 AS cor0
----
162
3649
7680

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT CAST ( col0 AS INTEGER ) * col2 - + ( - col0 ) / col2 AS col0 FROM tab1 AS cor0
----
162
3649
7680

query I rowsort
SELECT col1 * + tab2.col1 + + ( + 78 ) AS col2 FROM tab2
----
1039
3559
367

query I rowsort
SELECT + tab0.col0 + - col2 AS col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT 76 + + col1 AS col0 FROM tab1
----
102
86
89

query I rowsort
SELECT DISTINCT - col2 * + col2 AS col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT + col1 - col2 * + 19 * 76 FROM tab0
----
-118317
-1347
-47566

query I rowsort
SELECT 98 - + col0 AS col2 FROM tab0
----
63
74
9

query I rowsort
SELECT tab2.col2 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL - cor0.col2 * col0 + - col1 * 5 FROM tab2 AS cor0
----
-2323
-3087
-344

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * cor0.col1 col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT 64 AS col1 FROM tab1
----
64

query I rowsort
SELECT ALL 1 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col1 FROM tab1
----
-7
-7
-7

query I rowsort
SELECT col2 * 1 + + col1 + + cor0.col1 * 64 FROM tab1 AS cor0
----
1744
707
941

query I rowsort
SELECT DISTINCT + + col0 + + 32 FROM tab0 AS cor0
----
121
56
67

query I rowsort
SELECT ALL + - col1 * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col0 + ( cor0.col2 ) * + col2 FROM tab2 AS cor0
----
1523
736
754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2622
SELECT - col1 * - CAST( NULL AS SIGNED ) - 89 / + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2622
SELECT - col1 * - CAST ( NULL AS INTEGER ) - 89 / + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + 90 * + col0 FROM tab2 AS cor0
----
599
6961
7093

query I rowsort
SELECT - + 94 + + cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b1e404923ebdd9c7773b08daee327fad

query I rowsort
SELECT ALL col0 * 33 FROM tab1 AS cor0
----
2112
2640
99

query I rowsort
SELECT + col1 * - 96 AS col2 FROM tab0 AS cor0
----
-8256
-8736
-9312

query I rowsort
SELECT ALL col1 + - 51 AS col0 FROM tab2 AS cor0
----
-20
-34
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 + col1 col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL + + col0 * ( col2 ) + - col0 FROM tab0 cor0
----
0
7209
768

query I rowsort
SELECT ALL + 99 AS col2 FROM tab2
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * col2 + col0 col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT + cor0.col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL - - 92 AS col1 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT DISTINCT + + ( col1 ) + - col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + + col2 * + col2 * col1 AS col0 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL + 6 FROM tab0
----
6
6
6

query I rowsort
SELECT + 11 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT DISTINCT - 68 FROM tab2 cor0
----
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-2639
SELECT + 44 + cor0.col2 DIV ( col1 ) FROM tab1 AS cor0
----
46
49
51

skipif mysql # not compatible
query I rowsort label-2639
SELECT + 44 + cor0.col2 / ( col1 ) FROM tab1 AS cor0
----
46
49
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-2640
SELECT - - col0 DIV + col2 AS col0 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2640
SELECT - - col0 / + col2 AS col0 FROM tab0 cor0
----
0
1
35

query I rowsort
SELECT col1 * col0 * - col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + - 19 * + col2 FROM tab2 cor0
----
-494
-513
-722

query I rowsort
SELECT + cor0.col1 * - col2 * - 79 AS col2 FROM tab0 AS cor0
----
224202
589498
7663

query I rowsort
SELECT 58 * - col1 AS col0 FROM tab1 AS cor0
----
-1508
-580
-754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 61 + + cor0.col2 * col0 col0 FROM tab2 AS cor0
----
-1571
-1702
1965

query I rowsort
SELECT DISTINCT + col0 + col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - - cor0.col0 + ( col1 ) * col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT - - col1 + cor0.col0 * 45 FROM tab1 AS cor0
----
161
2890
3613

query I rowsort
SELECT col0 * + cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 76 col0 FROM tab0 AS cor0
----
-43
-75
6

query I rowsort
SELECT + + col1 + 47 FROM tab2 AS cor0
----
106
64
78

query I rowsort
SELECT ALL + col0 * - 56 FROM tab2 cor0
----
-392
-4368
-4424

onlyif mysql # use DIV operator for integer division
query I rowsort label-2653
SELECT DISTINCT cor0.col2 DIV ( + cor0.col2 ) AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT cor0.col2 / ( + cor0.col2 ) AS col1 FROM tab1 cor0
----
1

query I rowsort
SELECT - col2 + 1 * - col1 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2655
SELECT ALL - col1 / + CAST( NULL AS SIGNED ) - + col0 * cor0.col0 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL - col1 / + CAST ( NULL AS INTEGER ) - + col0 * cor0.col0 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + 13 * + 50 FROM tab0 cor0
----
651
683
732

query I rowsort
SELECT col2 * - cor0.col2 + col0 FROM tab0 AS cor0
----
-1065
-6635
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2658
SELECT ALL + col1 DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL + col1 / - col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT ( - col1 ) + col1 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT ( - col0 ) + + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + 21 * - col0 AS col1 FROM tab2 AS cor0
----
147
1638
1659

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 98 + + col2 col1 FROM tab1
----
348
6329
7936

query I rowsort
SELECT - 67 FROM tab1 cor0
----
-67
-67
-67

query I rowsort
SELECT - 64 AS col2 FROM tab1 AS cor0
----
-64
-64
-64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2665
SELECT + cor0.col2 * + ( col1 ) + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
0
2752
7371

skipif mysql # not compatible
query I rowsort label-2665
SELECT + cor0.col2 * + ( col1 ) + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
0
2752
7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col1 col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ALL - 18 * col0 FROM tab1 AS cor0
----
-1152
-1440
-54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2668
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - 82 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2668
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - 82 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - + cor0.col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + cor0.col1 + + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 32 col1 FROM tab1
----
320
416
832

query I rowsort
SELECT + cor0.col1 + ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2673
SELECT + col1 DIV - col0 AS col1 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2673
SELECT + col1 / - col0 AS col1 FROM tab1
----
-8
0
0

query I rowsort
SELECT ( col0 ) + + col1 * col1 AS col2 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT + col1 * 4 - - col0 AS col0 FROM tab0 AS cor0
----
368
423
453

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + - 70 AS col1 FROM tab2 AS cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT + - col2 + col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + 62 * col0 AS col1 FROM tab1 AS cor0
----
186
3968
4960

query I rowsort
SELECT ALL + - ( cor0.col0 ) * - ( col2 ) + col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
270
3762
7872

query I rowsort
SELECT + cor1.col1 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2683
SELECT ALL + CAST( NULL AS SIGNED ) + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL + CAST ( NULL AS INTEGER ) + + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + 35 * + tab2.col0 ) AS col0 FROM tab2
----
-245
-2730
-2765

query I rowsort
SELECT - tab0.col1 * + col0 + col0 FROM tab0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 7 col2 FROM tab1
----
-182
-70
-91

query I rowsort
SELECT 52 * + col0 AS col1 FROM tab1
----
156
3328
4160

query I rowsort
SELECT + col0 * 14 FROM tab1
----
1120
42
896

query I rowsort
SELECT 10 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT + - cor0.col1 * - 55 FROM tab1 AS cor0
----
1430
550
715

query I rowsort
SELECT + col0 + + ( - col2 * col2 + - col2 ) AS col0 FROM tab2 AS cor0
----
-1403
-624
-749

query I rowsort
SELECT ALL cor0.col0 + - 4 FROM tab2, tab2 AS cor0
----
9 values hashing to dfaecbc7b6799fd6ec46c930df63353a

query I rowsort
SELECT col0 * + col0 + + col1 AS col2 FROM tab1
----
35
4106
6413

query I rowsort
SELECT DISTINCT - 98 FROM tab2
----
-98

query I rowsort
SELECT col2 * 2 AS col2 FROM tab2
----
52
54
76

query I rowsort
SELECT + ( 9 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col1 col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - 50 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-50

query I rowsort
SELECT - 70 + col2 * + ( 61 ) AS col2 FROM tab2
----
1516
1577
2248

query I rowsort
SELECT ALL - 38 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT 21 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2702
SELECT DISTINCT + 43 + col2 * CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
-7255
-749
8

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT + 43 + col2 * CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
-7255
-749
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2703
SELECT col1 DIV + col2 + 76 AS col1 FROM tab0 AS cor0
----
173
77
78

skipif mysql # not compatible
query I rowsort label-2703
SELECT col1 / + col2 + 76 AS col1 FROM tab0 AS cor0
----
173
77
78

query I rowsort
SELECT - 26 + - col0 AS col2 FROM tab2 AS cor0
----
-104
-105
-33

query I rowsort
SELECT ALL 80 + + col1 + + ( 1 ) FROM tab0 AS cor0
----
167
172
178

onlyif mysql # use DIV operator for integer division
query I rowsort label-2706
SELECT + col0 * col2 DIV col1 - + cor0.col1 * col1 col1 FROM tab1 AS cor0
----
-670
264
421

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2706
SELECT + col0 * col2 / col1 - + cor0.col1 * col1 col1 FROM tab1 AS cor0
----
-670
264
421

query I rowsort
SELECT + col1 + + col2 * tab2.col2 AS col1 FROM tab2
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 36 col2 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT + col1 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - col2 + + ( col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 * col2 + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - - col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + col2 * - col1 + 27 FROM tab1 AS cor0
----
-1221
-1377
-543

query I rowsort
SELECT DISTINCT - col0 * 38 FROM tab0 AS cor0
----
-1330
-3382
-912

query I rowsort
SELECT DISTINCT - + cor0.col0 * ( - 38 ) FROM tab2 AS cor0
----
266
2964
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2716
SELECT + col2 DIV - 45 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2716
SELECT + col2 / - 45 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + - 61 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT ALL - ( col0 * col2 ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT col1 * col2 + + col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + col2 * col0 * + col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2722
SELECT ALL + col0 * ( col0 ) + 88 DIV + 32 AS col1 FROM tab1 AS cor0
----
11
4098
6402

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL + col0 * ( col0 ) + 88 / + 32 AS col1 FROM tab1 AS cor0
----
11
4098
6402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - 2 + col1 col1 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT - col0 * + col2 + col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT 72 AS col0 FROM tab0, tab0 cor0
----
72

query I rowsort
SELECT ALL cor0.col2 * 65 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT DISTINCT + + 87 FROM tab1 AS cor0
----
87

query I rowsort
SELECT ALL - 64 FROM tab2, tab0 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT DISTINCT col1 + col0 + col2 * col1 FROM tab0 AS cor0
----
229
2948
7642

query I rowsort
SELECT DISTINCT - 9 * + cor0.col2 + col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-53
3247
718

query I rowsort
SELECT - + 16 + + col0 FROM tab1 AS cor0
----
-13
48
64

query I rowsort
SELECT ALL + 67 * col0 AS col2 FROM tab2 cor0
----
469
5226
5293

onlyif mysql # use DIV operator for integer division
query I rowsort label-2733
SELECT + cor0.col2 DIV + col0 + col2 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-2733
SELECT + cor0.col2 / + col0 + col2 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT - 78 + col2 FROM tab2 AS cor0
----
-40
-51
-52

query I rowsort
SELECT DISTINCT 92 * col0 + col2 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
1416
3185
890

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2736
SELECT ALL + 56 + + col0 * + ( ( col2 ) ) * - CAST( col1 * + col0 AS SIGNED ) + 35 AS col2 FROM tab1 AS cor0
----
-12545
-2334629
-7987109

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL + 56 + + col0 * + ( ( col2 ) ) * - CAST ( col1 * + col0 AS INTEGER ) + 35 AS col2 FROM tab1 AS cor0
----
-12545
-2334629
-7987109

query I rowsort
SELECT ALL - cor0.col0 * - cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL - - 71 AS col1 FROM tab2 cor0
----
71
71
71

query I rowsort
SELECT ALL - + 81 AS col2 FROM tab1 AS cor0
----
-81
-81
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2740
SELECT - + col2 * + cor0.col1 - CAST( - col2 * + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1242
3078
6432

skipif mysql # not compatible
query I rowsort label-2740
SELECT - + col2 * + cor0.col1 - CAST ( - col2 * + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT DISTINCT + col0 * + col2 + - col2 + 75 FROM tab2 AS cor0
----
2077
237
3039

query I rowsort
SELECT + - col0 * + col1 + cor0.col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL - 32 FROM tab1 AS cor0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT + 59 - col0 FROM tab1
----
-21
-5
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 69 ) col0 FROM tab1
----
69
69
69

query I rowsort
SELECT + col0 * col0 AS col0 FROM tab1
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2747
SELECT + ( - tab2.col0 ) DIV - col0 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2747
SELECT + ( - tab2.col0 ) / - col0 AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT + 6 * tab2.col2 AS col2 FROM tab2
----
156
162
228

query I rowsort
SELECT ALL - 66 AS col1 FROM tab0 AS cor0
----
-66
-66
-66

query I rowsort
SELECT - - 70 FROM tab2 AS cor0
----
70
70
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2751
SELECT ALL + col2 + + col2 DIV ( - cor0.col2 * cor0.col1 ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL + col2 + + col2 / ( - cor0.col2 * cor0.col1 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT 19 * col2 AS col0 FROM tab0 AS cor0
----
1558
19
627

query I rowsort
SELECT DISTINCT - 28 * col2 AS col2 FROM tab2 cor0
----
-1064
-728
-756

query I rowsort
SELECT + cor0.col1 * - col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2755
SELECT ALL + col2 * - cor0.col0 + + CAST( + col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL + col2 * - cor0.col0 + + CAST ( + col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2756
SELECT ALL + tab0.col2 * - col0 + - CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
-70
-7387
-816

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL + tab0.col2 * - col0 + - CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT 91 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

onlyif mysql # use DIV operator for integer division
query I rowsort label-2758
SELECT cor0.col2 * col1 + + 56 DIV col0 col2 FROM tab2 AS cor0
----
1534
646
845

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2758
SELECT cor0.col2 * col1 + + 56 / col0 col2 FROM tab2 AS cor0
----
1534
646
845

onlyif mysql # use DIV operator for integer division
query I rowsort label-2759
SELECT - col0 * col1 - cor0.col2 DIV + col2 FROM tab1 AS cor0
----
-1041
-641
-79

skipif mysql # not compatible
query I rowsort label-2759
SELECT - col0 * col1 - cor0.col2 / + col2 FROM tab1 AS cor0
----
-1041
-641
-79

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 + 54 * - col2 * col2 + - ( col0 ) AS col2 FROM tab1
----
-157467
-175510
-497744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 + col2 col0 FROM tab2
----
44
45
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-2763
SELECT tab0.col1 * col0 DIV 22 col1 FROM tab0
----
154
368
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2763
SELECT tab0.col1 * col0 / 22 col1 FROM tab0
----
154
368
93

query I rowsort
SELECT DISTINCT + - 18 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT col1 * cor0.col0 + 39 FROM tab2 AS cor0
----
1382
256
4641

query I rowsort
SELECT ALL - col2 + - col2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT ALL tab1.col0 * col0 + - tab1.col0 AS col0 FROM tab1
----
4032
6
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-2768
SELECT - col1 DIV - 4 AS col2 FROM tab0 AS cor0
----
21
22
24

skipif mysql # not compatible
query I rowsort label-2768
SELECT - col1 / - 4 AS col2 FROM tab0 AS cor0
----
21
22
24

query I rowsort
SELECT ALL - col2 + - 54 * col1 FROM tab1
----
-1458
-597
-798

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2770
SELECT ALL CAST( - 96 AS SIGNED ) FROM tab0 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL CAST ( - 96 AS INTEGER ) FROM tab0 AS cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT - cor0.col0 * - col0 * - col1 AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT ( + 83 ) + cor0.col2 AS col0 FROM tab0 AS cor0
----
116
165
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-2773
SELECT ALL + ( col1 ) DIV col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL + ( col1 ) / col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT + 91 + 78 FROM tab1 AS cor0
----
169
169
169

query I rowsort
SELECT DISTINCT - 4 * + col2 FROM tab0 AS cor0
----
-132
-328
-4

query I rowsort
SELECT ALL - - 76 FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT ALL + col1 * + 28 AS col2 FROM tab0
----
2408
2548
2716

onlyif mysql # use DIV operator for integer division
query I rowsort label-2778
SELECT col1 + 69 DIV tab2.col0 FROM tab2
----
17
40
59

skipif mysql # not compatible
query I rowsort label-2778
SELECT col1 + 69 / tab2.col0 FROM tab2
----
17
40
59

query I rowsort
SELECT DISTINCT - 7 FROM tab1, tab1 cor0
----
-7

query I rowsort
SELECT ALL + col0 + + ( col0 ) + + col0 FROM tab0
----
105
267
72

query I rowsort
SELECT - col1 * + col0 + + tab0.col2 AS col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT + col1 - ( + col0 ) FROM tab2
----
-19
-62
24

query I rowsort
SELECT - ( tab1.col2 ) FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - cor0.col1 * col2 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2785
SELECT DISTINCT - + col1 + col2 DIV col0 - + 6 FROM tab0 AS cor0
----
-103
-91
-97

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT - + col1 + col2 / col0 - + 6 FROM tab0 AS cor0
----
-103
-91
-97

query I rowsort
SELECT + 10 * col0 AS col2 FROM tab0 AS cor0
----
240
350
890

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2787
SELECT DISTINCT - CAST( + 7 AS SIGNED ) * col2 col2 FROM tab2 AS cor0
----
-182
-189
-266

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT - CAST ( + 7 AS INTEGER ) * col2 col2 FROM tab2 AS cor0
----
-182
-189
-266

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 59 AS REAL ) + col0 AS col2 FROM tab0 AS cor0
----
148
83
94

query I rowsort
SELECT DISTINCT + ( 23 ) * col0 AS col2 FROM tab0 cor0
----
2047
552
805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) * col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + 14 AS col1 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT ALL + 41 AS col1 FROM tab0 AS cor0
----
41
41
41

query I rowsort
SELECT ALL - 8 * - 99 + col1 FROM tab0 cor0
----
878
883
889

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2794
SELECT DISTINCT + CAST( NULL AS SIGNED ) * cor0.col0 - + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * cor0.col0 - + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 + 73 * col2 FROM tab1 cor0
----
3945
4225
7088

onlyif mysql # use DIV operator for integer division
query I rowsort label-2796
SELECT DISTINCT - + ( - col2 ) DIV + col1 + col1 FROM tab1 AS cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT - + ( - col2 ) / + col1 + col1 FROM tab1 AS cor0
----
15
20
28

query I rowsort
SELECT ALL - col2 - 44 FROM tab1 AS cor0
----
-101
-140
-98

query I rowsort
SELECT + + col1 * + 11 FROM tab0 AS cor0
----
1001
1067
946

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 4fa4bd3038de6e74a345debc8ab4cd53

query I rowsort
SELECT - + ( 86 ) FROM tab1 AS cor0
----
-86
-86
-86

query I rowsort
SELECT + col1 + ( - col1 ) FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2802
SELECT + ( + cor0.col1 ) DIV - col1 + - 94 AS col0 FROM tab2 AS cor0
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-2802
SELECT + ( + cor0.col1 ) / - col1 + - 94 AS col0 FROM tab2 AS cor0
----
-95
-95
-95

query I rowsort
SELECT ALL - 72 FROM tab0, tab2 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 70 + col0 col2 FROM tab1 AS cor0
----
134
150
73

query I rowsort
SELECT DISTINCT col1 * - ( + ( + col2 ) * + col1 ) + col2 FROM tab0
----
-244035
-678960
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-2806
SELECT + col2 + col0 DIV col2 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-2806
SELECT + col2 + col0 / col2 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT DISTINCT - - col0 * cor0.col1 + + 20 AS col1 FROM tab2 cor0
----
1363
237
4622

query I rowsort
SELECT DISTINCT ( + 35 ) AS col0 FROM tab2
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * - col1 col0 FROM tab1
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2810
SELECT ALL CAST( NULL AS DECIMAL ) * col1 + col1 * col1 * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL CAST ( NULL AS REAL ) * col1 + col1 * col1 * col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - cor0.col0 col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL 41 * cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to c15533fb6957e815e6e8a2e0338907a5

query I rowsort
SELECT ALL 53 + + col1 + 46 AS col0 FROM tab2
----
116
130
158

query I rowsort
SELECT DISTINCT - tab1.col2 AS col0 FROM tab1, tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - + col2 - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - col1 * 95 + 47 + col0 FROM tab2 AS cor0
----
-1489
-2891
-5480

query I rowsort
SELECT ALL - col0 + + col0 * + col2 + - col1 FROM tab1
----
133
3574
7587

query I rowsort
SELECT ALL tab1.col0 * + col2 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT 19 * col2 AS col1 FROM tab1
----
1026
1083
1824

query I rowsort
SELECT + - col2 - + 19 FROM tab2 AS cor0
----
-45
-46
-57

query I rowsort
SELECT + col0 * - col1 + col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2822
SELECT col1 - + CAST( NULL AS SIGNED ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2822
SELECT col1 - + CAST ( NULL AS INTEGER ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - cor0.col1 + - ( col2 ) * + ( col2 ) + - col1 * col0 * 61 FROM tab1 AS cor0
----
-42929
-73696
-7752

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2824
SELECT - - col0 + + ( col0 ) * + cor0.col0 * - CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1316
-158106
-237079

skipif mysql # not compatible
query I rowsort label-2824
SELECT - - col0 + + ( col0 ) * + cor0.col0 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1316
-158106
-237079

query I rowsort
SELECT + cor0.col2 * col2 AS col0 FROM tab2 cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - tab1.col0 + + ( col1 * + col0 ) col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT col1 + 84 + + 9 * col0 FROM tab0
----
386
496
976

query I rowsort
SELECT 36 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT 44 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT + col1 + + 27 AS col0 FROM tab1 AS cor0
----
37
40
53

query I rowsort
SELECT DISTINCT + - 97 AS col1 FROM tab1 AS cor0
----
-97

query I rowsort
SELECT - col2 + col1 * - cor0.col0 AS col2 FROM tab0 cor0
----
-2097
-3396
-8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-2833
SELECT + + col1 + - ( col1 ) DIV 46 + 92 FROM tab2 AS cor0
----
109
123
150

skipif mysql # not compatible
query I rowsort label-2833
SELECT + + col1 + - ( col1 ) / 46 + 92 FROM tab2 AS cor0
----
109
123
150

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 * ( col2 + ( + cor0.col0 ) ) col2 FROM tab0 AS cor0
----
-1944
-3078
-9234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 + col2 - col0 col2 FROM tab0 cor0
----
35
62
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2837
SELECT DISTINCT + + col2 DIV + 23 + col1 + col0 * col2 FROM tab1 cor0
----
190
3660
7697

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT + + col2 / + 23 + col1 + col0 * col2 FROM tab1 cor0
----
190
3660
7697

query I rowsort
SELECT ALL - ( - col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + col2 * col0 + + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - 58 * col0 + col2 + + col1 FROM tab0 cor0
----
-1273
-1932
-4989

query I rowsort
SELECT ALL - + ( col1 ) * + col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2842
SELECT DISTINCT + ( 29 ) DIV + col0 + col2 * col0 + col0 col1 FROM tab1 AS cor0
----
174
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT + ( 29 ) / + col0 + col2 * col0 + col0 col1 FROM tab1 AS cor0
----
174
3712
7760

query I rowsort
SELECT + ( col0 ) * - col1 + 18 * - col1 AS col1 FROM tab1 AS cor0
----
-1274
-546
-820

query I rowsort
SELECT col2 + col0 * + 30 + - col2 FROM tab2 AS cor0
----
210
2340
2370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col0 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT col1 * - cor0.col0 + col2 + + col0 AS col0 FROM tab2 AS cor0
----
-1226
-183
-4498

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2847
SELECT ALL col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2849
SELECT DISTINCT + col1 DIV col1 + - cor0.col1 - - col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2849
SELECT DISTINCT + col1 / col1 + - cor0.col1 - - col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - 94 * + cor0.col1 FROM tab0 cor0
----
-8084
-8554
-9118

query I rowsort
SELECT ALL + col2 * - col2 + col0 - col2 * - col0 * - col0 FROM tab0 AS cor0
----
-1191
-20073
-656157

query I rowsort
SELECT ALL cor0.col1 + - col1 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col1 * + col2 col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ( - col2 * col2 ) + ( 43 ) * - tab1.col2 AS col0 FROM tab1
----
-13344
-5238
-5700

query I rowsort
SELECT 53 - - col0 AS col0 FROM tab2
----
131
132
60

query I rowsort
SELECT DISTINCT - tab0.col2 + + col2 AS col2 FROM tab0
----
0

query I rowsort
SELECT + - 41 * 1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT DISTINCT - col2 * col0 * col1 + + 63 AS col1 FROM tab1 AS cor0
----
-36417
-4149
-99777

query I rowsort
SELECT - + 35 + col2 FROM tab0 AS cor0
----
-2
-34
47

query I rowsort
SELECT ALL - 86 * - cor0.col2 FROM tab2 AS cor0
----
2236
2322
3268

query I rowsort
SELECT DISTINCT + 86 + col2 AS col2 FROM tab2 AS cor0
----
112
113
124

query I rowsort
SELECT cor0.col0 * col1 + + ( + cor0.col2 ) FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL + col0 * 69 * 67 FROM tab0
----
110952
161805
411447

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * 0 * col0 col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + col0 col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT + + col0 * + col2 + + col1 AS col2 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT ALL - tab2.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - 35 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT + 61 FROM tab1, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT + 86 * col1 FROM tab1 cor0
----
1118
2236
860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 col0 FROM tab2 AS cor0
----
-26
-26
-26

query I rowsort
SELECT DISTINCT - 25 * - cor0.col2 * + cor0.col2 FROM tab0 AS cor0
----
168100
25
27225

query I rowsort
SELECT DISTINCT - 91 FROM tab0, tab0 AS cor0
----
-91

query I rowsort
SELECT ALL col2 * 13 FROM tab2
----
338
351
494

query I rowsort
SELECT DISTINCT 89 AS col2 FROM tab0 AS cor0
----
89

query I rowsort
SELECT DISTINCT - + cor0.col1 + ( cor0.col2 ) * col1 - col2 * + col2 FROM tab0 AS cor0
----
-1
1663
647

query I rowsort
SELECT ALL 35 + - cor0.col2 + + 59 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 492a3c5a2cba78f53e014d4d55a36c92

query I rowsort
SELECT + col2 * + cor0.col1 AS col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL - col0 * - 53 FROM tab2 AS cor0
----
371
4134
4187

query I rowsort
SELECT col1 * + col0 + + col0 AS col0 FROM tab2
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2881
SELECT - 71 DIV + cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 19d9a0c816b5138d02db0c512728ffd5

skipif mysql # not compatible
query I rowsort label-2881
SELECT - 71 / + cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 19d9a0c816b5138d02db0c512728ffd5

query I rowsort
SELECT ALL + - col1 * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 74 + + col1 + col1 AS col1 FROM tab2 AS cor0
----
108
136
192

query I rowsort
SELECT 2 AS col0 FROM tab0 cor0
----
2
2
2

query I rowsort
SELECT + 42 + - cor0.col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-138
-68
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2886
SELECT ALL + 26 DIV 70 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL + 26 / 70 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col1 * col1 AS col2 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - - ( - 52 ) FROM tab2 cor0
----
-52
-52
-52

query I rowsort
SELECT - ( + 15 ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-105
-1170
-1185

query I rowsort
SELECT DISTINCT + + col0 * col0 + + col2 * col0 FROM tab2 AS cor0
----
238
8112
9243

query I rowsort
SELECT + - 70 AS col1 FROM tab0 AS cor0
----
-70
-70
-70

query I rowsort
SELECT ALL - ( 47 ) FROM tab0 AS cor0
----
-47
-47
-47

query I rowsort
SELECT 68 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT - + col2 * cor0.col1 * + 29 AS col2 FROM tab0 AS cor0
----
-216398
-2813
-82302

query I rowsort
SELECT DISTINCT + + cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2896
SELECT - 30 DIV cor0.col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2896
SELECT - 30 / cor0.col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - col0 * col2 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT 81 * cor0.col1 FROM tab1 AS cor0
----
1053
2106
810

query I rowsort
SELECT + - col0 + - cor0.col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - - col1 * + cor0.col1 + col0 * + col2 AS col2 FROM tab0 AS cor0
----
15579
8188
9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2901
SELECT ALL - col1 + CAST( - 52 AS SIGNED ) + + cor0.col2 FROM tab2 AS cor0
----
-31
-56
-85

skipif mysql # not compatible
query I rowsort label-2901
SELECT ALL - col1 + CAST ( - 52 AS INTEGER ) + + cor0.col2 FROM tab2 AS cor0
----
-31
-56
-85

query I rowsort
SELECT DISTINCT - col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - col2 + + col1 * + col0 * - col1 FROM tab1 AS cor0
----
-13616
-2082
-6457

query I rowsort
SELECT - col2 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT + + cor0.col1 + + col1 * col0 FROM tab0 cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-2906
SELECT + col1 DIV ( + 81 ) + + col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-2906
SELECT + col1 / ( + 81 ) + + col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL + cor0.col2 * + col2 - + col0 AS col1 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT ALL col0 + tab0.col0 * + col2 * + col0 FROM tab0
----
1260
19032
649611

query I rowsort
SELECT DISTINCT - col1 * col0 + - 24 FROM tab1
----
-102
-1064
-664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * col0 col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL tab0.col0 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2912
SELECT CAST( 7 AS SIGNED ) col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2912
SELECT CAST ( 7 AS INTEGER ) col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - col1 + col2 col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-2914
SELECT - + col2 * col0 - + 84 DIV col1 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-2914
SELECT - + col2 * col0 - + 84 / col1 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2915
SELECT 25 * col0 DIV col1 + - 22 * + col1 AS col1 FROM tab2 AS cor0
----
-1265
-258
-677

skipif mysql # not compatible
query I rowsort label-2915
SELECT 25 * col0 / col1 + - 22 * + col1 AS col1 FROM tab2 AS cor0
----
-1265
-258
-677

query I rowsort
SELECT DISTINCT - 8 + - 84 FROM tab0, tab2 AS cor0
----
-92

query I rowsort
SELECT + col2 * col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT + - col2 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1406
650
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2919
SELECT - col0 + CAST( col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-2919
SELECT - col0 + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL - - col0 * 76 AS col0 FROM tab0 AS cor0
----
1824
2660
6764

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2921
SELECT col0 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2921
SELECT col0 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 1 AS col2 FROM tab1, tab1 cor0, tab2 AS cor1
----
-1

query I rowsort
SELECT - cor0.col0 * 62 AS col0 FROM tab0 AS cor0
----
-1488
-2170
-5518

query I rowsort
SELECT 38 * + 24 FROM tab0 AS cor0
----
912
912
912

query I rowsort
SELECT + col1 * ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + - ( + col2 ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col0 * - 44 AS col1 FROM tab1
----
-132
-2816
-3520

onlyif mysql # use DIV operator for integer division
query I rowsort label-2928
SELECT col0 DIV 15 + + tab1.col0 * - col1 AS col2 FROM tab1
----
-1035
-636
-78

skipif mysql # not compatible
query I rowsort label-2928
SELECT col0 / 15 + + tab1.col0 * - col1 AS col2 FROM tab1
----
-1035
-636
-78

query I rowsort
SELECT 14 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT DISTINCT + col0 + + col2 * col2 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT DISTINCT 72 FROM tab1, tab0 AS cor0
----
72

query I rowsort
SELECT ALL ( tab0.col2 * col1 ) FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL 0 * col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 57 FROM tab2, tab0 cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - 41 * col0 FROM tab0 AS cor0
----
-1435
-3649
-984

query I rowsort
SELECT col2 * col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
2890
3239
9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-2938
SELECT ALL + cor0.col0 DIV - col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL + cor0.col0 / - col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT ALL 41 * col1 AS col2 FROM tab0
----
3526
3731
3977

query I rowsort
SELECT DISTINCT col0 * - 53 AS col2 FROM tab1
----
-159
-3392
-4240

onlyif mysql # use DIV operator for integer division
query I rowsort label-2941
SELECT DISTINCT + col1 DIV + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT + col1 / + col2 FROM tab1
----
0

query I rowsort
SELECT ALL - 38 FROM tab0, tab1 cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT + 41 AS col0 FROM tab1
----
41
41
41

query I rowsort
SELECT 58 + - col1 FROM tab0
----
-28
-33
-39

query I rowsort
SELECT col2 * + cor0.col1 * + col0 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL cor0.col1 + + 54 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3c4109757b862d7ca1eff7555ff515b6

query I rowsort
SELECT - col0 - + col0 AS col2 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT - - col2 + + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + - 59 AS col0 FROM tab1 AS cor0
----
-59
-59
-59

query I rowsort
SELECT - 14 * + col0 FROM tab1 AS cor0
----
-1120
-42
-896

query I rowsort
SELECT ( + col0 ) + + 16 * col2 FROM tab0 AS cor0
----
1401
51
552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2952
SELECT - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2952
SELECT - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 0 FROM tab0
----
0
0
0

query I rowsort
SELECT + col2 + - 8 - col2 AS col1 FROM tab0
----
-8
-8
-8

query I rowsort
SELECT ALL - col0 * col2 * col0 FROM tab0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-2956
SELECT col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2956
SELECT col2 / - col1 AS col2 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT + + col2 + ( + col0 ) * col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - + col2 * 81 + cor0.col2 FROM tab1 AS cor0
----
-4320
-4560
-7680

query I rowsort
SELECT - col2 + + col2 + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - - col0 * + col0 + 38 AS col2 FROM tab0 AS cor0
----
1263
614
7959

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col2 col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT + - ( + 39 ) AS col2 FROM tab2 AS cor0
----
-39
-39
-39

query I rowsort
SELECT 46 AS col0 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT ALL + col0 * + col1 * + 9 AS col1 FROM tab1
----
5760
702
9360

query I rowsort
SELECT - col2 * + ( + col0 * col1 ) FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT + 81 FROM tab0, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2967
SELECT DISTINCT - col2 + CAST( NULL AS DECIMAL ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT - col2 + CAST ( NULL AS REAL ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + cor0.col0 col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + + col1 - + cor0.col2 * col2 * col2 FROM tab2 AS cor0
----
-17517
-19652
-54855

query I rowsort
SELECT DISTINCT + - col2 * col1 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + - col2 * + col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + - col2 * + col1 + - 1 FROM tab2 AS cor0
----
-1535
-647
-838

query I rowsort
SELECT ALL - cor0.col0 * - 29 * col2 FROM tab0 AS cor0
----
1015
211642
22968

query I rowsort
SELECT DISTINCT + col1 - col2 * - col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL + - col1 * - ( 79 ) FROM tab2 cor0
----
1343
2449
4661

query I rowsort
SELECT DISTINCT + - cor0.col0 * - col0 + - ( - col2 ) FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL - 47 + col0 FROM tab2
----
-40
31
32

query I rowsort
SELECT - col2 - col1 * - col1 AS col2 FROM tab1
----
43
622
73

query I rowsort
SELECT ALL - col1 - 83 * - col1 AS col2 FROM tab2 AS cor0
----
1394
2542
4838

query I rowsort
SELECT ALL + - col2 * - cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-2981
SELECT ALL - col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL - col1 / + col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col0 + col2 * - cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab1, tab0 cor1
----
972 values hashing to 5e655b1287771868a8f868574a94d749

query I rowsort
SELECT - ( - 10 ) * - col0 FROM tab0 AS cor0
----
-240
-350
-890

query I rowsort
SELECT DISTINCT + 4 * col2 + + col1 AS col2 FROM tab0 AS cor0
----
101
218
419

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 2e3240e8d3c0c7c6ff427f9572ba362d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2987
SELECT - CAST( - 2 AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-2987
SELECT - CAST ( - 2 AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # use DIV operator for integer division
query I rowsort label-2988
SELECT ALL - ( col1 ) DIV 5 FROM tab2 AS cor0
----
-11
-3
-6

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL - ( col1 ) / 5 FROM tab2 AS cor0
----
-11
-3
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 53 ) col0 FROM tab0
----
-53

query I rowsort
SELECT DISTINCT - col0 + col1 - col2 FROM tab1 cor0
----
-111
-163
-31

onlyif mysql # use DIV operator for integer division
query I rowsort label-2991
SELECT ALL + col1 DIV - col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL + col1 / - col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - tab2.col0 + 66 * - col0 AS col0 FROM tab2
----
-469
-5226
-5293

query I rowsort
SELECT - tab1.col2 * col0 + ( col2 ) * + col0 * 77 AS col2 FROM tab1
----
12312
277248
583680

query I rowsort
SELECT ALL - tab1.col1 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT col2 - + col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 + + col2 * - ( + col2 + + col2 ) AS col1 FROM tab1
----
-18336
-5778
-6441

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 + col0 - cor0.col0 * cor0.col2 col0 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + ( + col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 36 + col0 AS col2 FROM tab2
----
114
115
43

query I rowsort
SELECT DISTINCT + 53 * + col2 FROM tab0 AS cor0
----
1749
4346
53

query I rowsort
SELECT col2 + col0 * - ( - col0 ) FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT - - col1 + col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + 5 FROM tab1 cor0
----
5

query I rowsort
SELECT ALL + + col2 + col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ( + 51 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab1 cor1, tab1 cor2
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd

query I rowsort
SELECT ALL 87 + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to fe143c9ebe1a2411aebece9f4ade32d2

query I rowsort
SELECT 84 FROM tab2, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT - col0 * 76 AS col2 FROM tab0 AS cor0
----
-1824
-2660
-6764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 25 * cor0.col1 col1 FROM tab1 AS cor0
----
186
245
647

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - ( col0 ) col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col1 * col0 * col0 AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL + col2 + col0 * col1 AS col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT 82 AS col2 FROM tab0, tab1 AS cor0
----
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3017
SELECT ALL + CAST( NULL AS SIGNED ) + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col0 * 98 + + col2 FROM tab1 AS cor0
----
348
6329
7936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3019
SELECT - + CAST( NULL AS SIGNED ) * - col2 + col1 * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT - + CAST ( NULL AS INTEGER ) * - col2 + col1 * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 15 + cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to ce91b83a4079ff945d9dea868558ca7a

query I rowsort
SELECT ALL + col0 + 57 * + col0 FROM tab2 cor0
----
406
4524
4582

query I rowsort
SELECT ALL + ( col1 ) * col0 + 27 + 50 FROM tab1 AS cor0
----
1117
155
717

query I rowsort
SELECT - 94 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 col1 FROM tab2 AS cor0
----
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-3025
SELECT ALL + col1 * col2 + col2 DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
1241
1402
565

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL + col1 * col2 + col2 / - cor0.col1 AS col0 FROM tab1 AS cor0
----
1241
1402
565

query I rowsort
SELECT ALL - ( + col0 ) * col2 + + 53 FROM tab0 AS cor0
----
-7245
-739
18

query I rowsort
SELECT col0 - + 23 * cor0.col2 AS col1 FROM tab2 cor0
----
-520
-614
-795

query I rowsort
SELECT DISTINCT 64 + col2 FROM tab1 cor0
----
118
121
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + + col2 col2 FROM tab0 cor0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3030
SELECT ALL - 69 DIV + col0 FROM tab2 AS cor0
----
-9
0
0

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL - 69 / + col0 FROM tab2 AS cor0
----
-9
0
0

query I rowsort
SELECT + col0 + col1 * col0 + col1 AS col2 FROM tab0 AS cor0
----
2174
3527
8279

query I rowsort
SELECT col1 * + col1 + - col2 AS col0 FROM tab2 AS cor0
----
251
3455
934

onlyif mysql # use DIV operator for integer division
query I rowsort label-3033
SELECT DISTINCT cor0.col1 DIV + col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT cor0.col1 / + col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT - col2 * col2 + - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-2787
-5278
-946

query I rowsort
SELECT 8 * - cor0.col1 FROM tab1 AS cor0
----
-104
-208
-80

query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 AS col0 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3037
SELECT ALL 4 + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL 4 + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - col1 * ( col1 ) AS col0 FROM tab1 cor0
----
-156
-650
-90

query I rowsort
SELECT - col0 + col1 + col0 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + col2 col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL - col0 * + col2 + - col1 * col0 + col2 AS col2 FROM tab2
----
-379
-4307
-6604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col0 + - cor0.col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3044
SELECT ALL + CAST( col2 AS SIGNED ) - - col1 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL + CAST ( col2 AS INTEGER ) - - col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT - ( col1 ) * tab0.col2 - - col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT 79 FROM tab0, tab1 AS cor0
----
79

query I rowsort
SELECT + 85 * + cor1.col2 + + 33 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b21acf32f7e0190db0eb14c2b170cb53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 * + tab2.col0 col0 FROM tab2
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3049
SELECT - + col0 * + CAST( - 79 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1896
2765
7031

skipif mysql # not compatible
query I rowsort label-3049
SELECT - + col0 * + CAST ( - 79 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1896
2765
7031

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3050
SELECT + CAST( + col1 AS SIGNED ) * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-3050
SELECT + CAST ( + col1 AS INTEGER ) * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ( 71 ) * col2 + 1 - col1 AS col2 FROM tab0
----
-25
2258
5732

onlyif mysql # use DIV operator for integer division
query I rowsort label-3052
SELECT DISTINCT tab0.col2 - col0 DIV + col0 AS col1 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT tab0.col2 - col0 / + col0 AS col1 FROM tab0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3053
SELECT col0 DIV ( - col1 ) + + col2 + - ( + col1 ) * 99 FROM tab1 AS cor0
----
-1197
-2520
-939

skipif mysql # not compatible
query I rowsort label-3053
SELECT col0 / ( - col1 ) + + col2 + - ( + col1 ) * 99 FROM tab1 AS cor0
----
-1197
-2520
-939

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 50 col0 FROM tab1 AS cor0
----
50

query I rowsort
SELECT ALL + col0 + 16 FROM tab1 AS cor0
----
19
80
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3056
SELECT ALL - cor0.col1 DIV + col2 + - col2 * CAST( 20 AS SIGNED ) DIV col2 - cor0.col1 AS col1 FROM tab1 AS cor0
----
-30
-33
-46

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL - cor0.col1 / + col2 + - col2 * CAST ( 20 AS INTEGER ) / col2 - cor0.col1 AS col1 FROM tab1 AS cor0
----
-30
-33
-46

query I rowsort
SELECT + + col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - - col1 * + 1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL 35 FROM tab0, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT + - col0 * - col0 + 96 AS col0 FROM tab0 AS cor0
----
1321
672
8017

query I rowsort
SELECT - - ( cor0.col0 ) * + col2 + col1 * col1 * 72 AS col0 FROM tab2 AS cor0
----
23810
252660
69381

query I rowsort
SELECT - ( + col0 ) + 11 FROM tab1 AS cor0
----
-53
-69
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3063
SELECT + cor0.col2 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3063
SELECT + cor0.col2 / col0 AS col1 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT + cor0.col0 * + 38 FROM tab0 AS cor0
----
1330
3382
912

query I rowsort
SELECT + cor0.col1 * - ( + col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT 47 FROM tab2, tab0 AS cor0, tab0 cor1
----
47

query I rowsort
SELECT DISTINCT - + col0 * + cor0.col0 + - 26 - + cor0.col2 * ( + cor0.col2 + col1 ) AS col1 FROM tab0 AS cor0
----
-1349
-22133
-4529

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3068
SELECT + - cor0.col0 + + ( col1 + col0 ) * + CAST( + col1 * col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
128849
630396
8239

skipif mysql # not compatible
query I rowsort label-3068
SELECT + - cor0.col0 + + ( col1 + col0 ) * + CAST ( + col1 * col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
128849
630396
8239

query I rowsort
SELECT ALL ( + 73 ) * col2 FROM tab0 AS cor0
----
2409
5986
73

query I rowsort
SELECT - - col1 * + 18 AS col0 FROM tab1 AS cor0
----
180
234
468

query I rowsort
SELECT DISTINCT + + 72 FROM tab0 AS cor0
----
72

query I rowsort
SELECT 70 + 1 FROM tab0 AS cor0
----
71
71
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-3073
SELECT ALL + - col2 DIV + col1 col0 FROM tab1 AS cor0
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + - col2 / + col1 col0 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL - 24 + - 5 FROM tab1 AS cor0
----
-29
-29
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-3075
SELECT ALL + - ( + col0 ) DIV + col0 + + ( col2 ) FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL + - ( + col0 ) / + col0 + + ( col2 ) FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT tab0.col1 * + col1 AS col0 FROM tab0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 65 * col1 col0 FROM tab2
----
1088
1984
3776

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - 88 - + col1 AS col1 FROM tab1 AS cor0
----
-101
-114
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3080
SELECT - tab2.col1 DIV 40 col2 FROM tab2
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3080
SELECT - tab2.col1 / 40 col2 FROM tab2
----
-1
0
0

query I rowsort
SELECT + - 97 * + col2 - - col2 FROM tab0 AS cor0
----
-3168
-7872
-96

query I rowsort
SELECT - - col1 + cor0.col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL col2 * - cor0.col0 - + col2 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT + 81 + - cor0.col2 * ( 46 + - col0 * col0 ) FROM tab0 cor0
----
1260
17571
645831

query I rowsort
SELECT - 14 AS col0 FROM tab2 cor0
----
-14
-14
-14

onlyif mysql # use DIV operator for integer division
query I rowsort label-3086
SELECT DISTINCT + ( - col2 ) DIV 74 + 86 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT + ( - col2 ) / 74 + 86 FROM tab2 AS cor0
----
86

query I rowsort
SELECT ALL + 85 + + col1 * col2 AS col2 FROM tab2 AS cor0
----
1619
731
922

query I rowsort
SELECT col2 * 56 * - col1 FROM tab2
----
-36176
-46872
-85904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col0 FROM tab2
----
47
47
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-3090
SELECT - col1 DIV col1 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3090
SELECT - col1 / col1 AS col1 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab1.col0 col0 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3092
SELECT - - col2 DIV + cor0.col0 - ( 90 ) FROM tab0 AS cor0
----
-89
-90
-90

skipif mysql # not compatible
query I rowsort label-3092
SELECT - - col2 / + cor0.col0 - ( 90 ) FROM tab0 AS cor0
----
-89
-90
-90

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 DISTINCT - + 34 * + cor1.col1 col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-1054
-2006
-578

query I rowsort
SELECT + + 60 + - col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
60
60
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-3096
SELECT ALL ( - 42 ) DIV col0 FROM tab1
----
-14
0
0

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL ( - 42 ) / col0 FROM tab1
----
-14
0
0

query I rowsort
SELECT + 70 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT + ( 48 ) + - col0 AS col0 FROM tab1
----
-16
-32
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3099
SELECT ( - tab1.col1 ) * tab1.col2 + col1 DIV + col0 FROM tab1
----
-1248
-1396
-570

skipif mysql # not compatible
query I rowsort label-3099
SELECT ( - tab1.col1 ) * tab1.col2 + col1 / + col0 FROM tab1
----
-1248
-1396
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT + ( ( - tab2.col1 ) * - 12 ) FROM tab2
----
204
372
708

query I rowsort
SELECT + col1 * + 68 + + col2 AS col1 FROM tab1 AS cor0
----
1822
737
980

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 * + col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT col2 * - col2 * col2 FROM tab2 cor0
----
-17576
-19683
-54872

query I rowsort
SELECT ALL ( col2 ) * col2 + - 7 * 47 FROM tab0 cor0
----
-328
6395
760

query I rowsort
SELECT + ( 45 ) * col2 FROM tab0 AS cor0
----
1485
3690
45

query I rowsort
SELECT ALL + + col0 * + col1 + + cor0.col0 * - col2 * col0 AS col1 FROM tab1 AS cor0
----
-232832
-408
-613360

query I rowsort
SELECT + cor0.col2 + - col1 * + col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - + ( - col0 ) + - 17 * - cor0.col0 FROM tab1 AS cor0
----
1152
1440
54

query I rowsort
SELECT ALL + - 17 AS col1 FROM tab1 AS cor0
----
-17
-17
-17

query I rowsort
SELECT col0 * col2 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-3112
SELECT - col0 + - col1 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
-11
-64
-80

skipif mysql # not compatible
query I rowsort label-3112
SELECT - col0 + - col1 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
-11
-64
-80

query I rowsort
SELECT ALL + + 23 + col0 * - ( - 94 ) AS col2 FROM tab2 AS cor0
----
681
7355
7449

onlyif mysql # use DIV operator for integer division
query I rowsort label-3114
SELECT DISTINCT + 57 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT + 57 / cor0.col1 AS col2 FROM tab1 AS cor0
----
2
4
5

query I rowsort
SELECT ALL + col0 + col1 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL 57 + 82 * col1 FROM tab1
----
1123
2189
877

query I rowsort
SELECT + + ( cor0.col0 ) + cor0.col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT col2 + col0 * col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT + col0 + ( + 40 ) + - cor0.col1 FROM tab1 AS cor0
----
107
17
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3120
SELECT - + col0 + - CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-3120
SELECT - + col0 + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - + col1 - - col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - - col0 + 11 FROM tab0 cor0
----
100
35
46

query I rowsort
SELECT col1 * + col0 * 3 + col1 FROM tab2 AS cor0
----
13865
4046
682

query I rowsort
SELECT ALL col0 + 11 FROM tab1 AS cor0
----
14
75
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-3125
SELECT - + col2 DIV + cor0.col2 + + 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-3125
SELECT - + col2 / + cor0.col2 + + col1 col2 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT ALL - col1 * cor0.col2 * col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL - col1 * + 85 * col2 FROM tab0 AS cor0
----
-241230
-634270
-8245

onlyif mysql # use DIV operator for integer division
query I rowsort label-3128
SELECT - + col0 DIV col1 - 48 AS col1 FROM tab2 cor0
----
-48
-49
-52

skipif mysql # not compatible
query I rowsort label-3128
SELECT - + col0 / col1 - 48 AS col1 FROM tab2 cor0
----
-48
-49
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3129
SELECT - col2 + cor0.col2 DIV col0 FROM tab1 AS cor0
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-3129
SELECT - col2 + cor0.col2 / col0 FROM tab1 AS cor0
----
-36
-57
-95

query I rowsort
SELECT DISTINCT - + cor0.col1 + - col0 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + - col0 * - col1 - + col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT col1 * + col1 * + 29 AS col1 FROM tab0 AS cor0
----
214484
240149
272861

query I rowsort
SELECT ALL - - col0 + 62 AS col0 FROM tab1 AS cor0
----
126
142
65

query I rowsort
SELECT DISTINCT - col2 + cor0.col0 - + 61 AS col1 FROM tab2 AS cor0
----
-20
-81
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3135
SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + + 66 FROM tab0 AS cor0
----
101
155
90

query I rowsort
SELECT ALL col0 + 61 + + col0 FROM tab0 AS cor0
----
109
131
239

query I rowsort
SELECT DISTINCT - - col1 - col1 * - col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + col1 + - 11 AS col2 FROM tab1 AS cor0
----
-1
15
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3140
SELECT ALL - col0 DIV - 99 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL - col0 / - 99 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + 8 * - col1 AS col0 FROM tab1 AS cor0
----
-104
-208
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 36 * + col0 + + col2 * + 56 col2 FROM tab2 cor0
----
1764
4264
4972

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3143
SELECT CAST( 40 AS SIGNED ) + col0 * 2 * - col0 AS col2 FROM tab1 AS cor0
----
-12760
-8152
22

skipif mysql # not compatible
query I rowsort label-3143
SELECT CAST ( 40 AS INTEGER ) + col0 * 2 * - col0 AS col2 FROM tab1 AS cor0
----
-12760
-8152
22

query I rowsort
SELECT - - col2 * col1 - col1 FROM tab0 AS cor0
----
0
2752
7371

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3145
SELECT CAST( col2 AS SIGNED ) + + col1 AS col2 FROM tab2 cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-3145
SELECT CAST ( col2 AS INTEGER ) + + col1 AS col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT - 77 - + 23 * col2 AS col1 FROM tab0 AS cor0
----
-100
-1963
-836

query I rowsort
SELECT DISTINCT - + col1 + 45 * + col1 FROM tab2 AS cor0
----
1364
2596
748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3148
SELECT - CAST( ( - col0 ) AS SIGNED ) * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT - CAST ( ( - col0 ) AS INTEGER ) * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3149
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 17 * col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 17 * col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 + + col1 * - col0 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT ALL col0 * + tab0.col1 + - 42 FROM tab0
----
2022
3353
8057

query I rowsort
SELECT + 27 + - 44 FROM tab2 cor0
----
-17
-17
-17

query I rowsort
SELECT cor0.col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col2 * tab2.col2 + - 56 AS col1 FROM tab2
----
1388
620
673

onlyif mysql # use DIV operator for integer division
query I rowsort label-3155
SELECT - col2 DIV col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3155
SELECT - col2 / col0 FROM tab0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3156
SELECT ALL + + CAST( - col1 AS SIGNED ) * col2 FROM tab1 cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL + + CAST ( - col1 AS INTEGER ) * col2 FROM tab1 cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col0 col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + - 72 AS col0 FROM tab1 AS cor0
----
-72
-72
-72

query I rowsort
SELECT 32 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab1, tab2 cor0
----
7
78
79

query I rowsort
SELECT tab2.col1 - 99 * - cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to ec6a9b1b36c2f2ba19d1ea6865685069

query I rowsort
SELECT - 88 * 56 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6937fd4251a3d540614798656c2d5c8

query I rowsort
SELECT ALL - col1 * col2 * 45 AS col1 FROM tab2
----
-29070
-37665
-69030

query I rowsort
SELECT + - cor0.col0 * - col1 * 72 AS col1 FROM tab0 AS cor0
----
148608
244440
583128

query I rowsort
SELECT DISTINCT 0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3166
SELECT col0 DIV + col1 AS col1 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3166
SELECT col0 / + col1 AS col1 FROM tab2
----
0
1
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3167
SELECT DISTINCT - cor0.col2 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT - cor0.col2 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + 44 FROM tab2 AS cor0
----
70
71
82

query I rowsort
SELECT ALL + col2 * - 17 FROM tab0 AS cor0
----
-1394
-17
-561

query I rowsort
SELECT DISTINCT + + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - + col0 + - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT + tab0.col0 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + col0 * cor0.col2 AS col2 FROM tab0 AS cor0 WHERE col2 * col1 * - col1 NOT IN ( col1 * col2 )
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + col1 col0 FROM tab1 AS cor0 WHERE NOT - col2 < - col1 * - cor0.col1 - - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < ( col2 )
----

query I rowsort
SELECT ALL tab0.col1 * - col1 * col2 + + col0 * + tab0.col1 AS col0 FROM tab0
----
-242004
-6014
-670943

query I rowsort
SELECT + col0 + col2 * + col1 AS col0 FROM tab1
----
1328
1407
634

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 NOT IN ( col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT tab0.col2 * tab0.col1 + - col1 AS col2 FROM tab0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-3180
SELECT ALL col0 DIV col2 + col1 * col2 FROM tab1
----
1248
1404
571

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL col0 / col2 + col1 * col2 FROM tab1
----
1248
1404
571

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE ( NULL ) NOT IN ( cor0.col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 * + col2 col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT col0 * + col2 * col1 AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT col1 * col1 * - tab1.col2 AS col2 FROM tab1
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-3187
SELECT ALL - + col0 + - col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL - + col0 + - col1 / - col1 AS col2 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab1, tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3189
SELECT - cor0.col0 * col1 DIV col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3189
SELECT - cor0.col0 * col1 / col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + + col2 + col1 * col0 * col1 AS col0 FROM tab1 AS cor0
----
13616
2082
6457

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + col0 = NULL
----

query I rowsort
SELECT - - cor0.col1 * col2 + col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT - col0 + + col2 * col0 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-3194
SELECT ALL - col1 + - col0 DIV - col1 + col2 * + col1 AS col1 FROM tab0
----
0
2752
7371

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL - col1 + - col0 / - col1 + col2 * + col1 AS col1 FROM tab0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-3195
SELECT + col1 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3195
SELECT + col1 / cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT ALL - tab2.col0 * col2 + col2 AS col1 FROM tab2
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-3197
SELECT + 46 - + col0 DIV - 62 FROM tab1
----
46
47
47

skipif mysql # not compatible
query I rowsort label-3197
SELECT + 46 - + col0 / - 62 FROM tab1
----
46
47
47

query I rowsort
SELECT - - col0 + - ( 43 ) FROM tab0 AS cor0
----
-19
-8
46

query I rowsort
SELECT ALL col2 * - col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col2 + 21 AS col0 FROM tab2 AS cor0
----
-17
-5
-6

query I rowsort
SELECT ALL + + col0 * + col2 * col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT + col0 * + ( + ( - cor0.col0 ) ) + col1 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT ALL - - col0 + - col0 * 92 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-123477
-19957
-423306

query I rowsort
SELECT DISTINCT - col2 + ( ( - col2 ) ) * - 13 AS col1 FROM tab2 AS cor0
----
312
324
456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 60 * + col0 col2 FROM tab1 cor0
----
206
3850
4813

query I rowsort
SELECT - col0 + ( 68 ) * col2 AS col2 FROM tab1 AS cor0
----
3669
3812
6448

query I rowsort
SELECT DISTINCT col2 + - col0 * - col1 + col1 * col0 AS col0 FROM tab2
----
2724
461
9230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT + col0 * col0 + + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT DISTINCT col0 + + cor0.col1 * - 48 FROM tab0 AS cor0
----
-4104
-4279
-4621

query I rowsort
SELECT ALL + + col2 * cor0.col1 * 71 FROM tab1 AS cor0
----
40470
88608
99684

query I rowsort
SELECT DISTINCT - - 89 FROM tab1, tab0, tab2 AS cor0
----
89

query I rowsort
SELECT - col2 - col0 * tab1.col0 FROM tab1
----
-4153
-63
-6496

query I rowsort
SELECT ALL - col2 * + col0 + tab2.col2 AS col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + col2 * + col2 + - col2 AS col0 FROM tab2
----
1406
650
702

query I rowsort
SELECT DISTINCT + tab2.col2 AS col1 FROM tab2 WHERE + col1 - - col0 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT col0 * - tab0.col2 * tab0.col2 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NULL NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) BETWEEN ( - col1 * col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT IN ( col0 * + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3222
SELECT + tab0.col0 + - col0 DIV - col1 AS col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3222
SELECT + tab0.col0 + - col0 / - col1 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL - col2 + - col1 AS col0 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT col2 + + col1 * - col0 FROM tab0
----
-2031
-3394
-8017

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT BETWEEN + col0 AND col1 - col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT + col1 * col0 + col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + 18 + + col0 AS col2 FROM tab2 AS cor0
----
25
96
97

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 * 28 FROM tab0 AS cor0
----
226772
57792
95060

query I rowsort
SELECT + - 99 * - cor0.col2 - ( - col2 + - col2 ) FROM tab0 AS cor0
----
101
3333
8282

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3231
SELECT col2 * tab1.col1 DIV col0 AS col1 FROM tab1
----
15
468
8

skipif mysql # not compatible
query I rowsort label-3231
SELECT col2 * tab1.col1 / col0 AS col1 FROM tab1
----
15
468
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3232
SELECT - col1 DIV - col1 col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3232
SELECT - col1 / - col1 col1 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3233
SELECT DISTINCT col1 DIV col0 col0 FROM tab2
----
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT col1 / col0 col0 FROM tab2
----
0
4

query I rowsort
SELECT + col1 + - col2 AS col0 FROM tab1
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3235
SELECT - col1 * col1 DIV col1 AS col0 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3235
SELECT - col1 * col1 / col1 AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col0 + + col0 + + col2 AS col2 FROM tab1
----
185
256
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-3237
SELECT ALL - col2 * col2 DIV tab1.col0 AS col2 FROM tab1
----
-115
-50
-972

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - col2 * col2 / tab1.col0 AS col2 FROM tab1
----
-115
-50
-972

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT NULL IN ( tab0.col0 )
----

query I rowsort
SELECT DISTINCT tab1.col0 * + col1 + - tab1.col0 - - col2 FROM tab1
----
1056
129
633

query I rowsort
SELECT ALL tab1.col2 + + tab1.col2 * + col2 + col0 AS col1 FROM tab1
----
2973
3370
9392

onlyif mysql # use DIV operator for integer division
query I rowsort label-3241
SELECT + col2 DIV col1 + col1 - tab2.col1 col1 FROM tab2
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3241
SELECT + col2 / col1 + col1 - tab2.col1 col1 FROM tab2
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3242
SELECT DISTINCT col0 DIV - col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT col0 / - col0 FROM tab2
----
-1

query I rowsort
SELECT + col2 + col1 + tab1.col1 * 4 FROM tab1
----
107
161
184

query I rowsort
SELECT ALL + 76 + col2 * - col0 AS col0 FROM tab1
----
-3572
-7604
-86

query I rowsort
SELECT col0 - - 86 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
1198
2239
924

query I rowsort
SELECT DISTINCT col1 * col1 + col2 AS col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT - cor0.col0 * - col0 + + cor0.col2 * - col2 AS col1 FROM tab2 cor0
----
-680
4797
5408

query I rowsort
SELECT DISTINCT ( col1 ) + - 37 AS col1 FROM tab1
----
-11
-24
-27

query I rowsort
SELECT + ( col2 ) + - col1 + col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col0 + + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT - ( + col0 ) * 88 FROM tab2 AS cor0
----
-616
-6864
-6952

query I rowsort
SELECT ALL - col1 + + col2 AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL - ( col0 ) + 17 + + col0 FROM tab2
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 * + ( - ( col0 ) * - col0 + - col0 ) col2 FROM tab1
----
229824
324
606720

onlyif mysql # use DIV operator for integer division
query I rowsort label-3255
SELECT ALL col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL col0 / + col1 AS col2 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT ALL cor0.col0 + - 47 FROM tab1 cor0
----
-44
17
33

query I rowsort
SELECT ALL - col1 * 3 FROM tab2
----
-177
-51
-93

query I rowsort
SELECT DISTINCT + + col2 * 23 AS col2 FROM tab2 AS cor0
----
598
621
874

query I rowsort
SELECT ALL - col0 * col0 + col1 + + col1 AS col2 FROM tab2 AS cor0
----
-5966
-6207
13

query I rowsort
SELECT DISTINCT + + col2 - col2 AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col1 + cor0.col1 col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + col1 * 70 + col2 FROM tab0 AS cor0
----
6053
6452
6791

onlyif mysql # use DIV operator for integer division
query I rowsort label-3263
SELECT col1 DIV + ( - ( col2 ) * col0 + - col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3263
SELECT col1 / + ( - ( col2 ) * col0 + - col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + 77 * col1 * col1 AS col2 FROM tab2 AS cor0
----
22291
268063
74024

query I rowsort
SELECT - + cor0.col2 + - col1 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3266
SELECT ALL + + ( col2 ) DIV - col1 + 18 FROM tab0 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL + + ( col2 ) / - col1 + 18 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT ALL + + 26 AS col2 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT - + ( 74 ) + - cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
-236
-3722
-7754

query I rowsort
SELECT DISTINCT + - col0 + + 2 * - col0 FROM tab2 AS cor0
----
-21
-234
-237

query I rowsort
SELECT DISTINCT - ( col1 ) + col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + ( col1 ) + col0 * - col0 FROM tab1 cor0
----
-4086
-6387
17

query I rowsort
SELECT ALL ( ( col1 ) ) + + col1 * - 60 AS col0 FROM tab0 AS cor0
----
-5074
-5369
-5723

query I rowsort
SELECT DISTINCT 26 * + cor0.col2 + col1 FROM tab0 cor0
----
123
2223
944

query I rowsort
SELECT + - ( - col2 ) AS col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + + col1 + - 23 * col1 FROM tab1 AS cor0
----
-220
-286
-572

query I rowsort
SELECT ALL - 59 * - col1 FROM tab1 AS cor0
----
1534
590
767

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3277
SELECT - CAST( NULL AS SIGNED ) * + 77 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT - CAST ( NULL AS INTEGER ) * + 77 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 - - col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + col1 * - col2 * - cor0.col0 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-3280
SELECT DISTINCT + + col0 DIV col0 AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT + + col0 / col0 AS col2 FROM tab1 cor0
----
1

query I rowsort
SELECT - col0 * col0 * + col1 + col1 AS col1 FROM tab2 AS cor0
----
-106080
-1488
-358897

query I rowsort
SELECT - + 0 - col0 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3283
SELECT col2 * cor0.col2 + col0 + + col0 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
2920
3314
9297

skipif mysql # not compatible
query I rowsort label-3283
SELECT col2 * cor0.col2 + col0 + + col0 / cor0.col0 AS col1 FROM tab1 AS cor0
----
2920
3314
9297

query I rowsort
SELECT DISTINCT - col1 + col2 * 31 * col1 FROM tab1 cor0
----
17660
38675
43498

query I rowsort
SELECT DISTINCT 17 + col2 FROM tab1 AS cor0
----
113
71
74

query I rowsort
SELECT - + col0 * col1 - - ( cor0.col1 ) FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT - + col2 * + col0 + + col1 * - col1 FROM tab1 AS cor0
----
-3748
-7849
-838

query I rowsort
SELECT DISTINCT col1 * + col2 * col2 + col0 + - col1 FROM tab0 cor0
----
35
611882
93592

onlyif mysql # use DIV operator for integer division
query I rowsort label-3289
SELECT ALL col2 + + col2 + + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
52
57
76

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL col2 + + col2 + + col2 / + col0 AS col1 FROM tab2 AS cor0
----
52
57
76

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + col1 * col1 FROM tab0 cor0
----
0

query I rowsort
SELECT + + ( col1 ) + + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - cor0.col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT + 29 * - col0 AS col2 FROM tab1 AS cor0
----
-1856
-2320
-87

query I rowsort
SELECT - 20 * - col2 * col0 FROM tab2 AS cor0
----
3780
40560
60040

query I rowsort
SELECT ALL col1 * col1 - - col0 AS col2 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT DISTINCT + 83 AS col0 FROM tab1 AS cor0
----
83

query I rowsort
SELECT col0 * col0 + - col2 AS col0 FROM tab2 cor0
----
22
6058
6203

query I rowsort
SELECT - - 60 AS col0 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT col0 * col2 + col1 - col0 FROM tab0 AS cor0
----
7300
854
97

query I rowsort
SELECT - - col2 + cor0.col2 - col1 AS col1 FROM tab1 AS cor0
----
104
179
82

query I rowsort
SELECT - + col1 * - col1 + col2 + col2 * - col1 * - col0 FROM tab0 cor0
----
12805
672481
75541

query I rowsort
SELECT DISTINCT ( + col0 ) + col0 AS col0 FROM tab1
----
128
160
6

query I rowsort
SELECT + tab0.col1 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-3304
SELECT DISTINCT col0 + - col0 DIV col0 AS col0 FROM tab2
----
6
77
78

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT col0 + - col0 / col0 AS col0 FROM tab2
----
6
77
78

query I rowsort
SELECT DISTINCT + col0 + col2 * col2 AS col2 FROM tab2
----
1523
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-3306
SELECT + col1 + - col1 DIV col1 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-3306
SELECT + col1 + - col1 / col1 FROM tab0
----
85
90
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3307
SELECT - CAST( 82 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-3307
SELECT - CAST ( 82 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-82
-82
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3308
SELECT - - CAST( col2 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-3308
SELECT - - CAST ( col2 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - ( 88 ) - - col2 FROM tab0 AS cor0
----
-55
-6
-87

query I rowsort
SELECT ALL - + ( col0 ) * - col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + 27 AS col1 FROM tab1
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 col1 FROM tab0
----
58

query I rowsort
SELECT + ( ( - col2 ) ) + + col2 FROM tab0
----
0
0
0

query I rowsort
SELECT 48 + col1 AS col0 FROM tab2
----
107
65
79

query I rowsort
SELECT + ( col1 ) + + col1 AS col2 FROM tab0
----
172
182
194

query I rowsort
SELECT - col2 * 12 + - col0 FROM tab0
----
-1073
-420
-47

query I rowsort
SELECT ALL - 6 * 6 FROM tab2
----
-36
-36
-36

query I rowsort
SELECT ALL - col2 * 29 FROM tab2 AS cor0
----
-1102
-754
-783

query I rowsort
SELECT - ( - 0 ) + cor0.col0 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3320
SELECT + col0 * col0 + - col1 * tab1.col0 DIV + col1 FROM tab1
----
4032
6
6320

skipif mysql # not compatible
query I rowsort label-3320
SELECT + col0 * col0 + - col1 * tab1.col0 / + col1 FROM tab1
----
4032
6
6320

query I rowsort
SELECT - 78 * + col2 FROM tab0 AS cor0
----
-2574
-6396
-78

query I rowsort
SELECT 56 * - 45 + col2 * col2 AS col1 FROM tab1 AS cor0
----
396
6696
729

query I rowsort
SELECT ( col1 ) + cor0.col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - - 85 * + col0 + - col1 AS col2 FROM tab0 AS cor0
----
1954
2878
7474

query I rowsort
SELECT ALL tab0.col1 * + 12 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f80e96a021b3122225d7aa4643e0ae0c

query I rowsort
SELECT - ( 8 ) * + col0 + + ( col2 ) * col2 FROM tab1 AS cor0
----
2737
2892
8576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 20 * + col2 col2 FROM tab1 AS cor0
----
1134
1197
2016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 * + col0 * - col1 - + ( ( col2 ) * + ( + cor0.col1 ) ) col0 FROM tab1 AS cor0
----
14790
23712
468

query I rowsort
SELECT ALL 81 * 92 + - col2 + col1 * col0 AS col0 FROM tab0 AS cor0
----
10846
15469
9483

query I rowsort
SELECT - col1 + + 5 AS col2 FROM tab1 AS cor0
----
-21
-5
-8

query I rowsort
SELECT ALL - ( col2 ) + col1 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL ( + 24 ) * col1 AS col2 FROM tab2
----
1416
408
744

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c

query I rowsort
SELECT - cor0.col1 * - col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + - col0 + - col0 FROM tab1 AS cor0
----
-128
-160
-6

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 972d282d6d92f451c90dc8ca51a18f3e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3337
SELECT DISTINCT CAST( 11 AS SIGNED ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT CAST ( 11 AS INTEGER ) FROM tab2
----
11

query I rowsort
SELECT col1 * + ( col2 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab2, tab0 AS cor0
----
-26
-27
-38

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 76903cfa3a27727fd541d9dcdf362a4c

query I rowsort
SELECT - col2 - - 95 * col2 FROM tab0 AS cor0
----
3102
7708
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-3342
SELECT ALL + col1 DIV ( 52 ) + - col1 - col1 col1 FROM tab0 AS cor0
----
-171
-181
-193

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL + col1 / ( 52 ) + - col1 - col1 col1 FROM tab0 AS cor0
----
-171
-181
-193

onlyif mysql # use DIV operator for integer division
query I rowsort label-3343
SELECT + col0 - col1 * + col1 DIV cor0.col1 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-3343
SELECT + col0 - col1 * + col1 / cor0.col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT col0 * - tab1.col1 AS col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + 68 + + cor1.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a130ac676c67665b1240edac45e73011

query I rowsort
SELECT - 54 AS col0 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to 440ee4bea4c39df49899f4a4d88059fe

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731

query I rowsort
SELECT - col2 + + 45 * - col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-127743
-335872
-4366

query IIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab0 cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d

query I rowsort
SELECT ALL - col1 * 13 - - cor0.col2 AS col1 FROM tab0 cor0
----
-1085
-1101
-1260

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT col0 + - col2 * + col1 FROM tab0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-3354
SELECT DISTINCT 26 DIV col0 + + col1 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT 26 / col0 + + col1 FROM tab1
----
10
13
34

query I rowsort
SELECT ALL col2 * - 40 AS col2 FROM tab0 AS cor0
----
-1320
-3280
-40

query I rowsort
SELECT - 87 + 74 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT 9 * - col2 FROM tab0 cor0
----
-297
-738
-9

query I rowsort
SELECT ALL 27 FROM tab2 cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort
SELECT - 37 * - 83 + col2 + + CAST ( - col2 + col2 * + ( col2 ) AS REAL ) FROM tab0 AS cor0
----
3072
4160
9795

query I rowsort
SELECT DISTINCT + - col0 + - col2 * col2 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT DISTINCT + col0 * + tab0.col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + ( + col0 ) * ( - 84 ) + - col2 AS col2 FROM tab2
----
-615
-6578
-6674

query I rowsort
SELECT + col2 + + tab1.col0 * + ( + ( col1 ) ) * - col0 FROM tab1
----
-180
-40903
-83104

query I rowsort
SELECT col0 * col2 + col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL - col1 * + col0 AS col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT col0 - - col0 AS col1 FROM tab2
----
14
156
158

query I rowsort
SELECT + col0 + cor0.col0 * - ( - col0 ) FROM tab1 cor0
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col0 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 12 * - col2 AS col2 FROM tab2 AS cor0
----
-312
-324
-456

query I rowsort
SELECT col2 * - 62 FROM tab2 cor0
----
-1612
-1674
-2356

query I rowsort
SELECT col1 * - col2 * + cor0.col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-3372
SELECT ALL - col1 DIV - col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL - col1 / - col1 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT col2 * 33 AS col0 FROM tab2 AS cor0
----
1254
858
891

query I rowsort
SELECT - col1 + - col0 * - col1 AS col1 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT + 76 AS col1 FROM tab1, tab0, tab0 AS cor0
----
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3376
SELECT ALL - + col2 DIV - ( 47 ) FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL - + col2 / - ( 47 ) FROM tab1 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT + - col1 * - col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3378
SELECT + col2 + + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT + col2 + + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col2 * 87 FROM tab1 AS cor0
----
4698
4959
8352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + 78 * - cor0.col1 col0 FROM tab1 AS cor0
----
13182
52728
7800

query I rowsort
SELECT DISTINCT + ( col1 ) + + col2 + col0 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT DISTINCT - col1 + col2 * - col2 AS col0 FROM tab0 cor0
----
-1175
-6815
-98

query I rowsort
SELECT DISTINCT 73 * - cor0.col1 FROM tab1 AS cor0
----
-1898
-730
-949

query I rowsort
SELECT 58 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT ALL - + 64 * - cor0.col2 + + col2 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT ( - cor0.col0 ) + + 65 - - col1 FROM tab1 cor0
----
-2
11
88

query I rowsort
SELECT ALL - - 74 * + col1 FROM tab0 AS cor0
----
6364
6734
7178

query I rowsort
SELECT DISTINCT + 32 FROM tab1 AS cor0
----
32

query I rowsort
SELECT DISTINCT col2 + col1 AS col1 FROM tab0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3390
SELECT ALL + 3 DIV + col1 + + col2 * col1 * col1 + - tab1.col0 FROM tab1
----
16144
36501
5636

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL + 3 / + col1 + + col2 * col1 * col1 + - tab1.col0 FROM tab1
----
16144
36501
5636

onlyif mysql # use DIV operator for integer division
query I rowsort label-3391
SELECT DISTINCT - col1 + + col0 DIV ( + tab1.col2 ) FROM tab1
----
-13
-26
-9

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT - col1 + + col0 / ( + tab1.col2 ) FROM tab1
----
-13
-26
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3392
SELECT col2 * ( - 92 ) DIV - col1 AS col2 FROM tab2 cor0
----
205
40
80

skipif mysql # not compatible
query I rowsort label-3392
SELECT col2 * ( - 92 ) / - col1 AS col2 FROM tab2 cor0
----
205
40
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3393
SELECT - + col2 * col0 DIV + 36 FROM tab1 cor0
----
-101
-213
-4

skipif mysql # not compatible
query I rowsort label-3393
SELECT - + col2 * col0 / + 36 FROM tab1 cor0
----
-101
-213
-4

query I rowsort
SELECT - cor0.col1 + 18 * col0 * - col1 AS col2 FROM tab1 AS cor0
----
-11530
-1430
-18733

query I rowsort
SELECT col2 + col0 + + 32 AS col1 FROM tab1
----
153
208
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3396
SELECT ALL + col0 * col1 + - col0 DIV ( + col1 ) FROM tab2
----
1339
217
4601

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL + col0 * col1 + - col0 / ( + col1 ) FROM tab2
----
1339
217
4601

onlyif mysql # use DIV operator for integer division
query I rowsort label-3397
SELECT col2 * col2 DIV col1 AS col2 FROM tab1
----
112
324
708

skipif mysql # not compatible
query I rowsort label-3397
SELECT col2 * col2 / col1 AS col2 FROM tab1
----
112
324
708

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3398
SELECT - ( + col0 ) + + CAST( - ( + cor0.col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-178
-48
-70

skipif mysql # not compatible
query I rowsort label-3398
SELECT - ( + col0 ) + + CAST ( - ( + cor0.col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT cor0.col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL col0 * 86 FROM tab0
----
2064
3010
7654

query I rowsort
SELECT - + 96 AS col0 FROM tab1 AS cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT + - ( - 38 ) * col1 AS col0 FROM tab1 AS cor0
----
380
494
988

query I rowsort
SELECT ALL - cor0.col0 * 97 AS col0 FROM tab0 cor0
----
-2328
-3395
-8633

query I rowsort
SELECT - col1 * tab2.col2 * - col0 + + col1 AS col2 FROM tab2
----
119711
51051
5890

query I rowsort
SELECT + 7 FROM tab0, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL + cor0.col0 * col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + ( col2 ) * + col1 * 30 AS col0 FROM tab0 AS cor0
----
223860
2910
85140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 + col2 col0 FROM tab1 AS cor0
----
-1
-40
-43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3409
SELECT ALL - + CAST( + col1 AS SIGNED ) * + col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL - + CAST ( + col1 AS INTEGER ) * + col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3410
SELECT ALL - + 40 * ( col2 ) DIV col0 col0 FROM tab2 AS cor0
----
-13
-154
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL - + 40 * ( col2 ) / col0 col0 FROM tab2 AS cor0
----
-13
-154
-19

query I rowsort
SELECT + 78 * - cor0.col1 FROM tab1 AS cor0
----
-1014
-2028
-780

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3412
SELECT ALL - - col1 * + col1 + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL - - col1 * + col1 + col0 + 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-3413
SELECT ALL - - cor0.col1 - - col2 DIV col2 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL - - cor0.col1 - - col2 / col2 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT DISTINCT + col1 - - 49 FROM tab1 AS cor0
----
59
62
75

query I rowsort
SELECT - 98 + col1 FROM tab0 cor0
----
-1
-12
-7

query I rowsort
SELECT ALL + ( + 74 ) + col0 FROM tab2 AS cor0
----
152
153
81

query I rowsort
SELECT DISTINCT + 68 * 48 AS col0 FROM tab1
----
3264

query I rowsort
SELECT + 77 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL + - ( - col1 ) + + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - col0 + col1 * - col1 AS col1 FROM tab0 cor0
----
-7420
-8370
-9444

query I rowsort
SELECT - - col2 + cor0.col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT 74 + cor0.col2 * col2 FROM tab1 cor0
----
2990
3323
9290

query I rowsort
SELECT 91 * - col2 AS col0 FROM tab0 cor0
----
-3003
-7462
-91

query I rowsort
SELECT ALL + col2 * col2 + - 42 AS col2 FROM tab1 AS cor0
----
2874
3207
9174

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3425
SELECT - col2 + CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3425
SELECT - col2 + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3426
SELECT col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + 28 * - col0 - col0 FROM tab2 AS cor0
----
-128934
-37683
-6083

onlyif mysql # use DIV operator for integer division
query I rowsort label-3428
SELECT + - col1 * 62 DIV col0 + - col0 AS col1 FROM tab1 AS cor0
----
-540
-73
-90

skipif mysql # not compatible
query I rowsort label-3428
SELECT + - col1 * 62 / col0 + - col0 AS col1 FROM tab1 AS cor0
----
-540
-73
-90

query I rowsort
SELECT + + col2 * 37 FROM tab1 AS cor0
----
1998
2109
3552

query I rowsort
SELECT ALL + col2 + ( 43 ) FROM tab2 cor0
----
69
70
81

query I rowsort
SELECT DISTINCT - col2 * - 73 AS col0 FROM tab0 AS cor0
----
2409
5986
73

query I rowsort
SELECT ALL + col1 * ( - ( - col2 ) ) FROM tab2 cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3433
SELECT CAST( - col1 AS SIGNED ) * - col1 + + col2 AS col2 FROM tab2 AS cor0
----
327
3507
988

skipif mysql # not compatible
query I rowsort label-3433
SELECT CAST ( - col1 AS INTEGER ) * - col1 + + col2 AS col2 FROM tab2 AS cor0
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-3434
SELECT + col0 + col2 DIV + col0 col0 FROM tab2 AS cor0
----
10
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3434
SELECT + col0 + col2 / + col0 col0 FROM tab2 AS cor0
----
10
78
79

query I rowsort
SELECT cor0.col2 + + 74 AS col0 FROM tab1 AS cor0
----
128
131
170

query I rowsort
SELECT - cor0.col2 * + cor0.col0 FROM tab1 cor0
----
-162
-3648
-7680

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 8d4d13f65f86e1b26b6004a6bdc662b3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * tab0.col2 col1 FROM tab0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 col2 FROM tab2, tab0 AS cor0
----
28

query I rowsort
SELECT ALL + 92 + col2 - 48 FROM tab1
----
101
140
98

query I rowsort
SELECT 85 + + col2 * 3 * 34 AS col1 FROM tab1 cor0
----
5593
5899
9877

query I rowsort
SELECT - cor0.col0 - - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 2 * col2 - 68 AS col1 FROM tab2 AS cor0
----
-14
-16
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3444
SELECT - col0 - col2 DIV col1 AS col0 FROM tab2 AS cor0
----
-7
-78
-81

skipif mysql # not compatible
query I rowsort label-3444
SELECT - col0 - col2 / col1 AS col0 FROM tab2 AS cor0
----
-7
-78
-81

query I rowsort
SELECT + + 61 AS col0 FROM tab2 cor0
----
61
61
61

query I rowsort
SELECT 5 * + cor0.col1 FROM tab0 AS cor0
----
430
455
485

query I rowsort
SELECT col0 * col2 + - ( 7 ) FROM tab0 AS cor0
----
28
7291
785

query I rowsort
SELECT + - cor0.col2 - - col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - - col0 * col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3450
SELECT - col1 * - CAST( cor0.col2 AS SIGNED ) + col1 FROM tab2 AS cor0
----
1593
663
868

skipif mysql # not compatible
query I rowsort label-3450
SELECT - col1 * - CAST ( cor0.col2 AS INTEGER ) + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL + col1 + ( + col0 * col2 ) + ( cor0.col2 + - col0 ) FROM tab0 AS cor0
----
7382
887
98

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 + CAST ( + col0 AS REAL ) AS col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT + col2 * + ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3454
SELECT + col2 * 30 DIV cor0.col1 AS col1 FROM tab1 cor0
----
171
221
62

skipif mysql # not compatible
query I rowsort label-3454
SELECT + col2 * 30 / cor0.col1 AS col1 FROM tab1 cor0
----
171
221
62

query I rowsort
SELECT DISTINCT 77 * + cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
6622
7007
7469

query I rowsort
SELECT 26 FROM tab0, tab1 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT + tab0.col0 * cor0.col1 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 2e5239e07239fc5e8b7ad998a3c285e1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 41 col2 FROM tab1
----
-1066
-410
-533

query I rowsort
SELECT - 65 FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 * 34 + - col1 FROM tab1 AS cor0
----
124022
261107
5482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to a42c42e56e75960d97c09dd731d99c01

onlyif mysql # use DIV operator for integer division
query I rowsort label-3462
SELECT DISTINCT + + 50 DIV - col0 + + ( - 21 ) * col0 FROM tab1 AS cor0
----
-1344
-1680
-79

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT + + 50 / - col0 + + ( - 21 ) * col0 FROM tab1 AS cor0
----
-1344
-1680
-79

query I rowsort
SELECT ALL - col2 * + col2 + + col0 - + cor0.col2 AS col0 FROM tab0 cor0
----
-1098
-6717
33

query I rowsort
SELECT ALL - - 32 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-6
5
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + - col0 + col1 col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT 83 FROM tab2, tab2 cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) col2 FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3468
SELECT DISTINCT - ( col2 ) * col2 + col0 DIV cor0.col2 + - 18 AS col2 FROM tab1 AS cor0
----
-2934
-3266
-9234

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT - ( col2 ) * col2 + col0 / cor0.col2 + - 18 AS col2 FROM tab1 AS cor0
----
-2934
-3266
-9234

query I rowsort
SELECT - ( tab2.col1 ) FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT + 23 + + col2 AS col0 FROM tab0
----
105
24
56

query I rowsort
SELECT ALL + 56 + col1 * 58 FROM tab0 cor0
----
5044
5334
5682

query I rowsort
SELECT - cor0.col2 * - 18 FROM tab2, tab0 AS cor0
----
9 values hashing to f3762691e4a423c4281dd8ce8a25a896

query I rowsort
SELECT tab1.col2 * - col0 + - 14 FROM tab1
----
-176
-3662
-7694

query I rowsort
SELECT ALL + col0 * + ( 14 ) AS col1 FROM tab1
----
1120
42
896

query I rowsort
SELECT ALL + cor1.col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - - col2 + - col1 FROM tab2 cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 + col1 * - ( 61 ) col2 FROM tab1 AS cor0
----
-1424
3038
6887

query I rowsort
SELECT ALL + col0 + col1 AS col2 FROM tab1
----
29
74
93

query I rowsort
SELECT - 44 * cor0.col1 FROM tab0 AS cor0
----
-3784
-4004
-4268

query I rowsort
SELECT + 36 + col2 AS col0 FROM tab0 AS cor0
----
118
37
69

query I rowsort
SELECT DISTINCT - 98 FROM tab2 AS cor0
----
-98

query I rowsort
SELECT ALL + + 38 * - col1 FROM tab2 cor0
----
-1178
-2242
-646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 * - col2 + + col1 * + cor0.col1 col1 FROM tab2 AS cor0
----
-1037
-2523
1557

query I rowsort
SELECT ALL + col0 - + 9 FROM tab2 AS cor0
----
-2
69
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + + 21 + col0 * - cor0.col2 FROM tab2 cor0
----
-168
-2007
-2981

query I rowsort
SELECT + + 92 * col0 + - col2 AS col1 FROM tab1 AS cor0
----
222
5831
7264

onlyif mysql # use DIV operator for integer division
query I rowsort label-3490
SELECT DISTINCT + col0 DIV col1 AS col2 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT + col0 / col1 AS col2 FROM tab1 AS cor0
----
0
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3491
SELECT - col0 * ( col2 ) DIV + col0 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3491
SELECT - col0 * ( col2 ) / + col0 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT cor0.col2 + + col2 * col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - col1 + + col2 * col2 AS col1 FROM tab1 AS cor0
----
2890
3239
9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-3494
SELECT ALL + - col1 * cor0.col0 DIV + col1 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL + - col1 * cor0.col0 / + col1 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - ( - col2 ) * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col0 * - col0 col1 FROM tab0 AS cor0
----
-1224
-543
-7839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3498
SELECT ALL CAST( cor0.col1 AS SIGNED ) * col0 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL CAST ( cor0.col1 AS INTEGER ) * col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 98 * - cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
-106722
-658952
-98

query I rowsort
SELECT + - ( + col1 ) AS col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT col1 * + ( col1 ) + - col1 * + 8 AS col0 FROM tab0
----
6708
7553
8633

onlyif mysql # use DIV operator for integer division
query I rowsort label-3502
SELECT DISTINCT col0 DIV 69 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT col0 / 69 FROM tab0
----
0
1

query I rowsort
SELECT - col1 + tab2.col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL - + 96 + - col2 * - ( col0 ) FROM tab0 AS cor0
----
-61
696
7202

onlyif mysql # use DIV operator for integer division
query I rowsort label-3505
SELECT ALL - 97 + + col2 DIV 49 + + col1 * - col2 FROM tab1 AS cor0
----
-1344
-1500
-666

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL - 97 + + col2 / 49 + + col1 * - col2 FROM tab1 AS cor0
----
-1344
-1500
-666

query I rowsort
SELECT ALL - - ( col2 ) + col0 * col0 AS col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT - - 46 + + col2 * col2 AS col1 FROM tab1 AS cor0
----
2962
3295
9262

query I rowsort
SELECT DISTINCT - + 6 + - col0 * 43 FROM tab0 AS cor0
----
-1038
-1511
-3833

query I rowsort
SELECT + - col1 + - col1 * ( + 18 ) FROM tab1 cor0
----
-190
-247
-494

query I rowsort
SELECT ALL - - 21 + - col2 * + 19 FROM tab1 AS cor0
----
-1005
-1062
-1803

onlyif mysql # use DIV operator for integer division
query I rowsort label-3511
SELECT - col2 DIV col0 + 61 FROM tab0 AS cor0
----
60
61
61

skipif mysql # not compatible
query I rowsort label-3511
SELECT - col2 / col0 + 61 FROM tab0 AS cor0
----
60
61
61

query I rowsort
SELECT ALL + - 20 AS col1 FROM tab1 AS cor0
----
-20
-20
-20

query I rowsort
SELECT ALL - cor0.col1 + col1 + 25 * cor0.col0 AS col1 FROM tab0 AS cor0
----
2225
600
875

query I rowsort
SELECT ALL + ( - cor0.col2 ) AS col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - ( + col0 ) * cor0.col2 + 64 * col2 AS col2 FROM tab1 AS cor0
----
-1536
0
3294

query I rowsort
SELECT + ( col1 ) * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + col0 * + 21 + - tab0.col2 FROM tab0
----
1787
471
734

onlyif mysql # use DIV operator for integer division
query I rowsort label-3518
SELECT DISTINCT - col1 DIV + 67 + col2 AS col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT - col1 / + 67 + col2 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL tab0.col0 + + col2 * - col0 + tab0.col2 AS col2 FROM tab0
----
-7127
-735
1

query I rowsort
SELECT DISTINCT + - ( + col0 ) + + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 - + col2 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT - 22 AS col0 FROM tab1
----
-22
-22
-22

query I rowsort
SELECT DISTINCT + 37 FROM tab0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
84

query I rowsort
SELECT ALL - ( + cor0.col0 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT ALL ( tab0.col1 ) * + tab0.col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL + 24 * - col1 FROM tab0 AS cor0
----
-2064
-2184
-2328

query I rowsort
SELECT ALL + col0 - - col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - 50 * + col1 FROM tab2 AS cor0
----
-1550
-2950
-850

onlyif mysql # use DIV operator for integer division
query I rowsort label-3530
SELECT ALL - col1 - - col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL - col1 - - col0 / + col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - + col2 * - col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + col2 * - col2 * + col2 FROM tab0 AS cor0
----
-1
-35937
-551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-3533
SELECT - col0 + col1 DIV + 4 FROM tab0
----
-11
-3
-67

skipif mysql # not compatible
query I rowsort label-3533
SELECT - col0 + col1 / + 4 FROM tab0
----
-11
-3
-67

query I rowsort
SELECT ( col0 ) * - col1 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3535
SELECT + col1 + - col0 * col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-3298
-7
24

skipif mysql # not compatible
query I rowsort label-3535
SELECT + col1 + - col0 * col1 / col2 AS col1 FROM tab0 AS cor0
----
-3298
-7
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3536
SELECT + + col2 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT + + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * - col2 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL 50 AS col0 FROM tab1
----
50
50
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-3539
SELECT col2 + - col1 DIV - tab0.col0 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-3539
SELECT col2 + - col1 / - tab0.col0 FROM tab0
----
3
36
83

query I rowsort
SELECT DISTINCT ( 22 ) FROM tab1, tab1 AS cor0
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 41 * + col2 col1 FROM tab2
----
27716
29889
59204

query I rowsort
SELECT ALL 38 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ALL 96 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT - + col1 + col0 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT col0 * ( + 58 ) FROM tab0 AS cor0
----
1392
2030
5162

query I rowsort
SELECT + col2 * + col1 + - col0 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT ( col1 * - tab2.col2 ) + + col2 AS col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT - tab0.col0 + col0 AS col1 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3549
SELECT + col0 + + col0 DIV - col0 col0 FROM tab2
----
6
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3549
SELECT + col0 + + col0 / - col0 col0 FROM tab2
----
6
77
78

query I rowsort
SELECT DISTINCT + col1 * 72 AS col1 FROM tab2 AS cor0
----
1224
2232
4248

query I rowsort
SELECT ALL + 80 * - col2 + col2 FROM tab2 AS cor0
----
-2054
-2133
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3552
SELECT + col1 DIV 78 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3552
SELECT + col1 / 78 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( col1 ) * col2 + ( - col2 ) AS col0 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3554
SELECT ALL + - CAST( col1 AS SIGNED ) * col0 + - col0 * cor0.col2 AS col2 FROM tab0 cor0
----
-15397
-2856
-3430

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL + - CAST ( col1 AS INTEGER ) * col0 + - col0 * cor0.col2 AS col2 FROM tab0 cor0
----
-15397
-2856
-3430

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3555
SELECT ALL CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col0 col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + col1 + cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT col0 * + col2 * col1 AS col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - tab2.col1 * col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL - ( 82 ) AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0

query I rowsort
SELECT ALL - col0 + col1 - 90 * 38 * col1 FROM tab0 AS cor0
----
-294058
-311218
-331678

query I rowsort
SELECT DISTINCT cor0.col0 - cor0.col1 * 44 FROM tab2, tab2 AS cor0
----
-1357
-2518
-669

query I rowsort
SELECT DISTINCT col0 * + col0 + col1 + - col1 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - + col2 + - col0 * col2 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL + col0 * + col1 * col2 + - col1 FROM tab1 AS cor0
----
36470
4186
99827

query I rowsort
SELECT DISTINCT - - cor0.col1 + col2 * - col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-36470
-4186
-99827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL + + col1 * cor0.col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT tab0.col0 - + col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT - col2 - col2 * + col0 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT ALL col1 * col1 * - col1 AS col0 FROM tab1
----
-1000
-17576
-2197

query I rowsort
SELECT - col0 + + col0 * col0 FROM tab2
----
42
6006
6162

query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - col1 * col1 - col0 AS col0 FROM tab2
----
-3559
-368
-968

query I rowsort
SELECT ALL col0 - col0 * col2 FROM tab0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 - col2 col0 FROM tab0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3578
SELECT + tab2.col1 + + col0 DIV - col0 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-3578
SELECT + tab2.col1 + + col0 / - col0 FROM tab2
----
16
30
58

query I rowsort
SELECT + - col1 + - col1 * + cor0.col2 AS col1 FROM tab0 cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT - + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + - col2 * - cor0.col0 + - col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT DISTINCT - 65 * - tab1.col2 FROM tab1
----
3510
3705
6240

query I rowsort
SELECT - - col2 * col0 + + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + ( col1 ) * cor0.col1 + col0 * col0 * + cor0.col1 FROM tab1 AS cor0
----
41060
83369
910

query I rowsort
SELECT + 5 + cor0.col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2911
-3244
-9211

query I rowsort
SELECT DISTINCT + col0 * + col0 + + col1 FROM tab1
----
35
4106
6413

query I rowsort
SELECT DISTINCT + 31 * + col0 AS col0 FROM tab0
----
1085
2759
744

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - + cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + + cor0.col0 * col0 * col2 AS col1 FROM tab1 cor0
----
233472
486
614400

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col0 * col1 + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - tab2.col1 IN ( col1 + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL - col1 * + col1 - tab2.col0 AS col0 FROM tab2
----
-3559
-368
-968

query I rowsort
SELECT + col0 + - col0 * - tab1.col2 - - col1 AS col2 FROM tab1
----
191
3722
7773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col0 col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE - col2 NOT IN ( - tab1.col0 + - col0 * col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT col2 - col0 FROM tab2 WHERE NOT + col1 * - col0 IN ( - col1 )
----
-41
-52
20

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT + col2 * col2 AS col0 FROM tab0 WHERE col1 * + col0 * - col1 IN ( + col2 * - col2 )
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE col2 * col0 * + col2 >= NULL
----

query I rowsort
SELECT col0 + + col0 * tab1.col1 AS col2 FROM tab1
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - tab2.col1 col1 FROM tab2 WHERE NOT ( NULL ) < col0 / col2
----

query I rowsort
SELECT + - 46 * col2 * col0 AS col2 FROM tab2 AS cor0
----
-138092
-8694
-93288

query I rowsort
SELECT + col2 + + col2 - col1 FROM tab1
----
104
179
82

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col2 * - col1 )
----

query I rowsort
SELECT - + 80 * col2 FROM tab0 AS cor0
----
-2640
-6560
-80

query I rowsort
SELECT DISTINCT - tab0.col1 + - col0 * + col0 FROM tab0
----
-1322
-662
-8012

query I rowsort
SELECT col0 FROM tab2 WHERE ( col1 ) NOT IN ( col2 * tab2.col0 + col2 )
----
7
78
79

query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 + + cor0.col2 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-3612
SELECT + col1 DIV cor0.col1 + + col1 col2 FROM tab2 AS cor0
----
18
32
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3612
SELECT + col1 / cor0.col1 + + col1 col2 FROM tab2 AS cor0
----
18
32
60

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) BETWEEN ( NULL ) AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col1 col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
86
91
97

query I rowsort
SELECT DISTINCT col2 * + col1 * + col2 AS col0 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT ALL + col1 + - col0 + col0 FROM tab0
----
86
91
97

query I rowsort
SELECT + col0 * + tab0.col1 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT - col1 + col0 IN ( col2 * - col0 * col0 )
----
10
13
26

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT ALL - col1 + tab0.col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col2 + tab2.col0 AS col0 FROM tab2 WHERE - col0 IN ( - tab2.col2 - tab2.col0 * - tab2.col1 )
----

query I rowsort
SELECT col1 * + tab1.col1 AS col2 FROM tab1
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col2 * - col0 + tab2.col0 * - col1 FROM tab2
----
-406
-4345
-6630

query I rowsort
SELECT DISTINCT + col0 * tab1.col1 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT + tab0.col0 * col0 + col2 * + col0 - + col1 AS col0 FROM tab0
----
1163
1282
15128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - cor0.col2 * + col2 col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT ALL - tab0.col2 + col1 * - col2 + + col1 AS col2 FROM tab0
----
-1
-2785
-7453

query I rowsort
SELECT ALL + col0 + col1 + - col1 AS col1 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3632
SELECT DISTINCT + col0 DIV col1 + + col1 + - col1 col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT + col0 / col1 + + col1 + - col1 col2 FROM tab0
----
0

query I rowsort
SELECT col0 * - col1 * - col1 AS col0 FROM tab2
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-3634
SELECT + 8 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3634
SELECT + 8 / cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 col0 FROM tab2 AS cor0
----
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3636
SELECT - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3636
SELECT - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 col2 FROM tab1 AS cor0
----
64
64
64

query I rowsort
SELECT ALL + + cor0.col1 + - col2 * - col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL + - 67 - col2 FROM tab0 AS cor0
----
-100
-149
-68

query I rowsort
SELECT DISTINCT + 28 AS col1 FROM tab2 AS cor0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL cor0.col0 + + 87 FROM tab2, tab0 cor0
----
9 values hashing to 7e40e63e1d968f57439cc0074c42b75e

query I rowsort
SELECT + 24 AS col0 FROM tab1
----
24
24
24

query I rowsort
SELECT 35 * cor0.col1 FROM tab0 cor0
----
3010
3185
3395

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL tab0.col0 + + ( 97 ) FROM tab0
----
121
132
186

query I rowsort
SELECT ALL col1 + + 28 * col2 + + col0 FROM tab0
----
1034
160
2476

query I rowsort
SELECT ALL + col0 + - 39 FROM tab0
----
-15
-4
50

query I rowsort
SELECT col2 * 51 + + ( + col0 ) + 9 FROM tab2
----
1393
1413
2026

query I rowsort
SELECT DISTINCT + col2 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-3651
SELECT + col2 + col2 * - col0 + col0 DIV + ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-161
-2001
-2963

skipif mysql # not compatible
query I rowsort label-3651
SELECT + col2 + col2 * - col0 + col0 / + ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-161
-2001
-2963

onlyif mysql # use DIV operator for integer division
query I rowsort label-3652
SELECT ALL - col1 DIV - cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL - col1 / - cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3654
SELECT DISTINCT col2 + - 34 DIV col2 + col1 AS col2 FROM tab0 AS cor0
----
118
173
64

skipif mysql # not compatible
query I rowsort label-3654
SELECT DISTINCT col2 + - 34 / col2 + col1 AS col2 FROM tab0 AS cor0
----
118
173
64

query I rowsort
SELECT DISTINCT col2 * ( + col0 ) FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * col0 + - col0 * col2 col1 FROM tab1 AS cor0
----
-186
-4231
-8624

query I rowsort
SELECT - cor0.col0 + - cor0.col1 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 822c2df270733c1079ccc0b8e544f81e

query I rowsort
SELECT ALL col2 * + 20 FROM tab0 AS cor0
----
1640
20
660

query I rowsort
SELECT DISTINCT + col2 * - col2 + col2 - 90 AS col1 FROM tab0 AS cor0
----
-1146
-6732
-90

query I rowsort
SELECT ALL col2 + - 15 FROM tab0 AS cor0
----
-14
18
67

query I rowsort
SELECT ALL + 61 FROM tab2 cor0
----
61
61
61

query I rowsort
SELECT + 93 + 87 FROM tab0 AS cor0
----
180
180
180

query I rowsort
SELECT ALL + - 63 * - cor0.col0 FROM tab0 AS cor0
----
1512
2205
5607

query I rowsort
SELECT + ( col1 ) * - col1 + col0 AS col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT + ( col1 ) + cor0.col2 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + 79 AS col1 FROM tab1 cor0
----
79

query I rowsort
SELECT ALL col0 * col0 + col0 - + 50 FROM tab2 AS cor0
----
6
6112
6270

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3668
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 69 + 80 AS col0 FROM tab0 AS cor0
----
149
149
149

query I rowsort
SELECT DISTINCT tab1.col1 + - ( 34 * col2 ) + 13 AS col1 FROM tab1
----
-1797
-1915
-3238

query I rowsort
SELECT ALL col1 + tab2.col1 FROM tab2
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3672
SELECT col1 * 98 DIV + col0 + cor0.col1 + - col0 col2 FROM tab1 AS cor0
----
-39
-52
872

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3672
SELECT col1 * 98 / + col0 + cor0.col1 + - col0 col2 FROM tab1 AS cor0
----
-39
-52
872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 74 col2 FROM tab1 AS cor0
----
-74
-74
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 * 77 col1 FROM tab0
----
6646
7096
7504

query I rowsort
SELECT - - 28 * - 96 + + col1 * col1 * col0 AS col1 FROM tab2 AS cor0
----
20143
268830
4039

query I rowsort
SELECT - + cor0.col1 * col1 + col0 * col2 FROM tab0 AS cor0
----
-6604
-9374
-983

onlyif mysql # use DIV operator for integer division
query I rowsort label-3677
SELECT + ( col2 + + col1 ) DIV tab0.col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3677
SELECT + ( col2 + + col1 ) / tab0.col1 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3678
SELECT - 86 DIV + col1 + + col1 FROM tab2 AS cor0
----
12
29
58

skipif mysql # not compatible
query I rowsort label-3678
SELECT - 86 / + col1 + + col1 FROM tab2 AS cor0
----
12
29
58

query I rowsort
SELECT - ( col1 ) - col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT 24 - ( - col0 ) * + col1 * col2 AS col0 FROM tab2 cor0
----
119676
51058
5883

query I rowsort
SELECT ALL + col2 + + 80 AS col0 FROM tab0
----
113
162
81

query I rowsort
SELECT + - 59 + + col1 FROM tab0 cor0
----
27
32
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3683
SELECT ALL col0 DIV col1 AS col1 FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL col0 / col1 AS col1 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT DISTINCT - 11 * - col2 AS col1 FROM tab0 AS cor0
----
11
363
902

query I rowsort
SELECT DISTINCT - 98 * col0 AS col0 FROM tab0
----
-2352
-3430
-8722

query I rowsort
SELECT - col1 * col2 + + col2 AS col0 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT col0 * - 64 AS col0 FROM tab1
----
-192
-4096
-5120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab0.col2 col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + 55 * 24 FROM tab2
----
1320
1320
1320

query I rowsort
SELECT DISTINCT ( - tab0.col2 * - col2 ) FROM tab0
----
1
1089
6724

query I rowsort
SELECT 34 * col1 FROM tab2
----
1054
2006
578

query I rowsort
SELECT 25 * + col2 * + col1 AS col0 FROM tab2
----
16150
20925
38350

onlyif mysql # use DIV operator for integer division
query I rowsort label-3693
SELECT DISTINCT tab1.col2 DIV col2 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT tab1.col2 / col2 AS col2 FROM tab1
----
1

query I rowsort
SELECT ALL - - 18 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595

onlyif mysql # use DIV operator for integer division
query I rowsort label-3695
SELECT + ( + col1 ) DIV + col2 + - col1 * + col2 * + col1 FROM tab0
----
-244066
-679041
-9312

skipif mysql # not compatible
query I rowsort label-3695
SELECT + ( + col1 ) / + col2 + - col1 * + col2 * + col1 FROM tab0
----
-244066
-679041
-9312

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1, tab2, tab0 cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT ( col0 * + ( 82 ) ) FROM tab2
----
574
6396
6478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 + col2 col2 FROM tab1
----
-15
-18
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3699
SELECT + ( + tab2.col2 * CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3699
SELECT + ( + tab2.col2 * CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * - CAST ( col0 AS REAL ) + + cor0.col0 * col0 AS col1 FROM tab1 cor0
----
4736
7440
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3701
SELECT DISTINCT - cor0.col0 - CAST( + cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT - cor0.col0 - CAST ( + cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT col1 + 28 AS col1 FROM tab1 AS cor0
----
38
41
54

query I rowsort
SELECT DISTINCT + col0 + 14 + - 67 * col2 AS col0 FROM tab2 AS cor0
----
-1650
-1788
-2453

query I rowsort
SELECT DISTINCT + + col1 * - cor0.col1 * + 68 AS col0 FROM tab1 AS cor0
----
-11492
-45968
-6800

query I rowsort
SELECT ALL - - col2 + + col2 * col2 AS col0 FROM tab2 cor0
----
1482
702
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-3706
SELECT DISTINCT + cor0.col2 * + 91 + cor0.col2 - - col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
-5
3034
7543

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT + cor0.col2 * + 91 + cor0.col2 - - col1 / - col2 AS col2 FROM tab0 AS cor0
----
-5
3034
7543

query I rowsort
SELECT DISTINCT - - col0 + ( + cor0.col0 ) FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT col2 * ( + col0 ) + col1 * col1 FROM tab0 AS cor0
----
15579
8188
9444

query I rowsort
SELECT ALL + + 94 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT ALL cor0.col1 + cor0.col0 * - 97 AS col2 FROM tab1 AS cor0
----
-265
-6198
-7747

query I rowsort
SELECT + 83 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT ( col0 ) * - col2 * col1 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT - 19 FROM tab1, tab2 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT ALL + 80 + - cor0.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 18be84b799eb996e5b70a65e3345545c

query I rowsort
SELECT - cor1.col0 + cor0.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9b1c97210cd265695caf72f5b03de732

query I rowsort
SELECT col0 * 91 * - col2 AS col0 FROM tab0 cor0
----
-3185
-664118
-72072

query I rowsort
SELECT + cor0.col1 * + col0 FROM tab1 AS cor0
----
1040
640
78

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 cor1
----
972 values hashing to deaaa983f771be544ffdc26f04a18657

query I rowsort
SELECT DISTINCT - - 52 AS col2 FROM tab1, tab1 AS cor0, tab1 cor1, tab2, tab2 cor2
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * - col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3721
SELECT - tab2.col0 * - tab2.col2 + - 14 DIV tab2.col1 FROM tab2
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-3721
SELECT - tab2.col0 * - tab2.col2 + - 14 / tab2.col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL + 65 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT ALL - 12 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0

query I rowsort
SELECT - + col0 + + col0 * + col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT + 46 + cor0.col2 AS col2 FROM tab2 AS cor0
----
72
73
84

query I rowsort
SELECT + + cor0.col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT + col1 * tab0.col2 - + col1 FROM tab0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-3728
SELECT DISTINCT col0 + + col2 DIV - col1 FROM tab1
----
1
59
73

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT col0 + + col2 / - col1 FROM tab1
----
1
59
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-3729
SELECT + col2 * + col0 + - col0 DIV 46 AS col0 FROM tab2 AS cor0
----
189
2027
3001

skipif mysql # not compatible
query I rowsort label-3729
SELECT + col2 * + col0 + - col0 / 46 AS col0 FROM tab2 AS cor0
----
189
2027
3001

query I rowsort
SELECT 4 + - col0 * ( + 1 * + col2 ) + - col0 AS col1 FROM tab2 AS cor0
----
-192
-2102
-3077

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3731
SELECT ALL 50 * - col2 * - ( + col2 ) + - col1 + CAST( NULL AS DECIMAL ) / + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL 50 * - col2 * - ( + col2 ) + - col1 + CAST ( NULL AS REAL ) / + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3732
SELECT + col2 + col1 DIV ( - cor0.col2 * col2 ) col1 FROM tab0 AS cor0
----
-96
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3732
SELECT + col2 + col1 / ( - cor0.col2 * col2 ) col1 FROM tab0 AS cor0
----
-96
33
82

query I rowsort
SELECT + col2 + col1 + ( col0 * col0 ) FROM tab0 AS cor0
----
1323
695
8094

query I rowsort
SELECT 35 * + cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 18baf8aa12bceafb74e273208d5c2d18

query I rowsort
SELECT - col2 + + 20 * col2 FROM tab0 AS cor0
----
1558
19
627

query I rowsort
SELECT ALL col2 * 85 FROM tab2 cor0
----
2210
2295
3230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - 41 * col2 col1 FROM tab2 AS cor0
----
-1007
-1076
-1541

query I rowsort
SELECT ALL - col1 + + 85 - col2 FROM tab0 cor0
----
-13
-34
-88

query I rowsort
SELECT ALL + + col2 + ( col2 ) AS col1 FROM tab2 cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - ( col1 ) col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col1 * - col1 AS col2 FROM tab1 cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-3742
SELECT + 19 + - col0 DIV col0 AS col2 FROM tab1 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-3742
SELECT + 19 + - col0 / col0 AS col2 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT col1 * - col1 * cor0.col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT 70 - col0 * + col0 AS col0 FROM tab1
----
-4026
-6330
61

query I rowsort
SELECT ALL - col0 * + col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT - 18 - + col0 FROM tab0
----
-107
-42
-53

query I rowsort
SELECT DISTINCT - - col2 + + col1 + col2 FROM tab2 cor0
----
111
85
93

query I rowsort
SELECT ALL + - cor0.col2 + col1 * + col2 FROM tab2 AS cor0
----
1508
608
810

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 04d825fa29899c3ee2704c26a542267d

query I rowsort
SELECT DISTINCT - 29 + - col2 FROM tab1 AS cor0
----
-125
-83
-86

query I rowsort
SELECT ALL col0 - + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-3753
SELECT ALL - - col1 DIV - 26 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL - - col1 / - 26 AS col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT col0 + - 21 * col1 FROM tab2 AS cor0
----
-1161
-278
-644

query I rowsort
SELECT 58 - 20 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 9124b06d33995d82062026964cce3a38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * col2 + col0 * + col1 + + col1 col0 FROM tab2 AS cor0
----
1490
3108
5857

query I rowsort
SELECT DISTINCT - - cor0.col1 * - cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-3758
SELECT ALL + ( + col2 ) DIV col1 AS col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL + ( + col2 ) / col1 AS col0 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT DISTINCT + col0 * + col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - 68 * - col1 + - col2 FROM tab1 cor0
----
1714
623
788

query I rowsort
SELECT DISTINCT + - col1 * - col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT 87 + col2 AS col2 FROM tab0 AS cor0
----
120
169
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3763
SELECT DISTINCT col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT col0 / - col2 AS col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ALL + cor0.col0 + + col0 * 28 AS col2 FROM tab0 AS cor0
----
1015
2581
696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 + + col2 * ( col0 ) * col2 - col0 col1 FROM tab0 AS cor0
----
-75
26037
598272

query I rowsort
SELECT DISTINCT 35 + col0 FROM tab2 AS cor0
----
113
114
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-3767
SELECT 8 DIV col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3767
SELECT 8 / col0 FROM tab2
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3768
SELECT DISTINCT CAST( NULL AS SIGNED ) - col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col1 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + ( 50 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col2 col2 FROM tab0, tab1 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3771
SELECT DISTINCT + col1 + col0 DIV + col1 col2 FROM tab1
----
16
19
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT + col1 + col0 / + col1 col2 FROM tab1
----
16
19
26

query I rowsort
SELECT - 71 + 99 FROM tab0
----
28
28
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3773
SELECT CAST( col0 AS SIGNED ) * col1 AS col1 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-3773
SELECT CAST ( col0 AS INTEGER ) * col1 AS col1 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3774
SELECT + col1 DIV 18 + col2 FROM tab0
----
37
6
87

skipif mysql # not compatible
query I rowsort label-3774
SELECT + col1 / 18 + col2 FROM tab0
----
37
6
87

query I rowsort
SELECT DISTINCT + 30 * - col0 * - col1 AS col1 FROM tab2
----
138060
40290
6510

onlyif mysql # use DIV operator for integer division
query I rowsort label-3776
SELECT ALL col0 + + 13 DIV col1 + - col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL col0 + + 13 / col1 + - col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 80 + 19 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
110
167
414

query I rowsort
SELECT 29 FROM tab1
----
29
29
29

query I rowsort
SELECT DISTINCT - - 92 + ( + col1 ) AS col2 FROM tab1 AS cor0
----
102
105
118

onlyif mysql # use DIV operator for integer division
query I rowsort label-3780
SELECT ALL + - col1 * col2 DIV + col1 - + 40 AS col2 FROM tab1 cor0
----
-136
-94
-97

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL + - col1 * col2 / + col1 - + 40 AS col2 FROM tab1 cor0
----
-136
-94
-97

query I rowsort
SELECT ALL - 42 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27

onlyif mysql # use DIV operator for integer division
query I rowsort label-3782
SELECT - col0 DIV col2 - + 55 FROM tab0
----
-55
-56
-90

skipif mysql # not compatible
query I rowsort label-3782
SELECT - col0 / col2 - + 55 FROM tab0
----
-55
-56
-90

query I rowsort
SELECT DISTINCT + 74 AS col1 FROM tab0
----
74

query I rowsort
SELECT - ( tab0.col2 ) + col1 FROM tab0
----
53
9
96

query I rowsort
SELECT ( 8 ) AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

onlyif mysql # use DIV operator for integer division
query I rowsort label-3786
SELECT ( + col1 ) DIV - col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3786
SELECT ( + col1 ) / - col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 19 AS col1 FROM tab2
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col0 FROM tab0
----
47
47
47

query I rowsort
SELECT ALL + col0 + + col1 * + 21 * - col1 FROM tab2 AS cor0
----
-20174
-5990
-73023

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3790
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3791
SELECT + col1 - + col0 DIV 11 FROM tab2 AS cor0
----
10
31
52

skipif mysql # not compatible
query I rowsort label-3791
SELECT + col1 - + col0 / 11 FROM tab2 AS cor0
----
10
31
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3792
SELECT DISTINCT + col2 DIV - col2 - 40 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT + col2 / - col2 - 40 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT ALL col1 * col2 + - col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT - col1 + - col0 - - 93 FROM tab1 AS cor0
----
0
19
64

query I rowsort
SELECT - col1 + 8 FROM tab0 cor0
----
-78
-83
-89

query I rowsort
SELECT + 65 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT - col0 * - ( col2 ) FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL - col1 + + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - - col2 * - 30 AS col0 FROM tab1 AS cor0
----
-1620
-1710
-2880

query I rowsort
SELECT + col1 + + col1 * col0 AS col2 FROM tab0 cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3801
SELECT col0 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT col0 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 - + 78 AS col2 FROM tab2 AS cor0
----
-40
-51
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - ( + col1 ) col2 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3804
SELECT + col0 + + cor0.col1 DIV col2 col2 FROM tab0 cor0
----
132
26
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3804
SELECT + col0 + + cor0.col1 / col2 col2 FROM tab0 cor0
----
132
26
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3805
SELECT - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3805
SELECT - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3806
SELECT ALL col2 + CAST( NULL AS SIGNED ) * - col0 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-3806
SELECT ALL col2 + CAST ( NULL AS INTEGER ) * - col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3807
SELECT DISTINCT + col2 DIV + 2 AS col1 FROM tab0 AS cor0
----
0
16
41

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT + col2 / + 2 AS col1 FROM tab0 AS cor0
----
0
16
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL - col0 * 51 AS col0 FROM tab2
----
-357
-3978
-4029

query I rowsort
SELECT ALL - cor1.col1 * 91 FROM tab0, tab1, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to faaf4f8ddc9edc9f66431c8eae040925

query I rowsort
SELECT ALL - 55 FROM tab0, tab1 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 44545a6297aa29bb730ffb907c13bc58

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to ed80235f6457dada5cbb50ce9e2a8923

query I rowsort
SELECT - col0 * - cor0.col2 + col1 AS col2 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT + col0 * - ( + col2 + col1 ) FROM tab2 AS cor0
----
-406
-4345
-6630

query I rowsort
SELECT + - col2 * col1 - col1 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3817
SELECT ( - ( + col1 ) ) + + CAST( + cor0.col0 AS SIGNED ) * col2 * ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
3298
664027
68026

skipif mysql # not compatible
query I rowsort label-3817
SELECT ( - ( + col1 ) ) + + CAST ( + cor0.col0 AS INTEGER ) * col2 * ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
3298
664027
68026

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3818
SELECT - CAST( - cor0.col1 AS SIGNED ) + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-3818
SELECT - CAST ( - cor0.col1 AS INTEGER ) + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - 52 FROM tab1, tab0 cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3820
SELECT + CAST( + 49 AS SIGNED ) FROM tab2, tab2 cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

skipif mysql # not compatible
query I rowsort label-3820
SELECT + CAST ( + 49 AS INTEGER ) FROM tab2, tab2 cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT + - 92 * - col2 AS col1 FROM tab2 AS cor0
----
2392
2484
3496

query I rowsort
SELECT + col0 * + col2 * col0 AS col1 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT ALL + 69 + col1 * col1 * + cor0.col0 FROM tab2 cor0
----
22900
271587
6796

onlyif mysql # use DIV operator for integer division
query I rowsort label-3824
SELECT DISTINCT - cor0.col2 DIV + col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT - cor0.col2 / + col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 72 * + col1 + + col1 FROM tab2 AS cor0
----
1241
2263
4307

query I rowsort
SELECT - col1 + + col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3827
SELECT - ( - col0 ) * 24 DIV + 34 + col0 * + 64 AS col0 FROM tab1 AS cor0
----
194
4141
5176

skipif mysql # not compatible
query I rowsort label-3827
SELECT - ( - col0 ) * 24 / + 34 + col0 * + 64 AS col0 FROM tab1 AS cor0
----
194
4141
5176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + cor0.col0 + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL - col0 + - 78 AS col2 FROM tab2
----
-156
-157
-85

query I rowsort
SELECT ALL - tab2.col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + + 51 + + col2 AS col1 FROM tab2 AS cor0
----
77
78
89

query I rowsort
SELECT + 45 * + col2 + col2 FROM tab1 AS cor0
----
2484
2622
4416

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3834
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL - 7 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3836
SELECT ALL tab0.col2 + + ( col2 + tab0.col1 ) DIV - tab0.col1 AS col2 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL tab0.col2 + + ( col2 + tab0.col1 ) / - tab0.col1 AS col2 FROM tab0
----
0
32
81

query I rowsort
SELECT ALL + 76 * + 15 + - col0 * + 7 + - ( col0 ) AS col2 FROM tab0
----
428
860
948

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 * + col1 ) + col2 col2 FROM tab0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-3839
SELECT ALL + col0 * ( - col1 ) + col1 DIV col2 FROM tab1
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL + col0 * ( - col1 ) + col1 / col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + col0 + + 93 FROM tab0
----
117
128
182

query I rowsort
SELECT DISTINCT 49 + ( col0 ) AS col0 FROM tab1 AS cor0
----
113
129
52

query I rowsort
SELECT - col0 * ( col1 ) + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-3843
SELECT + ( + col1 ) DIV + col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3843
SELECT + ( + col1 ) / + col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT DISTINCT + col1 + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL + col1 * + col0 * col2 AS col2 FROM tab0 cor0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3846
SELECT - CAST( NULL AS SIGNED ) + col0 + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3846
SELECT - CAST ( NULL AS INTEGER ) + col0 + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3847
SELECT ALL col2 + - col2 DIV col0 + - col0 col2 FROM tab1 AS cor0
----
-7
15
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL col2 + - col2 / col0 + - col0 col2 FROM tab1 AS cor0
----
-7
15
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3848
SELECT + + 51 + - col0 - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT + + 51 + - col0 - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * col0 + col0 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3850
SELECT DISTINCT + - col2 DIV col0 - - 31 FROM tab2 AS cor0
----
28
31

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT + - col2 / col0 - - 31 FROM tab2 AS cor0
----
28
31

query I rowsort
SELECT 64 * cor0.col1 * + col1 AS col2 FROM tab1 AS cor0
----
10816
43264
6400

query I rowsort
SELECT ALL - - cor0.col0 + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - 17 * col0 AS col1 FROM tab1 AS cor0
----
-1088
-1360
-51

query I rowsort
SELECT ALL 50 AS col1 FROM tab1 AS cor0
----
50
50
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-3855
SELECT DISTINCT + col2 DIV col0 AS col0 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT + col2 / col0 AS col0 FROM tab2 AS cor0
----
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3856
SELECT col2 + + col2 DIV 5 col0 FROM tab1 cor0
----
115
64
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3856
SELECT col2 + + col2 / 5 col0 FROM tab1 cor0
----
115
64
68

query I rowsort
SELECT DISTINCT + + 28 * col0 FROM tab0 cor0
----
2492
672
980

query I rowsort
SELECT + col1 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT + + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 68 + - col0 ) * + col0 col0 FROM tab1
----
11840
213
8448

query I rowsort
SELECT - 85 * col1 FROM tab0
----
-7310
-7735
-8245

query I rowsort
SELECT - tab1.col1 * + col2 * col2 - 84 AS col2 FROM tab1
----
-119892
-32574
-75900

onlyif mysql # use DIV operator for integer division
query I rowsort label-3863
SELECT DISTINCT + col0 DIV col0 + col0 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT + col0 / col0 + col0 FROM tab2
----
79
8
80

query I rowsort
SELECT ALL + col1 + + col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - - col1 * - col2 * + 33 FROM tab2 AS cor0
----
-21318
-27621
-50622

query I rowsort
SELECT + col0 + 38 AS col0 FROM tab2 AS cor0
----
116
117
45

query I rowsort
SELECT + cor0.col1 + - col2 * + 98 - col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-2832
-5050
-7091

query I rowsort
SELECT + cor0.col1 * + 46 * - col1 AS col1 FROM tab2 cor0
----
-13294
-160126
-44206

query I rowsort
SELECT col1 * col2 + - cor0.col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT - 26 AS col0 FROM tab2
----
-26

query I rowsort
SELECT ALL + col1 + col1 + 65 FROM tab2 AS cor0
----
127
183
99

query I rowsort
SELECT ALL + - col1 * + 99 AS col0 FROM tab0 AS cor0
----
-8514
-9009
-9603

query I rowsort
SELECT col0 * + 20 FROM tab2 cor0
----
140
1560
1580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3875
SELECT DISTINCT - col0 * + CAST( - ( + col1 ) AS SIGNED ) + - col2 AS col1 FROM tab1 cor0
----
24
583
944

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT - col0 * + CAST ( - ( + col1 ) AS INTEGER ) + - col2 AS col1 FROM tab1 cor0
----
24
583
944

query I rowsort
SELECT ALL + 21 AS col0 FROM tab0 cor0
----
21
21
21

query I rowsort
SELECT + ( + cor0.col0 ) FROM tab2, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT + - col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 35 FROM tab2, tab2 cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 cor2, tab0 AS cor3
----
3645 values hashing to b223aa53e3aafe0f3f3f59048cc7a0d2

query I rowsort
SELECT + - 4 - - 2 * - col0 FROM tab0 AS cor0
----
-182
-52
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-3882
SELECT col0 - 93 DIV - col0 AS col0 FROM tab2 AS cor0
----
20
79
80

skipif mysql # not compatible
query I rowsort label-3882
SELECT col0 - 93 / - col0 AS col0 FROM tab2 AS cor0
----
20
79
80

query I rowsort
SELECT DISTINCT + + 88 + - col1 FROM tab2 cor0
----
29
57
71

query I rowsort
SELECT + + 5 + + col0 AS col0 FROM tab1 cor0
----
69
8
85

query I rowsort
SELECT - - col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col2 * + col0 col2 FROM tab2 cor0
----
-158
-1969
-2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3887
SELECT ALL + CAST( cor0.col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL + CAST ( cor0.col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3888
SELECT DISTINCT - + 79 DIV + 50 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT - + 79 / + 50 AS col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + - 50 * col1 + + col0 - col1 * - col1 AS col2 FROM tab1 cor0
----
-336
-401
-621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 col2 FROM tab0 cor0
----
93
93
93

query I rowsort
SELECT DISTINCT col1 * col1 + - col0 FROM tab1 AS cor0
----
36
673
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) + col0 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col1 * col0 + + col2 * 12 AS col2 FROM tab1 AS cor0
----
1324
2192
726

query I rowsort
SELECT DISTINCT - 88 * + 3 FROM tab2 AS cor0
----
-264

query I rowsort
SELECT + + col1 - cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 + - 64 FROM tab2 AS cor0
----
-142
-143
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 + + col2 col2 FROM tab1 AS cor0
----
137
95
98

query I rowsort
SELECT DISTINCT + + col2 + + col1 * - col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ( - 65 ) - - col2 AS col2 FROM tab2 AS cor0
----
-27
-38
-39

query I rowsort
SELECT ALL 26 * - col2 FROM tab0 cor0
----
-2132
-26
-858

query I rowsort
SELECT ( + 95 ) AS col0 FROM tab1 AS cor0
----
95
95
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3902
SELECT DISTINCT - ( col0 ) * - col0 + col0 DIV col0 + col2 col0 FROM tab2 AS cor0
----
6111
6280
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT - ( col0 ) * - col0 + col0 / col0 + col2 col0 FROM tab2 AS cor0
----
6111
6280
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3903
SELECT ALL - 37 DIV - 79 + col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - 37 / - 79 + col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + + col0 + ( col0 ) * - col1 FROM tab1 AS cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col0 + + col0 * col0 * col1 col1 FROM tab1 AS cor0
----
37312
72
75520

query I rowsort
SELECT ALL - 90 FROM tab0, tab1 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT DISTINCT + col0 * + col1 * + cor0.col0 + col1 FROM tab2 AS cor0
----
106114
1550
359015

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3908
SELECT col2 + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3908
SELECT col2 + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * ( 10 + cor0.col2 * 76 ) FROM tab2 AS cor0
----
14434
154908
228942

query I rowsort
SELECT col0 * 89 AS col2 FROM tab1 AS cor0
----
267
5696
7120

query I rowsort
SELECT - col2 * 84 AS col0 FROM tab0 AS cor0
----
-2772
-6888
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3912
SELECT DISTINCT col2 DIV - 53 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT col2 / - 53 FROM tab1 cor0
----
-1

query I rowsort
SELECT DISTINCT - cor0.col0 * 70 FROM tab2 AS cor0
----
-490
-5460
-5530

query I rowsort
SELECT DISTINCT col2 * cor0.col0 + + col2 * - col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - ( col0 ) * + col1 * - col2 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT 46 * - col2 AS col0 FROM tab0 AS cor0
----
-1518
-3772
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 56 col2 FROM tab1 cor0
----
56
56
56

query I rowsort
SELECT - col0 + - col0 * col2 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT - - 1 * - col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 39 * col2 col1 FROM tab1 AS cor0
----
2106
2223
3744

query I rowsort
SELECT 31 + - col1 FROM tab0 AS cor0
----
-55
-60
-66

query I rowsort
SELECT + 93 * + cor0.col2 AS col1 FROM tab2 cor0
----
2418
2511
3534

onlyif mysql # use DIV operator for integer division
query I rowsort label-3923
SELECT ALL + + 43 + + col0 DIV + col1 FROM tab0 AS cor0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL + + 43 + + col0 / + col1 FROM tab0 AS cor0
----
43
43
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-3924
SELECT + - col0 + col2 DIV + 1 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-3924
SELECT + - col0 + col2 / + 1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + - cor0.col2 AS col1 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - col1 * tab1.col2 + - 26 AS col0 FROM tab1
----
-1274
-1430
-596

query I rowsort
SELECT cor0.col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT 6 * ( + col2 ) + 3 AS col1 FROM tab1 cor0
----
327
345
579

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 9 FROM tab0 AS cor0
----
9

query I rowsort
SELECT - - ( cor0.col1 ) * + col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL ( 32 ) FROM tab0, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT + ( - 89 ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
2314
2403
3382

query I rowsort
SELECT col1 + 35 AS col1 FROM tab0
----
121
126
132

onlyif mysql # use DIV operator for integer division
query I rowsort label-3935
SELECT + col2 + + col2 * col2 DIV + col0 AS col1 FROM tab0
----
1
157
78

skipif mysql # not compatible
query I rowsort label-3935
SELECT + col2 + + col2 * col2 / + col0 AS col1 FROM tab0
----
1
157
78

query I rowsort
SELECT 10 + col1 AS col2 FROM tab2 AS cor0
----
27
41
69

query I rowsort
SELECT ( 16 ) FROM tab0
----
16
16
16

query I rowsort
SELECT + ( col2 ) * + col2 + ( + col2 ) FROM tab0
----
1122
2
6806

query I rowsort
SELECT + 62 AS col1 FROM tab2 cor0
----
62
62
62

query I rowsort
SELECT - ( - 81 ) FROM tab0
----
81
81
81

query I rowsort
SELECT DISTINCT + - ( cor0.col2 ) * col0 + - col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT + col0 + cor0.col0 * + 14 AS col1 FROM tab2 AS cor0
----
105
1170
1185

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3943
SELECT ( + col0 + + col0 ) * + CAST( + ( - col1 ) AS SIGNED ) FROM tab1
----
-1280
-156
-2080

skipif mysql # not compatible
query I rowsort label-3943
SELECT ( + col0 + + col0 ) * + CAST ( + ( - col1 ) AS INTEGER ) FROM tab1
----
-1280
-156
-2080

query I rowsort
SELECT ALL + ( col0 + col2 ) * ( 31 * - col1 ) FROM tab2
----
-190216
-32674
-61659

query I rowsort
SELECT ALL ( col0 * - 75 ) AS col0 FROM tab2
----
-525
-5850
-5925

query I rowsort
SELECT ALL 24 AS col0 FROM tab2
----
24
24
24

query I rowsort
SELECT - col0 * - cor0.col1 AS col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + 32 FROM tab2, tab0 AS cor0, tab0 cor1
----
32

query I rowsort
SELECT ALL - 0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3950
SELECT col0 * ( 73 ) DIV - col0 col1 FROM tab1
----
-73
-73
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3950
SELECT col0 * ( 73 ) / - col0 col1 FROM tab1
----
-73
-73
-73

query I rowsort
SELECT col2 * + cor0.col2 + cor0.col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT - ( - 10 ) FROM tab1 AS cor0
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * tab2.col2 col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT + 7 + - ( - col2 * + col0 ) AS col1 FROM tab1 AS cor0
----
169
3655
7687

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3955
SELECT 97 * 28 + - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT 97 * 28 + - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( col0 ) * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3957
SELECT CAST( col0 AS SIGNED ) * - col1 + - ( - col0 + cor0.col1 ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-3957
SELECT CAST ( col0 AS INTEGER ) * - col1 + - ( - col0 + cor0.col1 ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3958
SELECT + ( col2 ) + - col2 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
1482
702
756

skipif mysql # not compatible
query I rowsort label-3958
SELECT + ( col2 ) + - col2 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT + col0 - - col2 * + ( - col2 ) FROM tab2
----
-1365
-598
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-3960
SELECT - ( - col0 ) DIV + col0 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3960
SELECT - ( - col0 ) / + col0 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT 80 * + col2 FROM tab0
----
2640
6560
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col1 FROM tab0
----
86
86
86

query I rowsort
SELECT DISTINCT 52 FROM tab2, tab0, tab1 cor0
----
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3964
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL - CAST ( NULL AS REAL ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col0 * col1 - + col2 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT - + col2 * + col0 + col2 + - 87 AS col1 FROM tab0 AS cor0
----
-121
-7303
-846

query I rowsort
SELECT ALL - - 59 + cor0.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 73f94f71ea8d37692905748e8e328a8d

query I rowsort
SELECT + + cor0.col0 + + cor0.col2 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col2 col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - col2 + col1 * + col2 FROM tab2 AS cor0
----
1508
608
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + ( - col1 ) + col1 col1 FROM tab1
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 55 * + 64 + + col1 * - col0 col1 FROM tab2 AS cor0
----
24423
269958
276737

query I rowsort
SELECT DISTINCT - + cor0.col1 * 20 AS col1 FROM tab0 AS cor0
----
-1720
-1820
-1940

query I rowsort
SELECT DISTINCT col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3975
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + 69 + col2 FROM tab2 cor0
----
-1768
-1836
-2584

query I rowsort
SELECT DISTINCT + - col0 + + col2 * - col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT - col0 + cor0.col1 * col2 + - col2 FROM tab1 AS cor0
----
1072
1347
449

onlyif mysql # use DIV operator for integer division
query I rowsort label-3979
SELECT + - col1 + - cor0.col0 * 57 DIV col0 FROM tab2 AS cor0
----
-116
-74
-88

skipif mysql # not compatible
query I rowsort label-3979
SELECT + - col1 + - cor0.col0 * 57 / col0 FROM tab2 AS cor0
----
-116
-74
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3980
SELECT 39 DIV col0 FROM tab2 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3980
SELECT 39 / col0 FROM tab2 AS cor0
----
0
0
5

query I rowsort
SELECT col2 * - col2 * col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT ( ( col0 ) ) FROM tab1
----
3
64
80

query I rowsort
SELECT - col2 + + ( + col0 ) FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3984
SELECT ALL - col2 * + 43 + + col1 DIV + 70 AS col0 FROM tab0 AS cor0
----
-1418
-3525
-42

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL - col2 * + 43 + + col1 / + 70 AS col0 FROM tab0 AS cor0
----
-1418
-3525
-42

query I rowsort
SELECT - 43 * - col0 AS col1 FROM tab0 AS cor0
----
1032
1505
3827

query I rowsort
SELECT DISTINCT + col1 + col1 + - col0 FROM tab2 AS cor0
----
-45
40
55

query I rowsort
SELECT + col2 * ( col0 + col2 ) FROM tab0 cor0
----
14022
1881
36

query I rowsort
SELECT ( + col0 ) * cor0.col0 * col2 FROM tab1 cor0
----
233472
486
614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 * - col2 + col0 col1 FROM tab0 AS cor0
----
2004
5009
95

query I rowsort
SELECT DISTINCT 30 FROM tab2 cor0
----
30

query I rowsort
SELECT + 39 FROM tab2
----
39
39
39

query I rowsort
SELECT DISTINCT - 55 AS col0 FROM tab2, tab2 AS cor0
----
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-3993
SELECT - col0 DIV + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3993
SELECT - col0 / + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL + col2 * + col0 + - 92 * ( + col2 ) AS col0 FROM tab0 AS cor0
----
-2244
-246
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3995
SELECT DISTINCT col0 + col1 DIV + col1 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT col0 + col1 / + col1 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-3997
SELECT + + col0 DIV col2 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3997
SELECT + + col0 / col2 FROM tab0 cor0
----
0
1
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-3998
SELECT ALL col0 + - col0 DIV - col2 FROM tab0 cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL col0 + - col0 / - col2 FROM tab0 cor0
----
24
70
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3999
SELECT DISTINCT - - ( + cor0.col0 ) * - col1 - col0 * cor0.col2 DIV + col2 FROM tab1 AS cor0
----
-1120
-704
-81

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT - - ( + cor0.col0 ) * - col1 - col0 * cor0.col2 / + col2 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL + 78 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
156
157
85

query I rowsort
SELECT DISTINCT 16 + - col1 * ( + col2 ) AS col1 FROM tab2 cor0
----
-1518
-630
-821

query I rowsort
SELECT ALL - - 1 * col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4003
SELECT + CAST( + col0 AS SIGNED ) - + col1 AS col2 FROM tab0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-4003
SELECT + CAST ( + col0 AS INTEGER ) - + col1 AS col2 FROM tab0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4004
SELECT ALL + CAST( 53 AS SIGNED ) FROM tab0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL + CAST ( 53 AS INTEGER ) FROM tab0
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col2 + 83 col2 FROM tab2 cor0
----
-106
-1945
-2919

query I rowsort
SELECT DISTINCT - cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT - 55 * col1 + + 23 FROM tab2
----
-1682
-3222
-912

query I rowsort
SELECT ALL cor0.col1 * 14 + col1 AS col1 FROM tab2 AS cor0
----
255
465
885

query I rowsort
SELECT DISTINCT 85 FROM tab1, tab1 AS cor0
----
85

query I rowsort
SELECT col1 * 37 FROM tab1 cor0
----
370
481
962

query I rowsort
SELECT + col2 * - 25 * - col1 AS col2 FROM tab2 AS cor0
----
16150
20925
38350

query I rowsort
SELECT DISTINCT + + 0 + col2 AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - ( 97 ) * col1 FROM tab2 cor0
----
-1649
-3007
-5723

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4014
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * 4 AS col2 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT - CAST ( NULL AS REAL ) * 4 AS col2 FROM tab1, tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + - 93 AS col1 FROM tab0
----
-4
-58
-69

query I rowsort
SELECT + col1 * + ( - col1 ) - - col2 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT ALL + 35 AS col2 FROM tab2
----
35
35
35

query I rowsort
SELECT ALL - - ( col0 ) * col2 + + col1 - col1 * col2 * 49 AS col0 FROM tab1 AS cor0
----
-24272
-53459
-68608

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4019
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + 2 AS col1 FROM tab2 AS cor0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col2 col2 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * col2 + col0 col2 FROM tab2 cor0
----
1523
736
754

query I rowsort
SELECT ALL - cor2.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT ALL - - 44 AS col1 FROM tab2 AS cor0
----
44
44
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 80 ) + col1 col0 FROM tab1 AS cor0
----
-54
-67
-70

query I rowsort
SELECT DISTINCT + cor0.col1 - col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT 8 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT ALL - cor0.col0 * - tab0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 71e1c6f2098b2226c685e662111e4001

query I rowsort
SELECT - 81 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT ALL - - col1 + - 26 * cor0.col0 FROM tab2 AS cor0
----
-151
-1969
-2037

query I rowsort
SELECT col1 * + col0 + - ( - col0 ) AS col2 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4032
SELECT ALL col1 * CAST( - cor0.col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL col1 * CAST ( - cor0.col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col0 col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + + col2 * - 57 AS col1 FROM tab1 AS cor0
----
-3078
-3249
-5472

query I rowsort
SELECT - col0 * ( + col1 ) FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col2 * + 12 AS col0 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT DISTINCT - col1 * - 64 FROM tab0 AS cor0
----
5504
5824
6208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + - 92 + - ( - col0 ) FROM tab1 AS cor0
----
-12
-28
-89

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f

query I rowsort
SELECT ALL - col1 * tab0.col1 * - col0 FROM tab0
----
177504
329315
737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4042
SELECT CAST( - col2 AS SIGNED ) * + col2 + 84 FROM tab2 AS cor0
----
-1360
-592
-645

skipif mysql # not compatible
query I rowsort label-4042
SELECT CAST ( - col2 AS INTEGER ) * + col2 + 84 FROM tab2 AS cor0
----
-1360
-592
-645

query I rowsort
SELECT - 64 + - col2 * - col2 AS col0 FROM tab0 cor0
----
-63
1025
6660

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4044
SELECT + - CAST( col0 AS SIGNED ) + + col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
36
673
89

skipif mysql # not compatible
query I rowsort label-4044
SELECT + - CAST ( col0 AS INTEGER ) + + col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT - + 32 + col0 AS col2 FROM tab2 AS cor0
----
-25
46
47

query I rowsort
SELECT col1 * + col0 * + col0 + - 52 AS col0 FROM tab2 AS cor0
----
106045
1467
358904

query I rowsort
SELECT col1 * - cor0.col0 + + cor0.col1 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT ALL - cor0.col2 * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + 74 * - tab1.col0 FROM tab1
----
-222
-4736
-5920

query I rowsort
SELECT - 74 + col0 AS col1 FROM tab0 AS cor0
----
-39
-50
15

query I rowsort
SELECT DISTINCT + 80 + col0 * 33 AS col1 FROM tab2 AS cor0
----
2654
2687
311

query I rowsort
SELECT + 60 + + col1 FROM tab0 AS cor0
----
146
151
157

query I rowsort
SELECT ALL + ( col2 ) * - col0 + - cor0.col2 * col2 FROM tab2 AS cor0
----
-2704
-4446
-918

onlyif mysql # use DIV operator for integer division
query I rowsort label-4054
SELECT DISTINCT + cor0.col0 DIV col0 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT + cor0.col0 / col0 AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT 53 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4056
SELECT - col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT - col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - cor0.col1 * - cor0.col1 + col0 FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT + 26 * - 1 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754

query I rowsort
SELECT ALL + 45 * + col0 * - col0 FROM tab1
----
-184320
-288000
-405

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4060
SELECT - col2 / + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT - col2 / + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4061
SELECT - - col1 * col2 DIV - 6 + + col2 * - col0 * col0 FROM tab0 AS cor0
----
-1241
-19481
-650765

skipif mysql # not compatible
query I rowsort label-4061
SELECT - - col1 * col2 / - 6 + + col2 * - col0 * col0 FROM tab0 AS cor0
----
-1241
-19481
-650765

query I rowsort
SELECT col1 * - col1 * - col2 AS col0 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT + 94 + col2 * + col1 AS col1 FROM tab2 cor0
----
1628
740
931

onlyif mysql # use DIV operator for integer division
query I rowsort label-4064
SELECT ALL - + cor0.col1 * - 8 + - col2 DIV col1 + 27 * col0 * + col1 AS col1 FROM tab0 AS cor0
----
219401
56416
92441

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL - + cor0.col1 * - 8 + - col2 / col1 + 27 * col0 * + col1 AS col1 FROM tab0 AS cor0
----
219401
56416
92441

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT 37 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
37

query I rowsort
SELECT ALL + tab0.col0 + - 19 AS col1 FROM tab0
----
16
5
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4068
SELECT ALL - col0 + col0 DIV + 59 AS col1 FROM tab1
----
-3
-63
-79

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL - col0 + col0 / + 59 AS col1 FROM tab1
----
-3
-63
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4069
SELECT ALL col1 DIV - col0 + + 93 AS col1 FROM tab2
----
89
93
93

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL col1 / - col0 + + 93 AS col1 FROM tab2
----
89
93
93

query I rowsort
SELECT ALL - 69 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ca5f4bc365dc2c6b14187d6ffc83a01d

query I rowsort
SELECT 91 * 64 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 3860ea01ac0ca122a5920d631c4f2b03

query I rowsort
SELECT - col2 + - col0 * tab1.col0 + + ( - col2 ) FROM tab1
----
-117
-4210
-6592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 66 col2 FROM tab2
----
462
5148
5214

query I rowsort
SELECT DISTINCT tab1.col0 + tab1.col0 AS col2 FROM tab1
----
128
160
6

query I rowsort
SELECT - - cor0.col0 * + col0 AS col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT 29 * 66 + + col0 FROM tab1
----
1917
1978
1994

query I rowsort
SELECT ALL - 62 * + 98 + col1 AS col0 FROM tab0
----
-5979
-5985
-5990

query I rowsort
SELECT ALL + - 62 AS col2 FROM tab1 cor0
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col0 FROM tab0 cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4080
SELECT cor0.col0 + col0 DIV - ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-4080
SELECT cor0.col0 + col0 / - ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
79
8
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 - col2 col0 FROM tab2 AS cor0
----
21
32
33

query I rowsort
SELECT + - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * + col2 + col1 * col2 col1 FROM tab1 AS cor0
----
10464
3819
4320

onlyif mysql # use DIV operator for integer division
query I rowsort label-4084
SELECT - cor0.col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4084
SELECT - cor0.col2 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4085
SELECT col0 + col0 DIV 56 FROM tab2 cor0
----
7
79
80

skipif mysql # not compatible
query I rowsort label-4085
SELECT col0 + col0 / 56 FROM tab2 cor0
----
7
79
80

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT ALL + 86 + col1 FROM tab0 cor0
----
172
177
183

query I rowsort
SELECT DISTINCT col0 + col0 * 7 AS col0 FROM tab0 AS cor0
----
192
280
712

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4089
SELECT ALL + 59 / col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + 59 / col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col0 + + col2 AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4091
SELECT DISTINCT - col1 DIV - col0 FROM tab2
----
0
4

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT - col1 / - col0 FROM tab2
----
0
4

query I rowsort
SELECT + col0 - + col1 * - col1 AS col1 FROM tab1
----
164
249
679

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab2, tab0, tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - 51 * + col0 * col0 AS col0 FROM tab2
----
-2499
-310284
-318291

query I rowsort
SELECT DISTINCT cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + - ( col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + col2 + - cor0.col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 53 + 85 * cor0.col2 * 11 FROM tab2 AS cor0
----
24257
25192
35477

query I rowsort
SELECT ALL ( 24 ) - col1 * col1 * col2 AS col2 FROM tab1 AS cor0
----
-16200
-36480
-5676

query I rowsort
SELECT ALL - cor0.col1 * + 15 AS col0 FROM tab2 AS cor0
----
-255
-465
-885

query I rowsort
SELECT ALL col0 + ( + col2 ) * - col0 * col1 FROM tab0
----
-3360
-664029
-68088

query I rowsort
SELECT DISTINCT col1 * + 4 * - col2 + col1 * 15 FROM tab1
----
-2130
-4797
-5226

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 82 + col2 col0 FROM tab0 AS cor0
----
-49
-81
0

query I rowsort
SELECT + + ( cor0.col1 ) AS col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + 1 * - cor0.col1 - + col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4106
SELECT ALL - CAST( NULL AS SIGNED ) * + 93 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL - CAST ( NULL AS INTEGER ) * + 93 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + - col0 - col0 * col1 AS col0 FROM tab1 AS cor0
----
-1107
-55
-694

query I rowsort
SELECT - ( 49 ) FROM tab2 AS cor0
----
-49
-49
-49

onlyif mysql # use DIV operator for integer division
query I rowsort label-4109
SELECT DISTINCT + - col0 DIV col1 + - col2 * col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT + - col0 / col1 + - col2 * col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col1 * 67 + + col2 AS col1 FROM tab2 AS cor0
----
1177
2104
3979

query I rowsort
SELECT ALL + + col0 * col0 - - col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL col2 + + col1 * col0 AS col1 FROM tab2 AS cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 7 ) + + col1 col2 FROM tab2 cor0
----
24
38
66

query I rowsort
SELECT DISTINCT 90 * - 73 + col1 FROM tab0 cor0
----
-6473
-6479
-6484

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4115
SELECT ALL - CAST( NULL AS SIGNED ) + col0 * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL - CAST ( NULL AS INTEGER ) + col0 * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - 10 ) AS col2 FROM tab0
----
-10
-10
-10

query I rowsort
SELECT ALL 7 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4118
SELECT DISTINCT tab0.col2 DIV 98 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT tab0.col2 / 98 AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col2 ) col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - - col2 * - 76 + cor0.col2 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT DISTINCT 31 * 91 AS col1 FROM tab2 AS cor0
----
2821

query I rowsort
SELECT + col1 + + col0 AS col0 FROM tab1 cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4123
SELECT + ( - col2 ) DIV + col1 + col0 * + 99 FROM tab2
----
693
7722
7819

skipif mysql # not compatible
query I rowsort label-4123
SELECT + ( - col2 ) / + col1 + col0 * + 99 FROM tab2
----
693
7722
7819

query I rowsort
SELECT + ( col2 ) * + col1 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - ( col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff

query I rowsort
SELECT DISTINCT + + col2 * col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + 20 + + col1 AS col0 FROM tab1 AS cor0
----
30
33
46

query I rowsort
SELECT - - 73 FROM tab0 AS cor0
----
73
73
73

query I rowsort
SELECT - col2 * col1 * - 31 AS col2 FROM tab1 AS cor0
----
17670
38688
43524

query I rowsort
SELECT DISTINCT + + col2 * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + - col1 * - col1 AS col2 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + - 70 * col2 AS col2 FROM tab1 AS cor0
----
-3780
-3990
-6720

query I rowsort
SELECT ALL + tab2.col2 * ( + col1 * - 74 ) FROM tab2
----
-113516
-47804
-61938

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + - col1 col1 FROM tab2 AS cor0
----
18
6025
6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-4136
SELECT ALL + + col2 * cor0.col2 DIV col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL + + col2 * cor0.col2 / col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + col1 + ( col1 ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + col0 + + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL cor0.col2 * + col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + cor0.col2 * col1 + 57 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
153
2862
7437

query I rowsort
SELECT - col1 + col2 - col1 * + col2 FROM tab1 AS cor0
----
-1165
-1376
-523

query I rowsort
SELECT + - col1 + + col0 + + col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - cor0.col2 + col1 * - 12 * col2 - col0 AS col1 FROM tab0 AS cor0
----
-1200
-34113
-89715

query I rowsort
SELECT ALL cor0.col2 + ( col0 + col1 ) * col2 AS col0 FROM tab2 AS cor0
----
1053
3588
3686

query I rowsort
SELECT DISTINCT - cor0.col2 + + col1 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL + col1 + ( - col0 ) FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4147
SELECT ALL - col0 DIV - 38 AS col1 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL - col0 / - 38 AS col1 FROM tab1 AS cor0
----
0
1
2

query I rowsort
SELECT ALL - col2 * - 75 * col0 AS col1 FROM tab1 AS cor0
----
12150
273600
576000

query I rowsort
SELECT DISTINCT cor0.col0 + - 37 FROM tab0 AS cor0
----
-13
-2
52

query I rowsort
SELECT + + col2 + cor0.col0 - - 18 AS col1 FROM tab1 AS cor0
----
139
194
75

query I rowsort
SELECT ALL + - col1 * ( - col1 ) FROM tab0 cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4152
SELECT - cor0.col0 DIV + col1 col2 FROM tab2 AS cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4152
SELECT - cor0.col0 / + col1 col2 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL col0 + ( col0 ) * - col2 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + col1 * 13 FROM tab0 cor0
----
1118
1183
1261

onlyif mysql # use DIV operator for integer division
query I rowsort label-4155
SELECT cor0.col1 * 2 DIV col1 AS col2 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4155
SELECT cor0.col1 * 2 / col1 AS col2 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT 17 + cor0.col2 AS col1 FROM tab1 cor0
----
113
71
74

query I rowsort
SELECT DISTINCT - + col0 + - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT tab0.col1 + 44 AS col0 FROM tab0
----
130
135
141

query I rowsort
SELECT + col0 * ( 72 ) AS col2 FROM tab1
----
216
4608
5760

query I rowsort
SELECT - + col0 + ( - col1 ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - + col0 + 91 FROM tab0 AS cor0
----
2
56
67

query I rowsort
SELECT + tab2.col1 * col1 * - tab2.col0 AS col2 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT 62 * + col2 AS col0 FROM tab2
----
1612
1674
2356

query I rowsort
SELECT ALL cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT col2 * 3 + - cor0.col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + - cor0.col1 + + ( + col2 ) AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT col0 * col2 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + col1 * - col2 + + col0 FROM tab1
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 col1 FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 / + col2 col2 FROM tab0 WHERE ( NULL ) > ( col0 )
----

query I rowsort
SELECT DISTINCT tab0.col0 * tab0.col1 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col2 * + col0 * col0 + col0 FROM tab1
----
233536
489
614480

query I rowsort
SELECT ALL col0 * + col1 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - col1 + col1 + + col2 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - tab2.col2 * tab2.col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT col2 - + col1 * col1 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT DISTINCT + col1 * + tab0.col0 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col1 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT tab0.col1 + col0 AS col2 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4180
SELECT DISTINCT col2 DIV col0 + - col2 AS col1 FROM tab2
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT col2 / col0 + - col2 AS col1 FROM tab2
----
-24
-26
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4181
SELECT DISTINCT tab2.col1 DIV col1 + col1 AS col2 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT tab2.col1 / col1 + col1 AS col2 FROM tab2
----
18
32
60

query I rowsort
SELECT col0 * col2 * tab0.col1 + - col2 * col1 AS col0 FROM tab0
----
3298
65274
656656

query I rowsort
SELECT ( - col1 ) * - 58 + 46 AS col1 FROM tab0 AS cor0
----
5034
5324
5672

query I rowsort
SELECT + cor0.col0 + cor0.col0 * cor0.col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL ( + col2 ) * col1 + col2 + col2 AS col0 FROM tab2 AS cor0
----
1586
722
891

onlyif mysql # use DIV operator for integer division
query I rowsort label-4186
SELECT DISTINCT - - 71 DIV - cor0.col0 + - col0 FROM tab2 AS cor0
----
-17
-78
-79

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT - - 71 / - cor0.col0 + - col0 FROM tab2 AS cor0
----
-17
-78
-79

query I rowsort
SELECT - cor0.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT - ( + col1 ) * 38 FROM tab0
----
-3268
-3458
-3686

query I rowsort
SELECT - ( col1 ) + + col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT 29 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

onlyif mysql # use DIV operator for integer division
query I rowsort label-4191
SELECT DISTINCT + col2 DIV - col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT + col2 / - col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL tab2.col1 FROM tab2 WHERE NOT NULL = ( col1 + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 - - col2 col2 FROM tab1 AS cor0
----
118
121
160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4194
SELECT ALL col2 * + col0 * + CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
119652
51034
5859

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL col2 * + col0 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT - + col0 * - col2 + col1 * ( + col2 ) FROM tab1 AS cor0
----
1566
4218
8928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col1 - + col0 col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT + col2 * - col2 + ( - col2 ) + + col0 * - ( + 65 ) FROM tab2 AS cor0
----
-1211
-5772
-6617

query I rowsort
SELECT + cor0.col1 + - col2 + 46 FROM tab2 AS cor0
----
25
50
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4199
SELECT + - col1 DIV col1 + ( col0 ) + + col2 AS col1 FROM tab2 AS cor0
----
103
116
33

skipif mysql # not compatible
query I rowsort label-4199
SELECT + - col1 / col1 + ( col0 ) + + col2 AS col1 FROM tab2 AS cor0
----
103
116
33

query I rowsort
SELECT + + cor0.col2 + 5 * - col1 + + cor0.col0 FROM tab0 cor0
----
-284
-373
-449

query I rowsort
SELECT - col0 * + ( + col1 * + col1 ) + - col2 FROM tab1 AS cor0
----
-13616
-2082
-6457

query I rowsort
SELECT + col0 * col1 - col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT + - cor0.col1 - col1 * col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT ( - col0 ) * + col0 * - 51 AS col2 FROM tab1 AS cor0
----
208896
326400
459

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 + 41 col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to b1f13f892625448c2d116e59df1666db

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL - ( tab0.col2 * tab0.col0 + + 38 * + col0 ) FROM tab0
----
-10680
-1365
-1704

query I rowsort
SELECT DISTINCT 15 * + col1 FROM tab0
----
1290
1365
1455

query I rowsort
SELECT DISTINCT + col0 * + col2 + 35 * col2 AS col0 FROM tab2 cor0
----
1134
2938
4332

query I rowsort
SELECT DISTINCT - 17 * + col0 FROM tab0 AS cor0
----
-1513
-408
-595

query I rowsort
SELECT + + col1 - - col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT + ( col0 ) * + ( col1 ) FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4213
SELECT ALL 72 DIV col0 FROM tab1 AS cor0
----
0
1
24

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL 72 / col0 FROM tab1 AS cor0
----
0
1
24

query I rowsort
SELECT ALL - 18 * col2 FROM tab0 cor0
----
-1476
-18
-594

query I rowsort
SELECT - 6 FROM tab2, tab1 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT ALL col2 * 39 * col2 FROM tab1
----
113724
126711
359424

query I rowsort
SELECT ALL col1 * + col1 * col2 AS col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ALL col2 * 2 FROM tab0
----
164
2
66

query I rowsort
SELECT + col1 + - col0 * + col0 + col2 FROM tab0 cor0
----
-1127
-457
-7748

query I rowsort
SELECT - + col2 * + cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT 57 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT + cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4223
SELECT + CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4223
SELECT + CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - col1 * 45 AS col2 FROM tab0 AS cor0
----
-3870
-4095
-4365

query I rowsort
SELECT ALL - cor0.col0 * + 48 FROM tab0 AS cor0
----
-1152
-1680
-4272

query I rowsort
SELECT + cor0.col1 * ( 47 ) AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 52bacf0f632e3a65a616120fe9520abe

query I rowsort
SELECT ALL - col2 + + ( + col1 ) FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4228
SELECT - ( - col0 ) DIV col0 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4228
SELECT - ( - col0 ) / col0 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col0 + + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - - 41 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT DISTINCT 86 + col1 AS col2 FROM tab1 AS cor0
----
112
96
99

query I rowsort
SELECT - 26 * + ( - cor0.col1 ) FROM tab1 cor0
----
260
338
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4233
SELECT ALL + CAST( NULL AS SIGNED ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL + CAST ( NULL AS INTEGER ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4234
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - tab0.col1 - + col2 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT ALL ( - col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col2 * - 61 + col1 col0 FROM tab0 AS cor0
----
-173032
-455091
-5820

onlyif mysql # use DIV operator for integer division
query I rowsort label-4238
SELECT DISTINCT + 60 DIV + col0 + ( + col0 ) * col1 AS col1 FROM tab0 AS cor0
----
2066
3396
8099

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT + 60 / + col0 + ( + col0 ) * col1 AS col1 FROM tab0 AS cor0
----
2066
3396
8099

query I rowsort
SELECT + col1 * - col2 AS col2 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4240
SELECT col0 DIV 93 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4240
SELECT col0 / 93 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col0 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT - 2 * col1 + col1 * + col1 FROM tab2 AS cor0
----
255
3363
899

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4244
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 95 AS col1 FROM tab2, tab1, tab2 AS cor0, tab0
----
-95

query I rowsort
SELECT DISTINCT + 12 FROM tab0
----
12

query I rowsort
SELECT DISTINCT col1 + col1 + tab1.col2 * - 60 FROM tab1
----
-3188
-3400
-5734

query I rowsort
SELECT DISTINCT - 39 FROM tab1
----
-39

query I rowsort
SELECT - col2 + + col0 AS col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT cor1.col0 + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b9944e8264ba49a81db9322e4d2ec488

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4252
SELECT DISTINCT - 23 + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT - 23 + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - 20 * + col0 * - col2 AS col0 FROM tab1
----
153600
3240
72960

onlyif mysql # use DIV operator for integer division
query I rowsort label-4254
SELECT + 68 DIV tab0.col0 + col0 * + col0 + + col0 * col2 FROM tab0
----
1261
1370
15219

skipif mysql # not compatible
query I rowsort label-4254
SELECT + 68 / tab0.col0 + col0 * + col0 + + col0 * col2 FROM tab0
----
1261
1370
15219

query I rowsort
SELECT DISTINCT 90 * col1 * - col1 + 12 FROM tab1
----
-15198
-60828
-8988

query I rowsort
SELECT ALL 43 + + tab1.col0 AS col2 FROM tab1
----
107
123
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-4257
SELECT ALL + col1 DIV + col2 + - 28 * - col1 AS col2 FROM tab1
----
280
364
728

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL + col1 / + col2 + - 28 * - col1 AS col2 FROM tab1
----
280
364
728

query I rowsort
SELECT ALL + 50 + + cor0.col2 FROM tab0 AS cor0
----
132
51
83

query I rowsort
SELECT + - cor0.col0 * - col1 * ( col0 ) FROM tab1 cor0
----
234
40960
83200

query I rowsort
SELECT ALL 46 + tab0.col2 FROM tab0
----
128
47
79

query I rowsort
SELECT DISTINCT + col2 * ( + 29 ) - col0 AS col2 FROM tab2 AS cor0
----
1023
676
776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4262
SELECT - col0 + CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4262
SELECT - col0 + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 * - col2 + - ( col0 ) * col1 + - col2 FROM tab2 AS cor0
----
-433
-4383
-6656

query I rowsort
SELECT - col1 * - 82 FROM tab2 AS cor0
----
1394
2542
4838

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4265
SELECT ALL col2 - - CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL col2 - - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + col1 + col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL + col1 - - col0 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( - col0 ) + col2 * - ( - cor0.col0 ) col2 FROM tab2 cor0
----
238
8112
9243

query I rowsort
SELECT DISTINCT + col1 * 93 + + col1 + col2 FROM tab1 AS cor0
----
1318
2498
997

query I rowsort
SELECT - col0 * 97 + - col0 FROM tab1 AS cor0
----
-294
-6272
-7840

onlyif mysql # use DIV operator for integer division
query I rowsort label-4271
SELECT DISTINCT - + col2 DIV 11 + - col1 FROM tab2 AS cor0
----
-20
-33
-61

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT - + col2 / 11 + - col1 FROM tab2 AS cor0
----
-20
-33
-61

query I rowsort
SELECT DISTINCT col1 - + ( col1 ) FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4273
SELECT DISTINCT + + col0 * - CAST( NULL AS SIGNED ) + + 34 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT + + col0 * - CAST ( NULL AS INTEGER ) + + 34 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT tab2.col0 AS col0 FROM tab2, tab0 cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4275
SELECT ALL + - CAST( NULL AS SIGNED ) * + col2 + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL + - CAST ( NULL AS INTEGER ) * + col2 + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4276
SELECT - CAST( NULL AS SIGNED ) + 9 / - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT - CAST ( NULL AS INTEGER ) + 9 / - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 19 * col0 FROM tab0 cor0
----
-1691
-456
-665

query I rowsort
SELECT DISTINCT - col0 + - 10 + + col0 FROM tab2 AS cor0
----
-10

query I rowsort
SELECT DISTINCT + - 80 FROM tab1 AS cor0
----
-80

query I rowsort
SELECT col2 * ( - col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + col2 * + col2 * + col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL - col0 * 39 AS col0 FROM tab1 AS cor0
----
-117
-2496
-3120

query I rowsort
SELECT 42 * col0 FROM tab0 AS cor0
----
1008
1470
3738

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4284
SELECT DISTINCT - CAST( - ( - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT - CAST ( - ( - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4285
SELECT ALL + CAST( NULL AS SIGNED ) * 96 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL + CAST ( NULL AS INTEGER ) * 96 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - cor0.col0 * 35 * col2 AS col2 FROM tab0 AS cor0
----
-1225
-255430
-27720

onlyif mysql # use DIV operator for integer division
query I rowsort label-4287
SELECT ALL + col2 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL + col2 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 + col1 AS col0 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT - col1 * col2 - + col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT - col1 - col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT + col2 * cor0.col1 - ( col1 ) * col0 FROM tab1 AS cor0
----
-70
1326
208

query I rowsort
SELECT - cor0.col1 + + col1 * + col2 FROM tab0 cor0
----
0
2752
7371

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a

query I rowsort
SELECT - - cor0.col1 - col2 AS col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT ALL + 18 + + col2 AS col1 FROM tab1 cor0
----
114
72
75

query I rowsort
SELECT 89 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT - cor0.col2 * - col1 + 15 * ( + col1 ) FROM tab2 AS cor0
----
1302
2419
901

query I rowsort
SELECT DISTINCT + col0 + - col1 - col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT + + 85 * - col0 - col1 AS col1 FROM tab2 AS cor0
----
-626
-6689
-6732

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4300
SELECT + CAST( NULL AS SIGNED ) + + col2 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT + CAST ( NULL AS INTEGER ) + + col2 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4301
SELECT - col2 DIV col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4301
SELECT - col2 / col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + 34 * cor0.col0 FROM tab0 AS cor0
----
1190
3026
816

query I rowsort
SELECT ALL - ( + ( col0 ) ) FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4304
SELECT CAST( NULL AS SIGNED ) + + col2 * cor0.col0 * 75 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4304
SELECT CAST ( NULL AS INTEGER ) + + col2 * cor0.col0 * 75 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 87 + + col0 FROM tab0 AS cor0
----
111
122
176

query I rowsort
SELECT - col2 + col2 - col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - 4 + col0 FROM tab0 AS cor0
----
20
31
85

query I rowsort
SELECT DISTINCT col2 + + 47 AS col2 FROM tab2
----
73
74
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4309
SELECT ALL - col0 + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - cor0.col1 * cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT tab0.col1 * ( - 90 ) AS col2 FROM tab0
----
-7740
-8190
-8730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + 6 + tab1.col1 * + col1 AS col0 FROM tab1
----
106
175
682

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab2 cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4316
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - col0 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT + CAST ( NULL AS REAL ) * - col0 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4317
SELECT ALL 58 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL 58 / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 - - col1 AS col0 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT + - col1 * cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col2 + ( - 99 + col2 ) * - col2 AS col1 FROM tab2
----
1872
1917
2280

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4321
SELECT ALL - col0 * CAST( - 60 AS SIGNED ) * col2 + - col1 FROM tab0
----
2003
437789
47434

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL - col0 * CAST ( - 60 AS INTEGER ) * col2 + - col1 FROM tab0
----
2003
437789
47434

query I rowsort
SELECT DISTINCT - col1 + - ( + col0 ) + col1 * cor0.col1 * + ( col0 ) FROM tab2 AS cor0
----
22735
271381
6689

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4323
SELECT DISTINCT - CAST( - 40 AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT - CAST ( - 40 AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0
----
40

query I rowsort
SELECT - cor0.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + 4 col2 FROM tab0 cor0
----
28
39
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4326
SELECT + col0 + CAST( + 52 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
130
131
59

skipif mysql # not compatible
query I rowsort label-4326
SELECT + col0 + CAST ( + 52 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
130
131
59

query I rowsort
SELECT DISTINCT + col0 * col0 * + 70 AS col1 FROM tab0
----
40320
554470
85750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 38 col0 FROM tab0 AS cor0
----
-3268
-3458
-3686

query I rowsort
SELECT - cor0.col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 77 - col2 FROM tab0 AS cor0
----
-5
44
76

query I rowsort
SELECT col1 * col2 + + col2 FROM tab2 cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-4332
SELECT - 50 + + col1 DIV col0 - - ( tab0.col0 ) AS col1 FROM tab0
----
-13
-23
40

skipif mysql # not compatible
query I rowsort label-4332
SELECT - 50 + + col1 / col0 - - ( tab0.col0 ) AS col1 FROM tab0
----
-13
-23
40

query I rowsort
SELECT - 44 * - col2 + col2 FROM tab1
----
2430
2565
4320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4334
SELECT - CAST( NULL AS SIGNED ) * 63 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT - CAST ( NULL AS INTEGER ) * 63 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) - + col0 FROM tab0 cor0
----
-178
-48
-70

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to bce5cbf48f4a41569415c085ae91ae7c

query I rowsort
SELECT + - 1 * + 74 FROM tab1 AS cor0
----
-74
-74
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-4338
SELECT - ( - col0 ) DIV cor0.col0 - + col1 AS col1 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-4338
SELECT - ( - col0 ) / cor0.col0 - + col1 AS col1 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT - - col2 * 29 + + col1 * - cor0.col2 * ( col2 ) AS col2 FROM tab0 AS cor0
----
-609506
-68
-92697

onlyif mysql # use DIV operator for integer division
query I rowsort label-4340
SELECT + col2 + + col0 DIV - col0 AS col1 FROM tab2 cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-4340
SELECT + col2 + + col0 / - col0 AS col1 FROM tab2 cor0
----
25
26
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-4341
SELECT + + 6 * col1 + col2 DIV col2 AS col1 FROM tab1 AS cor0
----
157
61
79

skipif mysql # not compatible
query I rowsort label-4341
SELECT + + 6 * col1 + col2 / col2 AS col1 FROM tab1 AS cor0
----
157
61
79

query I rowsort
SELECT + + 57 * col2 AS col0 FROM tab0 AS cor0
----
1881
4674
57

query I rowsort
SELECT 51 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT - col0 + col1 * ( col2 ) AS col1 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT - - col1 * - 60 * col2 AS col0 FROM tab2 AS cor0
----
-38760
-50220
-92040

query I rowsort
SELECT col1 + - 85 * 72 AS col1 FROM tab0 AS cor0
----
-6023
-6029
-6034

query I rowsort
SELECT - col2 + col0 * + col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT - cor0.col2 * - 54 FROM tab2 AS cor0
----
1404
1458
2052

query I rowsort
SELECT ALL + + 1 + - tab1.col2 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to adff038df4e66efa4692ef849b926437

onlyif mysql # use DIV operator for integer division
query I rowsort label-4350
SELECT DISTINCT tab2.col1 DIV tab2.col0 AS col1 FROM tab2
----
0
4

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT tab2.col1 / tab2.col0 AS col1 FROM tab2
----
0
4

query I rowsort
SELECT + col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4352
SELECT ALL - - col0 * col1 DIV - col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL - - col0 * col1 / - col1 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4353
SELECT ALL - CAST( NULL AS SIGNED ) * - 36 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL - CAST ( NULL AS INTEGER ) * - 36 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 + 54 ) col0 FROM tab1
----
64
67
80

query I rowsort
SELECT DISTINCT 45 * col0 FROM tab2
----
315
3510
3555

query I rowsort
SELECT DISTINCT - - 18 + - 47 - col1 FROM tab2 AS cor0
----
-46
-60
-88

query I rowsort
SELECT DISTINCT - - 3 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) + col0 * - ( 21 ) AS col2 FROM tab2 AS cor0
----
-120
-1612
-1621

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4359
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + 79 * col2 FROM tab2 AS cor0
----
2113
2164
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + cor0.col2 * 24 col2 FROM tab1 AS cor0
----
1350
1425
2400

query I rowsort
SELECT DISTINCT + 30 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
30

query I rowsort
SELECT ALL col2 + cor0.col1 + col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT DISTINCT + 7 * - col2 AS col1 FROM tab0 cor0
----
-231
-574
-7

query I rowsort
SELECT - col1 + col1 * + col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT col1 + - cor0.col1 * col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT + + col2 - + col0 * 45 AS col1 FROM tab0 AS cor0
----
-1047
-1574
-3923

onlyif mysql # use DIV operator for integer division
query I rowsort label-4368
SELECT DISTINCT + 51 DIV col1 FROM tab2 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT + 51 / col1 FROM tab2 AS cor0
----
0
1
3

query I rowsort
SELECT 59 + col0 AS col1 FROM tab0 AS cor0
----
148
83
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4370
SELECT DISTINCT - - cor0.col0 + col1 * CAST( - col0 AS SIGNED ) FROM tab0 cor0
----
-2040
-3360
-8010

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT - - cor0.col0 + col1 * CAST ( - col0 AS INTEGER ) FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + col2 + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4372
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1 FROM tab1, tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1 FROM tab1, tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 + tab2.col0 * - tab2.col0 AS col1 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT DISTINCT - col0 * - 40 - + col0 FROM tab0
----
1365
3471
936

onlyif mysql # use DIV operator for integer division
query I rowsort label-4375
SELECT - col0 + ( col0 ) DIV + col2 + + 29 FROM tab0
----
-59
29
5

skipif mysql # not compatible
query I rowsort label-4375
SELECT - col0 + ( col0 ) / + col2 + + 29 FROM tab0
----
-59
29
5

query I rowsort
SELECT ALL - col2 + - 85 - - col2 FROM tab1
----
-85
-85
-85

query I rowsort
SELECT cor0.col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4378
SELECT ALL + col1 * CAST( NULL AS SIGNED ) + col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) + col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + ( + col0 ) AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT 23 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT col0 * - col2 - - col0 * col2 * col2 AS col1 FROM tab2 AS cor0
----
111074
4914
50700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4383
SELECT - CAST( NULL AS SIGNED ) + + col1 + + col2 col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4383
SELECT - CAST ( NULL AS INTEGER ) + + col1 + + col2 col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - col1 ) * col0 * - cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
-106059
-1492
-358930

query I rowsort
SELECT DISTINCT - + col1 * col2 - col2 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL 73 * 30 AS col2 FROM tab0 AS cor0
----
2190
2190
2190

query I rowsort
SELECT ALL col2 + - col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT 84 * cor0.col1 FROM tab2 cor0
----
1428
2604
4956

query I rowsort
SELECT + cor0.col1 * col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - ( 3 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col1 * - 6 FROM tab2
----
-102
-186
-354

query I rowsort
SELECT col2 - 39 * + 30 FROM tab2
----
-1132
-1143
-1144

onlyif mysql # use DIV operator for integer division
query I rowsort label-4393
SELECT - tab1.col2 DIV 40 AS col2 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4393
SELECT - tab1.col2 / 40 AS col2 FROM tab1
----
-1
-1
-2

query I rowsort
SELECT DISTINCT + col0 - col1 * - 96 * col0 FROM tab0
----
198168
325955
777593

query I rowsort
SELECT DISTINCT col2 - + 77 FROM tab0
----
-44
-76
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 + col1 + - ( - col1 ) col2 FROM tab1 AS cor0
----
-1222
-1352
-550

query I rowsort
SELECT ALL + col0 * ( col1 + + col1 ) FROM tab1 AS cor0
----
1280
156
2080

query I rowsort
SELECT - 65 * 13 FROM tab0 AS cor0
----
-845
-845
-845

query I rowsort
SELECT + + ( ( col2 ) ) + 74 * col0 FROM tab1 AS cor0
----
276
4793
6016

query I rowsort
SELECT DISTINCT - + ( + col2 ) AS col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + 50 + - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-128
-20
2

query I rowsort
SELECT ALL + 72 * 6 * - col0 FROM tab1 AS cor0
----
-1296
-27648
-34560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col1 ) * col0 col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - 64 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT - 0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + + col2 * - col2 AS col1 FROM tab2
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-4409
SELECT DISTINCT tab2.col1 DIV col1 + - col2 AS col2 FROM tab2
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-4409
SELECT DISTINCT tab2.col1 / col1 + - col2 AS col2 FROM tab2
----
-25
-26
-37

query I rowsort
SELECT DISTINCT + tab1.col0 + - tab1.col0 + - col1 AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT + + col0 * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - 47 + + col1 AS col2 FROM tab1 AS cor0
----
-21
-34
-37

query I rowsort
SELECT col1 + + 70 * col2 + tab2.col1 AS col0 FROM tab2
----
1938
1952
2694

query I rowsort
SELECT 15 * 9 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 1cfd8553fcf301b45e2362b732c529e8

query I rowsort
SELECT ALL ( - col2 ) + tab1.col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL - + cor0.col0 * ( 89 ) - col2 FROM tab0 cor0
----
-2169
-3116
-8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-4417
SELECT DISTINCT - - cor0.col0 DIV ( - col0 * - col1 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT - - cor0.col0 / ( - col0 * - col1 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4418
SELECT DISTINCT - - col1 DIV 72 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT - - col1 / 72 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 27 * ( col1 ) col0 FROM tab1 AS cor0
----
280
364
728

query I rowsort
SELECT ALL - - col1 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + 67 AS col2 FROM tab0
----
67
67
67

query I rowsort
SELECT ALL ( col1 * - col2 ) AS col1 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4423
SELECT ALL + + col2 DIV col1 AS col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL + + col2 / col1 AS col0 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT DISTINCT - cor0.col1 + 13 FROM tab0 AS cor0
----
-73
-78
-84

query I rowsort
SELECT ALL - + col1 + + 24 AS col2 FROM tab1 AS cor0
----
-2
11
14

query I rowsort
SELECT ALL - col1 + col2 * cor0.col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
114059
5072
52669

query I rowsort
SELECT DISTINCT + + col1 * - 34 AS col0 FROM tab1 AS cor0
----
-340
-442
-884

query I rowsort
SELECT DISTINCT - col0 + 86 AS col1 FROM tab0 AS cor0
----
-3
51
62

query I rowsort
SELECT ALL - - cor0.col0 + 71 AS col0 FROM tab2 AS cor0
----
149
150
78

query I rowsort
SELECT ALL - - col0 * + 72 AS col2 FROM tab2 cor0
----
504
5616
5688

query I rowsort
SELECT DISTINCT + col2 + - 75 FROM tab0 AS cor0
----
-42
-74
7

query I rowsort
SELECT DISTINCT - - cor0.col1 * - cor0.col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 * col1 col0 FROM tab1
----
1066
410
533

query I rowsort
SELECT DISTINCT + 98 AS col1 FROM tab1
----
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4435
SELECT - ( - col2 ) * CAST( 87 AS SIGNED ) FROM tab2 AS cor0
----
2262
2349
3306

skipif mysql # not compatible
query I rowsort label-4435
SELECT - ( - col2 ) * CAST ( 87 AS INTEGER ) FROM tab2 AS cor0
----
2262
2349
3306

query I rowsort
SELECT + - col0 * col0 + ( + col2 ) FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT col2 - ( 44 * + col1 ) AS col0 FROM tab1 AS cor0
----
-1090
-383
-476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - ( - cor0.col2 ) col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col2 + col1 * 68 AS col2 FROM tab2 AS cor0
----
1194
2135
4038

onlyif mysql # use DIV operator for integer division
query I rowsort label-4440
SELECT 48 DIV - col0 AS col1 FROM tab2
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-4440
SELECT 48 / - col0 AS col1 FROM tab2
----
-6
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4441
SELECT col0 * - ( 96 ) * + col0 + ( col2 ) DIV - col0 col2 FROM tab2 AS cor0
----
-4707
-584064
-599136

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4441
SELECT col0 * - ( 96 ) * + col0 + ( col2 ) / - col0 col2 FROM tab2 AS cor0
----
-4707
-584064
-599136

query I rowsort
SELECT cor0.col1 - - col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - + col1 + col0 * col2 AS col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT col1 + - 65 + + col2 FROM tab1 AS cor0
----
15
2
44

query I rowsort
SELECT DISTINCT + tab2.col1 * - col0 * col2 + + col0 AS col0 FROM tab2
----
-119574
-50955
-5852

query I rowsort
SELECT DISTINCT - col1 * 98 * + ( - col0 ) + + 17 AS col1 FROM tab0 AS cor0
----
202289
332727
793719

query I rowsort
SELECT col1 + - ( cor0.col0 ) * cor0.col2 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-4448
SELECT - 18 + - col1 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
-18
-18
-26

skipif mysql # not compatible
query I rowsort label-4448
SELECT - 18 + - col1 / cor0.col0 AS col2 FROM tab1 AS cor0
----
-18
-18
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * + col1 col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4450
SELECT CAST( col0 AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-4450
SELECT CAST ( col0 AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + - col0 * 90 FROM tab2 AS cor0
----
-630
-7020
-7110

query I rowsort
SELECT - + ( 93 ) * col1 FROM tab2 AS cor0
----
-1581
-2883
-5487

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4453
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + 25 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + 25 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * - col2 * col2 AS col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT col1 * col1 * - col0 AS col0 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT - + col1 + + col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT - col0 + col0 * col1 * - 52 FROM tab0 cor0
----
-107352
-176575
-421237

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4458
SELECT ( col0 ) * CAST( NULL AS SIGNED ) * col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4458
SELECT ( col0 ) * CAST ( NULL AS INTEGER ) * col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4459
SELECT col2 DIV - 63 + + col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4459
SELECT col2 / - 63 + + col2 FROM tab2
----
26
27
38

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1, tab0 cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

query I rowsort
SELECT ALL + cor1.col2 FROM tab0, tab0 cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT ( col0 ) * + cor0.col0 + col1 * + cor0.col2 FROM tab2 AS cor0
----
6887
7618
886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - ( - col0 * col2 ) AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT - + col2 * + col0 + + 74 * col1 * - col2 FROM tab1 cor0
----
-100032
-104058
-45828

query I rowsort
SELECT DISTINCT + 19 * - col1 + + ( - col0 ) FROM tab1 AS cor0
----
-254
-327
-497

query I rowsort
SELECT DISTINCT + 39 * col2 AS col1 FROM tab0 cor0
----
1287
3198
39

query I rowsort
SELECT + 42 + col2 * - 99 AS col1 FROM tab1 AS cor0
----
-5304
-5601
-9462

query I rowsort
SELECT + ( - col1 ) + + 17 * cor0.col0 + col0 FROM tab1 cor0
----
1142
1427
28

query I rowsort
SELECT 87 + col2 FROM tab0 AS cor0
----
120
169
88

query I rowsort
SELECT - 56 FROM tab1, tab2 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT col1 * col1 * - col0 AS col0 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT tab2.col0 + + col2 AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT + ( + 40 ) AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT - + 16 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-160
-208
-416

onlyif mysql # use DIV operator for integer division
query I rowsort label-4476
SELECT col0 DIV cor0.col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4476
SELECT col0 / cor0.col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - 14 AS col2 FROM tab1
----
-14
-14
-14

query I rowsort
SELECT ALL + - 73 + col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
7323
8208
9336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - tab2.col2 + 63 * col1 + col0 AS col1 FROM tab2
----
1112
1933
3769

onlyif mysql # use DIV operator for integer division
query I rowsort label-4481
SELECT ALL 88 DIV + 24 + + col0 AS col2 FROM tab0
----
27
38
92

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL 88 / + 24 + + col0 AS col2 FROM tab0
----
27
38
92

query I rowsort
SELECT ALL - col0 + tab2.col1 * col1 FROM tab2
----
210
3403
954

query I rowsort
SELECT + 93 + col1 * - cor0.col2 + - cor0.col0 FROM tab2 cor0
----
-1519
-632
-751

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4484
SELECT ALL CAST( col2 AS SIGNED ) + - col1 FROM tab1
----
28
47
83

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL CAST ( col2 AS INTEGER ) + - col1 FROM tab1
----
28
47
83

query I rowsort
SELECT - + 89 + - col2 AS col2 FROM tab0 AS cor0
----
-122
-171
-90

query I rowsort
SELECT ALL col0 - tab2.col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT + col1 * col0 + + col2 - col0 AS col2 FROM tab1 AS cor0
----
1056
129
633

query I rowsort
SELECT DISTINCT - 83 - col2 AS col0 FROM tab1
----
-137
-140
-179

query I rowsort
SELECT ALL + 56 - - col1 AS col1 FROM tab2
----
115
73
87

query I rowsort
SELECT ALL + col1 * col1 + + col0 * + col1 FROM tab2
----
1178
1632
8083

query I rowsort
SELECT col1 + col1 + col1 AS col2 FROM tab2
----
177
51
93

query I rowsort
SELECT ALL col0 * col0 + col0 * col1 + - col1 * - col2 FROM tab0
----
23482
4717
5478

query I rowsort
SELECT - col1 + + col0 * col2 + + col0 AS col1 FROM tab0
----
-27
7296
730

query I rowsort
SELECT ALL col0 + - col1 AS col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL + tab2.col0 + col1 AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL tab1.col0 * col0 * + col1 + col2 FROM tab1
----
288
41017
83296

onlyif mysql # use DIV operator for integer division
query I rowsort label-4497
SELECT ALL - col0 DIV - cor0.col2 + - col2 FROM tab0 AS cor0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL - col0 / - cor0.col2 + - col2 FROM tab0 AS cor0
----
-33
-81
34

query I rowsort
SELECT + col1 + + col1 * + cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
244154
679133
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-4499
SELECT DISTINCT col1 * + col0 - - col0 DIV - col0 col0 FROM tab0 AS cor0
----
2063
3394
8098

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT col1 * + col0 - - col0 / - col0 col0 FROM tab0 AS cor0
----
2063
3394
8098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col0 col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col2 + + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + cor0.col2 * col2 * col0 col2 FROM tab0 AS cor0
----
26160
598525
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4504
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-4504
SELECT CAST ( col1 AS INTEGER ) col2 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL + col2 * + col2 * - col2 FROM tab0
----
-1
-35937
-551368

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4506
SELECT ALL CAST( - col1 AS SIGNED ) * + col0 * col2 FROM tab2
----
-119652
-51034
-5859

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL CAST ( - col1 AS INTEGER ) * + col0 * col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT 96 * - 85 * col0 AS col1 FROM tab2
----
-57120
-636480
-644640

query I rowsort
SELECT - - 53 + col0 FROM tab2 AS cor0
----
131
132
60

query I rowsort
SELECT + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4510
SELECT ALL - 62 + col2 DIV col1 FROM tab0 AS cor0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL - 62 + col2 / col1 FROM tab0 AS cor0
----
-62
-62
-62

query I rowsort
SELECT DISTINCT col2 * + col2 * col2 + col1 FROM tab2 AS cor0
----
17635
19714
54889

query I rowsort
SELECT DISTINCT 4 * col1 + col2 + + col1 AS col0 FROM tab0 AS cor0
----
463
486
537

query I rowsort
SELECT DISTINCT - col2 * col1 + + col2 * - col2 AS col1 FROM tab0 cor0
----
-14186
-3927
-98

query I rowsort
SELECT DISTINCT + cor0.col0 * + col2 + - col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL - col0 * + cor0.col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT 80 AS col2 FROM tab0 cor0
----
80
80
80

query I rowsort
SELECT ALL + col1 * + col1 + - col0 AS col2 FROM tab0 AS cor0
----
7372
8192
9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 - cor0.col2 * + col2 * col0 col0 FROM tab1 cor0
----
-207296
-736240
-8670

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4519
SELECT DISTINCT - CAST( - col0 + - col2 AS SIGNED ) * - tab1.col0 AS col2 FROM tab1
----
-14080
-171
-7744

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT - CAST ( - col0 + - col2 AS INTEGER ) * - tab1.col0 AS col2 FROM tab1
----
-14080
-171
-7744

query I rowsort
SELECT ALL + col2 * col0 - - col2 FROM tab2 AS cor0
----
2054
216
3040

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 ALL col0 * col2 + cor0.col1 col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT col2 * + col1 + + col0 * col0 FROM tab2 AS cor0
----
6887
7618
886

query I rowsort
SELECT ALL col0 + + col1 - col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - 18 + - col0 AS col0 FROM tab0 AS cor0
----
-107
-42
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-4526
SELECT ALL col1 - col1 DIV + col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL col1 - col1 / + col1 FROM tab2
----
16
30
58

query I rowsort
SELECT DISTINCT + col2 / - col2 + - col2 FROM tab0 cor0 WHERE NULL = ( col0 * + cor0.col0 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 + + tab0.col0 col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT cor0.col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 = ( NULL )
----

query I rowsort
SELECT col0 * + col1 FROM tab0 WHERE NOT NULL IN ( - col0 + col0 / - tab0.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4531
SELECT DISTINCT col1 DIV col2 + col0 * - col2 * + col1 FROM tab0
----
-3298
-664117
-68110

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT col1 / col2 + col0 * - col2 * + col1 FROM tab0
----
-3298
-664117
-68110

onlyif mysql # use DIV operator for integer division
query I rowsort label-4532
SELECT ALL col0 DIV + col1 + col2 * col0 FROM tab1
----
162
3654
7686

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL col0 / + col1 + col2 * col0 FROM tab1
----
162
3654
7686

query I rowsort
SELECT ALL col2 FROM tab1 WHERE - col2 <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4534
SELECT ALL - tab2.col1 + - tab2.col2 DIV - tab2.col0 FROM tab2
----
-17
-28
-59

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL - tab2.col1 + - tab2.col2 / - tab2.col0 FROM tab2
----
-17
-28
-59

query I rowsort
SELECT col0 - - col1 * + col2 AS col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL + col0 + + col1 * tab1.col2 FROM tab1
----
1328
1407
634

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * tab1.col1 col1 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 col1 FROM tab1
----
0

query I rowsort
SELECT col1 + col0 + - col2 FROM tab2
----
11
111
58

query I rowsort
SELECT ALL tab1.col1 * col2 + - col2 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * + col1 col2 FROM tab0
----
-1978
-3298
-8008

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT IN ( col2 )
----

query I rowsort
SELECT ALL tab1.col1 + - col0 AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT + col2 * + tab2.col1 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT - col0 * col2 + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-4547
SELECT DISTINCT + col1 DIV col2 col0 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT + col1 / col2 col0 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + col0 * - col1 + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-4550
SELECT col0 DIV col0 + + col2 * cor0.col1 * col2 FROM tab1 AS cor0
----
119809
32491
75817

skipif mysql # not compatible
query I rowsort label-4550
SELECT col0 / col0 + + col2 * cor0.col1 * col2 FROM tab1 AS cor0
----
119809
32491
75817

query I rowsort
SELECT DISTINCT - cor0.col2 + - col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - - col1 * col1 * col0 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
21488
266916
6510

query I rowsort
SELECT - cor0.col2 * col2 + + col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT + col1 + col1 * - col2 AS col0 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL col0 + + tab0.col1 * + col0 * + col0 AS col1 FROM tab0
----
118860
49560
720900

query I rowsort
SELECT col2 * - col1 * + col2 + col1 AS col2 FROM tab0
----
-611793
-93568
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 / - col1 AND + col2 OR ( NULL ) <> ( + cor0.col0 )
----

query I rowsort
SELECT cor0.col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT col2 * + cor0.col2 + + col2 + col0 FROM tab0 AS cor0
----
1146
37
6895

query I rowsort
SELECT col2 * + tab0.col0 - - col1 AS col1 FROM tab0
----
132
7389
878

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e

query I rowsort
SELECT + tab1.col0 * + col2 * col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT tab2.col1 - tab2.col2 * - col0 FROM tab2
----
2087
220
3019

query I rowsort
SELECT - col2 + tab1.col2 * + col0 AS col0 FROM tab1
----
108
3591
7584

query I rowsort
SELECT col2 * - col1 + - col2 AS col2 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT - col1 + + col1 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - + cor0.col2 + col1 + col0 FROM tab0 cor0
----
131
77
98

query I rowsort
SELECT DISTINCT cor0.col0 + col1 * col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT tab1.col1 AS col0 FROM tab0 cor0 CROSS JOIN tab1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT - col0 * col1 * col0 AS col2 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT + tab1.col0 * tab1.col1 AS col0 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4572
SELECT col2 + + 11 DIV - ( col0 ) col2 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4572
SELECT col2 + + 11 / - ( col0 ) col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - 6 FROM tab0, tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT + col0 * + ( col0 ) AS col0 FROM tab0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4575
SELECT + CAST( NULL AS SIGNED ) / + 78 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT + CAST ( NULL AS INTEGER ) / + 78 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - ( col0 ) ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - - ( col0 ) + col1 * col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT + ( 68 ) FROM tab0 AS cor0
----
68
68
68

query I rowsort
SELECT - - 82 + 31 * col0 FROM tab0 AS cor0
----
1167
2841
826

query I rowsort
SELECT 38 * + col2 FROM tab0
----
1254
3116
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4581
SELECT ALL - cor0.col0 + col2 - + col0 DIV col1 FROM tab2 AS cor0
----
-45
-53
20

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL - cor0.col0 + col2 - + col0 / col1 FROM tab2 AS cor0
----
-45
-53
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 49 col1 FROM tab0 cor0
----
-49

query I rowsort
SELECT - + col0 * col0 + col1 * 66 FROM tab1 AS cor0
----
-3436
-5542
1707

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 + - col1 col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT col1 + + col2 AS col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + 92 * - col1 * + col1 AS col0 FROM tab2 cor0
----
-26588
-320252
-88412

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4587
SELECT 38 + - col2 * CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4587
SELECT 38 + - col2 * CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 + + cor0.col0 * col1 col2 FROM tab1 AS cor0
----
1054
654
92

query I rowsort
SELECT + + col2 * ( col2 * + col0 ) FROM tab1 cor0
----
207936
737280
8748

query I rowsort
SELECT - col0 * + 81 AS col0 FROM tab2 AS cor0
----
-567
-6318
-6399

query I rowsort
SELECT col2 * 86 FROM tab1 AS cor0
----
4644
4902
8256

query I rowsort
SELECT ALL 57 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ( tab0.col1 + + col1 ) * - col1 AS col0 FROM tab0
----
-14792
-16562
-18818

query I rowsort
SELECT - col1 * ( 43 ) * cor0.col2 + cor0.col1 FROM tab1 AS cor0
----
-24500
-53651
-60346

onlyif mysql # use DIV operator for integer division
query I rowsort label-4595
SELECT - - col1 + cor0.col0 DIV + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4595
SELECT - - col1 + cor0.col0 / + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - col1 * ( 22 ) AS col0 FROM tab2 AS cor0
----
-1298
-374
-682

query I rowsort
SELECT tab1.col2 + + 64 - col1 * col1 * - col2 AS col2 FROM tab1
----
16384
36622
5821

query I rowsort
SELECT col2 * col2 + 95 * + col1 FROM tab1 AS cor0
----
10451
4199
5386

query I rowsort
SELECT - + cor0.col1 + - ( col2 + - col1 ) FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4600
SELECT ALL col2 DIV col0 AS col2 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL col2 / col0 AS col2 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 + + col0 * ( col1 ) * col0 FROM tab0 AS cor0
----
118826
49569
720893

query I rowsort
SELECT ALL - - cor0.col1 AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT col0 * + col1 * 66 FROM tab2 AS cor0
----
14322
303732
88638

query I rowsort
SELECT ALL + cor0.col2 * + col2 FROM tab2 cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4607
SELECT + CAST( - col0 AS SIGNED ) * col2 * + col2 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

skipif mysql # not compatible
query I rowsort label-4607
SELECT + CAST ( - col0 AS INTEGER ) * col2 * + col2 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT - 3 * tab0.col0 * cor0.col0 FROM tab0, tab0 AS cor0
----
-1728
-23763
-2520
-3675
-6408
-9345

query I rowsort
SELECT ALL ( 34 ) * col2 FROM tab1 AS cor0
----
1836
1938
3264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4610
SELECT + CAST( - cor0.col2 AS SIGNED ) * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-4610
SELECT + CAST ( - cor0.col2 AS INTEGER ) * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + + col1 * + col0 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4612
SELECT col2 DIV - 3 FROM tab1 AS cor0
----
-18
-19
-32

skipif mysql # not compatible
query I rowsort label-4612
SELECT col2 / - 3 FROM tab1 AS cor0
----
-18
-19
-32

onlyif mysql # use DIV operator for integer division
query I rowsort label-4613
SELECT - + 71 DIV col0 AS col0 FROM tab2 AS cor0
----
-10
0
0

skipif mysql # not compatible
query I rowsort label-4613
SELECT - + 71 / col0 AS col0 FROM tab2 AS cor0
----
-10
0
0

query I rowsort
SELECT ALL + + col0 + - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4615
SELECT - + col1 DIV col2 + - 67 * - col1 * + col1 AS col2 FROM tab0 AS cor0
----
495530
554826
630306

skipif mysql # not compatible
query I rowsort label-4615
SELECT - + col1 / col2 + - 67 * - col1 * + col1 AS col2 FROM tab0 AS cor0
----
495530
554826
630306

query I rowsort
SELECT ALL + tab1.col1 + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 6c5da2c0e2b4192a86a061d47e155396

query I rowsort
SELECT DISTINCT 6 * col2 FROM tab0
----
198
492
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4618
SELECT + cor0.col2 * col1 - + CAST( 15 AS SIGNED ) * col2 * col1 AS col0 FROM tab0 AS cor0
----
-104468
-1358
-39732

skipif mysql # not compatible
query I rowsort label-4618
SELECT + cor0.col2 * col1 - + CAST ( 15 AS INTEGER ) * col2 * col1 AS col0 FROM tab0 AS cor0
----
-104468
-1358
-39732

onlyif mysql # use DIV operator for integer division
query I rowsort label-4619
SELECT col2 DIV col2 + 16 AS col1 FROM tab1 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-4619
SELECT col2 / col2 + 16 AS col1 FROM tab1 AS cor0
----
17
17
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-4620
SELECT + col1 * col0 + - col2 DIV + col0 - + col1 * col0 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-4620
SELECT + col1 * col0 + - col2 / + col0 - + col1 * col0 FROM tab1
----
-1
-18
0

query I rowsort
SELECT DISTINCT + tab2.col0 - - col2 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 - + ( + ( - col2 ) * + tab0.col0 + tab0.col1 ) col2 FROM tab0
----
14669
35
3544

query I rowsort
SELECT 48 + col0 * + col2 * + col1 - col0 AS col1 FROM tab0
----
3408
664077
68136

query I rowsort
SELECT ALL - col1 + col1 * - col2 * 50 AS col0 FROM tab1 cor0
----
-28510
-62413
-70226

query I rowsort
SELECT ALL + + col2 + + col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL 91 + - col1 + col0 AS col1 FROM tab2 AS cor0
----
110
153
67

query I rowsort
SELECT col2 * col0 + - col1 AS col0 FROM tab0 cor0
----
-62
706
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 col1 FROM tab2 AS cor0
----
93

query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT cor0.col0 + col0 * 68 AS col0 FROM tab2 cor0
----
483
5382
5451

query I rowsort
SELECT ALL - 33 * - ( - col0 ) AS col1 FROM tab1
----
-2112
-2640
-99

query I rowsort
SELECT + col1 * col1 + col0 FROM tab2
----
3559
368
968

query I rowsort
SELECT DISTINCT + 44 * + col1 FROM tab1 AS cor0
----
1144
440
572

query I rowsort
SELECT - + 99 FROM tab2 AS cor0
----
-99
-99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + col0 * col2 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL + 70 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT + col2 - ( + col2 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * + col1 - - 19 FROM tab0 AS cor0
----
2083
3414
8118

query I rowsort
SELECT DISTINCT 78 * - tab1.col0 AS col2 FROM tab1
----
-234
-4992
-6240

onlyif mysql # use DIV operator for integer division
query I rowsort label-4641
SELECT DISTINCT - + ( cor0.col2 ) DIV + col1 + col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-23
33
4

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT - + ( cor0.col2 ) / + col1 + col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-23
33
4

query I rowsort
SELECT DISTINCT - col2 + + col1 * col2 AS col2 FROM tab1 cor0
----
1152
1350
513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4643
SELECT - + CAST( NULL AS SIGNED ) * 65 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT - + CAST ( NULL AS INTEGER ) * 65 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 20 + 65 AS col0 FROM tab1 AS cor0
----
45

query I rowsort
SELECT ALL ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4646
SELECT ALL - CAST( + col0 AS SIGNED ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL - CAST ( + col0 AS INTEGER ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + col2 - 17 AS col1 FROM tab0
----
-16
16
65

query I rowsort
SELECT cor0.col2 * - 25 AS col0 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to a36a995962637f2a9904d1e2ecf7f7d8

query I rowsort
SELECT 78 + col1 AS col2 FROM tab1
----
104
88
91

query I rowsort
SELECT DISTINCT 75 AS col1 FROM tab2
----
75

query I rowsort
SELECT ( col2 ) + col0 * ( 78 ) FROM tab1
----
288
5049
6336

query I rowsort
SELECT ALL - col2 * ( col2 * col0 ) FROM tab2
----
-114076
-5103
-52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4653
SELECT ALL CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT + + ( - cor0.col0 ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - - 93 * + cor0.col0 + - col0 FROM tab2 cor0
----
644
7176
7268

query I rowsort
SELECT 91 * - col1 * col0 FROM tab2 AS cor0
----
-122213
-19747
-418782

query I rowsort
SELECT DISTINCT - ( + col2 ) + + col2 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4658
SELECT - CAST( + col0 + col2 AS SIGNED ) FROM tab1
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-4658
SELECT - CAST ( + col0 + col2 AS INTEGER ) FROM tab1
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * col1 * + col1 col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT DISTINCT - ( 23 ) AS col2 FROM tab2
----
-23

query I rowsort
SELECT 36 * tab1.col1 + col2 FROM tab1
----
417
564
990

query I rowsort
SELECT ALL 55 * tab2.col2 * + tab2.col0 FROM tab2
----
10395
111540
165110

query I rowsort
SELECT + 50 * - 86 AS col1 FROM tab0 cor0
----
-4300
-4300
-4300

query I rowsort
SELECT ( col2 ) * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4665
SELECT 73 DIV tab0.col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to 227a7b82a7ceb5ee2cbfa234d4d0699e

skipif mysql # not compatible
query I rowsort label-4665
SELECT 73 / tab0.col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to 227a7b82a7ceb5ee2cbfa234d4d0699e

query I rowsort
SELECT + col1 * - col1 AS col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT 48 AS col0 FROM tab2 cor0
----
48
48
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-4668
SELECT ALL - + 87 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL - + 87 / - col2 AS col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + 62 AS col0 FROM tab1 AS cor0
----
62
62
62

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
7
78
79

query I rowsort
SELECT DISTINCT - 92 AS col2 FROM tab1
----
-92

query I rowsort
SELECT ALL col2 * col1 + - tab0.col2 * + col2 + + tab0.col1 FROM tab0
----
1835
193
829

query I rowsort
SELECT ALL - cor0.col2 * cor0.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c52f276f0448e9317aa4a2c462e0bab5

query I rowsort
SELECT cor0.col0 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL col0 + + 88 + - tab2.col1 FROM tab2
----
107
150
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-4676
SELECT ALL - col0 DIV - ( + col1 ) + + col0 AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL - col0 / - ( + col1 ) + + col0 AS col1 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4677
SELECT col0 + ( col2 ) DIV + col0 + 66 * + col1 col2 FROM tab0 cor0
----
5701
6095
6437

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4677
SELECT col0 + ( col2 ) / + col0 + 66 * + col1 col2 FROM tab0 cor0
----
5701
6095
6437

query I rowsort
SELECT ALL + col0 + + 92 * col1 FROM tab2 AS cor0
----
1643
2859
5506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4679
SELECT - 78 * cor0.col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4679
SELECT - 78 * cor0.col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + + col1 * + col1 - col1 AS col1 FROM tab2 cor0
----
272
3422
930

query I rowsort
SELECT col2 * 39 + 83 FROM tab0 AS cor0
----
122
1370
3281

query I rowsort
SELECT col2 + col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-33
42
75

query I rowsort
SELECT - 62 + - 38 * + col1 AS col2 FROM tab1 AS cor0
----
-1050
-442
-556

query I rowsort
SELECT ALL - col1 + col0 - col2 FROM tab0 AS cor0
----
-63
-84
-95

query I rowsort
SELECT ALL - - 71 * - col2 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2376
-5904
-72

query I rowsort
SELECT ALL + col2 + + ( col1 ) * - 9 FROM tab2 cor0
----
-115
-252
-505

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4687
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - 52 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - 52 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - 81 + ( col0 ) * cor0.col1 FROM tab0 AS cor0
----
1983
3314
8018

query I rowsort
SELECT - col2 + - 27 FROM tab1 AS cor0
----
-123
-81
-84

query I rowsort
SELECT ( + col1 ) * col1 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - ( - tab0.col1 ) col2 FROM tab0
----
2
62
62

query I rowsort
SELECT + col0 * col0 + tab1.col0 - tab1.col2 * ( - 43 ) AS col1 FROM tab1
----
10608
2334
6611

query I rowsort
SELECT + col1 * col0 + col2 * col0 AS col2 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT - 8 + + 86 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT + col1 + 92 FROM tab2
----
109
123
151

query I rowsort
SELECT DISTINCT col0 + + ( + col2 ) AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL 34 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT - cor0.col1 * 75 + + col0 FROM tab1 AS cor0
----
-1947
-686
-895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 2 + + col1 col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ( col2 * - col1 + - col2 ) AS col0 FROM tab0
----
-2871
-7544
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4701
SELECT col2 * CAST( + col2 * col1 AS SIGNED ) FROM tab2 AS cor0
----
22599
24548
39884

skipif mysql # not compatible
query I rowsort label-4701
SELECT col2 * CAST ( + col2 * col1 AS INTEGER ) FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT - - col2 * col1 * col1 FROM tab1 AS cor0
----
16224
36504
5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT - 55 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to b90e74bece5521b514096c5b6e105fde

onlyif mysql # use DIV operator for integer division
query I rowsort label-4705
SELECT DISTINCT col1 DIV - ( tab0.col2 ) AS col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT col1 / - ( tab0.col2 ) AS col2 FROM tab0
----
-1
-2
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4706
SELECT DISTINCT + col0 DIV + col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT + col0 / + col2 FROM tab1
----
0
1

query I rowsort
SELECT + + 26 + col1 FROM tab0 AS cor0
----
112
117
123

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4708
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query I rowsort
SELECT cor0.col0 + cor0.col2 * - col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - col2 + + 61 AS col0 FROM tab1 AS cor0
----
-35
4
7

query I rowsort
SELECT ALL col2 + - 91 AS col2 FROM tab1
----
-34
-37
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4712
SELECT col0 * ( + col2 ) + CAST( NULL AS SIGNED ) * 63 + + tab2.col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT col0 * ( + col2 ) + CAST ( NULL AS INTEGER ) * 63 + + tab2.col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 63 FROM tab2
----
63
63
63

query I rowsort
SELECT ALL - col0 + + col1 + col1 FROM tab1
----
-44
-54
49

query I rowsort
SELECT ALL - ( col1 + col1 ) FROM tab1
----
-20
-26
-52

query I rowsort
SELECT - col0 - col0 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4717
SELECT - col0 * - col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT - col0 * - col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4718
SELECT col2 * col1 + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT col2 * col1 + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - col0 * - ( tab1.col2 ) ) - col2 FROM tab1
----
108
3591
7584

query I rowsort
SELECT col2 + col2 - col0 FROM tab1
----
105
112
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-4721
SELECT + tab0.col0 DIV + col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4721
SELECT + tab0.col0 / + col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 86 + tab2.col2 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 663ef4a9a949daee5781984a8ead2194

query I rowsort
SELECT - col1 * col0 + 96 * 49 FROM tab1 AS cor0
----
3664
4064
4626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col0 * ( + col1 ) col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT + 85 FROM tab1
----
85
85
85

query I rowsort
SELECT - cor0.col2 * cor0.col0 + + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + col0 + - col0 + - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - col0 * ( 56 ) - col0 AS col1 FROM tab0 AS cor0
----
-1368
-1995
-5073

query I rowsort
SELECT cor0.col2 + col0 * 74 * - col0 AS col1 FROM tab1 AS cor0
----
-303047
-473504
-612

query I rowsort
SELECT DISTINCT col1 + col0 * + ( col1 ) FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT col0 * - 1 FROM tab1
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4732
SELECT - - col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT - - col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + ( + col0 * + col0 ) FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL col2 * - col0 + col1 * col0 FROM tab2 cor0
----
-1659
2574
28

query I rowsort
SELECT ALL - col2 + ( + col2 * col1 ) FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL + col0 + - 53 AS col2 FROM tab2 AS cor0
----
-46
25
26

query I rowsort
SELECT ALL + col1 + + ( col2 ) AS col1 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - cor0.col1 col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * - ( - col0 * + cor0.col1 ) col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT ALL col2 * 5 FROM tab1 AS cor0
----
270
285
480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4741
SELECT DISTINCT - col1 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT - col1 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * ( + 15 ) * + col0 + + col0 AS col1 FROM tab2 AS cor0
----
742
91338
93694

query I rowsort
SELECT + col0 + - ( + col0 ) * col1 * cor0.col1 FROM tab1 AS cor0
----
-13440
-2025
-6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 * 54 col2 FROM tab2 AS cor0
----
-5184
-5184
-5184

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4745
SELECT ALL + CAST( col2 AS SIGNED ) + col1 * - cor0.col0 FROM tab2 cor0
----
-1305
-190
-4576

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL + CAST ( col2 AS INTEGER ) + col1 * - cor0.col0 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL + ( - col1 ) * cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4747
SELECT DISTINCT + 73 DIV + 44 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT + 73 / + 44 AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4748
SELECT + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 80 AS col0 FROM tab0 cor0
----
80
80
80

query I rowsort
SELECT + 30 + + col0 FROM tab1 AS cor0
----
110
33
94

query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT DISTINCT + + col0 * col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT 7 AS col2 FROM tab1
----
7

query I rowsort
SELECT DISTINCT + 57 FROM tab0, tab2 AS cor0
----
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4755
SELECT + col1 + - col0 DIV + 81 col0 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4755
SELECT + col1 + - col0 / + 81 col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - cor0.col0 + + 85 AS col0 FROM tab1 AS cor0
----
21
5
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + - col1 * 56 col1 FROM tab0 AS cor0
----
-4792
-5007
-5397

query I rowsort
SELECT col0 + col2 * col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT + cor0.col2 + + 38 AS col2 FROM tab0 AS cor0
----
120
39
71

query I rowsort
SELECT col1 * col1 + col2 * col0 AS col1 FROM tab2 AS cor0
----
1150
3291
5509

query I rowsort
SELECT ALL - col2 + col0 * col0 * col2 FROM tab2 AS cor0
----
1296
158158
237120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col1 col0 FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 * CAST ( col2 AS REAL ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col0 * 21 + - 78 FROM tab2 AS cor0
----
1560
1581
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-4765
SELECT ALL + col0 * 19 * - col1 - + col0 DIV col1 AS col0 FROM tab2 AS cor0
----
-25521
-4123
-87439

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL + col0 * 19 * - col1 - + col0 / col1 AS col0 FROM tab2 AS cor0
----
-25521
-4123
-87439

query I rowsort
SELECT + + col1 + col0 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT col1 + + cor0.col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - + col0 * 26 * col0 AS col2 FROM tab1 AS cor0
----
-106496
-166400
-234

query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col0 AS col2 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ALL + - ( - cor0.col0 ) * + col1 + + col0 * ( - col0 ) FROM tab0 AS cor0
----
1488
178
2170

query I rowsort
SELECT DISTINCT + + col2 + ( col2 ) + col1 * - col2 AS col0 FROM tab0 cor0
----
-2772
-7298
-95

query I rowsort
SELECT DISTINCT + col0 + col0 * - cor0.col2 * - col0 FROM tab0 AS cor0
----
1260
19032
649611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( col2 ) ) * - col1 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL col1 + ( + cor0.col1 ) AS col0 FROM tab1 cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4775
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 98 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 98 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( ( col1 ) ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + + col1 * ( + cor0.col0 + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT - col0 + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 * + col1 col1 FROM tab1 AS cor0
----
1820
700
910

query I rowsort
SELECT ALL cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
77

query I rowsort
SELECT - col0 + ( - col0 + col1 ) AS col2 FROM tab2
----
-141
-97
17

query I rowsort
SELECT ALL - col0 * + ( - col1 ) AS col2 FROM tab1
----
1040
640
78

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9

skipif mysql # not compatible
query I rowsort
SELECT ALL - + ( - col0 ) + + ( 49 ) * col1 * CAST ( - col2 AS REAL ) AS col0 FROM tab1 AS cor0
----
-27866
-61072
-68793

query I rowsort
SELECT 77 - - cor0.col1 FROM tab0 cor0
----
163
168
174

query I rowsort
SELECT DISTINCT + + 52 + col2 + - 81 AS col2 FROM tab2 AS cor0
----
-2
-3
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4788
SELECT ALL + - col2 + col0 * CAST( 20 AS SIGNED ) FROM tab2 cor0
----
113
1534
1542

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL + - col2 + col0 * CAST ( 20 AS INTEGER ) FROM tab2 cor0
----
113
1534
1542

query I rowsort
SELECT col0 * + col1 * 84 + + col2 FROM tab1 AS cor0
----
53817
6606
87456

query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT ( col1 * - col1 ) FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4792
SELECT DISTINCT + col0 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT + col0 / cor0.col1 AS col2 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT - 97 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5

query I rowsort
SELECT col0 + + col2 - cor0.col0 * + col1 FROM tab1 AS cor0
----
-21
-519
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 + tab0.col1 col0 FROM tab0
----
-1128
-490
-7830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4797
SELECT + col0 * + col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT + col0 * + col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + col1 * - 42 AS col1 FROM tab2 AS cor0
----
-1333
-2537
-731

query I rowsort
SELECT ALL - cor0.col0 * 75 AS col0 FROM tab1 AS cor0
----
-225
-4800
-6000

onlyif mysql # use DIV operator for integer division
query I rowsort label-4800
SELECT col1 * ( col1 ) DIV col0 FROM tab1 cor0
----
1
2
225

skipif mysql # not compatible
query I rowsort label-4800
SELECT col1 * ( col1 ) / col0 FROM tab1 cor0
----
1
2
225

query I rowsort
SELECT 22 + + col2 AS col0 FROM tab2 AS cor0
----
48
49
60

query I rowsort
SELECT - 54 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211

query I rowsort
SELECT ALL - 75 * tab1.col1 + 79 + - ( tab1.col2 ) * tab1.col2 AS col1 FROM tab1
----
-10112
-3920
-4787

query I rowsort
SELECT DISTINCT col2 * col2 + ( - col1 + + tab1.col0 * - tab1.col1 ) AS col1 FROM tab1
----
2599
2812
8163

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4805
SELECT - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 84 * - 37 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 960f54d8c05ad8b47dcf64908d1b3d8d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * + 1 col1 FROM tab1 AS cor0
----
109
67
80

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 71180f9f3efadf0ee3a7fec9678208ad

query I rowsort
SELECT - col2 * col1 + - ( cor0.col2 * cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-1140
-2496
-2808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 col0 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT col2 + + tab1.col1 * + 38 FROM tab1
----
1042
437
590

query I rowsort
SELECT DISTINCT + 96 FROM tab2, tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT 39 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
39

query I rowsort
SELECT - - col2 * ( + col0 + - col2 ) * + ( col1 * col1 ) AS col2 FROM tab1 AS cor0
----
-1861704
-259584
39900

query I rowsort
SELECT ALL + + col2 * - col2 + + 77 * + col2 FROM tab0 AS cor0
----
-410
1452
76

query I rowsort
SELECT + col1 * 97 + col2 FROM tab0 AS cor0
----
8375
8909
9410

query I rowsort
SELECT DISTINCT + col2 + ( + col0 + + col1 ) FROM tab2 AS cor0
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-4818
SELECT ALL col1 + col2 DIV - col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL col1 + col2 / - col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col2 * - 53 AS col0 FROM tab1
----
-2862
-3021
-5088

query I rowsort
SELECT ALL - col0 + + 14 * 68 FROM tab1 AS cor0
----
872
888
949

query I rowsort
SELECT DISTINCT 49 * - tab2.col1 * + col1 AS col1 FROM tab2
----
-14161
-170569
-47089

query I rowsort
SELECT ALL 57 AS col1 FROM tab1
----
57
57
57

query I rowsort
SELECT tab1.col0 * tab1.col0 + - col1 FROM tab1
----
-17
4086
6387

query I rowsort
SELECT DISTINCT - - cor0.col1 AS col0 FROM tab0, tab2, tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + 94 FROM tab2, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT ALL + + cor0.col0 + - 57 AS col1 FROM tab1 cor0
----
-54
23
7

query I rowsort
SELECT ALL 42 FROM tab2, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT + tab0.col1 * + ( - col2 ) + col0 AS col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab1, tab2, tab0 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4830
SELECT - + col1 * + col2 + + 64 DIV 48 FROM tab1 AS cor0
----
-1247
-1403
-569

skipif mysql # not compatible
query I rowsort label-4830
SELECT - + col1 * + col2 + + 64 / 48 FROM tab1 AS cor0
----
-1247
-1403
-569

query I rowsort
SELECT - col0 + + col0 * + col2 AS col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL + 56 - col1 AS col1 FROM tab0 AS cor0
----
-30
-35
-41

query I rowsort
SELECT ALL + col0 * col0 + ( + 78 * col1 ) FROM tab2 AS cor0
----
10686
2467
7567

query I rowsort
SELECT ALL 16 * col2 - - ( + cor0.col0 ) FROM tab1 AS cor0
----
1616
867
976

query I rowsort
SELECT DISTINCT - 45 + col1 * + 64 AS col2 FROM tab1 cor0
----
1619
595
787

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 + ( 58 + col1 ) FROM tab1 AS cor0
----
4164
6471
93

query I rowsort
SELECT 25 * + col1 FROM tab0
----
2150
2275
2425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 - - cor0.col2 col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + cor0.col1 + + col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4840
SELECT ALL + col0 * col2 DIV 48 FROM tab0 AS cor0
----
0
152
16

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL + col0 * col2 / 48 FROM tab0 AS cor0
----
0
152
16

query I rowsort
SELECT DISTINCT + + col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - + col1 * col2 - - ( col2 ) * col2 FROM tab1 AS cor0
----
1512
2679
7968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 * + col1 + - 90 + col2 col2 FROM tab2 AS cor0
----
-119716
-51086
-5922

query I rowsort
SELECT - - ( - cor0.col0 ) + col2 - + 39 FROM tab0 AS cor0
----
-30
-46
-73

query I rowsort
SELECT - 91 * + cor0.col0 * + col0 + + cor0.col1 + - 83 * + col1 AS col0 FROM tab1 AS cor0
----
-2951
-373556
-583466

onlyif mysql # use DIV operator for integer division
query I rowsort label-4846
SELECT + col1 DIV - col1 + col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-4846
SELECT + col1 / - col1 + col0 FROM tab2 AS cor0
----
6
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * cor0.col2 col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4848
SELECT col1 + col0 DIV col2 + col2 FROM tab0 cor0
----
119
133
174

skipif mysql # not compatible
query I rowsort label-4848
SELECT col1 + col0 / col2 + col2 FROM tab0 cor0
----
119
133
174

onlyif mysql # use DIV operator for integer division
query I rowsort label-4849
SELECT + + col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4849
SELECT + + col2 / + col0 AS col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT + - col0 * col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - 29 * + col2 AS col1 FROM tab2 AS cor0
----
-1102
-754
-783

query I rowsort
SELECT ( 52 ) * - col2 FROM tab2
----
-1352
-1404
-1976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4853
SELECT ALL - ( cor0.col0 ) + + CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL - ( cor0.col0 ) + + CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 * + col2 col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT - 68 AS col1 FROM tab2
----
-68

query I rowsort
SELECT 22 * col1 + col2 FROM tab1
----
277
382
626

query I rowsort
SELECT - col1 * 4 FROM tab0 AS cor0
----
-344
-364
-388

query I rowsort
SELECT + 18 AS col0 FROM tab2
----
18
18
18

query I rowsort
SELECT DISTINCT 11 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col2 FROM tab2 cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4861
SELECT + - col1 * cor0.col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4861
SELECT + - col1 * cor0.col2 / - col2 AS col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4862
SELECT - col0 DIV 45 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4862
SELECT - col0 / 45 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL 50 * - 52 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d5a72ec22350dc39ea8581ef6bfa4669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 * cor0.col2 col2 FROM tab0, tab0 AS cor0
----
1617
4018
49

query I rowsort
SELECT ALL - + 58 FROM tab1 AS cor0
----
-58
-58
-58

query I rowsort
SELECT DISTINCT ( col2 ) + + col0 * cor0.col2 + - 37 FROM tab1 AS cor0
----
179
3668
7739

query I rowsort
SELECT ALL - col0 - 39 FROM tab2 AS cor0
----
-117
-118
-46

query I rowsort
SELECT ALL + col0 + ( col1 ) * + col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT DISTINCT + - 88 AS col2 FROM tab1 AS cor0
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT ALL col0 - + tab1.col2 AS col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL col0 - 11 FROM tab2
----
-4
67
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 col0 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4874
SELECT DISTINCT - 39 + + col0 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
-33
-39

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT - 39 + + col0 / cor0.col1 AS col1 FROM tab1 AS cor0
----
-33
-39

query I rowsort
SELECT - - 57 AS col1 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT DISTINCT - col2 * col1 * col1 + - col2 AS col1 FROM tab1 AS cor0
----
-16320
-36558
-5757

query I rowsort
SELECT + 80 AS col2 FROM tab1 AS cor0
----
80
80
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4878
SELECT - CAST( - 6 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-4878
SELECT - CAST ( - 6 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT col2 * 7 + col2 * col1 FROM tab1 cor0
----
1782
1920
969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * + col1 col1 FROM tab2
----
17
31
59

query I rowsort
SELECT 45 + cor0.col1 AS col1 FROM tab1 cor0
----
55
58
71

query I rowsort
SELECT col1 + + col2 * 96 AS col2 FROM tab0 AS cor0
----
193
3254
7963

query I rowsort
SELECT + 44 AS col2 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4884
SELECT - col0 + + col2 * CAST( + col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4884
SELECT - col0 + + col2 * CAST ( + col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-4885
SELECT - tab2.col1 DIV + col1 + + 1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4885
SELECT - tab2.col1 / + col1 + + 1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 38 AS col0 FROM tab0, tab2 AS cor0
----
-38

query I rowsort
SELECT + - col1 * + col0 + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT tab1.col2 + 7 FROM tab1
----
103
61
64

query I rowsort
SELECT ALL col2 + - col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ( - 87 + - col0 ) FROM tab2
----
-165
-166
-94

query I rowsort
SELECT + 14 * cor0.col0 + col0 * col2 * col0 FROM tab1 AS cor0
----
234368
528
615520

query I rowsort
SELECT 77 + col2 AS col2 FROM tab2 cor0
----
103
104
115

query I rowsort
SELECT DISTINCT - col2 + - col2 * col1 AS col2 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT + col2 + - 73 AS col2 FROM tab2
----
-35
-46
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-4895
SELECT DISTINCT - col1 + + tab0.col1 DIV + tab0.col1 AS col1 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT - col1 + + tab0.col1 / + tab0.col1 AS col1 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT ALL 67 + col2 FROM tab1
----
121
124
163

query I rowsort
SELECT DISTINCT + ( col0 ) + col1 + + tab0.col2 * col1 * + col0 FROM tab0
----
3527
664298
68222

query I rowsort
SELECT DISTINCT - col1 + - col1 + col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - + col2 * col1 + - col0 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT + tab2.col2 * col1 * col0 + col0 FROM tab2
----
119730
51113
5866

onlyif mysql # use DIV operator for integer division
query I rowsort label-4901
SELECT ALL 98 DIV + col1 AS col1 FROM tab1
----
3
7
9

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL 98 / + col1 AS col1 FROM tab1
----
3
7
9

query I rowsort
SELECT cor0.col1 * - col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - 12 * col1 FROM tab1 cor0
----
-120
-156
-312

query I rowsort
SELECT ALL + 16 * col2 AS col2 FROM tab2 AS cor0
----
416
432
608

query I rowsort
SELECT DISTINCT + col2 + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - + col2 + + col1 * + col1 AS col0 FROM tab2 cor0
----
251
3455
934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col0 + + col2 * + cor0.col1 col1 FROM tab2 AS cor0
----
6887
7618
886

query I rowsort
SELECT ALL - + 27 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT ALL - ( col0 ) * - col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + col0 - - col1 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4912
SELECT ALL + + col2 * - col0 * + col2 + col0 DIV col2 FROM tab1 cor0
----
-207935
-737280
-8748

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL + + col2 * - col0 * + col2 + col0 / col2 FROM tab1 cor0
----
-207935
-737280
-8748

query I rowsort
SELECT ALL cor0.col0 + col0 * col0 FROM tab0 AS cor0
----
1260
600
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - cor0.col1 col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + col0 * col0 - - col1 AS col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT + - col1 + cor0.col0 * + col2 AS col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT cor0.col2 * - ( + col1 ) + + col1 FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT - col0 + - 59 AS col0 FROM tab0 AS cor0
----
-148
-83
-94

query I rowsort
SELECT ALL + + col1 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4920
SELECT - col1 * - CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-4920
SELECT - col1 * - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + - 59 * 58 + - col2 FROM tab2 AS cor0
----
-3448
-3449
-3460

query I rowsort
SELECT + cor0.col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-4923
SELECT ALL + col1 - col0 DIV - col0 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL + col1 - col0 / - col0 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-4925
SELECT ALL + col2 DIV - 36 + + col2 FROM tab1 cor0
----
53
56
94

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + col2 / - 36 + + col2 FROM tab1 cor0
----
53
56
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4926
SELECT - cor0.col0 DIV - col0 - col0 * col1 * + col1 FROM tab2 AS cor0
----
-22830
-271517
-6726

skipif mysql # not compatible
query I rowsort label-4926
SELECT - cor0.col0 / - col0 - col0 * col1 * + col1 FROM tab2 AS cor0
----
-22830
-271517
-6726

query I rowsort
SELECT DISTINCT - - 81 * col2 - + cor0.col2 * - col1 * - col0 FROM tab2 AS cor0
----
-117546
-3672
-47956

query I rowsort
SELECT DISTINCT ( + col2 ) + col1 * col0 AS col0 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4929
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col2 + col1 * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col2 + col1 * col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 70 FROM tab0, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT cor0.col1 * - col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4932
SELECT DISTINCT + CAST( NULL AS SIGNED ) * ( + cor0.col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * ( + cor0.col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 21 * cor0.col1 + col1 * - cor0.col1 FROM tab0 AS cor0
----
-5590
-6370
-7372

query I rowsort
SELECT ALL + + ( + col0 ) * col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - 29 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT + + ( col0 ) + + col1 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + - col2 * cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT col0 * + col0 * col1 AS col0 FROM tab2 cor0
----
106097
1519
358956

query I rowsort
SELECT + col2 + + cor0.col1 * col0 * - col0 FROM tab0 AS cor0
----
-118824
-49503
-720729

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE cor0.col2 * col0 / col2 IN ( cor0.col1 * + col0 + + col1 ) OR NULL = + col1 * - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( cor0.col0 + col0 * + col2 ) > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4943
SELECT ALL + col1 * - col1 * + col0 + col1 DIV - col1 FROM tab1
----
-13521
-2029
-6401

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL + col1 * - col1 * + col0 + col1 / - col1 FROM tab1
----
-13521
-2029
-6401

query I rowsort
SELECT col0 - col0 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - col1 * col0 + col0 FROM tab0 cor0
----
-2040
-3360
-8010

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT ALL - tab1.col2 * col0 + + col2 * - col1 FROM tab1
----
-1566
-4218
-8928

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * col0 * - col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-4950
SELECT - cor0.col0 + - cor0.col2 DIV col1 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4950
SELECT - cor0.col0 + - cor0.col2 / col1 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4952
SELECT ALL col1 * + col1 DIV col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL col1 * + col1 / col1 FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4953
SELECT col2 DIV + col0 + - col2 AS col0 FROM tab0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-4953
SELECT col2 / + col0 + - col2 AS col0 FROM tab0
----
-1
-32
-82

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NOT NULL = ( - col2 ) AND NOT NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * + col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + tab1.col1 * col0 AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT + col1 * cor0.col2 * + col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT col2 * tab0.col2 AS col1 FROM tab0
----
1
1089
6724

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = ( NULL ) AND NOT col1 * col1 + col1 + col1 > - col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4960
SELECT ALL + tab0.col2 DIV + col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL + tab0.col2 / + col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 + col1 * col1 * col2 FROM tab0
----
244035
678960
9408

query I rowsort
SELECT ALL col0 * tab0.col0 AS col2 FROM tab0
----
1225
576
7921

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 = col2 AND NOT NULL BETWEEN NULL AND - col2
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4964
SELECT cor0.col1 - CAST( - col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4964
SELECT cor0.col1 - CAST ( - col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL ( + cor0.col1 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT - col2 - col1 AS col1 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT col1 + col1 - tab2.col1 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT + col2 + + 47 AS col1 FROM tab0
----
129
48
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - ( 47 ) col1 FROM tab2
----
106
64
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4970
SELECT DISTINCT + col0 - - CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT + col0 - - CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4971
SELECT DISTINCT - cor0.col0 + - col0 + ( col2 ) DIV CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-14
-156
-160

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT - cor0.col0 + - col0 + ( col2 ) / CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-14
-156
-160

query I rowsort
SELECT DISTINCT + col1 * cor0.col2 + 93 AS col0 FROM tab0 AS cor0
----
190
2931
7555

onlyif mysql # use DIV operator for integer division
query I rowsort label-4973
SELECT + col1 DIV ( + 13 * col0 ) - - 85 FROM tab0 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-4973
SELECT + col1 / ( + 13 * col0 ) - - 85 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT col2 + 77 FROM tab1 cor0
----
131
134
173

query I rowsort
SELECT DISTINCT + 9 FROM tab2
----
9

query I rowsort
SELECT ALL + 69 + - col2 + col1 AS col2 FROM tab0
----
122
165
78

query I rowsort
SELECT + col1 + col0 * + col2 FROM tab1 cor0
----
188
3658
7693

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) FROM tab1
----
3
64
80

query I rowsort
SELECT + 17 AS col0 FROM tab0
----
17
17
17

query I rowsort
SELECT - - 7 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT - 12 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
312
324
456

query I rowsort
SELECT DISTINCT + - cor0.col0 + col1 * col0 AS col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT - - 25 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2150
2275
2425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 * cor0.col2 col0 FROM tab0 AS cor0
----
-2244
-5576
-68

query I rowsort
SELECT - + ( cor0.col2 ) * - cor0.col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + + cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4987
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 63 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 63 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT ALL col0 * 0 FROM tab0
----
0
0
0

query I rowsort
SELECT ( col1 ) * cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - 95 + + cor0.col0 FROM tab2 AS cor0
----
-16
-17
-88

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) * col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + 33 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT DISTINCT + + 28 * - col0 FROM tab0 AS cor0
----
-2492
-672
-980

query I rowsort
SELECT + - col2 * ( ( col1 ) ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + 54 * + col1 FROM tab0
----
4644
4914
5238

onlyif mysql # use DIV operator for integer division
query I rowsort label-4997
SELECT ALL col1 DIV col1 col0 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL col1 / col1 col0 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + col0 + + ( col2 * col2 ) AS col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT + + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + col1 * - ( + 43 ) - col0 AS col0 FROM tab1 AS cor0
----
-1121
-494
-639

query I rowsort
SELECT DISTINCT + + col2 * 23 FROM tab0 AS cor0
----
1886
23
759

query I rowsort
SELECT + + col1 * ( col0 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - cor0.col1 * + 88 FROM tab1 AS cor0
----
-1144
-2288
-880

query I rowsort
SELECT ( col0 ) - + 12 * - 51 FROM tab0
----
636
647
701

query I rowsort
SELECT + 40 + col1 AS col2 FROM tab2
----
57
71
99

query I rowsort
SELECT ALL - tab0.col0 * - tab0.col1 * + col2 AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL + 70 AS col2 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT - - 97 + col1 FROM tab2 cor0
----
114
128
156

query I rowsort
SELECT DISTINCT - 50 * cor0.col0 FROM tab2 AS cor0
----
-350
-3900
-3950

query I rowsort
SELECT - - 94 * 71 + col0 AS col2 FROM tab0 AS cor0
----
6698
6709
6763

query I rowsort
SELECT DISTINCT + + col1 + - col1 * - col2 AS col1 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-5012
SELECT + + 43 * ( - col1 ) DIV - 7 + - col1 col1 FROM tab1 AS cor0
----
133
51
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5012
SELECT + + 43 * ( - col1 ) / - 7 + - col1 col1 FROM tab1 AS cor0
----
133
51
66

query I rowsort
SELECT ALL + - 52 * + 48 * col2 FROM tab1 AS cor0
----
-134784
-142272
-239616

query I rowsort
SELECT ALL col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - ( 56 ) * + col2 FROM tab0 AS cor0
----
-1848
-4592
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-5016
SELECT DISTINCT + col0 DIV 13 col0 FROM tab0
----
1
2
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT + col0 / 13 col0 FROM tab0
----
1
2
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5017
SELECT - col1 + col1 DIV + col1 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-5017
SELECT - col1 + col1 / + col1 FROM tab2
----
-16
-30
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-5018
SELECT - ( 66 ) - col0 DIV + CAST( 26 AS SIGNED ) AS col1 FROM tab2
----
-66
-69
-69

skipif mysql # not compatible
query I rowsort label-5018
SELECT - ( 66 ) - col0 / + CAST ( 26 AS INTEGER ) AS col1 FROM tab2
----
-66
-69
-69

query I rowsort
SELECT + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT cor0.col0 * - col2 + - col0 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT col0 + + col1 * + col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT - col2 + + col1 * col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1

query I rowsort
SELECT 7 * + col1 AS col1 FROM tab2
----
119
217
413

query I rowsort
SELECT - + 75 * + col2 AS col2 FROM tab0 AS cor0
----
-2475
-6150
-75

query I rowsort
SELECT DISTINCT + col0 + - 28 AS col1 FROM tab2 AS cor0
----
-21
50
51

query I rowsort
SELECT 45 - col2 FROM tab1 AS cor0
----
-12
-51
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5028
SELECT ALL col0 + - col0 DIV col1 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL col0 + - col0 / col1 AS col2 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5029
SELECT + 36 + col0 * + col1 * - col1 + + col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
-22796
-271483
-6692

skipif mysql # not compatible
query I rowsort label-5029
SELECT + 36 + col0 * + col1 * - col1 + + col1 / - col1 AS col2 FROM tab2 AS cor0
----
-22796
-271483
-6692

query I rowsort
SELECT ALL + 51 * - ( col2 ) FROM tab2 AS cor0
----
-1326
-1377
-1938

query I rowsort
SELECT ALL + col2 + - 16 FROM tab2 AS cor0
----
10
11
22

query I rowsort
SELECT + ( - 75 ) AS col1 FROM tab2 cor0
----
-75
-75
-75

query I rowsort
SELECT DISTINCT ( - col1 ) * col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - - 98 * col1 FROM tab1 cor0
----
1274
2548
980

onlyif mysql # use DIV operator for integer division
query I rowsort label-5035
SELECT DISTINCT col0 DIV - 83 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT col0 / - 83 AS col2 FROM tab0
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5036
SELECT col0 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5036
SELECT col0 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * ( - ( - col2 ) ) FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5038
SELECT - col2 + 17 * + col2 - col2 DIV + ( col0 * - col0 ) AS col0 FROM tab2
----
416
432
608

skipif mysql # not compatible
query I rowsort label-5038
SELECT - col2 + 17 * + col2 - col2 / + ( col0 * - col0 ) AS col0 FROM tab2
----
416
432
608

query I rowsort
SELECT cor0.col2 + col1 - col0 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT DISTINCT - ( 1 ) FROM tab2 AS cor0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5041
SELECT + CAST( + 84 AS SIGNED ) * - col0 + - col1 + - 79 AS col1 FROM tab2 AS cor0
----
-6690
-6732
-698

skipif mysql # not compatible
query I rowsort label-5041
SELECT + CAST ( + 84 AS INTEGER ) * - col0 + - col1 + - 79 AS col1 FROM tab2 AS cor0
----
-6690
-6732
-698

query I rowsort
SELECT ALL + ( ( - col1 ) ) * + 0 + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT col1 * - col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col2 * - 77 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-218526
-574574
-7469

query I rowsort
SELECT 95 * - col1 + - col1 FROM tab0 AS cor0
----
-8256
-8736
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col2 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 39 + col2 * + col0 - + col1 col1 FROM tab1 AS cor0
----
3599
7628
97

query I rowsort
SELECT ALL + col0 + + 46 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
1406
2766
823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * - col1 col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - 98 * - 37 FROM tab2
----
3626

query I rowsort
SELECT 46 + + col0 * - 83 FROM tab2
----
-535
-6428
-6511

query I rowsort
SELECT ( + cor1.col2 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5053
SELECT DISTINCT cor0.col1 * + ( col0 ) + - cor0.col1 DIV + cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
1359
247
4660

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT cor0.col1 * + ( col0 ) + - cor0.col1 / + cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
1359
247
4660

query I rowsort
SELECT ALL + + cor0.col0 - 75 FROM tab0 AS cor0
----
-40
-51
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + cor0.col0 col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL cor0.col0 + ( + col2 * + cor0.col1 ) + + 89 AS col0 FROM tab0 AS cor0
----
221
2951
7640

query I rowsort
SELECT - tab1.col1 + - col1 * + tab1.col2 AS col2 FROM tab1
----
-1261
-1430
-580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5058
SELECT col1 * - CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-5058
SELECT col1 * - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - + col1 * - 46 + col2 + col0 FROM tab1 AS cor0
----
1253
581
774

onlyif mysql # use DIV operator for integer division
query I rowsort label-5060
SELECT ALL col1 + + ( col1 ) DIV - col1 AS col0 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL col1 + + ( col1 ) / - col1 AS col0 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT ALL - col1 * ( - col0 ) + col1 * 37 AS col0 FROM tab1 AS cor0
----
1010
1040
1521

query I rowsort
SELECT - col1 * 18 * col1 FROM tab2 cor0
----
-17298
-5202
-62658

onlyif mysql # use DIV operator for integer division
query I rowsort label-5063
SELECT ALL col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL col1 / - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff

query I rowsort
SELECT - 60 * 47 FROM tab1, tab2 AS cor0
----
9 values hashing to 6a6baf20fb907a0f5ccb1e84ed308da0

query I rowsort
SELECT DISTINCT col2 * + 80 - cor0.col2 FROM tab0 AS cor0
----
2607
6478
79

query I rowsort
SELECT DISTINCT + col0 + 11 + - 72 FROM tab1 cor0
----
-58
19
3

query I rowsort
SELECT ALL + col1 + + 66 + col2 * - col2 FROM tab0 AS cor0
----
-6567
-937
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * + 31 col2 FROM tab1 AS cor0
----
1984
2480
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5070
SELECT ALL - col1 DIV col0 + col0 + col0 AS col1 FROM tab2 cor0
----
10
156
158

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL - col1 / col0 + col0 + col0 AS col1 FROM tab2 cor0
----
10
156
158

query I rowsort
SELECT - + col1 * ( col1 ) AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + + cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col0 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col1 + - col0 * 30 FROM tab1 cor0
----
-1910
-2387
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 + 25 * - col1 col1 FROM tab1 AS cor0
----
-218
-293
-618

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5077
SELECT ALL + + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL + + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - col0 * col1 + col0 FROM tab1 cor0
----
-576
-75
-960

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 * - cor0.col2 col1 FROM tab2 AS cor0
----
-104
-108
-152

query I rowsort
SELECT + col2 * col2 + - col0 FROM tab2 AS cor0
----
1365
598
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-5082
SELECT cor0.col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-5082
SELECT cor0.col2 / - col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT + - 6 + col1 AS col1 FROM tab0 cor0
----
80
85
91

query I rowsort
SELECT ALL + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5085
SELECT + col2 + - col2 * CAST( NULL AS SIGNED ) - col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT + col2 + - col2 * CAST ( NULL AS INTEGER ) - col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 45 + col2 FROM tab0 AS cor0
----
127
46
78

query I rowsort
SELECT 43 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT - col2 * - col2 * ( ( col2 ) ) AS col0 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT col2 + cor0.col2 * 30 FROM tab2 AS cor0
----
1178
806
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col0 FROM tab1
----
5
5
5

query I rowsort
SELECT + col2 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT cor0.col2 + - cor0.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-41
-52
20

query I rowsort
SELECT cor0.col1 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT DISTINCT + col1 * + cor0.col0 + 56 FROM tab0 AS cor0
----
2120
3451
8155

query I rowsort
SELECT - tab0.col2 + - col1 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT ALL - - cor0.col1 * col1 + col0 * + col2 FROM tab1 cor0
----
3748
7849
838

query I rowsort
SELECT 70 AS col1 FROM tab0, tab1 AS cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to c07fb58c935d7dd3a559c80465f90463

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5098
SELECT DISTINCT 14 * - col1 * - CAST( NULL AS SIGNED ) + col0 * + col2 * cor0.col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5098
SELECT DISTINCT 14 * - col1 * - CAST ( NULL AS INTEGER ) + col0 * + col2 * cor0.col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 + col2 FROM tab0 WHERE col2 >= col0 * col0 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 <= ( NULL )
----

query I rowsort
SELECT col1 + + tab0.col2 AS col0 FROM tab0
----
119
173
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) = NULL
----

query I rowsort
SELECT ALL + 28 AS col1 FROM tab0
----
28
28
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-5104
SELECT ALL + 59 DIV - col0 AS col0 FROM tab1
----
-19
0
0

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL + 59 / - col0 AS col0 FROM tab1
----
-19
0
0

query I rowsort
SELECT + 42 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT + cor0.col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT 69 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to dfada1ee7a4e3e5c74a063a1282769f9

query I rowsort
SELECT tab0.col2 - - col0 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL tab0.col2 * - col1 + - tab0.col2 AS col2 FROM tab0
----
-2871
-7544
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * tab1.col0 + - col0 col1 FROM tab1
----
231
40896
83120

onlyif mysql # use DIV operator for integer division
query I rowsort label-5111
SELECT ALL col0 DIV - col2 + col2 AS col0 FROM tab0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL col0 / - col2 + col2 AS col0 FROM tab0
----
-34
33
81

query I rowsort
SELECT DISTINCT col0 * + col2 + - col2 FROM tab0
----
34
7216
759

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 ) > col0
----
7
31
27

query I rowsort
SELECT DISTINCT - col0 + - col2 * col2 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT + col0 + - cor0.col2 * col0 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT + col2 * + col1 FROM tab2 WHERE NULL NOT IN ( + col2 * + col2 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 * - col0 col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col2 * - col1 AS col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col1 * + tab1.col2 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - tab0.col1 + - col0 * col1 * col1 + - col1 * - col0 AS col1 FROM tab0
----
-175526
-326017
-729001

query I rowsort
SELECT - col0 / col2 AS col2 FROM tab0 WHERE NULL NOT IN ( col1 * col0 + col2 )
----

query I rowsort
SELECT ALL tab2.col1 * col1 * + tab2.col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ALL - col0 * + col2 + tab0.col0 AS col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT + col0 * col1 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - col1 + + tab1.col2 FROM tab1
----
28
47
83

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5127
SELECT DISTINCT + tab2.col1 DIV col0 + - col2 AS col1 FROM tab2 WHERE + col1 <> + col2 * - col1 + col2
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT + tab2.col1 / col0 + - col2 AS col1 FROM tab2 WHERE + col1 <> + col2 * - col1 + col2
----
-23
-26
-38

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( col2 * tab1.col1 * - col0 + col2 )
----

query I rowsort
SELECT DISTINCT - tab0.col1 * - col1 + - col2 AS col2 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT - cor0.col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT 23 + 50 * + col0 FROM tab0
----
1223
1773
4473

query I rowsort
SELECT + 53 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT - cor0.col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * + 17 col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 62bc0b0492b5ddd445a8e3914f4cb03f

query I rowsort
SELECT + col2 + + col1 * - col1 + 70 * - col0 AS col1 FROM tab1
----
-4523
-5673
-832

query I rowsort
SELECT - + col1 * + col2 + - cor0.col0 * col0 FROM tab2 AS cor0
----
-6887
-7618
-886

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5137
SELECT + - CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5137
SELECT + - CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5138
SELECT DISTINCT - CAST( - col0 AS SIGNED ) - col2 FROM tab1 cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) - col2 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT + col1 * col2 + - col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT - col1 * - ( col2 ) + ( col0 ) AS col2 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - col1 * col0 * ( col0 ) FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT - 12 + col2 * + cor0.col0 * col1 FROM tab0 AS cor0
----
3383
664106
68100

query I rowsort
SELECT ALL col0 + + col0 * + col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT - + ( col0 ) * - 30 FROM tab1 AS cor0
----
1920
2400
90

query I rowsort
SELECT ALL + 2 AS col2 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT 66 + col1 AS col1 FROM tab0 AS cor0
----
152
157
163

query I rowsort
SELECT ALL + - col2 * + col0 * - 88 FROM tab0 AS cor0
----
3080
642224
69696

query I rowsort
SELECT ALL - 8 - col0 * col1 * cor0.col1 AS col1 FROM tab1 cor0
----
-13528
-2036
-6408

query I rowsort
SELECT DISTINCT - 9 * col0 FROM tab2 AS cor0
----
-63
-702
-711

query I rowsort
SELECT DISTINCT col2 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + - 66 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT ALL + col0 - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - 16 + 77 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT col1 * - tab1.col0 - col2 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT ( - col1 * - col2 ) + - col1 * tab0.col1 FROM tab0
----
-4558
-819
-9312

query I rowsort
SELECT DISTINCT 82 + - col1 * + col2 AS col0 FROM tab2
----
-1452
-564
-755

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 col0 FROM tab1 cor0
----
-8

query I rowsort
SELECT - col0 * col1 + + 80 AS col1 FROM tab0 AS cor0
----
-1984
-3315
-8019

query I rowsort
SELECT ALL col2 + - col2 * - col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL + 76 + + col0 FROM tab0 AS cor0
----
100
111
165

onlyif mysql # use DIV operator for integer division
query I rowsort label-5162
SELECT - cor0.col2 DIV + col1 + + cor0.col1 + col1 * + col0 col1 FROM tab2 cor0
----
1358
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5162
SELECT - cor0.col2 / + col1 + + cor0.col1 + col1 * + col0 col1 FROM tab2 cor0
----
1358
248
4661

query I rowsort
SELECT + - col0 - + col2 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - col1 + cor0.col0 * col0 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT + col1 * 91 AS col1 FROM tab0 AS cor0
----
7826
8281
8827

query I rowsort
SELECT ALL + 14 AS col1 FROM tab2
----
14
14
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-5167
SELECT - + cor0.col1 DIV + col0 + col2 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-5167
SELECT - + cor0.col1 / + col0 + col2 FROM tab0 AS cor0
----
-1
30
81

query I rowsort
SELECT col0 * col1 - col0 AS col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT + - cor0.col0 * cor0.col0 - 41 FROM tab0 AS cor0
----
-1266
-617
-7962

query I rowsort
SELECT ALL + cor0.col2 * ( 2 ) + - col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - col2 * ( - 17 + - cor0.col0 ) FROM tab1 AS cor0
----
1080
4617
9312

query I rowsort
SELECT tab1.col2 * 63 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b51875f433bf52caae70d467d9f3e3be

query I rowsort
SELECT + cor0.col0 * cor0.col0 * + 10 FROM tab0, tab0 cor0
----
9 values hashing to 8c344709a48f7fb42d76649043722327

query I rowsort
SELECT ALL - ( col2 ) * col0 + col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5175
SELECT - CAST( NULL AS SIGNED ) + 0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5175
SELECT - CAST ( NULL AS INTEGER ) + 0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5176
SELECT + col1 * ( - col1 ) + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5176
SELECT + col1 * ( - col1 ) + col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 25 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - - ( - col0 ) * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + + cor0.col1 * col2 + + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + col0 + + cor0.col2 * col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT + col2 + - col0 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - - col1 * + 73 AS col0 FROM tab1 cor0
----
1898
730
949

query I rowsort
SELECT DISTINCT - col1 - col1 * + col2 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5185
SELECT ALL - cor0.col1 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL - cor0.col1 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 - - ( - 78 ) AS col2 FROM tab1 AS cor0
----
-14
-75
2

query I rowsort
SELECT col2 * col0 + - 53 * - col2 FROM tab2 cor0
----
1620
3406
5016

query I rowsort
SELECT - ( col1 ) + + col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 + + 9 col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT - col1 * col2 + + tab2.col2 * col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + col0 * - col2 ) AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL ( + cor0.col0 ) FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - 47 AS col2 FROM tab1
----
-47
-47
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + 71 * + col0 col0 FROM tab2 AS cor0
----
466
5479
5592

query I rowsort
SELECT - 38 - + col1 FROM tab1
----
-48
-51
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-5196
SELECT + + col1 + - ( col0 ) DIV cor0.col0 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-5196
SELECT + + col1 + - ( col0 ) / cor0.col0 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT - col1 * 2 AS col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT + + col1 * ( cor0.col1 ) + 24 AS col1 FROM tab0 AS cor0
----
7420
8305
9433

query I rowsort
SELECT + + cor0.col0 + cor0.col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT ALL 24 + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1420
-652
-705

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5201
SELECT + CAST( 66 AS SIGNED ) + cor0.col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1510
742
795

skipif mysql # not compatible
query I rowsort label-5201
SELECT + CAST ( 66 AS INTEGER ) + cor0.col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1510
742
795

query I rowsort
SELECT ALL + col1 * - ( + col2 + col2 ) AS col1 FROM tab0 cor0
----
-14924
-194
-5676

query I rowsort
SELECT ALL + + 34 * - 79 FROM tab1 AS cor0
----
-2686
-2686
-2686

query I rowsort
SELECT DISTINCT - 58 AS col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT - col1 + - tab2.col0 * col2 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT ALL + col1 + col1 * - col2 * col0 + col0 FROM tab0
----
-3263
-663938
-68002

query I rowsort
SELECT - col0 + tab0.col1 * - col2 + col1 FROM tab0
----
-2776
-35
-7460

query I rowsort
SELECT ALL - col0 * 76 FROM tab1 AS cor0
----
-228
-4864
-6080

query I rowsort
SELECT + 59 + - col1 FROM tab0 AS cor0
----
-27
-32
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5210
SELECT CAST( 37 AS SIGNED ) FROM tab1 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-5210
SELECT CAST ( 37 AS INTEGER ) FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT DISTINCT - col0 * col1 * col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT - col0 + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT ALL col0 * - col2 * col1 AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT - ( col0 ) * col1 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT + + 52 FROM tab0 AS cor0
----
52

query I rowsort
SELECT - cor0.col1 * + 83 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84daa2f8b7affa43f3d962258ebd19fa

query I rowsort
SELECT + cor0.col1 * - col2 * + col0 + - col1 FROM tab2 AS cor0
----
-119711
-51051
-5890

query I rowsort
SELECT + + cor0.col1 * col1 AS col2 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT + cor0.col1 + - col0 AS col2 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5220
SELECT + - 74 DIV - col0 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-5220
SELECT + - 74 / - col0 FROM tab0 AS cor0
----
0
2
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5221
SELECT + 56 + col1 * cor0.col2 + col1 * + col2 * CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5221
SELECT + 56 + col1 * cor0.col2 + col1 * + col2 * CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5222
SELECT col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5222
SELECT col2 / + col0 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + ( 87 ) AS col2 FROM tab0
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col0 FROM tab2
----
-80
-80
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( ( cor1.col1 ) ) + - 20 col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
66
71
77

query I rowsort
SELECT + col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - ( col1 ) AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + col1 * 86 AS col2 FROM tab1
----
1118
2236
860

query I rowsort
SELECT DISTINCT col2 * col2 * col1 + + col0 FROM tab1
----
119888
32554
75819

query I rowsort
SELECT ALL - - col1 + + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5231
SELECT ALL - col1 * col2 + + ( col1 ) * + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-357
124
1947

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL - col1 * col2 + + ( col1 ) * + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-357
124
1947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col0 * col0 col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT + col1 - col0 FROM tab2 cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-5234
SELECT ALL + - 87 DIV + cor0.col0 + col2 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1443
675
717

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL + - 87 / + cor0.col0 + col2 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1443
675
717

query I rowsort
SELECT DISTINCT - ( 21 ) + col2 FROM tab0 AS cor0
----
-20
12
61

query I rowsort
SELECT - + cor0.col0 * col2 * col1 + + ( - col0 + + col0 * + ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-113646
-44872
-5817

query I rowsort
SELECT 25 * 11 FROM tab2 cor0
----
275
275
275

query I rowsort
SELECT + + col2 + - col1 AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT col0 * - 72 AS col2 FROM tab1 cor0
----
-216
-4608
-5760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5240
SELECT + col2 + CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-5240
SELECT + col2 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL - 55 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT + col1 + - cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5243
SELECT - col1 * + CAST( NULL AS SIGNED ) + - col2 / col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5243
SELECT - col1 * + CAST ( NULL AS INTEGER ) + - col2 / col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + - col1 * - col1 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT - col0 * + col0 + 49 * col0 AS col1 FROM tab2 AS cor0
----
-2262
-2370
294

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5246
SELECT ALL + col0 + - CAST( col2 + col2 * col0 AS SIGNED ) FROM tab1 AS cor0
----
-213
-3641
-7696

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL + col0 + - CAST ( col2 + col2 * col0 AS INTEGER ) FROM tab1 AS cor0
----
-213
-3641
-7696

query I rowsort
SELECT DISTINCT - - col1 - ( col2 ) * + col1 * 66 AS col1 FROM tab1 AS cor0
----
-37610
-82355
-92638

query I rowsort
SELECT - cor0.col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT col0 + ( col1 ) * + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + + col0 * col1 + + 45 * + col0 AS col2 FROM tab2 AS cor0
----
4898
532
8112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5251
SELECT - col0 * + CAST( + 24 * col0 AS SIGNED ) + + 20 * - 87 AS col2 FROM tab1 AS cor0
----
-100044
-155340
-1956

skipif mysql # not compatible
query I rowsort label-5251
SELECT - col0 * + CAST ( + 24 * col0 AS INTEGER ) + + 20 * - 87 AS col2 FROM tab1 AS cor0
----
-100044
-155340
-1956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5252
SELECT ALL + + CAST( + col0 AS SIGNED ) - - col2 * - col0 FROM tab1 AS cor0
----
-159
-3584
-7600

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL + + CAST ( + col0 AS INTEGER ) - - col2 * - col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + - 89 * col0 FROM tab2 AS cor0
----
-623
-6942
-7031

query I rowsort
SELECT 66 AS col0 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT ALL - col1 * col0 * col0 + 69 * 88 FROM tab2 cor0
----
-100025
-352884
4553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5256
SELECT DISTINCT + + CAST( col1 AS SIGNED ) * col2 col1 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) * col2 col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5257
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5257
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 18 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT - col1 + - col1 * cor0.col2 + - 11 FROM tab2 AS cor0
----
-1604
-674
-879

query I rowsort
SELECT + col2 - - cor0.col0 * - 87 AS col0 FROM tab1 AS cor0
----
-207
-5511
-6864

query I rowsort
SELECT + tab1.col2 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - 16 * - col0 FROM tab2
----
112
1248
1264

query I rowsort
SELECT + 18 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT 89 * col2 FROM tab0
----
2937
7298
89

query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab1, tab2, tab2 AS cor0
----
71

query I rowsort
SELECT ALL col2 * + col0 * col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT - - 20 * + col2 + - col1 AS col2 FROM tab2 cor0
----
461
509
743

query I rowsort
SELECT + - 69 + - cor0.col0 FROM tab0 AS cor0
----
-104
-158
-93

query I rowsort
SELECT col2 + col1 * - 40 * col1 - col1 FROM tab2 AS cor0
----
-11539
-139273
-38444

onlyif mysql # use DIV operator for integer division
query I rowsort label-5270
SELECT - col1 + col2 DIV + 31 col2 FROM tab2 AS cor0
----
-16
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5270
SELECT - col1 + col2 / + 31 col2 FROM tab2 AS cor0
----
-16
-31
-59

query I rowsort
SELECT - col0 * col0 + + col2 * tab0.col1 + + col1 * - col1 FROM tab0
----
-10537
-5134
-8740

query I rowsort
SELECT 79 - - col0 * + col1 FROM tab1
----
1119
157
719

query I rowsort
SELECT + col2 + + tab0.col0 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT + col2 - - col0 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - 88 * col2 col0 FROM tab2 AS cor0
----
-134992
-56848
-73656

query I rowsort
SELECT + 80 + + col1 * - tab2.col2 + + ( col0 ) FROM tab2
----
-1376
-487
-750

query I rowsort
SELECT ALL - 62 FROM tab1, tab1 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT + col0 * col0 * - 79 FROM tab0 AS cor0
----
-45504
-625759
-96775

query I rowsort
SELECT DISTINCT col2 * + col2 AS col1 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5280
SELECT ALL + col0 * 24 DIV cor0.col0 FROM tab2 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL + col0 * 24 / cor0.col0 FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT - + col1 + col2 - 17 AS col0 FROM tab0 AS cor0
----
-113
-26
-70

query I rowsort
SELECT DISTINCT - col2 + + 90 AS col1 FROM tab1 AS cor0
----
-6
33
36

query I rowsort
SELECT col1 - + 76 * + 95 * + col0 FROM tab2 cor0
----
-50509
-563101
-570363

query I rowsort
SELECT + 81 FROM tab1, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT + tab2.col0 + tab2.col1 FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 col1 FROM tab0
----
-65
-65
-65

query I rowsort
SELECT col2 * + col2 + col2 AS col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL ( 25 ) * - col1 + - col1 AS col1 FROM tab1 AS cor0
----
-260
-338
-676

query I rowsort
SELECT ALL ( - ( + col2 ) ) AS col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT cor2.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col1 ) col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + col2 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - col2 + + col1 * + col1 * col0 - col1 AS col2 FROM tab2 AS cor0
----
22776
271433
6669

query I rowsort
SELECT ALL tab2.col2 + col0 FROM tab2
----
104
117
34

query I rowsort
SELECT col1 * col2 - + 0 * + col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + - 10 AS col2 FROM tab0 AS cor0
----
-10
-10
-10

query I rowsort
SELECT ALL col1 + - col2 * 41 + cor0.col0 FROM tab1 AS cor0
----
-2185
-2263
-3843

query I rowsort
SELECT DISTINCT - 49 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT DISTINCT + + col0 + - col1 * 94 FROM tab0 AS cor0
----
-8060
-8465
-9083

query I rowsort
SELECT DISTINCT col2 * - col1 * - col1 + - cor0.col1 * + col1 * col1 FROM tab0 cor0
----
-391988
-74529
-903264

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + col1 * + 18 AS col0 FROM tab2 AS cor0
----
-2419
-403
17

query I rowsort
SELECT DISTINCT - + col0 - cor0.col2 AS col1 FROM tab2 cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5303
SELECT ( col0 ) DIV ( col0 ) FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5303
SELECT ( col0 ) / ( col0 ) FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 * + col1 + - 33 col1 FROM tab2 AS cor0
----
1344
2478
4746

query I rowsort
SELECT - col1 * + 17 + 48 FROM tab1
----
-122
-173
-394

query I rowsort
SELECT DISTINCT + col0 * 52 + col1 * col2 + 47 FROM tab1 AS cor0
----
1607
3945
5455

query I rowsort
SELECT ALL + col2 - ( - col1 ) FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5308
SELECT DISTINCT col2 + - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT col2 + - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL cor0.col0 + + 19 * col1 FROM tab2 AS cor0
----
1199
402
596

query I rowsort
SELECT col0 + - 2 * - col0 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT ALL - col2 * col0 + col1 * col0 AS col2 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT DISTINCT - 17 + col1 FROM tab1 cor0
----
-4
-7
9

query I rowsort
SELECT DISTINCT + col0 - 99 AS col0 FROM tab2 AS cor0
----
-20
-21
-92

query I rowsort
SELECT - cor0.col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + col0 * - col0 + + col0 * - col2 FROM tab2 AS cor0
----
-238
-8112
-9243

query I rowsort
SELECT ALL + col1 + + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT 23 + - col1 * + col2 FROM tab2 cor0
----
-1511
-623
-814

query I rowsort
SELECT DISTINCT - col2 * + 41 + + col2 FROM tab1 AS cor0
----
-2160
-2280
-3840

query I rowsort
SELECT - ( 50 ) AS col2 FROM tab0 AS cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT - col1 * 61 FROM tab1 cor0
----
-1586
-610
-793

query I rowsort
SELECT ALL + col1 * - cor0.col2 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - - 11 * cor0.col2 - col1 AS col0 FROM tab2 AS cor0
----
227
266
401

onlyif mysql # use DIV operator for integer division
query I rowsort label-5323
SELECT ALL - 16 DIV + 47 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-5323
SELECT ALL - 16 / + 47 col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( 53 AS REAL ) AS col0 FROM tab2 cor0
----
-53
-53
-53

query I rowsort
SELECT 71 * tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to e674318d1c1f37f21287c95f3070a6b9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5326
SELECT ALL - CAST( NULL AS SIGNED ) * col2 + col1 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 + col1 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 93 * 99 + col0 FROM tab2 AS cor0
----
-9128
-9129
-9200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col2 ) * + col1 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT 12 - + col0 AS col2 FROM tab0 AS cor0
----
-12
-23
-77

query I rowsort
SELECT 30 + col0 + col0 AS col2 FROM tab1 AS cor0
----
158
190
36

query I rowsort
SELECT DISTINCT + 82 * + col1 AS col1 FROM tab1 AS cor0
----
1066
2132
820

query I rowsort
SELECT DISTINCT - 73 + col0 * + 15 FROM tab0 AS cor0
----
1262
287
452

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + 92 + - col1 col1 FROM tab1 AS cor0
----
228
3730
7759

query I rowsort
SELECT ALL - - col0 * - col2 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5336
SELECT DISTINCT - + col1 * - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT - + col1 * - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col0 + col2 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT - - cor0.col2 - - col2 FROM tab2 cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5339
SELECT DISTINCT + col1 - - col1 DIV 48 FROM tab2 AS cor0
----
17
31
60

skipif mysql # not compatible
query I rowsort label-5339
SELECT DISTINCT + col1 - - col1 / 48 FROM tab2 AS cor0
----
17
31
60

query I rowsort
SELECT - col2 * col2 + - col0 * col2 FROM tab1 AS cor0
----
-16896
-3078
-6897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + - cor0.col2 + col0 FROM tab0 cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5343
SELECT DISTINCT - - col0 DIV col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT - - col0 / col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT DISTINCT - 93 * + col1 * + col1 AS col0 FROM tab2 AS cor0
----
-26877
-323733
-89373

query I rowsort
SELECT col2 + col2 + 56 FROM tab1 AS cor0
----
164
170
248

query I rowsort
SELECT ALL - - col2 * + col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5347
SELECT DISTINCT ( - col2 ) * ( + col0 ) / + col0 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT ( - col2 ) * ( + col0 ) / + col0 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * - col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + col1 + + ( ( col0 ) ) * cor0.col2 FROM tab0 AS cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 - - cor0.col1 * col0 col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL - 59 + col1 FROM tab0
----
27
32
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5352
SELECT + col1 DIV - 47 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5352
SELECT + col1 / - 47 AS col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT - col0 + 57 - - col0 * col2 FROM tab0 AS cor0
----
57
7266
825

query I rowsort
SELECT - + cor0.col1 * + 33 + + 0 AS col1 FROM tab1 AS cor0
----
-330
-429
-858

onlyif mysql # use DIV operator for integer division
query I rowsort label-5355
SELECT - col0 + + ( col1 ) DIV col0 FROM tab0 AS cor0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-5355
SELECT - col0 + + ( col1 ) / col0 FROM tab0 AS cor0
----
-21
-33
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5356
SELECT - col2 * CAST( - 71 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2343
5822
71

skipif mysql # not compatible
query I rowsort label-5356
SELECT - col2 * CAST ( - 71 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2343
5822
71

query I rowsort
SELECT + tab0.col2 + - col1 FROM tab0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5358
SELECT - + col0 DIV col2 + + col0 AS col0 FROM tab1 cor0
----
3
63
80

skipif mysql # not compatible
query I rowsort label-5358
SELECT - + col0 / col2 + + col0 AS col0 FROM tab1 cor0
----
3
63
80

query I rowsort
SELECT cor0.col0 * col2 * col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-5360
SELECT - - col2 * col1 + col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
2839
7462
97

skipif mysql # not compatible
query I rowsort label-5360
SELECT - - col2 * col1 + col2 / + col0 AS col1 FROM tab0 AS cor0
----
2839
7462
97

query I rowsort
SELECT col2 * 56 AS col0 FROM tab1
----
3024
3192
5376

query I rowsort
SELECT DISTINCT col0 * 79 FROM tab2
----
553
6162
6241

query I rowsort
SELECT ALL + 91 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT + col0 * + col1 * - col1 AS col1 FROM tab2 cor0
----
-22831
-271518
-6727

query I rowsort
SELECT - col2 * ( - col2 ) FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT ( + col1 ) AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT col2 + - col1 * ( col2 ) * - col2 + col1 * 6 FROM tab1
----
119982
32607
76026

query I rowsort
SELECT 64 + - col0 - ( + cor0.col2 * - col0 ) AS col0 FROM tab2 AS cor0
----
2014
246
2987

onlyif mysql # use DIV operator for integer division
query I rowsort label-5369
SELECT DISTINCT - 13 DIV col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT - 13 / col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 89 + col1 * col1 + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
1709
4926
846

skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 + col2 * CAST ( 12 AS REAL ) FROM tab2 AS cor0
----
286
297
418

query I rowsort
SELECT ALL + col2 * cor0.col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + 95 * col0 AS col0 FROM tab0
----
2280
3325
8455

query I rowsort
SELECT + col2 * + col2 + col0 * + col1 * 15 AS col1 FROM tab1 AS cor0
----
12849
24816
4086

query I rowsort
SELECT 15 * col1 - cor0.col2 AS col2 FROM tab0 AS cor0
----
1257
1283
1454

query I rowsort
SELECT - - col2 + - col0 AS col1 FROM tab2 cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5377
SELECT + CAST( - col1 AS SIGNED ) * col0 * col0 + col1 FROM tab0 AS cor0
----
-118728
-49450
-720720

skipif mysql # not compatible
query I rowsort label-5377
SELECT + CAST ( - col1 AS INTEGER ) * col0 * col0 + col1 FROM tab0 AS cor0
----
-118728
-49450
-720720

query I rowsort
SELECT col1 * - 64 AS col0 FROM tab1 AS cor0
----
-1664
-640
-832

query I rowsort
SELECT - - col2 + 80 * + col1 FROM tab1 AS cor0
----
1136
2134
857

query I rowsort
SELECT ALL 19 AS col2 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT - - col1 + + cor0.col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - 64 * - col0 FROM tab2 AS cor0
----
448
4992
5056

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5383
SELECT + col0 * CAST( col0 * col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
106097
1519
358956

skipif mysql # not compatible
query I rowsort label-5383
SELECT + col0 * CAST ( col0 * col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
106097
1519
358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT - ( cor0.col0 * 31 + 78 ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d7aeb07170cf3e34af7b527155da0a6d

query I rowsort
SELECT ALL - col0 * + 33 FROM tab0
----
-1155
-2937
-792

query I rowsort
SELECT DISTINCT + + 9 FROM tab1, tab0, tab2 AS cor0, tab2
----
9

query I rowsort
SELECT DISTINCT + col2 - + 87 * col1 FROM tab0 AS cor0
----
-7449
-7835
-8438

query I rowsort
SELECT - col1 * - col1 - cor0.col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT ALL ( + cor0.col0 ) + col1 * 13 + col2 AS col0 FROM tab1 AS cor0
----
251
345
395

query I rowsort
SELECT ALL - - ( 83 ) * col2 AS col2 FROM tab0 cor0
----
2739
6806
83

query I rowsort
SELECT DISTINCT + 73 FROM tab1 AS cor0
----
73

query I rowsort
SELECT DISTINCT - ( col1 ) * col1 * - col2 AS col2 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT 74 - + cor0.col0 AS col2 FROM tab0 AS cor0
----
-15
39
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT + col0 * - col1 * + col1 + col2 * - col2 * col1 AS col0 FROM tab1 AS cor0
----
-133328
-38890
-77844

query I rowsort
SELECT ALL - - col0 + 21 AS col2 FROM tab0 AS cor0
----
110
45
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + 57 AS col0 FROM tab1, tab2 AS cor0
----
57

query I rowsort
SELECT DISTINCT + 49 + + col2 AS col1 FROM tab0 AS cor0
----
131
50
82

query I rowsort
SELECT - 28 + col0 AS col2 FROM tab0 AS cor0
----
-4
61
7

query I rowsort
SELECT DISTINCT + col2 + - col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL + col1 * + 92 AS col2 FROM tab2 AS cor0
----
1564
2852
5428

onlyif mysql # use DIV operator for integer division
query I rowsort label-5404
SELECT ALL - + 80 DIV - col0 FROM tab0 cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL - + 80 / - col0 FROM tab0 cor0
----
0
2
3

query I rowsort
SELECT - col0 * - col1 - + 54 AS col0 FROM tab0
----
2010
3341
8045

query I rowsort
SELECT col1 * 21 FROM tab2
----
1239
357
651

query I rowsort
SELECT 61 * col1 + col0 FROM tab1
----
1589
674
873

onlyif mysql # use DIV operator for integer division
query I rowsort label-5408
SELECT ALL tab1.col1 * col0 - col2 DIV 85 AS col1 FROM tab1
----
1039
640
78

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL tab1.col1 * col0 - col2 / 85 AS col1 FROM tab1
----
1039
640
78

query I rowsort
SELECT DISTINCT 11 + + col2 - - col0 FROM tab1
----
132
187
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5410
SELECT - CAST( NULL AS SIGNED ) + + 3 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5410
SELECT - CAST ( NULL AS INTEGER ) + + 3 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 25 ) * col2 FROM tab1
----
1350
1425
2400

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) FROM tab2, tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5414
SELECT DISTINCT - - 43 DIV - cor0.col0 AS col0 FROM tab2 cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT - - 43 / - cor0.col0 AS col0 FROM tab2 cor0
----
-6
0

query I rowsort
SELECT ( cor0.col2 ) * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + 67 + col1 AS col1 FROM tab2
----
126
84
98

query I rowsort
SELECT - col1 * + col0 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT cor0.col2 - 64 * tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to e05c76cfa571645a09cc03dace5598e2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5419
SELECT DISTINCT 90 DIV + tab0.col1 + tab0.col2 * 62 AS col0 FROM tab0
----
2047
5084
62

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT 90 / + tab0.col1 + tab0.col2 * 62 AS col0 FROM tab0
----
2047
5084
62

query I rowsort
SELECT ALL - col2 * + 43 FROM tab0 AS cor0
----
-1419
-3526
-43

query I rowsort
SELECT ( tab0.col2 + 10 * col1 ) AS col0 FROM tab0
----
893
971
992

query I rowsort
SELECT ALL col2 * col0 + + tab1.col2 AS col0 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL - 30 * + col1 + + col2 FROM tab2
----
-1744
-472
-903

query I rowsort
SELECT DISTINCT cor1.col2 * + cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 cor1
----
9 values hashing to 6b6947fcb54b3e9529d0c75cfb5b2d32

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab0 AS cor2, tab2
----
13122 values hashing to f4885e02dbdd25c644980a915545ee3a

query I rowsort
SELECT ALL col0 + + col2 * + 78 FROM tab1 cor0
----
4215
4510
7568

query I rowsort
SELECT DISTINCT - + col2 + - col2 AS col0 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT ALL + col1 * col1 + 56 AS col0 FROM tab2 AS cor0
----
1017
345
3537

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5429
SELECT DISTINCT - - cor0.col1 * + CAST( col2 AS SIGNED ) * + col1 AS col2 FROM tab2 AS cor0
----
10982
25947
90506

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT - - cor0.col1 * + CAST ( col2 AS INTEGER ) * + col1 AS col2 FROM tab2 AS cor0
----
10982
25947
90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5430
SELECT DISTINCT + col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT + col1 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT col1 * ( + col0 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col2 * 86 FROM tab0 cor0
----
2838
7052
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-5433
SELECT + col0 DIV + ( col0 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5433
SELECT + col0 / + ( col0 ) FROM tab1 AS cor0
----
1
1
1

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0, tab2 cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5435
SELECT - cor0.col2 DIV + col0 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-5435
SELECT - cor0.col2 / + col0 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT 41 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-5437
SELECT ALL col2 DIV ( - col2 ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL col2 / ( - col2 ) FROM tab1
----
-1
-1
-1

query I rowsort
SELECT + 22 FROM tab1, tab0 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col2 + - ( + col1 ) * col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT - col0 + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5442
SELECT ALL - cor0.col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL - cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * 76 + col2 FROM tab0 cor0
----
-2475
-6150
-75

query I rowsort
SELECT 91 * col0 + col2 AS col0 FROM tab2
----
664
7124
7227

onlyif mysql # use DIV operator for integer division
query I rowsort label-5445
SELECT + col2 DIV col2 + + col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-5445
SELECT + col2 / col2 + + col2 FROM tab0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 + + col1 col1 FROM tab1
----
54
57
70

query I rowsort
SELECT - 93 AS col0 FROM tab0
----
-93
-93
-93

query I rowsort
SELECT ALL + 55 FROM tab0, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 89 + col2 * - col2 AS REAL ) FROM tab0
----
-1000
-6635
88

query I rowsort
SELECT - 5 AS col0 FROM tab2
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - + 57 AS col2 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT ALL - ( - 88 ) * + col0 * - col1 FROM tab0 AS cor0
----
-181632
-298760
-712712

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5453
SELECT CAST( - col2 * col2 AS SIGNED ) FROM tab2
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-5453
SELECT CAST ( - col2 * col2 AS INTEGER ) FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT col2 * ( col0 ) + 86 FROM tab0
----
121
7384
878

query I rowsort
SELECT ALL col1 + - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + cor0.col1 * - col0 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL + col2 * col0 + - 68 + + 32 FROM tab0 AS cor0
----
-1
7262
756

query I rowsort
SELECT DISTINCT col1 + cor0.col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT col0 * - col0 - 10 FROM tab0 AS cor0
----
-1235
-586
-7931

query I rowsort
SELECT col1 + col1 - - col2 FROM tab1 cor0
----
106
122
77

query I rowsort
SELECT + col1 + col1 + + 80 * - col2 FROM tab1 AS cor0
----
-4268
-4540
-7654

query I rowsort
SELECT DISTINCT col1 + - col2 * ( - col0 ) FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-5463
SELECT - + 26 DIV + col2 - col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5463
SELECT - + 26 / + col2 - col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - + col0 + col0 * ( + col0 ) FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT DISTINCT + col1 + cor0.col0 * + col2 * col1 + col0 * col2 FROM tab1 AS cor0
----
107533
40138
4400

query I rowsort
SELECT ALL + 27 FROM tab1 cor0
----
27
27
27

query I rowsort
SELECT + cor0.col2 - col1 * - col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT col1 * - col2 * + 53 + 40 AS col0 FROM tab2 AS cor0
----
-34198
-44321
-81262

query I rowsort
SELECT DISTINCT 33 + col0 AS col2 FROM tab0 AS cor0
----
122
57
68

query I rowsort
SELECT ALL - 23 - col1 FROM tab0 AS cor0
----
-109
-114
-120

query I rowsort
SELECT + col1 * col0 + 13 FROM tab1 AS cor0
----
1053
653
91

query I rowsort
SELECT ALL tab0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT - 86 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-86

query I rowsort
SELECT ALL ( - tab1.col1 ) FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - col0 * - cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col1 * col2 + col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - col2 * cor0.col2 + - 3 * - col1 AS col2 FROM tab1 AS cor0
----
-2838
-3219
-9177

query I rowsort
SELECT - - col2 + + cor0.col2 * col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - col1 * cor0.col0 - col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT + col2 + cor0.col1 * - ( col1 + 43 ) FROM tab2 AS cor0
----
-2267
-5992
-982

query I rowsort
SELECT cor0.col1 + - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-5482
SELECT ALL + - col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL + - col2 / + col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5483
SELECT col1 DIV + tab0.col2 AS col1 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-5483
SELECT col1 / + tab0.col2 AS col1 FROM tab0
----
1
2
97

query I rowsort
SELECT + - col0 - 10 FROM tab0 cor0
----
-34
-45
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-5485
SELECT DISTINCT + col2 * + ( - col1 ) + + col2 DIV 74 AS col0 FROM tab0 AS cor0
----
-2838
-7461
-97

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT + col2 * + ( - col1 ) + + col2 / 74 AS col0 FROM tab0 AS cor0
----
-2838
-7461
-97

query I rowsort
SELECT + ( 45 ) * col2 AS col1 FROM tab1 cor0
----
2430
2565
4320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5487
SELECT + CAST( NULL AS SIGNED ) * + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT + CAST ( NULL AS INTEGER ) * + col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 - - cor0.col0 AS col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT - - col1 * + cor0.col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT col2 * 70 FROM tab2 AS cor0
----
1820
1890
2660

query I rowsort
SELECT DISTINCT + - ( 58 ) FROM tab1 AS cor0
----
-58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5492
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 * - cor0.col0 * col2 + 73 AS col1 FROM tab0 AS cor0
----
-1152
-18935
-649449

query I rowsort
SELECT + col2 + 84 * + col1 AS col0 FROM tab2 AS cor0
----
1466
2631
4982

query I rowsort
SELECT col2 * 27 + + cor0.col1 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-108
-832
380

query I rowsort
SELECT 76 AS col0 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT ALL 72 FROM tab1, tab0 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col2 * cor0.col1 FROM tab1, tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT ALL - 40 AS col2 FROM tab2, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to b10451aa7e22bfd12577dc60d18d9396

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT - col2 * col1 * - col0 IN ( col2 )
----
10
13
26

query I rowsort
SELECT DISTINCT col0 * tab0.col1 + - col0 * + tab0.col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT col0 * tab1.col1 FROM tab1 WHERE NOT - col0 NOT BETWEEN NULL AND - col1 + - col2
----

query I rowsort
SELECT - col0 + - col2 * + col2 + col0 * + col0 FROM tab1
----
-2896
-2910
783

query I rowsort
SELECT col1 + - col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + col0 - - col1 AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT tab0.col1 * + col0 + + col1 * tab0.col2 FROM tab0
----
15561
3492
4902

query I rowsort
SELECT DISTINCT - tab2.col2 - col0 * - col2 FROM tab2 WHERE NOT NULL > + col1
----

query I rowsort
SELECT tab1.col1 * + col2 AS col1 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5511
SELECT ALL + col2 DIV - col0 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL + col2 / - col0 AS col1 FROM tab0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5512
SELECT ALL col0 DIV col1 col1 FROM tab2
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL col0 / col1 col1 FROM tab2
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5513
SELECT col0 DIV col2 + + col2 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-5513
SELECT col0 / col2 + + col2 FROM tab0
----
33
36
83

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 - + col0 * col1 = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5515
SELECT ALL + col0 * tab2.col0 DIV - col1 AS col0 FROM tab2
----
-1
-103
-367

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL + col0 * tab2.col0 / - col1 AS col0 FROM tab2
----
-1
-103
-367

query I rowsort
SELECT ALL col0 + - tab1.col0 * - col0 + - col2 FROM tab1
----
-42
4103
6384

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT col1 * + col2 * col1 AS col2 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT - col2 * + col2 * col1 AS col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT ( NULL ) >= ( NULL )
----

query I rowsort
SELECT col0 + + tab2.col1 * + col1 * col2 FROM tab2
----
11061
25954
90584

query I rowsort
SELECT col0 * col2 + tab1.col2 AS col0 FROM tab1
----
216
3705
7776

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - tab2.col1 )
----

query I rowsort
SELECT col1 * col2 - + col1 FROM tab2
----
1475
629
806

query I rowsort
SELECT DISTINCT + col2 * - col1 AS col0 FROM tab1 WHERE NOT ( NULL ) IN ( col0 / - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * col2 + col0 FROM tab1
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-5528
SELECT DISTINCT col0 DIV - col2 + col2 AS col2 FROM tab0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT col0 / - col2 + col2 AS col2 FROM tab0
----
-34
33
81

query I rowsort
SELECT tab0.col0 + - tab0.col2 AS col1 FROM tab0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5530
SELECT - col0 DIV - col0 - tab0.col1 * tab0.col2 col1 FROM tab0
----
-2837
-7461
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5530
SELECT - col0 / - col0 - tab0.col1 * tab0.col2 col1 FROM tab0
----
-2837
-7461
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT + col1 + col0 * col1 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT col1 - col1 AS col1 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5534
SELECT - col0 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5534
SELECT - col0 / + col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 col0 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + cor0.col0 + - col2 AS col1 FROM tab1 cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT ALL + - col0 * 57 + + 85 * - col0 + col0 FROM tab0 AS cor0
----
-12549
-3384
-4935

query I rowsort
SELECT DISTINCT - col2 * ( ( - col0 ) ) FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 * col1 col2 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-5542
SELECT ALL cor0.col1 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL cor0.col1 / cor0.col2 AS col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT DISTINCT - col2 * + col0 + - cor0.col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT + col0 + 33 FROM tab2 AS cor0
----
111
112
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-5545
SELECT ALL col2 DIV + col0 col2 FROM tab1 AS cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL col2 / + col0 col2 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL - col1 * ( 37 ) AS col1 FROM tab2 AS cor0
----
-1147
-2183
-629

query I rowsort
SELECT ALL col0 * ( - 98 ) + - col0 FROM tab0 AS cor0
----
-2376
-3465
-8811

onlyif mysql # use DIV operator for integer division
query I rowsort label-5548
SELECT ALL + + CAST( + col0 AS SIGNED ) + col0 DIV col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL + + CAST ( + col0 AS INTEGER ) + col0 / col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT - 70 * ( - col2 ) AS col2 FROM tab2 AS cor0
----
1820
1890
2660

query I rowsort
SELECT + 13 FROM tab1 cor0
----
13
13
13

query I rowsort
SELECT ALL + col2 * col2 + cor0.col2 + col1 * + 55 FROM tab2 cor0
----
2417
2461
3947

query I rowsort
SELECT DISTINCT 57 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
57

query I rowsort
SELECT DISTINCT - - col2 + + col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + 57 + + col0 * + col2 + col1 AS col0 FROM tab2 AS cor0
----
2144
277
3076

query I rowsort
SELECT ALL - + 35 FROM tab0 AS cor0
----
-35
-35
-35

query I rowsort
SELECT DISTINCT + col0 + + col1 * + col1 FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-5557
SELECT ALL - 30 DIV col1 AS col1 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL - 30 / col1 AS col1 FROM tab2 cor0
----
-1
0
0

query I rowsort
SELECT - - cor0.col2 * col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - tab1.col0 * + col2 * col1 + + col0 FROM tab1 WHERE col2 BETWEEN ( NULL ) AND + col2 * col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5560
SELECT DISTINCT + tab1.col2 * col1 + col0 DIV col0 + col2 AS col2 FROM tab1
----
1345
1459
628

skipif mysql # not compatible
query I rowsort label-5560
SELECT DISTINCT + tab1.col2 * col1 + col0 / col0 + col2 AS col2 FROM tab1
----
1345
1459
628

onlyif mysql # use DIV operator for integer division
query I rowsort label-5561
SELECT ALL + - 7 * col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
-18
-679
-7

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL + - 7 * col1 / + col2 AS col1 FROM tab0 AS cor0
----
-18
-679
-7

query I rowsort
SELECT DISTINCT 13 AS col0 FROM tab1 AS cor0
----
13

query I rowsort
SELECT ALL + ( col1 ) FROM tab1 cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5564
SELECT - tab0.col0 + - tab0.col2 * CAST( NULL AS SIGNED ) * ( + col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT - tab0.col0 + - tab0.col2 * CAST ( NULL AS INTEGER ) * ( + col0 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( tab0.col2 ) + + 63 + col1 FROM tab0
----
161
182
236

query I rowsort
SELECT ALL + - col2 * 91 + ( col1 ) AS col1 FROM tab1 AS cor0
----
-4888
-5177
-8723

query I rowsort
SELECT ALL col1 + col2 * + col0 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5568
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + cor0.col1 + ( 20 ) AS col1 FROM tab2 AS cor0
----
37
51
79

query I rowsort
SELECT ALL - col2 - ( col2 ) * - col0 FROM tab2 cor0
----
162
2002
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 52 col2 FROM tab1 AS cor0
----
2808
2964
4992

onlyif mysql # use DIV operator for integer division
query I rowsort label-5572
SELECT DISTINCT + col0 DIV - ( 17 + col0 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT + col0 / - ( 17 + col0 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5573
SELECT col2 + col0 DIV 42 - - tab1.col0 FROM tab1
----
122
177
57

skipif mysql # not compatible
query I rowsort label-5573
SELECT col2 + col0 / 42 - - tab1.col0 FROM tab1
----
122
177
57

query I rowsort
SELECT - 43 - tab2.col1 AS col1 FROM tab2
----
-102
-60
-74

query I rowsort
SELECT ALL + tab2.col0 + + col1 AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT cor0.col1 * + tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to e8cccfbaf514cde36022d227725713e6

query I rowsort
SELECT ALL col0 * col2 + + 81 FROM tab0
----
116
7379
873

onlyif mysql # use DIV operator for integer division
query I rowsort label-5578
SELECT - col0 * col1 * col0 - - tab2.col2 DIV tab2.col0 AS col1 FROM tab2
----
-106097
-1516
-358956

skipif mysql # not compatible
query I rowsort label-5578
SELECT - col0 * col1 * col0 - - tab2.col2 / tab2.col0 AS col1 FROM tab2
----
-106097
-1516
-358956

query I rowsort
SELECT ( - 41 ) + col2 + + 82 AS col2 FROM tab1 cor0
----
137
95
98

query I rowsort
SELECT col0 - + 33 FROM tab0 AS cor0
----
-9
2
56

query I rowsort
SELECT DISTINCT - + col1 * + 84 FROM tab1 AS cor0
----
-1092
-2184
-840

query I rowsort
SELECT + 43 * + ( + col1 ) + col0 AS col2 FROM tab0 AS cor0
----
3722
4002
4206

query I rowsort
SELECT DISTINCT + col1 + - col1 * - cor0.col2 AS col2 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT + 53 * 41 - + col1 FROM tab0 AS cor0
----
2076
2082
2087

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5585
SELECT ALL - CAST( NULL AS DECIMAL ) * - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL - CAST ( NULL AS REAL ) * - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col1 ) + - col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5587
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT tab1.col0 + - col1 FROM tab1
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 col1 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 col1 FROM tab1 cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + tab1.col1 * col2 ) col0 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5592
SELECT + CAST( col0 AS SIGNED ) DIV - col1 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-5592
SELECT + CAST ( col0 AS INTEGER ) / - col1 FROM tab1
----
-6
-6
0

query I rowsort
SELECT DISTINCT col1 + - col1 * + tab0.col0 AS col2 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT col2 * + 50 FROM tab0 AS cor0
----
1650
4100
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-5595
SELECT col2 * 87 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
0
33
78

skipif mysql # not compatible
query I rowsort label-5595
SELECT col2 * 87 / cor0.col1 AS col0 FROM tab0 AS cor0
----
0
33
78

query I rowsort
SELECT - cor0.col2 * - col0 * - col1 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT col2 + - 33 AS col2 FROM tab0 AS cor0
----
-32
0
49

query I rowsort
SELECT ALL - col1 + - cor0.col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT + cor0.col0 * + cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5600
SELECT ALL cor0.col1 + CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 55 * tab0.col0 + - col1 FROM tab0
----
1234
1828
4804

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5602
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5603
SELECT ALL + 4 DIV tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL + 4 / tab0.col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT tab2.col2 + tab2.col0 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 00ff93cbcc751be1393f9e1fd72170f8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * ( - col2 ) col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + col2 * 27 AS col2 FROM tab0 AS cor0
----
2214
27
891

onlyif mysql # use DIV operator for integer division
query I rowsort label-5607
SELECT + + col0 + + 64 DIV col2 col2 FROM tab0 AS cor0
----
25
89
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5607
SELECT + + col0 + + 64 / col2 col2 FROM tab0 AS cor0
----
25
89
99

query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + cor0.col1 * 59 FROM tab2 AS cor0
----
1003
1829
3481

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 + col0 col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT col2 * col2 * 49 AS col1 FROM tab1 AS cor0
----
142884
159201
451584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT + col1 + 50 FROM tab0
----
136
141
147

query I rowsort
SELECT + col0 * - col1 + tab2.col2 AS col0 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT col1 + 40 FROM tab0
----
126
131
137

query I rowsort
SELECT 88 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT DISTINCT - 22 FROM tab0, tab1, tab0 cor0, tab2
----
-22

query I rowsort
SELECT ( cor0.col0 ) * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col0 FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT + - 35 + - col2 FROM tab2 AS cor0
----
-61
-62
-73

query I rowsort
SELECT ALL - - col0 + + cor0.col0 * ( 97 ) FROM tab1 AS cor0
----
294
6272
7840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5622
SELECT DISTINCT - - ( + col1 ) DIV - col1 col2 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT - - ( + col1 ) / - col1 col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - - 12 FROM tab1 AS cor0
----
12
12
12

query I rowsort
SELECT + ( - cor0.col1 ) + - col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT + 64 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT - col2 * - ( + 9 ) FROM tab0 AS cor0
----
297
738
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 col0 FROM tab2
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT col1 * - CAST ( + col1 AS REAL ) col0 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5629
SELECT ALL - CAST( - 78 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL - CAST ( - 78 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT + - col1 + - col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT ALL - col1 * - col0 + 86 FROM tab2 AS cor0
----
1429
303
4688

query I rowsort
SELECT + + cor0.col2 * col1 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + - cor0.col1 * - col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 * + col0 * 61 col0 FROM tab1 AS cor0
----
-249856
-390400
-549

query I rowsort
SELECT ALL + - cor0.col1 * col2 + - ( col0 ) * col2 * col2 FROM tab2 AS cor0
----
-114722
-54262
-5940

query I rowsort
SELECT + col2 + - col0 * - 75 * - 87 FROM tab2 AS cor0
----
-45648
-508924
-515437

query I rowsort
SELECT - 28 * + col1 FROM tab2 AS cor0
----
-1652
-476
-868

query I rowsort
SELECT DISTINCT - - 14 FROM tab2 cor0
----
14

query I rowsort
SELECT DISTINCT ( cor0.col0 ) * 98 AS col0 FROM tab1 AS cor0
----
294
6272
7840

query I rowsort
SELECT DISTINCT + 41 * tab0.col1 FROM tab0
----
3526
3731
3977

query I rowsort
SELECT DISTINCT ( 45 ) * col2 * + col1 FROM tab2
----
29070
37665
69030

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5642
SELECT CAST( NULL AS SIGNED ) * tab0.col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5642
SELECT CAST ( NULL AS INTEGER ) * tab0.col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 col0 FROM tab2
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 11 col0 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT + cor0.col0 + col0 * - 65 * col0 FROM tab2 AS cor0
----
-3178
-395382
-405586

query I rowsort
SELECT DISTINCT + 14 FROM tab0 cor0
----
14

query I rowsort
SELECT 90 * + col1 AS col0 FROM tab1
----
1170
2340
900

query I rowsort
SELECT 73 * + col1 AS col0 FROM tab0 AS cor0
----
6278
6643
7081

query I rowsort
SELECT col2 * col1 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + 52 AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT - + ( + col1 ) * + col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + col1 * ( col2 ) + + col2 * - col0 FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT ALL - col0 * col0 * + col0 AS col0 FROM tab0 cor0
----
-13824
-42875
-704969

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to b050f98b2d07c1b092b73ecf6b5b347c

query I rowsort
SELECT - col0 * - 92 FROM tab1
----
276
5888
7360

query I rowsort
SELECT ALL col1 + + col2 + + tab0.col1 FROM tab0
----
195
205
264

query I rowsort
SELECT + 68 * - col1 FROM tab2 AS cor0
----
-1156
-2108
-4012

query I rowsort
SELECT + 76 * + col2 FROM tab2
----
1976
2052
2888

query I rowsort
SELECT DISTINCT + col2 + + tab2.col1 + + tab2.col2 AS col2 FROM tab2
----
111
85
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5660
SELECT DISTINCT CAST( NULL AS DECIMAL ) * ( col0 ) + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT CAST ( NULL AS REAL ) * ( col0 ) + col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col2 + 10 FROM tab0
----
-23
-72
9

query I rowsort
SELECT ALL + ( - col1 ) + col0 + col2 FROM tab1
----
111
163
31

query I rowsort
SELECT ALL - col1 + + col0 * col1 FROM tab2
----
1326
186
4543

query I rowsort
SELECT - col1 * col0 * col2 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to e6082e644debd74dcf1042b918d79199

query I rowsort
SELECT DISTINCT 90 + + 70 FROM tab2 AS cor0
----
160

query I rowsort
SELECT + + cor0.col1 + 76 AS col1 FROM tab0 cor0
----
162
167
173

query I rowsort
SELECT - cor1.col1 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT 34 * + 55 + col1 FROM tab0
----
1956
1961
1967

onlyif mysql # use DIV operator for integer division
query I rowsort label-5670
SELECT DISTINCT - col1 DIV - 41 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT - col1 / - 41 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - 87 * + col0 + col1 AS col1 FROM tab0 AS cor0
----
-2002
-2948
-7652

query I rowsort
SELECT 86 AS col0 FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT ALL + ( - col2 ) + col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * - cor0.col0 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-5675
SELECT - col2 * 28 + - col0 DIV - 26 AS col1 FROM tab0 AS cor0
----
-2293
-27
-924

skipif mysql # not compatible
query I rowsort label-5675
SELECT - col2 * 28 + - col0 / - 26 AS col1 FROM tab0 AS cor0
----
-2293
-27
-924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 67 * + ( col1 ) col1 FROM tab2 AS cor0
----
1139
2077
3953

query I rowsort
SELECT ALL - 66 + - col1 FROM tab0 AS cor0
----
-152
-157
-163

query I rowsort
SELECT + + 16 + + 69 AS col1 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT + col0 * 67 FROM tab2
----
469
5226
5293

query I rowsort
SELECT + 66 FROM tab0, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 + tab1.col0 col2 FROM tab1
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-5682
SELECT - tab1.col1 DIV 29 FROM tab1, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5682
SELECT - tab1.col1 / 29 FROM tab1, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - 14 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc

onlyif mysql # use DIV operator for integer division
query I rowsort label-5684
SELECT ALL - 70 DIV col2 AS col0 FROM tab0
----
-2
-70
0

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL - 70 / col2 AS col0 FROM tab0
----
-2
-70
0

query I rowsort
SELECT - + col2 + + col0 AS col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT - cor0.col1 * col2 * 93 AS col2 FROM tab0 AS cor0
----
-263934
-693966
-9021

query I rowsort
SELECT - 93 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-7998
-8463
-9021

query I rowsort
SELECT ALL + - col2 * - col1 + - ( + col0 ) FROM tab2 cor0
----
1456
567
830

query I rowsort
SELECT - col1 + + ( col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + - ( col2 ) * + col2 AS col1 FROM tab2 AS cor0
----
-1523
-736
-754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col2 col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT 48 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT col1 * + ( + col2 ) + - col2 + + 81 * + col2 FROM tab1
----
5130
5724
8928

query I rowsort
SELECT ALL - col2 + ( + cor0.col2 ) * col1 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT ALL - 35 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b

query I rowsort
SELECT ALL + col0 * col0 * + col2 + + col2 AS col2 FROM tab1 AS cor0
----
233529
540
614496

query I rowsort
SELECT DISTINCT + col1 + - col1 - + col0 * col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col0 + - 91 FROM tab0 AS cor0
----
-115
-126
-180

query I rowsort
SELECT ALL - cor0.col0 * col2 FROM tab2 cor0
----
-189
-2028
-3002

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 0cc433e09ad9e61562b7840dd1db6f57

query I rowsort
SELECT DISTINCT cor0.col0 + col2 * - col1 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5703
SELECT ALL + CAST( col1 AS SIGNED ) * col0 - - 21 * + 39 * col1 AS col2 FROM tab2 AS cor0
----
15266
25606
52923

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL + CAST ( col1 AS INTEGER ) * col0 - - 21 * + 39 * col1 AS col2 FROM tab2 AS cor0
----
15266
25606
52923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) + - cor0.col0 col0 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) * col2 col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5706
SELECT DISTINCT + CAST( + 60 AS SIGNED ) * col0 * col0 + - cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
33984
467339
72275

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT + CAST ( + 60 AS INTEGER ) * col0 * col0 + - cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
33984
467339
72275

query I rowsort
SELECT DISTINCT + 49 * + 14 + col1 FROM tab0 AS cor0
----
772
777
783

query I rowsort
SELECT ALL + col2 * 43 FROM tab1 AS cor0
----
2322
2451
4128

query I rowsort
SELECT col0 + 21 AS col1 FROM tab2 AS cor0
----
100
28
99

query I rowsort
SELECT DISTINCT + 71 * - 55 + col1 FROM tab2 AS cor0
----
-3846
-3874
-3888

query I rowsort
SELECT DISTINCT + col2 - - col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5712
SELECT col2 + tab2.col1 + tab2.col0 DIV tab2.col0 FROM tab2
----
56
59
86

skipif mysql # not compatible
query I rowsort label-5712
SELECT col2 + tab2.col1 + tab2.col0 / tab2.col0 FROM tab2
----
56
59
86

query I rowsort
SELECT + col0 * + col0 - - 67 * - col2 AS col1 FROM tab1
----
-32
-3609
277

query I rowsort
SELECT ALL + col1 - + tab0.col0 FROM tab0
----
2
62
62

query I rowsort
SELECT - - ( + cor0.col1 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 col0 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 68 * + col2 - col1 * + col0 col0 FROM tab0 AS cor0
----
-13675
-3463
-4308

query I rowsort
SELECT ALL col2 + col0 * col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - + col2 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT 76 + col2 FROM tab0 AS cor0
----
109
158
77

query I rowsort
SELECT DISTINCT + + col1 * cor0.col2 + col2 + + 43 AS col2 FROM tab1 AS cor0
----
1387
1501
670

query I rowsort
SELECT ALL - col2 - - col0 * - 65 FROM tab2 AS cor0
----
-482
-5096
-5173

query I rowsort
SELECT col0 * col2 * col1 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT col1 * + col0 * col2 AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + col2 * - 90 FROM tab0 AS cor0
----
-2970
-7380
-90

query I rowsort
SELECT ALL - 39 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab2, tab2 AS cor0
----
22

query I rowsort
SELECT DISTINCT + - 85 * - 56 FROM tab0 AS cor0
----
4760

query I rowsort
SELECT ALL col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5730
SELECT + - cor0.col2 + - col0 DIV + col0 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-5730
SELECT + - cor0.col2 + - col0 / + col0 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT DISTINCT col2 + col0 * col0 - col0 AS col2 FROM tab2 AS cor0
----
6032
6200
69

query I rowsort
SELECT + 64 * col0 AS col2 FROM tab0 AS cor0
----
1536
2240
5696

query I rowsort
SELECT DISTINCT - + col0 * - col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL ( - col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - + ( col2 ) + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col1 FROM tab0
----
31
31
31

query I rowsort
SELECT - - cor0.col1 + + col0 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ( - col1 ) + tab0.col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT 49 + tab1.col1 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 3a48e2ddf255feff4ebabfd5a5d17ec7

query I rowsort
SELECT ALL - 20 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT cor0.col1 + col0 * ( col2 + col2 * col2 ) AS col2 FROM tab2 AS cor0
----
117095
5323
54815

query I rowsort
SELECT 4 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT 59 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT ALL 1 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT DISTINCT - col2 + 58 FROM tab1 AS cor0
----
-38
1
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5746
SELECT + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + cor0.col1 * - col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + 61 FROM tab2
----
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-5749
SELECT + col0 + tab0.col1 DIV col1 col1 FROM tab0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5749
SELECT + col0 + tab0.col1 / col1 col1 FROM tab0
----
25
36
90

query I rowsort
SELECT + col2 - + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 89 * - col2 AS col0 FROM tab2
----
-2314
-2403
-3382

query I rowsort
SELECT 78 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT + 82 * col0 + + col1 * - 55 FROM tab2 AS cor0
----
-1131
3151
5543

onlyif mysql # use DIV operator for integer division
query I rowsort label-5754
SELECT - - cor0.col0 DIV 92 + + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5754
SELECT - - cor0.col0 / 92 + + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - 75 * col1 + col1 FROM tab0 cor0
----
-6364
-6734
-7178

query I rowsort
SELECT DISTINCT + 59 AS col2 FROM tab1, tab1 AS cor0
----
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5757
SELECT + tab1.col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5757
SELECT + tab1.col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab0 cor1
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f

query I rowsort
SELECT 53 * tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to e417ee815c4cd04ac3f23246807134c1

query I rowsort
SELECT + ( + col1 ) * - col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - 76 + - cor0.col2 FROM tab1 cor0
----
-130
-133
-172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) * col0 + + col0 col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - col2 + col1 - col0 FROM tab2 cor0
----
-100
-3
-45

query I rowsort
SELECT ALL tab0.col1 + 69 * - tab0.col0 FROM tab0
----
-1570
-2318
-6050

query I rowsort
SELECT + ( tab2.col0 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5766
SELECT DISTINCT col0 * CAST( col1 AS SIGNED ) DIV col0 + + col0 * col2 FROM tab2
----
2087
220
3019

skipif mysql # not compatible
query I rowsort label-5766
SELECT DISTINCT col0 * CAST ( col1 AS INTEGER ) / col0 + + col0 * col2 FROM tab2
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 + - 30 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8535c9e1e6711663c59b0ada3541f0f7

query I rowsort
SELECT DISTINCT + tab2.col1 * - col2 + - col1 * col0 AS col2 FROM tab2
----
-1054
-1989
-6136

query I rowsort
SELECT ALL 14 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT - col2 + col1 * 59 FROM tab0 AS cor0
----
5041
5287
5722

query I rowsort
SELECT DISTINCT + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + col1 * + cor0.col1 * col1 + + col0 + col1 FROM tab2 cor0
----
205516
29829
5009

query I rowsort
SELECT ALL - col1 * ( col0 ) + + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT 28 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT DISTINCT col1 * + ( col0 ) - - col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - ( col0 ) + + col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT col1 * - 32 + + cor0.col1 FROM tab0 AS cor0
----
-2666
-2821
-3007

query I rowsort
SELECT ALL + ( - col0 ) * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - col1 + cor0.col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT ALL - col1 + - col0 + cor0.col2 FROM tab1 cor0
----
-17
25
3

query I rowsort
SELECT DISTINCT - 15 AS col2 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT DISTINCT + 83 FROM tab0 AS cor0
----
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5783
SELECT - col0 * col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5783
SELECT - col0 * col0 / col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - - 79 * col0 AS col1 FROM tab1 AS cor0
----
237
5056
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col2 col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + 88 AS col1 FROM tab1 AS cor0
----
88
88
88

query I rowsort
SELECT col0 + + 49 * ( col0 ) * 95 FROM tab1
----
13968
297984
372480

query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab0, tab1 AS cor0
----
59

query I rowsort
SELECT + col1 * ( - col1 ) - + col1 AS col1 FROM tab2
----
-306
-3540
-992

query I rowsort
SELECT + col0 + 2 * tab1.col0 FROM tab1
----
192
240
9

query I rowsort
SELECT DISTINCT + 77 + - col2 FROM tab1 cor0
----
-19
20
23

query I rowsort
SELECT ALL + 81 + + 59 FROM tab0 AS cor0
----
140
140
140

query I rowsort
SELECT DISTINCT + + 36 * col2 * + col0 AS col1 FROM tab1 AS cor0
----
131328
276480
5832

query I rowsort
SELECT - col0 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL - 34 + col1 AS col2 FROM tab1 cor0
----
-21
-24
-8

query I rowsort
SELECT - col0 + col1 * col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + ( cor0.col1 ) * - col1 + col1 * col2 + col1 FROM tab1 AS cor0
----
1092
480
754

query I rowsort
SELECT DISTINCT - col1 + - col0 * + 57 FROM tab2 AS cor0
----
-430
-4505
-4520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 * ( + col1 ) col1 FROM tab2 AS cor0
----
272
3422
930

onlyif mysql # use DIV operator for integer division
query I rowsort label-5801
SELECT - 7 DIV cor0.col0 - - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5801
SELECT - 7 / cor0.col0 - - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT col2 + - col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - col1 * col2 * - ( - ( col0 ) ) FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT - col2 + + 38 AS col0 FROM tab2 AS cor0
----
0
11
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-5805
SELECT + ( col0 ) * + col0 - - col0 DIV col0 col1 FROM tab0
----
1226
577
7922

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5805
SELECT + ( col0 ) * + col0 - - col0 / col0 col1 FROM tab0
----
1226
577
7922

onlyif mysql # use DIV operator for integer division
query I rowsort label-5806
SELECT + - col0 DIV - col0 - - 49 * + col2 * + col0 FROM tab2 AS cor0
----
147099
9262
99373

skipif mysql # not compatible
query I rowsort label-5806
SELECT + - col0 / - col0 - - 49 * + col2 * + col0 FROM tab2 AS cor0
----
147099
9262
99373

query I rowsort
SELECT - col1 + 69 * col0 + col2 FROM tab1 AS cor0
----
235
4463
5603

query I rowsort
SELECT - col1 + - col2 - + ( col2 + + ( cor0.col2 ) ) FROM tab2 cor0
----
-112
-131
-137

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5809
SELECT DISTINCT - col2 + CAST( - col2 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-2054
-216
-3040

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT - col2 + CAST ( - col2 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT + - col2 * 29 * - col1 FROM tab1 AS cor0
----
16530
36192
40716

query I rowsort
SELECT ALL + + cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL col2 - tab2.col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL col1 - + col0 * - 5 * - tab0.col1 AS col1 FROM tab0
----
-10234
-16878
-40404

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + tab1.col0 - - col1 * + tab1.col0 col2 FROM tab1
----
10336
2997
3953

query I rowsort
SELECT + col1 + - 80 + - col0 * - col1 FROM tab1 AS cor0
----
24
570
973

query I rowsort
SELECT ALL col0 - + tab2.col0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * col0 + - col0 * tab0.col2 - + col0 AS col1 FROM tab0
----
1248
3325
712

query I rowsort
SELECT + cor0.col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT col1 + + tab0.col2 * 31 FROM tab0
----
1109
128
2633

query I rowsort
SELECT ALL col1 + col1 * - col2 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT + 51 FROM tab1, tab0 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT - 85 + - cor0.col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 3208a023632a375449f98721b4280b25

query I rowsort
SELECT ALL - col2 + + col1 * col2 AS col2 FROM tab0
----
2805
7380
96

query I rowsort
SELECT - col1 + - col2 * col1 FROM tab2 cor0
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT - col0 * - 91 + 28 FROM tab1 AS cor0
----
301
5852
7308

query I rowsort
SELECT ALL col0 * 12 + col0 FROM tab2 AS cor0
----
1014
1027
91

query I rowsort
SELECT col1 + 17 AS col1 FROM tab0 AS cor0
----
103
108
114

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5828
SELECT DISTINCT col0 * ( - 2 * col2 ) + CAST( NULL AS SIGNED ) * - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT col0 * ( - 2 * col2 ) + CAST ( NULL AS INTEGER ) * - col1 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5829
SELECT ( tab1.col1 ) + col2 DIV + ( col1 ) FROM tab1
----
15
20
28

skipif mysql # not compatible
query I rowsort label-5829
SELECT ( tab1.col1 ) + col2 / + ( col1 ) FROM tab1
----
15
20
28

query I rowsort
SELECT ALL - 74 * - col2 AS col2 FROM tab1 AS cor0
----
3996
4218
7104

query I rowsort
SELECT 24 * col1 + col2 FROM tab1
----
297
408
678

query I rowsort
SELECT ( 75 ) AS col1 FROM tab2
----
75
75
75

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab2, tab1 cor1
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c

query I rowsort
SELECT ALL - - ( - 74 ) + + col1 AS col0 FROM tab1 AS cor0
----
-48
-61
-64

query I rowsort
SELECT ALL - 2 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT ALL + + 4 * + col0 FROM tab2 AS cor0
----
28
312
316

query I rowsort
SELECT + ( col1 ) + tab1.col2 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT + col2 + tab1.col2 AS col0 FROM tab1
----
108
114
192

query I rowsort
SELECT + ( col2 ) * tab1.col2 * 99 + + col1 FROM tab1
----
288710
321661
912397

query I rowsort
SELECT DISTINCT - 54 * col0 * col0 FROM tab1
----
-221184
-345600
-486

query I rowsort
SELECT ALL + cor0.col2 * - col0 + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL 0 * - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT 25 FROM tab2, tab0 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5845
SELECT 51 DIV + cor0.col0 - + cor0.col0 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to cc95354c63627fb31b9ad7af622289fb

skipif mysql # not compatible
query I rowsort label-5845
SELECT 51 / + cor0.col0 - + cor0.col0 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to cc95354c63627fb31b9ad7af622289fb

query I rowsort
SELECT + 70 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT - cor0.col1 FROM tab2, tab2 cor0, tab1, tab0 AS cor1
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5

query I rowsort
SELECT + 56 + - 49 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 * col0 col1 FROM tab0
----
1536
2240
5696

query I rowsort
SELECT 3 AS col2 FROM tab2
----
3
3
3

query I rowsort
SELECT ALL + ( - col1 ) * - col0 + - col0 + + cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - 27 AS col2 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT ALL 13 + 13 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT DISTINCT - ( - 77 + tab2.col1 ) * + col0 AS col1 FROM tab2
----
1404
322
4740

query I rowsort
SELECT ALL ( + cor0.col0 ) * cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 458b4c13e6825f9686b15a38663930f4

query I rowsort
SELECT ALL 32 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5857
SELECT - + 82 + + 17 DIV - col2 FROM tab1 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-5857
SELECT - + 82 + + 17 / - col2 FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT DISTINCT + col0 * col1 + 19 FROM tab2
----
1362
236
4621

query I rowsort
SELECT - col0 + + col2 * + ( 15 ) AS col2 FROM tab0
----
-20
1141
471

query I rowsort
SELECT DISTINCT - col2 * - col2 + col1 AS col0 FROM tab0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5861
SELECT + col2 + col2 + 27 DIV 63 AS col2 FROM tab1
----
108
114
192

skipif mysql # not compatible
query I rowsort label-5861
SELECT + col2 + col2 + 27 / 63 AS col2 FROM tab1
----
108
114
192

query I rowsort
SELECT col1 * tab0.col0 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + col2 * cor0.col2 + + col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT - - 71 AS col0 FROM tab1 AS cor0
----
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5865
SELECT ALL + 41 + - col1 * CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
1384
258
4643

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL + 41 + - col1 * CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
1384
258
4643

onlyif mysql # use DIV operator for integer division
query I rowsort label-5866
SELECT ALL - col2 DIV - col1 - - 26 AS col1 FROM tab2 AS cor0
----
26
26
28

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL - col2 / - col1 - - 26 AS col1 FROM tab2 AS cor0
----
26
26
28

query I rowsort
SELECT + - col2 + + cor0.col0 * + 15 FROM tab0 AS cor0
----
1253
327
524

query I rowsort
SELECT + col0 * + 29 * + col1 + - col1 FROM tab2 AS cor0
----
133399
38930
6262

query I rowsort
SELECT - col2 * - 90 + + col0 AS col0 FROM tab1 AS cor0
----
4863
5194
8720

onlyif mysql # use DIV operator for integer division
query I rowsort label-5870
SELECT - col1 DIV col0 + 87 + col1 FROM tab0 AS cor0
----
170
177
182

skipif mysql # not compatible
query I rowsort label-5870
SELECT - col1 / col0 + 87 + col1 FROM tab0 AS cor0
----
170
177
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col1 col1 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5872
SELECT + + col2 + + CAST( - 18 AS SIGNED ) FROM tab2 AS cor0
----
20
8
9

skipif mysql # not compatible
query I rowsort label-5872
SELECT + + col2 + + CAST ( - 18 AS INTEGER ) FROM tab2 AS cor0
----
20
8
9

query I rowsort
SELECT DISTINCT - col1 + - col1 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + + col1 * 66 * - col1 FROM tab2 cor0
----
-19074
-229746
-63426

query I rowsort
SELECT + ( - col1 ) * - col2 + col0 AS col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT col2 * col2 + 55 FROM tab2
----
1499
731
784

query I rowsort
SELECT ( col0 ) * + 79 * col1 AS col0 FROM tab1
----
50560
6162
82160

query I rowsort
SELECT ALL + 52 + col2 * + 45 * col1 AS col1 FROM tab0
----
127762
335842
4417

onlyif mysql # use DIV operator for integer division
query I rowsort label-5879
SELECT + col0 + + ( - cor0.col0 ) DIV col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5879
SELECT + col0 + + ( - cor0.col0 ) / col1 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 * - col0 col2 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL col1 + - col0 AS col1 FROM tab1 WHERE NOT col2 + - col1 > - col0 + + col1 AND NULL >= NULL
----

query I rowsort
SELECT + col1 + - col1 - + col2 * - tab2.col1 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5883
SELECT DISTINCT + col1 DIV - col0 - tab1.col1 * col1 AS col1 FROM tab1
----
-100
-169
-684

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT + col1 / - col0 - tab1.col1 * col1 AS col1 FROM tab1
----
-100
-169
-684

query I rowsort
SELECT col0 * col1 + tab0.col2 * col1 * - col2 AS col1 FROM tab0
----
-603785
-91590
3298

query I rowsort
SELECT col0 * col0 * tab1.col0 AS col1 FROM tab1
----
262144
27
512000

query I rowsort
SELECT + col1 - cor0.col2 * + col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT - col2 + + col1 * col1 * col0 - cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
12384
1896
5703

query I rowsort
SELECT col0 + cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + + col2 * col2 + + col0 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT IN ( col1 ) OR NULL > + col0 / col2 - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - tab0.col1 * col0 * - col1 AS col2 FROM tab0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-5893
SELECT col2 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5893
SELECT col2 / - col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 col0 FROM tab1 cor0
----
7
7
7

query I rowsort
SELECT + col2 + - col2 * col2 AS col1 FROM tab1 cor0
----
-2862
-3192
-9120

query I rowsort
SELECT 38 AS col0 FROM tab2
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + tab2.col0 ) * col2 col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ( 58 ) AS col2 FROM tab1
----
58
58
58

query I rowsort
SELECT 6 + - col2 FROM tab0
----
-27
-76
5

query I rowsort
SELECT DISTINCT - tab2.col1 * col0 AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT col1 * col1 * tab1.col2 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT + 62 * col1 FROM tab1 AS cor0
----
1612
620
806

query I rowsort
SELECT + 68 AS col1 FROM tab1 cor0
----
68
68
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + tab1.col0 col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL - 18 FROM tab0
----
-18
-18
-18

onlyif mysql # use DIV operator for integer division
query I rowsort label-5906
SELECT ALL ( col2 ) - + col1 DIV tab1.col2 AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL ( col2 ) - + col1 / tab1.col2 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT - col2 - col1 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT + 0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - ( - col0 ) - + tab0.col0 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 * tab0.col1 - tab0.col0 FROM tab0
----
7372
8192
9374

query I rowsort
SELECT ALL col0 * 93 FROM tab0
----
2232
3255
8277

onlyif mysql # use DIV operator for integer division
query I rowsort label-5912
SELECT + 88 * ( + col2 ) + col2 DIV - col2 FROM tab1 AS cor0
----
4751
5015
8447

skipif mysql # not compatible
query I rowsort label-5912
SELECT + 88 * ( + col2 ) + col2 / - col2 FROM tab1 AS cor0
----
4751
5015
8447

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 + col2 col1 FROM tab2 AS cor0
----
119
120
131

query I rowsort
SELECT + 68 * tab1.col0 AS col2 FROM tab1
----
204
4352
5440

query I rowsort
SELECT DISTINCT cor0.col2 * - 38 FROM tab0, tab2, tab2 AS cor0
----
-1026
-1444
-988

query I rowsort
SELECT col2 * + col0 + + col1 + 28 FROM tab2
----
2115
248
3047

query I rowsort
SELECT - ( col0 ) + col1 AS col0 FROM tab0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5918
SELECT + col2 DIV + col1 AS col0 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5918
SELECT + col2 / + col1 AS col0 FROM tab1 AS cor0
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5919
SELECT DISTINCT - 0 DIV - col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT - 0 / - col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - ( + col2 ) * 86 AS col2 FROM tab0 AS cor0
----
-2838
-7052
-86

query I rowsort
SELECT - cor0.col0 + + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5922
SELECT DISTINCT col1 * col0 * - 43 + tab2.col0 * tab2.col0 + CAST( NULL AS SIGNED ) * - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT col1 * col0 * - 43 + tab2.col0 * tab2.col0 + CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5923
SELECT DISTINCT + col1 + col2 DIV tab2.col1 + - 81 FROM tab2
----
-22
-50
-62

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT + col1 + col2 / tab2.col1 + - 81 FROM tab2
----
-22
-50
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5924
SELECT - col2 DIV col1 + col2 * - col2 + - col0 AS col1 FROM tab0
----
-1113
-36
-6813

skipif mysql # not compatible
query I rowsort label-5924
SELECT - col2 / col1 + col2 * - col2 + - col0 AS col1 FROM tab0
----
-1113
-36
-6813

query I rowsort
SELECT + col2 * - col1 + + col0 AS col1 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT + + 63 * col1 * cor0.col2 + col0 FROM tab1 AS cor0
----
35974
78704
88455

query I rowsort
SELECT ALL col0 - cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - 37 * col0 + ( col0 * + col2 + - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
1216
4640
48

query I rowsort
SELECT ALL + col0 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + 74 * col0 AS col1 FROM tab1 AS cor0
----
222
4736
5920

query I rowsort
SELECT - cor0.col0 * + col2 + + col1 * col0 FROM tab1 cor0
----
-3008
-6640
-84

query I rowsort
SELECT DISTINCT cor0.col0 * col0 + + 22 * col0 AS col1 FROM tab0 AS cor0
----
1104
1995
9879

query I rowsort
SELECT ALL - col2 * - col2 AS col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT 27 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
116
51
62

query I rowsort
SELECT ALL + - 28 * - col0 * + 37 + cor0.col1 FROM tab1 AS cor0
----
3134
66314
82893

query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - - col2 + col0 AS col1 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + - cor0.col2 col2 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT - - col0 * col0 + ( - col1 ) FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT 91 FROM tab2, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5941
SELECT col0 * CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-5941
SELECT col0 * CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - col1 + + ( col0 ) AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT col1 + + col1 * ( - col2 * + col2 ) AS col1 FROM tab1 AS cor0
----
-119795
-32480
-75790

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5944
SELECT ALL col2 * CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL col2 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - - col0 + + col1 * - 38 FROM tab2 cor0
----
-1171
-2164
-567

query I rowsort
SELECT + col1 * - 56 - col2 FROM tab2 AS cor0
----
-1763
-3330
-990

query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT 16 * cor0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 001e088ec841b6540fea17904ebc7440

onlyif mysql # use DIV operator for integer division
query I rowsort label-5949
SELECT ALL - 9 + col2 + + col0 DIV + col0 FROM tab0 AS cor0
----
-7
25
74

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL - 9 + col2 + + col0 / + col0 FROM tab0 AS cor0
----
-7
25
74

query I rowsort
SELECT ( ( col0 ) ) + col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + 30 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5952
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 / col1 - 90 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5952
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 / col1 - 90 AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT 73 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT DISTINCT - cor0.col1 * col2 + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + col0 * col1 * - col2 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + + 60 + col2 AS col0 FROM tab2 cor0
----
86
87
98

query I rowsort
SELECT ALL col1 + - ( + col0 ) FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + col2 * col2 - + col0 AS col0 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT - 33 FROM tab0 cor0
----
-33
-33
-33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5960
SELECT - col1 + - CAST( - col2 AS SIGNED ) * + col2 FROM tab0
----
-96
1003
6633

skipif mysql # not compatible
query I rowsort label-5960
SELECT - col1 + - CAST ( - col2 AS INTEGER ) * + col2 FROM tab0
----
-96
1003
6633

query I rowsort
SELECT cor0.col2 * - 67 FROM tab2 cor0
----
-1742
-1809
-2546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5962
SELECT DISTINCT + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5962
SELECT DISTINCT + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5963
SELECT ALL - CAST( col1 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL - CAST ( col1 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5964
SELECT CAST( 2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5964
SELECT CAST ( 2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5965
SELECT ALL CAST( - col0 AS SIGNED ) + + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-5965
SELECT ALL CAST ( - col0 AS INTEGER ) + + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5966
SELECT CAST( NULL AS SIGNED ) * ( - cor0.col1 ) * 6 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5966
SELECT CAST ( NULL AS INTEGER ) * ( - cor0.col1 ) * 6 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5967
SELECT - col2 DIV cor0.col0 col2 FROM tab2 cor0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5967
SELECT - col2 / cor0.col0 col2 FROM tab2 cor0
----
-3
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5968
SELECT ( col1 ) DIV col0 - 1 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5968
SELECT ( col1 ) / col0 - 1 FROM tab0
----
0
1
2

query I rowsort
SELECT - col0 - cor0.col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT 90 - + col1 FROM tab0 cor0
----
-1
-7
4

query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab1, tab0 cor0
----
49

query I rowsort
SELECT - + cor0.col1 * 12 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 167f6d70893ba96d936c6dea5da3dcb0

query I rowsort
SELECT - + col2 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-5974
SELECT - - col0 * cor0.col0 DIV col1 FROM tab1 AS cor0
----
0
409
492

skipif mysql # not compatible
query I rowsort label-5974
SELECT - - col0 * cor0.col0 / col1 FROM tab1 AS cor0
----
0
409
492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 87 + 87 col2 FROM tab2 AS cor0
----
-2175
-2262
-3219

query I rowsort
SELECT DISTINCT + - col0 + - col0 * + col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT col1 * - ( col0 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 + 84 col2 FROM tab1, tab0 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL col2 * + ( col0 ) * + tab1.col0 AS col0 FROM tab1
----
233472
486
614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL col1 * - ( + col1 ) * + col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT + 36 + + cor0.col1 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 72d6a131bb9b529973ebdb90c0f7ce31

query I rowsort
SELECT DISTINCT col0 * - ( + 50 ) + col0 AS col1 FROM tab2 AS cor0
----
-343
-3822
-3871

query I rowsort
SELECT ALL + + col0 * ( 58 ) AS col0 FROM tab2 AS cor0
----
406
4524
4582

query I rowsort
SELECT col2 + 32 FROM tab1 AS cor0
----
128
86
89

query I rowsort
SELECT - - col1 * - 73 FROM tab0 AS cor0
----
-6278
-6643
-7081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5988
SELECT + col1 + CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5988
SELECT + col1 + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - tab2.col1 + col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT DISTINCT + col2 + + col2 * + col0 FROM tab1
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-5991
SELECT DISTINCT col1 + col1 DIV col0 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT col1 + col1 / col0 FROM tab1
----
10
13
34

query I rowsort
SELECT - 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 - + cor0.col2 + col2 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * - col2 + 50 FROM tab0 AS cor0
----
-2788
-47
-7412

query I rowsort
SELECT - 19 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

query I rowsort
SELECT + col0 + col2 * + ( col0 ) + - col2 FROM tab1 AS cor0
----
111
3655
7664

query I rowsort
SELECT ( - 87 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # use DIV operator for integer division
query I rowsort label-5998
SELECT ALL + 62 DIV - col1 AS col1 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL + 62 / - col1 AS col1 FROM tab2
----
-1
-2
-3

query I rowsort
SELECT 8 + tab0.col2 * + col1 AS col1 FROM tab0
----
105
2846
7470

query I rowsort
SELECT + + 3 * - cor0.col2 + col1 + col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-1
6065
6144

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6001
SELECT DISTINCT - - col0 + col2 * - CAST( cor0.col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif mysql # not compatible
query I rowsort label-6001
SELECT DISTINCT - - col0 + col2 * - CAST ( cor0.col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-6002
SELECT ALL col0 DIV - 83 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL col0 / - 83 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 11 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT 50 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT col0 * col2 + ( tab1.col2 ) * - col1 FROM tab1
----
-1242
3078
6432

query I rowsort
SELECT 74 + - col0 AS col1 FROM tab2 AS cor0
----
-4
-5
67

query I rowsort
SELECT + - cor0.col1 + + cor0.col2 + col0 FROM tab0 AS cor0
----
-29
-61
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6008
SELECT - col0 DIV 77 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6008
SELECT - col0 / 77 AS col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT + col0 - col2 AS col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT tab2.col0 * tab2.col2 + col1 + + tab2.col1 FROM tab2
----
2146
251
3036

query I rowsort
SELECT DISTINCT col2 + col0 + col0 FROM tab0
----
260
71
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6012
SELECT ALL col1 + + CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL col1 + + CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + col1 + cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - col1 * 37 + col0 - + col1 AS col1 FROM tab2 AS cor0
----
-1171
-2164
-567

query I rowsort
SELECT + col2 + col0 * col0 + - col1 FROM tab0 AS cor0
----
1129
523
7912

onlyif mysql # use DIV operator for integer division
query I rowsort label-6016
SELECT col0 DIV + 75 + 5 - col2 * col1 FROM tab2 AS cor0
----
-1528
-640
-832

skipif mysql # not compatible
query I rowsort label-6016
SELECT col0 / + 75 + 5 - col2 * col1 FROM tab2 AS cor0
----
-1528
-640
-832

query I rowsort
SELECT - ( - 40 ) FROM tab1
----
40
40
40

query I rowsort
SELECT - col1 * + cor0.col2 * col0 + + 0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - 25 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT DISTINCT - ( - ( - col0 ) + tab0.col0 ) AS col1 FROM tab0
----
-178
-48
-70

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to c670882ff9ea3f0bb08fc55ec569be96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col0 AS REAL ) col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + 35 FROM tab2 AS cor0
----
35
35
35

query I rowsort
SELECT DISTINCT col2 + cor0.col0 * 13 FROM tab1 cor0
----
1136
889
93

query I rowsort
SELECT ALL - col2 + - cor0.col2 * + col0 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT + - cor0.col1 * col0 * - col0 FROM tab2 cor0
----
106097
1519
358956

query I rowsort
SELECT + col1 + + col1 * col0 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-6028
SELECT + ( col2 ) DIV + col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6028
SELECT + ( col2 ) / + col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT ( + col2 ) FROM tab0
----
1
33
82

query I rowsort
SELECT ALL 33 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT - col1 * - col2 + col1 * - col2 * 42 AS col1 FROM tab2 AS cor0
----
-26486
-34317
-62894

query I rowsort
SELECT DISTINCT + - cor0.col0 - - ( + col0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 11 * + ( - col2 ) AS col1 FROM tab2 cor0
----
286
297
418

query I rowsort
SELECT ALL + + 96 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT ALL - cor0.col2 + 0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - + 12 AS col0 FROM tab2 AS cor0
----
-12
-12
-12

query I rowsort
SELECT col2 + 32 AS col1 FROM tab0
----
114
33
65

query I rowsort
SELECT + ( col0 ) AS col0 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6039
SELECT ( - 67 ) DIV col2 FROM tab0
----
-2
-67
0

skipif mysql # not compatible
query I rowsort label-6039
SELECT ( - 67 ) / col2 FROM tab0
----
-2
-67
0

query I rowsort
SELECT DISTINCT - ( + col1 * col2 ) - ( - col2 ) * col0 * tab1.col0 AS col2 FROM tab1
----
-918
232902
613152

query I rowsort
SELECT ALL + col0 - tab2.col2 AS col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL - col1 * - 19 - + tab0.col2 AS col0 FROM tab0
----
1601
1647
1842

query I rowsort
SELECT DISTINCT + col1 - + 92 FROM tab1
----
-66
-79
-82

query I rowsort
SELECT DISTINCT + 99 - col0 FROM tab1
----
19
35
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 col2 FROM tab2
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6046
SELECT - 84 - - col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-6046
SELECT - 84 - - col0 / col0 AS col0 FROM tab0 AS cor0
----
-83
-83
-83

query I rowsort
SELECT ALL + ( - col1 ) * - col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - ( - col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6049
SELECT + ( - col2 ) DIV - col1 + col1 AS col0 FROM tab2
----
19
31
59

skipif mysql # not compatible
query I rowsort label-6049
SELECT + ( - col2 ) / - col1 + col1 AS col0 FROM tab2
----
19
31
59

query I rowsort
SELECT - ( col0 + col1 ) * col2 FROM tab1
----
-1566
-4218
-8928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6051
SELECT DISTINCT CAST( - 45 AS SIGNED ) * col1 * + col1 + + ( col1 ) * - col0 * - 93 AS col0 FROM tab1
----
-23166
55020
89115

skipif mysql # not compatible
query I rowsort label-6051
SELECT DISTINCT CAST ( - 45 AS INTEGER ) * col1 * + col1 + + ( col1 ) * - col0 * - 93 AS col0 FROM tab1
----
-23166
55020
89115

query I rowsort
SELECT ALL - - col1 + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6054
SELECT + col1 DIV + cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-6054
SELECT + col1 / + cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
18
32
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 76 col0 FROM tab1 AS cor0
----
228
4864
6080

query I rowsort
SELECT + cor1.col1 - + 8 * cor1.col0 * cor0.col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 5846eb48d7a58525721f63472fb2f44e

query I rowsort
SELECT DISTINCT + tab1.col1 * - tab1.col0 + + col1 AS col2 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT ALL - 11 + - col2 AS col0 FROM tab1
----
-107
-65
-68

query I rowsort
SELECT ALL - 82 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6060
SELECT cor0.col1 + ( + col1 ) DIV col0 FROM tab1 AS cor0
----
10
13
34

skipif mysql # not compatible
query I rowsort label-6060
SELECT cor0.col1 + ( + col1 ) / col0 FROM tab1 AS cor0
----
10
13
34

query I rowsort
SELECT DISTINCT col1 * - ( + 44 ) + + col2 + - col2 FROM tab2 AS cor0
----
-1364
-2596
-748

query I rowsort
SELECT col1 * + 91 FROM tab2 AS cor0
----
1547
2821
5369

query I rowsort
SELECT ALL + col0 * cor0.col2 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6064
SELECT - cor0.col2 + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-6064
SELECT - cor0.col2 + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - + col1 + - 54 FROM tab2 AS cor0
----
-113
-71
-85

query I rowsort
SELECT DISTINCT + col0 + 13 FROM tab0 cor0
----
102
37
48

query I rowsort
SELECT ALL + col0 * + tab1.col2 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - col2 * - col0 + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - + col1 + col0 - col2 FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT DISTINCT - + col2 + 15 - col0 AS col2 FROM tab2 AS cor0
----
-102
-19
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6071
SELECT - col0 * + ( 74 ) * col1 + 33 DIV - cor0.col1 FROM tab1 cor0
----
-47363
-5773
-76962

skipif mysql # not compatible
query I rowsort label-6071
SELECT - col0 * + ( 74 ) * col1 + 33 / - cor0.col1 FROM tab1 cor0
----
-47363
-5773
-76962

query I rowsort
SELECT DISTINCT cor0.col2 * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6073
SELECT ALL + + cor0.col0 DIV + 11 + - col0 * col2 FROM tab1 AS cor0
----
-162
-3643
-7673

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL + + cor0.col0 / + 11 + - col0 * col2 FROM tab1 AS cor0
----
-162
-3643
-7673

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6074
SELECT ALL - CAST( NULL AS SIGNED ) + col1 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6075
SELECT - - CAST( NULL AS SIGNED ) * 20 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT - - CAST ( NULL AS INTEGER ) * 20 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 86 AS col2 FROM tab1 AS cor0
----
86

query I rowsort
SELECT ALL + ( + 30 ) + cor0.col2 * - col0 + col1 FROM tab2 AS cor0
----
-128
-1939
-2955

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) * - col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT col0 * - 40 AS col2 FROM tab2 AS cor0
----
-280
-3120
-3160

query I rowsort
SELECT DISTINCT + + ( col0 ) FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL - 55 AS col2 FROM tab1
----
-55
-55
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6082
SELECT DISTINCT - col0 + ( + cor0.col1 ) * ( + col1 ) DIV + col1 FROM tab0 AS cor0
----
2
62

skipif mysql # not compatible
query I rowsort label-6082
SELECT DISTINCT - col0 + ( + cor0.col1 ) * ( + col1 ) / + col1 FROM tab0 AS cor0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * - col1 col1 FROM tab2 AS cor0
----
-170
-310
-590

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 col1 FROM tab2 AS cor0
----
45

query I rowsort
SELECT 66 AS col1 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT + - cor0.col1 + col1 * col2 * 93 AS col1 FROM tab1 AS cor0
----
116051
130546
53000

query I rowsort
SELECT ALL + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + + col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - col2 + + col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 * + col1 + - col1 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT - cor0.col1 + - col1 FROM tab0 cor0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + col1 col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - ( + tab0.col1 ) + - tab0.col0 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT - - 38 AS col0 FROM tab1 cor0
----
38
38
38

query I rowsort
SELECT ALL - - cor0.col2 * + col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + - col1 - col0 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6097
SELECT ALL - - col1 - cor0.col1 * col0 DIV + 26 FROM tab1 AS cor0
----
-14
-27
23

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL - - col1 - cor0.col1 * col0 / + 26 FROM tab1 AS cor0
----
-14
-27
23

query I rowsort
SELECT - + col1 * col1 + - cor0.col2 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT DISTINCT + - ( col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT 99 + col2 FROM tab1 cor0
----
153
156
195

query I rowsort
SELECT DISTINCT - 41 * col2 FROM tab2 AS cor0
----
-1066
-1107
-1558

query I rowsort
SELECT ALL - 42 + col2 AS col2 FROM tab0 cor0
----
-41
-9
40

query I rowsort
SELECT DISTINCT col2 - + cor0.col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - - 36 * + col1 FROM tab2 AS cor0
----
1116
2124
612

query I rowsort
SELECT ALL - col2 * col1 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT 22 FROM tab0 AS cor0
----
22
22
22

query I rowsort
SELECT ALL - + col1 - + col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT cor0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6110
SELECT col0 DIV - tab0.col0 + + CAST( 16 AS SIGNED ) * - col1 * - col2 col1 FROM tab0
----
119391
1551
45407

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6110
SELECT col0 / - tab0.col0 + + CAST ( 16 AS INTEGER ) * - col1 * - col2 col1 FROM tab0
----
119391
1551
45407

query I rowsort
SELECT DISTINCT 26 * + col2 + - col0 * + 49 AS col1 FROM tab1
----
-1424
-1654
1257

query I rowsort
SELECT ALL - - ( ( col1 ) ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + 43 * + col0 - - col0 FROM tab1 AS cor0
----
132
2816
3520

query I rowsort
SELECT DISTINCT 69 + - col2 FROM tab2 AS cor0
----
31
42
43

query I rowsort
SELECT + 74 + cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
171
2912
7536

query I rowsort
SELECT DISTINCT - 63 * + 39 * - col1 FROM tab1 AS cor0
----
24570
31941
63882

query I rowsort
SELECT col1 * - tab1.col0 AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT - ( cor0.col1 ) * - col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT 41 * - col1 AS col1 FROM tab0 AS cor0
----
-3526
-3731
-3977

onlyif mysql # use DIV operator for integer division
query I rowsort label-6120
SELECT - - cor0.col2 DIV + col0 + col1 AS col0 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-6120
SELECT - - cor0.col2 / + col0 + col1 AS col0 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT - + 96 + col1 * - 5 * - col2 AS col0 FROM tab1 AS cor0
----
2754
6144
6924

query I rowsort
SELECT ALL - 72 * col2 + col2 FROM tab2
----
-1846
-1917
-2698

query I rowsort
SELECT DISTINCT 43 AS col1 FROM tab1, tab2 AS cor0
----
43

query I rowsort
SELECT - cor0.col0 * + ( col2 ) FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - - col1 + ( col0 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT col0 + 87 FROM tab0
----
111
122
176

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6128
SELECT ALL + CAST( NULL AS SIGNED ) + 32 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL + CAST ( NULL AS INTEGER ) + 32 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 + col1 * - col0 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - tab2.col0 * - tab2.col1 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT - 28 FROM tab2 cor0
----
-28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6132
SELECT - + CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6132
SELECT - + CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0 cor1, tab1 cor2
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474

query I rowsort
SELECT 25 * cor0.col1 FROM tab2 AS cor0
----
1475
425
775

query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - 35 FROM tab1, tab0 cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT ALL 7 * col1 FROM tab1
----
182
70
91

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab1 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 149298fc0224e93f3bc2df24a3ebeeb8

query I rowsort
SELECT - + ( - 54 ) * col0 * - col0 FROM tab1 AS cor0
----
-221184
-345600
-486

query I rowsort
SELECT ALL - ( 31 ) AS col1 FROM tab0
----
-31
-31
-31

onlyif mysql # use DIV operator for integer division
query I rowsort label-6141
SELECT + - ( 49 ) + - col0 DIV - col0 FROM tab2 AS cor0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-6141
SELECT + - ( 49 ) + - col0 / - col0 FROM tab2 AS cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * + tab0.col2 col2 FROM tab0
----
1617
4018
49

query I rowsort
SELECT - col0 + col0 * + 78 FROM tab1 cor0
----
231
4928
6160

query I rowsort
SELECT cor0.col0 + cor0.col2 * 58 AS col1 FROM tab0 AS cor0
----
1938
4845
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6145
SELECT - col0 * - CAST( NULL AS SIGNED ) * 71 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6145
SELECT - col0 * - CAST ( NULL AS INTEGER ) * 71 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 + 30 * + col1 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
300
390
780

query I rowsort
SELECT - col0 + 70 * col1 FROM tab2 cor0
----
1111
2163
4052

query I rowsort
SELECT + col0 * cor0.col1 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6149
SELECT - col1 + cor0.col2 DIV + col0 FROM tab2 cor0
----
-17
-28
-59

skipif mysql # not compatible
query I rowsort label-6149
SELECT - col1 + cor0.col2 / + col0 FROM tab2 cor0
----
-17
-28
-59

query I rowsort
SELECT DISTINCT col2 + 54 FROM tab1 AS cor0
----
108
111
150

query I rowsort
SELECT cor0.col1 + + 35 AS col2 FROM tab1 AS cor0
----
45
48
61

query I rowsort
SELECT + col1 * 0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - + col2 * - 58 + - 50 AS col0 FROM tab0 AS cor0
----
1864
4706
8

query I rowsort
SELECT DISTINCT - - col1 * + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL + - col1 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 97 col1 FROM tab2, tab1, tab0 cor0
----
97

query I rowsort
SELECT - 63 AS col1 FROM tab2 AS cor0
----
-63
-63
-63

query I rowsort
SELECT ALL 55 + + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1303
1459
625

query I rowsort
SELECT ALL 14 FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT ALL + cor0.col1 + 70 + + col2 AS col2 FROM tab2 AS cor0
----
125
128
155

query I rowsort
SELECT ALL col2 * + col0 + col0 + - col1 AS col1 FROM tab2 AS cor0
----
165
2047
3064

query I rowsort
SELECT DISTINCT - col1 + - 93 * - col2 * col0 AS col2 FROM tab0 AS cor0
----
3158
678623
73570

query I rowsort
SELECT - 6 - - tab1.col0 AS col1 FROM tab1
----
-3
58
74

query I rowsort
SELECT DISTINCT - col0 * + 68 * + 23 FROM tab1 AS cor0
----
-100096
-125120
-4692

query I rowsort
SELECT DISTINCT + col2 + - 43 FROM tab0 AS cor0
----
-10
-42
39

query I rowsort
SELECT ALL col2 * col0 + + col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-6167
SELECT ALL + col2 + + 30 DIV - col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL + col2 + + 30 / - col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col2 * - 67 AS col2 FROM tab2 cor0
----
-1742
-1809
-2546

query I rowsort
SELECT ALL - 87 AS col0 FROM tab0
----
-87
-87
-87

query I rowsort
SELECT col1 * ( col1 * 62 ) FROM tab0 AS cor0
----
458552
513422
583358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6172
SELECT - CAST( + col2 AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-6172
SELECT - CAST ( + col2 AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6173
SELECT - - col0 + + col2 DIV col0 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-6173
SELECT - - col0 + + col2 / col0 FROM tab0 AS cor0
----
25
35
89

query I rowsort
SELECT ALL - + cor0.col2 * col1 - col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT 41 * ( - col0 ) + 93 AS col2 FROM tab2 AS cor0
----
-194
-3105
-3146

query I rowsort
SELECT ALL + 90 * + cor0.col0 FROM tab0 AS cor0
----
2160
3150
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-6177
SELECT DISTINCT - cor0.col1 DIV + col1 col0 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT - cor0.col1 / + col1 col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 94 + - 49 AS col0 FROM tab2 AS cor0
----
-143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col1 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT ALL - + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL tab2.col1 + - col1 - 46 FROM tab2
----
-46
-46
-46

query I rowsort
SELECT col0 + col0 * col0 FROM tab2
----
56
6162
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + ( col2 ) - tab0.col0 col2 FROM tab0
----
-34
1065
6635

query I rowsort
SELECT ALL - col2 * tab2.col2 * col0 AS col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT + ( - col2 ) - tab1.col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT 22 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
22

query I rowsort
SELECT + ( - col1 + col2 ) * + col1 FROM tab2
----
-124
-1947
357

onlyif mysql # use DIV operator for integer division
query I rowsort label-6188
SELECT ( - col0 ) + + col2 DIV - col0 FROM tab0 AS cor0
----
-25
-35
-89

skipif mysql # not compatible
query I rowsort label-6188
SELECT ( - col0 ) + + col2 / - col0 FROM tab0 AS cor0
----
-25
-35
-89

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - 72 * - 51 FROM tab0
----
3672
3672
3672

query I rowsort
SELECT DISTINCT 96 + col2 + col1 AS col0 FROM tab1
----
163
176
205

query I rowsort
SELECT col2 * cor0.col0 + ( + col2 ) FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-6193
SELECT ALL 81 DIV tab1.col0 + col2 col2 FROM tab1
----
58
81
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL 81 / tab1.col0 + col2 col2 FROM tab1
----
58
81
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6194
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 * + col0 + + col0 * 19 / col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 * + col0 + + col0 * 19 / col0 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6195
SELECT ALL - col1 + col2 DIV - tab1.col2 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL - col1 + col2 / - tab1.col2 FROM tab1
----
-11
-14
-27

query I rowsort
SELECT tab2.col1 + - col0 AS col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL col2 + - col2 * 45 FROM tab2 AS cor0
----
-1144
-1188
-1672

query I rowsort
SELECT DISTINCT + 5 * col0 AS col0 FROM tab2 AS cor0
----
35
390
395

query I rowsort
SELECT 10 + col0 FROM tab0 AS cor0
----
34
45
99

query I rowsort
SELECT DISTINCT + + col0 + col2 * + 90 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
130039
60918
65617

query I rowsort
SELECT DISTINCT - 9 + - col1 AS col0 FROM tab1 cor0
----
-19
-22
-35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6202
SELECT DISTINCT - col1 * + cor0.col1 * CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-16224
-36504
-5700

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT - col1 * + cor0.col1 * CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-16224
-36504
-5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - cor0.col2 col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + + col2 * - col0 + col2 * 10 FROM tab0 AS cor0
----
-25
-462
-6478

query I rowsort
SELECT ALL 83 AS col1 FROM tab2 AS cor0
----
83
83
83

query I rowsort
SELECT ALL + col0 + col1 * - ( + col1 ) FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT - 41 + + cor0.col1 * + 17 * col0 AS col1 FROM tab2 AS cor0
----
22790
3648
78193

onlyif mysql # use DIV operator for integer division
query I rowsort label-6208
SELECT + col2 * cor0.col2 DIV - 56 FROM tab2 cor0
----
-12
-13
-25

skipif mysql # not compatible
query I rowsort label-6208
SELECT + col2 * cor0.col2 / - 56 FROM tab2 cor0
----
-12
-13
-25

query I rowsort
SELECT - 7 * cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 2b1a70ceeb411b724d39aa76e42e10a0

query I rowsort
SELECT DISTINCT - col0 - 97 * + col2 AS col0 FROM tab0
----
-132
-3225
-8043

query I rowsort
SELECT ALL + col1 - + cor0.col0 * + 28 FROM tab1 cor0
----
-1782
-2227
-58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6212
SELECT DISTINCT col1 * CAST( - col0 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-576
-75
-960

skipif mysql # not compatible
query I rowsort label-6212
SELECT DISTINCT col1 * CAST ( - col0 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL - + cor0.col1 * col1 + ( - col0 ) * + ( - col2 ) * + col0 - + 79 AS col2 FROM tab0 cor0
----
-8263
11533
641162

onlyif mysql # use DIV operator for integer division
query I rowsort label-6214
SELECT DISTINCT col0 DIV - col2 + col1 AS col2 FROM tab0 AS cor0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-6214
SELECT DISTINCT col0 / - col2 + col1 AS col2 FROM tab0 AS cor0
----
62
86
90

query I rowsort
SELECT DISTINCT - - col0 + col1 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + col2 * + col2 + - col2 * - col2 * col0 AS col0 FROM tab2 AS cor0
----
115520
53404
5832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) - col0 col1 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6218
SELECT ALL - - CAST( col1 AS SIGNED ) + - col2 * col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL - - CAST ( col1 AS INTEGER ) + - col2 * col1 / + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - 78 + 31 AS col1 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ( 95 ) - - col2 FROM tab2 AS cor0
----
121
122
133

onlyif mysql # use DIV operator for integer division
query I rowsort label-6221
SELECT DISTINCT col2 DIV - 25 - 14 AS col0 FROM tab0
----
-14
-15
-17

skipif mysql # not compatible
query I rowsort label-6221
SELECT DISTINCT col2 / - 25 - 14 AS col0 FROM tab0
----
-14
-15
-17

onlyif mysql # use DIV operator for integer division
query I rowsort label-6222
SELECT col2 + 8 DIV + col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6222
SELECT col2 + 8 / + col1 FROM tab1
----
54
57
96

query I rowsort
SELECT + tab1.col0 + 83 FROM tab1
----
147
163
86

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 713ff9f9cde43214a064a8e6ada00f4e

query I rowsort
SELECT DISTINCT - 84 * col0 + - cor0.col1 * - 75 FROM tab2 AS cor0
----
-2127
-5361
1737

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 * - cor0.col0 col0 FROM tab0 AS cor0
----
1944
2835
7209

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6227
SELECT - CAST( NULL AS SIGNED ) + + col1 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6227
SELECT - CAST ( NULL AS INTEGER ) + + col1 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL 61 * col1 AS col2 FROM tab0
----
5246
5551
5917

query I rowsort
SELECT + + 30 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT + ( col1 * tab2.col2 ) + + col2 * + col1 * - col0 FROM tab2
----
-118118
-5022
-50388

query I rowsort
SELECT - ( - tab0.col1 ) AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT 0 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT 55 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT ALL 51 * - col0 FROM tab1
----
-153
-3264
-4080

query I rowsort
SELECT col1 + - 21 * - 35 AS col1 FROM tab2 AS cor0
----
752
766
794

query I rowsort
SELECT - - col2 + + 26 * col0 FROM tab2 AS cor0
----
2054
209
2092

query I rowsort
SELECT + - col0 * + 15 FROM tab0 AS cor0
----
-1335
-360
-525

onlyif mysql # use DIV operator for integer division
query I rowsort label-6239
SELECT - - col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6239
SELECT - - col0 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT - col1 + col2 * col0 AS col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT + 69 * - col2 * col2 FROM tab2
----
-46644
-50301
-99636

query I rowsort
SELECT DISTINCT 52 FROM tab1, tab2 AS cor0
----
52

query I rowsort
SELECT + col0 * 73 + - col0 AS col1 FROM tab0 cor0
----
1728
2520
6408

query I rowsort
SELECT 3 * + cor0.col2 + + col2 FROM tab2 AS cor0
----
104
108
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 7 + - ( + cor0.col2 ) col2 FROM tab1 AS cor0
----
-103
-61
-64

query I rowsort
SELECT DISTINCT - col2 + + 55 AS col0 FROM tab0 AS cor0
----
-27
22
54

query I rowsort
SELECT + + 78 AS col1 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT ALL col1 * 68 * + col0 + + 54 AS col1 FROM tab1 AS cor0
----
43574
5358
70774

onlyif mysql # use DIV operator for integer division
query I rowsort label-6249
SELECT ALL col1 + col2 DIV col1 + col0 FROM tab2 AS cor0
----
137
38
98

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL col1 + col2 / col1 + col0 FROM tab2 AS cor0
----
137
38
98

query I rowsort
SELECT - ( - col1 + col0 ) * 24 AS col2 FROM tab0
----
1488
1488
48

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7

query I rowsort
SELECT - ( + cor0.col2 ) + col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6253
SELECT + col1 + - col0 DIV - col2 AS col1 FROM tab1 cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-6253
SELECT + col1 + - col0 / - col2 AS col1 FROM tab1 cor0
----
11
13
26

query I rowsort
SELECT + cor0.col0 + + col1 * col1 AS col2 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT - 40 * col1 FROM tab2 AS cor0
----
-1240
-2360
-680

query I rowsort
SELECT DISTINCT - col0 + + col2 AS col1 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL + col0 - + col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL - col1 + col1 * - col1 AS col2 FROM tab2 cor0
----
-306
-3540
-992

query I rowsort
SELECT - ( col0 ) AS col1 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT ALL cor0.col0 + - col2 - col2 AS col0 FROM tab2 AS cor0
----
-47
26
3

query I rowsort
SELECT ALL - col1 + + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6262
SELECT ALL + col0 DIV col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL + col0 / col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6263
SELECT DISTINCT col0 DIV col2 + col1 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT col0 / col2 + col1 FROM tab0 AS cor0
----
132
86
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-6264
SELECT + col0 * col2 DIV col0 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6264
SELECT + col0 * col2 / col0 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + 5 * + col2 + + col1 AS col1 FROM tab2
----
166
189
207

onlyif mysql # use DIV operator for integer division
query I rowsort label-6266
SELECT ALL - col2 DIV - col0 + col0 FROM tab1
----
21
64
81

skipif mysql # not compatible
query I rowsort label-6266
SELECT ALL - col2 / - col0 + col0 FROM tab1
----
21
64
81

query I rowsort
SELECT + 11 - - 12 FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT + col2 - cor0.col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + + 39 * - col2 AS col1 FROM tab1 AS cor0
----
-2106
-2223
-3744

query I rowsort
SELECT ALL - 96 + - col0 FROM tab0 AS cor0
----
-120
-131
-185

query I rowsort
SELECT cor1.col1 - cor0.col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d71cc5ecf1aacb631cf199fd150bf079

query I rowsort
SELECT cor0.col1 - - 59 AS col2 FROM tab1 AS cor0
----
69
72
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6273
SELECT CAST( NULL AS SIGNED ) * col0 - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6273
SELECT CAST ( NULL AS INTEGER ) * col0 - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( col2 ) FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6275
SELECT - col0 * CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-6275
SELECT - col0 * CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - 71 AS col0 FROM tab1
----
-71
-71
-71

query I rowsort
SELECT DISTINCT 53 AS col2 FROM tab2
----
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6278
SELECT - CAST( NULL AS SIGNED ) * + cor0.col1 - - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6278
SELECT - CAST ( NULL AS INTEGER ) * + cor0.col1 - - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6279
SELECT + - 75 - + col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
-75
-81
-81

skipif mysql # not compatible
query I rowsort label-6279
SELECT + - 75 - + col0 / + col1 AS col1 FROM tab1 AS cor0
----
-75
-81
-81

query I rowsort
SELECT - + col1 * col1 + cor0.col1 + + col0 FROM tab0 AS cor0
----
-7286
-8101
-9277

query I rowsort
SELECT col1 * col0 + + col2 AS col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT ( col1 ) - - col0 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6283
SELECT DISTINCT tab2.col1 DIV col1 - + col1 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT tab2.col1 / col1 - + col1 FROM tab2
----
-16
-30
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-6284
SELECT DISTINCT tab1.col0 + - col1 DIV col0 AS col2 FROM tab1
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT tab1.col0 + - col1 / col0 AS col2 FROM tab1
----
-5
64
80

query I rowsort
SELECT 73 + + col1 AS col1 FROM tab0
----
159
164
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 + + col2 + + col0 col0 FROM tab0
----
71
7469
849

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6287
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6287
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL col0 * col0 * col1 AS col1 FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-6289
SELECT col0 + - col1 DIV + 6 FROM tab0 AS cor0
----
10
19
74

skipif mysql # not compatible
query I rowsort label-6289
SELECT col0 + - col1 / + 6 FROM tab0 AS cor0
----
10
19
74

query I rowsort
SELECT DISTINCT + cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + cor0.col1 + 0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + col1 + ( col1 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT + col0 * cor0.col2 + ( col2 ) * 56 FROM tab2 AS cor0
----
1701
3484
5130

query I rowsort
SELECT DISTINCT - col2 * col2 + col1 + col1 * + ( - col1 ) FROM tab0
----
-14914
-8399
-9313

query I rowsort
SELECT + col0 + + 32 + - tab1.col0 * + col2 * col0 FROM tab1
----
-233376
-451
-614288

query I rowsort
SELECT + tab0.col0 * col0 FROM tab0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6297
SELECT DISTINCT + col0 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT + col0 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 5 FROM tab0 cor0
----
5

query I rowsort
SELECT DISTINCT - ( - 1 ) + + col2 AS col0 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT ALL + ( col1 ) * col0 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - + ( - col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ( + ( col2 ) ) AS col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6303
SELECT ALL - CAST( NULL AS SIGNED ) + 78 * - col2 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL - CAST ( NULL AS INTEGER ) + 78 * - col2 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - 52 ) AS col2 FROM tab2 AS cor0
----
52

query I rowsort
SELECT + col0 * col2 + - 87 * col1 + col2 FROM tab2
----
-2481
-3079
1561

query I rowsort
SELECT DISTINCT + col1 + + tab2.col0 * + tab2.col0 AS col1 FROM tab2
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6307
SELECT - + col1 DIV + col0 + + ( - col1 ) * + col1 AS col1 FROM tab2 cor0
----
-289
-3481
-965

skipif mysql # not compatible
query I rowsort label-6307
SELECT - + col1 / + col0 + + ( - col1 ) * + col1 AS col1 FROM tab2 cor0
----
-289
-3481
-965

query I rowsort
SELECT DISTINCT 29 + col0 FROM tab0
----
118
53
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6309
SELECT DISTINCT 74 * + col0 * - CAST( NULL AS SIGNED ) + - ( col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT 74 * + col0 * - CAST ( NULL AS INTEGER ) + - ( col0 ) FROM tab0
----
NULL

query I rowsort
SELECT 17 * + col0 AS col1 FROM tab2
----
119
1326
1343

query I rowsort
SELECT + 93 * col1 FROM tab1
----
1209
2418
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 19 col0 FROM tab2 AS cor0
----
-19
-19
-19

onlyif mysql # use DIV operator for integer division
query I rowsort label-6313
SELECT ALL + col1 + col1 - - 67 DIV + ( cor0.col0 ) col1 FROM tab0 cor0
----
174
182
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL + col1 + col1 - - 67 / + ( cor0.col0 ) col1 FROM tab0 cor0
----
174
182
195

query I rowsort
SELECT - 46 - - col1 * col1 AS col0 FROM tab0 AS cor0
----
7350
8235
9363

query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col2 + - ( + col0 + col1 ) FROM tab2 AS cor0
----
-1671
-742
-875

query I rowsort
SELECT ( - col0 ) + ( + ( col0 ) ) AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6317
SELECT + - col1 - col0 * + CAST( + ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-6143
-6258
-80

skipif mysql # not compatible
query I rowsort label-6317
SELECT + - col1 - col0 * + CAST ( + ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT col2 - - col1 AS col1 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6319
SELECT DISTINCT + col1 + + col2 * - CAST( NULL AS SIGNED ) / - cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT + col1 + + col2 * - CAST ( NULL AS INTEGER ) / - cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6320
SELECT DISTINCT + col2 + + CAST( - cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-6320
SELECT DISTINCT + col2 + + CAST ( - cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-6321
SELECT col0 + 72 DIV + col2 AS col2 FROM tab1 AS cor0
----
4
65
80

skipif mysql # not compatible
query I rowsort label-6321
SELECT col0 + 72 / + col2 AS col2 FROM tab1 AS cor0
----
4
65
80

query I rowsort
SELECT + col0 * 51 + + col1 + col2 * - 72 FROM tab2 AS cor0
----
-1556
1310
2165

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6323
SELECT ALL + col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 * + 69 FROM tab0 AS cor0
----
-1656
-2415
-6141

query I rowsort
SELECT - + col2 * + col2 + ( cor0.col0 ) FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL tab0.col1 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT - col0 * col0 + col0 - - 61 * col1 AS col1 FROM tab1
----
-3422
-5527
1580

query I rowsort
SELECT DISTINCT - - col2 * - 0 + 12 FROM tab1 AS cor0
----
12

query I rowsort
SELECT - col1 + 67 * - col2 FROM tab2 AS cor0
----
-1801
-1840
-2563

onlyif mysql # use DIV operator for integer division
query I rowsort label-6330
SELECT + + col0 + cor0.col0 DIV 30 col0 FROM tab1 AS cor0
----
3
66
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6330
SELECT + + col0 + cor0.col0 / 30 col0 FROM tab1 AS cor0
----
3
66
82

query I rowsort
SELECT DISTINCT - - col2 + col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - + cor0.col0 + + ( + 93 + col2 ) AS col1 FROM tab0 AS cor0
----
102
59
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6333
SELECT ALL + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 * - 51 FROM tab2 cor0
----
1581
3009
867

query I rowsort
SELECT DISTINCT - col2 * - col0 + ( col2 ) * 28 FROM tab2 AS cor0
----
2756
4066
945

onlyif mysql # use DIV operator for integer division
query I rowsort label-6336
SELECT ALL col0 DIV cor0.col2 + + cor0.col2 DIV - col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL col0 / cor0.col2 + + cor0.col2 / - col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ALL col0 + col1 - tab0.col1 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT col0 * ( + col0 ) * - col2 + - ( - col2 ) FROM tab1
----
-233415
-432
-614304

query I rowsort
SELECT - col2 * + col1 + col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT + col2 + ( + col0 ) AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT tab1.col1 + 47 FROM tab1
----
57
60
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6342
SELECT col2 * + CAST( NULL AS DECIMAL ) * + 23 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT col2 * + CAST ( NULL AS REAL ) * + 23 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT - + ( col1 ) * - 84 AS col1 FROM tab0 AS cor0
----
7224
7644
8148

query I rowsort
SELECT DISTINCT + - col2 * col0 * + ( + 45 ) AS col2 FROM tab0 AS cor0
----
-1575
-328410
-35640

query I rowsort
SELECT + 64 * - col0 FROM tab1 AS cor0
----
-192
-4096
-5120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6347
SELECT CAST( NULL AS SIGNED ) + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6347
SELECT CAST ( NULL AS INTEGER ) + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 88 AS col1 FROM tab0, tab2, tab1 cor0
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT ALL col2 * + col1 * + tab0.col2 AS col0 FROM tab0
----
611884
93654
97

query I rowsort
SELECT + ( col0 ) + - col1 FROM tab1
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6351
SELECT 43 * - col2 + + 94 DIV tab1.col2 AS col2 FROM tab1
----
-2321
-2450
-4128

skipif mysql # not compatible
query I rowsort label-6351
SELECT 43 * - col2 + + 94 / tab1.col2 AS col2 FROM tab1
----
-2321
-2450
-4128

query I rowsort
SELECT DISTINCT - 13 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-39
-832

query I rowsort
SELECT DISTINCT 38 * col0 AS col2 FROM tab0 AS cor0
----
1330
3382
912

query I rowsort
SELECT - col1 + col1 * ( - ( - col0 ) * + 79 ) FROM tab1 AS cor0
----
50550
6136
82147

query I rowsort
SELECT + 60 * col0 FROM tab0 AS cor0
----
1440
2100
5340

query I rowsort
SELECT col1 * col0 AS col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - 61 * col2 FROM tab0 AS cor0
----
-2013
-5002
-61

query I rowsort
SELECT - + col2 + + col1 * 13 FROM tab2 AS cor0
----
183
376
741

query I rowsort
SELECT DISTINCT ( col0 ) * + tab0.col0 AS col1 FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-6360
SELECT ALL + 2 DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL + 2 / - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL cor0.col1 - - tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to fb176be5d9b49c1f744e4199c3ae250f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6362
SELECT DISTINCT CAST( col2 AS SIGNED ) * col0 AS col0 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT CAST ( col2 AS INTEGER ) * col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - 34 * - col0 FROM tab2 AS cor0
----
238
2652
2686

query I rowsort
SELECT - - col1 + - col0 * col2 AS col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT - - 67 * col1 AS col1 FROM tab1 AS cor0
----
1742
670
871

query I rowsort
SELECT - col2 + + col2 * 88 FROM tab2 AS cor0
----
2262
2349
3306

query I rowsort
SELECT ALL + + col0 * col0 + + col2 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
117
4210
6592

query I rowsort
SELECT DISTINCT + cor0.col2 + + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT + cor0.col0 + + col1 AS col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL col2 * col1 + - 86 FROM tab1 AS cor0
----
1162
1318
484

query I rowsort
SELECT + + col2 * ( col0 ) + + col0 * - col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 * 62 col0 FROM tab1 AS cor0
----
160
3958
4947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 91 + col0 col2 FROM tab1 AS cor0
----
-1103
-2363
-846

query I rowsort
SELECT - col0 * col1 * - col2 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - ( col1 ) AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT col1 * ( - col1 * - col1 ) FROM tab0
----
636056
753571
912673

query I rowsort
SELECT ALL cor0.col2 * cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c

query I rowsort
SELECT - 34 FROM tab2, tab1 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6379
SELECT DISTINCT - + col1 * col2 * CAST( 36 AS SIGNED ) FROM tab1 AS cor0
----
-20520
-44928
-50544

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT - + col1 * col2 * CAST ( 36 AS INTEGER ) FROM tab1 AS cor0
----
-20520
-44928
-50544

query I rowsort
SELECT cor0.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4

query I rowsort
SELECT col0 + col0 * 81 AS col1 FROM tab1 AS cor0
----
246
5248
6560

query I rowsort
SELECT 52 AS col0 FROM tab2
----
52
52
52

query I rowsort
SELECT ALL - cor0.col2 * col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + 73 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1241
2263
4307

onlyif mysql # use DIV operator for integer division
query I rowsort label-6385
SELECT ALL + col2 DIV - col1 FROM tab2 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL + col2 / - col1 FROM tab2 cor0
----
-2
0
0

query I rowsort
SELECT + col0 * - col1 + + cor0.col2 FROM tab1 AS cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( - cor0.col1 ) col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT cor0.col0 * 92 FROM tab1, tab2 AS cor0
----
9 values hashing to 9596028634f7ef5bc08792444e59b3e7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + 48 col0 FROM tab1 AS cor0
----
1248
480
624

query I rowsort
SELECT DISTINCT + col0 * - col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - col1 + ( 36 ) * - col2 FROM tab0 AS cor0
----
-1274
-133
-3043

query I rowsort
SELECT + cor0.col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - col2 * 77 FROM tab1 cor0
----
-4158
-4389
-7392

query I rowsort
SELECT ALL col2 * 10 * cor0.col1 + ( col1 ) * + col2 FROM tab0 AS cor0
----
1067
31218
82082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 0 * col1 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * + 97 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1408
8242
9107

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6397
SELECT col0 * CAST( col0 AS SIGNED ) col1 FROM tab2
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6397
SELECT col0 * CAST ( col0 AS INTEGER ) col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT + col0 * col2 + col1 * ( - cor0.col2 ) AS col1 FROM tab1 cor0
----
-1242
3078
6432

query I rowsort
SELECT DISTINCT - + ( + ( - col0 ) ) + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT 35 + col0 AS col1 FROM tab0 cor0
----
124
59
70

query I rowsort
SELECT DISTINCT 88 + - col1 AS col1 FROM tab0 AS cor0
----
-3
-9
2

query I rowsort
SELECT - 74 - - col0 * + cor0.col0 FROM tab2 AS cor0
----
-25
6010
6167

query I rowsort
SELECT DISTINCT col2 * - 8 FROM tab1 cor0
----
-432
-456
-768

query I rowsort
SELECT DISTINCT - 27 + 65 FROM tab1 AS cor0
----
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6405
SELECT + - CAST( - col0 AS SIGNED ) * col0 + col2 AS col1 FROM tab0 AS cor0
----
1226
609
8003

skipif mysql # not compatible
query I rowsort label-6405
SELECT + - CAST ( - col0 AS INTEGER ) * col0 + col2 AS col1 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL + ( + cor0.col1 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL + tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL col0 - + col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT - col2 * col2 * col1 + col2 - col1 * + cor0.col1 FROM tab2 AS cor0
----
-23533
-24799
-43339

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN + col0 + - col1 * col2 + - col0 * + col1 AND ( + col0 )
----
3
26
54

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + col0 / col2 )
----

query I rowsort
SELECT col2 - + col0 * col2 * col2 AS col0 FROM tab2
----
-114038
-5076
-52702

query I rowsort
SELECT ALL + tab2.col2 * col1 AS col0 FROM tab2
----
1534
646
837

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT - col1 + tab1.col1 AS col2 FROM tab1
----
0

query I rowsort
SELECT + col0 - + col2 * - col0 AS col2 FROM tab1 cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6417
SELECT + col2 + - col2 DIV col1 + col1 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-6417
SELECT + col2 + - col2 / col1 + col1 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL col0 * col2 + + col1 FROM tab1
----
188
3658
7693

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + col2 * col2 NOT IN ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT - col1 + tab0.col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT - col2 * + col2 + col1 AS col2 FROM tab1
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-6422
SELECT col1 * col1 DIV cor0.col0 FROM tab2 AS cor0
----
137
3
44

skipif mysql # not compatible
query I rowsort label-6422
SELECT col1 * col1 / cor0.col0 FROM tab2 AS cor0
----
137
3
44

query I rowsort
SELECT ALL - col2 * col1 + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-6424
SELECT DISTINCT - cor0.col1 DIV col1 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT - cor0.col1 / col1 AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6425
SELECT ALL + tab1.col1 DIV - col0 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL + tab1.col1 / - col0 FROM tab1
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6427
SELECT ALL - + col2 DIV col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL - + col2 / col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - col1 * col1 * col0 + - col1 FROM tab2 cor0
----
-22848
-271577
-6758

onlyif mysql # use DIV operator for integer division
query I rowsort label-6429
SELECT - - cor0.col1 + col2 DIV col2 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-6429
SELECT - - cor0.col1 + col2 / col2 FROM tab1 AS cor0
----
11
14
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-6430
SELECT ALL + col0 DIV + col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL + col0 / + col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * + col1 + - cor0.col1 * + col0 FROM tab1 AS cor0
----
-70
1326
208

onlyif mysql # use DIV operator for integer division
query I rowsort label-6432
SELECT + col2 * col1 DIV + col2 col0 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6432
SELECT + col2 * col1 / + col2 col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - - cor0.col0 * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - - col2 + + col2 AS col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT DISTINCT - col2 * - col2 * + col0 FROM tab0 cor0
----
26136
35
598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-6436
SELECT DISTINCT - cor0.col2 DIV + col1 col1 FROM tab2 AS cor0
----
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6436
SELECT DISTINCT - cor0.col2 / + col1 col1 FROM tab2 AS cor0
----
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6437
SELECT ALL + col1 + - col1 DIV col1 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL + col1 + - col1 / col1 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT DISTINCT + col2 * col0 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL + col0 + - col2 * + 48 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1536
-3758
22

query I rowsort
SELECT 30 + cor0.col1 FROM tab1 AS cor0
----
40
43
56

query I rowsort
SELECT ALL - col2 * + tab1.col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + - col2 + col1 * - col1 FROM tab1 AS cor0
----
-157
-265
-730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 * - col2 col1 FROM tab0 cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT cor0.col1 * col2 + 93 + 50 AS col1 FROM tab1 AS cor0
----
1391
1547
713

query I rowsort
SELECT + cor0.col1 * + 34 + - col1 FROM tab0 AS cor0
----
2838
3003
3201

query I rowsort
SELECT - + cor0.col0 * 1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT cor0.col0 - + 81 FROM tab2 AS cor0
----
-2
-3
-74

query I rowsort
SELECT - col2 + ( - col1 ) FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT ALL - + col2 + - col1 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT + - col1 * 26 + ( col1 ) AS col2 FROM tab0 AS cor0
----
-2150
-2275
-2425

query I rowsort
SELECT cor0.col0 + 59 * 66 FROM tab2 AS cor0
----
3901
3972
3973

query I rowsort
SELECT + cor0.col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - col1 + col2 * col0 AS col0 FROM tab1
----
136
3638
7667

query I rowsort
SELECT ALL 2 FROM tab2
----
2
2
2

query I rowsort
SELECT ALL col0 * col1 * col1 FROM tab1 WHERE - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * + col1 * - tab2.col0 + col2 FROM tab2
----
-22793
-271492
-6700

query III rowsort
SELECT * FROM tab1 WHERE + col0 <= ( col1 )
----
3
26
54

query I rowsort
SELECT + col0 * - tab0.col0 + + tab0.col1 / + col2 FROM tab0 WHERE NULL <= - col0 / col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6459
SELECT DISTINCT + col2 + + col2 DIV tab2.col1 FROM tab2
----
26
27
40

skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT + col2 + + col2 / tab2.col1 FROM tab2
----
26
27
40

query I rowsort
SELECT DISTINCT + col2 * tab2.col2 * - col2 FROM tab2 WHERE NOT NULL = + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 + col1 + col0 FROM tab2 WHERE NOT ( NULL ) > ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 + col1 - + col2 col0 FROM tab2
----
-23
-59
7

query I rowsort
SELECT ALL tab0.col1 * col2 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 * + col2 col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT col0 - - col0 * col1 AS col1 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL col0 * + col2 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT tab2.col0 + col2 * + tab2.col1 * + col0 + - col2 * col2 AS col1 FROM tab2
----
119054
49669
5137

query I rowsort
SELECT DISTINCT col2 * - col2 * + tab0.col0 AS col1 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT col0 FROM tab1 WHERE col1 * + col2 + - col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col2 + + col0 AND ( col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 ) < + col0 * col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT tab0.col0 + col2 FROM tab0 WHERE NOT + col1 NOT BETWEEN - col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * - col0 FROM tab2 WHERE NOT ( NULL ) = col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < col0
----

query I rowsort
SELECT + col2 + col0 * col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT ALL tab1.col0 + col1 * + col1 AS col0 FROM tab1
----
164
249
679

query I rowsort
SELECT - tab2.col0 + + col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE - col1 IN ( col1 + + col1 )
----

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT ( + col1 * + col0 ) IN ( - col2 )
----
17
31
59

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < col0 + col2 * + col1
----

query I rowsort
SELECT - col2 * - ( - col2 ) + col1 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT col2 * 39 AS col2 FROM tab0
----
1287
3198
39

query I rowsort
SELECT - col1 * 73 FROM tab2 AS cor0
----
-1241
-2263
-4307

query I rowsort
SELECT DISTINCT + col0 + + col2 * col2 FROM tab0 cor0
----
1113
36
6813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6486
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6487
SELECT + + CAST( NULL AS SIGNED ) + - 9 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6487
SELECT + + CAST ( NULL AS INTEGER ) + - 9 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - ( + col1 ) + col2 * - 38 * ( col2 ) + - 1 FROM tab0 AS cor0
----
-136
-255604
-41469

query I rowsort
SELECT col0 * - 85 AS col2 FROM tab2 AS cor0
----
-595
-6630
-6715

query I rowsort
SELECT ALL - col1 * col0 * cor0.col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT - 23 + + col2 + col2 FROM tab0 AS cor0
----
-21
141
43

query I rowsort
SELECT tab2.col0 * + col1 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT + col2 * ( 50 + - col1 ) FROM tab1
----
1296
2280
3552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 * ( col0 ) col1 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT + - col1 * col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + ( 70 ) FROM tab1
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col1 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT + 1 * - col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT + cor0.col1 - col2 * + col1 * col1 AS col2 FROM tab1 AS cor0
----
-16211
-36478
-5690

onlyif mysql # use DIV operator for integer division
query I rowsort label-6500
SELECT + - 68 + col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-6500
SELECT + - 68 + col1 / + col1 AS col0 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT - + col1 * 3 + 93 + col1 * + col1 FROM tab1 AS cor0
----
163
223
691

query I rowsort
SELECT DISTINCT cor0.col0 - ( col2 ) AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - + col1 + + ( cor0.col0 * cor0.col1 ) + - 24 * + 96 * + col1 AS col1 FROM tab1 AS cor0
----
-22410
-28925
-59852

query I rowsort
SELECT col2 * col0 * - col0 + + col0 FROM tab1 AS cor0
----
-233408
-483
-614320

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 - + col0 AS col2 FROM tab0 cor0
----
7372
8192
9374

query I rowsort
SELECT ALL + col0 * + col1 + col0 * col0 FROM tab2 AS cor0
----
10686
266
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col2 * + col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + 67 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
67

query I rowsort
SELECT DISTINCT tab1.col2 - + col2 FROM tab1
----
0

query I rowsort
SELECT ALL - - col2 * col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - cor0.col1 * - col2 * + col2 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT cor0.col1 - + cor0.col1 * col0 * col0 AS col1 FROM tab1 AS cor0
----
-208
-40950
-83187

query I rowsort
SELECT - - col1 + + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to b050f98b2d07c1b092b73ecf6b5b347c

query I rowsort
SELECT ALL - tab2.col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
972 values hashing to 3406497351e4789c89a295ee9b64b201

query I rowsort
SELECT + col0 + + ( + cor0.col1 ) FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 + col2 col0 FROM tab1 AS cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * - col2 + col1 * + col0 col2 FROM tab0 AS cor0
----
1800
3387
7443

query I rowsort
SELECT ( + 35 ) * - col2 + col1 FROM tab2 AS cor0
----
-1313
-851
-914

query I rowsort
SELECT col1 * col2 + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - 81 AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL - 62 * col2 AS col0 FROM tab1 AS cor0
----
-3348
-3534
-5952

query I rowsort
SELECT - col0 * + col1 + - cor0.col1 * col2 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT ALL + cor0.col0 * + col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6527
SELECT ALL - CAST( col2 AS SIGNED ) + - col2 FROM tab2 cor0
----
-52
-54
-76

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL - CAST ( col2 AS INTEGER ) + - col2 FROM tab2 cor0
----
-52
-54
-76

query I rowsort
SELECT cor0.col0 * + col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( 2 ) col0 FROM tab0 AS cor0
----
2

query I rowsort
SELECT ALL - col1 + + col0 AS col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT ALL + col2 + col2 + + cor0.col0 AS col0 FROM tab2 cor0
----
130
155
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 11 col1 FROM tab2 AS cor0
----
-11
-11
-11

onlyif mysql # use DIV operator for integer division
query I rowsort label-6533
SELECT ALL - col2 DIV + col1 - + col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL - col2 / + col1 - + col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6534
SELECT DISTINCT + CAST( col0 AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col2 * - 88 FROM tab0 cor0
----
-2904
-7216
-88

query I rowsort
SELECT + ( + 61 ) FROM tab2 AS cor0
----
61
61
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-6537
SELECT DISTINCT - col1 DIV ( - cor0.col1 ) + col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT - col1 / ( - cor0.col1 ) + col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL - ( - col2 ) AS col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT col0 * + col0 + - col1 * ( + col0 ) FROM tab2 AS cor0
----
-168
1482
4898

query I rowsort
SELECT DISTINCT + - cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6541
SELECT + CAST( NULL AS DECIMAL ) + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6541
SELECT + CAST ( NULL AS REAL ) + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 75 * - cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cf9394b96b237f8f0a258d06bb6837dc

query I rowsort
SELECT - 80 - col0 FROM tab2 AS cor0
----
-158
-159
-87

query I rowsort
SELECT DISTINCT - col2 * + 13 AS col1 FROM tab1 AS cor0
----
-1248
-702
-741

query I rowsort
SELECT ALL + col0 + col0 + col2 AS col2 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT ALL + + col1 * + col1 + 24 FROM tab0 AS cor0
----
7420
8305
9433

query I rowsort
SELECT ALL + 84 + col0 FROM tab2
----
162
163
91

query I rowsort
SELECT ALL + 27 * - 61 FROM tab2, tab0 AS cor0
----
9 values hashing to 3b3331cf3658af9af2c4ac8c00b5da9c

query I rowsort
SELECT ALL col1 * - 89 AS col2 FROM tab0 AS cor0
----
-7654
-8099
-8633

query I rowsort
SELECT DISTINCT - - col2 + + col2 FROM tab2 cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6551
SELECT ALL + col2 DIV + ( col0 ) FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL + col2 / + ( col0 ) FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT 4 + - col0 + - ( col0 ) AS col0 FROM tab1
----
-124
-156
-2

query I rowsort
SELECT DISTINCT + col1 * - 73 AS col0 FROM tab0
----
-6278
-6643
-7081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6554
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col0 * ( - col0 ) * col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT + col2 + col0 * - 75 FROM tab1 AS cor0
----
-171
-4743
-5904

query I rowsort
SELECT ALL - cor0.col2 * 46 AS col2 FROM tab1 AS cor0
----
-2484
-2622
-4416

query I rowsort
SELECT + col2 + 20 * col2 FROM tab1 AS cor0
----
1134
1197
2016

onlyif mysql # use DIV operator for integer division
query I rowsort label-6559
SELECT DISTINCT col0 DIV - 52 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT col0 / - 52 FROM tab2
----
-1
0

query I rowsort
SELECT 23 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + tab2.col2 + 58 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to dd1f7f854e75e37d5b8e7dfdbf54f05f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6562
SELECT DISTINCT - CAST( col0 + col0 AS SIGNED ) col0 FROM tab2
----
-14
-156
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6562
SELECT DISTINCT - CAST ( col0 + col0 AS INTEGER ) col0 FROM tab2
----
-14
-156
-158

query I rowsort
SELECT DISTINCT + + 17 AS col2 FROM tab1 AS cor0
----
17

query I rowsort
SELECT DISTINCT ( - tab2.col0 * tab2.col2 ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + 81 * + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-236196
-263169
-746496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col1 FROM tab0
----
87
87
87

query I rowsort
SELECT DISTINCT + ( col2 ) + + col2 AS col2 FROM tab2
----
52
54
76

query I rowsort
SELECT col2 + col1 * col0 FROM tab1
----
1136
132
697

query I rowsort
SELECT - 57 * - col2 + col1 AS col0 FROM tab2 AS cor0
----
1541
1570
2183

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6570
SELECT DISTINCT - col1 + col1 * CAST( cor0.col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
272
3422
930

skipif mysql # not compatible
query I rowsort label-6570
SELECT DISTINCT - col1 + col1 * CAST ( cor0.col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
272
3422
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col2 col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - 31 + - col0 FROM tab2 cor0
----
-109
-110
-38

query I rowsort
SELECT cor0.col0 * + cor0.col0 + + col2 AS col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT + + col2 + col1 * - 2 * + cor0.col1 FROM tab0 AS cor0
----
-14759
-16480
-18817

query I rowsort
SELECT - col1 * - col0 + + col2 AS col2 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT + col1 + - col1 * 88 AS col1 FROM tab2 AS cor0
----
-1479
-2697
-5133

query I rowsort
SELECT DISTINCT + col2 + - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - col2 + 51 AS col1 FROM tab1 AS cor0
----
-3
-45
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6579
SELECT DISTINCT col2 + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
108
114
192

skipif mysql # not compatible
query I rowsort label-6579
SELECT DISTINCT col2 + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-6580
SELECT - 19 + + tab0.col0 DIV 7 + - col0 AS col2 FROM tab0
----
-40
-49
-96

skipif mysql # not compatible
query I rowsort label-6580
SELECT - 19 + + tab0.col0 / 7 + - col0 AS col2 FROM tab0
----
-40
-49
-96

query I rowsort
SELECT + col2 + col0 * col1 + col0 FROM tab0
----
2121
3431
8270

query I rowsort
SELECT - col0 + + ( + 89 + - col2 ) FROM tab1 cor0
----
-32
-87
32

query I rowsort
SELECT tab1.col1 * + 43 + + 26 FROM tab1, tab2 AS cor0
----
9 values hashing to e003ae5248e2df14802fd40eff3d83ea

query I rowsort
SELECT col0 + - ( col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab1, tab2 AS cor0
----
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-6586
SELECT ALL ( 61 ) * col0 DIV tab2.col1 FROM tab2
----
13
283
80

skipif mysql # not compatible
query I rowsort label-6586
SELECT ALL ( 61 ) * col0 / tab2.col1 FROM tab2
----
13
283
80

query I rowsort
SELECT - col2 * 36 FROM tab1
----
-1944
-2052
-3456

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab2, tab2 cor0
----
17
31
59

query I rowsort
SELECT + 99 * col1 FROM tab2 AS cor0
----
1683
3069
5841

onlyif mysql # use DIV operator for integer division
query I rowsort label-6590
SELECT - col0 * col0 - col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1224
-575
-7920

skipif mysql # not compatible
query I rowsort label-6590
SELECT - col0 * col0 - col0 / - col0 AS col0 FROM tab0 AS cor0
----
-1224
-575
-7920

query I rowsort
SELECT - - 85 * - col0 + col2 AS col2 FROM tab1 AS cor0
----
-201
-5383
-6704

query I rowsort
SELECT + 67 * col2 * + ( ( - col2 ) ) FROM tab2 AS cor0
----
-45292
-48843
-96748

onlyif mysql # use DIV operator for integer division
query I rowsort label-6593
SELECT + ( + col0 ) DIV tab0.col0 col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6593
SELECT + ( + col0 ) / tab0.col0 col1 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6594
SELECT - col2 * + col0 DIV col0 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6594
SELECT - col2 * + col0 / col0 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + tab0.col0 * + tab0.col1 ) col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6596
SELECT col0 * - col2 + - ( col0 ) * - col0 - - CAST( + col1 AS SIGNED ) * col0 col0 FROM tab2 AS cor0
----
4582
77
8658

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6596
SELECT col0 * - col2 + - ( col0 ) * - col0 - - CAST ( + col1 AS INTEGER ) * col0 col0 FROM tab2 AS cor0
----
4582
77
8658

query I rowsort
SELECT DISTINCT col0 + cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT ( col2 ) + col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT col1 + col0 + col2 AS col1 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT DISTINCT + - 88 + col0 * + col2 * col1 AS col2 FROM tab0 AS cor0
----
3307
664030
68024

query I rowsort
SELECT - - col0 * col1 + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - col1 * + ( - col0 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL col2 * col1 + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + col0 + + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - tab2.col0 col2 FROM tab2
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col1 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL cor2.col2 AS col0 FROM tab1, tab1 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT - 41 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT 58 FROM tab0, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT - 12 * col1 FROM tab1 AS cor0
----
-120
-156
-312

onlyif mysql # use DIV operator for integer division
query I rowsort label-6611
SELECT ALL - cor0.col1 * - col2 + + col1 DIV - col0 - col0 FROM tab2 AS cor0
----
1456
567
826

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL - cor0.col1 * - col2 + + col1 / - col0 - col0 FROM tab2 AS cor0
----
1456
567
826

query I rowsort
SELECT DISTINCT - col2 * + col0 + col0 + 86 FROM tab0 AS cor0
----
-682
-7123
86

query I rowsort
SELECT + + ( col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + col0 + 55 AS col1 FROM tab1 AS cor0
----
119
135
58

query I rowsort
SELECT ALL - - cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + ( + col2 ) + + col0 * + col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT tab0.col0 AS col1 FROM tab0, tab1 cor0
----
24
35
89

query I rowsort
SELECT tab2.col0 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL cor0.col1 + col1 * - col2 + - col2 * 97 AS col2 FROM tab1 AS cor0
----
-10547
-6089
-6616

query I rowsort
SELECT ALL 68 + 99 FROM tab0 AS cor0
----
167
167
167

query I rowsort
SELECT DISTINCT - - col1 * + col0 - col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT ALL + col0 * col1 * + col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT cor1.col2 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
26
27
38

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 37 FROM tab0, tab0 cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6626
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6626
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor1.col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT 10 * + col2 FROM tab1 AS cor0
----
540
570
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-6629
SELECT + 62 - col1 DIV + col1 AS col0 FROM tab1
----
61
61
61

skipif mysql # not compatible
query I rowsort label-6629
SELECT + 62 - col1 / + col1 AS col0 FROM tab1
----
61
61
61

query I rowsort
SELECT DISTINCT + 67 AS col0 FROM tab2
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 17 col0 FROM tab0 cor0
----
-1462
-1547
-1649

onlyif mysql # use DIV operator for integer division
query I rowsort label-6632
SELECT DISTINCT col1 DIV 44 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT col1 / 44 FROM tab2 cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + col2 + col2 + + 12 FROM tab1
----
120
126
204

onlyif mysql # use DIV operator for integer division
query I rowsort label-6635
SELECT DISTINCT col1 DIV + 92 + 13 FROM tab0
----
13
14

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT col1 / + 92 + 13 FROM tab0
----
13
14

query I rowsort
SELECT + - cor0.col2 * ( col2 ) + - cor0.col2 FROM tab1 cor0
----
-2970
-3306
-9312

query I rowsort
SELECT - col2 * + ( 54 ) FROM tab1
----
-2916
-3078
-5184

query I rowsort
SELECT DISTINCT - tab2.col0 + + 98 AS col2 FROM tab2
----
19
20
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-6639
SELECT - col0 + - col1 DIV 50 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6639
SELECT - col0 + - col1 / 50 FROM tab1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6640
SELECT + col1 DIV cor0.col0 col2 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6640
SELECT + col1 / cor0.col0 col2 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT DISTINCT + - cor0.col2 * ( + col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + 27 * col2 FROM tab1 AS cor0
----
1458
1539
2592

query I rowsort
SELECT ALL + 78 AS col2 FROM tab0 cor0
----
78
78
78

query I rowsort
SELECT DISTINCT col2 * + col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6645
SELECT - - col0 + - col2 DIV 2 AS col0 FROM tab2 AS cor0
----
-6
60
65

skipif mysql # not compatible
query I rowsort label-6645
SELECT - - col0 + - col2 / 2 AS col0 FROM tab2 AS cor0
----
-6
60
65

query I rowsort
SELECT ALL + ( + col2 ) + 9 * 26 FROM tab1 AS cor0
----
288
291
330

onlyif mysql # use DIV operator for integer division
query I rowsort label-6647
SELECT + 98 + + col1 DIV + col2 FROM tab1 AS cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-6647
SELECT + 98 + + col1 / + col2 FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT DISTINCT + + 26 * col0 + col2 * 19 - - col1 * 74 FROM tab2 AS cor0
----
2989
4034
6888

query I rowsort
SELECT 50 + + col1 * + 58 FROM tab0 AS cor0
----
5038
5328
5676

query I rowsort
SELECT DISTINCT + 31 + + col2 AS col1 FROM tab2 AS cor0
----
57
58
69

query I rowsort
SELECT - ( col0 ) * - col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL cor0.col1 * col1 + col2 + col0 AS col2 FROM tab0 AS cor0
----
7453
8452
9445

query I rowsort
SELECT ALL 43 + + col2 AS col1 FROM tab2 AS cor0
----
69
70
81

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab2 cor2
----
3645 values hashing to 47906197307eee6829150d762058792a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6655
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL 11 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6657
SELECT ALL - cor0.col0 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL - cor0.col0 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 * + 57 AS col1 FROM tab2 AS cor0
----
1482
1539
2166

query I rowsort
SELECT - - cor0.col1 + - col2 * 98 AS col1 FROM tab2 AS cor0
----
-2489
-2615
-3707

query I rowsort
SELECT + col0 * col1 + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + - 32 + - 39 * - col2 FROM tab2 cor0
----
1021
1450
982

query I rowsort
SELECT ALL - 18 FROM tab2 cor0
----
-18
-18
-18

query I rowsort
SELECT cor0.col0 + 64 + + col1 FROM tab1 AS cor0
----
138
157
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6664
SELECT col1 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT col1 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - 53 + cor0.col2 FROM tab2 AS cor0
----
-15
-26
-27

query I rowsort
SELECT ALL + - col0 * - col1 - - col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + ( 74 ) FROM tab1 AS cor0
----
74

query I rowsort
SELECT DISTINCT + - ( col1 ) * + cor0.col2 + - col1 * col0 FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT DISTINCT tab2.col0 + 34 AS col1 FROM tab2
----
112
113
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 + cor0.col0 col1 FROM tab1 AS cor0
----
15
76
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-6671
SELECT DISTINCT + + ( + col0 ) * - col0 + 94 DIV - col0 FROM tab2 AS cor0
----
-6085
-62
-6242

skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT + + ( + col0 ) * - col0 + 94 / - col0 FROM tab2 AS cor0
----
-6085
-62
-6242

onlyif mysql # use DIV operator for integer division
query I rowsort label-6672
SELECT DISTINCT + col1 - + col2 DIV 85 col1 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT + col1 - + col2 / 85 col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + + 99 + + col2 FROM tab0 cor0
----
100
132
181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 * col2 col1 FROM tab2 AS cor0
----
-1274
-1323
-1862

query I rowsort
SELECT - col2 + col1 * cor0.col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
2055
3429
8106

onlyif mysql # use DIV operator for integer division
query I rowsort label-6676
SELECT DISTINCT + col0 DIV col1 + col2 AS col0 FROM tab1
----
102
54
63

skipif mysql # not compatible
query I rowsort label-6676
SELECT DISTINCT + col0 / col1 + col2 AS col0 FROM tab1
----
102
54
63

query I rowsort
SELECT 19 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT 52 + 86 AS col0 FROM tab0
----
138
138
138

query I rowsort
SELECT - col2 - tab2.col2 * col0 AS col2 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT tab0.col0 * col1 + col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + 27 * 96 + - col1 FROM tab1
----
2566
2579
2582

query I rowsort
SELECT ALL + 88 + + 71 AS col2 FROM tab1
----
159
159
159

query I rowsort
SELECT + 92 * col1 FROM tab2 AS cor0
----
1564
2852
5428

query I rowsort
SELECT + cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6685
SELECT - 76 DIV + col0 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-6685
SELECT - 76 / + col0 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT + 61 + col0 FROM tab2 AS cor0
----
139
140
68

query I rowsort
SELECT - tab0.col2 * 98 * + col1 FROM tab0
----
-278124
-731276
-9506

query I rowsort
SELECT + tab0.col0 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col0 AS col1 FROM tab2, tab0, tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL 81 FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT + + col2 + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6692
SELECT DISTINCT col0 * + col1 DIV + ( - col2 * col2 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT col0 * + col1 / + ( - col2 * col2 ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 * - cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - 74 FROM tab2
----
-74
-74
-74

query I rowsort
SELECT - 35 * tab0.col2 * - 99 AS col0 FROM tab0
----
114345
284130
3465

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6696
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT tab1.col2 * - col1 + - tab1.col0 * - col2 FROM tab1
----
-1242
3078
6432

query I rowsort
SELECT col0 + + 40 + + col2 * + cor0.col2 FROM tab0 AS cor0
----
1153
6853
76

query I rowsort
SELECT - ( 40 ) - - col1 FROM tab0 AS cor0
----
46
51
57

query I rowsort
SELECT col1 + + col0 * + tab2.col1 + - col2 FROM tab2
----
1322
221
4635

query I rowsort
SELECT ALL + col1 * + col0 + + cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-6702
SELECT DISTINCT - tab0.col2 DIV + col2 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT - tab0.col2 / + col2 AS col0 FROM tab0
----
-1

query I rowsort
SELECT 4 FROM tab2, tab1 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT - + col1 * col0 - cor0.col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 * - cor0.col2 + cor0.col2 * col2 col1 FROM tab0 cor0
----
-1089
-65
1312

query I rowsort
SELECT + col0 * col1 - + col0 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT cor0.col2 * + col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6708
SELECT CAST( + col2 AS SIGNED ) * - col0 FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-6708
SELECT CAST ( + col2 AS INTEGER ) * - col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ( + col2 ) + - col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( - col2 ) * - col0 - + col0 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6711
SELECT ( + col0 ) * col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6711
SELECT ( + col0 ) * col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 97 * + 34 + col0 + 14 FROM tab0 AS cor0
----
-3195
-3249
-3260

query I rowsort
SELECT DISTINCT - ( - col0 ) + + col2 * 13 FROM tab2 AS cor0
----
358
416
573

onlyif mysql # use DIV operator for integer division
query I rowsort label-6714
SELECT DISTINCT + col1 DIV + cor0.col2 AS col0 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6714
SELECT DISTINCT + col1 / + cor0.col2 AS col0 FROM tab0 cor0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6715
SELECT + col2 + + col1 + cor0.col1 DIV + col1 FROM tab0 AS cor0
----
120
174
99

skipif mysql # not compatible
query I rowsort label-6715
SELECT + col2 + + col1 + cor0.col1 / + col1 FROM tab0 AS cor0
----
120
174
99

query I rowsort
SELECT - 25 * cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to e355f1314e550ddd0c7740ff16769d7e

query I rowsort
SELECT ALL - + 21 + - cor0.col2 - col2 FROM tab2 AS cor0
----
-73
-75
-97

query I rowsort
SELECT DISTINCT + 55 + 18 AS col0 FROM tab2 AS cor0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 52 col0 FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT ALL - + 47 * col2 AS col2 FROM tab1 AS cor0
----
-2538
-2679
-4512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 18 ) col0 FROM tab1
----
18
18
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6723
SELECT - CAST( cor0.col0 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-6723
SELECT - CAST ( cor0.col0 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - cor0.col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6725
SELECT + ( - col1 ) + + col1 DIV cor0.col0 FROM tab1 AS cor0
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-6725
SELECT + ( - col1 ) + + col1 / cor0.col0 FROM tab1 AS cor0
----
-10
-13
-18

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-1
-33
-82

query I rowsort
SELECT DISTINCT col0 * col0 * ( col2 + col1 ) FROM tab2
----
2842
343255
517140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col2 FROM tab1
----
53
53
53

query I rowsort
SELECT + col0 * 9 AS col2 FROM tab1 AS cor0
----
27
576
720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * cor0.col0 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col0 + - 9 AS col2 FROM tab1 AS cor0
----
-6
55
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 81 col2 FROM tab1 AS cor0
----
1053
2106
810

query I rowsort
SELECT ALL + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 47 + 97 col0 FROM tab2 AS cor0
----
3763
3810
426

query I rowsort
SELECT - col2 * + cor0.col1 * col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6736
SELECT - col0 DIV - 58 + col0 AS col1 FROM tab2 AS cor0
----
7
79
80

skipif mysql # not compatible
query I rowsort label-6736
SELECT - col0 / - 58 + col0 AS col1 FROM tab2 AS cor0
----
7
79
80

query I rowsort
SELECT DISTINCT - col2 + + col2 + 64 AS col1 FROM tab2
----
64

query I rowsort
SELECT ALL - col1 + - col0 * 68 FROM tab0
----
-1718
-2477
-6143

query I rowsort
SELECT ALL tab0.col1 + + col1 + + col1 AS col0 FROM tab0
----
258
273
291

query I rowsort
SELECT ALL + col2 + + col1 + col1 FROM tab1
----
106
122
77

query I rowsort
SELECT 52 FROM tab0, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT col2 + 82 FROM tab1
----
136
139
178

query I rowsort
SELECT ALL + - col2 + - col2 * - 23 FROM tab1 AS cor0
----
1188
1254
2112

query I rowsort
SELECT + - 49 FROM tab1, tab1 cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # use DIV operator for integer division
query I rowsort label-6745
SELECT DISTINCT + col2 + + ( col0 ) DIV cor0.col1 FROM tab1 cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-6745
SELECT DISTINCT + col2 + + ( col0 ) / cor0.col1 FROM tab1 cor0
----
102
54
63

query I rowsort
SELECT + + cor0.col0 * + cor0.col2 * 36 + col0 AS col2 FROM tab0 AS cor0
----
1295
262817
28536

query I rowsort
SELECT DISTINCT + + col2 * - ( col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT 29 + col2 AS col0 FROM tab2 AS cor0
----
55
56
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6749
SELECT - CAST( + col2 AS SIGNED ) * col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6749
SELECT - CAST ( + col2 AS INTEGER ) * col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + ( + col0 ) ) * - 76 AS col1 FROM tab0 AS cor0
----
1824
2660
6764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 5 + + col0 col1 FROM tab2 AS cor0
----
12
83
84

query I rowsort
SELECT DISTINCT - col2 * - 95 FROM tab2 AS cor0
----
2470
2565
3610

onlyif mysql # use DIV operator for integer division
query I rowsort label-6753
SELECT ALL + ( col0 ) DIV cor0.col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL + ( col0 ) / cor0.col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + + 67 * + col0 + - col0 FROM tab1 AS cor0
----
198
4224
5280

query I rowsort
SELECT DISTINCT + 53 AS col0 FROM tab1 AS cor0
----
53

query I rowsort
SELECT col0 * + col2 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - col0 * + 91 AS col2 FROM tab0
----
-2184
-3185
-8099

query I rowsort
SELECT - 19 * 2 * tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 9453754dd1c7302bd1444f9da04090f5

query I rowsort
SELECT - tab2.col2 * + 93 FROM tab2
----
-2418
-2511
-3534

query I rowsort
SELECT col1 * - tab1.col1 * col2 - col0 FROM tab1
----
-16304
-36507
-5764

query I rowsort
SELECT ALL + 5 * - 36 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 220e00289e1864f7a2e2ca39a6193a4a

query I rowsort
SELECT DISTINCT ( + col0 ) * + cor0.col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL + - cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + + ( - col0 ) * col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - ( - col1 ) * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6766
SELECT ALL 0 + + col0 DIV 28 col1 FROM tab2 cor0
----
0
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL 0 + + col0 / 28 col1 FROM tab2 cor0
----
0
2
2

query I rowsort
SELECT DISTINCT - col2 + col1 * - 1 * 94 FROM tab0 AS cor0
----
-8117
-8636
-9119

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - 44 FROM tab0 cor0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT + + ( + col0 ) + col2 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - 82 AS col2 FROM tab2 AS cor0
----
-82
-82
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6772
SELECT + - col1 + - col1 DIV - 19 FROM tab2 AS cor0
----
-17
-30
-56

skipif mysql # not compatible
query I rowsort label-6772
SELECT + - col1 + - col1 / - 19 FROM tab2 AS cor0
----
-17
-30
-56

query I rowsort
SELECT DISTINCT + - 90 + col1 FROM tab0 AS cor0
----
-4
1
7

query I rowsort
SELECT ALL - - ( col0 ) + + 27 * col1 AS col2 FROM tab0 AS cor0
----
2346
2546
2654

query I rowsort
SELECT ALL - cor0.col2 + + col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - + 73 AS col1 FROM tab0 AS cor0
----
-73
-73
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6777
SELECT ALL + + ( - col0 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL + + ( - col0 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 - col0 * ( + col0 ) * + col2 AS col0 FROM tab2 AS cor0
----
-1296
-158158
-237120

query I rowsort
SELECT ALL col0 + col0 * - col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT 20 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6781
SELECT DISTINCT - col1 * CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-6781
SELECT DISTINCT - col1 * CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + - col0 * - col0 * 14 FROM tab0 AS cor0
----
110894
17150
8064

query I rowsort
SELECT - + col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col2 - + tab2.col2 * - col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT ALL + col2 * + col1 + + col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT DISTINCT tab2.col1 * col0 + - col1 * - col0 * - col1 + + col1 FROM tab2
----
-21471
-266857
-6479

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 * - tab1.col0 col2 FROM tab1
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-6788
SELECT + col1 DIV - col2 + + col2 DIV - col0 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-6788
SELECT + col1 / - col2 + + col2 / - col0 FROM tab1
----
-1
-18
0

query I rowsort
SELECT - col0 * - tab0.col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT + + col0 + col0 * col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( tab0.col1 ) AND NOT NULL >= ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6792
SELECT DISTINCT col2 DIV - col0 + + col1 FROM tab2
----
17
28
59

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT col2 / - col0 + + col1 FROM tab2
----
17
28
59

query I rowsort
SELECT col2 * col0 + tab1.col0 * + col0 FROM tab1
----
14080
171
7744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 + col0 * - col1 col2 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT col0 + col1 * col1 FROM tab1
----
164
249
679

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col2 ) NOT IN ( + col1 + + col1 )
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0 * cor0.col2 - + col2 OR NOT - col1 <> col1
----

query I rowsort
SELECT - col0 + + col1 * col2 * col0 AS col2 FROM tab1 AS cor0
----
36416
4209
99760

query I rowsort
SELECT DISTINCT - + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + col2 + col2 AS col0 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + - col1 - col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + + col0 * col0 + + col1 * + cor0.col2 FROM tab2 AS cor0
----
6887
7618
886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + tab1.col1 col2 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL + col1 + + col2 + col1 AS col0 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col1 * - cor0.col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - + col0 + - col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6808
SELECT ALL + col1 DIV - col0 + col1 FROM tab0 AS cor0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL + col1 / - col0 + col1 FROM tab0 AS cor0
----
83
90
95

query I rowsort
SELECT DISTINCT - 35 + col2 FROM tab0 AS cor0
----
-2
-34
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-6810
SELECT - - 16 DIV col0 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6810
SELECT - - 16 / col0 + col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 * col2 col1 FROM tab2 AS cor0
----
2210
2295
3230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + col1 - + col2 col0 FROM tab0 AS cor0
----
-1
-2785
-7453

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 - col2 + col0 + + col1 * col0 col2 FROM tab2 AS cor0
----
1384
197
4654

query I rowsort
SELECT ALL - col2 * - col0 AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT cor0.col0 * col2 + - col1 - + col2 AS col0 FROM tab1 AS cor0
----
3581
7571
82

query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 + + col1 col0 FROM tab2
----
110
68
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * - col0 col0 FROM tab2 cor0
----
-189
-2028
-3002

query III rowsort
SELECT * FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT - col1 * tab2.col2 * col2 AS col1 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT col2 * - col1 + + col2 * col2 FROM tab0
----
-1749
-738
-96

query I rowsort
SELECT DISTINCT tab1.col2 + + col0 * - col1 * col1 AS col1 FROM tab1
----
-13424
-1974
-6343

onlyif mysql # use DIV operator for integer division
query I rowsort label-6824
SELECT DISTINCT - col2 DIV - col2 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6824
SELECT DISTINCT - col2 / - col2 AS col1 FROM tab1
----
1

query I rowsort
SELECT + col0 + col0 + col1 AS col0 FROM tab1
----
138
173
32

query I rowsort
SELECT DISTINCT - col2 * + col0 + col2 + - col0 AS col2 FROM tab0
----
-69
-7305
-783

query I rowsort
SELECT - tab1.col0 * col2 * + col0 FROM tab1
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6828
SELECT + col0 * + col1 DIV col1 AS col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6828
SELECT + col0 * + col1 / col1 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT + col1 + - col2 + - col1 * col1 AS col1 FROM tab0
----
-7343
-8272
-9313

onlyif mysql # use DIV operator for integer division
query I rowsort label-6830
SELECT ALL col0 DIV + tab2.col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL col0 / + tab2.col0 AS col1 FROM tab2
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( col2 / col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6832
SELECT ALL + tab1.col1 DIV col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL + tab1.col1 / col1 FROM tab1
----
1
1
1

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE + col2 - - col1 IN ( + tab1.col0 )
----

query I rowsort
SELECT DISTINCT col2 + - col0 + + tab0.col1 AS col0 FROM tab0
----
63
84
95

query I rowsort
SELECT 61 + - col2 * + cor0.col2 FROM tab2 AS cor0
----
-1383
-615
-668

onlyif mysql # use DIV operator for integer division
query I rowsort label-6836
SELECT + 59 DIV + col2 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6836
SELECT + 59 / + col2 FROM tab1 cor0
----
0
1
1

query I rowsort
SELECT col0 + col2 FROM tab0 WHERE NOT col0 IN ( col0 * - col1 + col1 )
----
171
36
57

query I rowsort
SELECT tab1.col1 * + col1 + tab1.col2 AS col1 FROM tab1
----
157
265
730

query I rowsort
SELECT + col0 * - col2 * + tab1.col2 FROM tab1
----
-207936
-737280
-8748

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = ( + col1 + col0 )
----

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 AS col0 FROM tab0 cor0
----
171
36
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2 )
----

query I rowsort
SELECT ALL col0 + - col2 + col1 * + col2 FROM tab2 AS cor0
----
1586
687
817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 * - col1 col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT col0 + - tab2.col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT + col2 + col0 AS col0 FROM tab1 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT col1 * + col1 + col0 AS col2 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT col1 + col1 + - cor0.col2 AS col0 FROM tab0 cor0
----
100
139
193

query I rowsort
SELECT ALL + col0 - col0 * - col1 FROM tab1 AS cor0 WHERE NOT - cor0.col1 + - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col1 * - tab1.col0 * tab1.col2 + - col0 FROM tab1
----
36416
4209
99760

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE NOT - col1 <= NULL
----

query I rowsort
SELECT - col1 + tab1.col1 AS col0 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6853
SELECT - col0 + tab1.col0 DIV - col1 FROM tab1
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-6853
SELECT - col0 + tab1.col0 / - col1 FROM tab1
----
-3
-70
-86

query I rowsort
SELECT + cor1.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - + ( - col0 ) * - 66 + - col2 FROM tab0 AS cor0
----
-1617
-2311
-5956

query I rowsort
SELECT DISTINCT 9 AS col0 FROM tab0
----
9

query I rowsort
SELECT + col1 * + col0 AS col0 FROM tab1 cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + 42 col2 FROM tab0 AS cor0
----
2106
3437
8141

query I rowsort
SELECT - cor0.col0 + col0 * 11 * ( col2 ) FROM tab2 AS cor0
----
2072
22230
32943

onlyif mysql # use DIV operator for integer division
query I rowsort label-6860
SELECT ALL - col0 * CAST( 7 AS SIGNED ) + + col0 DIV col1 + col0 FROM tab0 AS cor0
----
-144
-210
-534

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL - col0 * CAST ( 7 AS INTEGER ) + + col0 / col1 + col0 FROM tab0 AS cor0
----
-144
-210
-534

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6861
SELECT DISTINCT - - col0 * + CAST( ( + col2 ) AS SIGNED ) - + CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
108
3591
7584

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT - - col0 * + CAST ( ( + col2 ) AS INTEGER ) - + CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6862
SELECT - 80 DIV tab0.col0 + col2 FROM tab0
----
-1
30
82

skipif mysql # not compatible
query I rowsort label-6862
SELECT - 80 / tab0.col0 + col2 FROM tab0
----
-1
30
82

query I rowsort
SELECT - col0 + col2 * + ( 24 ) FROM tab2
----
546
641
833

query I rowsort
SELECT - ( - col0 ) - + ( - 86 ) FROM tab2
----
164
165
93

query I rowsort
SELECT - 8 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 852581644118629bf652b1aa4b8f4363

query I rowsort
SELECT - col0 + 12 + - cor0.col0 AS col0 FROM tab0 cor0
----
-166
-36
-58

query I rowsort
SELECT - cor0.col1 * col2 + col1 * col2 - col1 AS col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT - col2 * + 33 + - col2 * 38 + col1 FROM tab0 cor0
----
-2257
-5731
26

query I rowsort
SELECT cor1.col1 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL - col2 * + col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - 67 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT DISTINCT 64 AS col2 FROM tab2, tab0 AS cor0
----
64

query I rowsort
SELECT ALL col2 * + 37 AS col2 FROM tab2
----
1406
962
999

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab1, tab2 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT col0 * - 57 FROM tab2
----
-399
-4446
-4503

query I rowsort
SELECT - 78 * + col1 + - col2 - ( col1 ) AS col1 FROM tab0 cor0
----
-6827
-7271
-7664

query I rowsort
SELECT - + 26 + + 33 FROM tab1 AS cor0
----
7
7
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6878
SELECT CAST( NULL AS SIGNED ) * + tab0.col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6878
SELECT CAST ( NULL AS INTEGER ) * + tab0.col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 68 + 40 AS col0 FROM tab2
----
108
108
108

query I rowsort
SELECT DISTINCT + 58 FROM tab1, tab2, tab2 AS cor0
----
58

query I rowsort
SELECT - 43 * col0 AS col2 FROM tab0
----
-1032
-1505
-3827

query I rowsort
SELECT + col1 * - col1 * + col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT - 84 + col1 FROM tab1
----
-58
-71
-74

query I rowsort
SELECT + ( col1 ) * + col2 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT + 91 + - col2 FROM tab1 AS cor0
----
-5
34
37

query I rowsort
SELECT 23 + col0 FROM tab2
----
101
102
30

query I rowsort
SELECT - col0 + - col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT ALL + - 44 * - col0 AS col2 FROM tab0 AS cor0
----
1056
1540
3916

query I rowsort
SELECT ALL - ( - cor0.col1 ) + cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ( - col2 ) * - ( - cor0.col0 ) + + col0 * 72 AS col2 FROM tab0 AS cor0
----
-890
2485
936

query I rowsort
SELECT DISTINCT - 5 + col1 + col0 * col2 * - tab0.col2 AS col1 FROM tab0
----
-26055
-598350
57

query I rowsort
SELECT ALL - - 91 * col1 FROM tab1 AS cor0
----
1183
2366
910

query I rowsort
SELECT + - col1 * col2 + col2 AS col1 FROM tab0 cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6894
SELECT DISTINCT + - col0 DIV col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT + - col0 / col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL - - 18 AS col1 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT ALL + - 57 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1482
1539
2166

onlyif mysql # use DIV operator for integer division
query I rowsort label-6897
SELECT + col1 * col2 DIV + col1 AS col0 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6897
SELECT + col1 * col2 / + col1 AS col0 FROM tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 col0 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6899
SELECT ALL - 60 DIV col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL - 60 / col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT - ( + col1 ) + col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + 59 * - col2 FROM tab2 cor0
----
-1534
-1593
-2242

query I rowsort
SELECT col0 * col2 + + 10 * col2 FROM tab0 AS cor0
----
1122
45
8118

query I rowsort
SELECT ALL + 63 + cor0.col0 * ( - col0 ) FROM tab1 AS cor0
----
-4033
-6337
54

query I rowsort
SELECT DISTINCT col1 * cor0.col0 + + cor0.col0 FROM tab1 cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6905
SELECT + col0 DIV - col2 + - col2 FROM tab1 cor0
----
-54
-58
-96

skipif mysql # not compatible
query I rowsort label-6905
SELECT + col0 / - col2 + - col2 FROM tab1 cor0
----
-54
-58
-96

query I rowsort
SELECT + col0 * col1 + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-3008
-6640
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6907
SELECT col1 + + CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
20
26
52

skipif mysql # not compatible
query I rowsort label-6907
SELECT col1 + + CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6908
SELECT + cor0.col2 + CAST( NULL AS SIGNED ) * - 70 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6908
SELECT + cor0.col2 + CAST ( NULL AS INTEGER ) * - 70 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 + 5 * - col0 FROM tab2 AS cor0
----
-28
-312
-316

onlyif mysql # use DIV operator for integer division
query I rowsort label-6910
SELECT DISTINCT - col1 DIV + ( 23 ) - + col0 FROM tab1 AS cor0
----
-4
-64
-80

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT - col1 / + ( 23 ) - + col0 FROM tab1 AS cor0
----
-4
-64
-80

query I rowsort
SELECT + + col2 * - 69 FROM tab0 AS cor0
----
-2277
-5658
-69

query I rowsort
SELECT + cor0.col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col0 * col1 + - col0 - + col2 FROM tab1 AS cor0
----
21
519
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-6914
SELECT DISTINCT - - cor0.col0 DIV + col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT - - cor0.col0 / + col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + + ( col2 ) * cor0.col0 + col1 * - col2 - col1 * 89 FROM tab1 AS cor0
----
-3556
2188
5275

query I rowsort
SELECT cor0.col2 * 46 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 3121f6be9a5d76eb37ea36d8aaff5ae9

query I rowsort
SELECT 16 * - 10 - col0 AS col2 FROM tab0 cor0
----
-184
-195
-249

onlyif mysql # use DIV operator for integer division
query I rowsort label-6918
SELECT - - col0 DIV col1 - + cor0.col1 AS col0 FROM tab2 AS cor0
----
-13
-31
-58

skipif mysql # not compatible
query I rowsort label-6918
SELECT - - col0 / col1 - + cor0.col1 AS col0 FROM tab2 AS cor0
----
-13
-31
-58

query I rowsort
SELECT DISTINCT - cor0.col2 + - 23 * - col0 AS col1 FROM tab0 AS cor0
----
1965
519
804

onlyif mysql # use DIV operator for integer division
query I rowsort label-6920
SELECT - col2 DIV 13 - col0 col0 FROM tab0 AS cor0
----
-26
-35
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6920
SELECT - col2 / 13 - col0 col0 FROM tab0 AS cor0
----
-26
-35
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6921
SELECT DISTINCT - col0 + + col1 DIV + col1 col2 FROM tab2 AS cor0
----
-6
-77
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6921
SELECT DISTINCT - col0 + + col1 / + col1 col2 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT - - 15 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT - + col2 - col1 * + col2 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT + col1 + ( - cor0.col2 ) * + col2 + - 2 AS col2 FROM tab0 AS cor0
----
-1005
-6635
94

query I rowsort
SELECT + cor0.col2 * + col1 * + col2 + - col0 AS col0 FROM tab1 AS cor0
----
119728
32426
75813

onlyif mysql # use DIV operator for integer division
query I rowsort label-6926
SELECT col0 + col2 * col0 DIV col1 FROM tab2 AS cor0
----
112
13
255

skipif mysql # not compatible
query I rowsort label-6926
SELECT col0 + col2 * col0 / col1 FROM tab2 AS cor0
----
112
13
255

query I rowsort
SELECT ALL - col2 * - 80 AS col2 FROM tab0 AS cor0
----
2640
6560
80

query I rowsort
SELECT DISTINCT - - cor0.col1 * + col1 * col0 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT + col1 + 5 * + col0 FROM tab0 AS cor0
----
206
272
536

query I rowsort
SELECT + col2 * ( - 36 * cor0.col1 ) FROM tab2 cor0
----
-23256
-30132
-55224

query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - ( col1 ) * - col2 + - 72 FROM tab1
----
1176
1332
498

query I rowsort
SELECT ALL - 75 + col1 FROM tab2
----
-16
-44
-58

query I rowsort
SELECT DISTINCT col2 * - col1 + col2 * + tab0.col0 FROM tab0
----
-164
-2046
-62

query I rowsort
SELECT DISTINCT + tab1.col1 * col1 + + 46 FROM tab1
----
146
215
722

query I rowsort
SELECT tab1.col0 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT col2 - - col2 * + tab2.col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT ALL + + 97 * - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 23b5686a3c43d836adc700132098e223

query I rowsort
SELECT - - col1 + + 92 AS col0 FROM tab2 AS cor0
----
109
123
151

query I rowsort
SELECT ALL + col0 + ( col1 * col0 ) FROM tab0 AS cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 4 * col0 col0 FROM tab2 AS cor0
----
-253
-299
3

query I rowsort
SELECT DISTINCT + col1 * - ( - col2 ) - + cor0.col1 FROM tab1 cor0
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-6943
SELECT + - cor0.col2 * col1 - + col0 DIV - col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-6943
SELECT + - cor0.col2 * col1 - + col0 / - col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6944
SELECT col0 DIV 68 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6944
SELECT col0 / 68 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 44 ) * + col2 * tab1.col1 - + col2 * + col1 col2 FROM tab1
----
-25650
-56160
-63180

query I rowsort
SELECT DISTINCT + 46 FROM tab1, tab0 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 + col1 col0 FROM tab1 cor0
----
106
122
77

query I rowsort
SELECT - + col2 + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6949
SELECT DISTINCT - cor0.col0 DIV - col2 + cor0.col1 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT - cor0.col0 / - col2 + cor0.col1 FROM tab0 AS cor0
----
132
86
92

query I rowsort
SELECT col2 + + col2 + col1 * col1 AS col2 FROM tab1
----
214
361
784

query I rowsort
SELECT ( + col2 ) + 16 + + col1 * col1 AS col1 FROM tab1
----
173
281
746

query I rowsort
SELECT DISTINCT + ( - col0 ) * ( + col2 ) + - col2 * + col0 AS col2 FROM tab0
----
-14596
-1584
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6953
SELECT - col1 + + col2 * CAST( NULL AS DECIMAL ) * + 46 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6953
SELECT - col1 + + col2 * CAST ( NULL AS REAL ) * + 46 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6954
SELECT DISTINCT + + col2 * col0 DIV 65 AS col1 FROM tab0 AS cor0
----
0
112
12

skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT + + col2 * col0 / 65 AS col1 FROM tab0 AS cor0
----
0
112
12

query I rowsort
SELECT ALL + col2 * col1 - - col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT ALL - 74 AS col1 FROM tab1 AS cor0
----
-74
-74
-74

query I rowsort
SELECT - col0 * col0 + + ( 79 ) FROM tab2 AS cor0
----
-6005
-6162
30

query I rowsort
SELECT ALL + 88 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0, tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - col1 + cor0.col0 * - col0 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT cor1.col1 + 49 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ca39a2df60f5559cd03c4dc4a8b9eeb7

query I rowsort
SELECT ALL - 44 AS col1 FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT ALL + - ( cor0.col1 ) AS col1 FROM tab2 cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6964
SELECT col0 + cor0.col0 DIV - 57 FROM tab0 AS cor0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-6964
SELECT col0 + cor0.col0 / - 57 FROM tab0 AS cor0
----
24
35
88

query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6966
SELECT + col1 * CAST( NULL AS SIGNED ) + - 52 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6966
SELECT + col1 * CAST ( NULL AS INTEGER ) + - 52 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col2 + - col0 * - col0 - 35 AS col0 FROM tab0 AS cor0
----
-251
1155
588

query I rowsort
SELECT - col2 * + ( + col0 * col1 + ( col2 ) ) FROM tab0 AS cor0
----
-3396
-670842
-69201

query I rowsort
SELECT - - col2 + + ( + col1 ) * col1 FROM tab2 AS cor0
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-6970
SELECT - col1 DIV 80 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6970
SELECT - col1 / 80 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 44 FROM tab1
----
44

query I rowsort
SELECT DISTINCT - 42 AS col1 FROM tab2, tab1 AS cor0
----
-42

query I rowsort
SELECT + 48 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + 77 * - col1 FROM tab0 AS cor0
----
-6622
-7007
-7469

query I rowsort
SELECT + - col2 + + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT - 66 AS col0 FROM tab1
----
-66
-66
-66

query I rowsort
SELECT DISTINCT + 57 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
57

query I rowsort
SELECT ( cor0.col2 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to a5677c50b23f70287df35c2388a1c9bf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 * + ( - col0 ) col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL + tab0.col0 + + col0 AS col2 FROM tab0
----
178
48
70

query I rowsort
SELECT - col2 + + cor0.col2 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + + col2 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + col0 + + col2 * 0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - 44 FROM tab2 AS cor0
----
-44
-44
-44

query I rowsort
SELECT - - ( col1 ) * col2 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col2 AS REAL ) AS col0 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT + - col2 * - 36 FROM tab0 AS cor0
----
1188
2952
36

query I rowsort
SELECT 16 FROM tab1, tab2 AS cor0, tab2, tab2 cor1
----
81 values hashing to 9ffb4aaf972de606a4957894645b6216

query I rowsort
SELECT ALL 16 * ( - col1 * - ( col0 ) ) AS col0 FROM tab2 AS cor0
----
21488
3472
73632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 + cor0.col2 col0 FROM tab1 AS cor0
----
121
124
163

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7

query I rowsort
SELECT - ( col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6994
SELECT - 97 DIV col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-6994
SELECT - 97 / col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - col0 + - col0 + + col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - cor0.col1 * ( + col0 ) - cor0.col1 * 67 FROM tab2 AS cor0
----
-2294
-2482
-8555

query I rowsort
SELECT DISTINCT + + col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - col2 * + ( col0 ) - + cor0.col1 AS col2 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL - - col1 + + 76 FROM tab2 AS cor0
----
107
135
93

query I rowsort
SELECT col2 + 49 FROM tab1 AS cor0
----
103
106
145

query I rowsort
SELECT DISTINCT + col1 * - 1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT col2 * 34 FROM tab1 cor0
----
1836
1938
3264

query I rowsort
SELECT - - col1 - ( 61 + col2 ) * cor0.col2 FROM tab0 AS cor0
----
-11635
-3016
35

query I rowsort
SELECT ALL + col2 + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - col1 * ( col1 ) + + col0 FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT ALL - tab0.col0 - col2 FROM tab0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7007
SELECT ( - col2 ) DIV - col2 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7007
SELECT ( - col2 ) / - col2 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT + + col2 * + ( 88 ) AS col1 FROM tab0 cor0
----
2904
7216
88

query I rowsort
SELECT ALL ( cor0.col0 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + 53 col2 FROM tab0 AS cor0
----
142
77
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - ( + col1 ) col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - 18 FROM tab1, tab1 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT ALL + col1 * col1 + - col0 * + col2 AS col1 FROM tab2 AS cor0
----
-2713
1453
772

query I rowsort
SELECT ALL + + cor0.col0 - + 41 FROM tab0 AS cor0
----
-17
-6
48

query I rowsort
SELECT ALL col0 + col1 * + 1 + + col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT DISTINCT - col2 - + 3 AS col0 FROM tab0 AS cor0
----
-36
-4
-85

query I rowsort
SELECT + col0 + 62 - + col2 AS col1 FROM tab2
----
103
114
42

query I rowsort
SELECT - col2 * 70 AS col2 FROM tab0
----
-2310
-5740
-70

query I rowsort
SELECT ALL - col0 - - 6 AS col2 FROM tab0
----
-18
-29
-83

query I rowsort
SELECT DISTINCT tab1.col2 - + tab1.col1 * + tab1.col2 FROM tab1
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7021
SELECT ALL tab0.col0 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL tab0.col0 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 - + tab1.col2 * + col2 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT col1 + 37 FROM tab1
----
47
50
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7024
SELECT DISTINCT - + col2 * col1 + col2 * col0 * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
113430
4266
51194

skipif mysql # not compatible
query I rowsort label-7024
SELECT DISTINCT - + col2 * col1 + col2 * col0 * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
113430
4266
51194

query I rowsort
SELECT col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 81 - col1 col1 FROM tab0 AS cor0
----
-7052
-7462
-7954

query I rowsort
SELECT DISTINCT + col0 * - col1 + + col2 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-7028
SELECT DISTINCT - cor0.col0 + - col2 * col1 DIV col1 FROM tab0 cor0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-7028
SELECT DISTINCT - cor0.col0 + - col2 * col1 / col1 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT + col0 + col0 * - ( + tab1.col1 ) FROM tab1
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7030
SELECT + col1 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7030
SELECT + col1 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col1 * col1 + tab0.col2 FROM tab0
----
7343
8272
9313

query I rowsort
SELECT - col2 + col0 * - col0 AS col1 FROM tab2
----
-6110
-6279
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-7033
SELECT + col2 DIV 87 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7033
SELECT + col2 / 87 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 * col0 - col2 AS col0 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT ALL + 67 + - col0 FROM tab2 AS cor0
----
-11
-12
60

query I rowsort
SELECT - col2 + col0 * + col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 col2 FROM tab1 AS cor0
----
-81
-81
-81

query I rowsort
SELECT ALL + + cor0.col1 + col0 * 40 * col1 AS col0 FROM tab2 AS cor0
----
184139
53737
8711

query I rowsort
SELECT + 73 + col1 FROM tab2
----
104
132
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 - - tab2.col0 col0 FROM tab2
----
102
103
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-7041
SELECT DISTINCT + col1 DIV 16 + - col1 FROM tab0
----
-81
-86
-91

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT + col1 / 16 + - col1 FROM tab0
----
-81
-86
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-7042
SELECT col2 * - col2 + col2 DIV 35 FROM tab2
----
-1443
-676
-729

skipif mysql # not compatible
query I rowsort label-7042
SELECT col2 * - col2 + col2 / 35 FROM tab2
----
-1443
-676
-729

query I rowsort
SELECT - ( + col2 ) + col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT 47 AS col2 FROM tab1, tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT - + col1 * - col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - 78 * - cor0.col1 * 24 AS col0 FROM tab0 AS cor0
----
160992
170352
181584

query I rowsort
SELECT DISTINCT - col0 * + col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ( + col0 ) + + col2 * + 59 AS col2 FROM tab0 AS cor0
----
1971
4927
94

query I rowsort
SELECT ALL - col0 + - col1 * - col1 * + cor0.col2 FROM tab0 AS cor0
----
244044
678953
9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL - col2 + + col1 * + col2 AS col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT + col2 * col0 + 39 * + 6 - - cor0.col0 AS col0 FROM tab0 AS cor0
----
1050
304
7621

query I rowsort
SELECT + 35 + + col1 FROM tab2 AS cor0
----
52
66
94

query I rowsort
SELECT DISTINCT + ( col1 ) * - col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-7055
SELECT 43 * col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-7055
SELECT 43 * col2 / - col2 AS col1 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT ALL + - cor0.col1 * - col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL 7 AS col0 FROM tab1
----
7
7
7

query I rowsort
SELECT DISTINCT + 94 * ( + col0 ) AS col2 FROM tab0 AS cor0
----
2256
3290
8366

query I rowsort
SELECT + col2 * - col2 + col1 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT - 10 AS col1 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT - ( - col2 ) + ( - cor0.col0 ) - + col1 AS col0 FROM tab0 AS cor0
----
-131
-77
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7062
SELECT DISTINCT - 40 DIV + col0 AS col0 FROM tab1 AS cor0
----
-13
0

skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT - 40 / + col0 AS col0 FROM tab1 AS cor0
----
-13
0

query I rowsort
SELECT - + 32 * col0 + 83 + - col1 AS col1 FROM tab1 cor0
----
-1975
-2490
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-7064
SELECT 13 DIV col1 + cor0.col0 - 68 FROM tab0 AS cor0
----
-33
-44
21

skipif mysql # not compatible
query I rowsort label-7064
SELECT 13 / col1 + cor0.col0 - 68 FROM tab0 AS cor0
----
-33
-44
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7065
SELECT + col2 * cor0.col1 + - CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7065
SELECT + col2 * cor0.col1 + - CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7066
SELECT DISTINCT 42 DIV - col0 + + col2 * col0 + col0 FROM tab2
----
190
2106
3081

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT 42 / - col0 + + col2 * col0 + col0 FROM tab2
----
190
2106
3081

query I rowsort
SELECT + col2 + col0 * - col1 + ( - 99 ) * - col2 AS col1 FROM tab0
----
-3295
101
1236

query I rowsort
SELECT DISTINCT - + cor0.col2 + col2 AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT col2 * - ( - 59 ) + - col1 FROM tab1 AS cor0
----
3160
3353
5651

query I rowsort
SELECT DISTINCT - - col0 * col2 + - 27 AS col1 FROM tab0 AS cor0
----
7271
765
8

query I rowsort
SELECT DISTINCT + - col0 + col0 AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT - - col1 * + col1 + col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL col2 - 78 FROM tab1 AS cor0
----
-21
-24
18

query I rowsort
SELECT - col0 * 84 FROM tab0 AS cor0
----
-2016
-2940
-7476

query I rowsort
SELECT DISTINCT 68 + tab2.col2 AS col2 FROM tab2
----
106
94
95

query I rowsort
SELECT DISTINCT 68 * - col1 + col2 * col2 AS col1 FROM tab1
----
1148
2569
8332

query I rowsort
SELECT DISTINCT 60 + col0 FROM tab2
----
138
139
67

query I rowsort
SELECT DISTINCT + tab1.col2 AS col1 FROM tab1, tab2, tab2 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7079
SELECT col2 + - tab1.col0 DIV - ( - col2 ) FROM tab1
----
54
56
96

skipif mysql # not compatible
query I rowsort label-7079
SELECT col2 + - tab1.col0 / - ( - col2 ) FROM tab1
----
54
56
96

query I rowsort
SELECT - 71 + + ( cor0.col2 ) FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to e1c070c4990d82e01bbcb162e155d36d

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT + - 13 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT DISTINCT + col1 * + col0 + + 9 * + col1 AS col2 FROM tab0 AS cor0
----
2838
4268
8918

query I rowsort
SELECT ALL - - col0 * + col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + - col0 + col0 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - + 26 + col1 * - col1 FROM tab0 AS cor0
----
-7422
-8307
-9435

query I rowsort
SELECT + tab0.col0 * - ( + 8 ) FROM tab0
----
-192
-280
-712

query I rowsort
SELECT - ( 27 ) FROM tab0 AS cor0
----
-27
-27
-27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7090
SELECT CAST( - 80 AS SIGNED ) FROM tab0 AS cor0
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-7090
SELECT CAST ( - 80 AS INTEGER ) FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT - 64 * + col0 + col2 FROM tab0 AS cor0
----
-1503
-2239
-5614

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col0 FROM tab1, tab1 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + ( + col1 ) AS REAL ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - - 58 AS col2 FROM tab2 AS cor0
----
58
58
58

query I rowsort
SELECT - 83 FROM tab2 AS cor0
----
-83
-83
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + 47 * - col0 + - ( + ( + col0 ) ) FROM tab1 AS cor0
----
-144
-3072
-3840

query I rowsort
SELECT + 91 + cor0.col1 - + col2 * col0 AS col0 FROM tab2 cor0
----
-1878
-2894
-67

query I rowsort
SELECT DISTINCT 82 * tab0.col2 AS col2 FROM tab0
----
2706
6724
82

query I rowsort
SELECT + ( - tab0.col0 ) * col1 AS col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + col0 + + 80 * - col1 FROM tab2 cor0
----
-1281
-2473
-4642

query I rowsort
SELECT tab2.col2 * - ( 45 * + col1 + col1 ) AS col2 FROM tab2
----
-29716
-38502
-70564

query I rowsort
SELECT 58 FROM tab0, tab1 cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT + + cor0.col2 * - 79 * - col2 AS col2 FROM tab2 cor0
----
114076
53404
57591

query I rowsort
SELECT - + col0 + - col0 * ( col2 ) AS col1 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT + ( - 21 ) * + col0 AS col1 FROM tab2 cor0
----
-147
-1638
-1659

query I rowsort
SELECT + 63 * - col1 AS col2 FROM tab0 AS cor0
----
-5418
-5733
-6111

query I rowsort
SELECT - 90 AS col1 FROM tab1 AS cor0
----
-90
-90
-90

query I rowsort
SELECT 17 + + tab2.col2 AS col1 FROM tab2
----
43
44
55

query I rowsort
SELECT 38 * tab2.col2 - - col1 AS col2 FROM tab2
----
1047
1057
1461

query I rowsort
SELECT - 59 * - col1 + 81 + col0 * + col2 AS col1 FROM tab2 AS cor0
----
2099
4086
5590

query I rowsort
SELECT - cor0.col2 - col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - 5 + - col1 * - col2 AS col2 FROM tab2
----
1529
641
832

query I rowsort
SELECT + ( - col0 ) * - 39 + + 85 FROM tab2
----
3127
3166
358

query I rowsort
SELECT DISTINCT - col2 * - col2 * col2 + col1 * + col2 + + col2 FROM tab0
----
38808
558912
99

query I rowsort
SELECT ( - col2 ) * 55 - 49 AS col1 FROM tab1 AS cor0
----
-3019
-3184
-5329

query I rowsort
SELECT + col0 + col2 * ( + col0 ) FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL + + col1 * col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-7119
SELECT DISTINCT col0 DIV + col0 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT col0 / + col0 AS col2 FROM tab2
----
1

query I rowsort
SELECT ALL + 74 + - tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8465baa6dab8afefbcaf9188952c73c5

onlyif mysql # use DIV operator for integer division
query I rowsort label-7121
SELECT 79 DIV cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-7121
SELECT 79 / cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab1 cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-7123
SELECT + - col0 * ( col2 ) DIV ( - 55 ) FROM tab1 AS cor0
----
139
2
66

skipif mysql # not compatible
query I rowsort label-7123
SELECT + - col0 * ( col2 ) / ( - 55 ) FROM tab1 AS cor0
----
139
2
66

query I rowsort
SELECT + + col0 + - ( - col1 ) AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT 83 FROM tab2 cor0
----
83
83
83

query I rowsort
SELECT DISTINCT cor0.col2 - 71 AS col1 FROM tab2, tab2 AS cor0
----
-33
-44
-45

query I rowsort
SELECT + + col1 * 35 FROM tab0 AS cor0
----
3010
3185
3395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col2 * col2 col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL 56 * 42 AS col1 FROM tab1 AS cor0
----
2352
2352
2352

query I rowsort
SELECT ALL + + ( - col2 ) * - col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7131
SELECT ALL + 88 DIV col0 AS col1 FROM tab2 cor0
----
1
1
12

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL + 88 / col0 AS col1 FROM tab2 cor0
----
1
1
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 col2 FROM tab1
----
94
94
94

query I rowsort
SELECT DISTINCT + 58 + + cor0.col0 + - col1 FROM tab0 AS cor0
----
-4
56

query I rowsort
SELECT ALL - + col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL cor0.col2 * + 46 FROM tab2 cor0
----
1196
1242
1748

query I rowsort
SELECT DISTINCT - ( col2 ) * col2 * cor0.col1 + - col0 FROM tab0 AS cor0
----
-132
-611973
-93678

onlyif mysql # use DIV operator for integer division
query I rowsort label-7137
SELECT DISTINCT - cor0.col2 DIV ( col0 ) FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT - cor0.col2 / ( col0 ) FROM tab0 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT + 31 + col1 + col1 * col1 AS col2 FROM tab0 cor0
----
7513
8403
9537

query I rowsort
SELECT ALL + col0 * - col0 * col1 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT + tab1.col2 + - col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7142
SELECT ALL + col1 + - col0 DIV col2 + col2 FROM tab1 AS cor0
----
109
66
80

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL + col1 + - col0 / col2 + col2 FROM tab1 AS cor0
----
109
66
80

query I rowsort
SELECT DISTINCT + col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT col0 * - col1 + col2 * - col1 FROM tab1 AS cor0
----
-1210
-1482
-2288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col0 * + col1 col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL ( col0 * col1 ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + ( - 36 + col2 ) AS col2 FROM tab0
----
-3
-35
46

query I rowsort
SELECT + ( - col2 ) + - col0 * tab2.col2 AS col0 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT + 77 * - col1 + - col2 AS col1 FROM tab1
----
-1097
-2056
-827

query I rowsort
SELECT DISTINCT 45 FROM tab2
----
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-7151
SELECT DISTINCT col0 DIV 99 - col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT col0 / 99 - col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + col0 * + col2 + col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7153
SELECT + - col2 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7153
SELECT + - col2 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 * - ( cor0.col1 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col2 + - col0 - col1 FROM tab1
----
-17
25
3

query I rowsort
SELECT ALL - 82 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0

query I rowsort
SELECT + col2 * 97 FROM tab2
----
2522
2619
3686

query I rowsort
SELECT - col0 + - ( col1 * - col1 ) AS col2 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT + col0 * + 17 FROM tab0 AS cor0
----
1513
408
595

query I rowsort
SELECT + col2 * 67 AS col1 FROM tab2 AS cor0
----
1742
1809
2546

onlyif mysql # use DIV operator for integer division
query I rowsort label-7161
SELECT DISTINCT + + col0 DIV col1 - col2 * col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT + + col0 / col1 - col2 * col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col1 + tab0.col2 * + col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT - tab2.col1 - - cor0.col0 FROM tab2, tab0, tab1 AS cor0
----
9 values hashing to 179f1c4ecae3615ed02c294cbc435c7b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7164
SELECT ALL + col2 * col0 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL + col2 * col0 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + cor0.col2 * - 23 FROM tab0 AS cor0
----
-1804
-22
-726

query I rowsort
SELECT DISTINCT col0 * + col1 + 9 AS col1 FROM tab1 AS cor0
----
1049
649
87

query I rowsort
SELECT ALL + + col0 * + col1 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT col1 * col1 * - 68 AS col1 FROM tab1
----
-11492
-45968
-6800

query I rowsort
SELECT cor0.col1 + + ( + 78 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 460ea9ecb58e52b82925510c99bc2a2a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + + cor0.col1 col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7171
SELECT DISTINCT - cor0.col2 + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT - cor0.col2 + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + - cor0.col1 * 68 * + col1 AS col2 FROM tab0 AS cor0
----
-502928
-563108
-639812

query I rowsort
SELECT - cor0.col0 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL tab1.col0 * 15 FROM tab1
----
1200
45
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-7175
SELECT ALL col2 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-7175
SELECT ALL col2 / col0 AS col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT - + cor0.col2 * 29 FROM tab1 AS cor0
----
-1566
-1653
-2784

query I rowsort
SELECT + col1 * - 97 FROM tab1 AS cor0
----
-1261
-2522
-970

query I rowsort
SELECT - cor0.col0 * cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7179
SELECT ALL - 34 * col0 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL - 34 * col0 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 + - ( 47 ) * - col1 * 76 FROM tab2 AS cor0
----
110763
210807
60741

query I rowsort
SELECT ALL + + col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - - 26 - + col0 FROM tab1 AS cor0
----
-38
-54
23

query I rowsort
SELECT + - 67 * col1 * - cor0.col0 - 86 FROM tab0 AS cor0
----
138202
227379
542547

onlyif mysql # use DIV operator for integer division
query I rowsort label-7184
SELECT - col1 DIV 92 col1 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7184
SELECT - col1 / 92 col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7185
SELECT DISTINCT col1 DIV 65 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT col1 / 65 AS col1 FROM tab1 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7186
SELECT ALL CAST( + 87 AS SIGNED ) FROM tab2, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL CAST ( + 87 AS INTEGER ) FROM tab2, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7187
SELECT + + col1 + 2 * cor0.col1 * CAST( ( - cor0.col1 ) AS SIGNED ) col0 FROM tab0 cor0
----
-14706
-16471
-18721

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7187
SELECT + + col1 + 2 * cor0.col1 * CAST ( ( - cor0.col1 ) AS INTEGER ) col0 FROM tab0 cor0
----
-14706
-16471
-18721

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7188
SELECT ALL - CAST( NULL AS SIGNED ) + 8 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL - CAST ( NULL AS INTEGER ) + 8 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7189
SELECT DISTINCT - col0 + - col0 DIV col1 FROM tab1 AS cor0
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT - col0 + - col0 / col1 FROM tab1 AS cor0
----
-3
-70
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-7190
SELECT DISTINCT + - col0 DIV col2 + - col2 * - ( col1 * - col0 ) AS col0 FROM tab0 AS cor0
----
-3430
-664119
-68112

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT + - col0 / col2 + - col2 * - ( col1 * - col0 ) AS col0 FROM tab0 AS cor0
----
-3430
-664119
-68112

query I rowsort
SELECT DISTINCT cor0.col1 * col2 + - col2 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT - 79 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
-22
-25
17

query I rowsort
SELECT ALL col2 * 46 AS col2 FROM tab0 AS cor0
----
1518
3772
46

query I rowsort
SELECT + + ( col2 ) + + col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + 58 * + col1 * col2 AS col2 FROM tab1 AS cor0
----
33060
72384
81432

query I rowsort
SELECT ALL + cor0.col2 + col2 * col1 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7197
SELECT + ( - cor0.col0 ) DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7197
SELECT + ( - cor0.col0 ) / + col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + ( ( + cor0.col2 ) ) * cor0.col1 + col0 AS col2 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT 33 * - col2 AS col0 FROM tab1 AS cor0
----
-1782
-1881
-3168

query I rowsort
SELECT - col1 - - col2 * - col1 AS col2 FROM tab0 cor0
----
-194
-2924
-7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7201
SELECT ALL + - CAST( ( + col1 ) AS SIGNED ) * 92 AS col2 FROM tab1 AS cor0
----
-1196
-2392
-920

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL + - CAST ( ( + col1 ) AS INTEGER ) * 92 AS col2 FROM tab1 AS cor0
----
-1196
-2392
-920

onlyif mysql # use DIV operator for integer division
query I rowsort label-7202
SELECT ALL + cor0.col1 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL + cor0.col1 / - col0 FROM tab0 AS cor0
----
-1
-2
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7203
SELECT CAST( NULL AS SIGNED ) * - cor0.col1 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7203
SELECT CAST ( NULL AS INTEGER ) * - cor0.col1 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7204
SELECT ALL - ( cor0.col1 ) * + col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL - ( cor0.col1 ) * + col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 24 * col0 AS col2 FROM tab2 AS cor0
----
-168
-1872
-1896

query I rowsort
SELECT - + col0 * col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + 83 FROM tab2 AS cor0
----
83
83
83

query I rowsort
SELECT ALL - 67 * + 27 * - col1 + col2 * col0 FROM tab1
----
21738
31197
47196

query I rowsort
SELECT ( col0 ) * + col0 + col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - - 23 + cor0.col0 AS col2 FROM tab0 AS cor0
----
112
47
58

query I rowsort
SELECT + + col0 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - col0 + - col0 * col1 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT cor0.col1 * col1 + ( - 18 ) FROM tab1 AS cor0
----
151
658
82

query I rowsort
SELECT col1 * col1 + + ( col1 * col0 ) AS col0 FROM tab0 AS cor0
----
12804
16380
9460

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7216
SELECT DISTINCT + CAST( col0 AS SIGNED ) * col2 + tab1.col0 FROM tab1
----
165
3712
7760

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * col2 + tab1.col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT DISTINCT 46 + - col2 FROM tab2
----
19
20
8

query I rowsort
SELECT DISTINCT + 40 + - cor0.col1 FROM tab2, tab2 AS cor0
----
-19
23
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7219
SELECT ALL - CAST( NULL AS SIGNED ) + - 36 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL - CAST ( NULL AS INTEGER ) + - 36 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7220
SELECT 64 DIV tab0.col2 + + col2 DIV ( + 71 ) AS col1 FROM tab0
----
1
1
64

skipif mysql # not compatible
query I rowsort label-7220
SELECT 64 / tab0.col2 + + col2 / ( + 71 ) AS col1 FROM tab0
----
1
1
64

query I rowsort
SELECT - - 32 + col0 * + 72 AS col1 FROM tab2 AS cor0
----
536
5648
5720

query I rowsort
SELECT - 94 * - col1 * + col2 FROM tab0
----
266772
701428
9118

query I rowsort
SELECT DISTINCT - + cor1.col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7224
SELECT CAST( NULL AS SIGNED ) * col0 * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7224
SELECT CAST ( NULL AS INTEGER ) * col0 * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab0 AS cor1, tab0, tab1 cor2
----
3645 values hashing to ea1a922b7fccb9d184b31eb4689e063b

query I rowsort
SELECT - col0 - col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL 83 FROM tab1, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT ( + tab0.col0 ) + - col0 + - col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 5 * col0 FROM tab2
----
35
390
395

query I rowsort
SELECT - col1 * 77 - - col2 FROM tab2 cor0
----
-1271
-2360
-4517

query I rowsort
SELECT + col1 - - cor0.col2 * + col0 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - + 29 + - cor0.col2 FROM tab2 cor0
----
-55
-56
-67

query I rowsort
SELECT ALL ( 58 ) FROM tab0
----
58
58
58

query I rowsort
SELECT DISTINCT + + ( col1 ) + col0 * + 19 FROM tab0 AS cor0
----
1782
542
762

onlyif mysql # use DIV operator for integer division
query I rowsort label-7236
SELECT DISTINCT - 3 DIV + cor0.col1 + + col2 col2 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7236
SELECT DISTINCT - 3 / + cor0.col1 + + col2 col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL col2 - + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + ( 57 ) * - col1 FROM tab2 AS cor0
----
-1767
-3363
-969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7239
SELECT ALL - CAST( NULL AS DECIMAL ) - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL - CAST ( NULL AS REAL ) - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( 16 ) AS col2 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT - 50 AS col1 FROM tab1 cor0
----
-50
-50
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + + col2 col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT - 93 * col0 * + col0 + 77 FROM tab0 AS cor0
----
-113848
-53491
-736576

query I rowsort
SELECT DISTINCT - + 9 + - col0 AS col0 FROM tab1 AS cor0
----
-12
-73
-89

query I rowsort
SELECT ALL 69 AS col2 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT 64 AS col1 FROM tab2
----
64

query I rowsort
SELECT ALL col0 + - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - + ( + col2 ) AS col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT col0 * + col2 + ( 39 ) FROM tab0
----
7337
74
831

query I rowsort
SELECT ALL - col1 + - col2 AS col2 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + 9 * cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
774
819
873

query I rowsort
SELECT + 24 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # use DIV operator for integer division
query I rowsort label-7253
SELECT col2 * ( tab0.col2 ) DIV col0 + + 10 * + col1 AS col1 FROM tab0
----
905
970
985

skipif mysql # not compatible
query I rowsort label-7253
SELECT col2 * ( tab0.col2 ) / col0 + + 10 * + col1 AS col1 FROM tab0
----
905
970
985

onlyif mysql # use DIV operator for integer division
query I rowsort label-7254
SELECT DISTINCT col1 DIV - col1 + col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-7254
SELECT DISTINCT col1 / - col1 + col1 FROM tab2
----
16
30
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7255
SELECT + col1 - CAST( - 33 AS SIGNED ) * - tab0.col1 AS col2 FROM tab0
----
-2752
-2912
-3104

skipif mysql # not compatible
query I rowsort label-7255
SELECT + col1 - CAST ( - 33 AS INTEGER ) * - tab0.col1 AS col2 FROM tab0
----
-2752
-2912
-3104

query I rowsort
SELECT ALL + 11 AS col2 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

onlyif mysql # use DIV operator for integer division
query I rowsort label-7257
SELECT DISTINCT - col0 * 9 DIV - col0 + - col2 FROM tab1 AS cor0
----
-45
-48
-87

skipif mysql # not compatible
query I rowsort label-7257
SELECT DISTINCT - col0 * 9 / - col0 + - col2 FROM tab1 AS cor0
----
-45
-48
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-7258
SELECT - col2 DIV 98 + col2 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-7258
SELECT - col2 / 98 + col2 FROM tab2 cor0
----
26
27
38

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to bb6428239bf7f3ea361f6a10500a581d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col2 - - 96 col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to bf5dc1a12973d6ea8d16b996b5dc3e3c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 6 + - 77 col2 FROM tab2 AS cor0
----
-179
-263
-431

query I rowsort
SELECT DISTINCT - - col0 * - 18 FROM tab0 AS cor0
----
-1602
-432
-630

query I rowsort
SELECT + col0 + 22 FROM tab2 AS cor0
----
100
101
29

query I rowsort
SELECT ALL - col2 * 90 FROM tab2 AS cor0
----
-2340
-2430
-3420

query I rowsort
SELECT - - col0 * + ( col1 * col1 ) + - col1 FROM tab0 AS cor0
----
177418
329218
736918

query I rowsort
SELECT DISTINCT - + col2 + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7267
SELECT col2 DIV + 20 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7267
SELECT col2 / + 20 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col1 * - 66 FROM tab0 AS cor0
----
5676
6006
6402

onlyif mysql # use DIV operator for integer division
query I rowsort label-7269
SELECT DISTINCT col2 + + cor0.col1 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT col2 + + cor0.col1 / cor0.col0 AS col2 FROM tab0 AS cor0
----
3
36
83

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to b3ea820890445d59f3f7464a1521d42d

query I rowsort
SELECT col1 * col2 + 89 FROM tab1
----
1337
1493
659

onlyif mysql # support for MySQL specifi