sqllogictest
Artifact Content
Not logged in

Artifact 3e0f12a6433b583c36b320d1fec1cd8e9702b145:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT cor0.col1 + 53 FROM tab0 AS cor0
----
139
144
150

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

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

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

query I rowsort
SELECT DISTINCT - + ( col1 ) * col2 * 55 FROM tab2 AS cor0
----
-35530
-46035
-84370

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

query I rowsort
SELECT ALL - ( cor0.col0 ) + cor0.col2 * 26 FROM tab0, tab0 AS cor0
----
9 values hashing to 24230bd2844436781c7422cb79451d24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 - tab1.col1 col1 FROM tab1
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT tab0.col2 * col1 + col1 * col2 + - ( col0 ) * + col0 FROM tab0
----
-1031
5100
7003

onlyif mysql # use DIV operator for integer division
query I rowsort label-9
SELECT DISTINCT + col0 * 59 DIV - col0 + col0 FROM tab1
----
-56
21
5

skipif mysql # not compatible
query I rowsort label-9
SELECT DISTINCT + col0 * 59 / - col0 + col0 FROM tab1
----
-56
21
5

query I rowsort
SELECT ALL ( - cor0.col0 ) + + col2 * cor0.col0 * col1 FROM tab1 AS cor0
----
36416
4209
99760

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

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

query I rowsort
SELECT 60 * + col1 AS col0 FROM tab2 AS cor0
----
1020
1860
3540

onlyif mysql # use DIV operator for integer division
query I rowsort label-13
SELECT - - cor0.col2 + - 78 * col0 DIV col2 AS col0 FROM tab1 AS cor0
----
-30
31
50

skipif mysql # not compatible
query I rowsort label-13
SELECT - - cor0.col2 + - 78 * col0 / col2 AS col0 FROM tab1 AS cor0
----
-30
31
50

query I rowsort
SELECT ALL + + col1 * 35 FROM tab0 AS cor0
----
3010
3185
3395

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

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

query I rowsort
SELECT DISTINCT + ( 31 ) * - col2 AS col2 FROM tab0
----
-1023
-2542
-31

query I rowsort
SELECT ALL - 7 * - tab1.col1 FROM tab1
----
182
70
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 * col1 col0 FROM tab1
----
-1924
-740
-962

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

query I rowsort
SELECT - tab2.col2 * + col1 + col2 * - tab2.col2 * col2 AS col0 FROM tab2
----
-19110
-20520
-55518

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

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

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

query I rowsort
SELECT ALL 79 * - 59 + - col0 * cor0.col0 FROM tab0 AS cor0
----
-12582
-5237
-5886

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

query I rowsort
SELECT - 99 * col0 AS col1 FROM tab0
----
-2376
-3465
-8811

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

query I rowsort
SELECT - col2 + + cor0.col1 * 18 FROM tab0 AS cor0
----
1515
1556
1745

query I rowsort
SELECT DISTINCT - col1 + + 40 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-57
1234
3189

query I rowsort
SELECT ALL col0 * ( - 20 ) AS col0 FROM tab2 AS cor0
----
-140
-1560
-1580

query I rowsort
SELECT - + col0 + - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1113
-36
-6813

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-32
SELECT ALL - - cor0.col0 + 54 + + 57 DIV col2 AS col0 FROM tab1 cor0
----
119
134
58

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL - - cor0.col0 + 54 + + 57 / col2 AS col0 FROM tab1 cor0
----
119
134
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-33
SELECT DISTINCT - cor0.col1 * ( - col1 ) + col0 DIV + col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT - cor0.col1 * ( - col1 ) + col0 / + col1 FROM tab0 AS cor0
----
7396
8281
9409

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

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

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

query I rowsort
SELECT DISTINCT + col0 + 17 * - col1 + - col2 FROM tab0 AS cor0
----
-1471
-1540
-1615

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

query I rowsort
SELECT DISTINCT col2 * cor0.col2 * - ( - col0 ) + - col1 AS col0 FROM tab1 AS cor0
----
207926
737267
8722

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 * col2 - ( - col0 + + col1 ) col0 FROM tab2 cor0
----
-1382
-657
-753

query I rowsort
SELECT ALL - cor0.col2 + + 10 * 8 - - cor0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 7c9735864f8e53374cfee1e3a2b244e4

query I rowsort
SELECT ALL col1 * ( 10 ) * col0 AS col0 FROM tab0 cor0
----
20640
33950
80990

query I rowsort
SELECT DISTINCT - col1 * - ( - 22 ) + + col2 * col2 FROM tab0 AS cor0
----
-2133
-803
4722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col0 * - col0 col0 FROM tab1 AS cor0
----
-4039
-6304
45

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-46
SELECT ALL + - col0 + - cor0.col0 DIV + 94 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL + - col0 + - cor0.col0 / + 94 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT col1 * cor0.col0 * - col1 + - col1 FROM tab0 AS cor0
----
-177590
-329412
-737100

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

query I rowsort
SELECT + col1 * + col0 - + col2 * - cor0.col0 * - col0 FROM tab1 AS cor0
----
-232832
-408
-613360

query I rowsort
SELECT DISTINCT col1 + + 10 AS col1 FROM tab0 AS cor0
----
101
107
96

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

skipif mysql # not compatible
query I rowsort label-51
SELECT - - col0 / - col0 + col2 * col0 FROM tab0 AS cor0
----
34
7297
791

onlyif mysql # use DIV operator for integer division
query I rowsort label-52
SELECT DISTINCT + + col2 * + 37 * - col1 + - col1 DIV col2 FROM tab1 AS cor0
----
-21090
-46176
-51948

skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT + + col2 * + 37 * - col1 + - col1 / col2 FROM tab1 AS cor0
----
-21090
-46176
-51948

query I rowsort
SELECT - cor0.col0 + col0 * col1 * col0 AS col0 FROM tab1 AS cor0
----
231
40896
83120

query I rowsort
SELECT tab2.col2 * - tab2.col2 + 43 FROM tab2, tab0 AS cor0
----
9 values hashing to 42151c098c0eae116d18184286ba8b0b

query I rowsort
SELECT ALL - ( col1 ) + col0 * - ( - col1 ) + col2 FROM tab2 AS cor0
----
1364
213
4569

query I rowsort
SELECT DISTINCT + ( + 39 ) - + cor0.col1 FROM tab2 cor0
----
-20
22
8

query I rowsort
SELECT ALL + col0 * - 9 * cor0.col0 + + col2 AS col0 FROM tab0 AS cor0
----
-11024
-5151
-71207

query I rowsort
SELECT DISTINCT + 76 * 66 - col2 FROM tab0 AS cor0
----
4934
4983
5015

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

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

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

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

query I rowsort
SELECT ALL - col1 * 62 FROM tab2 AS cor0
----
-1054
-1922
-3658

query I rowsort
SELECT ALL + - col0 * 64 AS col1 FROM tab0 AS cor0
----
-1536
-2240
-5696

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-64
SELECT DISTINCT + col0 * 51 + col1 - + CAST( col0 AS SIGNED ) FROM tab2 cor0
----
381
3959
3967

skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT + col0 * 51 + col1 - + CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
381
3959
3967

query I rowsort
SELECT - - col1 + + ( + col1 ) AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT 74 + - cor0.col2 * col0 FROM tab2 AS cor0
----
-115
-1954
-2928

query I rowsort
SELECT DISTINCT + 89 * col2 AS col2 FROM tab0 AS cor0
----
2937
7298
89

query I rowsort
SELECT ALL - col0 + 81 FROM tab2 AS cor0
----
2
3
74

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-70
SELECT DISTINCT + CAST( 81 AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT + CAST ( 81 AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
81

query I rowsort
SELECT ALL + 83 + + col2 AS col0 FROM tab2 AS cor0
----
109
110
121

query I rowsort
SELECT + 18 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

query I rowsort
SELECT ALL + ( + col0 ) * col1 + + col1 + - cor0.col2 * ( - ( col2 ) + + cor0.col1 ) FROM tab0 AS cor0
----
3396
401
7452

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

query I rowsort
SELECT DISTINCT + col1 * col2 + 87 FROM tab2 AS cor0
----
1621
733
924

query I rowsort
SELECT - 49 + col1 AS col0 FROM tab0 AS cor0
----
37
42
48

query I rowsort
SELECT + 87 + col2 FROM tab2 AS cor0
----
113
114
125

query I rowsort
SELECT DISTINCT - 55 - - col2 AS col0 FROM tab1 AS cor0
----
-1
2
41

query I rowsort
SELECT DISTINCT + 84 * col2 * 39 + 16 AS col2 FROM tab2 cor0
----
124504
85192
88468

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-81
SELECT ALL + 34 + col2 DIV + 84 col0 FROM tab2 AS cor0
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-81
SELECT ALL + 34 + col2 / + 84 col0 FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT - 59 + - ( col1 ) * ( + 98 ) FROM tab0
----
-8487
-8977
-9565

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-85
SELECT ALL + - cor1.col1 DIV cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6112deff45c23c2311a09b6e15d4231f

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL + - cor1.col1 / cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6112deff45c23c2311a09b6e15d4231f

query I rowsort
SELECT + 42 * - col0 + ( - col1 ) FROM tab2
----
-325
-3335
-3335

query I rowsort
SELECT ALL + 13 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT - 32 + 28 + col1 FROM tab1 cor0
----
22
6
9

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

query I rowsort
SELECT DISTINCT + col1 * + 99 FROM tab1
----
1287
2574
990

query I rowsort
SELECT ALL 97 * + col2 FROM tab0
----
3201
7954
97

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

query I rowsort
SELECT ( + 49 ) + + col2 * 17 + 30 FROM tab1
----
1048
1711
997

query I rowsort
SELECT - ( 71 ) * + col2 + + ( + tab2.col2 ) * col1 AS col0 FROM tab2
----
-1080
-2052
-312

query I rowsort
SELECT ALL - - 92 + col1 * col0 * + ( + col1 ) FROM tab2 AS cor0
----
22923
271610
6819

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

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

query I rowsort
SELECT ALL + ( + 46 ) + - col1 * - ( col0 ) AS col0 FROM tab1 cor0
----
1086
124
686

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

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

query I rowsort
SELECT DISTINCT - - 43 * col0 FROM tab0 cor0
----
1032
1505
3827

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

query IIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

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

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

query I rowsort
SELECT - col0 * col1 + col1 FROM tab0 cor0
----
-1978
-3298
-8008

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

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

query I rowsort
SELECT 12 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT + col2 + + 88 FROM tab1 AS cor0
----
142
145
184

query I rowsort
SELECT DISTINCT + + col2 + - 66 AS col2 FROM tab1 cor0
----
-12
-9
30

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

query I rowsort
SELECT - ( col2 ) + - 94 AS col1 FROM tab1
----
-148
-151
-190

query I rowsort
SELECT - col0 - col2 * - 88 FROM tab2 AS cor0
----
2210
2369
3265

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

query I rowsort
SELECT + col1 * - 86 + - col0 AS col2 FROM tab2 AS cor0
----
-1541
-2673
-5152

query I rowsort
SELECT ALL + col2 + 98 AS col0 FROM tab0 AS cor0
----
131
180
99

query I rowsort
SELECT DISTINCT - col2 * - 91 - col1 * col2 AS col2 FROM tab0 AS cor0
----
-6
0
165

query I rowsort
SELECT DISTINCT + col0 * 50 + col2 FROM tab2 AS cor0
----
377
3926
3988

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-119
SELECT DISTINCT col0 DIV col0 + + 94 DIV col0 FROM tab2 AS cor0
----
14
2

skipif mysql # not compatible
query I rowsort label-119
SELECT DISTINCT col0 / col0 + + 94 / col0 FROM tab2 AS cor0
----
14
2

query I rowsort
SELECT ALL + 84 * tab2.col1 AS col2 FROM tab2
----
1428
2604
4956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT ALL col2 * + ( 94 ) FROM tab0 AS cor0
----
3102
7708
94

query I rowsort
SELECT - cor0.col1 * - 89 + col1 + col2 * + 70 AS col2 FROM tab2 AS cor0
----
4190
4680
7130

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 + + 69 col0 FROM tab2, tab2 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT ALL col1 + col2 * + 4 FROM tab1
----
238
242
397

query I rowsort
SELECT col2 * - col2 * col0 + + tab1.col1 AS col1 FROM tab1
----
-207926
-737267
-8722

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

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

skipif mysql # not compatible
query I rowsort label-130
SELECT DISTINCT tab0.col2 + CAST ( - col1 AS INTEGER ) + - col2 * col0 AS col0 FROM tab0
----
-131
-7307
-845

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

query I rowsort
SELECT - col1 + 82 FROM tab2
----
23
51
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * 53 col0 FROM tab2
----
371
4134
4187

query I rowsort
SELECT DISTINCT + col0 + 38 AS col1 FROM tab2
----
116
117
45

query I rowsort
SELECT DISTINCT col0 + ( + 18 ) FROM tab1
----
21
82
98

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

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

query I rowsort
SELECT ALL + - ( - col2 ) * + col1 + - 41 * + col0 AS col2 FROM tab0 AS cor0
----
-1338
1854
3813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-139
SELECT ALL ( cor0.col2 ) + CAST( 29 AS SIGNED ) FROM tab0 AS cor0
----
111
30
62

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL ( cor0.col2 ) + CAST ( 29 AS INTEGER ) FROM tab0 AS cor0
----
111
30
62

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

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

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 50 AS REAL ) + - col1 * + col1 * + 67 FROM tab1
----
-11273
-45242
-6650

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

query I rowsort
SELECT 88 - + col1 FROM tab1
----
62
75
78

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

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

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

query I rowsort
SELECT + 41 * col2 + 95 AS col1 FROM tab1
----
2309
2432
4031

query I rowsort
SELECT ALL - + col1 * cor0.col2 + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 41 + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1207
-1363
-529

onlyif mysql # use DIV operator for integer division
query I rowsort label-149
SELECT DISTINCT - + 16 * + col0 + 5 DIV col1 AS col0 FROM tab2 AS cor0
----
-112
-1248
-1264

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT - + 16 * + col0 + 5 / col1 AS col0 FROM tab2 AS cor0
----
-112
-1248
-1264

onlyif mysql # use DIV operator for integer division
query I rowsort label-150
SELECT + 15 + col1 DIV col0 col1 FROM tab2 AS cor0
----
15
15
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-150
SELECT + 15 + col1 / col0 col1 FROM tab2 AS cor0
----
15
15
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-151
SELECT - + ( col1 ) + 92 DIV 19 FROM tab1 AS cor0
----
-22
-6
-9

skipif mysql # not compatible
query I rowsort label-151
SELECT - + ( col1 ) + 92 / 19 FROM tab1 AS cor0
----
-22
-6
-9

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

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

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

query I rowsort
SELECT ALL - 66 + - col2 * col2 FROM tab1 AS cor0
----
-2982
-3315
-9282

query I rowsort
SELECT - + 18 * - col0 FROM tab0 AS cor0
----
1602
432
630

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

query I rowsort
SELECT - - 84 * col2 AS col1 FROM tab0 AS cor0
----
2772
6888
84

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

query I rowsort
SELECT - 22 + 87 AS col2 FROM tab1
----
65
65
65

query I rowsort
SELECT ALL - col1 * + 2 AS col2 FROM tab1
----
-20
-26
-52

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

skipif mysql # not compatible
query I rowsort
SELECT 19 + - col0 * CAST ( col2 * - col1 + - ( - col2 ) * + col2 AS REAL ) AS col1 FROM tab2
----
-63023
66943
775

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

query I rowsort
SELECT ALL col1 + col1 + + ( 90 ) * + tab2.col1 FROM tab2
----
1564
2852
5428

onlyif mysql # use DIV operator for integer division
query I rowsort label-165
SELECT DISTINCT col1 DIV col2 + ( + col1 ) AS col1 FROM tab0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-165
SELECT DISTINCT col1 / col2 + ( + col1 ) AS col1 FROM tab0
----
194
88
92

query I rowsort
SELECT ALL + ( col2 ) + col2 * col1 AS col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT - 44 + + col0 AS col1 FROM tab1
----
-41
20
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-168
SELECT + - col2 + 47 DIV col1 + + cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
253
3455
935

skipif mysql # not compatible
query I rowsort label-168
SELECT + - col2 + 47 / col1 + + cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
253
3455
935

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

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

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

query I rowsort
SELECT + 8 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

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

query I rowsort
SELECT ALL - - col0 + + cor0.col0 * 89 FROM tab2 AS cor0
----
630
7020
7110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 30 col1 FROM tab2 cor0
----
-108
-109
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-175
SELECT cor0.col1 + 44 DIV - 86 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-175
SELECT cor0.col1 + 44 / - 86 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + + col2 * 34 FROM tab1 AS cor0
----
1836
1938
3264

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

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

query I rowsort
SELECT cor0.col0 + - 64 + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1024
-139
-640

query I rowsort
SELECT - 74 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

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

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

query I rowsort
SELECT ( ( - col1 ) ) AS col1 FROM tab1 cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-182
SELECT col2 * 3 DIV col2 col2 FROM tab0 cor0
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-182
SELECT col2 * 3 / col2 col2 FROM tab0 cor0
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 68 ) * + col2 col1 FROM tab1 AS cor0
----
-3672
-3876
-6528

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

query I rowsort
SELECT col1 * 9 AS col0 FROM tab1
----
117
234
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 56 + ( + col1 ) col0 FROM tab0 cor0
----
30
35
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-187
SELECT col2 DIV col0 + col2 * + ( 38 ) FROM tab1 AS cor0
----
2070
2166
3649

skipif mysql # not compatible
query I rowsort label-187
SELECT col2 / col0 + col2 * + ( 38 ) FROM tab1 AS cor0
----
2070
2166
3649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 + - ( - col2 ) * + ( col0 * + col0 ) col1 FROM tab2 AS cor0
----
1288
158149
237123

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

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

query I rowsort
SELECT - 99 + col2 FROM tab0 AS cor0
----
-17
-66
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-192
SELECT ALL - ( + col2 ) DIV 75 + - col1 * col2 + ( - col1 ) col2 FROM tab0 AS cor0
----
-194
-2924
-7554

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-192
SELECT ALL - ( + col2 ) / 75 + - col1 * col2 + ( - col1 ) col2 FROM tab0 AS cor0
----
-194
-2924
-7554

query I rowsort
SELECT DISTINCT - + 73 + col1 * 54 AS col1 FROM tab0 AS cor0
----
4571
4841
5165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * col1 col1 FROM tab1 AS cor0
----
1898
730
949

query I rowsort
SELECT + 80 + cor0.col0 FROM tab2 AS cor0
----
158
159
87

query I rowsort
SELECT + col2 + ( 81 ) AS col1 FROM tab1 AS cor0
----
135
138
177

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

query I rowsort
SELECT ALL + 60 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-200
SELECT + col1 + + CAST( - 74 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-48
-61
-64

skipif mysql # not compatible
query I rowsort label-200
SELECT + col1 + + CAST ( - 74 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-48
-61
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-201
SELECT col1 DIV - col0 - + 60 FROM tab2 AS cor0
----
-60
-60
-64

skipif mysql # not compatible
query I rowsort label-201
SELECT col1 / - col0 - + 60 FROM tab2 AS cor0
----
-60
-60
-64

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 + cor0.col2 * 33 * - col2 col0 FROM tab2 AS cor0
----
-22254
-24003
-47598

query I rowsort
SELECT 18 * col2 * + ( + 54 ) + - col1 + - ( - col2 ) AS col1 FROM tab2 cor0
----
25239
26240
36957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 - - ( col1 ) * + cor0.col2 col2 FROM tab2 AS cor0
----
1026
3562
3648

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

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

query I rowsort
SELECT DISTINCT - col0 * + 79 FROM tab2
----
-553
-6162
-6241

query I rowsort
SELECT ALL - tab1.col2 * 71 - tab1.col2 FROM tab1
----
-3888
-4104
-6912

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

query I rowsort
SELECT ALL col0 * 24 FROM tab2
----
168
1872
1896

onlyif mysql # use DIV operator for integer division
query I rowsort label-211
SELECT + 80 DIV ( + tab0.col2 ) FROM tab0
----
0
2
80

skipif mysql # not compatible
query I rowsort label-211
SELECT + 80 / ( + tab0.col2 ) FROM tab0
----
0
2
80

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

skipif mysql # not compatible
query I rowsort label-212
SELECT DISTINCT + col1 / - 76 FROM tab1
----
0

query I rowsort
SELECT ALL + 40 + col1 FROM tab2
----
57
71
99

query I rowsort
SELECT ALL - 50 * col1 AS col2 FROM tab1 AS cor0
----
-1300
-500
-650

query I rowsort
SELECT - col1 * col0 + + col0 * tab2.col0 * col1 + + col1 AS col0 FROM tab2
----
104771
1333
354413

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

query I rowsort
SELECT ALL 31 + - cor0.col0 AS col2 FROM tab1 cor0
----
-33
-49
28

query I rowsort
SELECT - 96 + + 38 * col2 AS col2 FROM tab2 AS cor0
----
1348
892
930

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

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

query I rowsort
SELECT + 57 * col2 + - col0 FROM tab2 AS cor0
----
1404
1532
2087

query I rowsort
SELECT - ( + col0 ) + col2 + + cor0.col1 FROM tab2 AS cor0
----
-24
51
7

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

query I rowsort
SELECT + 20 + ( - col1 ) AS col0 FROM tab0
----
-66
-71
-77

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

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

query I rowsort
SELECT ALL + + col1 * 42 - col1 FROM tab1 cor0
----
1066
410
533

query I rowsort
SELECT + + col0 * + col0 * - cor0.col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT ALL - + 3 + - col1 FROM tab0 AS cor0
----
-100
-89
-94

query I rowsort
SELECT ALL - ( col2 ) - col0 * - ( col0 + - col1 ) AS col1 FROM tab2 AS cor0
----
-195
1456
4860

query I rowsort
SELECT DISTINCT - ( + col0 ) + + col0 * 50 * col1 FROM tab1 AS cor0
----
31936
3897
51920

query I rowsort
SELECT DISTINCT + cor0.col1 + col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
6143
6258
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + ( - col0 ) ) col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + ( - col2 ) * col2 + cor0.col2 * - col2 AS col2 FROM tab1 AS cor0
----
-18432
-5832
-6498

query I rowsort
SELECT DISTINCT - - ( + col1 ) - + col1 * - 50 * + cor0.col2 AS col1 FROM tab1 cor0
----
28510
62413
70226

query I rowsort
SELECT ALL - col2 * col1 * + col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

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

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

query I rowsort
SELECT col1 + + col1 + + col1 FROM tab2 AS cor0
----
177
51
93

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

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

query I rowsort
SELECT - col0 + - col0 + + 64 FROM tab2 AS cor0
----
-92
-94
50

query I rowsort
SELECT + col0 + col2 * + 52 FROM tab0 AS cor0
----
1740
4353
87

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

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

query I rowsort
SELECT ALL - 90 * - col1 FROM tab1 cor0
----
1170
2340
900

onlyif mysql # use DIV operator for integer division
query I rowsort label-243
SELECT DISTINCT - col0 DIV - col1 + ( - 46 * col1 ) + + 4 AS col0 FROM tab1 AS cor0
----
-1192
-450
-588

skipif mysql # not compatible
query I rowsort label-243
SELECT DISTINCT - col0 / - col1 + ( - 46 * col1 ) + + 4 AS col0 FROM tab1 AS cor0
----
-1192
-450
-588

query I rowsort
SELECT DISTINCT + + col1 + col0 * - ( - col2 ) + - col1 * 84 AS col0 FROM tab2 AS cor0
----
-2384
-2869
1591

onlyif mysql # use DIV operator for integer division
query I rowsort label-245
SELECT + + 50 DIV + col1 - ( col2 ) FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-245
SELECT + + 50 / + col1 - ( col2 ) FROM tab0 AS cor0
----
-1
-33
-82

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-246
SELECT ALL - col1 - - CAST ( ( col2 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - cor0.col0 + - 15 AS col0 FROM tab0 cor0
----
-104
-39
-50

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

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

query I rowsort
SELECT ALL + col0 * ( + col1 + col2 ) AS col2 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT + - col2 + 64 AS col1 FROM tab0 cor0
----
-18
31
63

query I rowsort
SELECT DISTINCT + col1 * col0 - + 49 AS col2 FROM tab2 AS cor0
----
1294
168
4553

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

query I rowsort
SELECT - 52 AS col1 FROM tab0 cor0
----
-52
-52
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col2 ) + col2 col2 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-256
SELECT + col1 DIV 72 - col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-256
SELECT + col1 / 72 - col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT col2 - - ( - col0 ) FROM tab0
----
-34
-7
9

query I rowsort
SELECT - col1 + 69 FROM tab0
----
-17
-22
-28

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

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

query I rowsort
SELECT DISTINCT + 69 AS col0 FROM tab2, tab0, tab1 AS cor0
----
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-262
SELECT ALL - col2 + col2 DIV 21 FROM tab0 AS cor0
----
-1
-32
-79

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL - col2 + col2 / 21 FROM tab0 AS cor0
----
-1
-32
-79

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

query I rowsort
SELECT ALL + - 47 * + col1 AS col0 FROM tab0 AS cor0
----
-4042
-4277
-4559

query I rowsort
SELECT - - col1 * col1 + 54 FROM tab2 AS cor0
----
1015
343
3535

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

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL >= NULL
----

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

query I rowsort
SELECT col2 * - tab0.col1 * - ( 44 ) AS col1 FROM tab0
----
124872
328328
4268

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col1 col0 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-274
SELECT + + col1 DIV + col0 + + col2 FROM tab0 cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-274
SELECT + + col1 / + col0 + + col2 FROM tab0 cor0
----
3
36
83

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-276
SELECT DISTINCT - ( 69 ) DIV col2 + - ( - col0 * col0 ) AS col0 FROM tab0 cor0
----
1156
574
7921

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT - ( 69 ) / col2 + - ( - col0 * col0 ) AS col0 FROM tab0 cor0
----
1156
574
7921

query I rowsort
SELECT ALL + + 33 * - col2 AS col1 FROM tab1 AS cor0
----
-1782
-1881
-3168

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

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

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

query I rowsort
SELECT ALL tab1.col0 + - ( - 54 ) - - col1 FROM tab1
----
128
147
83

query I rowsort
SELECT ALL + tab1.col1 * + col1 - ( col2 ) AS col2 FROM tab1
----
43
622
73

query I rowsort
SELECT ( - 32 ) * + col2 AS col0 FROM tab0
----
-1056
-2624
-32

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * - 12 AS col1 FROM tab0 AS cor0
----
-1068
-288
-420

query I rowsort
SELECT + + col2 + 26 * col2 AS col1 FROM tab0 AS cor0
----
2214
27
891

query I rowsort
SELECT DISTINCT - ( 53 ) FROM tab2 AS cor0
----
-53

query I rowsort
SELECT - - col0 * col2 - - cor0.col1 * col1 FROM tab1 AS cor0
----
3748
7849
838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) + - tab0.col1 * col1 col1 FROM tab0
----
-7363
-8199
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-292
SELECT - col1 DIV ( - tab1.col2 * + ( + col0 ) ) + col2 * - 40 FROM tab1
----
-2160
-2280
-3840

skipif mysql # not compatible
query I rowsort label-292
SELECT - col1 / ( - tab1.col2 * + ( + col0 ) ) + col2 * - 40 FROM tab1
----
-2160
-2280
-3840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 50 ) * + col2 * - col1 col0 FROM tab0
----
-141900
-373100
-4850

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

query I rowsort
SELECT ALL col1 + + col0 + - col1 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-296
SELECT + 76 DIV col0 FROM tab1
----
0
1
25

skipif mysql # not compatible
query I rowsort label-296
SELECT + 76 / col0 FROM tab1
----
0
1
25

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

query I rowsort
SELECT - ( 50 + + col1 ) * 51 * + col0 FROM tab2
----
-269943
-28917
-433602

query I rowsort
SELECT DISTINCT + ( - 14 + + col1 ) AS col1 FROM tab2
----
17
3
45

query I rowsort
SELECT + col0 + col1 + 64 AS col2 FROM tab2 AS cor0
----
102
160
201

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

query I rowsort
SELECT + col1 + col2 * - 5 FROM tab1 AS cor0
----
-244
-275
-467

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

skipif mysql # not compatible
query I rowsort label-303
SELECT + + cor0.col0 * col2 + - col1 / - 55 + + col2 * - col0 AS col2 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-304
SELECT col1 + col2 DIV 34 + 90 * + col2 FROM tab1 AS cor0
----
4887
5141
8655

skipif mysql # not compatible
query I rowsort label-304
SELECT col1 + col2 / 34 + 90 * + col2 FROM tab1 AS cor0
----
4887
5141
8655

query I rowsort
SELECT - - 64 + + cor0.col1 + col1 FROM tab1 cor0
----
116
84
90

query I rowsort
SELECT ALL 64 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-307
SELECT ALL - cor1.col1 * cor0.col0 * + CAST( cor0.col0 AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8f4f1dff7a9b63b375cddc6bf0490ec3

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL - cor1.col1 * cor0.col0 * + CAST ( cor0.col0 AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8f4f1dff7a9b63b375cddc6bf0490ec3

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

query I rowsort
SELECT DISTINCT cor0.col2 + ( 61 ) * + col1 FROM tab0 AS cor0
----
5279
5633
5918

query I rowsort
SELECT DISTINCT - col1 * ( + col1 ) + - col1 * col1 AS col1 FROM tab0 AS cor0
----
-14792
-16562
-18818

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

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

query I rowsort
SELECT DISTINCT cor0.col2 + 60 FROM tab0 AS cor0
----
142
61
93

query I rowsort
SELECT - col1 * - 59 FROM tab0 AS cor0
----
5074
5369
5723

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

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

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

skipif mysql # not compatible
query I rowsort label-315
SELECT + + col2 + col0 / - col1 FROM tab1 AS cor0
----
51
54
90

query I rowsort
SELECT - - col2 * - 10 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-201
-239
-363

query I rowsort
SELECT DISTINCT col0 + cor0.col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL + - col0 + ( 89 ) FROM tab0 AS cor0
----
0
54
65

query I rowsort
SELECT + col0 + 45 FROM tab2 AS cor0
----
123
124
52

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-321
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col0 * ( col0 + - cor0.col1 ) FROM tab2 cor0
----
-168
1482
4898

query I rowsort
SELECT + col2 * - ( 42 ) AS col0 FROM tab0 AS cor0
----
-1386
-3444
-42

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

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

query I rowsort
SELECT + ( 5 ) + cor0.col2 AS col1 FROM tab1 AS cor0
----
101
59
62

query I rowsort
SELECT 69 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-329
SELECT - col2 + col1 DIV 58 AS col2 FROM tab2
----
-25
-27
-38

skipif mysql # not compatible
query I rowsort label-329
SELECT - col2 + col1 / 58 AS col2 FROM tab2
----
-25
-27
-38

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 cor1
----
1
33
82

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

query I rowsort
SELECT ALL - cor0.col2 * + col2 * 49 AS col0 FROM tab2 AS cor0
----
-33124
-35721
-70756

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

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

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

query I rowsort
SELECT DISTINCT col1 * + col0 * 57 FROM tab0
----
117648
193515
461643

onlyif mysql # use DIV operator for integer division
query I rowsort label-336
SELECT + cor0.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-336
SELECT + cor0.col2 / + col1 col0 FROM tab1 AS cor0
----
2
5
7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + cor0.col1 * + 68 + + 51 col2 FROM tab1 AS cor0
----
1793
721
922

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 21 col1 FROM tab0
----
103
22
54

query I rowsort
SELECT + - 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 + - ( cor0.col1 ) * + col1 col0 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT ALL + cor0.col0 + + 8 * - 96 AS col1 FROM tab1 AS cor0
----
-688
-704
-765

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

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

query I rowsort
SELECT DISTINCT - 78 + col2 * col0 FROM tab0
----
-43
714
7220

query I rowsort
SELECT DISTINCT - 66 * + col0 + col2 FROM tab1
----
-144
-4167
-5184

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

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

query I rowsort
SELECT ( 74 ) * col0 + - col1 * col2 + col2 FROM tab2
----
-292
4264
5238

query I rowsort
SELECT 12 + + col1 FROM tab0 AS cor0
----
103
109
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-352
SELECT ALL + col0 DIV col1 + - col0 * + 52 + col2 FROM tab1 AS cor0
----
-102
-3265
-4058

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL + col0 / col1 + - col0 * + 52 + col2 FROM tab1 AS cor0
----
-102
-3265
-4058

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

query I rowsort
SELECT - 62 + col1 FROM tab0 AS cor0
----
24
29
35

query I rowsort
SELECT col0 * + 18 AS col0 FROM tab2 AS cor0
----
126
1404
1422

query I rowsort
SELECT ALL - + 61 * - cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
3320
3487
5869

query I rowsort
SELECT - 21 * col0 AS col2 FROM tab1 AS cor0
----
-1344
-1680
-63

query I rowsort
SELECT DISTINCT - + col2 * - col0 + - cor0.col2 * col2 + + col0 FROM tab1 AS cor0
----
-1456
-2751
463

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + col1 col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - ( col2 ) * - 61 * - cor0.col1 FROM tab0 AS cor0
----
-173118
-455182
-5917

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

query I rowsort
SELECT DISTINCT 92 * col0 + col1 * + 94 AS col0 FROM tab1 AS cor0
----
2720
6828
8582

query I rowsort
SELECT col0 + col0 * + 43 AS col1 FROM tab1 cor0
----
132
2816
3520

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

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

query I rowsort
SELECT DISTINCT 24 * ( + tab1.col2 ) * + col1 + - col1 * col1 * 58 AS col1 FROM tab1
----
-5512
20150
7880

query I rowsort
SELECT ALL + 71 + - col1 FROM tab1
----
45
58
61

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

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

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

query I rowsort
SELECT 16 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT cor1.col2 AS col1 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-374
SELECT DISTINCT CAST( + col0 AS SIGNED ) + col1 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-374
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + col1 FROM tab1 AS cor0
----
29
74
93

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

query I rowsort
SELECT ALL + ( col0 ) + col1 * 18 FROM tab2 AS cor0
----
1140
385
565

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

query I rowsort
SELECT ALL - - 45 + + ( col0 ) * 64 AS col2 FROM tab1 AS cor0
----
237
4141
5165

query I rowsort
SELECT ALL + + 62 * 78 + + col0 AS col0 FROM tab0 AS cor0
----
4860
4871
4925

query I rowsort
SELECT + col1 + - cor0.col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - - col2 + col2 + 31 FROM tab0 AS cor0
----
195
33
97

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

query I rowsort
SELECT + col1 + col1 + col2 AS col0 FROM tab2 AS cor0
----
144
72
89

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

query I rowsort
SELECT DISTINCT col1 * col2 + col0 * - col2 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT DISTINCT - 9 + + cor0.col1 FROM tab0, tab1 AS cor0
----
1
17
4

query I rowsort
SELECT + + col2 * 19 AS col1 FROM tab2 AS cor0
----
494
513
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-388
SELECT ALL - - col0 DIV col0 col0 FROM tab1 cor0
----
1
1
1

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

query I rowsort
SELECT DISTINCT - + col0 + - 7 - col1 * col0 AS col2 FROM tab1 AS cor0
----
-1127
-711
-88

query I rowsort
SELECT ALL - col1 * + 73 FROM tab0 AS cor0
----
-6278
-6643
-7081

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

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

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

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

query I rowsort
SELECT 93 - - ( + col2 ) AS col1 FROM tab1 AS cor0
----
147
150
189

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

query I rowsort
SELECT ALL - - 99 * + 20 AS col1 FROM tab0 cor0
----
1980
1980
1980

query I rowsort
SELECT ALL 62 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

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

query I rowsort
SELECT ALL ( 92 * - tab1.col1 ) AS col0 FROM tab1
----
-1196
-2392
-920

query I rowsort
SELECT - ( 92 ) * col1 FROM tab1
----
-1196
-2392
-920

query I rowsort
SELECT - tab1.col0 AS col1 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT ALL + + col0 + - col2 * 47 * col2 + col1 FROM tab0 cor0
----
-315848
-51073
85

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 * col2 + + col2 col1 FROM tab2 AS cor0
----
-208
-216
-304

query I rowsort
SELECT DISTINCT - + 89 AS col2 FROM tab1 AS cor0
----
-89

query I rowsort
SELECT ALL - 81 AS col1 FROM tab1 cor0
----
-81
-81
-81

query I rowsort
SELECT + col0 - col1 * - col1 * - ( 59 * - col1 + ( col2 ) ) AS col0 FROM tab1
----
1000483
113479
53364

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

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

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

query I rowsort
SELECT col0 + col0 + - cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
-27
-2790
-7284

query I rowsort
SELECT ALL + 54 * + col2 FROM tab2
----
1404
1458
2052

query I rowsort
SELECT - 58 * + tab0.col1 FROM tab0
----
-4988
-5278
-5626

query I rowsort
SELECT - ( + 83 ) FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 291feef3dca992d41fad4b2f7ab1ab9e

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-415
SELECT DISTINCT + 28 DIV col2 FROM tab0
----
0
28

skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT + 28 / col2 FROM tab0
----
0
28

query I rowsort
SELECT + col0 * + col0 * + col1 + + 91 FROM tab0
----
118916
49627
720902

query I rowsort
SELECT DISTINCT + 95 * + col0 AS col2 FROM tab0
----
2280
3325
8455

onlyif mysql # use DIV operator for integer division
query I rowsort label-418
SELECT + col0 * col1 - col1 DIV - col2 AS col0 FROM tab0
----
2066
3492
8100

skipif mysql # not compatible
query I rowsort label-418
SELECT + col0 * col1 - col1 / - col2 AS col0 FROM tab0
----
2066
3492
8100

query I rowsort
SELECT + + 25 * + col1 AS col1 FROM tab2 AS cor0
----
1475
425
775

query I rowsort
SELECT col0 + + col0 * 20 FROM tab2 AS cor0
----
147
1638
1659

onlyif mysql # use DIV operator for integer division
query I rowsort label-421
SELECT DISTINCT ( col0 ) + 56 - col1 DIV col0 FROM tab0 AS cor0
----
144
77
89

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT ( col0 ) + 56 - col1 / col0 FROM tab0 AS cor0
----
144
77
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-422
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab0, tab2 cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab0, tab2 cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( + col2 AS REAL ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT col1 + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ALL + cor0.col2 * + 37 FROM tab0 AS cor0
----
1221
3034
37

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

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

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

query I rowsort
SELECT ALL + - cor0.col0 * + ( ( col1 ) ) + col2 * - 30 AS col2 FROM tab0 AS cor0
----
-10559
-3054
-3425

query I rowsort
SELECT DISTINCT - cor0.col1 + 63 FROM tab0, tab2 AS cor0
----
32
4
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - ( 94 ) col1 FROM tab2 AS cor0
----
-120
-121
-132

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

query I rowsort
SELECT DISTINCT - col0 * - 81 FROM tab2 AS cor0
----
567
6318
6399

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

skipif mysql # not compatible
query I rowsort label-433
SELECT + col1 + col2 / - tab0.col0 AS col0 FROM tab0
----
85
91
97

query I rowsort
SELECT ALL col1 * col0 + - col2 * col0 AS col0 FROM tab1
----
-3008
-6640
-84

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT NULL <> ( + col0 )
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-437
SELECT col1 + col2 - col2 DIV + col1 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-437
SELECT col1 + col2 - col2 / + col1 FROM tab0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-438
SELECT ALL col2 + - col2 DIV col2 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL col2 + - col2 / col2 FROM tab1
----
53
56
95

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-440
SELECT DISTINCT col0 + col1 DIV + tab1.col0 AS col1 FROM tab1
----
11
64
80

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT col0 + col1 / + tab1.col0 AS col1 FROM tab1
----
11
64
80

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE ( tab2.col1 ) NOT IN ( + col2 * col2 )
----
7
78
79

query I rowsort
SELECT col1 * + col1 + col1 AS col2 FROM tab2
----
306
3540
992

query I rowsort
SELECT ALL + col0 * tab2.col0 * + col1 + + tab2.col1 FROM tab2
----
106114
1550
359015

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

query I rowsort
SELECT + 81 + col1 AS col2 FROM tab1 AS cor0
----
107
91
94

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

query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN - col0 * + col0 + + col2 + - col0 / + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort
SELECT ALL 61 * col2 + CAST ( 66 AS REAL ) FROM tab1 AS cor0
----
3360
3543
5922

query I rowsort
SELECT ALL + col0 * col2 + col1 * col1 - - col0 FROM tab2 AS cor0
----
1157
3370
5587

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

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

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

query I rowsort
SELECT ALL + 14 + + col0 FROM tab1 AS cor0
----
17
78
94

query I rowsort
SELECT - 19 AS col1 FROM tab0 cor0
----
-19
-19
-19

query I rowsort
SELECT 35 + - col2 * ( col2 ) FROM tab1 AS cor0
----
-2881
-3214
-9181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 79 * + col2 + ( col2 ) + + col2 col0 FROM tab0 AS cor0
----
2673
6642
81

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col1 * + col2 col2 FROM tab1 AS cor0
----
1328
1407
634

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

query I rowsort
SELECT 46 * col0 * + col0 + col2 * col2 + col0 AS col0 FROM tab0 AS cor0
----
27609
371179
56386

query I rowsort
SELECT ALL - ( + 13 ) + - col2 + + col1 * + 5 FROM tab0
----
360
384
471

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

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

query I rowsort
SELECT + col0 * + 45 + col1 FROM tab2
----
346
3569
3572

query I rowsort
SELECT ALL - col0 + ( col0 + - col2 ) AS col2 FROM tab0
----
-1
-33
-82

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * 35 + cor0.col0 col1 FROM tab1, tab1 cor0
----
9 values hashing to 0013a6afc9c9bacc26baffa5f4cf3c64

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

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

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

query I rowsort
SELECT + cor0.col2 - 60 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to e2fe7360ed6392ca8ae51a58fc68567a

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

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

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col1 AS REAL ) + - col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT 75 + col1 FROM tab2 AS cor0
----
106
134
92

query I rowsort
SELECT + col0 * 68 * col1 - 86 FROM tab1 cor0
----
43434
5218
70634

query I rowsort
SELECT DISTINCT tab1.col1 * col1 + - col2 - col0 FROM tab1
----
-21
-7
619

query I rowsort
SELECT DISTINCT 83 + + col1 FROM tab1
----
109
93
96

query I rowsort
SELECT DISTINCT col2 * 54 + + col0 AS col2 FROM tab2
----
1465
1482
2131

query I rowsort
SELECT ALL 15 AS col1 FROM tab2 AS cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 77 AS REAL ) * + col2 + + 27 FROM tab1
----
-4131
-4362
-7365

query I rowsort
SELECT - ( 76 ) * col0 + col1 FROM tab0
----
-1738
-2563
-6673

query I rowsort
SELECT DISTINCT + col1 + 38 AS col0 FROM tab2
----
55
69
97

query I rowsort
SELECT DISTINCT 75 + tab0.col2 * + col2 AS col1 FROM tab0
----
1164
6799
76

query I rowsort
SELECT 68 + col0 * col1 FROM tab0 AS cor0
----
2132
3463
8167

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

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

query I rowsort
SELECT - 29 * - col0 AS col1 FROM tab2 cor0
----
203
2262
2291

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

query I rowsort
SELECT - ( + 1 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT 13 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

onlyif mysql # use DIV operator for integer division
query I rowsort label-492
SELECT col1 DIV 74 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-492
SELECT col1 / 74 FROM tab0
----
1
1
1

query I rowsort
SELECT - ( - 38 ) FROM tab2, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-495
SELECT ALL - col1 * + CAST( col1 + + col1 * col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
-184900
-338724
-745290

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-495
SELECT ALL - col1 * + CAST ( col1 + + col1 * col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
-184900
-338724
-745290

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

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

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

query I rowsort
SELECT ( col1 + + col2 ) * + tab1.col0 AS col2 FROM tab1
----
240
4288
8720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-499
SELECT ALL CAST( col1 AS SIGNED ) * + col0 * col1 AS col2 FROM tab2
----
22831
271518
6727

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL CAST ( col1 AS INTEGER ) * + col0 * col1 AS col2 FROM tab2
----
22831
271518
6727

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

query I rowsort
SELECT ( col2 ) + - col0 * - col0 FROM tab2
----
6110
6279
76

query I rowsort
SELECT col0 * + col1 * col2 + 94 * + col0 FROM tab1
----
107360
42496
4494

query I rowsort
SELECT - 65 * col0 + + col0 AS col0 FROM tab2
----
-448
-4992
-5056

query I rowsort
SELECT DISTINCT ( cor0.col2 ) * + col2 + col1 * - col2 FROM tab1 AS cor0
----
1512
2679
7968

query I rowsort
SELECT col2 * 32 + - col2 AS col0 FROM tab1 AS cor0
----
1674
1767
2976

query I rowsort
SELECT DISTINCT - col2 * + col2 * col2 + + col0 FROM tab2 AS cor0
----
-17498
-19676
-54793

query I rowsort
SELECT DISTINCT - 95 + col2 * col0 * - col2 AS col0 FROM tab1 AS cor0
----
-208031
-737375
-8843

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

query I rowsort
SELECT ALL + + col1 * 48 + col2 + cor0.col2 * + 59 FROM tab1 AS cor0
----
3900
4488
6384

query I rowsort
SELECT + col1 * cor0.col1 * 65 AS col0 FROM tab2 cor0
----
18785
226265
62465

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

query I rowsort
SELECT DISTINCT + 26 + - col1 * + col2 AS col1 FROM tab1 AS cor0
----
-1222
-1378
-544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 + ( col2 * col1 + ( + col0 ) * cor0.col1 ) col1 FROM tab2 AS cor0
----
1068
2147
6292

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 26 * col1 AS REAL ) AS col2 FROM tab0
----
2236
2366
2522

query I rowsort
SELECT + cor0.col2 * + col0 * + col2 FROM tab1 AS cor0
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-518
SELECT col1 DIV col0 + + col2 * col2 col1 FROM tab0 AS cor0
----
1092
3
6725

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-518
SELECT col1 / col0 + + col2 * col2 col1 FROM tab0 AS cor0
----
1092
3
6725

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

query I rowsort
SELECT col2 + - col0 + - col0 * 20 * - col1 AS col2 FROM tab0 AS cor0
----
161973
41289
67866

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

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

query I rowsort
SELECT - + col1 * 70 + - col1 FROM tab1 AS cor0
----
-1846
-710
-923

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

query I rowsort
SELECT ALL - col2 + 85 AS col0 FROM tab2 AS cor0
----
47
58
59

query I rowsort
SELECT - col1 - - 79 FROM tab1 AS cor0
----
53
66
69

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

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

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

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

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

query I rowsort
SELECT ALL col1 + + 58 FROM tab1
----
68
71
84

query I rowsort
SELECT DISTINCT - col1 * - col1 + col2 + col0 AS col1 FROM tab2
----
3585
406
995

query I rowsort
SELECT DISTINCT col0 + tab1.col1 * 10 + - col0 FROM tab1
----
100
130
260

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

skipif mysql # not compatible
query I rowsort label-534
SELECT + tab0.col1 * - CAST ( col1 + - col2 AS INTEGER ) FROM tab0
----
-4558
-819
-9312

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

query I rowsort
SELECT ALL - ( 89 ) * col0 * + col0 AS col0 FROM tab2 AS cor0
----
-4361
-541476
-555449

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

query I rowsort
SELECT ( + 25 ) + tab0.col1 + 48 FROM tab0, tab2 AS cor0
----
9 values hashing to 4721c071bcaf513fe282787bcb4da2a8

query I rowsort
SELECT DISTINCT - col1 + 40 FROM tab0
----
-46
-51
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-540
SELECT col2 DIV + ( 87 ) - + tab2.col0 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-540
SELECT col2 / + ( 87 ) - + tab2.col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT - col2 + + ( - ( + col0 ) ) + + 85 * - col0 FROM tab1
----
-312
-5561
-6976

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-543
SELECT + CAST( 67 AS SIGNED ) + tab2.col1 * - col0 FROM tab2
----
-1276
-150
-4535

skipif mysql # not compatible
query I rowsort label-543
SELECT + CAST ( 67 AS INTEGER ) + tab2.col1 * - col0 FROM tab2
----
-1276
-150
-4535

query I rowsort
SELECT ( - col2 ) * + col0 * 80 + - col1 AS col1 FROM tab0 AS cor0
----
-2897
-583931
-63446

onlyif mysql # use DIV operator for integer division
query I rowsort label-545
SELECT ALL - col2 DIV 7 + - col2 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
2834
7451
97

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL - col2 / 7 + - col2 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
2834
7451
97

query I rowsort
SELECT ALL col0 * 58 * + col0 AS col1 FROM tab0 cor0
----
33408
459418
71050

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

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

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

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

query I rowsort
SELECT 8 + - col1 AS col2 FROM tab0 AS cor0
----
-78
-83
-89

query I rowsort
SELECT ALL col0 + 31 * + col0 FROM tab2 AS cor0
----
224
2496
2528

query I rowsort
SELECT + - 64 * col2 + cor0.col1 FROM tab2 cor0
----
-1605
-1697
-2415

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

query I rowsort
SELECT DISTINCT - 7 + col2 AS col2 FROM tab0 AS cor0
----
-6
26
75

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

query I rowsort
SELECT ALL - - 18 * 19 * col1 AS col2 FROM tab2 AS cor0
----
10602
20178
5814

query I rowsort
SELECT ( ( - cor0.col1 ) ) * ( + 22 + + col2 ) FROM tab0 AS cor0
----
-2231
-4730
-9464

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 - + 80 col1 FROM tab1 AS cor0
----
1168
1324
490

query I rowsort
SELECT ALL - col2 * col2 + col1 - - col2 FROM tab1 AS cor0
----
-2836
-3182
-9107

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

query I rowsort
SELECT + + 81 AS col2 FROM tab2 cor0
----
81
81
81

query I rowsort
SELECT DISTINCT ( - cor0.col1 ) AS col0 FROM tab2, tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - - col2 * - col1 * 42 + - col1 FROM tab1 AS cor0
----
-23950
-52429
-58994

query I rowsort
SELECT + col1 * col2 + + cor0.col0 * col0 FROM tab2 AS cor0
----
6887
7618
886

query I rowsort
SELECT ALL - cor2.col1 FROM tab2, tab1 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

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

query I rowsort
SELECT ALL + 13 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

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

query I rowsort
SELECT ALL - tab2.col0 * + cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to c42d62a12ef524ac9c406f441b8c8a7e

onlyif mysql # use DIV operator for integer division
query I rowsort label-573
SELECT ALL col0 * 23 DIV + col0 AS col1 FROM tab0 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL col0 * 23 / + col0 AS col1 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT DISTINCT + - cor0.col1 * col0 * + col0 + + col2 AS col2 FROM tab0 AS cor0
----
-118824
-49503
-720729

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

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

query I rowsort
SELECT DISTINCT col1 * - col0 + + col2 * col2 AS col2 FROM tab0 AS cor0
----
-1375
-3394
-975

query I rowsort
SELECT ALL + col1 * 82 AS col0 FROM tab1 cor0
----
1066
2132
820

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-580
SELECT ALL - cor0.col1 DIV ( ( - col1 ) * ( 33 ) ) FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL - cor0.col1 / ( ( - col1 ) * ( 33 ) ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + col0 - - 75 FROM tab2 AS cor0
----
153
154
82

query I rowsort
SELECT - 28 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-583
SELECT DISTINCT - col0 * ( 78 ) DIV - col1 FROM tab1 AS cor0
----
480
499
9

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT - col0 * ( 78 ) / - col1 FROM tab1 AS cor0
----
480
499
9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 * 47 + col2 * + ( col2 ) col2 FROM tab0 AS cor0
----
322752
48
52272

query I rowsort
SELECT + 1 + + 7 AS col0 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT + col0 * 22 + col0 AS col0 FROM tab1 AS cor0
----
1472
1840
69

query I rowsort
SELECT ALL 70 - + 85 * col1 AS col1 FROM tab0 AS cor0
----
-7240
-7665
-8175

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

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT - + col2 + cor0.col1 / - col1 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT + + 1 + col1 AS col1 FROM tab1 AS cor0
----
11
14
27

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

query I rowsort
SELECT 59 * col2 FROM tab2 cor0
----
1534
1593
2242

query I rowsort
SELECT DISTINCT 22 * cor0.col0 AS col0 FROM tab2 AS cor0
----
154
1716
1738

query I rowsort
SELECT ALL + 57 + + col1 FROM tab0 AS cor0
----
143
148
154

query I rowsort
SELECT ALL - col0 * cor0.col2 + col2 + - 96 FROM tab0 AS cor0
----
-130
-7312
-855

query I rowsort
SELECT DISTINCT 77 * tab2.col0 * - tab2.col1 FROM tab2
----
-103411
-16709
-354354

query I rowsort
SELECT ALL col0 * - col1 - col2 * col2 FROM tab0
----
-14823
-3153
-3396

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

query I rowsort
SELECT ALL ( tab2.col2 * - col0 ) - col2 AS col0 FROM tab2
----
-2054
-216
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-601
SELECT DISTINCT + col1 DIV + tab2.col1 - + tab2.col1 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-601
SELECT DISTINCT + col1 / + tab2.col1 - + tab2.col1 FROM tab2
----
-16
-30
-58

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

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

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

query I rowsort
SELECT + 10 + - col1 * col2 FROM tab0 AS cor0
----
-2828
-7452
-87

query I rowsort
SELECT DISTINCT col2 - - 3 * col1 AS col1 FROM tab2 cor0
----
120
203
89

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

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

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

query I rowsort
SELECT col1 * ( - col1 ) + col1 + col2 FROM tab1 AS cor0
----
-33
-596
-60

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

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

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

query I rowsort
SELECT DISTINCT - col1 * col2 + 73 FROM tab2
----
-1461
-573
-764

query I rowsort
SELECT ALL - 16 + 76 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL 74 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT - col2 * col2 * col2 AS col2 FROM tab2
----
-17576
-19683
-54872

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

query I rowsort
SELECT ALL - tab1.col2 * + 53 AS col0 FROM tab1
----
-2862
-3021
-5088

query I rowsort
SELECT col1 + 33 * col1 FROM tab2
----
1054
2006
578

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

query I rowsort
SELECT DISTINCT - col2 * - 19 + + 27 * col2 AS col0 FROM tab2 AS cor0
----
1196
1242
1748

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

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

query I rowsort
SELECT DISTINCT tab2.col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
26
27
38

query I rowsort
SELECT 67 + - col1 + col2 AS col2 FROM tab0 AS cor0
----
-29
14
58

query I rowsort
SELECT DISTINCT 60 * - col2 + col2 * 79 + - col1 AS col1 FROM tab0 AS cor0
----
-78
1467
541

query I rowsort
SELECT ALL + cor1.col1 * + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

query I rowsort
SELECT - 27 * col0 + col2 * - col1 FROM tab1 cor0
----
-1485
-2298
-3408

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-630
SELECT DISTINCT - CAST( col0 AS SIGNED ) + col2 FROM tab0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-630
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + col2 FROM tab0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-631
SELECT DISTINCT - 46 + col0 * col0 DIV - 52 + tab1.col1 * col1 DIV - ( col2 ) FROM tab1
----
-125
-170
-58

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT - 46 + col0 * col0 / - 52 + tab1.col1 * col1 / - ( col2 ) FROM tab1
----
-125
-170
-58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-632
SELECT ALL + 10 / cor0.col2 col2 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-634
SELECT - - CAST( - col1 AS SIGNED ) + col1 DIV + 44 col1 FROM tab1 cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-634
SELECT - - CAST ( - col1 AS INTEGER ) + col1 / + 44 col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT - ( col1 ) + - col0 * + 44 AS col0 FROM tab0 AS cor0
----
-1142
-1637
-4007

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

skipif mysql # not compatible
query I rowsort label-636
SELECT + 43 * - tab0.col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-637
SELECT ( col1 ) DIV col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-637
SELECT ( col1 ) / col1 FROM tab1
----
1
1
1

query I rowsort
SELECT + col1 - + 49 * + col0 FROM tab0 AS cor0
----
-1090
-1618
-4270

query I rowsort
SELECT - - col2 * 53 * + col0 + col2 FROM tab2 AS cor0
----
10044
107510
159144

query I rowsort
SELECT - col0 * - 79 - col2 FROM tab0 cor0
----
1863
2764
6949

query I rowsort
SELECT col0 * - col0 * col0 AS col0 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT - col1 + 51 + col0 FROM tab2 AS cor0
----
113
27
70

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 + + col1 * - ( col0 ) col1 FROM tab0 AS cor0
----
-1999
-3330
-8034

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-649
SELECT DISTINCT 88 + cor0.col0 DIV + CAST( - 34 AS SIGNED ) FROM tab2 AS cor0
----
86
88

skipif mysql # not compatible
query I rowsort label-649
SELECT DISTINCT 88 + cor0.col0 / + CAST ( - 34 AS INTEGER ) FROM tab2 AS cor0
----
86
88

query I rowsort
SELECT + tab2.col0 + 42 - + col1 AS col1 FROM tab2
----
104
18
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-651
SELECT ALL 24 + 19 DIV col0 - + 27 * col0 * col2 FROM tab2
----
-5077
-54732
-81030

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL 24 + 19 / col0 - + 27 * col0 * col2 FROM tab2
----
-5077
-54732
-81030

query I rowsort
SELECT + 80 + - cor0.col2 * ( cor0.col0 + - col0 * col1 ) FROM tab2 AS cor0
----
117704
48112
5750

query I rowsort
SELECT ALL + col1 * - col0 + 32 * + col2 AS col1 FROM tab2 cor0
----
-127
-3770
647

query I rowsort
SELECT ALL + col2 + - col2 * col2 * col0 AS col0 FROM tab1
----
-207879
-737184
-8694

query I rowsort
SELECT + col2 * + 71 + col0 FROM tab0 AS cor0
----
106
2367
5911

query I rowsort
SELECT DISTINCT + 65 * + col1 + - tab1.col0 * - ( col2 ) FROM tab1
----
1852
4298
8525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 + + 43 * - col0 * col1 col0 FROM tab1
----
-27399
-3297
-44544

query I rowsort
SELECT ALL + - col1 * col2 + + 19 + col0 AS col0 FROM tab1 AS cor0
----
-1149
-1382
-487

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

query I rowsort
SELECT + 63 * + col0 FROM tab1
----
189
4032
5040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-661
SELECT - - CAST( col1 AS SIGNED ) * - col2 * 75 AS col1 FROM tab0 cor0
----
-212850
-559650
-7275

skipif mysql # not compatible
query I rowsort label-661
SELECT - - CAST ( col1 AS INTEGER ) * - col2 * 75 AS col1 FROM tab0 cor0
----
-212850
-559650
-7275

query I rowsort
SELECT + + col2 * + 10 FROM tab0 AS cor0
----
10
330
820

query I rowsort
SELECT + - 71 * col2 AS col1 FROM tab1 AS cor0
----
-3834
-4047
-6816

query I rowsort
SELECT DISTINCT 56 + col2 AS col1 FROM tab2 AS cor0
----
82
83
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-665
SELECT col1 * + col1 + - col1 DIV col1 col1 FROM tab0
----
7395
8280
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-665
SELECT col1 * + col1 + - col1 / col1 col1 FROM tab0
----
7395
8280
9408

query I rowsort
SELECT + tab1.col1 + + 44 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 47fd0018332186f6cb6cafc6b1fbb68e

onlyif mysql # use DIV operator for integer division
query I rowsort label-667
SELECT DISTINCT ( + col2 ) DIV col1 - + tab2.col2 FROM tab2
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-667
SELECT DISTINCT ( + col2 ) / col1 - + tab2.col2 FROM tab2
----
-26
-27
-36

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

query I rowsort
SELECT col1 * 15 FROM tab2 AS cor0
----
255
465
885

query I rowsort
SELECT DISTINCT 75 * col2 FROM tab1 AS cor0
----
4050
4275
7200

query I rowsort
SELECT + 60 * - 60 AS col2 FROM tab1 cor0
----
-3600
-3600
-3600

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-673
SELECT + CAST( + 12 AS SIGNED ) * col2 FROM tab1 AS cor0
----
1152
648
684

skipif mysql # not compatible
query I rowsort label-673
SELECT + CAST ( + 12 AS INTEGER ) * col2 FROM tab1 AS cor0
----
1152
648
684

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

query I rowsort
SELECT + 80 * + cor0.col0 FROM tab2 AS cor0
----
560
6240
6320

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

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

query I rowsort
SELECT col0 + - tab1.col2 + - tab1.col2 * - tab1.col2 AS col0 FROM tab1
----
2865
3256
9200

query I rowsort
SELECT ALL col2 * + 69 AS col0 FROM tab0
----
2277
5658
69

query I rowsort
SELECT + col2 + 54 AS col2 FROM tab1
----
108
111
150

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

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

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

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

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

query I rowsort
SELECT col1 * cor0.col1 + col1 + col2 AS col1 FROM tab0 AS cor0
----
7515
8454
9507

query I rowsort
SELECT ALL - - col2 + - col2 * 67 FROM tab1 cor0
----
-3564
-3762
-6336

query I rowsort
SELECT + 97 - + col2 FROM tab1 cor0
----
1
40
43

query I rowsort
SELECT DISTINCT 62 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
5332
5642
6014

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

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

query I rowsort
SELECT - col2 + - col2 * - ( col1 ) * + col1 FROM tab2 AS cor0
----
10944
25920
90480

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-691
SELECT - + col2 DIV + col1 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-691
SELECT - + col2 / + col1 FROM tab1 cor0
----
-2
-5
-7

query I rowsort
SELECT - 43 * cor0.col2 + - col0 * - col0 FROM tab1 AS cor0
----
-2313
1645
2272

query I rowsort
SELECT ALL - 86 * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-7826
-8342

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

query I rowsort
SELECT + col0 + col1 * - col0 * ( + col1 * + col1 ) FROM tab0 AS cor0
----
-15265320
-31943520
-67067730

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-698
SELECT ALL col0 DIV + col1 + + col1 + + col1 AS col2 FROM tab2 cor0
----
119
38
62

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL col0 / + col1 + + col1 + + col1 AS col2 FROM tab2 cor0
----
119
38
62

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

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

query I rowsort
SELECT col0 + col0 * 11 * + col1 FROM tab2 AS cor0
----
14852
2394
50700

onlyif mysql # use DIV operator for integer division
query I rowsort label-702
SELECT + col1 + ( 46 ) DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-702
SELECT + col1 + ( 46 ) / - cor0.col2 AS col1 FROM tab0 AS cor0
----
51
85
91

query I rowsort
SELECT ALL col2 * - col0 + + col2 * + col2 + col1 * - 54 FROM tab1 AS cor0
----
-939
1350
834

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-705
SELECT ALL + col2 DIV - 78 + - 33 AS col1 FROM tab2 AS cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL + col2 / - 78 + - 33 AS col1 FROM tab2 AS cor0
----
-33
-33
-33

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

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

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

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

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

query I rowsort
SELECT ALL - 50 + cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
1394
626
679

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

query I rowsort
SELECT col0 * cor0.col1 * + cor0.col1 + col0 AS col2 FROM tab1 cor0
----
13600
2031
6464

query I rowsort
SELECT + 64 + col1 FROM tab1 cor0
----
74
77
90

query I rowsort
SELECT ALL - col2 * - col2 * - col0 + col1 AS col0 FROM tab0 AS cor0
----
-26050
-598345
62

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

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

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

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

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

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

query I rowsort
SELECT - + 71 + - col2 FROM tab2 AS cor0
----
-109
-97
-98

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-722
SELECT - col0 * col1 DIV col2 + - col0 FROM tab1 cor0
----
-4
-75
-90

skipif mysql # not compatible
query I rowsort label-722
SELECT - col0 * col1 / col2 + - col0 FROM tab1 cor0
----
-4
-75
-90

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

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

query I rowsort
SELECT ALL tab2.col2 * 43 + + col2 * col0 FROM tab2
----
1350
3146
4636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + col0 * tab1.col0 col1 FROM tab1
----
35
4106
6413

query I rowsort
SELECT DISTINCT ( - 26 ) + col1 FROM tab0
----
60
65
71

query I rowsort
SELECT + - col0 + + col2 * - col1 * - col0 AS col0 FROM tab2 AS cor0
----
119574
50955
5852

query I rowsort
SELECT ( ( - col2 ) + - col2 * col2 ) FROM tab1
----
-2970
-3306
-9312

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

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

query I rowsort
SELECT 80 * + col2 AS col1 FROM tab1
----
4320
4560
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-733
SELECT + col0 * 43 DIV + tab1.col1 AS col1 FROM tab1
----
264
275
4

skipif mysql # not compatible
query I rowsort label-733
SELECT + col0 * 43 / + tab1.col1 AS col1 FROM tab1
----
264
275
4

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

query I rowsort
SELECT DISTINCT cor0.col2 * - col0 * - col2 - cor0.col1 FROM tab0 AS cor0
----
-62
26050
598345

onlyif mysql # use DIV operator for integer division
query I rowsort label-736
SELECT - col0 DIV col0 + col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
-1
-7
-7

skipif mysql # not compatible
query I rowsort label-736
SELECT - col0 / col0 + col0 / - col1 AS col1 FROM tab1 AS cor0
----
-1
-7
-7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) <= NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) >= col2
----

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

query I rowsort
SELECT ALL col1 * col0 + + col1 * col0 AS col1 FROM tab2
----
2686
434
9204

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 col0 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL col0 + + col1 + col2 * col1 FROM tab2
----
1671
742
875

onlyif mysql # use DIV operator for integer division
query I rowsort label-746
SELECT ALL - tab0.col1 DIV + tab0.col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL - tab0.col1 / + tab0.col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT col2 * + tab0.col2 + - col2 * - col1 AS col0 FROM tab0
----
14186
3927
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-748
SELECT ALL + col1 + col1 DIV + col0 - + col2 AS col2 FROM tab2
----
-21
33
8

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL + col1 + col1 / + col0 - + col2 AS col2 FROM tab2
----
-21
33
8

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

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

query I rowsort
SELECT - tab0.col1 FROM tab0 WHERE NOT ( - col1 + col1 * col2 ) = ( NULL )
----

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

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-755
SELECT DISTINCT - col1 * CAST( + col1 AS SIGNED ) + col0 + 42 FROM tab0 AS cor0
----
-7330
-8150
-9332

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT - col1 * CAST ( + col1 AS INTEGER ) + col0 + 42 FROM tab0 AS cor0
----
-7330
-8150
-9332

query I rowsort
SELECT DISTINCT col1 + col2 + col0 AS col2 FROM tab0 AS cor0
----
133
143
262

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + cor0.col2 AS REAL ) * col1 + - col1 FROM tab1 AS cor0
----
1235
1378
560

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-763
SELECT ALL 97 DIV col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL 97 / col1 FROM tab0 cor0
----
1
1
1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-765
SELECT ALL col0 * 1 DIV 14 AS col1 FROM tab1
----
0
4
5

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL col0 * 1 / 14 AS col1 FROM tab1
----
0
4
5

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

query I rowsort
SELECT DISTINCT cor0.col1 + 1 AS col2 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT ALL + 71 * col2 + - col0 * + col0 FROM tab2 AS cor0
----
-3543
-4238
1868

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

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

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

query I rowsort
SELECT - 84 * - col0 - col2 FROM tab0 cor0
----
1983
2939
7394

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-773
SELECT + col2 + - 22 - + col0 DIV col1 FROM tab0
----
-21
11
60

skipif mysql # not compatible
query I rowsort label-773
SELECT + col2 + - 22 - + col0 / col1 FROM tab0
----
-21
11
60

query I rowsort
SELECT - col1 * 86 FROM tab0
----
-7396
-7826
-8342

query I rowsort
SELECT DISTINCT - tab0.col0 - - 84 FROM tab0
----
-5
49
60

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

query I rowsort
SELECT ALL - tab1.col2 * col0 - 2 AS col2 FROM tab1
----
-164
-3650
-7682

query I rowsort
SELECT - 91 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

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

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

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

query I rowsort
SELECT ALL + col0 * col1 + 67 * ( - col2 ) FROM tab1 AS cor0
----
-3179
-3540
-5392

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

query I rowsort
SELECT - 13 * - col0 FROM tab2 AS cor0
----
1014
1027
91

query I rowsort
SELECT col1 * + 36 FROM tab0
----
3096
3276
3492

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT ( - cor0.col0 ) - + CAST ( col0 AS REAL ) AS col0 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT ALL + col2 * + cor0.col2 + + 29 * col1 AS col0 FROM tab0 AS cor0
----
2814
3583
9363

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-788
SELECT ALL - 99 * col0 * + CAST( + 95 * col0 AS SIGNED ) AS col1 FROM tab0
----
-11521125
-5417280
-74497005

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL - 99 * col0 * + CAST ( + 95 * col0 AS INTEGER ) AS col1 FROM tab0
----
-11521125
-5417280
-74497005

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

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

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

query I rowsort
SELECT DISTINCT 76 * tab2.col2 AS col2 FROM tab2
----
1976
2052
2888

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL 36 * col2 AS col0 FROM tab0
----
1188
2952
36

query I rowsort
SELECT + col1 * col1 * col2 + 58 AS col1 FROM tab2
----
11040
26005
90564

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55

onlyif mysql # use DIV operator for integer division
query I rowsort label-797
SELECT + col0 DIV col2 + col1 FROM tab1
----
11
13
26

skipif mysql # not compatible
query I rowsort label-797
SELECT + col0 / col2 + col1 FROM tab1
----
11
13
26

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

query I rowsort
SELECT ALL col2 * - ( + col0 ) FROM tab0 cor0
----
-35
-7298
-792

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * 3 col0 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT DISTINCT 33 + cor0.col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
111
112
40

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

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

query I rowsort
SELECT + 82 * 55 + - col1 AS col1 FROM tab0 AS cor0
----
4413
4419
4424

query I rowsort
SELECT ALL - col1 * col1 + col2 + + col2 AS col2 FROM tab1 AS cor0
----
-568
14
23

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-808
SELECT ALL 32 + 23 DIV + col1 col0 FROM tab0
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-808
SELECT ALL 32 + 23 / + col1 col0 FROM tab0
----
32
32
32

query I rowsort
SELECT ALL + - col1 + col2 * + 10 FROM tab0 AS cor0
----
-87
244
729

query I rowsort
SELECT ALL - cor0.col2 + col2 * + 13 FROM tab0 AS cor0
----
12
396
984

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

query I rowsort
SELECT DISTINCT - + 27 AS col1 FROM tab0, tab1 AS cor0
----
-27

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-814
SELECT + col1 * + col1 + - CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
7363
8199
9408

skipif mysql # not compatible
query I rowsort label-814
SELECT + col1 * + col1 + - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
7363
8199
9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-815
SELECT 57 * col1 - + CAST( 60 * cor0.col0 + 22 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3292
-4081
1280

skipif mysql # not compatible
query I rowsort label-815
SELECT 57 * col1 - + CAST ( 60 * cor0.col0 + 22 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3292
-4081
1280

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

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

query I rowsort
SELECT DISTINCT - 69 * + col1 AS col1 FROM tab1
----
-1794
-690
-897

onlyif mysql # use DIV operator for integer division
query I rowsort label-819
SELECT col1 DIV 71 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-819
SELECT col1 / 71 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 75 * + col0 AS col0 FROM tab1
----
225
4800
6000

query I rowsort
SELECT + 6 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT ( col0 ) * - col0 AS col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT 66 - + tab1.col2 FROM tab1
----
-30
12
9

query I rowsort
SELECT 40 AS col0 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT col0 * col1 - + 52 AS col2 FROM tab2 AS cor0
----
1291
165
4550

query I rowsort
SELECT - col0 * + col1 - - 74 * + 75 FROM tab1 AS cor0
----
4510
4910
5472

query I rowsort
SELECT col1 + col1 * col2 * 85 FROM tab1 cor0
----
106093
119366
48460

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-828
SELECT ALL + col0 + + CAST( 93 AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
2496
2518
3613

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL + col0 + + CAST ( 93 AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
2496
2518
3613

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col2 FROM tab2
----
37
37
37

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-833
SELECT ALL + col2 + 90 DIV + col2 AS col1 FROM tab0 AS cor0
----
35
83
91

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL + col2 + 90 / + col2 AS col1 FROM tab0 AS cor0
----
35
83
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-834
SELECT ALL 23 * col1 DIV col0 FROM tab0 AS cor0
----
23
63
82

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL 23 * col1 / col0 FROM tab0 AS cor0
----
23
63
82

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

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

query I rowsort
SELECT ALL 80 + + col1 FROM tab0 AS cor0
----
166
171
177

onlyif mysql # use DIV operator for integer division
query I rowsort label-838
SELECT - - col1 DIV col0 + col2 FROM tab0 cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-838
SELECT - - col1 / col0 + col2 FROM tab0 cor0
----
3
36
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-839
SELECT ALL + ( - col2 ) + - ( + col2 ) DIV cor0.col2 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL + ( - col2 ) + - ( + col2 ) / cor0.col2 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT DISTINCT - 54 * + col1 + col1 * col0 AS col2 FROM tab0 AS cor0
----
-1843
-2580
3185

query I rowsort
SELECT 72 FROM tab1, tab0 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL + 81 AS col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT - - col2 + + 94 * 58 AS col2 FROM tab1 cor0
----
5506
5509
5548

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL + col1 * - 1 + + col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL col2 * col1 + 54 + col0 AS col2 FROM tab2 AS cor0
----
1666
779
898

onlyif mysql # use DIV operator for integer division
query I rowsort label-847
SELECT DISTINCT - col1 * - cor0.col0 + + col1 * cor0.col0 + - ( - 44 ) DIV col1 FROM tab1 AS cor0
----
1284
157
2083

skipif mysql # not compatible
query I rowsort label-847
SELECT DISTINCT - col1 * - cor0.col0 + + col1 * cor0.col0 + - ( - 44 ) / col1 FROM tab1 AS cor0
----
1284
157
2083

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

query I rowsort
SELECT 48 * + 97 FROM tab0 AS cor0
----
4656
4656
4656

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-851
SELECT DISTINCT 90 DIV col1 AS col0 FROM tab2 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT 90 / col1 AS col0 FROM tab2 AS cor0
----
1
2
5

query I rowsort
SELECT tab1.col2 * col2 + 92 * + col0 FROM tab1
----
16576
3192
9137

onlyif mysql # use DIV operator for integer division
query I rowsort label-853
SELECT DISTINCT 76 DIV + 98 AS col1 FROM tab1, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT 76 / + 98 AS col1 FROM tab1, tab1 AS cor0
----
0

query I rowsort
SELECT col1 - 62 AS col1 FROM tab0
----
24
29
35

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

query I rowsort
SELECT ALL col1 + ( 83 + - col1 * col2 ) AS col2 FROM tab2
----
-1392
-546
-723

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

query I rowsort
SELECT + col0 + ( - col2 ) * - col2 * col0 FROM tab1 AS cor0
----
208000
737360
8751

query I rowsort
SELECT ALL + - 9 * + cor0.col2 FROM tab0 AS cor0
----
-297
-738
-9

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-861
SELECT ALL + col1 * + col1 + CAST( - 52 AS SIGNED ) * + cor0.col2 FROM tab1 AS cor0
----
-2132
-2864
-4823

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL + col1 * + col1 + CAST ( - 52 AS INTEGER ) * + cor0.col2 FROM tab1 AS cor0
----
-2132
-2864
-4823

onlyif mysql # use DIV operator for integer division
query I rowsort label-862
SELECT + 99 DIV col0 FROM tab0 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-862
SELECT + 99 / col0 FROM tab0 AS cor0
----
1
2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 35 ) + + cor0.col2 * cor1.col1 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 196b8728292ebab408995b5eecc1d1e7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-864
SELECT - + cor0.col0 + + CAST( - 89 AS SIGNED ) FROM tab2 AS cor0
----
-167
-168
-96

skipif mysql # not compatible
query I rowsort label-864
SELECT - + cor0.col0 + + CAST ( - 89 AS INTEGER ) FROM tab2 AS cor0
----
-167
-168
-96

query I rowsort
SELECT ALL + cor0.col2 - + 81 AS col2 FROM tab0 AS cor0
----
-48
-80
1

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

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

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

query I rowsort
SELECT - col0 * + 59 * + col2 AS col1 FROM tab2 AS cor0
----
-11151
-119652
-177118

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

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

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

query I rowsort
SELECT DISTINCT col0 * 24 + col0 FROM tab2
----
175
1950
1975

query I rowsort
SELECT - 3 * col1 * - col0 + - col0 FROM tab0 AS cor0
----
10150
24208
6168

query I rowsort
SELECT DISTINCT cor1.col0 * - 75 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-1800
-2625
-6675

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

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

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

query I rowsort
SELECT DISTINCT + col2 * 55 + col0 AS col2 FROM tab2 AS cor0
----
1492
1508
2169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 + col0 col0 FROM tab0 AS cor0
----
70
7387
816

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-881
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
NULL

skipif mysql # not compatible
query I rowsort label-881
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
NULL

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

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

query I rowsort
SELECT ALL + - ( col1 ) + - 93 * cor0.col2 AS col0 FROM tab1 cor0
----
-5048
-5311
-8941

query I rowsort
SELECT ALL + ( col2 ) * - 40 * + col1 FROM tab1 cor0
----
-22800
-49920
-56160

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

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

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

query I rowsort
SELECT DISTINCT col2 + col1 * + 18 FROM tab0 AS cor0
----
1581
1720
1747

query I rowsort
SELECT col1 * + col0 + - col0 AS col1 FROM tab1 AS cor0
----
576
75
960

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

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

query I rowsort
SELECT DISTINCT - - 57 * + col2 AS col0 FROM tab2 cor0
----
1482
1539
2166

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

query I rowsort
SELECT ALL ( - cor0.col1 ) + + 24 AS col0 FROM tab1 cor0
----
-2
11
14

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-895
SELECT + - cor0.col1 DIV - col2 + - cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-895
SELECT + - cor0.col1 / - col2 + - cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26

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

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

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

query I rowsort
SELECT + 86 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL + 29 * col1 + + col1 * - ( - col0 ) * 82 AS col0 FROM tab0 AS cor0
----
171742
281203
666757

query I rowsort
SELECT ALL - + 42 * col0 - col2 * + col0 FROM tab2 AS cor0
----
-483
-5304
-6320

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

query I rowsort
SELECT DISTINCT - col1 * col2 + 10 FROM tab2 cor0
----
-1524
-636
-827

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

skipif mysql # not compatible
query I rowsort label-904
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 cor0, tab2 AS cor1
----
NULL

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

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

query I rowsort
SELECT 31 + - col2 AS col2 FROM tab0
----
-2
-51
30

query I rowsort
SELECT tab2.col2 + col1 * ( tab2.col0 ) * col1 FROM tab2
----
22869
271544
6754

onlyif mysql # use DIV operator for integer division
query I rowsort label-909
SELECT - - cor0.col2 - col1 DIV + col0 FROM tab0 cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-909
SELECT - - cor0.col2 - col1 / + col0 FROM tab0 cor0
----
-1
30
81

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

query I rowsort
SELECT + + 23 * + col2 + + col2 * - col0 FROM tab2 AS cor0
----
-1430
-2128
432

query I rowsort
SELECT DISTINCT + 20 * - 95 FROM tab0 AS cor0
----
-1900

query I rowsort
SELECT ALL 68 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1768
680
884

query I rowsort
SELECT - - 73 + + col0 AS col2 FROM tab1 AS cor0
----
137
153
76

query I rowsort
SELECT ALL + 24 * - 90 FROM tab2 cor0
----
-2160
-2160
-2160

query I rowsort
SELECT DISTINCT + 26 + + col2 AS col2 FROM tab0 AS cor0
----
108
27
59

query I rowsort
SELECT + 62 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1506
738
791

query I rowsort
SELECT ALL col2 * 63 * col2 - - col1 AS col1 FROM tab1
----
183734
204697
580621

query I rowsort
SELECT + col2 + 48 FROM tab2
----
74
75
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-920
SELECT DISTINCT col0 * 72 DIV col0 - col2 FROM tab0
----
-10
39
71

skipif mysql # not compatible
query I rowsort label-920
SELECT DISTINCT col0 * 72 / col0 - col2 FROM tab0
----
-10
39
71

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

skipif mysql # not compatible
query I rowsort label-921
SELECT tab1.col0 + CAST ( NULL AS INTEGER ) / 88 - + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 35 ) AS col1 FROM tab2 AS cor0
----
35

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

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

query I rowsort
SELECT + col2 * + 82 + col0 AS col2 FROM tab1 cor0
----
4431
4738
7952

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

query I rowsort
SELECT DISTINCT - col1 * + 4 - + cor0.col1 AS col1 FROM tab0 AS cor0
----
-430
-455
-485

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-929
SELECT ALL col0 DIV 55 AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-929
SELECT ALL col0 / 55 AS col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT 10 - - 44 * col1 AS col0 FROM tab2 AS cor0
----
1374
2606
758

query I rowsort
SELECT col2 * ( + 80 ) AS col2 FROM tab2 AS cor0
----
2080
2160
3040

query I rowsort
SELECT - col1 * - 75 AS col2 FROM tab2 AS cor0
----
1275
2325
4425

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

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

query I rowsort
SELECT DISTINCT + + cor0.col1 * + 76 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 AS cor2
----
1292
2356
4484

query I rowsort
SELECT - col0 * - 48 * col1 AS col1 FROM tab1 cor0
----
30720
3744
49920

query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
289
3481
961

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-939
SELECT - - col1 * col0 DIV - col2 FROM tab0 AS cor0
----
-3395
-62
-98

skipif mysql # not compatible
query I rowsort label-939
SELECT - - col1 * col0 / - col2 FROM tab0 AS cor0
----
-3395
-62
-98

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

query I rowsort
SELECT DISTINCT + 29 * 53 FROM tab1
----
1537

query I rowsort
SELECT DISTINCT - 81 + + col2 FROM tab0 AS cor0
----
-48
-80
1

query I rowsort
SELECT + 9 * cor0.col1 AS col1 FROM tab2 AS cor0
----
153
279
531

query I rowsort
SELECT ALL - ( 44 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT ALL - 31 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT ALL + col0 * ( + col2 ) FROM tab0 cor0
----
35
7298
792

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

query I rowsort
SELECT col0 * - cor0.col0 + + 98 AS col1 FROM tab1 AS cor0
----
-3998
-6302
89

query I rowsort
SELECT + col0 * ( col0 ) + + ( 39 ) FROM tab1 AS cor0
----
4135
48
6439

query I rowsort
SELECT 28 AS col2 FROM tab2 cor0
----
28
28
28

query I rowsort
SELECT ALL - 22 * col0 - + col2 AS col2 FROM tab2
----
-1742
-1776
-181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-952
SELECT CAST( col1 AS SIGNED ) + col0 * + col2 FROM tab0 cor0
----
132
7389
878

skipif mysql # not compatible
query I rowsort label-952
SELECT CAST ( col1 AS INTEGER ) + col0 * + col2 FROM tab0 cor0
----
132
7389
878

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-954
SELECT + CAST ( NULL AS INTEGER ) * col2 col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 60 * col2 * 31 + col1 AS col1 FROM tab2 AS cor0
----
48419
50251
70697

onlyif mysql # use DIV operator for integer division
query I rowsort label-957
SELECT DISTINCT - 78 DIV + col0 FROM tab2 AS cor0
----
-1
-11
0

skipif mysql # not compatible
query I rowsort label-957
SELECT DISTINCT - 78 / + col0 FROM tab2 AS cor0
----
-1
-11
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 * col0 * - col1 + col1 col2 FROM tab0 AS cor0
----
192038
315832
753298

onlyif mysql # use DIV operator for integer division
query I rowsort label-959
SELECT DISTINCT - + 75 DIV + col2 FROM tab0 AS cor0
----
-2
-75
0

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT - + 75 / + col2 FROM tab0 AS cor0
----
-2
-75
0

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

query I rowsort
SELECT DISTINCT - 96 * + tab0.col1 FROM tab0, tab1, tab1 AS cor0
----
-8256
-8736
-9312

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

query I rowsort
SELECT - + cor0.col1 * + 19 + col2 + - col2 * + ( col1 ) AS col1 FROM tab2 AS cor0
----
-1399
-2629
-931

query I rowsort
SELECT DISTINCT + col1 * - col0 * + col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-965
SELECT col1 DIV + CAST( col0 AS SIGNED ) - - col0 FROM tab0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-965
SELECT col1 / + CAST ( col0 AS INTEGER ) - - col0 FROM tab0
----
27
37
90

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

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

query I rowsort
SELECT + col2 + - 79 * - col1 * col1 FROM tab2
----
22869
275025
75946

query I rowsort
SELECT DISTINCT tab0.col0 * - 53 + col1 FROM tab0
----
-1186
-1758
-4626

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

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

query I rowsort
SELECT 58 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

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

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

query I rowsort
SELECT ALL col1 + col2 * col2 * - col2 AS col1 FROM tab0
----
-35851
-551277
96

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

query I rowsort
SELECT 71 + 4 FROM tab0
----
75
75
75

query I rowsort
SELECT DISTINCT + col0 * 13 AS col0 FROM tab1
----
1040
39
832

query I rowsort
SELECT col0 + 89 FROM tab2
----
167
168
96

query I rowsort
SELECT ALL 43 * + 37 + + col1 - - col2 FROM tab2 cor0
----
1646
1649
1676

query I rowsort
SELECT DISTINCT ( ( + col0 ) ) - col0 * 30 AS col2 FROM tab2 AS cor0
----
-203
-2262
-2291

onlyif mysql # use DIV operator for integer division
query I rowsort label-980
SELECT DISTINCT + col1 DIV col2 + col1 * 30 FROM tab1 AS cor0
----
300
390
780

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT + col1 / col2 + col1 * 30 FROM tab1 AS cor0
----
300
390
780

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

query I rowsort
SELECT ( + col1 ) * 62 AS col2 FROM tab0
----
5332
5642
6014

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

query I rowsort
SELECT ALL + cor0.col2 * 89 FROM tab0, tab2 AS cor0
----
9 values hashing to 5974e541b41aea5f542ba94c62e331b6

query I rowsort
SELECT - col1 * + cor0.col0 * 65 + col2 * - cor0.col0 * col2 + + col2 FROM tab0 AS cor0
----
-1124789
-160263
-220709

query I rowsort
SELECT cor0.col0 * - 38 + cor0.col0 FROM tab2, tab2 cor0
----
9 values hashing to 43a5390e62ca35683dade7c1bfdeeea9

query I rowsort
SELECT - + ( col1 ) * 97 FROM tab0 cor0
----
-8342
-8827
-9409

query I rowsort
SELECT ALL + 51 + col1 * + col1 AS col0 FROM tab0
----
7447
8332
9460

query I rowsort
SELECT ALL col1 + - col2 + - 56 FROM tab2
----
-23
-52
-77

query I rowsort
SELECT - col2 * + col2 * + ( col2 * tab2.col1 ) AS col0 FROM tab2
----
-1036984
-610173
-932824

query I rowsort
SELECT col2 + 61 + 39 AS col0 FROM tab1 AS cor0
----
154
157
196

query I rowsort
SELECT + - col2 * col0 + cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
-7120
-744
35

query I rowsort
SELECT - col1 + - cor0.col0 + + col0 * - col0 * - 30 FROM tab1 AS cor0
----
122806
191907
241

query I rowsort
SELECT ALL + col0 + 87 FROM tab1 AS cor0
----
151
167
90

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-996
SELECT ALL + cor0.col1 / col2 col1 FROM tab0 AS cor0
----
1
2
97

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

query I rowsort
SELECT DISTINCT - col1 * 78 AS col2 FROM tab0 AS cor0
----
-6708
-7098
-7566

query I rowsort
SELECT + + col1 * 12 + - 46 FROM tab1 cor0
----
110
266
74

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1002
SELECT - col1 * CAST( 18 AS SIGNED ) + cor0.col0 + + col2 AS col1 FROM tab2 AS cor0
----
-189
-524
-958

skipif mysql # not compatible
query I rowsort label-1002
SELECT - col1 * CAST ( 18 AS INTEGER ) + cor0.col0 + + col2 AS col1 FROM tab2 AS cor0
----
-189
-524
-958

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

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

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

query I rowsort
SELECT DISTINCT + col2 * + 33 + cor0.col2 AS col2 FROM tab0 AS cor0
----
1122
2788
34

query I rowsort
SELECT ALL 98 AS col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

onlyif mysql # use DIV operator for integer division
query I rowsort label-1007
SELECT + col2 * - 74 + + ( col1 ) DIV 49 + + col1 FROM tab2
----
-1864
-1967
-2795

skipif mysql # not compatible
query I rowsort label-1007
SELECT + col2 * - 74 + + ( col1 ) / 49 + + col1 FROM tab2
----
-1864
-1967
-2795

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

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL + - cor0.col1 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT 30 AS col2 FROM tab0, tab0 AS cor0
----
30

query I rowsort
SELECT 83 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT ALL col0 * 1 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col2 + + col1 * 24 FROM tab0 AS cor0
----
2031
2102
2327

query I rowsort
SELECT + + 94 AS col1 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT ( + col1 ) + - col0 * col0 FROM tab0 AS cor0
----
-1128
-490
-7830

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

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

query I rowsort
SELECT DISTINCT 63 * - col0 FROM tab2 AS cor0
----
-441
-4914
-4977

onlyif mysql # use DIV operator for integer division
query I rowsort label-1017
SELECT ALL - col2 * col1 DIV - col0 + 81 + - col1 AS col0 FROM tab0 AS cor0
----
-14
113
73

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL - col2 * col1 / - col0 + 81 + - col1 AS col0 FROM tab0 AS cor0
----
-14
113
73

query I rowsort
SELECT - 49 + - col2 FROM tab1 AS cor0
----
-103
-106
-145

query I rowsort
SELECT DISTINCT - + 34 AS col0 FROM tab1 AS cor0
----
-34

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

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

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

query I rowsort
SELECT col0 * col2 * + col0 AS col0 FROM tab0
----
1225
19008
649522

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

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

query I rowsort
SELECT cor0.col0 * - 57 + cor0.col2 + 66 AS col2 FROM tab0 AS cor0
----
-1269
-1928
-4925

query I rowsort
SELECT ALL - col2 + ( + col2 ) * col2 FROM tab1
----
2862
3192
9120

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1028
SELECT ALL - col1 DIV col1 + - 16 * - col0 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-3073
-5121
38

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL - col1 / col1 + - 16 * - col0 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-3073
-5121
38

query I rowsort
SELECT DISTINCT + 79 + cor0.col0 * ( + col1 ) AS col1 FROM tab0 AS cor0
----
2143
3474
8178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col1 col2 FROM tab2 cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-1031
SELECT col1 DIV - col1 + col1 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-1031
SELECT col1 / - col1 + col1 FROM tab1
----
12
25
9

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

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

query I rowsort
SELECT DISTINCT - - col1 + col0 * 64 * 27 FROM tab1 AS cor0
----
110602
138253
5210

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

skipif mysql # not compatible
query I rowsort
SELECT - - cor0.col0 * CAST ( col0 AS REAL ) + + col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76

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

query I rowsort
SELECT DISTINCT + tab1.col0 * + tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1038
SELECT - CAST( col0 AS SIGNED ) * col2 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif mysql # not compatible
query I rowsort label-1038
SELECT - CAST ( col0 AS INTEGER ) * col2 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT 47 + + col0 FROM tab2 AS cor0
----
125
126
54

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

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

query I rowsort
SELECT ALL + 14 * col2 + col1 * - col1 FROM tab0 AS cor0
----
-6934
-7133
-9395

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

query I rowsort
SELECT 13 * - cor0.col1 * - col2 FROM tab1 AS cor0
----
16224
18252
7410

query I rowsort
SELECT ALL - col0 * ( - col0 + tab1.col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT + + 83 + cor0.col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
118
7381
875

query I rowsort
SELECT ALL + tab1.col2 * 85 FROM tab1
----
4590
4845
8160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + 34 * - cor0.col2 col1 FROM tab0 AS cor0
----
-253708
-3298
-96492

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

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

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

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

query I rowsort
SELECT - - col1 + col0 * - 12 FROM tab1 AS cor0
----
-10
-758
-947

query I rowsort
SELECT - + cor0.col0 * - 29 + + col1 * col1 AS col1 FROM tab2 AS cor0
----
1164
2580
5743

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

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

skipif mysql # not compatible
query I rowsort
SELECT col2 * - CAST ( - col2 AS REAL ) FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-1054
SELECT ALL + col2 * + col1 + - col0 DIV - col1 FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL + col2 * + col1 + - col0 / - col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL tab1.col0 + - col0 * + 29 FROM tab1
----
-1792
-2240
-84

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

query I rowsort
SELECT + - col0 * + col1 * col2 + col2 + cor0.col0 FROM tab2 AS cor0
----
-119548
-50917
-5825

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

query I rowsort
SELECT ALL + col0 * col1 + - cor0.col2 + col0 FROM tab0 AS cor0
----
2055
3429
8106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * - col2 col2 FROM tab2 AS cor0
----
-158
-1969
-2985

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

query I rowsort
SELECT ALL - col0 * col2 * - col0 - col1 AS col1 FROM tab2
----
1292
158125
237141

query I rowsort
SELECT + col0 * tab0.col0 * tab0.col2 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT col1 - - col1 * tab1.col2 AS col0 FROM tab1
----
1261
1430
580

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - col0 * - cor0.col0 col2 FROM tab0 AS cor0
----
-1260
-600
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-1068
SELECT DISTINCT - col2 DIV col1 - col2 FROM tab2 AS cor0
----
-26
-27
-40

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT - col2 / col1 - col2 FROM tab2 AS cor0
----
-26
-27
-40

query I rowsort
SELECT DISTINCT tab2.col2 * col2 * col1 + col1 * + col2 AS col0 FROM tab2
----
23436
25194
41418

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

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NOT ( col1 - - col1 * col1 NOT IN ( col2 + col0 ) ) AND NULL NOT BETWEEN + col1 * col1 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 * + col0 - - col2 * col0 col1 FROM tab0 cor0
----
-3360
-656820
-67320

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

query I rowsort
SELECT + - 12 * col2 AS col1 FROM tab1 AS cor0
----
-1152
-648
-684

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

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

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

query I rowsort
SELECT ALL - col0 * col1 * col1 + col0 * col1 FROM tab1
----
-12480
-1950
-5760

onlyif mysql # use DIV operator for integer division
query I rowsort label-1078
SELECT DISTINCT col2 DIV col1 + col1 AS col0 FROM tab1
----
15
20
28

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT col2 / col1 + col1 AS col0 FROM tab1
----
15
20
28

query I rowsort
SELECT ALL tab2.col1 * col2 + col1 + + col2 AS col0 FROM tab2
----
1619
701
895

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1083
SELECT - 42 DIV col2 + - ( - cor0.col0 ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-1083
SELECT - 42 / col2 + - ( - cor0.col0 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + col2 * - col0 * ( + col1 ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
-36470
-4186
-99827

query I rowsort
SELECT ALL + 51 + + col1 AS col2 FROM tab0 AS cor0
----
137
142
148

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

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

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

skipif mysql # not compatible
query I rowsort label-1087
SELECT DISTINCT - - cor0.col2 + - col2 * + CAST ( col2 AS INTEGER ) + col0 * + col2 FROM tab1 cor0
----
-1440
-2700
456

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + col0 * col0 col1 FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT ALL + 35 * + col1 - + col2 FROM tab2 AS cor0
----
1058
2039
557

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + col1 col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + - 72 * - cor0.col2 + col2 FROM tab1 cor0
----
3942
4161
7008

onlyif mysql # use DIV operator for integer division
query I rowsort label-1093
SELECT + 44 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1093
SELECT + 44 / - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1094
SELECT DISTINCT + col0 * - col0 + CAST( 96 AS SIGNED ) FROM tab0 AS cor0
----
-1129
-480
-7825

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT + col0 * - col0 + CAST ( 96 AS INTEGER ) FROM tab0 AS cor0
----
-1129
-480
-7825

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

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

query I rowsort
SELECT col2 * - col0 + + 16 + + col0 AS col0 FROM tab2
----
-166
-1934
-2907

onlyif mysql # use DIV operator for integer division
query I rowsort label-1098
SELECT ALL col1 DIV - 89 + - 2 FROM tab1 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL col1 / - 89 + - 2 FROM tab1 cor0
----
-2
-2
-2

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

query I rowsort
SELECT + 77 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 38f487c2147ee2fe05527e38c5e0503b

query I rowsort
SELECT ALL + - col2 * col0 + cor0.col2 + col2 * col1 AS col2 FROM tab1 AS cor0
----
-3021
-6336
1296

query I rowsort
SELECT ALL + - col0 * - 39 AS col1 FROM tab1 AS cor0
----
117
2496
3120

query I rowsort
SELECT DISTINCT - - 29 FROM tab0 cor0
----
29

query I rowsort
SELECT ALL - 51 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4

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

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

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

query I rowsort
SELECT DISTINCT 13 - - 57 AS col0 FROM tab2
----
70

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

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

query I rowsort
SELECT DISTINCT ( 72 ) - col2 FROM tab1
----
-24
15
18

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

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

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

skipif mysql # not compatible
query I rowsort label-1112
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * + tab2.col1 - col0 FROM tab2
----
1456
567
830

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1114
SELECT 88 DIV + col1 col2 FROM tab1
----
3
6
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1114
SELECT 88 / + col1 col2 FROM tab1
----
3
6
8

query I rowsort
SELECT ALL - 5 * - col0 AS col1 FROM tab2 cor0
----
35
390
395

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

query I rowsort
SELECT DISTINCT - 55 + - 47 AS col0 FROM tab2
----
-102

query I rowsort
SELECT DISTINCT ( - cor0.col1 ) AS col2 FROM tab1, tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT - 63 * col0 AS col0 FROM tab2 cor0
----
-441
-4914
-4977

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1121
SELECT - tab0.col2 DIV - tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1121
SELECT - tab0.col2 / - tab0.col1 FROM tab0
----
0
0
0

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

query I rowsort
SELECT DISTINCT + ( - col2 * 36 ) AS col1 FROM tab1
----
-1944
-2052
-3456

query I rowsort
SELECT ALL 44 * + col0 AS col1 FROM tab0
----
1056
1540
3916

query I rowsort
SELECT DISTINCT 54 * tab0.col1 AS col2 FROM tab0
----
4644
4914
5238

query I rowsort
SELECT - 3 * + tab2.col1 FROM tab2
----
-177
-51
-93

query I rowsort
SELECT + col0 + - col2 * - 6 FROM tab2
----
169
234
307

query I rowsort
SELECT col2 + - 77 * + tab1.col1 FROM tab1
----
-1948
-713
-905

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

query I rowsort
SELECT col1 * ( - col2 ) + cor0.col2 * + 38 AS col1 FROM tab1 AS cor0
----
1596
2400
648

query I rowsort
SELECT - - col1 * - col1 + 80 AS col0 FROM tab2 cor0
----
-209
-3401
-881

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 36 col1 FROM tab1 cor0
----
-1944
-2052
-3456

query I rowsort
SELECT DISTINCT - tab0.col2 * - 64 FROM tab0
----
2112
5248
64

query I rowsort
SELECT DISTINCT - col2 + + ( 72 ) AS col2 FROM tab1 AS cor0
----
-24
15
18

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

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

query I rowsort
SELECT DISTINCT - cor0.col1 + 81 FROM tab2 AS cor0
----
22
50
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 19 col2 FROM tab2 AS cor0
----
-1121
-323
-589

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

query I rowsort
SELECT + - 98 + + 71 AS col0 FROM tab2 AS cor0
----
-27
-27
-27

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

query I rowsort
SELECT ( + 88 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # use DIV operator for integer division
query I rowsort label-1144
SELECT - cor0.col1 + + col2 * cor0.col0 + - col0 DIV col2 AS col0 FROM tab1 AS cor0
----
136
3637
7667

skipif mysql # not compatible
query I rowsort label-1144
SELECT - cor0.col1 + + col2 * cor0.col0 + - col0 / col2 AS col0 FROM tab1 AS cor0
----
136
3637
7667

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

query I rowsort
SELECT - 29 + - cor0.col1 + + cor0.col2 AS col2 FROM tab2 cor0
----
-33
-62
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 52 + + col1 * + col2 col1 FROM tab2 AS cor0
----
1482
594
785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 12 * col1 col2 FROM tab0 AS cor0
----
1118
1183
1261

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

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

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

query I rowsort
SELECT - + col2 * + 40 + + col2 AS col2 FROM tab1 AS cor0
----
-2106
-2223
-3744

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col1 * col0 col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT - - col0 * col2 + + col2 * col2 AS col2 FROM tab0 AS cor0
----
14022
1881
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-1157
SELECT + col0 DIV - col0 + + col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-1157
SELECT + col0 / - col0 + + col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT col2 * col0 + - ( - col2 * col0 ) FROM tab1 AS cor0
----
15360
324
7296

query I rowsort
SELECT - + col0 * - 89 + - col2 AS col0 FROM tab0 AS cor0
----
2103
3114
7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-1160
SELECT DISTINCT col1 DIV 87 AS col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT col1 / 87 AS col1 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT - cor0.col2 - - 21 * + col0 AS col2 FROM tab2 AS cor0
----
120
1612
1621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 65 + - 53 * + cor0.col2 col2 FROM tab1 AS cor0
----
1152
648
684

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

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

skipif mysql # not compatible
query I rowsort label-1164
SELECT - col1 + - CAST ( NULL AS REAL ) / 93 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + - col1 + - col2 * 72 + - cor0.col1 * col0 AS col2 FROM tab2 cor0
----
-2192
-4096
-6533

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1168
SELECT DISTINCT - col2 DIV + cor0.col2 - 72 * - col0 AS col1 FROM tab0 AS cor0
----
1727
2519
6407

skipif mysql # not compatible
query I rowsort label-1168
SELECT DISTINCT - col2 / + cor0.col2 - 72 * - col0 AS col1 FROM tab0 AS cor0
----
1727
2519
6407

query I rowsort
SELECT ALL 7 + - 6 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

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

query I rowsort
SELECT ALL 86 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL - - col1 + col0 * cor0.col1 * + col0 FROM tab0 AS cor0
----
118922
49622
720902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 - col2 col1 FROM tab1 cor0
----
-108
-111
-150

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

query I rowsort
SELECT - col2 - + 93 AS col2 FROM tab2
----
-119
-120
-131

query I rowsort
SELECT ALL + 11 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab1 AS cor2, tab1 AS cor3
----
729 values hashing to 7defeb2efcd01b10bdcce2c97849a683

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

query I rowsort
SELECT DISTINCT + ( col0 ) * + 21 FROM tab1 AS cor0
----
1344
1680
63

query I rowsort
SELECT col1 * tab0.col2 + 6 AS col1 FROM tab0
----
103
2844
7468

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

query I rowsort
SELECT ALL - col2 + col2 + - col0 FROM tab1
----
-3
-64
-80

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

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

query I rowsort
SELECT ALL col0 + col2 AS col1 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1185
SELECT ALL + col2 * col0 + + col0 DIV + col1 + col0 AS col2 FROM tab0
----
70
7387
816

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL + col2 * col0 + + col0 / + col1 + col0 AS col2 FROM tab0
----
70
7387
816

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 / - col1 - col0 col1 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT + cor0.col0 * col0 + 46 + + col1 AS col1 FROM tab0 AS cor0
----
1368
708
8058

query I rowsort
SELECT + + 36 + + col2 * 3 FROM tab2 AS cor0
----
114
117
150

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

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

query I rowsort
SELECT ALL + + col1 * + col0 + 10 * - col1 AS col2 FROM tab1 AS cor0
----
-182
540
910

query I rowsort
SELECT - col0 * col2 * col2 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-115520
-53404
-5832

query I rowsort
SELECT DISTINCT - + 90 + col2 AS col0 FROM tab0 AS cor0
----
-57
-8
-89

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

query I rowsort
SELECT DISTINCT + 84 * col2 FROM tab2 AS cor0
----
2184
2268
3192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 * col1 col0 FROM tab1
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-1200
SELECT ALL col1 * col0 DIV col2 FROM tab0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL col1 * col0 / col2 FROM tab0
----
3395
62
98

query I rowsort
SELECT col1 + + col1 * col0 * + col1 + col2 AS col2 FROM tab0
----
177623
329413
737182

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

query I rowsort
SELECT DISTINCT col2 + - col0 + - tab0.col2 * - col1 FROM tab0
----
2847
63
7455

onlyif mysql # use DIV operator for integer division
query I rowsort label-1204
SELECT + col1 DIV col1 + col0 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-1204
SELECT + col1 / col1 + col0 FROM tab2
----
79
8
80

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

query I rowsort
SELECT ALL col2 + col0 * + col1 * + col0 - - col0 AS col2 FROM tab1 AS cor0
----
291
41081
83376

query I rowsort
SELECT + col0 * col0 + col0 + - col2 * - col2 FROM tab0
----
1261
14734
1689

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 IN ( col0 - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

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

query I rowsort
SELECT + col2 * + col2 + - col2 * - tab2.col1 AS col2 FROM tab2 WHERE NOT - col2 NOT BETWEEN col1 - + col1 AND - col2
----

query I rowsort
SELECT DISTINCT col0 + - col2 + + col2 * col2 AS col0 FROM tab0 AS cor0
----
1080
35
6731

query I rowsort
SELECT DISTINCT + col0 * col0 AS col0 FROM tab1 AS cor0 WHERE col1 <> + col0
----
4096
6400
9

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

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

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

query I rowsort
SELECT ALL - tab2.col1 * col1 + + col0 * - col1 * col2 FROM tab2
----
-123133
-51323
-6820

onlyif mysql # use DIV operator for integer division
query I rowsort label-1218
SELECT ALL - col0 + col2 DIV col0 AS col1 FROM tab2
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL - col0 + col2 / col0 AS col1 FROM tab2
----
-4
-78
-79

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT NULL <> NULL
----

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

query I rowsort
SELECT DISTINCT - col2 + - col0 * - tab0.col0 AS col1 FROM tab0
----
1224
543
7839

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

query I rowsort
SELECT ALL + 67 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1224
SELECT + CAST( + col0 AS SIGNED ) + col1 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-1224
SELECT + CAST ( + col0 AS INTEGER ) + col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL 53 * + 3 FROM tab0
----
159
159
159

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

query I rowsort
SELECT col1 * 21 + - col2 AS col1 FROM tab1
----
153
177
492

query I rowsort
SELECT ALL + - cor0.col2 * 33 - col0 AS col1 FROM tab1 AS cor0
----
-1785
-1945
-3248

onlyif mysql # use DIV operator for integer division
query I rowsort label-1229
SELECT - 96 DIV tab1.col2 + - 82 FROM tab1, tab2 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

skipif mysql # not compatible
query I rowsort label-1229
SELECT - 96 / tab1.col2 + - 82 FROM tab1, tab2 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT col0 + col0 + col2 AS col0 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT - ( + col1 ) * 99 FROM tab1
----
-1287
-2574
-990

onlyif mysql # use DIV operator for integer division
query I rowsort label-1232
SELECT DISTINCT - 62 DIV tab1.col0 AS col2 FROM tab1
----
-20
0

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT - 62 / tab1.col0 AS col2 FROM tab1
----
-20
0

query I rowsort
SELECT ALL tab0.col0 * - 47 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 8c4c0e3dfc44d87faccc12bff7bad5bf

query I rowsort
SELECT + 55 * + cor0.col2 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to a7550a7c862a679f0a44aa03f97e7887

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

query I rowsort
SELECT DISTINCT - 35 + - col1 * 24 FROM tab2
----
-1451
-443
-779

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * + col2 + - 26 AS col0 FROM tab2 AS cor0
----
163
2002
2976

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 62 col2 FROM tab1 AS cor0
----
126
142
65

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

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

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

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

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

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

query I rowsort
SELECT - 15 + cor0.col2 * - 55 AS col0 FROM tab0 AS cor0
----
-1830
-4525
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-1251
SELECT + col0 * cor0.col1 DIV ( 58 ) + col2 * - col1 FROM tab1 AS cor0
----
-1231
-1403
-559

skipif mysql # not compatible
query I rowsort label-1251
SELECT + col0 * cor0.col1 / ( 58 ) + col2 * - col1 FROM tab1 AS cor0
----
-1231
-1403
-559

onlyif mysql # use DIV operator for integer division
query I rowsort label-1252
SELECT CAST( - col1 AS SIGNED ) DIV col0 AS col2 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-1252
SELECT CAST ( - col1 AS INTEGER ) / col0 AS col2 FROM tab1
----
-8
0
0

query I rowsort
SELECT - 6 * - col0 FROM tab1
----
18
384
480

query I rowsort
SELECT ALL 57 - col2 FROM tab0
----
-25
24
56

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

query I rowsort
SELECT ALL - 87 + col2 AS col0 FROM tab0
----
-5
-54
-86

query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab1, tab0, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT 62 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT DISTINCT + + col0 + cor0.col1 * col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT - 92 * + 61 FROM tab2, tab1 AS cor0
----
9 values hashing to 04081e7e107b8d075687fc9cc9584615

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

query I rowsort
SELECT - 85 * 86 FROM tab2 AS cor0
----
-7310
-7310
-7310

query I rowsort
SELECT DISTINCT - - cor0.col0 + + 58 AS col0 FROM tab2 AS cor0
----
136
137
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1264
SELECT DISTINCT CAST( + 48 AS SIGNED ) + col0 FROM tab1 AS cor0
----
112
128
51

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT CAST ( + 48 AS INTEGER ) + col0 FROM tab1 AS cor0
----
112
128
51

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

skipif mysql # not compatible
query I rowsort label-1265
SELECT + + 50 / - ( col2 ) FROM tab0 AS cor0
----
-1
-50
0

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

query I rowsort
SELECT + 16 * + col0 AS col1 FROM tab2 AS cor0
----
112
1248
1264

query I rowsort
SELECT ALL 52 * + tab0.col1 + - 13 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 588aa7fd2b88fb59c3659ca06ae51460

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

query I rowsort
SELECT DISTINCT - col0 * + 8 FROM tab2
----
-56
-624
-632

query I rowsort
SELECT + + col2 + 40 AS col0 FROM tab2 cor0
----
66
67
78

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

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

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

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

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

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

query I rowsort
SELECT - - 17 - col0 * 31 FROM tab1 AS cor0
----
-1967
-2463
-76

query I rowsort
SELECT ALL ( + 59 ) AS col0 FROM tab2
----
59
59
59

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1281
SELECT DISTINCT + col0 DIV col0 + - ( 92 ) + + col2 FROM tab2 AS cor0
----
-53
-64
-65

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT + col0 / col0 + - ( 92 ) + + col2 FROM tab2 AS cor0
----
-53
-64
-65

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

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

query I rowsort
SELECT 89 + col0 * - col1 FROM tab2 AS cor0
----
-1254
-128
-4513

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

query I rowsort
SELECT - - col2 * - ( 43 ) + + col0 FROM tab0 AS cor0
----
-1395
-3437
-8

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

query I rowsort
SELECT - - col0 + 41 FROM tab0 AS cor0
----
130
65
76

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

query I rowsort
SELECT col2 + 70 FROM tab1 cor0
----
124
127
166

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

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

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL 16 / + 27 + - col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + ( + col0 ) * - col0 + 34 AS col0 FROM tab1 AS cor0
----
-4062
-6366
25

query I rowsort
SELECT ALL - 40 * 56 FROM tab2 AS cor0
----
-2240
-2240
-2240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 + col0 col2 FROM tab0
----
134
167
269

query I rowsort
SELECT ALL tab2.col0 + + ( 5 ) + col1 AS col1 FROM tab2
----
101
142
43

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea

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

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

query I rowsort
SELECT col0 + col1 * - col1 * + col0 FROM tab2
----
-22752
-271440
-6720

query I rowsort
SELECT 93 + col1 FROM tab0
----
179
184
190

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

query I rowsort
SELECT tab1.col1 * - 80 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 079de997d46ea33a34b419c94415338e

query I rowsort
SELECT + 13 * + 51 FROM tab0, tab1 AS cor0
----
9 values hashing to 6a44a444e6eaece5afb618213b8c4524

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1304
SELECT DISTINCT + + col2 * col0 + + col2 DIV col2 FROM tab0 cor0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT + + col2 * col0 + + col2 / col2 FROM tab0 cor0
----
36
7299
793

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

query I rowsort
SELECT ALL - col2 + - 31 * cor0.col0 FROM tab1 AS cor0
----
-147
-2041
-2576

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * 1 col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col1 + - col2 * - col0 * 68 FROM tab0
----
2477
496355
53942

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

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

query I rowsort
SELECT DISTINCT + 28 * col2 * cor0.col2 FROM tab0 AS cor0
----
188272
28
30492

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

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

query I rowsort
SELECT - - cor0.col2 + - 48 AS col0 FROM tab2 AS cor0
----
-10
-21
-22

query I rowsort
SELECT ALL - + 28 * 97 FROM tab1 cor0
----
-2716
-2716
-2716

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

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

query I rowsort
SELECT 39 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

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

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

query I rowsort
SELECT + 32 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

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

skipif mysql # not compatible
query I rowsort label-1321
SELECT + 84 / + col0 + + col1 AS col1 FROM tab2 AS cor0
----
18
43
60

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

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

query I rowsort
SELECT DISTINCT col1 + col0 * + ( - col1 ) * + col2 AS col2 FROM tab1 AS cor0
----
-36470
-4186
-99827

query I rowsort
SELECT ALL - cor0.col1 + col2 + 41 * col2 AS col1 FROM tab1 AS cor0
----
2242
2384
4019

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 60 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

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

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

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

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL col1 / col2 + - col0 / col0 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ( col1 ) * 74 + - col2 AS col0 FROM tab1 AS cor0
----
1870
683
866

query I rowsort
SELECT col0 * 58 FROM tab1
----
174
3712
4640

query I rowsort
SELECT 99 * col1 * - col0 FROM tab1
----
-102960
-63360
-7722

query I rowsort
SELECT ( col0 ) * - tab2.col0 AS col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - 72 * - tab2.col1 FROM tab2
----
1224
2232
4248

query I rowsort
SELECT ALL + col2 * - 45 AS col2 FROM tab1 AS cor0
----
-2430
-2565
-4320

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

query I rowsort
SELECT ALL + col0 + 34 AS col1 FROM tab2 AS cor0
----
112
113
41

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

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

query I rowsort
SELECT tab0.col0 * - 41 + + col1 FROM tab0
----
-1338
-3558
-898

query I rowsort
SELECT ALL tab1.col1 * - 38 FROM tab1, tab0 AS cor0
----
9 values hashing to be73150aa165976539aa4e50495c19cb

query I rowsort
SELECT - tab2.col1 - 51 FROM tab2
----
-110
-68
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1350
SELECT DISTINCT col0 DIV - 35 AS col0 FROM tab2
----
-2
0

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT col0 / - 35 AS col0 FROM tab2
----
-2
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1351
SELECT CAST( col2 AS SIGNED ) * + col0 FROM tab2
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-1351
SELECT CAST ( col2 AS INTEGER ) * + col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - 64 + col0 * - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-4160
-6464
-73

query I rowsort
SELECT - + 51 + col0 FROM tab0 AS cor0
----
-16
-27
38

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

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

query I rowsort
SELECT tab0.col0 * col0 * - col2 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT + 32 * - ( col2 ) FROM tab2
----
-1216
-832
-864

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

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

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT 38 * col2 AS col0 FROM tab1
----
2052
2166
3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT ALL 96 * - col0 FROM tab2
----
-672
-7488
-7584

query I rowsort
SELECT 23 - - col2 * - ( tab1.col2 ) * col2 AS col0 FROM tab1
----
-157441
-185170
-884713

query I rowsort
SELECT col2 * ( 58 ) * col1 AS col2 FROM tab0 AS cor0
----
164604
432796
5626

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

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

query I rowsort
SELECT col0 * 23 AS col2 FROM tab2 AS cor0
----
161
1794
1817

query I rowsort
SELECT DISTINCT - + col1 * - 74 AS col1 FROM tab0 AS cor0
----
6364
6734
7178

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

skipif mysql # not compatible
query I rowsort label-1368
SELECT col2 * + ( ( - col1 ) ) + - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1593
-663
-868

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 * 3 col0 FROM tab1
----
181
188
301

query I rowsort
SELECT ALL 45 + tab2.col1 AS col1 FROM tab2
----
104
62
76

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

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL - col1 * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-7396
-8281
-9409

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

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT cor0.col2 / - ( - col0 ) + col1 AS col0 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT - col2 * + 55 AS col0 FROM tab0 AS cor0
----
-1815
-4510
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-1376
SELECT DISTINCT - + col2 DIV 36 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT - + col2 / 36 FROM tab2 AS cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1377
SELECT ALL - - col1 - ( + 41 ) DIV + col1 AS col1 FROM tab2 AS cor0
----
15
30
59

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL - - col1 - ( + 41 ) / + col1 AS col1 FROM tab2 AS cor0
----
15
30
59

query I rowsort
SELECT - - col0 + 20 * col0 FROM tab2 AS cor0
----
147
1638
1659

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

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

query I rowsort
SELECT DISTINCT - + col0 * col1 + - cor0.col1 * + col0 FROM tab1 AS cor0
----
-1280
-156
-2080

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

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

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

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

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

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

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

query I rowsort
SELECT - 29 + cor0.col0 + - col1 * + ( col2 + - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-642
3117
747

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

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

query I rowsort
SELECT ( col1 ) * + col2 + 55 * col2 + + col2 AS col1 FROM tab1 AS cor0
----
3762
4428
6624

onlyif mysql # use DIV operator for integer division
query I rowsort label-1390
SELECT - col0 DIV + cor0.col0 + col1 + 25 AS col1 FROM tab2 AS cor0
----
41
55
83

skipif mysql # not compatible
query I rowsort label-1390
SELECT - col0 / + cor0.col0 + col1 + 25 AS col1 FROM tab2 AS cor0
----
41
55
83

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

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

query I rowsort
SELECT + - col2 + col0 + col0 AS col2 FROM tab1 AS cor0
----
-48
64
71

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

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

query I rowsort
SELECT ALL - 5 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e

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

query I rowsort
SELECT DISTINCT + - 99 + col0 FROM tab0 AS cor0
----
-10
-64
-75

query I rowsort
SELECT ALL + + 36 + col0 AS col1 FROM tab2 AS cor0
----
114
115
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + cor0.col0 + col1 col0 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab2 AS cor0
----
73

query I rowsort
SELECT DISTINCT + - ( cor0.col2 ) + - cor0.col0 * 69 AS col1 FROM tab1 cor0
----
-261
-4473
-5616

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

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

query I rowsort
SELECT DISTINCT + col0 + - 69 FROM tab1 AS cor0
----
-5
-66
11

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

query I rowsort
SELECT + - col2 * - 13 * col0 + - col1 AS col1 FROM tab1 AS cor0
----
2080
47414
99827

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1408
SELECT DISTINCT ( - col0 ) + - col0 DIV 92 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT ( - col0 ) + - col0 / 92 FROM tab1 AS cor0
----
-3
-64
-80

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

query I rowsort
SELECT DISTINCT col0 * 18 + col1 FROM tab0 AS cor0
----
1693
518
727

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

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL - CAST ( NULL AS REAL ) - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * col1 + col1 - col2 * cor0.col0 FROM tab0 cor0
----
1074
6690
9471

onlyif mysql # use DIV operator for integer division
query I rowsort label-1413
SELECT ALL + tab1.col1 + col1 DIV col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL + tab1.col1 + col1 / col1 FROM tab1
----
11
14
27

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

query I rowsort
SELECT 44 + 41 * col2 AS col2 FROM tab0 AS cor0
----
1397
3406
85

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

query I rowsort
SELECT DISTINCT col0 + + 92 + col2 * col0 AS col2 FROM tab1 AS cor0
----
257
3804
7852

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

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

query I rowsort
SELECT - col2 * - 67 + ( col0 * cor0.col1 ) FROM tab0 AS cor0
----
13593
3462
4275

query I rowsort
SELECT + - col1 * + 56 - + col2 * + col2 AS col1 FROM tab0 AS cor0
----
-11820
-5433
-5905

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

query I rowsort
SELECT + col1 + col2 * - cor0.col2 * col1 FROM tab1 AS cor0
----
-119795
-32480
-75790

query I rowsort
SELECT DISTINCT + col0 + - tab1.col0 FROM tab1
----
0

query I rowsort
SELECT + col0 * - ( + tab0.col0 ) + + col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT ALL - col0 + 23 * + col1 FROM tab1
----
166
219
595

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

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

query I rowsort
SELECT col0 * ( col0 ) + - col1 AS col2 FROM tab1 AS cor0
----
-17
4086
6387

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

skipif mysql # not compatible
query I rowsort label-1428
SELECT col1 / - CAST ( 64 AS INTEGER ) + cor0.col0 FROM tab0 AS cor0
----
23
34
88

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

query I rowsort
SELECT 4 FROM tab0, tab0 cor0, tab1 cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1431
SELECT col2 * 81 * tab2.col1 + + col1 * + 12 + col2 * - col2 * CAST( - col0 AS SIGNED ) FROM tab2
----
166606
177690
73272

skipif mysql # not compatible
query I rowsort label-1431
SELECT col2 * 81 * tab2.col1 + + col1 * + 12 + col2 * - col2 * CAST ( - col0 AS INTEGER ) FROM tab2
----
166606
177690
73272

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

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

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

query I rowsort
SELECT ALL + col2 * ( col2 ) + + col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT ALL 75 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

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

query I rowsort
SELECT DISTINCT ( 82 ) FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
82

query I rowsort
SELECT col1 + + col0 + col0 * + col0 AS col1 FROM tab2
----
6221
6337
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-1440
SELECT - - col1 + 17 * col1 DIV 79 col1 FROM tab2 AS cor0
----
20
37
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1440
SELECT - - col1 + 17 * col1 / 79 col1 FROM tab2 AS cor0
----
20
37
71

query I rowsort
SELECT ALL + 98 * + col2 AS col0 FROM tab1
----
5292
5586
9408

query I rowsort
SELECT DISTINCT cor0.col2 + tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to a451dbe509e87d1600234f39388c7bd3

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

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

query I rowsort
SELECT DISTINCT + 71 AS col2 FROM tab1 AS cor0
----
71

query I rowsort
SELECT + 55 * - col2 AS col2 FROM tab0 AS cor0
----
-1815
-4510
-55

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

query I rowsort
SELECT col0 * 90 AS col2 FROM tab2 cor0
----
630
7020
7110

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

query I rowsort
SELECT - - col2 * - 72 - - col1 FROM tab2 AS cor0
----
-1813
-1913
-2719

query I rowsort
SELECT - col0 + 47 * + col2 AS col0 FROM tab2 AS cor0
----
1144
1262
1707

query I rowsort
SELECT - col1 * col0 - + 75 AS col1 FROM tab2 AS cor0
----
-1418
-292
-4677

onlyif mysql # use DIV operator for integer division
query I rowsort label-1453
SELECT DISTINCT - 9 DIV col1 + CAST( col0 AS SIGNED ) FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT - 9 / col1 + CAST ( col0 AS INTEGER ) FROM tab1
----
3
64
80

query I rowsort
SELECT ALL - col1 + tab0.col2 + col2 AS col1 FROM tab0
----
-20
-95
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-1455
SELECT DISTINCT col2 DIV - col2 + ( - 58 ) + - col2 col2 FROM tab1
----
-113
-116
-155

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT col2 / - col2 + ( - 58 ) + - col2 col2 FROM tab1
----
-113
-116
-155

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

skipif mysql # not compatible
query I rowsort label-1456
SELECT 45 / col1 FROM tab2 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * 78 col1 FROM tab0 AS cor0
----
1872
2730
6942

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + cor0.col1 * col1 col1 FROM tab0 cor0
----
636056
753571
912673

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

query I rowsort
SELECT - col2 * - ( col0 ) + cor0.col1 + + col0 AS col0 FROM tab0 AS cor0
----
167
7478
902

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 37 + cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
2027
3358
8062

query I rowsort
SELECT 86 + col2 * - 13 * cor0.col2 + col0 FROM tab1 AS cor0
----
-119642
-37819
-42087

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

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

query I rowsort
SELECT - 61 * - col0 AS col1 FROM tab0 AS cor0
----
1464
2135
5429

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

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

query I rowsort
SELECT + col0 * col2 + 39 FROM tab1 AS cor0
----
201
3687
7719

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

query I rowsort
SELECT ( - col2 ) + col2 * + 32 * - col2 AS col0 FROM tab0 AS cor0
----
-215250
-33
-34881

onlyif mysql # use DIV operator for integer division
query I rowsort label-1475
SELECT - + ( + col0 ) DIV col2 + + col0 FROM tab1 AS cor0
----
3
63
80

skipif mysql # not compatible
query I rowsort label-1475
SELECT - + ( + col0 ) / col2 + + col0 FROM tab1 AS cor0
----
3
63
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 60 ) * tab1.col2 col1 FROM tab1
----
-3240
-3420
-5760

query I rowsort
SELECT - 9 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 + - col2 * + col1 + + tab0.col2 col0 FROM tab0
----
-2707
-7282
2

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

query I rowsort
SELECT 58 * col1 + - col2 FROM tab1 AS cor0
----
1454
523
658

query I rowsort
SELECT ALL 53 + col0 FROM tab2 cor0
----
131
132
60

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 53 col0 FROM tab2, tab2 cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT ALL col1 * + col1 * + col1 + cor0.col1 FROM tab1 AS cor0
----
1010
17602
2210

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

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

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

query I rowsort
SELECT ALL col2 * - col2 + 16 AS col2 FROM tab2 cor0
----
-1428
-660
-713

onlyif mysql # use DIV operator for integer division
query I rowsort label-1489
SELECT ALL + col1 * col2 - col2 DIV - col2 AS col2 FROM tab1
----
1249
1405
571

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL + col1 * col2 - col2 / - col2 AS col2 FROM tab1
----
1249
1405
571

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

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT + - col1 * col0 * CAST ( col2 * cor0.col0 AS INTEGER ) - ( col0 ) FROM tab1 AS cor0
----
-12639
-2334784
-7987280

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

query I rowsort
SELECT DISTINCT col2 + - col0 * cor0.col1 * col0 FROM tab1 AS cor0
----
-180
-40903
-83104

query I rowsort
SELECT ALL - ( col1 ) - - ( - 32 ) FROM tab2 cor0
----
-49
-63
-91

query I rowsort
SELECT ALL - 1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1495
SELECT - - col2 DIV 61 col0 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1500
SELECT ALL tab2.col1 DIV + col1 + 96 * col0 FROM tab2
----
673
7489
7585

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL tab2.col1 / + col1 + 96 * col0 FROM tab2
----
673
7489
7585

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

query I rowsort
SELECT + 35 * col2 FROM tab0 AS cor0
----
1155
2870
35

query I rowsort
SELECT DISTINCT - + col2 + 52 + col1 AS col2 FROM tab0 cor0
----
105
148
61

query I rowsort
SELECT ALL col1 * 4 AS col2 FROM tab2 AS cor0
----
124
236
68

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

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

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

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

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

query I rowsort
SELECT ( 49 ) * - cor0.col0 FROM tab1 cor0
----
-147
-3136
-3920

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

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

query I rowsort
SELECT col0 + col2 * col1 * col1 FROM tab1
----
16304
36507
5764

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

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

query I rowsort
SELECT - tab0.col2 + + col0 * + col0 AS col2 FROM tab0
----
1224
543
7839

query I rowsort
SELECT ALL + 6 * 76 * - col2 + + col0 * + col1 FROM tab1 AS cor0
----
-24546
-25352
-42736

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

query I rowsort
SELECT + 44 - 37 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT DISTINCT col0 + + 79 FROM tab1 AS cor0
----
143
159
82

query I rowsort
SELECT + ( - 65 ) + - col2 AS col2 FROM tab1 cor0
----
-119
-122
-161

query I rowsort
SELECT ALL - 8 * 96 AS col0 FROM tab1 AS cor0
----
-768
-768
-768

query I rowsort
SELECT DISTINCT col1 - col2 FROM tab1 WHERE ( tab1.col1 * + col2 ) BETWEEN NULL AND ( - col2 * + col2 )
----

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

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

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

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT col0 * - col0 + tab2.col1 AS col2 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT col2 * - cor0.col2 + - col0 + - col2 AS col1 FROM tab0 AS cor0
----
-1146
-37
-6895

onlyif mysql # use DIV operator for integer division
query I rowsort label-1527
SELECT ALL - cor0.col0 * col0 DIV - col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL - cor0.col0 * col0 / - col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col2 * col2 + col0 + col1 FROM tab0 cor0
----
-6544
-979
131

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

query I rowsort
SELECT ALL col2 + - col2 + + col0 AS col2 FROM tab1
----
3
64
80

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + - col1 + col0 * - col1 col2 FROM tab1
----
2998
58
6627

query I rowsort
SELECT col1 * - col0 + col1 * - tab1.col0 AS col1 FROM tab1
----
-1280
-156
-2080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 * col0 + + col2 col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT tab0.col2 * + col1 * - col1 AS col2 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL tab2.col2 FROM tab2 WHERE NULL NOT IN ( col1 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0 WHERE NOT ( + col2 + col1 ) BETWEEN col0 AND - col2 + col0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1539
SELECT - tab1.col0 + col2 * col1 DIV col0 + - col2 * col0 col0 FROM tab1
----
-3704
-7745
303

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1539
SELECT - tab1.col0 + col2 * col1 / col0 + - col2 * col0 col0 FROM tab1
----
-3704
-7745
303

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

query I rowsort
SELECT - col1 + + col2 + tab1.col1 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL + - col1 * col1 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-306
-3540
-992

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT - - col1 + + col2 / col1 col0 FROM tab0 AS cor0
----
86
91
97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * + col2 + + tab1.col1 col2 FROM tab1
----
1261
1430
580

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

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

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

query I rowsort
SELECT ALL - col0 + - col0 * col0 FROM tab0
----
-1260
-600
-8010

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

query I rowsort
SELECT + col0 + col2 * col0 + + col1 * - col0 AS col2 FROM tab1 cor0
----
3072
6720
87

query I rowsort
SELECT DISTINCT - col1 * - col1 + col2 * - tab1.col2 * col2 AS col2 FROM tab1
----
-156788
-185093
-884567

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

query I rowsort
SELECT + 58 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

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

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

query I rowsort
SELECT DISTINCT tab1.col2 + - 87 AS col2 FROM tab1, tab1 AS cor0
----
-30
-33
9

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

query I rowsort
SELECT DISTINCT + 72 * cor0.col0 AS col1 FROM tab0, tab1, tab0 AS cor0
----
1728
2520
6408

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1561
SELECT - col1 DIV + ( + 52 ) FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1561
SELECT - col1 / + ( + 52 ) FROM tab2
----
-1
0
0

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

query I rowsort
SELECT ALL col1 - - col2 * + 94 FROM tab1
----
5102
5368
9037

query I rowsort
SELECT - ( col1 ) * 19 FROM tab0 AS cor0
----
-1634
-1729
-1843

query I rowsort
SELECT col0 * - col0 + col2 + col0 FROM tab2
----
-15
-5980
-6124

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) = col1 - col0 * - col1
----

query I rowsort
SELECT col2 - - col0 FROM tab2 WHERE NOT NULL <> - col2
----

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

query I rowsort
SELECT col2 - tab0.col2 AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 + tab0.col0 col1 FROM tab0
----
178
48
70

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

query I rowsort
SELECT DISTINCT ( col0 ) + 11 FROM tab0 AS cor0
----
100
35
46

query I rowsort
SELECT ALL + 67 * col1 - + 20 * 48 AS col2 FROM tab2 AS cor0
----
1117
179
2993

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

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

query I rowsort
SELECT + + col0 * cor0.col1 + - col0 * - cor0.col2 * 20 FROM tab2 AS cor0
----
3997
45162
61383

query I rowsort
SELECT DISTINCT + + 39 AS col0 FROM tab1 AS cor0
----
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-1577
SELECT tab0.col2 DIV + col2 + col0 AS col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-1577
SELECT tab0.col2 / + col2 + col0 AS col0 FROM tab0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1578
SELECT ALL col2 * col1 + col1 DIV - col1 FROM tab0
----
2837
7461
96

skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL col2 * col1 + col1 / - col1 FROM tab0
----
2837
7461
96

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

query I rowsort
SELECT DISTINCT col2 - + 70 FROM tab0 AS cor0
----
-37
-69
12

query I rowsort
SELECT col2 * ( col2 ) + 20 * col2 FROM tab2 AS cor0
----
1196
1269
2204

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

query I rowsort
SELECT DISTINCT + 49 * 7 + - col1 FROM tab1 AS cor0
----
317
330
333

query I rowsort
SELECT ALL ( - 10 ) AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to d02dd3860bad8257b8dc483efe370af0

query I rowsort
SELECT DISTINCT + 30 * tab1.col0 FROM tab1
----
1920
2400
90

query I rowsort
SELECT 63 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

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

skipif mysql # not compatible
query I rowsort label-1587
SELECT + ( + tab2.col0 ) / + tab2.col1 FROM tab2
----
0
1
4

query I rowsort
SELECT col1 * - tab2.col0 * - 30 - - col1 FROM tab2
----
138119
40307
6541

query I rowsort
SELECT + 60 + + col2 + ( tab1.col2 + - col0 ) * col0 AS col2 FROM tab1
----
-331
1436
267

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + + col1 + col0 col1 FROM tab0 AS cor0
----
229
2948
7642

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

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

skipif mysql # not compatible
query I rowsort label-1593
SELECT - col0 * + CAST ( - col0 + + col2 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-5184
41650
55447

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 * 99 + 80 FROM tab0 AS cor0
----
8594
9089
9683

query I rowsort
SELECT - + col2 * ( - 36 ) FROM tab1 AS cor0
----
1944
2052
3456

query I rowsort
SELECT col0 * cor0.col0 - + col0 FROM tab0 AS cor0
----
1190
552
7832

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 * col2 col2 FROM tab2
----
-1365
-598
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-1606
SELECT cor0.col0 DIV + 20 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-34
-7294
-791

skipif mysql # not compatible
query I rowsort label-1606
SELECT cor0.col0 / + 20 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-34
-7294
-791

query I rowsort
SELECT DISTINCT - 24 FROM tab0, tab0 cor0
----
-24

query I rowsort
SELECT ALL col2 * tab1.col2 + + 38 AS col1 FROM tab1
----
2954
3287
9254

query I rowsort
SELECT DISTINCT col0 * + 19 FROM tab2 AS cor0
----
133
1482
1501

onlyif mysql # use DIV operator for integer division
query I rowsort label-1610
SELECT + col2 + 54 * col2 DIV col1 FROM tab1 AS cor0
----
166
364
494

skipif mysql # not compatible
query I rowsort label-1610
SELECT + col2 + 54 * col2 / col1 FROM tab1 AS cor0
----
166
364
494

query I rowsort
SELECT DISTINCT - col1 * 75 AS col2 FROM tab1 AS cor0
----
-1950
-750
-975

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

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

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

query I rowsort
SELECT - + cor0.col2 + + 91 FROM tab0 AS cor0
----
58
9
90

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 * - col1 + col1 + + col1 FROM tab2 AS cor0
----
-106063
-1457
-358838

query I rowsort
SELECT + col2 + ( 29 ) FROM tab1 AS cor0
----
125
83
86

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

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

query I rowsort
SELECT DISTINCT + 20 * col0 * + col1 + - col2 + - 7 AS col2 FROM tab1 AS cor0
----
12736
1499
20697

query I rowsort
SELECT - 62 * col1 + col0 + - 62 FROM tab2 AS cor0
----
-1037
-1977
-3642

query I rowsort
SELECT ALL + 51 * + col1 FROM tab0 AS cor0
----
4386
4641
4947

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

query I rowsort
SELECT col0 * + 24 + col0 AS col0 FROM tab0 AS cor0
----
2225
600
875

query I rowsort
SELECT DISTINCT col2 + - 64 FROM tab2 AS cor0
----
-26
-37
-38

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

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

query I rowsort
SELECT DISTINCT - 45 + - cor0.col0 FROM tab1 AS cor0
----
-109
-125
-48

query I rowsort
SELECT + col2 * + col1 + - col1 * - col1 + 0 FROM tab2 AS cor0
----
1798
5015
935

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

query I rowsort
SELECT 98 * 2 - col1 FROM tab0 AS cor0
----
105
110
99

query I rowsort
SELECT col2 + + col2 - - col1 AS col2 FROM tab2
----
111
85
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-1632
SELECT ALL col0 - + 84 DIV tab2.col0 AS col1 FROM tab2
----
-5
77
78

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL col0 - + 84 / tab2.col0 AS col1 FROM tab2
----
-5
77
78

query I rowsort
SELECT DISTINCT + col2 * - col1 + 96 + + col0 AS col1 FROM tab1
----
-1072
-1305
-410

onlyif mysql # use DIV operator for integer division
query I rowsort label-1634
SELECT ALL col0 DIV - 10 + + tab2.col0 AS col2 FROM tab2
----
7
71
72

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL col0 / - 10 + + tab2.col0 AS col2 FROM tab2
----
7
71
72

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

query I rowsort
SELECT ALL col1 - + 73 FROM tab1
----
-47
-60
-63

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

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

query I rowsort
SELECT ALL - col0 * col0 * col2 AS col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT ALL + 8 * + col1 AS col1 FROM tab0 AS cor0
----
688
728
776

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

query I rowsort
SELECT ALL - col0 - cor0.col2 * + 29 FROM tab1 AS cor0
----
-1569
-1717
-2864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 + col1 col0 FROM tab0 AS cor0
----
138
143
149

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

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

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

query I rowsort
SELECT ALL - - 40 * col0 + col0 * - col2 AS col0 FROM tab2 AS cor0
----
1092
158
91

query I rowsort
SELECT DISTINCT + 68 * col1 * ( col0 ) - - col0 FROM tab0 cor0
----
140376
230895
550821

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

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

query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT ( col2 * tab0.col2 + col1 ) FROM tab0
----
1175
6815
98

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1653
SELECT DISTINCT CAST( tab0.col2 AS SIGNED ) * col1 AS col0 FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-1653
SELECT DISTINCT CAST ( tab0.col2 AS INTEGER ) * col1 AS col0 FROM tab0
----
2838
7462
97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + tab1.col2 col1 FROM tab1
----
28
47
83

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1658
SELECT - col0 DIV col0 + - ( col2 ) FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-1658
SELECT - col0 / col0 + - ( col2 ) FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT DISTINCT ( col2 ) + + 11 * + col1 FROM tab0 AS cor0
----
1068
1083
979

query I rowsort
SELECT DISTINCT 20 * + col2 AS col1 FROM tab2 AS cor0
----
520
540
760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1661
SELECT DISTINCT - + CAST( + 23 AS SIGNED ) - + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-101
-102
-30

skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT - + CAST ( + 23 AS INTEGER ) - + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-101
-102
-30

query I rowsort
SELECT + 71 * - col0 AS col0 FROM tab0 AS cor0
----
-1704
-2485
-6319

query I rowsort
SELECT - - col0 - - col2 FROM tab2 cor0
----
104
117
34

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

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

query I rowsort
SELECT 60 - - col0 AS col1 FROM tab1 AS cor0
----
124
140
63

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

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

query I rowsort
SELECT DISTINCT - - col2 + 10 AS col2 FROM tab0 AS cor0
----
11
43
92

query I rowsort
SELECT + + 85 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # use DIV operator for integer division
query I rowsort label-1671
SELECT + + cor0.col0 * CAST( col2 AS SIGNED ) DIV cor0.col1 + + 98 FROM tab0 AS cor0
----
107
178
98

skipif mysql # not compatible
query I rowsort label-1671
SELECT + + cor0.col0 * CAST ( col2 AS INTEGER ) / cor0.col1 + + 98 FROM tab0 AS cor0
----
107
178
98

query I rowsort
SELECT ALL + col1 + 8 FROM tab2 AS cor0
----
25
39
67

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

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

query I rowsort
SELECT ALL - col0 * ( - col0 ) AS col0 FROM tab2 AS cor0
----
49
6084
6241

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

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

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

query I rowsort
SELECT DISTINCT - col0 + col2 * 47 FROM tab0 AS cor0
----
12
1527
3765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col1 + - 30 * cor0.col0 col2 FROM tab1 AS cor0
----
-1494
-2490
-3648

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

query I rowsort
SELECT + + col2 * 64 AS col1 FROM tab2 AS cor0
----
1664
1728
2432

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 AS REAL ) AS col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT + 62 * ( col0 ) FROM tab0 AS cor0
----
1488
2170
5518

query I rowsort
SELECT DISTINCT - 46 * 84 FROM tab0 AS cor0
----
-3864

query I rowsort
SELECT ALL 46 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT ALL + col0 * ( + col1 ) * + col1 FROM tab0
----
177504
329315
737009

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

query I rowsort
SELECT + 40 * col1 + col0 * - 40 AS col1 FROM tab0 AS cor0
----
2480
2480
80

query I rowsort
SELECT + col1 * col0 + - col2 * col1 FROM tab2
----
-620
3068
697

query I rowsort
SELECT DISTINCT 75 + col0 AS col1 FROM tab1 AS cor0
----
139
155
78

query I rowsort
SELECT + - 85 + - col1 FROM tab2 AS cor0
----
-102
-116
-144

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

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

query I rowsort
SELECT - cor0.col1 * 90 + 74 * + col0 FROM tab0 AS cor0
----
-1604
-5964
-6140

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

query I rowsort
SELECT DISTINCT + col1 * - col1 + + col0 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT col1 * - 73 AS col2 FROM tab1
----
-1898
-730
-949

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

query I rowsort
SELECT DISTINCT 66 AS col1 FROM tab1, tab1 AS cor0
----
66

query I rowsort
SELECT - col0 + + 10 * - col1 FROM tab1 AS cor0
----
-164
-210
-263

query I rowsort
SELECT ALL - 76 AS col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

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

query I rowsort
SELECT DISTINCT - 6 + + col1 + + ( 89 ) AS col0 FROM tab0 AS cor0
----
169
174
180

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

query I rowsort
SELECT DISTINCT - - 86 * - col2 FROM tab0 AS cor0
----
-2838
-7052
-86

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

query I rowsort
SELECT DISTINCT + col1 * col1 + - 71 AS col1 FROM tab2 AS cor0
----
218
3410
890

onlyif mysql # use DIV operator for integer division
query I rowsort label-1707
SELECT ALL + col2 * - cor0.col0 + ( col0 ) DIV - col1 AS col1 FROM tab2 cor0
----
-189
-2029
-3006

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL + col2 * - cor0.col0 + ( col0 ) / - col1 AS col1 FROM tab2 cor0
----
-189
-2029
-3006

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1710
SELECT + + 24 * + col2 - - 95 DIV + col0 AS col1 FROM tab2 AS cor0
----
625
661
913

skipif mysql # not compatible
query I rowsort label-1710
SELECT + + 24 * + col2 - - 95 / + col0 AS col1 FROM tab2 AS cor0
----
625
661
913

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

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

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

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

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

query I rowsort
SELECT + 80 + + col2 FROM tab0 AS cor0
----
113
162
81

query I rowsort
SELECT - + cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT 14 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT ALL - - col2 * - col1 * 22 FROM tab1 AS cor0
----
-12540
-27456
-30888

query I rowsort
SELECT + 5 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT - col2 + ( + 83 * - col1 ) + col1 FROM tab2 AS cor0
----
-1432
-2569
-4864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 * + 79 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 74cbabf2e3b3d0becc1b7a0f237217af

query I rowsort
SELECT ALL - 29 * ( cor1.col1 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 628e8369e5b01a0d3caff9d142959bf0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 + col2 col2 FROM tab0
----
118
37
69

query I rowsort
SELECT ALL - - cor0.col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL - 22 - col0 FROM tab0
----
-111
-46
-57

query I rowsort
SELECT + 30 + + col2 * + col1 AS col0 FROM tab0
----
127
2868
7492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

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

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

query I rowsort
SELECT col1 + 54 AS col1 FROM tab0
----
140
145
151

onlyif mysql # use DIV operator for integer division
query I rowsort label-1731
SELECT 81 DIV 74 - col0 * - col1 AS col0 FROM tab1
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-1731
SELECT 81 / 74 - col0 * - col1 AS col0 FROM tab1
----
1041
641
79

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1733
SELECT - col1 DIV - ( - col2 ) + 2 * col1 FROM tab1
----
20
26
52

skipif mysql # not compatible
query I rowsort label-1733
SELECT - col1 / - ( - col2 ) + 2 * col1 FROM tab1
----
20
26
52

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

query I rowsort
SELECT 53 * cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 50b30f82362dcc3395e29d5b7046c8aa

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

query I rowsort
SELECT 65 + + 94 FROM tab1
----
159
159
159

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1741
SELECT ALL - CAST( - col1 AS SIGNED ) * col2 AS col1 FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL - CAST ( - col1 AS INTEGER ) * col2 AS col1 FROM tab0
----
2838
7462
97

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

query I rowsort
SELECT DISTINCT - col2 + 2 * - col1 FROM tab0 cor0
----
-195
-205
-264

query I rowsort
SELECT ALL - + 3 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-12
-4099
-6403

query I rowsort
SELECT - - 29 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1473
705
758

query I rowsort
SELECT 35 * 54 AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 0b233c0c53c78f852a46da4acac78ef7

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

query I rowsort
SELECT ALL 15 * 43 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ebb9f698bb94985b25c629c9daaa5339

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + ( col1 ) * CAST ( 62 AS REAL ) * + col0 AS col2 FROM tab1 AS cor0
----
-39680
-4836
-64480

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

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

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

query I rowsort
SELECT 66 + + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 68e84a63c2b36f211a2c974eb9b7debc

query I rowsort
SELECT col1 + + 70 AS col0 FROM tab1 cor0
----
80
83
96

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 * - 84 col0 FROM tab0 AS cor0
----
-7257
-7726
-8149

query I rowsort
SELECT 95 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + ( - 58 ) col0 FROM tab1 AS cor0
----
-122
-138
-61

query I rowsort
SELECT ALL + - col1 * - col1 + + 65 FROM tab0 AS cor0
----
7461
8346
9474

query I rowsort
SELECT ALL - col0 * - 28 AS col0 FROM tab1 AS cor0
----
1792
2240
84

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

query I rowsort
SELECT ALL 69 * col1 FROM tab0 AS cor0
----
5934
6279
6693

query I rowsort
SELECT DISTINCT - col1 + - col2 + - col2 AS col1 FROM tab1 AS cor0
----
-124
-134
-205

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

query I rowsort
SELECT - 63 * - ( + col2 ) FROM tab2 AS cor0
----
1638
1701
2394

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

query I rowsort
SELECT - 77 AS col0 FROM tab0 cor0
----
-77
-77
-77

query I rowsort
SELECT ALL + col0 + - col0 * - 64 FROM tab0
----
1560
2275
5785

query I rowsort
SELECT ALL + col1 + 85 AS col1 FROM tab0
----
171
176
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * col2 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - 50 AS col1 FROM tab0 AS cor0
----
-50
-50
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-1776
SELECT ALL col0 DIV col0 + + 17 FROM tab0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL col0 / col0 + + 17 FROM tab0
----
18
18
18

query I rowsort
SELECT - 36 AS col0 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e

onlyif mysql # use DIV operator for integer division
query I rowsort label-1778
SELECT + col0 * col0 DIV + col1 FROM tab0 AS cor0
----
12
6
87

skipif mysql # not compatible
query I rowsort label-1778
SELECT + col0 * col0 / + col1 FROM tab0 AS cor0
----
12
6
87

query I rowsort
SELECT DISTINCT - 76 + 73 FROM tab2, tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - + col0 + + 47 FROM tab2 AS cor0
----
-31
-32
40

query I rowsort
SELECT cor0.col0 * cor1.col2 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 13db62c4f935162dbaa859c1d738cc13

query I rowsort
SELECT - ( col1 ) * col0 + + col1 AS col2 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT + 74 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1784
SELECT ALL CAST( NULL AS SIGNED ) col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL CAST ( NULL AS INTEGER ) col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col0 * + ( 17 ) AS col0 FROM tab1
----
1088
1360
51

query I rowsort
SELECT col1 * - 45 + - col1 AS col2 FROM tab0
----
-3956
-4186
-4462

onlyif mysql # use DIV operator for integer division
query I rowsort label-1787
SELECT + - col1 DIV CAST( 29 AS SIGNED ) col1 FROM tab0 cor0
----
-2
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1787
SELECT + - col1 / CAST ( 29 AS INTEGER ) col1 FROM tab0 cor0
----
-2
-3
-3

query I rowsort
SELECT + 83 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT + col1 * - 77 FROM tab2 AS cor0
----
-1309
-2387
-4543

query I rowsort
SELECT ALL tab0.col2 + 85 FROM tab0, tab2 AS cor0
----
9 values hashing to fdff65c0a33067447e6ba6b03ffeb118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 * col2 col1 FROM tab0
----
1175
6815
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1792
SELECT CAST( 81 AS SIGNED ) * - col2 * + col0 FROM tab1
----
-13122
-295488
-622080

skipif mysql # not compatible
query I rowsort label-1792
SELECT CAST ( 81 AS INTEGER ) * - col2 * + col0 FROM tab1
----
-13122
-295488
-622080

query I rowsort
SELECT + col1 + - cor0.col1 * 24 AS col0 FROM tab0 AS cor0
----
-1978
-2093
-2231

query I rowsort
SELECT + col2 * cor0.col2 + - cor0.col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1690
1733
4157

query I rowsort
SELECT ( col0 * + col0 ) + col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT ALL - 53 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT DISTINCT - 22 AS col2 FROM tab1, tab2 AS cor0
----
-22

query I rowsort
SELECT ALL - ( col1 ) * + col1 + col2 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT ALL col2 * cor0.col2 + + col1 * - 33 * + col2 AS col1 FROM tab1 AS cor0
----
-15561
-31968
-43416

query I rowsort
SELECT ALL ( - 77 ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6

query I rowsort
SELECT - - col2 * - col2 + ( + col0 + + col0 ) * col2 AS col2 FROM tab2 cor0
----
-351
3380
4560

query I rowsort
SELECT 73 * col2 AS col0 FROM tab1 cor0
----
3942
4161
7008

query I rowsort
SELECT DISTINCT + + col2 * col0 + 54 AS col0 FROM tab2 AS cor0
----
2082
243
3056

onlyif mysql # use DIV operator for integer division
query I rowsort label-1804
SELECT ALL ( cor0.col0 ) + col2 DIV - col1 FROM tab1 AS cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL ( cor0.col0 ) + col2 / - col1 FROM tab1 AS cor0
----
1
59
73

query I rowsort
SELECT ALL + 49 + - col0 * col1 - - col2 AS col1 FROM tab0 AS cor0
----
-1982
-3345
-7968

query I rowsort
SELECT DISTINCT + 84 - + col1 FROM tab2 AS cor0
----
25
53
67

query I rowsort
SELECT + + 34 + - col1 AS col2 FROM tab1 AS cor0
----
21
24
8

query I rowsort
SELECT DISTINCT col1 * + col1 * - 57 AS col1 FROM tab2
----
-16473
-198417
-54777

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1809
SELECT col2 / + CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT col2 / + CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + ( - 27 + col2 ) AS col1 FROM tab0
----
144
30
9

query I rowsort
SELECT + col2 + - 70 * - col2 + - col2 AS col0 FROM tab1 AS cor0
----
3780
3990
6720

query I rowsort
SELECT ALL col0 + 45 AS col1 FROM tab0 AS cor0
----
134
69
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1813
SELECT ALL + col2 * 52 + - col1 DIV + col0 AS col0 FROM tab2 cor0
----
1352
1400
1976

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL + col2 * 52 + - col1 / + col0 AS col0 FROM tab2 cor0
----
1352
1400
1976

query I rowsort
SELECT col0 * + col0 + - cor0.col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
37
4143
6483

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1815
SELECT + col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1815
SELECT + col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + 74 + col0 FROM tab1 AS cor0
----
131
195
250

query I rowsort
SELECT - + col1 * col1 * col0 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT + ( col1 ) * col2 + col2 * + col1 + + col2 FROM tab0 cor0
----
15006
195
5709

query I rowsort
SELECT col1 * + 68 FROM tab0 AS cor0
----
5848
6188
6596

query I rowsort
SELECT + 88 * col1 FROM tab0 cor0
----
7568
8008
8536

onlyif mysql # use DIV operator for integer division
query I rowsort label-1821
SELECT - 32 DIV + 24 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1821
SELECT - 32 / + 24 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1822
SELECT - - CAST( NULL AS SIGNED ) / - col1 - cor0.col2 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1822
SELECT - - CAST ( NULL AS INTEGER ) / - col1 - cor0.col2 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + 76 ) AS col2 FROM tab1 AS cor0
----
76
76
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1824
SELECT - - col2 * - col0 + + CAST( 80 AS SIGNED ) + col0 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT - - col2 * - col0 + + CAST ( 80 AS INTEGER ) + col0 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - cor0.col1 + - cor0.col2 + - 40 AS col0 FROM tab2 AS cor0
----
-36
-61
-7

query I rowsort
SELECT cor0.col1 + + col1 + col2 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT DISTINCT - 45 * 40 AS col1 FROM tab2, tab0 cor0, tab1 cor1
----
-1800

onlyif mysql # use DIV operator for integer division
query I rowsort label-1828
SELECT ALL col1 * ( + col1 + + tab0.col2 ) DIV col0 FROM tab0
----
176
271
426

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL col1 * ( + col1 + + tab0.col2 ) / col0 FROM tab0
----
176
271
426

query I rowsort
SELECT DISTINCT + col0 + - 62 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-5308
-5553
-5979

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1830
SELECT + + col0 * CAST( col2 AS SIGNED ) FROM tab2 cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-1830
SELECT + + col0 * CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 74 * - col1 col1 FROM tab0 AS cor0
----
-6278
-6643
-7081

query I rowsort
SELECT ALL - + col1 * - ( + col2 ) * - col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col0 + - CAST ( + ( - col1 ) AS REAL ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - - col2 + - cor0.col1 - - 88 AS col1 FROM tab0 AS cor0
----
-8
35
79

query I rowsort
SELECT 54 + 66 AS col0 FROM tab1 AS cor0
----
120
120
120

query I rowsort
SELECT DISTINCT - - col1 + cor0.col2 * col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT ( cor0.col0 ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT col0 * + ( cor0.col0 * col2 ) + - col0 FROM tab0 AS cor0
----
1190
18984
649433

query I rowsort
SELECT ALL col0 * - 31 * - col0 FROM tab1
----
126976
198400
279

query I rowsort
SELECT DISTINCT 14 - cor0.col2 AS col1 FROM tab2 AS cor0
----
-12
-13
-24

query I rowsort
SELECT ALL - 10 * col1 AS col2 FROM tab0 AS cor0
----
-860
-910
-970

query I rowsort
SELECT - col2 * + col0 + col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 44 col2 FROM tab0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT + col1 * + ( + 49 ) FROM tab0 AS cor0
----
4214
4459
4753

query I rowsort
SELECT DISTINCT - col1 + col2 * + cor0.col1 FROM tab2 cor0
----
1475
629
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1846
SELECT + - col1 + CAST( NULL AS SIGNED ) * - 25 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1846
SELECT + - col1 + CAST ( NULL AS INTEGER ) * - 25 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + tab0.col2 * tab0.col2 FROM tab0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-1848
SELECT DISTINCT 5 + - col1 DIV + col0 AS col1 FROM tab2
----
1
5

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT 5 + - col1 / + col0 AS col1 FROM tab2
----
1
5

query I rowsort
SELECT DISTINCT - + cor0.col1 * - col2 + + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT + col2 + tab0.col0 * + col1 AS col2 FROM tab0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-1851
SELECT DISTINCT 95 * + col2 + col1 DIV + col2 FROM tab0
----
192
3137
7791

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT 95 * + col2 + col1 / + col2 FROM tab0
----
192
3137
7791

query I rowsort
SELECT DISTINCT - + col1 * cor0.col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL - cor0.col2 * - cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + 27 * col0 * - col0 FROM tab1
----
-110592
-172800
-243

onlyif mysql # use DIV operator for integer division
query I rowsort label-1855
SELECT DISTINCT col0 * col1 DIV col2 - + col2 AS col1 FROM tab0
----
16
29
3394

skipif mysql # not compatible
query I rowsort label-1855
SELECT DISTINCT col0 * col1 / col2 - + col2 AS col1 FROM tab0
----
16
29
3394

onlyif mysql # use DIV operator for integer division
query I rowsort label-1856
SELECT ALL col0 - - 0 DIV - col0 AS col2 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL col0 - - 0 / - col0 AS col2 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1857
SELECT + col1 DIV 74 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1857
SELECT + col1 / 74 FROM tab1
----
0
0
0

query I rowsort
SELECT + ( col1 ) + col2 * + col1 + col1 AS col2 FROM tab2
----
1652
680
899

query I rowsort
SELECT ( + col0 + col2 ) * col0 AS col0 FROM tab1
----
14080
171
7744

query I rowsort
SELECT ALL ( - col0 ) * + col1 - col2 * tab0.col2 FROM tab0
----
-14823
-3153
-3396

query I rowsort
SELECT 62 * + col1 * tab0.col0 + - col1 * + col2 FROM tab0
----
125130
210393
494676

query I rowsort
SELECT - col2 * + 49 + + col1 FROM tab0 AS cor0
----
-1531
-3927
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-1863
SELECT ALL + col0 DIV - col0 + + col2 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL + col0 / - col0 + + col2 FROM tab0
----
0
32
81

query I rowsort
SELECT - col1 * - col2 + + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - 11 AS col0 FROM tab1 cor0
----
-11
-11
-11

query I rowsort
SELECT ALL col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col0 ) * - col0 col2 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - col0 * col2 + - col2 AS col1 FROM tab1
----
-216
-3705
-7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 + col2 * - col1 col2 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT ALL + - 68 + - col0 * + cor0.col1 + - col0 FROM tab0 AS cor0
----
-2156
-3498
-8256

query I rowsort
SELECT DISTINCT cor0.col2 * col1 * + col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT 81 * col1 AS col1 FROM tab0 AS cor0
----
6966
7371
7857

query I rowsort
SELECT DISTINCT + - col2 - - col1 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - 29 * + col0 + cor0.col1 AS col0 FROM tab1 cor0
----
-1846
-2307
-61

query I rowsort
SELECT ALL + col1 * col1 + - col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT - col0 + + cor0.col0 * + cor0.col2 FROM tab1 AS cor0
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 26 * col1 col2 FROM tab1 AS cor0
----
260
338
676

query I rowsort
SELECT DISTINCT - - ( + col1 ) * - col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT + - col2 * + col2 + + col0 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT 80 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 2815a2e064e1815ac3a10bcd8b0ab19c

query I rowsort
SELECT + 28 FROM tab0, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col1 FROM tab1
----
65
65
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1883
SELECT ALL - col1 + + col1 DIV col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL - col1 + + col1 / col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - + 70 + + col2 FROM tab2 AS cor0
----
-32
-43
-44

query I rowsort
SELECT cor0.col2 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT + 54 + + col1 * col2 FROM tab0 cor0
----
151
2892
7516

query I rowsort
SELECT DISTINCT col2 * - 81 * + tab2.col2 FROM tab2
----
-116964
-54756
-59049

query I rowsort
SELECT + 81 * + col0 AS col1 FROM tab1 cor0
----
243
5184
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 - + 28 col1 FROM tab2 AS cor0
----
-11
3
31

query I rowsort
SELECT ALL - + col1 * 81 + col2 * col0 AS col2 FROM tab2 cor0
----
-2322
-2751
1625

query I rowsort
SELECT - col0 * col1 * 4 + col0 * + 92 * col1 FROM tab1 AS cor0
----
56320
6864
91520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 * - col2 ) + 49 + + col1 col1 FROM tab2
----
-109
-1920
-2936

query I rowsort
SELECT 15 + col0 * col1 + + tab0.col1 FROM tab0
----
2165
3507
8205

query I rowsort
SELECT - 80 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd

query I rowsort
SELECT ALL + col1 * + 14 + 17 FROM tab2
----
255
451
843

query I rowsort
SELECT ALL + col1 * + ( 32 ) + + col0 * ( + col0 ) FROM tab2 AS cor0
----
1041
6785
7972

onlyif mysql # use DIV operator for integer division
query I rowsort label-1897
SELECT ALL + - col1 DIV 18 + col1 - col2 * col0 AS col0 FROM tab2 AS cor0
----
-159
-1972
-2985

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL + - col1 / 18 + col1 - col2 * col0 AS col0 FROM tab2 AS cor0
----
-159
-1972
-2985

query I rowsort
SELECT DISTINCT - + col1 * + col0 + - col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL + col1 * col2 * cor0.col1 FROM tab2 cor0
----
10982
25947
90506

query I rowsort
SELECT - - col2 + 13 AS col1 FROM tab2 cor0
----
39
40
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1901
SELECT + col0 * + ( - ( col2 ) * - CAST( NULL AS SIGNED ) ) + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1901
SELECT + col0 * + ( - ( col2 ) * - CAST ( NULL AS INTEGER ) ) + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - 92 FROM tab0 AS cor0
----
-1
-6
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1903
SELECT + col2 * - CAST( col1 * + col2 AS SIGNED ) AS col2 FROM tab1
----
-119808
-32490
-75816

skipif mysql # not compatible
query I rowsort label-1903
SELECT + col2 * - CAST ( col1 * + col2 AS INTEGER ) AS col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT + 87 * tab0.col0 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to bd0c969fcfd47a629771496c04ab0faa

query I rowsort
SELECT - col0 + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL + - 73 - + cor0.col0 AS col2 FROM tab2 cor0
----
-151
-152
-80

query I rowsort
SELECT DISTINCT ( + 81 ) + + cor0.col2 * ( 56 * col2 ) FROM tab0 AS cor0
----
137
376625
61065

query I rowsort
SELECT ALL + ( col1 ) * col2 + 29 FROM tab1 AS cor0
----
1277
1433
599

query I rowsort
SELECT DISTINCT - col1 * - 34 AS col0 FROM tab2
----
1054
2006
578

onlyif mysql # use DIV operator for integer division
query I rowsort label-1910
SELECT col1 * ( 25 ) DIV - tab2.col0 AS col1 FROM tab2
----
-110
-18
-5

skipif mysql # not compatible
query I rowsort label-1910
SELECT col1 * ( 25 ) / - tab2.col0 AS col1 FROM tab2
----
-110
-18
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1911
SELECT col2 / CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1911
SELECT col2 / CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 59 - cor0.col2 AS col1 FROM tab0, tab1 cor0
----
-113
-116
-155

onlyif mysql # use DIV operator for integer division
query I rowsort label-1913
SELECT + tab0.col0 DIV 87 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1913
SELECT + tab0.col0 / 87 FROM tab0
----
0
0
1

query I rowsort
SELECT + 92 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT + cor0.col1 * - col1 + + col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT - col0 - + ( col2 ) AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT + ( 30 ) + - col0 AS col0 FROM tab0 cor0
----
-5
-59
6

query I rowsort
SELECT - col2 - + ( col2 * + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( + col2 ) col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1920
SELECT + CAST( col2 AS SIGNED ) + col1 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-1920
SELECT + CAST ( col2 AS INTEGER ) + col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - col0 + + col2 * + cor0.col0 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT ALL + 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # use DIV operator for integer division
query I rowsort label-1923
SELECT - ( + col1 ) DIV 52 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1923
SELECT - ( + col1 ) / 52 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1924
SELECT DISTINCT - col2 + + col0 * ( cor0.col2 ) * - col1 + - CAST( NULL AS SIGNED ) * - ( + col2 ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT - col2 + + col0 * ( cor0.col2 ) * - col1 + - CAST ( NULL AS INTEGER ) * - ( + col2 ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - col2 * col1 + + col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - + cor0.col1 + + 92 FROM tab1 AS cor0
----
66
79
82

query I rowsort
SELECT - + col0 * 34 AS col0 FROM tab0 AS cor0
----
-1190
-3026
-816

query I rowsort
SELECT col2 * + ( + ( + col1 ) ) * - col0 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 32 * - col0 col0 FROM tab0 AS cor0
----
-1217
-2939
-854

query I rowsort
SELECT DISTINCT col0 + 21 + - 32 AS col2 FROM tab2 AS cor0
----
-4
67
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-1931
SELECT ALL - col0 + col0 DIV col0 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL - col0 + col0 / col0 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT ALL 27 * + col1 FROM tab2
----
1593
459
837

query I rowsort
SELECT col0 + - 69 * - 38 FROM tab2 AS cor0
----
2629
2700
2701

query I rowsort
SELECT DISTINCT col1 + - 8 * col1 * - col0 FROM tab2 AS cor0
----
10761
1767
36875

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2, tab0 cor3
----
3645 values hashing to ed0ce6de90f51f6f9035da5f66a6f197

query I rowsort
SELECT ALL - cor0.col0 + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * 9 col2 FROM tab1 AS cor0
----
27
576
720

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - cor0.col2 * + CAST ( - 42 AS REAL ) AS col1 FROM tab0 AS cor0
----
1386
3444
42

query I rowsort
SELECT DISTINCT - - col0 + col1 * - col1 * col2 FROM tab1 AS cor0
----
-16144
-36501
-5636

query I rowsort
SELECT ALL - col2 + col1 * col2 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT ALL col0 * + col0 * + col1 AS col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL + col0 * - 92 * + col0 - + col0 FROM tab2 AS cor0
----
-4515
-559806
-574251

query I rowsort
SELECT ALL + cor0.col0 * - 64 + + col0 AS col2 FROM tab0 cor0
----
-1512
-2205
-5607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( col1 ) * col1 col2 FROM tab2 AS cor0
----
-22831
-271518
-6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 - - col1 col0 FROM tab1 AS cor0
----
-1027
-52
-630

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0 cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00

query I rowsort
SELECT ALL 66 * 22 - col1 * 9 AS col0 FROM tab2
----
1173
1299
921

query I rowsort
SELECT + - col0 * - col1 + + cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT - ( col2 ) + col0 + + 62 FROM tab1 AS cor0
----
11
46
69

query I rowsort
SELECT ALL + + col0 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + col0 col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + ( - ( col0 ) ) * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - 65 - + 65 AS col1 FROM tab1 AS cor0
----
-130
-130
-130

query I rowsort
SELECT + ( - 96 ) * col1 - + col1 * cor0.col1 AS col1 FROM tab0 cor0
----
-15652
-17017
-18721

query I rowsort
SELECT DISTINCT cor0.col2 * col0 + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + cor0.col2 + - col1 * - 52 FROM tab2 cor0
----
1639
3094
922

query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 - col1 AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + - cor0.col1 * - cor0.col1 AS col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT - + col0 * col2 + col2 + 8 FROM tab0 AS cor0
----
-26
-7208
-751

query I rowsort
SELECT cor0.col2 + + cor0.col0 + col2 * col2 AS col2 FROM tab0 cor0
----
1146
37
6895

query I rowsort
SELECT ALL + ( - col1 ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ( col2 + + col1 ) * - col2 FROM tab2
----
-1566
-2090
-2210

query I rowsort
SELECT - + 60 * col1 - - 38 FROM tab1 AS cor0
----
-1522
-562
-742

query I rowsort
SELECT ALL col2 + + cor0.col2 * col2 + col1 FROM tab1 AS cor0
----
2996
3316
9325

query I rowsort
SELECT ALL cor0.col1 * - cor0.col2 * + col1 + + col0 FROM tab1 AS cor0
----
-16144
-36501
-5636

query I rowsort
SELECT cor0.col1 * + col1 AS col2 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT - col2 * col0 + 32 AS col0 FROM tab1 AS cor0
----
-130
-3616
-7648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 37 + - cor0.col1 col2 FROM tab0, tab0 cor0
----
-123
-128
-134

query I rowsort
SELECT ALL + + col2 - 62 FROM tab0 AS cor0
----
-29
-61
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 17 col2 FROM tab1 AS cor0
----
-1632
-918
-969

query I rowsort
SELECT 81 + - col2 * + col1 AS col2 FROM tab1
----
-1167
-1323
-489

query I rowsort
SELECT ALL + 83 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT - 73 + - 25 AS col0 FROM tab2 AS cor0
----
-98

query I rowsort
SELECT + ( 48 ) AS col2 FROM tab2 cor0
----
48
48
48

query I rowsort
SELECT + 29 * col2 AS col2 FROM tab1 AS cor0
----
1566
1653
2784

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1976
SELECT DISTINCT + CAST( - 9 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
-153
-279
-531

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT + CAST ( - 9 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
-153
-279
-531

query I rowsort
SELECT + + ( + col2 ) * col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT ALL + + ( col1 ) + - cor0.col2 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL tab0.col1 * ( col1 + col0 ) AS col2 FROM tab0
----
12804
16380
9460

query I rowsort
SELECT + ( col2 ) * col0 * 82 FROM tab1
----
13284
299136
629760

query I rowsort
SELECT ALL col1 + - col1 * + col0 AS col2 FROM tab1
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 + - col1 col2 FROM tab0 cor0
----
-105
-110
-116

onlyif mysql # use DIV operator for integer division
query I rowsort label-1984
SELECT DISTINCT + 22 DIV + col1 - col1 col1 FROM tab2
----
-16
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT + 22 / + col1 - col1 col1 FROM tab2
----
-16
-31
-59

query I rowsort
SELECT ALL - col2 - + col1 AS col1 FROM tab0
----
-119
-173
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 col1 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817

query I rowsort
SELECT ALL 97 FROM tab1, tab2 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL - col0 * + 35 * ( cor0.col1 * col1 ) AS col1 FROM tab0 cor0
----
-11526025
-25795315
-6212640

query I rowsort
SELECT - col0 + + 98 FROM tab1 cor0
----
18
34
95

query I rowsort
SELECT ALL - + col1 * ( + col0 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - cor0.col1 - 81 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 870f416b068c63bd8d72f86463055173

query I rowsort
SELECT + + 11 + + col0 * - col0 FROM tab0 AS cor0
----
-1214
-565
-7910

query I rowsort
SELECT ALL - - cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - cor0.col2 * + tab2.col2 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1db34a67b8738ee7e05db23d60ad4a06

onlyif mysql # use DIV operator for integer division
query I rowsort label-1995
SELECT + col2 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1995
SELECT + col2 / cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT DISTINCT 28 * col1 AS col2 FROM tab2 AS cor0
----
1652
476
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT + col2 + - col0 DIV 70 col0 FROM tab2 AS cor0
----
25
27
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1997
SELECT + col2 + - col0 / 70 col0 FROM tab2 AS cor0
----
25
27
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1998
SELECT + - col0 + - ( - col2 + + col0 ) * + CAST( + col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
-3146
-776
613

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1998
SELECT + - col0 + - ( - col2 + + col0 ) * + CAST ( + col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
-3146
-776
613

onlyif mysql # use DIV operator for integer division
query I rowsort label-1999
SELECT + col1 * 24 DIV + cor0.col1 - - col1 FROM tab2 AS cor0
----
41
55
83

skipif mysql # not compatible
query I rowsort label-1999
SELECT + col1 * 24 / + cor0.col1 - - col1 FROM tab2 AS cor0
----
41
55
83

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-2001
SELECT - cor0.col2 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2001
SELECT - cor0.col2 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2002
SELECT + + col0 - ( + 32 ) DIV - col2 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2002
SELECT + + col0 - ( + 32 ) / - col2 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - + col2 + - 36 FROM tab1 AS cor0
----
-132
-90
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - 8 col1 FROM tab1 AS cor0
----
-24
-512
-640

query I rowsort
SELECT + 33 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2006
SELECT col0 * col0 DIV 29 FROM tab1 AS cor0
----
0
141
220

skipif mysql # not compatible
query I rowsort label-2006
SELECT col0 * col0 / 29 FROM tab1 AS cor0
----
0
141
220

onlyif mysql # use DIV operator for integer division
query I rowsort label-2007
SELECT - col1 * 59 DIV + col1 AS col1 FROM tab0 AS cor0
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-2007
SELECT - col1 * 59 / + col1 AS col1 FROM tab0 AS cor0
----
-59
-59
-59

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to e3f81e329d34d83e4528a9ef7b933946

onlyif mysql # use DIV operator for integer division
query I rowsort label-2009
SELECT - ( + 37 ) DIV + cor0.col2 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2009
SELECT - ( + 37 ) / + cor0.col2 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT + - col0 * - ( cor0.col1 ) + + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT 1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2012
SELECT col2 DIV - ( col2 ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2012
SELECT col2 / - ( col2 ) FROM tab1
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2013
SELECT ALL - + col0 + + col2 DIV + col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL - + col0 + + col2 / + col1 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2014
SELECT - + cor0.col0 + 20 DIV - cor0.col0 + col2 AS col2 FROM tab2 cor0
----
-41
-52
18

skipif mysql # not compatible
query I rowsort label-2014
SELECT - + cor0.col0 + 20 / - cor0.col0 + col2 AS col2 FROM tab2 cor0
----
-41
-52
18

query I rowsort
SELECT DISTINCT col0 * col1 * - 94 - col1 AS col2 FROM tab0
----
-194102
-319227
-761397

query I rowsort
SELECT col2 - + col2 * + 95 FROM tab2
----
-2444
-2538
-3572

query I rowsort
SELECT tab0.col2 * + 43 AS col0 FROM tab0
----
1419
3526
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2018
SELECT DISTINCT - col0 * CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT - col0 * CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - col2 + - col2 * 32 AS col0 FROM tab0 AS cor0
----
-1089
-2706
-33

query I rowsort
SELECT ALL + col0 * - cor0.col1 + 84 * col1 AS col2 FROM tab0 AS cor0
----
-455
4753
5160

query I rowsort
SELECT DISTINCT tab1.col1 * + col0 * + col2 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT + 99 * col2 * col0 FROM tab2
----
18711
200772
297198

query I rowsort
SELECT - ( + tab0.col0 ) AS col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - col1 * - 31 AS col2 FROM tab1 AS cor0
----
310
403
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 89 ) * col1 + - col2 * + col1 col1 FROM tab2 AS cor0
----
1922
3717
867

query I rowsort
SELECT DISTINCT + + 43 AS col1 FROM tab2 AS cor0
----
43

query I rowsort
SELECT + 28 * col2 AS col1 FROM tab2 AS cor0
----
1064
728
756

query I rowsort
SELECT DISTINCT - + 57 * col1 - col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-5432
2275

query I rowsort
SELECT ALL - col1 + 56 * - col1 AS col1 FROM tab1 AS cor0
----
-1482
-570
-741

query I rowsort
SELECT ALL - cor0.col1 + - col0 * - col0 AS col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT DISTINCT + + 62 AS col2 FROM tab1 AS cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 16 + + col1 col2 FROM tab0 cor0
----
102
107
113

query I rowsort
SELECT DISTINCT col2 * + 25 AS col1 FROM tab2 AS cor0
----
650
675
950

query I rowsort
SELECT DISTINCT + 65 + col0 FROM tab1 cor0
----
129
145
68

query I rowsort
SELECT ALL + 65 + cor0.col1 AS col2 FROM tab2 AS cor0
----
124
82
96

query I rowsort
SELECT ALL - 68 + col2 AS col0 FROM tab0 AS cor0
----
-35
-67
14

query I rowsort
SELECT DISTINCT + col2 * 41 - - 79 AS col0 FROM tab2
----
1145
1186
1637

query I rowsort
SELECT - col1 * + 74 AS col1 FROM tab2
----
-1258
-2294
-4366

onlyif mysql # use DIV operator for integer division
query I rowsort label-2039
SELECT col1 DIV + col2 - col0 FROM tab0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-2039
SELECT col1 / + col2 - col0 FROM tab0
----
-22
-88
62

query I rowsort
SELECT + 5 * col0 + col1 AS col1 FROM tab2
----
412
449
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2041
SELECT col0 * - tab1.col0 + col0 * CAST( + col2 * col2 AS SIGNED ) AS col1 FROM tab1
----
203840
730880
8739

skipif mysql # not compatible
query I rowsort label-2041
SELECT col0 * - tab1.col0 + col0 * CAST ( + col2 * col2 AS INTEGER ) AS col1 FROM tab1
----
203840
730880
8739

query I rowsort
SELECT - - col0 + + 28 AS col2 FROM tab2 AS cor0
----
106
107
35

query I rowsort
SELECT DISTINCT - ( ( col0 ) ) + cor0.col0 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2044
SELECT DISTINCT + + 55 * + col2 * - col2 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT + + 55 * + col2 * - col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - 4 * - 40 * col0 + - col0 * 49 AS col1 FROM tab0
----
2664
3885
9879

query I rowsort
SELECT - 14 * - col0 * - col1 + - col2 * - col0 FROM tab0 AS cor0
----
-106088
-28104
-47495

query I rowsort
SELECT ALL tab1.col1 * col0 * 27 FROM tab1
----
17280
2106
28080

query I rowsort
SELECT DISTINCT + col2 * - 28 + + col2 FROM tab1 AS cor0
----
-1458
-1539
-2592

query I rowsort
SELECT ALL col0 * col2 * 97 AS col2 FROM tab2
----
18333
196716
291194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2050
SELECT DISTINCT - col0 * - tab0.col0 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT - col0 * - tab0.col0 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2051
SELECT ALL ( col0 ) * - CAST( - 8 AS SIGNED ) * col0 FROM tab0
----
4608
63368
9800

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL ( col0 ) * - CAST ( - 8 AS INTEGER ) * col0 FROM tab0
----
4608
63368
9800

query I rowsort
SELECT DISTINCT + col2 + - ( - 3 ) FROM tab2
----
29
30
41

query I rowsort
SELECT + col1 + ( 85 * col0 ) AS col0 FROM tab1 AS cor0
----
281
5450
6813

query I rowsort
SELECT col1 * - ( + col2 * - col2 ) + col1 FROM tab0 cor0
----
194
611975
93740

query I rowsort
SELECT + + cor0.col1 * ( 93 ) - col1 FROM tab2 AS cor0
----
1564
2852
5428

query I rowsort
SELECT DISTINCT col0 * - ( + ( col0 ) ) + ( col2 ) FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT col1 * - 13 + + cor0.col1 * - col2 * - col1 FROM tab2 AS cor0
----
10761
25544
89739

query I rowsort
SELECT - + col1 + col0 * - ( + col1 ) FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT col2 + + 27 FROM tab1
----
123
81
84

query I rowsort
SELECT ALL + col0 * - 83 + - col0 FROM tab1
----
-252
-5376
-6720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2061
SELECT DISTINCT + - col0 * CAST( NULL AS SIGNED ) + col0 / + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT + - col0 * CAST ( NULL AS INTEGER ) + col0 / + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + cor0.col1 + - 26 AS col0 FROM tab1 AS cor0
----
-13
-16
0

query I rowsort
SELECT col1 * - 99 AS col0 FROM tab1 AS cor0
----
-1287
-2574
-990

query I rowsort
SELECT ( + cor1.col2 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col2 col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2066
SELECT - + cor0.col1 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT - + cor0.col1 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * 14 AS col1 FROM tab1 AS cor0
----
1120
42
896

query I rowsort
SELECT + cor0.col1 + - 18 FROM tab2 AS cor0
----
-1
13
41

query I rowsort
SELECT + cor0.col2 * 69 FROM tab1 AS cor0
----
3726
3933
6624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2070
SELECT - CAST( NULL AS DECIMAL ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2070
SELECT - CAST ( NULL AS REAL ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 55 * col2 FROM tab1 AS cor0
----
2970
3135
5280

query I rowsort
SELECT - ( - col1 ) + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 * col0 + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL - 37 * col0 AS col2 FROM tab1 AS cor0
----
-111
-2368
-2960

query I rowsort
SELECT - col1 + 94 AS col0 FROM tab1 cor0
----
68
81
84

query I rowsort
SELECT + col0 * - ( + col2 ) + ( + col1 ) * - col2 * - col1 FROM tab1 AS cor0
----
2052
36342
8544

query I rowsort
SELECT 74 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT ALL + - col0 + + cor0.col1 + 19 AS col2 FROM tab0 AS cor0
----
21
81
81

query I rowsort
SELECT DISTINCT + 10 + + 73 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
83

query I rowsort
SELECT ALL - 16 * cor0.col1 FROM tab2 AS cor0
----
-272
-496
-944

query I rowsort
SELECT DISTINCT + - col2 * + col0 + - ( col0 ) FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT + + 86 * - col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1022
-2182
-803

query I rowsort
SELECT ALL - 13 + - col1 * + ( col0 + + col2 ) AS col2 FROM tab0 AS cor0
----
-15574
-3505
-4915

query I rowsort
SELECT + + cor0.col2 * - ( 41 ) FROM tab0 cor0
----
-1353
-3362
-41

query I rowsort
SELECT ALL col0 + cor0.col1 * + cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
636080
753660
912708

query I rowsort
SELECT DISTINCT + col1 * - ( + 42 * col1 + col0 ) FROM tab1 AS cor0
----
-28470
-4840
-8138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + 47 * + col2 col0 FROM tab1
----
2616
3319
5552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT + col2 + - col0 * 35 * + 26 AS col0 FROM tab0 AS cor0
----
-21807
-31849
-80908

query I rowsort
SELECT DISTINCT 51 * + tab2.col0 AS col1 FROM tab2
----
357
3978
4029

onlyif mysql # use DIV operator for integer division
query I rowsort label-2091
SELECT - ( - cor0.col1 ) DIV cor0.col0 + 10 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to b4552fd01f2b10b8dbe470231e5af154

skipif mysql # not compatible
query I rowsort label-2091
SELECT - ( - cor0.col1 ) / cor0.col0 + 10 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to b4552fd01f2b10b8dbe470231e5af154

query I rowsort
SELECT ALL tab2.col2 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT + 50 + + cor0.col1 FROM tab2 cor0
----
109
67
81

query I rowsort
SELECT DISTINCT - 70 FROM tab2, tab1 AS cor0
----
-70

query I rowsort
SELECT + col0 * + 61 + col1 + col0 AS col1 FROM tab1 AS cor0
----
212
3978
4973

query I rowsort
SELECT DISTINCT + col1 * ( + 87 ) FROM tab2 AS cor0
----
1479
2697
5133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 * col1 col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT 94 AS col2 FROM tab1, tab1 AS cor0
----
94

query I rowsort
SELECT ALL 71 + 17 * + col2 FROM tab2 AS cor0
----
513
530
717

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 82 + col2 * - col1 col2 FROM tab0 AS cor0
----
-15
-2756
-7380

query I rowsort
SELECT DISTINCT + + ( + col0 ) - + col0 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2102
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + 92 - + col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + 92 - + col2 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 33 * col2 FROM tab1 AS cor0
----
1782
1881
3168

query I rowsort
SELECT ALL - cor0.col0 + + col1 + - 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 * + col2 col0 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT col0 + 9 FROM tab0 AS cor0
----
33
44
98

query I rowsort
SELECT - - col1 + + col1 * - col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT + - ( col2 ) * + col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - 10 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
44
47
86

query I rowsort
SELECT + 30 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 1ae25494a21836bac07879aa19fd4615

onlyif mysql # use DIV operator for integer division
query I rowsort label-2111
SELECT ALL + col1 DIV + cor0.col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL + col1 / + cor0.col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT ( - col2 ) * - col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + - 69 FROM tab2 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ALL + col0 * + cor0.col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL - 12 * 73 FROM tab1
----
-876
-876
-876

query I rowsort
SELECT ALL 0 * col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + ( col2 ) * - 72 ) AS col0 FROM tab0
----
-2376
-5904
-72

query I rowsort
SELECT ( 57 ) AS col1 FROM tab2
----
57
57
57

query I rowsort
SELECT col2 * - ( 19 ) + col1 FROM tab2 AS cor0
----
-435
-482
-705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - ( + col2 ) * col1 + + 55 * col0 col0 FROM tab1 AS cor0
----
124208
36010
75981

onlyif mysql # use DIV operator for integer division
query I rowsort label-2121
SELECT - col2 DIV - 40 col0 FROM tab0 cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2121
SELECT - col2 / - 40 col0 FROM tab0 cor0
----
0
0
2

query I rowsort
SELECT ALL 46 + col1 FROM tab2
----
105
63
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-2123
SELECT + col0 * col1 DIV - tab0.col0 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2123
SELECT + col0 * col1 / - tab0.col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT col1 * - 74 AS col2 FROM tab0 AS cor0
----
-6364
-6734
-7178

query I rowsort
SELECT DISTINCT + ( - col2 ) * - col1 * col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT - - col2 * 40 FROM tab0 AS cor0
----
1320
3280
40

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2, tab0 AS cor2, tab0
----
13122 values hashing to e592a3c48df94534a393bebf9e338e41

onlyif mysql # use DIV operator for integer division
query I rowsort label-2128
SELECT - cor1.col1 + - cor1.col0 DIV 15 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4546729792d4873ad46deff851d475e0

skipif mysql # not compatible
query I rowsort label-2128
SELECT - cor1.col1 + - cor1.col0 / 15 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4546729792d4873ad46deff851d475e0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 + col0 + tab0.col2 col2 FROM tab0
----
260
71
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2130
SELECT ALL col2 + tab1.col0 * col2 DIV - 78 FROM tab1
----
-2
11
52

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL col2 + tab1.col0 * col2 / - 78 FROM tab1
----
-2
11
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - tab2.col2 col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT + - ( + 16 ) FROM tab0, tab1 AS cor0
----
-16

query I rowsort
SELECT ( + cor0.col2 ) + + col1 FROM tab1 cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + col0 + 24 + col1 FROM tab2 AS cor0
----
120
161
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * ( col0 ) * col0 + col0 col0 FROM tab2 AS cor0
----
106176
1526
359034

query I rowsort
SELECT ALL + col0 * ( + 51 ) FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT ALL - col0 + + col0 + + col0 AS col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2139
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) * - col0 + cor0.col0 * col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) * - col0 + cor0.col0 * col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - cor0.col1 - col2 AS col2 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2141
SELECT ALL + + col0 * col0 + col1 DIV col0 FROM tab2 AS cor0
----
53
6084
6241

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL + + col0 * col0 + col1 / col0 FROM tab2 AS cor0
----
53
6084
6241

query I rowsort
SELECT DISTINCT + col2 + + col1 + + col2 AS col0 FROM tab1 AS cor0
----
124
134
205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 * - tab2.col2 * - 35 + ( - col1 ) * col1 - col0 col0 FROM tab2
----
-105438
-74539
-7583

query I rowsort
SELECT ALL + tab1.col2 + - col1 * ( + 71 ) * col2 + - col0 FROM tab1
----
-40477
-88592
-99633

query I rowsort
SELECT - 97 * col2 + col0 AS col1 FROM tab2
----
-2444
-2612
-3607

onlyif mysql # use DIV operator for integer division
query I rowsort label-2146
SELECT ALL col1 DIV tab1.col0 + col1 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL col1 / tab1.col0 + col1 FROM tab1
----
10
13
34

query I rowsort
SELECT + 24 * + col2 FROM tab0
----
1968
24
792

query I rowsort
SELECT DISTINCT tab0.col2 + - col0 - 69 FROM tab0
----
-103
-60
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2149
SELECT DISTINCT + 37 DIV col1 - + col1 * + col2 AS col2 FROM tab1
----
-1246
-1403
-567

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT + 37 / col1 - + col1 * + col2 AS col2 FROM tab1
----
-1246
-1403
-567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 29 col2 FROM tab0 AS cor0
----
-1015
-2581
-696

query I rowsort
SELECT ALL + 56 + + col0 + col1 AS col0 FROM tab0 cor0
----
166
188
236

onlyif mysql # use DIV operator for integer division
query I rowsort label-2152
SELECT + + ( 98 ) DIV col0 AS col0 FROM tab0 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-2152
SELECT + + ( 98 ) / col0 AS col0 FROM tab0 AS cor0
----
1
2
4

query I rowsort
SELECT - - col1 * + ( col0 * col2 ) FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - 54 * col2 FROM tab1 AS cor0
----
-2916
-3078
-5184

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2155
SELECT - CAST( col0 AS SIGNED ) * - col1 col1 FROM tab1 cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2155
SELECT - CAST ( col0 AS INTEGER ) * - col1 col1 FROM tab1 cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + col1 * ( + col2 ) + - 90 * col0 + col1 FROM tab1 AS cor0
----
-5180
-5939
1160

query I rowsort
SELECT ALL - + cor0.col2 + + col1 * + cor0.col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab2, tab1 AS cor0
----
76

query I rowsort
SELECT + 84 * cor0.col2 FROM tab1 AS cor0
----
4536
4788
8064

onlyif mysql # use DIV operator for integer division
query I rowsort label-2161
SELECT col1 + + col1 DIV + tab2.col1 col2 FROM tab2
----
18
32
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2161
SELECT col1 + + col1 / + tab2.col1 col2 FROM tab2
----
18
32
60

query I rowsort
SELECT DISTINCT + ( - col1 ) * - col1 + cor0.col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT + + ( + col2 ) + cor0.col0 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT 27 * + col1 AS col0 FROM tab2 AS cor0
----
1593
459
837

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) - - col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL - + 97 AS col2 FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT ALL - col1 + - col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL - + col2 * + col1 + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 - - cor0.col0 * - col0 col2 FROM tab0 AS cor0
----
-1190
-552
-7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + cor0.col2 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL 16 + - col2 FROM tab0 AS cor0
----
-17
-66
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-2172
SELECT DISTINCT col2 + - col0 * col0 DIV col1 FROM tab1
----
-352
-396
54

skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT col2 + - col0 * col0 / col1 FROM tab1
----
-352
-396
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2173
SELECT + col0 + - CAST( - cor0.col2 AS SIGNED ) + col0 * - col0 FROM tab2 AS cor0
----
-15
-5980
-6124

skipif mysql # not compatible
query I rowsort label-2173
SELECT + col0 + - CAST ( - cor0.col2 AS INTEGER ) + col0 * - col0 FROM tab2 AS cor0
----
-15
-5980
-6124

query I rowsort
SELECT DISTINCT - col1 * 1 * - 96 AS col2 FROM tab0 AS cor0
----
8256
8736
9312

query I rowsort
SELECT DISTINCT + + col2 + - 45 FROM tab2 AS cor0
----
-18
-19
-7

query I rowsort
SELECT DISTINCT + - col0 + + ( cor0.col2 ) * cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
22592
24469
39806

query I rowsort
SELECT - col0 + col0 * - col2 + col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + ( - cor0.col0 * col2 + + cor0.col2 ) col2 FROM tab0 AS cor0
----
3298
65274
656656

query I rowsort
SELECT DISTINCT - col1 * - 65 + + col0 * col0 AS col0 FROM tab0 AS cor0
----
13836
6166
7530

query I rowsort
SELECT ALL 2 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-11
-24
-8

query I rowsort
SELECT - 77 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT ALL - 12 FROM tab2, tab0 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT ALL - 38 - + col0 AS col0 FROM tab0 cor0
----
-127
-62
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2184
SELECT ALL - CAST( ( - col0 ) AS SIGNED ) FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL - CAST ( ( - col0 ) AS INTEGER ) FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2186
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 * col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 * col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col0 AS REAL ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2188
SELECT CAST( NULL AS SIGNED ) + ( col0 ) + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2188
SELECT CAST ( NULL AS INTEGER ) + ( col0 ) + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + col0 * ( 11 ) AS col2 FROM tab2 AS cor0
----
77
858
869

query I rowsort
SELECT - col2 + 29 AS col2 FROM tab2 AS cor0
----
-9
2
3

query I rowsort
SELECT DISTINCT + col0 * col0 * col1 AS col2 FROM tab1
----
234
40960
83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2193
SELECT + col2 * CAST( + cor0.col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-2193
SELECT + col2 * CAST ( + cor0.col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2194
SELECT + cor0.col1 + - ( col2 ) DIV + cor0.col1 FROM tab1 AS cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-2194
SELECT + cor0.col1 + - ( col2 ) / + cor0.col1 FROM tab1 AS cor0
----
24
5
6

query I rowsort
SELECT + 63 * 29 FROM tab0 AS cor0
----
1827
1827
1827

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to 6726a15019c52908f1f1d0df0cd4c1b8

query I rowsort
SELECT + - 24 + - col0 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
1016
54
616

query I rowsort
SELECT + 60 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # use DIV operator for integer division
query I rowsort label-2199
SELECT + 74 + col1 * col0 + col1 DIV - 72 FROM tab0
----
2137
3468
8172

skipif mysql # not compatible
query I rowsort label-2199
SELECT + 74 + col1 * col0 + col1 / - 72 FROM tab0
----
2137
3468
8172

query I rowsort
SELECT DISTINCT - col0 + col2 * + tab1.col1 AS col0 FROM tab1
----
1168
1401
506

query I rowsort
SELECT ALL + - 46 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9

query I rowsort
SELECT 41 * col1 FROM tab2
----
1271
2419
697

query I rowsort
SELECT DISTINCT col2 * + col1 * - ( - ( - col1 ) ) FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT - 74 * col0 FROM tab0
----
-1776
-2590
-6586

query I rowsort
SELECT ALL 19 * + col0 + col1 FROM tab1 AS cor0
----
1226
1533
83

query I rowsort
SELECT ALL + 90 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

onlyif mysql # use DIV operator for integer division
query I rowsort label-2207
SELECT ALL - col0 * cor0.col2 - + 78 DIV + col2 FROM tab0 cor0
----
-113
-7298
-794

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL - col0 * cor0.col2 - + 78 / + col2 FROM tab0 cor0
----
-113
-7298
-794

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2208
SELECT DISTINCT - - col0 + + CAST( 21 AS SIGNED ) FROM tab0 AS cor0
----
110
45
56

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT - - col0 + + CAST ( 21 AS INTEGER ) FROM tab0 AS cor0
----
110
45
56

query I rowsort
SELECT DISTINCT - col2 + - col1 * col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-2210
SELECT cor0.col0 DIV + 3 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ee130d2504170a7fb58638ba02ca053d

skipif mysql # not compatible
query I rowsort label-2210
SELECT cor0.col0 / + 3 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ee130d2504170a7fb58638ba02ca053d

query I rowsort
SELECT DISTINCT 51 * 80 AS col1 FROM tab1, tab0 AS cor0
----
4080

query I rowsort
SELECT + col2 * col0 + col1 * col1 AS col2 FROM tab2
----
1150
3291
5509

query I rowsort
SELECT ALL + col0 + + 55 + - col2 AS col1 FROM tab1
----
39
4
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 - col0 col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT 91 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT - + col1 * - 4 + - col0 FROM tab0 AS cor0
----
275
320
353

query I rowsort
SELECT ALL - col1 - 22 FROM tab2 AS cor0
----
-39
-53
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + 71 col1 FROM tab1 AS cor0
----
45
58
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-2219
SELECT col0 * col2 DIV + col1 + col1 FROM tab0 AS cor0
----
171
95
97

skipif mysql # not compatible
query I rowsort label-2219
SELECT col0 * col2 / + col1 + col1 FROM tab0 AS cor0
----
171
95
97

query I rowsort
SELECT DISTINCT ( tab0.col1 + tab0.col0 ) AS col1 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-2221
SELECT + ( col0 ) DIV col2 - col2 DIV - tab0.col1 AS col1 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2221
SELECT + ( col0 ) / col2 - col2 / - tab0.col1 AS col1 FROM tab0
----
0
1
35

query I rowsort
SELECT ( + col2 ) + col0 + 21 AS col0 FROM tab2
----
125
138
55

query I rowsort
SELECT - 24 + + col0 + + col2 AS col0 FROM tab0
----
12
147
33

query I rowsort
SELECT DISTINCT - ( 25 + col1 ) AS col0 FROM tab0
----
-111
-116
-122

query I rowsort
SELECT + cor0.col1 + 34 FROM tab0 AS cor0
----
120
125
131

query I rowsort
SELECT DISTINCT - col0 * - tab1.col0 - + col2 AS col1 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT col0 + col0 * + 64 FROM tab2 cor0
----
455
5070
5135

query I rowsort
SELECT + 91 * + col1 + 16 FROM tab2 cor0
----
1563
2837
5385

query I rowsort
SELECT + 16 + col2 * + ( col1 ) AS col0 FROM tab2 cor0
----
1550
662
853

onlyif mysql # use DIV operator for integer division
query I rowsort label-2230
SELECT DISTINCT col2 DIV col1 - + 96 * 2 * + col2 AS col1 FROM tab0 cor0
----
-15744
-192
-6336

skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT col2 / col1 - + 96 * 2 * + col2 AS col1 FROM tab0 cor0
----
-15744
-192
-6336

query I rowsort
SELECT - col1 - + col0 * - 21 FROM tab1 cor0
----
1334
1667
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2232
SELECT ALL + col0 + col1 * + CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL + col0 + col1 * + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - 32 * - col1 FROM tab1 AS cor0
----
320
416
832

query I rowsort
SELECT - cor0.col0 + cor0.col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT ALL col0 + col1 * + 94 * - col0 AS col0 FROM tab2 AS cor0
----
-126163
-20391
-432510

query I rowsort
SELECT DISTINCT + ( - col2 ) * col1 * - 10 FROM tab0
----
28380
74620
970

query I rowsort
SELECT 51 * tab2.col2 + + col1 FROM tab2
----
1385
1408
1955

query I rowsort
SELECT ( - 59 ) + + col2 AS col1 FROM tab2
----
-21
-32
-33

query I rowsort
SELECT - ( + 58 ) * col0 + - col0 FROM tab2
----
-413
-4602
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 43 * cor0.col2 col0 FROM tab0 AS cor0
----
1443
3615
78

query I rowsort
SELECT DISTINCT + - col1 * - 26 * col2 AS col1 FROM tab1 cor0
----
14820
32448
36504

query I rowsort
SELECT + - 81 * - col1 FROM tab2 AS cor0
----
1377
2511
4779

query I rowsort
SELECT DISTINCT + - 91 FROM tab0 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + 33 * col0 FROM tab2 AS cor0
----
231
2574
2607

query I rowsort
SELECT - ( + col2 ) - + col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2246
SELECT DISTINCT - col2 DIV - col1 - 54 AS col2 FROM tab2 AS cor0
----
-52
-54

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT - col2 / - col1 - 54 AS col2 FROM tab2 AS cor0
----
-52
-54

query I rowsort
SELECT DISTINCT - ( - col1 ) + + ( 66 ) FROM tab0 AS cor0
----
152
157
163

query I rowsort
SELECT ALL + + col1 + - col1 * - col1 AS col2 FROM tab1 cor0
----
110
182
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2249
SELECT ALL CAST( NULL AS SIGNED ) * 3 * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL CAST ( NULL AS INTEGER ) * 3 * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * 28 FROM tab2
----
196
2184
2212

query I rowsort
SELECT + col0 + + cor0.col1 * col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - + col1 * + 82 + - col2 AS col0 FROM tab2 cor0
----
-1432
-2569
-4864

query I rowsort
SELECT - col1 * + cor0.col1 + - col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT DISTINCT + - col2 * + ( - col1 ) FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL + col0 * - col0 + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT - cor0.col0 + col2 * col2 FROM tab1 cor0
----
2913
3185
9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-2257
SELECT ALL col1 DIV - col2 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1128
574
7920

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL col1 / - col2 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1128
574
7920

query I rowsort
SELECT ALL - + col1 * - ( - col1 ) AS col0 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2259
SELECT ALL col1 DIV + col1 + + col1 AS col0 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL col1 / + col1 + + col1 AS col0 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT DISTINCT + - cor0.col1 + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT - ( cor0.col0 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) + col1 * col1 col1 FROM tab2 AS cor0
----
327
3507
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2263
SELECT DISTINCT col0 + ( 84 * + col1 ) + + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT col0 + ( 84 * + col1 ) + + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - col2 * - col0 + + col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL - col0 * - 45 + col1 FROM tab1 cor0
----
161
2890
3613

query I rowsort
SELECT DISTINCT + 74 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1924
740
962

query I rowsort
SELECT + - 25 + + col1 AS col2 FROM tab0 cor0
----
61
66
72

query I rowsort
SELECT ALL - ( 1 ) * col1 * - col1 + - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1155
232
2805

query I rowsort
SELECT ALL + - 81 * - col2 FROM tab2 AS cor0
----
2106
2187
3078

onlyif mysql # use DIV operator for integer division
query I rowsort label-2270
SELECT - col0 DIV 93 col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2270
SELECT - col0 / 93 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + ( 45 ) * + col0 AS col1 FROM tab0 AS cor0
----
-1080
-1575
-4005

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2272
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / - 69 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / - 69 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + col1 * col2 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-2274
SELECT + - 21 DIV + 28 col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2274
SELECT + - 21 / + 28 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) * col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - + ( - ( col0 ) ) + ( col1 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - 73 FROM tab2, tab0 AS cor0
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col1 FROM tab2, tab1 AS cor0
----
53

query I rowsort
SELECT - col2 * + col1 * + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-3492
-664209
-68198

query I rowsort
SELECT + 84 * + col2 AS col2 FROM tab1 AS cor0
----
4536
4788
8064

onlyif mysql # use DIV operator for integer division
query I rowsort label-2281
SELECT DISTINCT 57 * - col0 DIV - col0 col2 FROM tab1
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT 57 * - col0 / - col0 col2 FROM tab1
----
57

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 cor2
----
3645 values hashing to 25b043ae64f25e8f205735b09d2d3d6a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2283
SELECT ALL - 67 * - col2 - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL - 67 * - col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + cor0.col0 + + 47 FROM tab1 cor0
----
111
127
50

query I rowsort
SELECT col2 + + 44 FROM tab0 AS cor0
----
126
45
77

query I rowsort
SELECT ALL cor1.col1 + cor0.col0 + 88 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3de610f0f6e602ce9fb8f62d989c5c0f

query I rowsort
SELECT DISTINCT + col2 * 62 * cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
40090
51921
95134

query I rowsort
SELECT col0 * col2 + 34 * + 88 AS col1 FROM tab1
----
10672
3154
6640

query I rowsort
SELECT col2 + - tab0.col2 * + col1 AS col0 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT 27 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to 092918b9163061e291041d594b1a402a

query I rowsort
SELECT ALL cor0.col2 * 43 FROM tab1, tab2 AS cor0
----
9 values hashing to ee721a23e251261c22e7528d8775b679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 + tab1.col0 * + col2 col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - cor0.col2 + - 17 AS col2 FROM tab1 AS cor0
----
-113
-71
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 - col1 col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + + col0 * 3 AS col0 FROM tab1 AS cor0
----
192
240
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2296
SELECT DISTINCT col0 + CAST( col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT col0 + CAST ( col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-2297
SELECT - - col0 + col2 DIV + col0 AS col0 FROM tab2 cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-2297
SELECT - - col0 + col2 / + col0 AS col0 FROM tab2 cor0
----
10
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2298
SELECT ALL cor0.col1 DIV 21 AS col1 FROM tab0 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL cor0.col1 / 21 AS col1 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2299
SELECT DISTINCT - col1 + CAST( - col0 AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT - col1 + CAST ( - col0 AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT col0 * ( col2 ) + col1 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-2301
SELECT - col0 DIV 18 + 18 FROM tab1 cor0
----
14
15
18

skipif mysql # not compatible
query I rowsort label-2301
SELECT - col0 / 18 + 18 FROM tab1 cor0
----
14
15
18

query I rowsort
SELECT DISTINCT col2 + col0 FROM tab0 WHERE col0 + col2 NOT IN ( + col1 )
----
171
36
57

query I rowsort
SELECT DISTINCT col0 * col0 * - col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + + col1 * - col2 * col1 BETWEEN col2 * + tab0.col0 + col2 + - col1 AND NULL
----

query I rowsort
SELECT col2 + col1 + col2 * col1 FROM tab1 cor0
----
1357
1484
637

query I rowsort
SELECT col1 * - col2 + - col0 * - cor0.col1 + col0 * col0 FROM tab2 AS cor0
----
-571
6938
9152

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < col0 * col1 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * - col1 col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN - col1 * col0 AND ( NULL )
----

query I rowsort
SELECT col1 + col2 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-573
-931
2

query I rowsort
SELECT - col2 * + col1 + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-1181
-1427
-516

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + cor0.col2 + - col1 * col1 col1 FROM tab2 AS cor0
----
-232
-2805
1155

query I rowsort
SELECT ALL 24 + col1 FROM tab1
----
34
37
50

query I rowsort
SELECT 77 + col2 * + tab0.col0 + col2 * - col0 AS col1 FROM tab0
----
77
77
77

query I rowsort
SELECT col1 - col1 * - col1 FROM tab1 AS cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 * col1 + + col0 + + col0 col1 FROM tab2
----
-22673
-271362
-6713

query I rowsort
SELECT ALL + 62 * - col0 AS col0 FROM tab2 AS cor0
----
-434
-4836
-4898

query I rowsort
SELECT DISTINCT - + cor0.col2 + - col2 + col1 FROM tab1 AS cor0
----
-104
-179
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2319
SELECT DISTINCT - 97 + - col0 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT - 97 + - col0 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT + col0 * - col2 + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT + ( + col1 ) * - 84 + col0 FROM tab1 AS cor0
----
-1012
-2181
-776

query I rowsort
SELECT + 70 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to c07fb58c935d7dd3a559c80465f90463

onlyif mysql # use DIV operator for integer division
query I rowsort label-2323
SELECT - tab1.col0 * col1 DIV col2 - col0 FROM tab1
----
-4
-75
-90

skipif mysql # not compatible
query I rowsort label-2323
SELECT - tab1.col0 * col1 / col2 - col0 FROM tab1
----
-4
-75
-90

query I rowsort
SELECT DISTINCT 55 + col0 AS col1 FROM tab0 AS cor0
----
144
79
90

query I rowsort
SELECT + col1 * col2 - col0 FROM tab2
----
1456
567
830

query I rowsort
SELECT - col1 * col2 * col1 AS col1 FROM tab2
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2327
SELECT ALL 96 + tab1.col2 DIV - 20 + + col2 * - col2 AS col0 FROM tab1
----
-2822
-3155
-9124

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL 96 + tab1.col2 / - 20 + + col2 * - col2 AS col0 FROM tab1
----
-2822
-3155
-9124

onlyif mysql # use DIV operator for integer division
query I rowsort label-2328
SELECT 41 * col0 + - col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
123
2630
3286

skipif mysql # not compatible
query I rowsort label-2328
SELECT 41 * col0 + - col0 / - col1 AS col1 FROM tab1 AS cor0
----
123
2630
3286

query I rowsort
SELECT ALL + ( tab0.col2 * 56 ) + + ( + col2 ) FROM tab0
----
1881
4674
57

query I rowsort
SELECT - col2 FROM tab0 WHERE NULL > + col2
----

query I rowsort
SELECT ALL col1 * col1 + col1 FROM tab1
----
110
182
702

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 IN ( - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL col0 * + col1 + col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + tab1.col2 - - tab1.col2 AS col2 FROM tab1
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-2335
SELECT ALL + col1 + + col0 DIV col0 AS col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL + col1 + + col0 / col0 AS col1 FROM tab1
----
11
14
27

query I rowsort
SELECT DISTINCT col2 * col1 + col1 AS col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT - col2 + - col0 * + col1 AS col2 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT ALL tab2.col1 * col2 + - col0 * col1 AS col1 FROM tab2
----
-3068
-697
620

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2340
SELECT DISTINCT col1 DIV tab0.col1 col1 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT col1 / tab0.col1 col1 FROM tab0
----
1

query I rowsort
SELECT ALL + col1 - + col2 FROM tab2 WHERE - tab2.col1 - col1 * + col0 >= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2342
SELECT col0 * col0 DIV - col1 + tab0.col0 FROM tab0
----
18
2
23

skipif mysql # not compatible
query I rowsort label-2342
SELECT col0 * col0 / - col1 + tab0.col0 FROM tab0
----
18
2
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-2343
SELECT DISTINCT col2 DIV col1 + + tab1.col1 FROM tab1
----
15
20
28

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT col2 / col1 + + tab1.col1 FROM tab1
----
15
20
28

query I rowsort
SELECT DISTINCT - col2 * + col0 * col1 + + col1 FROM tab2
----
-119593
-51017
-5828

query I rowsort
SELECT tab0.col2 * + tab0.col1 * col1 + - col2 + + col2 FROM tab0
----
244068
679042
9409

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( + tab2.col0 * tab2.col2 )
----

query I rowsort
SELECT col2 * + 83 AS col1 FROM tab2 AS cor0
----
2158
2241
3154

query I rowsort
SELECT ALL - + col2 + + 67 - - 80 AS col0 FROM tab0 AS cor0
----
114
146
65

query I rowsort
SELECT ALL + col1 * - 8 - col0 AS col1 FROM tab0 AS cor0
----
-712
-811
-817

query I rowsort
SELECT + 72 - col2 AS col0 FROM tab0
----
-10
39
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2351
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2352
SELECT DISTINCT - + col1 + + col1 DIV col2 + col2 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT - + col1 + + col1 / col2 + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - col0 * + col0 + col1 AS col0 FROM tab2 cor0
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT + ( + col2 * col0 ) + 78 AS col1 FROM tab0
----
113
7376
870

onlyif mysql # use DIV operator for integer division
query I rowsort label-2355
SELECT 86 DIV + 7 FROM tab0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-2355
SELECT 86 / + 7 FROM tab0
----
12
12
12

query I rowsort
SELECT - ( - col0 ) - col0 * col1 * + 61 AS col1 FROM tab0
----
-125880
-207060
-493950

onlyif mysql # use DIV operator for integer division
query I rowsort label-2357
SELECT ( col2 ) + + col1 DIV + col1 + 25 * + col1 col2 FROM tab2
----
1502
464
803

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2357
SELECT ( col2 ) + + col1 / + col1 + 25 * + col1 col2 FROM tab2
----
1502
464
803

query I rowsort
SELECT - cor0.col0 * 83 FROM tab1 AS cor0
----
-249
-5312
-6640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2359
SELECT + + CAST( NULL AS SIGNED ) * col1 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2359
SELECT + + CAST ( NULL AS INTEGER ) * col1 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2360
SELECT ALL + CAST( NULL AS DECIMAL ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL + CAST ( NULL AS REAL ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 91 FROM tab1, tab2, tab2 AS cor0
----
91

query I rowsort
SELECT ALL + 37 + col1 FROM tab1
----
47
50
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2363
SELECT ALL 12 + + col2 * + col2 DIV - col2 FROM tab0
----
-21
-70
11

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL 12 + + col2 * + col2 / - col2 FROM tab0
----
-21
-70
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 * col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT 55 * col1 FROM tab1 cor0
----
1430
550
715

query I rowsort
SELECT ALL + ( - col1 ) * col2 * 10 + col0 * col0 FROM tab2 cor0
----
-219
-8321
-9256

query I rowsort
SELECT cor0.col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - 51 + col1 * - cor0.col0 FROM tab0 AS cor0
----
-2115
-3446
-8150

query I rowsort
SELECT DISTINCT - 41 + + col2 * - 51 FROM tab1 AS cor0
----
-2795
-2948
-4937

query I rowsort
SELECT DISTINCT - cor0.col2 + col0 + col1 AS col0 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT ALL - col2 * - col1 - col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT + 45 * - col0 FROM tab0 AS cor0
----
-1080
-1575
-4005

onlyif mysql # use DIV operator for integer division
query I rowsort label-2373
SELECT DISTINCT col2 DIV col0 + col2 FROM tab2 cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT col2 / col0 + col2 FROM tab2 cor0
----
26
30
38

query I rowsort
SELECT DISTINCT - col0 * col1 + + ( - cor0.col1 ) * col0 * cor0.col1 FROM tab1 AS cor0
----
-14560
-2106
-7040

query I rowsort
SELECT - cor0.col2 * + col0 + 36 FROM tab0 AS cor0
----
-7262
-756
1

query I rowsort
SELECT ALL cor0.col2 * + col2 + - col0 * col2 + col1 FROM tab1 AS cor0
----
-389
1549
2780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - col2 * - ( + col1 ) col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - tab2.col1 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT - 90 * + col1 + + 34 FROM tab2 AS cor0
----
-1496
-2756
-5276

query I rowsort
SELECT - + col0 * - 62 + 32 AS col1 FROM tab0 AS cor0
----
1520
2202
5550

query I rowsort
SELECT ALL - col2 * - 36 AS col2 FROM tab1 cor0
----
1944
2052
3456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 82 col1 FROM tab0 AS cor0
----
-15
-4
-9

query I rowsort
SELECT ALL - col2 + - col0 * + 55 + 69 FROM tab2
----
-343
-4247
-4314

query I rowsort
SELECT - col0 * - col1 + 29 FROM tab0 AS cor0
----
2093
3424
8128

query I rowsort
SELECT ALL + + 10 * col1 FROM tab1 AS cor0
----
100
130
260

query I rowsort
SELECT DISTINCT ( - 84 ) * col1 FROM tab2 AS cor0
----
-1428
-2604
-4956

query I rowsort
SELECT - + col2 * - col2 + col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT 26 AS col2 FROM tab2 AS cor0
----
26

query I rowsort
SELECT ALL ( - col1 ) + col1 * ( - cor0.col0 ) FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT - - 31 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1829
527
961

query I rowsort
SELECT col1 + ( 14 ) FROM tab1
----
24
27
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-2392
SELECT - - ( col1 ) DIV + col1 col2 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2392
SELECT - - ( col1 ) / + col1 col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - col0 + + cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL + ( col1 ) + + col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + 26 * 85 * - col0 AS col0 FROM tab0 AS cor0
----
-196690
-53040
-77350

query I rowsort
SELECT col0 - - col2 FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2397
SELECT ( col0 ) DIV col1 AS col1 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2397
SELECT ( col0 ) / col1 AS col1 FROM tab2
----
0
1
4

query I rowsort
SELECT + + cor0.col1 * cor0.col2 + col2 + + col0 FROM tab2 AS cor0
----
1638
763
871

query I rowsort
SELECT - + col1 * + col1 + - col0 AS col2 FROM tab0 AS cor0
----
-7420
-8370
-9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2400
SELECT DISTINCT 86 + + col0 + col2 * - CAST( 78 AS SIGNED ) AS col2 FROM tab0
----
-2464
-6221
43

skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT 86 + + col0 + col2 * - CAST ( 78 AS INTEGER ) AS col2 FROM tab0
----
-2464
-6221
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-2401
SELECT + CAST( - col1 AS SIGNED ) DIV + col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2401
SELECT + CAST ( - col1 AS INTEGER ) / + col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT + col2 + 87 FROM tab2 AS cor0
----
113
114
125

onlyif mysql # use DIV operator for integer division
query I rowsort label-2403
SELECT DISTINCT - 50 DIV - 64 + col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT - 50 / - 64 + col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - - col2 + + ( cor0.col2 ) * col0 AS col1 FROM tab2 cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col2 FROM tab1, tab2 AS cor0
----
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2406
SELECT + tab0.col0 DIV 80 FROM tab0, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-2406
SELECT + tab0.col0 / 80 FROM tab0, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT + col2 * - 6 FROM tab2
----
-156
-162
-228

query I rowsort
SELECT DISTINCT 22 * tab2.col0 + col0 + - 38 FROM tab2
----
123
1756
1779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 + - tab2.col1 col0 FROM tab2
----
30
58
72

query I rowsort
SELECT - - col1 * 85 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
1118
2236
860

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2411
SELECT + CAST( NULL AS SIGNED ) * + col1 + col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2411
SELECT + CAST ( NULL AS INTEGER ) * + col1 + col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * 30 + col0 FROM tab2 AS cor0
----
-1692
-431
-923

query I rowsort
SELECT + 89 AS col1 FROM tab0 cor0
----
89
89
89

query I rowsort
SELECT ALL - col1 - + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT - 68 * + col0 FROM tab1 AS cor0
----
-204
-4352
-5440

query I rowsort
SELECT DISTINCT - - col1 + cor0.col1 * - ( cor0.col2 ) + + col1 AS col0 FROM tab0 cor0
----
-2666
-7280
97

query I rowsort
SELECT + col2 * 94 FROM tab1
----
5076
5358
9024

query I rowsort
SELECT - col0 * col0 + + 95 FROM tab1 cor0
----
-4001
-6305
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2419
SELECT ALL - - col2 * - CAST( col2 AS SIGNED ) * - cor0.col1 FROM tab1 cor0
----
119808
32490
75816

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL - - col2 * - CAST ( col2 AS INTEGER ) * - cor0.col1 FROM tab1 cor0
----
119808
32490
75816

query I rowsort
SELECT - + col1 * - cor0.col1 AS col2 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - - col2 * + col1 + + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + - cor0.col1 * + cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + - col1 * - 37 FROM tab0 AS cor0
----
3182
3367
3589

query I rowsort
SELECT - - col0 * + col2 * col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT ALL cor0.col1 + 58 AS col2 FROM tab2 AS cor0
----
117
75
89

query I rowsort
SELECT ALL + - col2 + 41 AS col0 FROM tab2 cor0
----
14
15
3

query I rowsort
SELECT ALL - cor0.col1 + 24 * + cor0.col2 FROM tab2 AS cor0
----
565
617
895

query I rowsort
SELECT DISTINCT - + 2 + cor0.col2 AS col1 FROM tab0 cor0
----
-1
31
80

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col0 AS REAL ) * col2 + + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL - col0 - + 81 FROM tab1 AS cor0
----
-145
-161
-84

query I rowsort
SELECT DISTINCT - 86 * - 93 * + col0 + + col2 AS col0 FROM tab0 AS cor0
----
191985
279931
711904

onlyif mysql # use DIV operator for integer division
query I rowsort label-2432
SELECT col1 DIV - tab0.col1 + col0 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-2432
SELECT col1 / - tab0.col1 + col0 FROM tab0
----
23
34
88

query I rowsort
SELECT ALL - col0 + + ( + col2 ) * col0 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2434
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 19 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 19 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 * 73 AS col2 FROM tab0
----
1752
2555
6497

onlyif mysql # use DIV operator for integer division
query I rowsort label-2436
SELECT col2 DIV 44 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2436
SELECT col2 / 44 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT + 89 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col2 + - ( - 71 ) col0 FROM tab2 AS cor0
----
-1463
-575
-766

onlyif mysql # use DIV operator for integer division
query I rowsort label-2439
SELECT - col1 DIV col1 + col1 * - col2 FROM tab1 AS cor0
----
-1249
-1405
-571

skipif mysql # not compatible
query I rowsort label-2439
SELECT - col1 / col1 + col1 * - col2 FROM tab1 AS cor0
----
-1249
-1405
-571

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 45 + col0 col1 FROM tab2 AS cor0
----
123
124
52

query I rowsort
SELECT ALL - cor1.col1 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

query I rowsort
SELECT ALL - col2 * cor0.col2 * col2 FROM tab2 AS cor0
----
-17576
-19683
-54872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col1 FROM tab2
----
32
32
32

query I rowsort
SELECT ALL + tab2.col1 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL tab0.col0 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL + 0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ALL col1 * col2 * 45 AS col2 FROM tab2
----
29070
37665
69030

query I rowsort
SELECT 1 + - col1 FROM tab1
----
-12
-25
-9

query I rowsort
SELECT col1 * - col0 + - tab2.col0 FROM tab2
----
-1422
-224
-4680

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT 78 + - col0 FROM tab1
----
-2
14
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2452
SELECT - col0 + cor0.col0 * col2 DIV col1 + col2 AS col1 FROM tab1 cor0
----
357
57
606

skipif mysql # not compatible
query I rowsort label-2452
SELECT - col0 + cor0.col0 * col2 / col1 + col2 AS col1 FROM tab1 cor0
----
357
57
606

query I rowsort
SELECT DISTINCT col1 * + ( col2 * cor0.col0 ) FROM tab2 AS cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col0 + - col1 col2 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT cor0.col2 * cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c

query I rowsort
SELECT ALL + - ( col1 ) * cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL 70 + 40 AS col1 FROM tab1, tab0 AS cor0, tab0 cor1, tab0 AS cor2
----
81 values hashing to 0f0ed7e19e5181c3af836c1cbf273597

onlyif mysql # use DIV operator for integer division
query I rowsort label-2458
SELECT ALL + col2 DIV + col0 + - col0 + col2 FROM tab1 AS cor0
----
-7
17
69

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL + col2 / + col0 + - col0 + col2 FROM tab1 AS cor0
----
-7
17
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-2459
SELECT DISTINCT ( + cor0.col0 ) DIV - 24 AS col1 FROM tab0, tab0 cor0
----
-1
-3

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT ( + cor0.col0 ) / - 24 AS col1 FROM tab0, tab0 cor0
----
-1
-3

query I rowsort
SELECT ALL 52 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT ALL tab1.col1 + - tab1.col2 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT + ( col2 ) * + cor0.col2 AS col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT + ( 23 + + col1 ) AS col2 FROM tab0
----
109
114
120

query I rowsort
SELECT col1 + - 49 FROM tab1
----
-23
-36
-39

query I rowsort
SELECT ALL col1 + col0 * col0 AS col2 FROM tab2
----
6143
6258
80

query I rowsort
SELECT col2 - - col1 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL + col0 + col0 * - col1 AS col1 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + col1 * 46 - - col0 FROM tab2 AS cor0
----
1433
2792
861

query I rowsort
SELECT + col2 * col0 * + col0 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2470
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) * + ( - cor0.col2 ) + col1 * col2 * col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) * + ( - cor0.col2 ) + col1 * col2 * col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 + col2 * col1 + + col0 FROM tab1 AS cor0
----
1424
1461
691

query I rowsort
SELECT col1 - - col2 * + 43 AS col0 FROM tab1
----
2348
2461
4141

query I rowsort
SELECT + 28 * col1 + + col1 AS col0 FROM tab0
----
2494
2639
2813

query I rowsort
SELECT - col2 * col0 * + ( col1 ) + - tab1.col2 * tab1.col2 FROM tab1
----
-109056
-39729
-7128

query I rowsort
SELECT ALL - col1 * - ( - col0 ) + - col1 + col0 FROM tab2 AS cor0
----
-1281
-241
-4583

query I rowsort
SELECT DISTINCT + cor0.col1 - 78 AS col0 FROM tab2 cor0
----
-19
-47
-61

query I rowsort
SELECT - col2 - ( - 62 ) * - col0 FROM tab0 AS cor0
----
-1521
-2171
-5600

onlyif mysql # use DIV operator for integer division
query I rowsort label-2478
SELECT ALL + col2 * col2 DIV - col0 + col1 FROM tab2 AS cor0
----
-1
-73
51

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL + col2 * col2 / - col0 + col1 FROM tab2 AS cor0
----
-1
-73
51

query I rowsort
SELECT ALL + + col2 * col1 + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + col0 + - ( 28 ) FROM tab2 AS cor0
----
-21
50
51

query I rowsort
SELECT + col2 + + 69 AS col0 FROM tab0 AS cor0
----
102
151
70

query I rowsort
SELECT ALL - col2 * - col0 + 30 * + col1 FROM tab2 AS cor0
----
1119
3512
3798

query I rowsort
SELECT col1 * col0 + - 29 * col1 FROM tab1 cor0
----
-676
350
663

query I rowsort
SELECT ALL + + col2 + - ( + col1 ) + + col2 AS col2 FROM tab1 AS cor0
----
104
179
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2485
SELECT + col1 DIV - 17 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2485
SELECT + col1 / - 17 AS col1 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col2 FROM tab0, tab0 AS cor0
----
10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2487
SELECT ALL + tab1.col1 * CAST( col1 * col0 + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + tab1.col1 * CAST ( col1 * col0 + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col0 ) + cor0.col1 FROM tab1 cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2489
SELECT DISTINCT - 35 + 90 DIV - col1 FROM tab1 AS cor0
----
-38
-41
-44

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT - 35 + 90 / - col1 FROM tab1 AS cor0
----
-38
-41
-44

query I rowsort
SELECT + cor0.col2 - cor0.col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2491
SELECT ALL col1 DIV col2 + col1 DIV + col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL col1 / col2 + col1 / + col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT DISTINCT col2 * + ( + col2 ) + cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
1499
761
787

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col1 * + col1 col2 FROM tab0 AS cor0
----
-7372
-8192
-9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-2494
SELECT + ( col2 ) - - col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2494
SELECT + ( col2 ) - - col1 / - col2 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - 43 + col2 * col0 FROM tab2 AS cor0
----
146
1985
2959

query I rowsort
SELECT + col2 + - 83 * col2 FROM tab1 cor0
----
-4428
-4674
-7872

query I rowsort
SELECT - cor0.col0 - - cor0.col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL 90 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-630
-7020
-7110

onlyif mysql # use DIV operator for integer division
query I rowsort label-2499
SELECT - col1 + col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
-16
-19
-26

skipif mysql # not compatible
query I rowsort label-2499
SELECT - col1 + col0 / - col1 AS col2 FROM tab1 AS cor0
----
-16
-19
-26

query I rowsort
SELECT DISTINCT col0 + - col0 * cor0.col2 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-2501
SELECT DISTINCT - col0 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT - col0 / cor0.col0 AS col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL + 8 + + col0 FROM tab2 cor0
----
15
86
87

query I rowsort
SELECT DISTINCT + + col2 + - cor0.col0 * + col1 AS col2 FROM tab1 AS cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 19 + col1 * ( - col2 ) * col0 col0 FROM tab2 AS cor0
----
-119633
-51015
-5840

query I rowsort
SELECT - 85 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-21
-5
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 * ( - 5 ) col2 FROM tab0 AS cor0
----
-198
-492
-6

query I rowsort
SELECT 62 * - cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to b0d929bc33239b4eb782aa704e06f6b7

query I rowsort
SELECT + cor2.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

onlyif mysql # use DIV operator for integer division
query I rowsort label-2509
SELECT col2 DIV tab0.col2 + ( 43 + - col2 ) FROM tab0
----
-38
11
43

skipif mysql # not compatible
query I rowsort label-2509
SELECT col2 / tab0.col2 + ( 43 + - col2 ) FROM tab0
----
-38
11
43

query I rowsort
SELECT + - 52 * cor0.col2 + - 72 * + col2 AS col1 FROM tab1 AS cor0
----
-11904
-6696
-7068

onlyif mysql # use DIV operator for integer division
query I rowsort label-2511
SELECT - - col1 * + cor0.col1 * col1 - - col0 DIV col0 FROM tab1 AS cor0
----
1001
17577
2198

skipif mysql # not compatible
query I rowsort label-2511
SELECT - - col1 * + cor0.col1 * col1 - - col0 / col0 FROM tab1 AS cor0
----
1001
17577
2198

query I rowsort
SELECT - cor0.col0 * + col0 * 52 FROM tab0 AS cor0
----
-29952
-411892
-63700

query I rowsort
SELECT DISTINCT - + ( 93 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-93

query I rowsort
SELECT ALL + - col0 + - col1 * - 72 FROM tab1 AS cor0
----
1869
656
856

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 col1 * - col0 - + 44 AS col0 FROM tab0 AS cor0
----
-2108
-3439
-8143

query I rowsort
SELECT DISTINCT - 23 + + cor0.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 cor2
----
-16
55
56

query I rowsort
SELECT - 31 + - col2 AS col0 FROM tab2 AS cor0
----
-57
-58
-69

query I rowsort
SELECT - ( - 23 ) * col1 - col2 AS col2 FROM tab2
----
1331
353
686

query I rowsort
SELECT ALL ( - 20 ) AS col2 FROM tab0
----
-20
-20
-20

query I rowsort
SELECT ALL tab2.col0 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT + cor0.col1 + + 37 FROM tab2 AS cor0
----
54
68
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2523
SELECT + - col2 + col2 + + cor0.col0 DIV ( - 50 + col1 ) col1 FROM tab0 AS cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2523
SELECT + - col2 + col2 + + cor0.col0 / ( - 50 + col1 ) col1 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT - - cor0.col0 + + 8 FROM tab2 AS cor0
----
15
86
87

query I rowsort
SELECT + - 16 AS col0 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL - - col2 * col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - tab1.col2 + + col0 AS col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL cor0.col0 * col0 + - 14 FROM tab0 cor0
----
1211
562
7907

query I rowsort
SELECT + - 87 * + cor0.col0 FROM tab2 AS cor0
----
-609
-6786
-6873

query I rowsort
SELECT DISTINCT + cor1.col1 - 49 * + cor0.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
9 values hashing to a6c1cd18f1cb226163045e88bb33a002

query I rowsort
SELECT + - 89 * - col1 FROM tab0 AS cor0
----
7654
8099
8633

query I rowsort
SELECT col1 * col1 + col0 * cor0.col0 + - ( col2 ) * + col2 AS col2 FROM tab2 AS cor0
----
281
5086
8889

query I rowsort
SELECT ALL col0 + col1 * - col0 FROM tab2
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-2534
SELECT cor0.col1 DIV - col2 + cor0.col1 DIV col0 + col1 FROM tab0 cor0
----
2
87
91

skipif mysql # not compatible
query I rowsort label-2534
SELECT cor0.col1 / - col2 + cor0.col1 / col0 + col1 FROM tab0 cor0
----
2
87
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-2535
SELECT + + col0 - + col1 DIV col1 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-2535
SELECT + + col0 - + col1 / col1 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT DISTINCT ( + col0 ) + col2 - - 5 AS col2 FROM tab2 AS cor0
----
109
122
39

query I rowsort
SELECT + 45 + - 5 FROM tab2 AS cor0
----
40
40
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-2538
SELECT DISTINCT + ( - 22 ) + - cor0.col0 DIV + ( col2 ) + cor0.col1 FROM tab0 cor0
----
40
64
68

skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT + ( - 22 ) + - cor0.col0 / + ( col2 ) + cor0.col1 FROM tab0 cor0
----
40
64
68

query I rowsort
SELECT DISTINCT - + ( - col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - + col2 * ( - col0 ) + col1 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-2541
SELECT DISTINCT + col1 * 79 DIV - col0 FROM tab0
----
-218
-283
-80

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT + col1 * 79 / - col0 FROM tab0
----
-218
-283
-80

query I rowsort
SELECT DISTINCT col2 + ( tab1.col0 * col0 ) + col2 AS col1 FROM tab1
----
117
4210
6592

query I rowsort
SELECT + col0 * + 59 * - tab0.col2 FROM tab0
----
-2065
-430582
-46728

query I rowsort
SELECT DISTINCT tab2.col2 * ( col1 + tab2.col2 ) * - col1 FROM tab2
----
-130390
-35530
-48546

onlyif mysql # use DIV operator for integer division
query I rowsort label-2545
SELECT DISTINCT + col2 * col1 * + tab0.col0 + tab0.col2 DIV - 34 FROM tab0
----
3395
664116
68112

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT + col2 * col1 * + tab0.col0 + tab0.col2 / - 34 FROM tab0
----
3395
664116
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-2546
SELECT + tab1.col0 DIV tab1.col0 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2546
SELECT + tab1.col0 / tab1.col0 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + col2 * + ( 98 ) * col0 + - col0 * + col2 FROM tab2
----
18333
196716
291194

query I rowsort
SELECT DISTINCT + 56 FROM tab0, tab0 AS cor0
----
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-2549
SELECT - + col1 + 87 DIV col1 AS col2 FROM tab1 AS cor0
----
-2
-23
-7

skipif mysql # not compatible
query I rowsort label-2549
SELECT - + col1 + 87 / col1 AS col2 FROM tab1 AS cor0
----
-2
-23
-7

query I rowsort
SELECT DISTINCT + col1 * 72 FROM tab0 AS cor0
----
6192
6552
6984

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * CAST ( - col0 AS REAL ) col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + + col1 + - 9 * col2 FROM tab1 AS cor0
----
-460
-503
-851

query I rowsort
SELECT DISTINCT - col2 + + col1 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT + col0 + col2 - - col0 * col1 AS col2 FROM tab2 AS cor0
----
1460
251
4706

onlyif mysql # use DIV operator for integer division
query I rowsort label-2555
SELECT - + col0 - - 66 DIV + col2 AS col0 FROM tab1 AS cor0
----
-2
-63
-80

skipif mysql # not compatible
query I rowsort label-2555
SELECT - + col0 - - 66 / + col2 AS col0 FROM tab1 AS cor0
----
-2
-63
-80

query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 + - cor0.col0 * - col2 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT ALL + col2 + + col1 * - col2 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - ( col0 ) col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + 0 + - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + + ( + col1 ) * col1 + + cor0.col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1079
-470
-728

query I rowsort
SELECT ALL 34 * cor0.col1 + + col2 FROM tab1 AS cor0
----
397
538
938

query I rowsort
SELECT 11 * + col0 * cor0.col1 + + col0 FROM tab2 AS cor0
----
14852
2394
50700

query I rowsort
SELECT + 6 * col1 FROM tab0 AS cor0
----
516
546
582

query I rowsort
SELECT - + cor0.col1 * + col2 * col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL + tab0.col2 AS col0 FROM tab0 WHERE NULL NOT IN ( tab0.col1 + col0 )
----

query I rowsort
SELECT + col1 + tab1.col1 + col0 * + col1 FROM tab1
----
1066
130
660

query I rowsort
SELECT ALL - - 39 + cor0.col2 FROM tab1 cor0
----
135
93
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2568
SELECT - cor0.col0 * CAST( col2 AS SIGNED ) * - col2 FROM tab0 cor0
----
26136
35
598436

skipif mysql # not compatible
query I rowsort label-2568
SELECT - cor0.col0 * CAST ( col2 AS INTEGER ) * - col2 FROM tab0 cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT + - col2 * - ( + 65 ) FROM tab0 AS cor0
----
2145
5330
65

query I rowsort
SELECT - col2 * - col0 + - col1 * col1 FROM tab0
----
-6604
-9374
-983

query I rowsort
SELECT DISTINCT + col0 * - col0 * col2 AS col2 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT tab1.col2 AS col1 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT 23 - col2 FROM tab1
----
-31
-34
-73

query I rowsort
SELECT + col0 + 56 AS col0 FROM tab0 AS cor0
----
145
80
91

query I rowsort
SELECT tab0.col1 AS col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

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-2577
SELECT 52 DIV col0 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2577
SELECT 52 / col0 FROM tab0 cor0
----
0
1
2

query I rowsort
SELECT - 5 * col0 + - col1 FROM tab0 cor0
----
-206
-272
-536

query I rowsort
SELECT ALL + col0 * col0 * - 27 AS col0 FROM tab0
----
-15552
-213867
-33075

query I rowsort
SELECT ALL col1 + + ( 18 ) + col1 * + 69 AS col1 FROM tab0 AS cor0
----
6038
6388
6808

query I rowsort
SELECT ALL - 98 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f

query I rowsort
SELECT - 14 * col1 FROM tab2 AS cor0
----
-238
-434
-826

query I rowsort
SELECT 18 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
25
96
97

query I rowsort
SELECT + col0 * - tab0.col2 + col0 AS col2 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT ( col0 ) * - 54 FROM tab0 AS cor0
----
-1296
-1890
-4806

query I rowsort
SELECT ALL - - col1 * col1 * + 17 FROM tab1 AS cor0
----
11492
1700
2873

query I rowsort
SELECT DISTINCT col2 + col1 + - col1 AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - 38 * - col0 + 25 AS col2 FROM tab1 AS cor0
----
139
2457
3065

query I rowsort
SELECT + 4 * col1 + cor0.col2 * col1 FROM tab2 AS cor0
----
1770
714
961

query I rowsort
SELECT ALL + + col2 * cor0.col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col1 + + col0 * - ( + col0 * - col2 + + col1 ) AS col0 FROM tab0 AS cor0
----
-2073
17030
641514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT + + col0 * + cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + - col2 + col1 * - cor0.col0 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL + col1 * - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col2 + - col0 col1 FROM tab0 AS cor0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-2597
SELECT DISTINCT - + col1 DIV - col0 + - col1 * col1 FROM tab2 AS cor0
----
-289
-3481
-957

skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT - + col1 / - col0 + - col1 * col1 FROM tab2 AS cor0
----
-289
-3481
-957

query I rowsort
SELECT ALL col2 + + col0 + - col1 * cor0.col1 FROM tab0 AS cor0
----
-7339
-8110
-9373

onlyif mysql # use DIV operator for integer division
query I rowsort label-2599
SELECT DISTINCT - - col0 * col0 DIV col0 + col0 FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-2599
SELECT DISTINCT - - col0 * col0 / col0 + col0 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 * + col0 - + col2 col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL - col0 - col2 * - col2 AS col1 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT + - ( - col0 ) * col2 + - col0 * - col0 FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT + - 97 * + col0 + col0 FROM tab0 AS cor0
----
-2304
-3360
-8544

query I rowsort
SELECT col1 * - col2 * col0 + + col1 + + col1 AS col2 FROM tab2 AS cor0
----
-119534
-51000
-5797

query I rowsort
SELECT - col0 + + col1 * col1 FROM tab2 cor0
----
210
3403
954

query I rowsort
SELECT 23 * col1 * col2 + col1 + + col2 AS col1 FROM tab0 cor0
----
171799
2329
65393

query I rowsort
SELECT ALL col0 * + 55 FROM tab1
----
165
3520
4400

query I rowsort
SELECT ALL ( - col2 * - col1 ) AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL + + col1 + col0 * - col0 * + col2 AS col2 FROM tab1 cor0
----
-233462
-460
-614387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * col0 + - cor0.col2 col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT + 25 + col2 * col0 + - col1 AS col0 FROM tab2
----
183
1994
3010

query I rowsort
SELECT col2 + col0 + + col2 AS col2 FROM tab0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT - col0 + - col1 * col0 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT ALL + col1 + col1 * + col1 * col1 FROM tab1 WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + col1 * col2 + - tab0.col1 col0 FROM tab0
----
-1
1663
647

query I rowsort
SELECT col2 * col0 * - col1 AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT tab0.col0 AS col0 FROM tab0 WHERE ( col0 + col1 * - col1 ) NOT IN ( col0 + + col1 * col1 )
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2618
SELECT - col1 * col1 + + col1 DIV col1 + col0 * + col2 col0 FROM tab0
----
-6603
-9373
-982

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2618
SELECT - col1 * col1 + + col1 / col1 + col0 * + col2 col0 FROM tab0
----
-6603
-9373
-982

onlyif mysql # use DIV operator for integer division
query I rowsort label-2619
SELECT ALL + col0 + col2 DIV + col0 + tab2.col1 AS col1 FROM tab2
----
137
41
96

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL + col0 + col2 / + col0 + tab2.col1 AS col1 FROM tab2
----
137
41
96

query I rowsort
SELECT ALL col2 * tab0.col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + tab0.col2 )
----

query I rowsort
SELECT + col2 / col0 FROM tab1 WHERE NOT ( col0 + + col0 ) > ( col0 )
----

query I rowsort
SELECT col1 + - col1 * + col2 * + col0 AS col0 FROM tab1 WHERE NOT ( NULL ) IN ( + tab1.col1 )
----

query I rowsort
SELECT ALL col1 * - col2 * tab1.col2 AS col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT ALL col0 + col0 AS col0 FROM tab2 WHERE ( NULL ) NOT IN ( col0 + + tab2.col1 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 * + col0 col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT + tab0.col0 + - col0 * - col1 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT - tab0.col0 * - col0 + + col0 * tab0.col0 FROM tab0
----
1152
15842
2450

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 / - col0 BETWEEN - col0 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 * col0 col0 FROM tab2
----
6110
6279
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2630
SELECT col2 + tab1.col0 DIV - col2 + + col0 FROM tab1
----
120
176
57

skipif mysql # not compatible
query I rowsort label-2630
SELECT col2 + tab1.col0 / - col2 + + col0 FROM tab1
----
120
176
57

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 NOT IN ( - col0 )
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE col1 * col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 + - col0 * tab1.col0 FROM tab1 WHERE col1 * col2 > col2
----
-35
-4106
-6413

query I rowsort
SELECT ALL col2 - col1 * col1 * + col0 AS col0 FROM tab2
----
-22793
-271492
-6700

onlyif mysql # use DIV operator for integer division
query I rowsort label-2635
SELECT DISTINCT col1 DIV col1 - col2 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT col1 / col1 - col2 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT col2 * col0 - col0 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT col0 - col1 AS col0 FROM tab0
----
-2
-62

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT ALL - col0 + + col2 * col2 + col0 FROM tab2
----
1444
676
729

query I rowsort
SELECT col0 * - col0 FROM tab1 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT col1 * tab1.col0 + - col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT DISTINCT - col0 * - col0 + col0 * col1 * col2 - - col1 FROM tab0
----
4717
672130
68774

onlyif mysql # use DIV operator for integer division
query I rowsort label-2643
SELECT ALL - col2 DIV - col0 + cor0.col1 + - col1 AS col1 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL - col2 / - col0 + cor0.col1 + - col1 AS col1 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT - col0 / col1 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2 )
----

query I rowsort
SELECT - col2 * + col0 + cor0.col1 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-2646
SELECT - col1 - + col2 * col2 DIV - 44 AS col0 FROM tab2
----
-15
-44
15

skipif mysql # not compatible
query I rowsort label-2646
SELECT - col1 - + col2 * col2 / - 44 AS col0 FROM tab2
----
-15
-44
15

query I rowsort
SELECT DISTINCT col1 * + 21 - + col1 AS col1 FROM tab1 cor0
----
200
260
520

query I rowsort
SELECT DISTINCT + col1 * col1 - col2 AS col2 FROM tab1 AS cor0
----
43
622
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-2649
SELECT ALL - col1 * ( col2 ) + CAST( + col2 + - col0 AS SIGNED ) DIV 23 AS col2 FROM tab1 AS cor0
----
-1248
-1402
-570

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL - col1 * ( col2 ) + CAST ( + col2 + - col0 AS INTEGER ) / 23 AS col2 FROM tab1 AS cor0
----
-1248
-1402
-570

query I rowsort
SELECT 96 * + col2 * col0 FROM tab0
----
3360
700608
76032

query I rowsort
SELECT + 1 + - col1 FROM tab1 AS cor0
----
-12
-25
-9

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 4c5172baaab682f997bd09d2b5cf0d22

query I rowsort
SELECT - - 98 * col1 AS col1 FROM tab2 AS cor0
----
1666
3038
5782

query I rowsort
SELECT ALL - 96 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + col2 FROM tab2 cor0
----
-251
-3455
-934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2656
SELECT - col2 * - CAST( + col1 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-2656
SELECT - col2 * - CAST ( + col1 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT + col1 + ( ( col1 ) ) * + ( + 86 ) AS col1 FROM tab0 AS cor0
----
7482
7917
8439

query I rowsort
SELECT + col0 + ( - 86 ) FROM tab0 AS cor0
----
-51
-62
3

query I rowsort
SELECT - col2 + col2 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + col0 * - 39 AS col1 FROM tab0 AS cor0
----
-1365
-3471
-936

onlyif mysql # use DIV operator for integer division
query I rowsort label-2661
SELECT ALL + cor0.col2 - 71 DIV - col2 col0 FROM tab1 AS cor0
----
55
58
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL + cor0.col2 - 71 / - col2 col0 FROM tab1 AS cor0
----
55
58
96

query I rowsort
SELECT DISTINCT - col2 * col2 + 25 FROM tab1 AS cor0
----
-2891
-3224
-9191

query I rowsort
SELECT ALL cor0.col1 + + col2 * + cor0.col0 FROM tab0 cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-2664
SELECT DISTINCT + 68 * col0 * + col0 + col2 * + col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
39135
538546
83299

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT + 68 * col0 * + col0 + col2 * + col0 / - col0 AS col1 FROM tab0 AS cor0
----
39135
538546
83299

query I rowsort
SELECT ALL cor0.col0 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL - ( + col2 ) * - col0 + 28 AS col2 FROM tab1 AS cor0
----
190
3676
7708

onlyif mysql # use DIV operator for integer division
query I rowsort label-2667
SELECT DISTINCT - col0 DIV 99 col1 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT - col0 / 99 col1 FROM tab2 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2668
SELECT DISTINCT col1 DIV + cor0.col2 + + col1 * - col1 FROM tab0 AS cor0
----
-7394
-8280
-9312

skipif mysql # not compatible
query I rowsort label-2668
SELECT DISTINCT col1 / + cor0.col2 + + col1 * - col1 FROM tab0 AS cor0
----
-7394
-8280
-9312

query I rowsort
SELECT - 1 * + col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + + 23 * col0 AS col2 FROM tab2 AS cor0
----
161
1794
1817

query I rowsort
SELECT DISTINCT col1 * 5 AS col1 FROM tab0 AS cor0
----
430
455
485

query I rowsort
SELECT 94 * ( cor0.col2 ) FROM tab0 AS cor0
----
3102
7708
94

query I rowsort
SELECT DISTINCT + ( 32 ) + + col0 FROM tab1 cor0
----
112
35
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2674
SELECT DISTINCT - + col0 DIV + ( cor0.col0 ) + cor0.col2 AS col0 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT - + col0 / + ( cor0.col0 ) + cor0.col2 AS col0 FROM tab1 AS cor0
----
53
56
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2675
SELECT DISTINCT + 23 * - 98 + - col2 + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
-2306
-2343

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT + 23 * - 98 + - col2 + col2 / col1 AS col1 FROM tab1 AS cor0
----
-2306
-2343

query I rowsort
SELECT DISTINCT + col0 * + 94 + + col1 * col0 FROM tab2
----
11934
875
8769

query I rowsort
SELECT ALL - col0 + col0 - - cor0.col0 * - col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - - 57 * + 10 + + col1 FROM tab1 AS cor0
----
580
583
596

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2679
SELECT - - CAST( - col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-2679
SELECT - - CAST ( - col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - 64 + col1 FROM tab0 AS cor0
----
22
27
33

query I rowsort
SELECT + col2 + - 77 FROM tab2 AS cor0
----
-39
-50
-51

query I rowsort
SELECT DISTINCT + col1 * + 80 AS col2 FROM tab0 AS cor0
----
6880
7280
7760

query I rowsort
SELECT DISTINCT 60 AS col2 FROM tab0, tab0 cor0
----
60

query I rowsort
SELECT DISTINCT - 79 * + cor0.col1 - - col1 AS col2 FROM tab0 AS cor0
----
-6708
-7098
-7566

onlyif mysql # use DIV operator for integer division
query I rowsort label-2685
SELECT - 51 * col0 DIV col1 FROM tab1 AS cor0
----
-313
-326
-5

skipif mysql # not compatible
query I rowsort label-2685
SELECT - 51 * col0 / col1 FROM tab1 AS cor0
----
-313
-326
-5

query I rowsort
SELECT - - ( cor0.col1 ) + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL ( + col0 ) * tab2.col2 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT col2 * 99 FROM tab1
----
5346
5643
9504

query I rowsort
SELECT - col1 + cor0.col2 * col2 - + col0 FROM tab0 AS cor0
----
-131
6544
979

query I rowsort
SELECT + col2 * + col2 + cor0.col0 + col1 AS col2 FROM tab0 cor0
----
1199
133
6904

query I rowsort
SELECT - col2 - col1 * ( col1 * + col1 + ( - cor0.col0 ) ) AS col0 FROM tab1 AS cor0
----
-1253
-17552
-417

query I rowsort
SELECT col2 * - col2 + + col1 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT - cor0.col1 + ( + ( - col1 ) ) FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2694
SELECT 87 + + col1 * + CAST( - 28 AS SIGNED ) col1 FROM tab0
----
-2321
-2461
-2629

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2694
SELECT 87 + + col1 * + CAST ( - 28 AS INTEGER ) col1 FROM tab0
----
-2321
-2461
-2629

query I rowsort
SELECT ALL + col2 * - tab1.col2 + + col1 AS col2 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT col2 + 2 + col1 FROM tab2 AS cor0
----
57
60
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-2697
SELECT - col2 + - col1 DIV col1 FROM tab2
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-2697
SELECT - col2 + - col1 / col1 FROM tab2
----
-27
-28
-39

query I rowsort
SELECT ALL + + cor0.col1 + + cor0.col2 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL + - col1 + + ( + col2 ) * col2 AS col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT - col0 * - 73 AS col2 FROM tab2 AS cor0
----
511
5694
5767

query I rowsort
SELECT ALL - col1 * + 96 * - cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
27782
334202
92283

query I rowsort
SELECT DISTINCT - col2 + + 24 + 12 AS col2 FROM tab2 AS cor0
----
-2
10
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2703
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 * - 14 FROM tab0
----
-1204
-1274
-1358

query I rowsort
SELECT - 83 * - col1 FROM tab1
----
1079
2158
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - tab0.col0 col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT - 50 * - col0 FROM tab2 AS cor0
----
350
3900
3950

query I rowsort
SELECT DISTINCT + ( col2 ) + - col0 * col0 AS col1 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT - col0 - tab1.col1 AS col2 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT col2 + - col1 * col0 AS col2 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT + 92 * - col1 + - col0 * col1 AS col1 FROM tab2
----
-10030
-2907
-3069

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2712
SELECT - + cor0.col2 * CAST( NULL AS SIGNED ) * + ( + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2712
SELECT - + cor0.col2 * CAST ( NULL AS INTEGER ) * + ( + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + + col2 - - 36 FROM tab2 AS cor0
----
-16
-5
56

query I rowsort
SELECT ALL + col1 + 52 FROM tab2 AS cor0
----
111
69
83

query I rowsort
SELECT DISTINCT + col2 + - 43 + col2 * cor0.col1 FROM tab0 AS cor0
----
2828
55
7501

onlyif mysql # use DIV operator for integer division
query I rowsort label-2716
SELECT DISTINCT + col2 + - col1 DIV ( - col0 ) + + 72 AS col2 FROM tab1 AS cor0
----
129
134
168

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT + col2 + - col1 / ( - col0 ) + + 72 AS col2 FROM tab1 AS cor0
----
129
134
168

query I rowsort
SELECT col2 + 16 * + col1 AS col1 FROM tab2 AS cor0
----
310
523
970

query I rowsort
SELECT - ( - col1 ) - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 29 * col2 - + col0 AS col0 FROM tab1 AS cor0
----
-1569
-1717
-2864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2720
SELECT col2 / ( - col2 ) + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT col2 / ( - col2 ) + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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 - 20 col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2724
SELECT cor1.col0 DIV - 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0a2318b4bf63035a6256e1ab14fbb1eb

skipif mysql # not compatible
query I rowsort label-2724
SELECT cor1.col0 / - 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0a2318b4bf63035a6256e1ab14fbb1eb

query I rowsort
SELECT + col1 * col1 - + 47 AS col2 FROM tab0 cor0
----
7349
8234
9362

query I rowsort
SELECT ALL - + 68 AS col0 FROM tab0 AS cor0
----
-68
-68
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-2727
SELECT col1 DIV + col1 + col2 + col0 AS col1 FROM tab2 AS cor0
----
105
118
35

skipif mysql # not compatible
query I rowsort label-2727
SELECT col1 / + col1 + col2 + col0 AS col1 FROM tab2 AS cor0
----
105
118
35

query I rowsort
SELECT DISTINCT 41 + - col0 * col0 FROM tab2 cor0
----
-6043
-6200
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2729
SELECT - col1 + col1 * - CAST( NULL AS DECIMAL ) + - col2 * col2 * ( 24 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2729
SELECT - col1 + col1 * - CAST ( NULL AS REAL ) + - col2 * col2 * ( 24 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + col0 * - 49 FROM tab1
----
-121
-3126
-3907

query I rowsort
SELECT + - ( col1 ) * + col2 + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-2732
SELECT DISTINCT + col1 DIV + 23 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT + col1 / + 23 AS col2 FROM tab1
----
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2733
SELECT - col0 * col1 + - CAST( NULL AS SIGNED ) * col1 + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT - col0 * col1 + - CAST ( NULL AS INTEGER ) * col1 + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 51 + + col1 FROM tab2 AS cor0
----
-20
-34
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 + + col0 * - 12 col0 FROM tab1 AS cor0
----
-680
-872
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2736
SELECT - col0 DIV + cor0.col1 - - col2 AS col0 FROM tab1 AS cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-2736
SELECT - col0 / + cor0.col1 - - col2 AS col0 FROM tab1 AS cor0
----
51
54
90

query I rowsort
SELECT ALL + 54 * + col0 AS col0 FROM tab2
----
378
4212
4266

query I rowsort
SELECT ALL col2 * + col0 + col0 * + col1 AS col1 FROM tab0
----
15397
2856
3430

onlyif mysql # use DIV operator for integer division
query I rowsort label-2739
SELECT col2 + 88 DIV + col2 + col2 AS col1 FROM tab0 AS cor0
----
165
68
90

skipif mysql # not compatible
query I rowsort label-2739
SELECT col2 + 88 / + col2 + col2 AS col1 FROM tab0 AS cor0
----
165
68
90

query I rowsort
SELECT ALL + col1 * - 47 * ( col1 * 14 + - col2 ) FROM tab0 AS cor0
----
-4733182
-5098184
-6186563

query I rowsort
SELECT ALL cor1.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT - cor0.col2 - col0 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT col2 + tab2.col2 * ( 84 ) AS col2 FROM tab2
----
2210
2295
3230

query I rowsort
SELECT DISTINCT - 52 + col0 * cor0.col1 AS col0 FROM tab2 cor0
----
1291
165
4550

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2745
SELECT CAST( NULL AS SIGNED ) * + col1 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2745
SELECT CAST ( NULL AS INTEGER ) * + col1 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2746
SELECT ALL + col2 DIV + ( + cor0.col0 + + col0 ) col2 FROM tab1 AS cor0
----
0
0
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL + col2 / + ( + cor0.col0 + + col0 ) col2 FROM tab1 AS cor0
----
0
0
9

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col1 AS REAL ) * col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT ( + tab0.col2 ) * - col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col1 * - col0 - col2 FROM tab0
----
-2097
-3396
-8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-2750
SELECT ALL - col2 - col1 DIV - col1 AS col1 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL - col2 - col1 / - col1 AS col1 FROM tab0
----
-32
-81
0

query I rowsort
SELECT DISTINCT col2 * ( col1 + - 7 ) AS col1 FROM tab0
----
2607
6888
90

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + ( + col1 ) * col0 + col2 AS col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT col2 + 78 FROM tab2
----
104
105
116

onlyif mysql # use DIV operator for integer division
query I rowsort label-2755
SELECT DISTINCT + cor0.col0 DIV - cor0.col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT + cor0.col0 / - cor0.col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
-1
-35
0

query I rowsort
SELECT + cor0.col0 * col0 * - col2 FROM tab1 cor0
----
-233472
-486
-614400

query I rowsort
SELECT + + col2 * cor0.col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
10982
25947
90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2758
SELECT DISTINCT - col2 + + CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT - col2 + + CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + cor0.col2 + + col1 * - 19 AS col2 FROM tab0 AS cor0
----
-1601
-1647
-1842

query I rowsort
SELECT ALL - cor0.col2 + col1 * + 75 FROM tab1 AS cor0
----
1896
693
879

query I rowsort
SELECT - col0 * + 97 AS col2 FROM tab0 AS cor0
----
-2328
-3395
-8633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2762
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL col2 * + col1 * tab0.col0 + col2 FROM tab0
----
3396
664200
68145

query I rowsort
SELECT - - col0 * + cor0.col0 + - 91 FROM tab2 AS cor0
----
-42
5993
6150

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab2, tab1 cor0, tab0 AS cor1
----
10
13
26

query I rowsort
SELECT - - col2 * - 70 AS col0 FROM tab1 AS cor0
----
-3780
-3990
-6720

query I rowsort
SELECT DISTINCT - col0 * - ( + col0 ) AS col1 FROM tab0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab2 AS cor3
----
243 values hashing to 00fa117da84abe6a4654e59c502ca0cf

query I rowsort
SELECT 60 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 1ef27a1d2784b3ab642571630db70349

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 15ae1b54cae2dcf5c6eef7f1d15689eb

query I rowsort
SELECT ALL + col2 * + 14 AS col1 FROM tab2
----
364
378
532

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2772
SELECT ALL CAST( + 84 * + col1 AS SIGNED ) + + 73 FROM tab2
----
1501
2677
5029

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL CAST ( + 84 * + col1 AS INTEGER ) + + 73 FROM tab2
----
1501
2677
5029

onlyif mysql # use DIV operator for integer division
query I rowsort label-2773
SELECT ALL - col2 DIV - cor0.col2 + col0 * + 34 AS col2 FROM tab1 AS cor0
----
103
2177
2721

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL - col2 / - cor0.col2 + col0 * + 34 AS col2 FROM tab1 AS cor0
----
103
2177
2721

query I rowsort
SELECT + + 30 FROM tab1 AS cor0
----
30
30
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-2775
SELECT + ( + cor0.col2 ) DIV + col0 + 10 AS col1 FROM tab0 AS cor0
----
10
10
11

skipif mysql # not compatible
query I rowsort label-2775
SELECT + ( + cor0.col2 ) / + col0 + 10 AS col1 FROM tab0 AS cor0
----
10
10
11

query I rowsort
SELECT - ( - 8 ) FROM tab0
----
8
8
8

query I rowsort
SELECT ALL - 98 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2778
SELECT ALL + - col0 * col2 + + col2 DIV + col1 FROM tab1 AS cor0
----
-160
-3643
-7673

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL + - col0 * col2 + + col2 / + col1 FROM tab1 AS cor0
----
-160
-3643
-7673

query I rowsort
SELECT + col1 * + col2 + 66 AS col1 FROM tab0 AS cor0
----
163
2904
7528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2780
SELECT ALL - ( col0 ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL - ( col0 ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col2 ) + - 70 AS col1 FROM tab2 AS cor0
----
-32
-43
-44

query I rowsort
SELECT DISTINCT - 69 AS col0 FROM tab0 AS cor0
----
-69

query I rowsort
SELECT DISTINCT + + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80

query I rowsort
SELECT - 21 * - col0 AS col0 FROM tab1 AS cor0
----
1344
1680
63

query I rowsort
SELECT DISTINCT 17 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
17

query I rowsort
SELECT + col1 * cor0.col2 + 21 AS col1 FROM tab2 AS cor0
----
1555
667
858

onlyif mysql # use DIV operator for integer division
query I rowsort label-2787
SELECT + col1 DIV - 4 + cor0.col0 FROM tab2 AS cor0
----
0
64
75

skipif mysql # not compatible
query I rowsort label-2787
SELECT + col1 / - 4 + cor0.col0 FROM tab2 AS cor0
----
0
64
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2788
SELECT DISTINCT - CAST( + col0 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - tab2.col2 * - col1 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT 57 AS col2 FROM tab0
----
57

query I rowsort
SELECT DISTINCT - + cor0.col2 * 20 - + col0 AS col1 FROM tab0 AS cor0
----
-1729
-55
-684

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NOT - cor0.col0 <> NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2793
SELECT 71 * col2 - + CAST( + col0 AS DECIMAL ) * col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT 71 * col2 - + CAST ( + col0 AS REAL ) * col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 18 + col2 FROM tab2 AS cor0
----
44
45
56

query I rowsort
SELECT ( col1 ) * 22 - cor0.col0 * col1 FROM tab2 AS cor0
----
-3304
-969
465

query I rowsort
SELECT 99 * + col0 AS col1 FROM tab1 AS cor0
----
297
6336
7920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2797
SELECT + 2 - + col1 * CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1532
-644
-835

skipif mysql # not compatible
query I rowsort label-2797
SELECT + 2 - + col1 * CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1532
-644
-835

query I rowsort
SELECT ALL - tab1.col2 + + col1 * + col0 FROM tab1
----
24
583
944

query I rowsort
SELECT DISTINCT + 0 FROM tab0, tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + cor0.col0 col2 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT 10 + + 19 FROM tab2
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + tab0.col2 col2 FROM tab0
----
119
173
98

query I rowsort
SELECT 0 * - 98 + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT 15 * + col2 + col0 FROM tab1 AS cor0
----
1520
813
919

query I rowsort
SELECT ALL - 40 * 61 + - col1 FROM tab2 AS cor0
----
-2457
-2471
-2499

query I rowsort
SELECT + - col2 * - col1 * - col1 + ( ( - cor0.col1 ) ) AS col0 FROM tab2 AS cor0
----
-10999
-25978
-90565

query I rowsort
SELECT - + cor0.col1 + col2 + col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + 60 * + col1 AS col2 FROM tab0 AS cor0
----
5160
5460
5820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 48 * + col2 * ( 82 ) + + col1 col1 FROM tab1 AS cor0
----
-212515
-224278
-377763

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to f1fc3f16747aca82b54b2b759d1f5ea2

query I rowsort
SELECT ALL - - col1 + + col0 * - col0 FROM tab2 AS cor0
----
-18
-6025
-6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 * - tab2.col2 + - 84 col0 FROM tab2
----
-22683
-24632
-39968

query I rowsort
SELECT col2 + col1 * + col2 + col0 * + col2 * + col2 AS col0 FROM tab0
----
133
29007
605980

query I rowsort
SELECT ALL col1 + 85 AS col1 FROM tab1
----
111
95
98

query I rowsort
SELECT + col1 + - 38 FROM tab2
----
-21
-7
21

query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 + + col2 + + col1 AS col0 FROM tab0 cor0
----
-673
-7125
63

query I rowsort
SELECT ALL - + cor0.col1 + + 13 FROM tab0 AS cor0
----
-73
-78
-84

query I rowsort
SELECT col2 * ( - col1 ) AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT - ( - col2 ) * + ( col1 ) + col2 AS col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT + 63 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT DISTINCT - col1 * - ( - col2 ) + col2 AS col2 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + - col0 * ( 19 * col2 ) + + ( 81 ) * col1 FROM tab0 AS cor0
----
-131291
-8082
7192

query I rowsort
SELECT ALL col1 * 36 FROM tab1 AS cor0
----
360
468
936

query I rowsort
SELECT DISTINCT - col1 + col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-2825
SELECT - col0 DIV 83 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2825
SELECT - col0 / 83 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * + 75 + col0 AS col2 FROM tab2
----
2028
2032
2929

query I rowsort
SELECT ALL - 7 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

query I rowsort
SELECT DISTINCT - cor0.col0 - 7 * + col1 * - col1 FROM tab2 AS cor0
----
1944
24289
6720

query I rowsort
SELECT - + 84 + + cor0.col0 * col1 FROM tab2 AS cor0
----
1259
133
4518

query I rowsort
SELECT ALL + + col2 - + col1 * col1 * ( cor0.col2 + cor0.col0 * - col0 ) AS col1 FROM tab2 AS cor0
----
1792705
21087924
21169

query I rowsort
SELECT DISTINCT - ( - ( col1 - - col2 - col1 - - col1 - + col1 ) ) * + col0 + + col2 + + 71 AS col0 FROM tab2 cor0
----
2125
287
3111

query I rowsort
SELECT col1 + col2 * - col0 - + 11 FROM tab0 AS cor0
----
-717
-7218
51

query I rowsort
SELECT col2 * cor0.col1 - + col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL + 19 * - 35 + cor0.col1 AS col0 FROM tab0 cor0
----
-568
-574
-579

query I rowsort
SELECT DISTINCT + - 83 + + 37 - + cor0.col0 AS col2 FROM tab2 AS cor0
----
-124
-125
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 + col0 col1 FROM tab0 AS cor0
----
-19
-30
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2837
SELECT + CAST( 12 AS SIGNED ) * - col2 - ( col0 ) FROM tab0 AS cor0
----
-1073
-420
-47

skipif mysql # not compatible
query I rowsort label-2837
SELECT + CAST ( 12 AS INTEGER ) * - col2 - ( col0 ) FROM tab0 AS cor0
----
-1073
-420
-47

query I rowsort
SELECT DISTINCT - 30 + - col2 AS col2 FROM tab2 AS cor0
----
-56
-57
-68

query I rowsort
SELECT DISTINCT - 63 + col1 + col2 FROM tab0 AS cor0
----
110
35
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2840
SELECT ALL + CAST( col1 AS SIGNED ) + - col2 AS col1 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL + CAST ( col1 AS INTEGER ) + - col2 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT 5 + ( + col2 ) AS col0 FROM tab2 AS cor0
----
31
32
43

query I rowsort
SELECT DISTINCT 2 + + col1 + col0 AS col2 FROM tab1 AS cor0
----
31
76
95

query I rowsort
SELECT - - col0 + - col0 * + col1 AS col2 FROM tab0 cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-2844
SELECT ALL + CAST( + col2 AS SIGNED ) * col0 + 44 + 22 DIV - col1 FROM tab0 AS cor0
----
7342
79
836

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL + CAST ( + col2 AS INTEGER ) * col0 + 44 + 22 / - col1 FROM tab0 AS cor0
----
7342
79
836

query I rowsort
SELECT - ( 7 ) * + col0 + col2 * col1 FROM tab2 cor0
----
788
93
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-2846
SELECT col0 + col1 DIV 53 AS col1 FROM tab2 cor0
----
7
79
79

skipif mysql # not compatible
query I rowsort label-2846
SELECT col0 + col1 / 53 AS col1 FROM tab2 cor0
----
7
79
79

query I rowsort
SELECT DISTINCT ( col1 ) - + col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - ( cor0.col0 ) * + 72 FROM tab1 AS cor0
----
-216
-4608
-5760

query I rowsort
SELECT DISTINCT col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - 88 * + col0 + 13 * col2 + + col0 AS col2 FROM tab2 AS cor0
----
-258
-6379
-6448

onlyif mysql # use DIV operator for integer division
query I rowsort label-2851
SELECT DISTINCT + 93 * col1 DIV 13 + cor0.col1 FROM tab1 AS cor0
----
106
212
81

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT + 93 * col1 / 13 + cor0.col1 FROM tab1 AS cor0
----
106
212
81

query I rowsort
SELECT DISTINCT - 59 + - col1 AS col0 FROM tab1 AS cor0
----
-69
-72
-85

query I rowsort
SELECT + - cor0.col0 + + col1 * col0 * col2 FROM tab0 AS cor0
----
3360
664029
68088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412

query I rowsort
SELECT DISTINCT 26 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2856
SELECT ALL - cor0.col1 + CAST( NULL AS SIGNED ) * - 16 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL - cor0.col1 + CAST ( NULL AS INTEGER ) * - 16 FROM tab1 AS cor0
----
NULL
NULL
NULL

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 + ( cor0.col0 ) + + col1 + + 24 AS col2 FROM tab1 AS cor0
----
117
53
98

query I rowsort
SELECT + col2 + - ( col2 ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 * - 77 + - col2 AS col1 FROM tab0 AS cor0
----
-1881
-2696
-6935

query I rowsort
SELECT + + col2 + 10 * - col0 + col0 * col2 FROM tab1 AS cor0
----
186
3065
6976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 65 col2 FROM tab0 cor0
----
-5590
-5915
-6305

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 94 ) + col1 + + 73 col0 FROM tab0 AS cor0
----
65
70
76

query I rowsort
SELECT ALL - col1 * + col0 - - col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT + 67 + + 32 FROM tab1 AS cor0
----
99

query I rowsort
SELECT - ( + col2 ) * col0 + 2 + - col0 AS col0 FROM tab1 AS cor0
----
-163
-3710
-7758

onlyif mysql # use DIV operator for integer division
query I rowsort label-2867
SELECT ALL + 69 DIV + col1 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL + 69 / + col1 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT DISTINCT - col0 * - 73 FROM tab0 AS cor0
----
1752
2555
6497

query I rowsort
SELECT col0 * col0 + - 0 * - col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL + 86 + - col2 FROM tab2
----
48
59
60

query I rowsort
SELECT - 11 + col0 * col0 FROM tab2 cor0
----
38
6073
6230

query I rowsort
SELECT - 10 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT ALL - col2 + 99 FROM tab1 AS cor0
----
3
42
45

skipif mysql # not compatible
query I rowsort
SELECT + col1 + CAST ( col0 AS REAL ) AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT col2 * 50 * col2 FROM tab0 AS cor0
----
336200
50
54450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + cor0.col2 + - cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 48730a4f3ae72ef34da4083404b84d99

query I rowsort
SELECT DISTINCT - cor0.col0 * + ( + 46 ) FROM tab2 AS cor0
----
-322
-3588
-3634

query I rowsort
SELECT DISTINCT col1 + ( 43 ) * - col1 AS col0 FROM tab2
----
-1302
-2478
-714

query I rowsort
SELECT ALL - col0 + + col1 * tab0.col0 AS col0 FROM tab0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-2881
SELECT col1 DIV - 46 FROM tab0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2881
SELECT col1 / - 46 FROM tab0
----
-1
-1
-2

query I rowsort
SELECT + col1 * + 65 + - col1 * col1 AS col0 FROM tab1
----
1014
550
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2883
SELECT col2 * 92 DIV 11 - - col2 AS col2 FROM tab0
----
309
767
9

skipif mysql # not compatible
query I rowsort label-2883
SELECT col2 * 92 / 11 - - col2 AS col2 FROM tab0
----
309
767
9

query I rowsort
SELECT DISTINCT - col2 + 92 + 44 AS col2 FROM tab0
----
103
135
54

query I rowsort
SELECT + col0 * ( + tab0.col2 + - tab0.col2 ) AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 61 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 col0 FROM tab0, tab2 cor0
----
81

query I rowsort
SELECT ALL col2 + + ( 10 ) * col0 AS col1 FROM tab2 cor0
----
806
828
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2889
SELECT DISTINCT col0 DIV - 54 AS col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT col0 / - 54 AS col1 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT col1 * + col1 * - col1 FROM tab0
----
-636056
-753571
-912673

query I rowsort
SELECT ALL + col0 * + col0 + col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT ALL + col2 + + col0 + col1 FROM tab2
----
134
163
65

query I rowsort
SELECT + + col2 * col0 - - cor0.col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - col0 * 24 + cor0.col2 FROM tab0 AS cor0
----
-2054
-543
-839

query I rowsort
SELECT 82 * - 75 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 00d5f58a043c78ec68838f67040c3d9f

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT - ( + col2 * col1 + + col1 ) AS col2 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT ( + col0 ) * tab0.col2 * + tab0.col1 AS col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT col0 * - 53 AS col1 FROM tab2
----
-371
-4134
-4187

query I rowsort
SELECT DISTINCT ( + col1 * - col0 ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + - ( col0 ) + cor0.col0 * col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT col1 * - ( + col0 * - col1 ) AS col0 FROM tab2
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-2903
SELECT - + 54 DIV - 84 + col1 + col0 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-2903
SELECT - + 54 / - 84 + col1 + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - ( col2 ) * col2 * col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-2905
SELECT ( + 51 ) DIV + col1 + col2 + + col0 col1 FROM tab1 AS cor0
----
126
179
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2905
SELECT ( + 51 ) / + col1 + col2 + + col0 col1 FROM tab1 AS cor0
----
126
179
58

query I rowsort
SELECT - tab1.col2 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT 63 + tab1.col2 FROM tab1
----
117
120
159

query I rowsort
SELECT + tab2.col0 + col2 * + col0 AS col1 FROM tab2
----
196
2106
3081

query I rowsort
SELECT DISTINCT + - cor0.col1 - + col2 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2910
SELECT ALL + cor0.col0 DIV 58 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL + cor0.col0 / 58 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

query I rowsort
SELECT 7 + - col2 * col2 AS col2 FROM tab2 cor0
----
-1437
-669
-722

query I rowsort
SELECT DISTINCT col0 + col2 - col0 AS col1 FROM tab1 cor0
----
54
57
96

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 - + col0 * - 74 + - col2 AS col1 FROM tab2 cor0
----
491
5746
5808

query I rowsort
SELECT ALL col2 * + col1 * + col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2916
SELECT - + col1 * - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-2916
SELECT - + col1 * - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL col0 * 56 AS col1 FROM tab2 AS cor0
----
392
4368
4424

query I rowsort
SELECT DISTINCT - - col1 * col2 + + cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
1619
701
895

query I rowsort
SELECT + col1 * - tab1.col1 * - col1 + - col2 * + col2 AS col2 FROM tab1
----
-2249
-7019
14660

query I rowsort
SELECT - - col1 * + ( - cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2921
SELECT DISTINCT + col2 DIV col0 - col2 * + 60 col2 FROM tab0
----
-1979
-4920
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT + col2 / col0 - col2 * + 60 col2 FROM tab0
----
-1979
-4920
-60

query I rowsort
SELECT DISTINCT cor0.col0 * 64 FROM tab2, tab2 cor0
----
448
4992
5056

query I rowsort
SELECT DISTINCT 8 - + col2 FROM tab1
----
-46
-49
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-2924
SELECT DISTINCT - tab2.col1 DIV col0 AS col2 FROM tab2
----
-4
0

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT - tab2.col1 / col0 AS col2 FROM tab2
----
-4
0

query I rowsort
SELECT - + 36 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1368
-936
-972

query I rowsort
SELECT + 56 * col0 AS col2 FROM tab1 AS cor0
----
168
3584
4480

query I rowsort
SELECT col1 + ( - col0 ) + - col2 AS col0 FROM tab1 AS cor0
----
-111
-163
-31

query I rowsort
SELECT DISTINCT + col1 * 21 FROM tab2 AS cor0
----
1239
357
651

query I rowsort
SELECT DISTINCT - col2 * col0 * - col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + + col2 * 42 FROM tab0 AS cor0
----
1386
3444
42

query I rowsort
SELECT DISTINCT 67 - col0 AS col2 FROM tab2
----
-11
-12
60

query I rowsort
SELECT ALL + col2 + col0 - col0 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT col0 * - col1 + - col2 * - col1 * col0 + + col2 * col2 FROM tab2
----
115726
51135
6371

onlyif mysql # use DIV operator for integer division
query I rowsort label-2934
SELECT tab0.col0 DIV col2 AS col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2934
SELECT tab0.col0 / col2 AS col2 FROM tab0
----
0
1
35

query I rowsort
SELECT + 59 * col1 FROM tab1
----
1534
590
767

query I rowsort
SELECT DISTINCT ( + col1 ) * - cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * 75 col2 FROM tab0 AS cor0
----
-1800
-2625
-6675

query I rowsort
SELECT - 22 + - cor0.col0 * col0 FROM tab2 AS cor0
----
-6106
-6263
-71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2939
SELECT ALL + CAST( NULL AS DECIMAL ) + - 79 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + CAST ( NULL AS REAL ) + - 79 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col1 ) col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + + 8 + col0 AS col1 FROM tab1 cor0
----
11
72
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-2942
SELECT col0 + + 16 DIV + col1 col2 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2942
SELECT col0 + + 16 / + col1 col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col0 * col0 + - col2 AS col0 FROM tab2
----
22
6058
6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-2944
SELECT ALL + col0 * - tab1.col0 DIV + col0 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL + col0 * - tab1.col0 / + col0 FROM tab1
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2945
SELECT - - CAST( 77 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
4158
4389
7392

skipif mysql # not compatible
query I rowsort label-2945
SELECT - - CAST ( 77 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
4158
4389
7392

query I rowsort
SELECT + 56 * col2 * - col2 FROM tab0 AS cor0
----
-376544
-56
-60984

onlyif mysql # use DIV operator for integer division
query I rowsort label-2947
SELECT - ( + col0 ) DIV + col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-2947
SELECT - ( + col0 ) / + col2 FROM tab0 AS cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 * col1 * tab2.col0 col0 FROM tab2
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-2949
SELECT + 46 + col0 DIV col1 FROM tab0 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-2949
SELECT + 46 + col0 / col1 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT ALL + tab2.col1 + col0 * tab2.col2 + + 44 FROM tab2
----
2131
264
3063

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * cor0.col1 col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + col1 + + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL + col2 * + col1 + - ( col1 * - cor0.col2 + + col2 ) FROM tab2 AS cor0
----
1254
1647
3042

query I rowsort
SELECT col2 + col0 * + 49 FROM tab0 AS cor0
----
1209
1716
4443

query I rowsort
SELECT ALL + col2 + col1 - - col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT ALL + ( - col2 + col0 ) FROM tab2
----
-20
41
52

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-2958
SELECT - - 50 * col2 DIV - col0 FROM tab2 AS cor0
----
-16
-192
-24

skipif mysql # not compatible
query I rowsort label-2958
SELECT - - 50 * col2 / - col0 FROM tab2 AS cor0
----
-16
-192
-24

query I rowsort
SELECT ALL + ( cor0.col0 ) + - 54 * + 95 FROM tab1 AS cor0
----
-5050
-5066
-5127

query I rowsort
SELECT - 78 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT DISTINCT 48 + col1 FROM tab0 AS cor0
----
134
139
145

query I rowsort
SELECT DISTINCT ( cor0.col0 ) + 82 FROM tab2 AS cor0
----
160
161
89

query I rowsort
SELECT - 2 + - col1 FROM tab1 AS cor0
----
-12
-15
-28

onlyif mysql # use DIV operator for integer division
query I rowsort label-2964
SELECT + 52 DIV - col0 AS col2 FROM tab2 AS cor0
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-2964
SELECT + 52 / - col0 AS col2 FROM tab2 AS cor0
----
-7
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2965
SELECT DISTINCT + 23 DIV cor0.col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT + 23 / cor0.col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 * col1 * - 64 FROM tab0 AS cor0
----
132096
217280
518336

query I rowsort
SELECT ALL + 26 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-442
-806

query I rowsort
SELECT DISTINCT col1 * cor0.col0 + - 63 FROM tab2 AS cor0
----
1280
154
4539

query I rowsort
SELECT ALL - col0 * + col0 + + col0 * + col1 AS col0 FROM tab2
----
-1482
-4898
168

query I rowsort
SELECT - col2 + ( 64 ) FROM tab0 AS cor0
----
-18
31
63

query I rowsort
SELECT - + col2 * + col1 + + ( - col2 ) * + col0 FROM tab2 AS cor0
----
-1026
-3562
-3648

query I rowsort
SELECT DISTINCT + cor0.col0 * ( col2 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + col2 * ( 54 ) FROM tab2 AS cor0
----
1404
1458
2052

query I rowsort
SELECT col2 * col2 + - col0 * - col1 FROM tab1 AS cor0
----
10256
2994
3889

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2975
SELECT + col0 / ( 32 ) - col0 * CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT + col0 / ( 32 ) - col0 * CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 64 * col2 * col2 FROM tab1 AS cor0
----
186624
207936
589824

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2977
SELECT ALL - CAST( - col0 AS SIGNED ) * cor0.col2 + - col0 * + 77 + col1 AS col2 FROM tab1 AS cor0
----
-1270
-43
1533

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL - CAST ( - col0 AS INTEGER ) * cor0.col2 + - col0 * + 77 + col1 AS col2 FROM tab1 AS cor0
----
-1270
-43
1533

query I rowsort
SELECT ALL + + ( + 98 ) FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT ALL - col1 + 79 * - col0 FROM tab2 cor0
----
-584
-6221
-6258

onlyif mysql # use DIV operator for integer division
query I rowsort label-2980
SELECT ALL - 36 DIV - col1 - col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL - 36 / - col1 - col0 FROM tab2 AS cor0
----
-6
-77
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2981
SELECT DISTINCT + cor0.col1 * + col1 - + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
7395
8280
9408

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT + cor0.col1 * + col1 - + col2 / col2 AS col2 FROM tab0 AS cor0
----
7395
8280
9408

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 61 AS REAL ) * col0 + ( + cor0.col0 ) FROM tab1 cor0
----
-180
-3840
-4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col0 col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - 98 + + col1 FROM tab0 AS cor0
----
-1
-12
-7

query I rowsort
SELECT ( - col1 ) + - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL + col2 * - col0 * col2 + + col1 FROM tab2
----
-114059
-5072
-52669

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2987
SELECT col0 * CAST( col2 AS SIGNED ) * - col0 FROM tab1
----
-233472
-486
-614400

skipif mysql # not compatible
query I rowsort label-2987
SELECT col0 * CAST ( col2 AS INTEGER ) * - col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT - col2 + - 18 AS col1 FROM tab2 AS cor0
----
-44
-45
-56

query I rowsort
SELECT + - 46 * col0 + col0 * col1 AS col1 FROM tab1 cor0
----
-2304
-2640
-60

query I rowsort
SELECT col0 + - tab0.col2 * - tab0.col0 * col2 AS col0 FROM tab0
----
26160
598525
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL + cor0.col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col1 + 43 FROM tab0
----
-43
-48
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-2994
SELECT DISTINCT + col2 + col2 + 40 DIV tab1.col1 FROM tab1
----
109
118
195

skipif mysql # not compatible
query I rowsort label-2994
SELECT DISTINCT + col2 + col2 + 40 / tab1.col1 FROM tab1
----
109
118
195

query I rowsort
SELECT ALL - 13 * cor0.col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c757a909c9f199265244331bf681efdb

query I rowsort
SELECT DISTINCT + col0 + 98 AS col2 FROM tab1 AS cor0
----
101
162
178

query I rowsort
SELECT ALL - 39 + col0 * col0 FROM tab1 AS cor0
----
-30
4057
6361

query I rowsort
SELECT ALL - ( col0 ) * col2 + + 22 FROM tab0 AS cor0
----
-13
-7276
-770

query I rowsort
SELECT ALL - 54 * + col1 * - col0 FROM tab0 AS cor0
----
111456
183330
437346

query I rowsort
SELECT ( col2 ) - col1 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3001
SELECT DISTINCT - CAST( - 54 AS SIGNED ) * - col1 AS col1 FROM tab0 AS cor0
----
-4644
-4914
-5238

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT - CAST ( - 54 AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0
----
-4644
-4914
-5238

query I rowsort
SELECT col1 * - 13 + col2 FROM tab0 AS cor0
----
-1085
-1101
-1260

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( col2 AS REAL ) * col2 + 46 + - 22 / col1 col0 FROM tab1 AS cor0
----
-2870
-3205
-9171

query I rowsort
SELECT 19 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT - + ( - col1 ) * + col2 * + col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL + + 56 + col0 FROM tab2 AS cor0
----
134
135
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * cor0.col0 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 - - col0 col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT 41 + - col0 FROM tab2 cor0
----
-37
-38
34

query I rowsort
SELECT ALL - 68 + col0 AS col0 FROM tab1 AS cor0
----
-4
-65
12

query I rowsort
SELECT + - 20 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-19
13
62

query I rowsort
SELECT ALL - col0 * col0 * + col0 AS col1 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT ALL + + col2 - + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3014
SELECT ALL - col0 + + col0 * - CAST( - col2 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-1330
-158262
-237237

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL - col0 + + col0 * - CAST ( - col2 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-1330
-158262
-237237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 91 * col2 + col1 * col2 col1 FROM tab2 AS cor0
----
-1620
-2812
-832

query I rowsort
SELECT DISTINCT + cor0.col2 + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT - ( col1 ) * - 0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 29 + col0 FROM tab0 AS cor0
----
-5
6
60

query I rowsort
SELECT - col1 + ( - col2 ) * + col0 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT ALL + col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT 71 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT + col2 * + tab2.col0 * + col2 + 51 FROM tab2
----
114127
5154
52779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( - col1 * col0 + cor0.col2 ) col1 FROM tab2 AS cor0
----
103095
1330
356928

onlyif mysql # use DIV operator for integer division
query I rowsort label-3024
SELECT + col2 DIV 76 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3024
SELECT + col2 / 76 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + col0 * 70 AS col0 FROM tab2 AS cor0
----
521
5519
5547

query I rowsort
SELECT + + cor0.col0 * 55 FROM tab2 cor0
----
385
4290
4345

query I rowsort
SELECT - col1 * - col0 * + cor0.col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - col2 * + ( - col1 + + col2 ) FROM tab1 AS cor0
----
-1512
-2679
-7968

query I rowsort
SELECT - 25 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT + col1 * 12 FROM tab2 AS cor0
----
204
372
708

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3031
SELECT ALL + CAST( 20 AS SIGNED ) FROM tab2 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL + CAST ( 20 AS INTEGER ) FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT + + 74 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT DISTINCT col1 * - ( + col2 ) AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT 71 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT + col2 * - col2 + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-14823
-3153
-3396

query I rowsort
SELECT col0 * - cor0.col2 + col2 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-14022
-1881
-36

query I rowsort
SELECT col2 + + col1 * - cor0.col1 FROM tab1 cor0
----
-43
-622
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-3038
SELECT - col2 * + col2 * + col0 + + 95 DIV cor0.col0 + + 35 FROM tab2 AS cor0
----
-114040
-5055
-52692

skipif mysql # not compatible
query I rowsort label-3038
SELECT - col2 * + col2 * + col0 + + 95 / cor0.col0 + + 35 FROM tab2 AS cor0
----
-114040
-5055
-52692

query I rowsort
SELECT DISTINCT + 91 + + col1 FROM tab2
----
108
122
150

query I rowsort
SELECT - cor0.col1 + ( - cor0.col0 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to daf01be24671583522e54ae801342b76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3041
SELECT DISTINCT - ( col1 ) DIV 42 AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT - ( col1 ) / 42 AS col0 FROM tab0
----
-2

query I rowsort
SELECT DISTINCT + 78 AS col0 FROM tab0
----
78

query I rowsort
SELECT DISTINCT ( col2 + - 53 ) * 98 AS col0 FROM tab0
----
-1960
-5096
2842

query I rowsort
SELECT - cor0.col2 * cor0.col1 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3045
SELECT + 49 + col0 DIV - tab0.col2 AS col1 FROM tab0
----
14
48
49

skipif mysql # not compatible
query I rowsort label-3045
SELECT + 49 + col0 / - tab0.col2 AS col1 FROM tab0
----
14
48
49

query I rowsort
SELECT + - 31 + - col1 AS col1 FROM tab0 AS cor0
----
-117
-122
-128

query I rowsort
SELECT + ( col0 ) + 9 AS col1 FROM tab1
----
12
73
89

query I rowsort
SELECT ALL - ( - col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3049
SELECT - col0 DIV - col1 AS col1 FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3049
SELECT - col0 / - col1 AS col1 FROM tab2 cor0
----
0
1
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3050
SELECT ALL CAST( - 19 AS SIGNED ) AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL CAST ( - 19 AS INTEGER ) AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

query I rowsort
SELECT DISTINCT + + col0 * + cor0.col1 * 64 FROM tab0 AS cor0
----
132096
217280
518336

onlyif mysql # use DIV operator for integer division
query I rowsort label-3052
SELECT + col0 + + cor0.col1 DIV col0 AS col0 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-3052
SELECT + col0 + + cor0.col1 / col0 AS col0 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT ALL col1 + 25 FROM tab2
----
42
56
84

query I rowsort
SELECT - + col0 + + 6 AS col1 FROM tab1 AS cor0
----
-58
-74
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3055
SELECT - - col0 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT - - col0 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3056
SELECT DISTINCT - col1 + 81 DIV col2 - + ( col0 ) FROM tab0 AS cor0
----
-108
-180
-51

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT - col1 + 81 / col2 - + ( col0 ) FROM tab0 AS cor0
----
-108
-180
-51

onlyif mysql # use DIV operator for integer division
query I rowsort label-3057
SELECT ALL - ( 92 ) DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL - ( 92 ) / - cor0.col1 AS col0 FROM tab1 AS cor0
----
3
7
9

query I rowsort
SELECT DISTINCT - col2 + - 83 AS col2 FROM tab2 cor0
----
-109
-110
-121

query I rowsort
SELECT + 74 + ( cor0.col1 * + ( - col2 ) ) FROM tab0 AS cor0
----
-23
-2764
-7388

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 * col1 AS col0 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT 77 AS col0 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT - col2 * 53 * + col2 FROM tab2
----
-35828
-38637
-76532

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3063
SELECT ALL CAST( col0 AS SIGNED ) + col0 + cor0.col2 * 34 FROM tab0 AS cor0
----
104
1170
2966

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL CAST ( col0 AS INTEGER ) + col0 + cor0.col2 * 34 FROM tab0 AS cor0
----
104
1170
2966

query I rowsort
SELECT + 33 * col2 AS col1 FROM tab2 cor0
----
1254
858
891

query I rowsort
SELECT ALL ( 33 ) * + col0 - col0 FROM tab1 AS cor0
----
2048
2560
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col0 + - col1 * 92 + - col2 col1 FROM tab0 AS cor0
----
-10150
-16375
-8521

onlyif mysql # use DIV operator for integer division
query I rowsort label-3067
SELECT - - col2 + + 91 DIV col0 FROM tab2 AS cor0
----
27
39
40

skipif mysql # not compatible
query I rowsort label-3067
SELECT - - col2 + + 91 / col0 FROM tab2 AS cor0
----
27
39
40

query I rowsort
SELECT ALL col1 + col0 - col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - ( + 74 ) * - col1 FROM tab2 cor0
----
1258
2294
4366

query I rowsort
SELECT DISTINCT - 15 FROM tab1, tab0 AS cor0
----
-15

query I rowsort
SELECT ALL + ( cor0.col1 ) * col1 + + col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL col1 * + 74 - - col2 FROM tab2 AS cor0
----
1296
2321
4392

query I rowsort
SELECT col1 * 29 + - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2162
-2959
-8839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3074
SELECT - CAST( NULL AS SIGNED ) - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3074
SELECT - CAST ( NULL AS INTEGER ) - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 41 + + col2 * col2 FROM tab1
----
2957
3290
9257

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col0 AS REAL ) + - col2 * + col0 AS col0 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT ALL 41 * + 24 AS col2 FROM tab0
----
984
984
984

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab2, tab1, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT 54 * cor0.col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to e2d105f105e8977bcd92361971db0df0

query I rowsort
SELECT ALL 42 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT ALL + col2 * - col1 * - col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - col1 * ( 9 ) * col1 AS col1 FROM tab0 AS cor0
----
-66564
-74529
-84681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 * - col1 col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-3084
SELECT ALL + col0 DIV + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL + col0 / + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-62
-86
-90

query I rowsort
SELECT DISTINCT + ( + col1 ) * tab2.col1 FROM tab2
----
289
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3086
SELECT ALL + tab2.col0 + CAST( + 57 AS SIGNED ) AS col1 FROM tab2
----
135
136
64

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL + tab2.col0 + CAST ( + 57 AS INTEGER ) AS col1 FROM tab2
----
135
136
64

query I rowsort
SELECT ALL - + col1 + 65 * col2 FROM tab1 AS cor0
----
3484
3695
6227

query I rowsort
SELECT cor0.col1 * 74 - + col1 * col2 AS col1 FROM tab2 AS cor0
----
1457
2832
612

query I rowsort
SELECT + - cor0.col0 + 85 AS col0 FROM tab1 AS cor0
----
21
5
82

query I rowsort
SELECT - + col0 * - ( - 95 ) + - col1 + - 79 FROM tab0 AS cor0
----
-2445
-3501
-8625

query I rowsort
SELECT ALL col0 * + 42 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-172032
-268800
-378

query I rowsort
SELECT ALL - col2 + col0 * col2 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT col1 + + 59 * + col0 AS col2 FROM tab2 AS cor0
----
444
4661
4678

query I rowsort
SELECT DISTINCT col0 + - 28 AS col1 FROM tab1 AS cor0
----
-25
36
52

query I rowsort
SELECT DISTINCT - + col2 + ( + cor0.col1 ) * + cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
177471
329314
736927

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - cor0.col1 col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL col0 * + 62 AS col0 FROM tab2 AS cor0
----
434
4836
4898

query I rowsort
SELECT cor0.col2 + + col0 AS col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - cor0.col0 + cor0.col1 * + col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT + col2 * 34 AS col1 FROM tab0
----
1122
2788
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3101
SELECT DISTINCT tab1.col1 DIV - tab1.col0 FROM tab1
----
-8
0

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT tab1.col1 / - tab1.col0 FROM tab1
----
-8
0

query I rowsort
SELECT cor1.col2 AS col0 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ( 91 * + col2 ) + + col2 AS col0 FROM tab0
----
3036
7544
92

query I rowsort
SELECT + 29 + + tab1.col2 FROM tab1
----
125
83
86

query I rowsort
SELECT DISTINCT 80 * col2 AS col0 FROM tab0 cor0
----
2640
6560
80

query I rowsort
SELECT + 65 * + cor0.col1 FROM tab0 AS cor0
----
5590
5915
6305

query I rowsort
SELECT ALL - ( - 14 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col0 * col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT 55 + col1 * + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-23
-585
-985

query I rowsort
SELECT ( - 7 ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT DISTINCT col0 + + 75 * - col2 FROM tab0
----
-2451
-40
-6061

query I rowsort
SELECT DISTINCT + col0 + 24 + col0 FROM tab0 AS cor0
----
202
72
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT - + col2 DIV + col0 + cor0.col2 FROM tab1 AS cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-3113
SELECT - + col2 / + col0 + cor0.col2 FROM tab1 AS cor0
----
36
57
95

query I rowsort
SELECT ALL - + cor0.col1 + + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - ( + 33 ) AS col1 FROM tab2 AS cor0
----
-33
-33
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * cor0.col1 + col1 col2 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + ( + 20 ) FROM tab1 AS cor0
----
20

query I rowsort
SELECT + ( cor0.col1 ) + 27 FROM tab2, tab1 AS cor0
----
9 values hashing to 448aa4b975eb2a1a6146022537ad7dbd

query I rowsort
SELECT - - col1 + 9 * + col1 AS col2 FROM tab1 AS cor0
----
100
130
260

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 8e88b3a69c24fc01553b0c32bf7748d0

query I rowsort
SELECT DISTINCT + - ( col0 ) + col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT DISTINCT - ( + col1 ) * + col1 + col2 + + 14 FROM tab2 AS cor0
----
-237
-3441
-920

query I rowsort
SELECT - cor0.col1 * + 74 + + col2 FROM tab0 AS cor0
----
-6331
-6652
-7177

query I rowsort
SELECT ALL col1 + 46 AS col2 FROM tab0 AS cor0
----
132
137
143

query I rowsort
SELECT 21 AS col1 FROM tab0, tab1 cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 4eecc28c48bfdf162a585f11d1dd0b6c

query I rowsort
SELECT - + 26 + 73 * col2 FROM tab2 AS cor0
----
1872
1945
2748

query I rowsort
SELECT col0 * - 82 + col1 * 53 AS col2 FROM tab2 AS cor0
----
-3269
-5577
1069

query I rowsort
SELECT + col2 * + ( + 15 ) AS col0 FROM tab2 AS cor0
----
390
405
570

query I rowsort
SELECT - - col1 + - ( - 12 ) FROM tab1 AS cor0
----
22
25
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3130
SELECT DISTINCT + + col2 + + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-3130
SELECT DISTINCT + + col2 + + col2 / col1 AS col1 FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT col0 + col1 * col1 + - col0 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT col2 - ( col0 + + cor0.col1 ) FROM tab2 cor0
----
-11
-111
-58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3133
SELECT DISTINCT col1 + - ( - 11 * - tab0.col1 ) + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT col1 + - ( - 11 * - tab0.col1 ) + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 + + col0 col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT 54 * - cor0.col2 FROM tab1 AS cor0
----
-2916
-3078
-5184

query I rowsort
SELECT + 86 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT col2 * - ( col2 ) * + tab2.col0 FROM tab2
----
-114076
-5103
-52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3138
SELECT - tab1.col0 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT - tab1.col0 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT cor1.col1 * cor0.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to b80ce76f8664310580a5197b3984e0f7

query I rowsort
SELECT ALL - - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * 39 * + col2 + col2 col2 FROM tab0 AS cor0
----
110715
291100
3784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 * col0 col1 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3143
SELECT - CAST( NULL AS SIGNED ) * 96 + + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3143
SELECT - CAST ( NULL AS INTEGER ) * 96 + + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col1 * col2 + - col1 * 40 FROM tab2
----
-34
-403
-826

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3145
SELECT ALL + col2 * CAST( - col1 AS SIGNED ) + + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL + col2 * CAST ( - col1 AS INTEGER ) + + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL col0 + col2 * + 16 FROM tab0 AS cor0
----
1401
51
552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 18 * col0 col1 FROM tab0 AS cor0
----
1684
465
631

onlyif mysql # use DIV operator for integer division
query I rowsort label-3148
SELECT ALL + col0 DIV col1 + 96 FROM tab1 AS cor0
----
102
102
96

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL + col0 / col1 + 96 FROM tab1 AS cor0
----
102
102
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3149
SELECT col2 + CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT col2 + CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - cor0.col1 * tab2.col0 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to c42d62a12ef524ac9c406f441b8c8a7e

query I rowsort
SELECT ( col1 ) + tab0.col2 - - 46 FROM tab0
----
144
165
219

query I rowsort
SELECT + 15 + + col1 + + col0 FROM tab2
----
111
152
53

query I rowsort
SELECT - - col2 * + 35 FROM tab2 AS cor0
----
1330
910
945

query I rowsort
SELECT 0 + col0 AS col1 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3155
SELECT - + 5 DIV col1 + + CAST( 6 AS SIGNED ) FROM tab2 cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-3155
SELECT - + 5 / col1 + + CAST ( 6 AS INTEGER ) FROM tab2 cor0
----
6
6
6

query I rowsort
SELECT DISTINCT - 52 * col0 + ( col1 + + col2 ) AS col0 FROM tab0 cor0
----
-1129
-1722
-4455

query I rowsort
SELECT col0 + - col2 * 62 AS col0 FROM tab1 AS cor0
----
-3345
-3470
-5872

query I rowsort
SELECT col2 + col0 * - 55 FROM tab0 AS cor0
----
-1287
-1924
-4813

query I rowsort
SELECT + - col1 + cor0.col2 AS col2 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT cor0.col1 * col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3161
SELECT + 46 DIV - tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3161
SELECT + 46 / - tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL - ( col0 * - col0 + col2 ) AS col1 FROM tab0
----
1224
543
7839

query I rowsort
SELECT - - col0 * + col2 - + col2 AS col2 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-3164
SELECT ALL - ( - col2 ) + - col0 DIV col0 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL - ( - col2 ) + - col0 / col0 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT 23 * col1 + - cor0.col0 FROM tab0 cor0
----
1954
2004
2196

query I rowsort
SELECT ALL + - 89 + cor0.col1 FROM tab2 AS cor0
----
-30
-58
-72

query I rowsort
SELECT ALL - col2 + col1 * col2 * col1 FROM tab1
----
16128
36450
5643

onlyif mysql # use DIV operator for integer division
query I rowsort label-3168
SELECT + col0 - col0 DIV + col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-3168
SELECT + col0 - col0 / + col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT - 90 * col2 * col2 + col1 FROM tab1 AS cor0
----
-262414
-292400
-829427

query I rowsort
SELECT - col0 * - col1 + 58 AS col2 FROM tab2 AS cor0
----
1401
275
4660

query I rowsort
SELECT - ( + col0 ) + ( col1 ) AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + ( + col2 ) + col0 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - ( ( + col0 ) + + ( 71 ) ) col2 FROM tab0 cor0
----
-14240
-2280
-3710

query I rowsort
SELECT + - col1 + + 73 FROM tab2 AS cor0
----
14
42
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-3175
SELECT ALL + col2 + + ( col2 ) DIV col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL + col2 + + ( col2 ) / col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT col0 + - col1 + 64 FROM tab2 AS cor0
----
126
40
83

query I rowsort
SELECT DISTINCT + - col1 * + 28 - - 64 AS col0 FROM tab1 AS cor0
----
-216
-300
-664

onlyif mysql # use DIV operator for integer division
query I rowsort label-3178
SELECT 54 DIV col0 - + 27 DIV + 65 FROM tab2
----
0
0
7

skipif mysql # not compatible
query I rowsort label-3178
SELECT 54 / col0 - + 27 / + 65 FROM tab2
----
0
0
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3179
SELECT - 29 + col0 DIV col0 AS col2 FROM tab0
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-3179
SELECT - 29 + col0 / col0 AS col2 FROM tab0
----
-28
-28
-28

onlyif mysql # use DIV operator for integer division
query I rowsort label-3180
SELECT DISTINCT col2 DIV + col0 + - col2 * + tab1.col0 AS col2 FROM tab1
----
-144
-3648
-7679

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT col2 / + col0 + - col2 * + tab1.col0 AS col2 FROM tab1
----
-144
-3648
-7679

query I rowsort
SELECT - 22 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

query I rowsort
SELECT DISTINCT 78 + col1 FROM tab2
----
109
137
95

query I rowsort
SELECT DISTINCT - tab0.col2 + - col0 AS col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT 81 + + col1 FROM tab1
----
107
91
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 + col1 col1 FROM tab2 AS cor0
----
-36
-50
-8

query I rowsort
SELECT + cor0.col1 * - col0 * + col1 FROM tab1 cor0
----
-13520
-2028
-6400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3187
SELECT ALL - + CAST( NULL AS SIGNED ) * - col2 + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL - + CAST ( NULL AS INTEGER ) * - col2 + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3188
SELECT + 48 DIV 1 AS col1 FROM tab1 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-3188
SELECT + 48 / 1 AS col1 FROM tab1 AS cor0
----
48
48
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-3189
SELECT cor0.col2 DIV - 7 FROM tab0 AS cor0
----
-11
-4
0

skipif mysql # not compatible
query I rowsort label-3189
SELECT cor0.col2 / - 7 FROM tab0 AS cor0
----
-11
-4
0

query I rowsort
SELECT ALL - - col0 * 96 FROM tab2 AS cor0
----
672
7488
7584

query I rowsort
SELECT DISTINCT + ( - col2 ) + col1 FROM tab2 cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3192
SELECT + - 14 DIV + 26 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3192
SELECT + - 14 / + 26 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * 96 AS col1 FROM tab0
----
8256
8736
9312

query I rowsort
SELECT - 98 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f

query I rowsort
SELECT ALL 9 AS col1 FROM tab2 AS cor0
----
9
9
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3196
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 56 * ( + col0 ) FROM tab0
----
-115584
-190120
-453544

query I rowsort
SELECT ALL - + 34 AS col2 FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT ALL - ( - col1 + + col1 ) * + 16 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3200
SELECT DISTINCT + col1 * + col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT + col1 * + col0 / + col0 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT col0 + ( + col2 ) AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT col0 * 50 AS col0 FROM tab1
----
150
3200
4000

query I rowsort
SELECT + col0 * col2 + - col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT + + col1 * 61 AS col1 FROM tab0 cor0
----
5246
5551
5917

query I rowsort
SELECT + col2 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3206
SELECT CAST( + cor0.col1 AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif mysql # not compatible
query I rowsort label-3206
SELECT CAST ( + cor0.col1 AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 * + col0 col2 FROM tab2 AS cor0
----
-350
-3900
-3950

query I rowsort
SELECT + 65 * + col0 + - 26 AS col1 FROM tab2 AS cor0
----
429
5044
5109

query I rowsort
SELECT DISTINCT - ( col0 ) + col0 AS col2 FROM tab2 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3210
SELECT ALL + - cor0.col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL + - cor0.col0 / col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col1 col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + ( col1 ) + - 9 + col0 * - col1 FROM tab1 cor0
----
-1036
-61
-639

query I rowsort
SELECT ALL + 21 + + col0 * col2 + - col1 AS col1 FROM tab1
----
157
3659
7688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 64 + col2 col0 FROM tab2
----
-1638
-1701
-2394

query I rowsort
SELECT - 9 FROM tab1, tab1 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT col0 + col0 * col0 * col2 + col2 FROM tab1
----
233593
543
614576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + tab2.col1 * - tab2.col1 col1 FROM tab2
----
-272
-3422
-930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3218
SELECT ( - col0 * + col2 ) + + CAST( col2 AS SIGNED ) FROM tab2
----
-162
-2002
-2964

skipif mysql # not compatible
query I rowsort label-3218
SELECT ( - col0 * + col2 ) + + CAST ( col2 AS INTEGER ) FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT - col1 * col1 * col2 + + col2 FROM tab2
----
-10944
-25920
-90480

query I rowsort
SELECT 69 + + col0 AS col0 FROM tab0
----
104
158
93

query I rowsort
SELECT + - col2 * - col1 + + ( + 55 ) + - col0 FROM tab1 cor0
----
1223
1456
561

query I rowsort
SELECT DISTINCT + - 23 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT ( col1 ) * + col0 + - col2 * col1 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT col1 * + col2 * + 94 FROM tab2
----
144196
60724
78678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 + + col2 * col2 + col1 col2 FROM tab1 AS cor0
----
2266
3159
9060

onlyif mysql # use DIV operator for integer division
query I rowsort label-3226
SELECT col0 DIV 48 + 66 + col2 AS col2 FROM tab1 AS cor0
----
120
124
163

skipif mysql # not compatible
query I rowsort label-3226
SELECT col0 / 48 + 66 + col2 AS col2 FROM tab1 AS cor0
----
120
124
163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * - 99 + col0 * + col2 col2 FROM tab2 AS cor0
----
-4740
-497
-5616

query I rowsort
SELECT col1 + + 78 + + col0 AS col0 FROM tab1 AS cor0
----
107
152
171

query I rowsort
SELECT ALL col2 * - col0 * - col1 FROM tab1
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3230
SELECT + tab1.col1 DIV col1 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3230
SELECT + tab1.col1 / col1 AS col1 FROM tab1
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3231
SELECT ALL tab0.col1 + CAST( NULL AS DECIMAL ) * 69 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL tab0.col1 + CAST ( NULL AS REAL ) * 69 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3232
SELECT DISTINCT + col2 DIV + col1 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT + col2 / + col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL + cor0.col0 * ( 7 ) FROM tab0, tab0 AS cor0
----
9 values hashing to eb8e4907382073cf46d4e4e322830309

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col2 FROM tab0
----
-61
-61
-61

query I rowsort
SELECT ( + cor0.col2 ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT col2 + col0 * + col1 + col0 AS col1 FROM tab0
----
2121
3431
8270

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3237
SELECT - col1 - - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3237
SELECT - col1 - - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3238
SELECT ALL col1 + + tab1.col0 DIV col0 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL col1 + + tab1.col0 / col0 FROM tab1
----
11
14
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-3239
SELECT - - cor0.col0 DIV 34 AS col2 FROM tab2 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-3239
SELECT - - cor0.col0 / 34 AS col2 FROM tab2 AS cor0
----
0
2
2

query I rowsort
SELECT + - col0 * - col0 + - 86 + cor0.col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1327
4580
7562

query I rowsort
SELECT col1 + cor0.col2 - - cor0.col0 FROM tab2 AS cor0
----
134
163
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3242
SELECT - col0 + - CAST( NULL AS SIGNED ) * 93 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT - col0 + - CAST ( NULL AS INTEGER ) * 93 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 8 + 26 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3244
SELECT - CAST( - 72 AS SIGNED ) FROM tab0 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-3244
SELECT - CAST ( - 72 AS INTEGER ) FROM tab0 AS cor0
----
72
72
72

query I rowsort
SELECT 86 + + ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
140
143
182

onlyif mysql # use DIV operator for integer division
query I rowsort label-3246
SELECT + col1 * + col2 + + col1 * - col1 + + col1 DIV col0 AS col0 FROM tab2
----
-120
-1947
357

skipif mysql # not compatible
query I rowsort label-3246
SELECT + col1 * + col2 + + col1 * - col1 + + col1 / col0 AS col0 FROM tab2
----
-120
-1947
357

query I rowsort
SELECT col0 * col2 * + ( col1 ) + col2 AS col1 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT ALL + 55 * + 59 FROM tab2 AS cor0
----
3245
3245
3245

query I rowsort
SELECT - 1 * col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - col0 * + 2 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT 31 - + 26 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT col2 * - 89 + col1 FROM tab0 AS cor0
----
-2851
-7207
8

query I rowsort
SELECT ALL - ( + 43 ) FROM tab2 AS cor0
----
-43
-43
-43

query I rowsort
SELECT + - col2 - - col0 * col2 AS col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT - 71 * - 26 AS col0 FROM tab0 cor0
----
1846
1846
1846

query I rowsort
SELECT - - col2 + + 1 AS col0 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT + ( col0 ) * + col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL col0 * 78 + col1 + - col2 * + col1 FROM tab0 cor0
----
-429
-880
2730

query I rowsort
SELECT col1 * 97 AS col2 FROM tab2
----
1649
3007
5723

query I rowsort
SELECT DISTINCT - ( + col0 ) * cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + - 81 * + 33 - col0 FROM tab0 AS cor0
----
-2697
-2708
-2762

query I rowsort
SELECT DISTINCT - - cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - + 80 * + col1 - col1 FROM tab1 cor0
----
-1053
-2106
-810

query I rowsort
SELECT col2 - + 74 AS col2 FROM tab0 AS cor0
----
-41
-73
8

query I rowsort
SELECT ALL + cor0.col2 * - col2 + + col2 * - 52 AS col2 FROM tab2 AS cor0
----
-2028
-2133
-3420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3267
SELECT ALL 36 * cor0.col1 + - 5 DIV + col0 AS col2 FROM tab0 AS cor0
----
3096
3276
3492

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL 36 * cor0.col1 + - 5 / + col0 AS col2 FROM tab0 AS cor0
----
3096
3276
3492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 col0 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT ALL - - col0 - - col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - col0 * 68 + col1 FROM tab0
----
-1546
-2283
-5961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 * - col0 * + col2 col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT + col2 + col2 * 61 AS col2 FROM tab1
----
3348
3534
5952

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3274
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3275
SELECT tab2.col0 / - CAST( NULL AS SIGNED ) - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT tab2.col0 / - CAST ( NULL AS INTEGER ) - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + 51 AS col2 FROM tab2
----
357
3978
4029

query I rowsort
SELECT ALL - col2 + ( 9 ) * col1 - + 11 FROM tab2
----
104
241
494

query I rowsort
SELECT DISTINCT - 36 * - 6 FROM tab2, tab1 cor0
----
216

query I rowsort
SELECT DISTINCT + 96 AS col2 FROM tab2, tab0 AS cor0
----
96

query I rowsort
SELECT DISTINCT + tab1.col1 + + 68 AS col1 FROM tab1, tab1 cor0
----
78
81
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( col1 ) * + col2 col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + col1 - + col1 * col2 AS col2 FROM tab1
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - col0 + - 91 * - ( + col0 ) FROM tab1 AS cor0
----
270
5760
7200

onlyif mysql # use DIV operator for integer division
query I rowsort label-3285
SELECT DISTINCT + cor0.col2 + col1 DIV - 1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT + cor0.col2 + col1 / - 1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3286
SELECT CAST( NULL AS SIGNED ) * 37 * + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3286
SELECT CAST ( NULL AS INTEGER ) * 37 * + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3287
SELECT ALL - - CAST( col1 AS SIGNED ) DIV col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - - CAST ( col1 AS INTEGER ) / col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT ALL + ( + col1 ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - col1 * - 4 * + col1 AS col2 FROM tab1 AS cor0
----
2704
400
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT + - 1 + col2 AS col1 FROM tab0 AS cor0
----
0
32
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col1 col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT + - 23 * col2 * ( col1 ) + + col1 FROM tab2 AS cor0
----
-14841
-19220
-35223

query I rowsort
SELECT - 31 + - col1 FROM tab1 cor0
----
-41
-44
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3295
SELECT col2 * - col0 * col2 + + col0 DIV col0 FROM tab0 AS cor0
----
-26135
-34
-598435

skipif mysql # not compatible
query I rowsort label-3295
SELECT col2 * - col0 * col2 + + col0 / col0 FROM tab0 AS cor0
----
-26135
-34
-598435

onlyif mysql # use DIV operator for integer division
query I rowsort label-3296
SELECT DISTINCT - 77 * col1 * col0 + + 10 * col1 DIV col1 + 73 FROM tab2 AS cor0
----
-103328
-16626
-354271

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT - 77 * col1 * col0 + + 10 * col1 / col1 + 73 FROM tab2 AS cor0
----
-103328
-16626
-354271

query I rowsort
SELECT ALL - 45 * - col0 AS col1 FROM tab1 AS cor0
----
135
2880
3600

query I rowsort
SELECT + 1 + cor0.col0 FROM tab1 cor0
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3299
SELECT ALL + col0 DIV col1 + + 60 FROM tab0 AS cor0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL + col0 / col1 + + 60 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT ALL col1 * + 63 + - cor0.col1 * col1 FROM tab2 cor0
----
236
782
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-3301
SELECT DISTINCT col2 + 80 DIV 52 AS col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT col2 + 80 / 52 AS col0 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT - - col2 + 34 * col2 AS col2 FROM tab1 cor0
----
1890
1995
3360

onlyif mysql # use DIV operator for integer division
query I rowsort label-3303
SELECT ALL + - cor0.col0 DIV cor0.col0 + 53 AS col0 FROM tab2 AS cor0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL + - cor0.col0 / cor0.col0 + 53 AS col0 FROM tab2 AS cor0
----
52
52
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3304
SELECT DISTINCT col2 * ( + 82 ) - + col0 DIV 77 FROM tab0 AS cor0
----
2706
6723
82

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT col2 * ( + 82 ) - + col0 / 77 FROM tab0 AS cor0
----
2706
6723
82

query I rowsort
SELECT DISTINCT cor0.col0 + 36 AS col0 FROM tab0 AS cor0
----
125
60
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3306
SELECT 35 * col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3306
SELECT 35 * col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col0 FROM tab1, tab0, tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3308
SELECT ALL - col2 DIV + col2 col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL - col2 / + col2 col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col1 + ( + col0 ) AS col1 FROM tab1 cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3310
SELECT DISTINCT cor0.col1 * - CAST( NULL AS SIGNED ) * col1 + + col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT cor0.col1 * - CAST ( NULL AS INTEGER ) * col1 + + col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + col2 + - cor0.col2 * 94 FROM tab0 AS cor0
----
-3069
-7626
-93

query I rowsort
SELECT + col2 * + col0 + 0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + 83 + col0 * col0 AS col0 FROM tab0 cor0
----
1308
659
8004

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL + col2 * - cor0.col1 + + cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT + cor2.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT + col0 + col2 * 48 FROM tab0 AS cor0
----
1608
4025
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3318
SELECT DISTINCT 0 DIV - col2 + + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT 0 / - col2 + + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - col1 * + col2 + + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT - + col0 * 88 AS col2 FROM tab2 AS cor0
----
-616
-6864
-6952

query I rowsort
SELECT ALL + col2 * ( 38 * + col0 ) + col0 * col1 FROM tab1 AS cor0
----
139264
292880
6234

onlyif mysql # use DIV operator for integer division
query I rowsort label-3322
SELECT col1 * 5 DIV col1 + - col0 FROM tab1 cor0
----
-59
-75
2

skipif mysql # not compatible
query I rowsort label-3322
SELECT col1 * 5 / col1 + - col0 FROM tab1 cor0
----
-59
-75
2

query I rowsort
SELECT tab1.col1 * + col1 * - 31 + - 48 FROM tab1
----
-21004
-3148
-5287

query I rowsort
SELECT + - col0 + + 40 FROM tab0 AS cor0
----
-49
16
5

query I rowsort
SELECT + col0 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT tab2.col1 + - tab2.col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NULL <= col0
----

query I rowsort
SELECT ALL tab1.col1 + - tab1.col1 AS col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3329
SELECT col0 DIV col1 - col1 FROM tab2
----
-13
-31
-58

skipif mysql # not compatible
query I rowsort label-3329
SELECT col0 / col1 - col1 FROM tab2
----
-13
-31
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 * col2 col1 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT tab0.col2 AS col0 FROM tab0 WHERE NOT NULL BETWEEN col2 AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3332
SELECT DISTINCT - col2 DIV col0 + col1 FROM tab2
----
17
28
59

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT - col2 / col0 + col1 FROM tab2
----
17
28
59

query I rowsort
SELECT ALL col1 - - col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT tab0.col2 FROM tab0 WHERE NOT col1 NOT IN ( - col2 + col1 * + col2 + + tab0.col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3336
SELECT DISTINCT col2 * col1 DIV col1 + - tab2.col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT col2 * col1 / col1 + - tab2.col2 FROM tab2
----
0

query I rowsort
SELECT + col0 * col0 + col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL col2 + - col1 - tab2.col1 FROM tab2
----
-35
-92
4

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NULL <= ( - col0 )
----

query I rowsort
SELECT tab2.col1 * + col1 + col1 + - tab2.col0 * + tab2.col2 AS col2 FROM tab2
----
-2696
1512
803

query I rowsort
SELECT col0 * col1 - + col0 AS col2 FROM tab1
----
576
75
960

query I rowsort
SELECT - + col1 - col2 * + 9 AS col2 FROM tab0 AS cor0
----
-106
-383
-829

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 WHERE col0 + - col0 * + col1 NOT IN ( col1 )
----
54
57
96

query I rowsort
SELECT ALL col1 * - col2 * col2 AS col0 FROM tab1
----
-119808
-32490
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-3345
SELECT + col0 DIV col1 + - tab2.col1 * col0 FROM tab2
----
-1339
-217
-4601

skipif mysql # not compatible
query I rowsort label-3345
SELECT + col0 / col1 + - tab2.col1 * col0 FROM tab2
----
-1339
-217
-4601

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * + col1 * + col0 > col2 * col1 * col2
----
3
26
54
80
13
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 * - tab1.col1 col0 FROM tab1
----
-1000
-17576
-2197

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT tab0.col2 + + col0 IN ( col2 )
----
24
35
89

query I rowsort
SELECT ALL tab1.col2 * + col1 * + col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT + 0 * col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - cor0.col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + col1 * col0 - + 39 AS col2 FROM tab2 AS cor0
----
1304
178
4563

onlyif mysql # use DIV operator for integer division
query I rowsort label-3353
SELECT + 19 DIV col2 AS col1 FROM tab0 AS cor0
----
0
0
19

skipif mysql # not compatible
query I rowsort label-3353
SELECT + 19 / col2 AS col1 FROM tab0 AS cor0
----
0
0
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3354
SELECT DISTINCT + col2 + col1 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT + col2 + col1 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + col2 + + col2 * + ( col1 ) FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + - 65 * + col0 FROM tab2 cor0
----
-455
-5070
-5135

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3357
SELECT - ( col2 ) * + col0 * CAST( NULL AS SIGNED ) + + tab1.col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT - ( col2 ) * + col0 * CAST ( NULL AS INTEGER ) + + tab1.col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + tab0.col2 + + 24 FROM tab0, tab2 cor0
----
9 values hashing to a65bcffb1942d721bd6d7d386d9dbef6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3359
SELECT + col0 DIV col1 + - tab0.col2 AS col0 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3359
SELECT + col0 / col1 + - tab0.col2 AS col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT 65 * 27 FROM tab1 cor0
----
1755
1755
1755

query I rowsort
SELECT ALL + 84 FROM tab0, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3362
SELECT ALL - col0 * CAST( col2 AS SIGNED ) + - col2 + + col1 FROM tab0 AS cor0
----
-7289
-739
61

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL - col0 * CAST ( col2 AS INTEGER ) + - col2 + + col1 FROM tab0 AS cor0
----
-7289
-739
61

query I rowsort
SELECT DISTINCT + 78 AS col0 FROM tab0, tab1 AS cor0
----
78

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 cor2, tab2 AS cor3
----
3645 values hashing to bb6428239bf7f3ea361f6a10500a581d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col2 FROM tab1 cor0
----
-72
-72
-72

query I rowsort
SELECT ALL 88 FROM tab2, tab1 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT - + 62 * col0 AS col2 FROM tab0 AS cor0
----
-1488
-2170
-5518

query I rowsort
SELECT + - col2 * + 66 FROM tab2 cor0
----
-1716
-1782
-2508

query I rowsort
SELECT + 87 + + col1 * col0 * col2 AS col1 FROM tab1 AS cor0
----
36567
4299
99927

query I rowsort
SELECT DISTINCT + 35 * col0 FROM tab2
----
245
2730
2765

query I rowsort
SELECT ALL + + col1 * + col0 + + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL - + col1 * col1 + col2 + col1 FROM tab1 AS cor0
----
-33
-596
-60

query I rowsort
SELECT DISTINCT + - 82 * col1 FROM tab2 cor0
----
-1394
-2542
-4838

query I rowsort
SELECT + 4 * col2 AS col0 FROM tab0 AS cor0
----
132
328
4

query I rowsort
SELECT ALL ( col2 ) - - col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT cor0.col0 + + col2 * + col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT cor0.col0 * col0 * + col1 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
208
40950
83187

query I rowsort
SELECT ALL - cor0.col2 * - col2 - - col0 * + col2 AS col0 FROM tab2 cor0
----
2704
4446
918

query I rowsort
SELECT - cor0.col2 + col2 * col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT - col2 + - col0 * - col0 * - col0 FROM tab0 AS cor0
----
-13857
-42876
-705051

query I rowsort
SELECT DISTINCT - + cor0.col2 * col0 + + col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-3382
SELECT DISTINCT tab0.col1 DIV - col1 - - col0 AS col2 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT tab0.col1 / - col1 - - col0 AS col2 FROM tab0
----
23
34
88

query I rowsort
SELECT - col2 * col1 + + col2 AS col0 FROM tab2 cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-3384
SELECT col2 * col1 DIV tab0.col2 AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3384
SELECT col2 * col1 / tab0.col2 AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT 16 * - 92 AS col0 FROM tab1 AS cor0
----
-1472

onlyif mysql # use DIV operator for integer division
query I rowsort label-3386
SELECT - 1 DIV cor0.col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3386
SELECT - 1 / cor0.col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3387
SELECT ALL - CAST( + 30 AS SIGNED ) + col1 * + col1 FROM tab2 AS cor0
----
259
3451
931

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - CAST ( + 30 AS INTEGER ) + col1 * + col1 FROM tab2 AS cor0
----
259
3451
931

query I rowsort
SELECT DISTINCT + ( - 91 ) + col1 AS col2 FROM tab2 AS cor0
----
-32
-60
-74

query I rowsort
SELECT + + col0 * + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT + col1 * + col2 * col0 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + col0 * + 75 FROM tab2 AS cor0
----
525
5850
5925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col0 * col0 col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL - ( + col2 ) + col1 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL + + 6 AS col1 FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT ALL - 89 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT 94 + 74 * tab2.col2 FROM tab2
----
2018
2092
2906

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 52 * col1 + - col1 ) col2 FROM tab2
----
1581
3009
867

query I rowsort
SELECT ALL + col1 * 78 AS col1 FROM tab1
----
1014
2028
780

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 ) < NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NULL IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + tab2.col2 * col1 * - col0 col2 FROM tab2
----
-119626
-50996
-5832

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT col2 * - col2 + - col2 FROM tab1
----
-2970
-3306
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-3407
SELECT tab0.col1 * - col0 + + col0 DIV tab0.col1 FROM tab0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-3407
SELECT tab0.col1 * - col0 + + col0 / tab0.col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col2 + - col0 * col0 * - col1 AS col2 FROM tab0
----
118824
49503
720729

onlyif mysql # use DIV operator for integer division
query I rowsort label-3409
SELECT DISTINCT col1 * col1 + + col2 DIV col1 FROM tab2
----
291
3481
961

skipif mysql # not compatible
query I rowsort label-3409
SELECT DISTINCT col1 * col1 + + col2 / col1 FROM tab2
----
291
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-3410
SELECT DISTINCT - col1 DIV col2 + + col2 * - col1 * - col0 AS col1 FROM tab1
----
36480
4212
99840

skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT - col1 / col2 + + col2 * - col1 * - col0 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE ( NULL ) <= - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 <> + col2 * col1
----

query I rowsort
SELECT col1 * + col1 + - col0 * + col0 - col2 * col1 AS col0 FROM tab1
----
-4566
-737
-7479

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 + col2 * - col0 AS col2 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT - cor0.col2 * col0 + col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + cor0.col2 col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL tab1.col2 + + col1 * + col1 + col0 * + tab1.col1 FROM tab1
----
1305
797
808

query I rowsort
SELECT + col2 + - col0 + col2 AS col0 FROM tab2
----
-26
-3
47

query I rowsort
SELECT + - col1 * col2 + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL cor0.col1 + + col0 * col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + col0 * + col0 + - col1 AS col2 FROM tab2 AS cor0
----
18
6025
6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-3423
SELECT DISTINCT - col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT - col0 / col1 AS col1 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT col2 * col2 AS col2 FROM tab1 WHERE NOT NULL IN ( col0 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3425
SELECT ALL col1 DIV - col0 + + col2 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL col1 / - col0 + + col2 FROM tab0 AS cor0
----
-1
30
81

query I rowsort
SELECT ALL + cor0.col1 + col0 * + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-13507
-2002
-6390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 * col1 col2 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT + cor0.col0 * cor0.col2 + + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT cor0.col0 AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 + + col0 col1 FROM tab2 AS cor0
----
126
127
55

query I rowsort
SELECT + 29 * - col2 * + col2 + 81 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-19601
-21067
-41874

query I rowsort
SELECT + + col1 + + 9 + col2 AS col0 FROM tab0 AS cor0
----
107
128
182

query I rowsort
SELECT DISTINCT - 1 AS col1 FROM tab2, tab2 AS cor0
----
-1

query I rowsort
SELECT ALL 91 * 65 FROM tab0, tab0 AS cor0
----
9 values hashing to 986b91a22df66bde3b0690f848ecb433

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor3.col1 col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3
----
243 values hashing to aad6a39cc782d0570960622f04a07424

query I rowsort
SELECT 23 * 30 * col1 AS col2 FROM tab0
----
59340
62790
66930

query I rowsort
SELECT ALL - col0 * + 45 * col0 FROM tab2
----
-2205
-273780
-280845

query I rowsort
SELECT ALL + ( tab0.col0 * col1 ) AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - 57 + col2 + col1 AS col1 FROM tab0 AS cor0
----
116
41
62

query I rowsort
SELECT - + ( col0 ) + col2 + - ( + col1 ) * + col2 FROM tab2 cor0
----
-1586
-687
-817

query I rowsort
SELECT DISTINCT + col1 + col0 + col0 AS col1 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT ALL + 58 + - col0 FROM tab0 AS cor0
----
-31
23
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - cor0.col2 + ( col1 ) + col2 col1 FROM tab1 AS cor0
----
2996
3316
9325

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 + col2 col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL + - col1 * 40 + + 32 AS col2 FROM tab2 AS cor0
----
-1208
-2328
-648

query I rowsort
SELECT - - cor0.col0 * + col2 * col0 AS col1 FROM tab1 cor0
----
233472
486
614400

query I rowsort
SELECT ALL 14 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT - col2 * 96 FROM tab2 AS cor0
----
-2496
-2592
-3648

query I rowsort
SELECT - col1 * + ( col2 ) * + col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT - 37 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3452
SELECT ALL + - CAST( NULL AS SIGNED ) + cor0.col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL + - CAST ( NULL AS INTEGER ) + cor0.col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * 13 AS col2 FROM tab2 AS cor0
----
-221
-403
-767

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3454
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * ( + col2 ) col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * ( + col2 ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3455
SELECT ALL - CAST( - col0 AS SIGNED ) + col1 * - ( col2 ) + - col0 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL - CAST ( - col0 AS INTEGER ) + col1 * - ( col2 ) + - col0 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + ( 63 ) FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT col0 + 80 AS col2 FROM tab0 AS cor0
----
104
115
169

onlyif mysql # use DIV operator for integer division
query I rowsort label-3458
SELECT ALL col0 DIV - 89 + - col0 FROM tab0 AS cor0
----
-24
-35
-90

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL col0 / - 89 + - col0 FROM tab0 AS cor0
----
-24
-35
-90

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) FROM tab2, tab0, tab2 AS cor0, tab1
----
26
27
38

query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 - cor0.col0 FROM tab2 AS cor0
----
-56
-6162
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-3461
SELECT DISTINCT - 15 DIV 12 - col0 AS col2 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT - 15 / 12 - col0 AS col2 FROM tab1 AS cor0
----
-4
-65
-81

query I rowsort
SELECT ALL cor0.col0 * ( + col1 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + + col2 * + col1 + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - col2 + cor0.col0 + col0 * col1 FROM tab1 AS cor0
----
1024
27
647

query I rowsort
SELECT - 21 * - col0 + col1 AS col1 FROM tab1 AS cor0
----
1354
1693
89

query I rowsort
SELECT + 89 * + col2 + col1 + col0 * + col0 FROM tab1 AS cor0
----
14957
4841
9179

query I rowsort
SELECT col0 + cor0.col1 + col1 * 11 FROM tab0 AS cor0
----
1056
1181
1199

onlyif mysql # use DIV operator for integer division
query I rowsort label-3468
SELECT DISTINCT + col0 + col0 DIV cor0.col2 - + 85 * + col1 col1 FROM tab0 AS cor0
----
-7286
-7645
-8175

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT + col0 + col0 / cor0.col2 - + 85 * + col1 col1 FROM tab0 AS cor0
----
-7286
-7645
-8175

query I rowsort
SELECT ALL col1 - col1 * - 73 * cor0.col2 FROM tab1 AS cor0
----
102518
41620
91117

onlyif mysql # use DIV operator for integer division
query I rowsort label-3470
SELECT ALL - - col2 DIV + ( 4 ) AS col1 FROM tab0 AS cor0
----
0
20
8

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL - - col2 / + ( 4 ) AS col1 FROM tab0 AS cor0
----
0
20
8

query I rowsort
SELECT DISTINCT ( col2 ) + col1 * - col2 * col0 FROM tab2
----
-119626
-50996
-5832

onlyif mysql # use DIV operator for integer division
query I rowsort label-3472
SELECT ALL 9 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL 9 / col2 AS col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 * + col1 col0 FROM tab2
----
1593
459
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) - col2 col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT 4 * col0 + col2 AS col1 FROM tab2
----
338
354
55

query I rowsort
SELECT ALL - + 60 * col1 AS col1 FROM tab1 AS cor0
----
-1560
-600
-780

query I rowsort
SELECT DISTINCT - 63 * 11 FROM tab0
----
-693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * - col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - col0 + - col1 * ( - col2 ) FROM tab0 cor0
----
2814
62
7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-3480
SELECT ALL + + cor0.col1 * col1 DIV 13 FROM tab0 AS cor0
----
568
637
723

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL + + cor0.col1 * col1 / 13 FROM tab0 AS cor0
----
568
637
723

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 42 * - col2 col2 FROM tab2 AS cor0
----
1092
1134
1596

onlyif mysql # use DIV operator for integer division
query I rowsort label-3482
SELECT ALL 36 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
36

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL 36 / cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
36

query I rowsort
SELECT ALL - ( - col1 ) * - col1 * ( col1 ) + + col2 * - cor0.col2 FROM tab2 AS cor0
----
-206055
-30520
-6357

query I rowsort
SELECT ALL + col1 * + col0 + - 28 FROM tab1
----
1012
50
612

query I rowsort
SELECT ALL + col1 * - col2 + tab0.col0 AS col1 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT - cor0.col1 + cor0.col0 * col2 AS col1 FROM tab1 cor0
----
136
3638
7667

query I rowsort
SELECT col1 * - col0 * + cor0.col2 + - col0 FROM tab2 AS cor0
----
-119730
-51113
-5866

query I rowsort
SELECT ALL col0 + col2 * cor0.col2 FROM tab1 cor0
----
2919
3313
9296

query I rowsort
SELECT ALL - + col2 + 57 FROM tab0 AS cor0
----
-25
24
56

query I rowsort
SELECT DISTINCT - - col1 * - 57 FROM tab2 AS cor0
----
-1767
-3363
-969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3491
SELECT - cor0.col0 / - CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3491
SELECT - cor0.col0 / - CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 89 + col2 * col0 FROM tab1 AS cor0
----
251
3737
7769

onlyif mysql # use DIV operator for integer division
query I rowsort label-3493
SELECT + - col1 DIV - col1 + col0 FROM tab2 cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-3493
SELECT + - col1 / - col1 + col0 FROM tab2 cor0
----
79
8
80

query I rowsort
SELECT col2 * col1 + col1 * 41 FROM tab1 AS cor0
----
1781
2470
980

query I rowsort
SELECT DISTINCT + 92 + col2 AS col2 FROM tab2 AS cor0
----
118
119
130

query I rowsort
SELECT cor1.col2 + 70 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c39b74225d56f20a9210cb0fb2644a94

query I rowsort
SELECT ALL 3 + 73 * col0 FROM tab1 AS cor0
----
222
4675
5843

query I rowsort
SELECT ALL + col2 + - 7 * - col1 AS col2 FROM tab0 AS cor0
----
635
680
719

query I rowsort
SELECT col1 + 99 * - col1 FROM tab2 cor0
----
-1666
-3038
-5782

query I rowsort
SELECT ( - 58 ) * col2 + col1 FROM tab1 AS cor0
----
-3106
-3296
-5555

query I rowsort
SELECT ALL - + 29 * + col0 - - col0 FROM tab2 AS cor0
----
-196
-2184
-2212

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3502
SELECT ALL - CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - col2 * cor0.col1 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL - ( col1 ) * + col0 + col1 * col2 * col0 FROM tab0 AS cor0
----
0
656019
66048

query I rowsort
SELECT DISTINCT - 97 * + 66 - + cor0.col0 * col0 FROM tab1 AS cor0
----
-10498
-12802
-6411

query I rowsort
SELECT + 34 + 37 FROM tab2 cor0
----
71
71
71

query I rowsort
SELECT ALL + cor0.col2 * - ( cor0.col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - + col1 + - 34 * col0 FROM tab1 AS cor0
----
-128
-2186
-2733

query I rowsort
SELECT + col0 + 79 FROM tab2 AS cor0
----
157
158
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-3510
SELECT DISTINCT ( 7 ) DIV col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3510
SELECT DISTINCT ( 7 ) / col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - ( col2 ) * col2 + - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT - + cor0.col2 + + col0 * - col2 + col1 AS col2 FROM tab2 AS cor0
----
-185
-1995
-3023

query I rowsort
SELECT ALL + - 42 + - col1 AS col0 FROM tab1 cor0
----
-52
-55
-68

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col2 + - col1 * - 50 AS col1 FROM tab1 AS cor0
----
3749
4216
9866

query I rowsort
SELECT ALL - 25 * - col2 AS col2 FROM tab2 AS cor0
----
650
675
950

query I rowsort
SELECT + 98 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT + 66 + + col1 FROM tab0 AS cor0
----
152
157
163

query I rowsort
SELECT ALL - 26 + col2 AS col1 FROM tab1
----
28
31
70

query I rowsort
SELECT tab2.col0 + 36 * - col0 FROM tab2
----
-245
-2730
-2765

query I rowsort
SELECT cor0.col1 * 30 + 36 FROM tab0 AS cor0
----
2616
2766
2946

query I rowsort
SELECT ALL col0 + + col1 * col2 AS col1 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT col2 * - 35 FROM tab1 AS cor0
----
-1890
-1995
-3360

query I rowsort
SELECT DISTINCT + ( - 9 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3524
SELECT - col2 + col1 + + col2 * - col0 DIV tab0.col0 AS col1 FROM tab0
----
-73
20
95

skipif mysql # not compatible
query I rowsort label-3524
SELECT - col2 + col1 + + col2 * - col0 / tab0.col0 AS col1 FROM tab0
----
-73
20
95

query I rowsort
SELECT DISTINCT + col0 + + col1 + + 42 AS col1 FROM tab0
----
152
174
222

query I rowsort
SELECT ALL col1 * + col0 + - 99 AS col0 FROM tab1
----
-21
541
941

query I rowsort
SELECT + col0 * ( cor0.col1 * cor0.col1 ) + cor0.col0 FROM tab0 AS cor0
----
177528
329350
737098

query I rowsort
SELECT ALL + tab1.col1 + ( col1 ) FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT - col2 + - col2 * 45 AS col0 FROM tab2
----
-1196
-1242
-1748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + tab2.col0 * col0 + col2 col2 FROM tab2
----
107
6169
6296

onlyif mysql # use DIV operator for integer division
query I rowsort label-3531
SELECT DISTINCT + col2 + ( 18 ) DIV - col2 FROM tab0 AS cor0
----
-17
33
82

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT + col2 + ( 18 ) / - col2 FROM tab0 AS cor0
----
-17
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
70

query I rowsort
SELECT ALL - col0 * + col0 * col1 + col1 AS col0 FROM tab2
----
-106080
-1488
-358897

query I rowsort
SELECT - ( col0 ) + + 88 * + col2 AS col0 FROM tab2 AS cor0
----
2210
2369
3265

query I rowsort
SELECT ALL - ( + ( col2 ) ) FROM tab2
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3536
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * + col1 * - col2 FROM tab2
----
119652
51034
5859

skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * + col1 * - col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT + col2 * col0 * 2 AS col1 FROM tab0 AS cor0
----
14596
1584
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3538
SELECT + + col1 DIV col1 - - cor0.col0 FROM tab0 cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3538
SELECT + + col1 / col1 - - cor0.col0 FROM tab0 cor0
----
25
36
90

query I rowsort
SELECT + 71 * + col2 AS col2 FROM tab0
----
2343
5822
71

query I rowsort
SELECT - 20 + col1 * - ( col2 ) AS col2 FROM tab2 AS cor0
----
-1554
-666
-857

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 + cor0.col2 * + col2 col0 FROM tab0 AS cor0
----
1173
6808
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 63 * + col0 * + col2 col2 FROM tab1 AS cor0
----
-10206
-229824
-483840

query I rowsort
SELECT + - ( - cor0.col2 ) + + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT col0 * ( - col1 * - col2 ) AS col1 FROM tab0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3545
SELECT ALL ( ( + col2 ) + + CAST( NULL AS DECIMAL ) ) * + col0 col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL ( ( + col2 ) + + CAST ( NULL AS REAL ) ) * + col0 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 47 + - 18 * - cor0.col2 AS col2 FROM tab1 cor0
----
1019
1073
1775

query I rowsort
SELECT - ( + 44 ) * col2 * 6 AS col2 FROM tab2 AS cor0
----
-10032
-6864
-7128

onlyif mysql # use DIV operator for integer division
query I rowsort label-3548
SELECT ( - col0 ) DIV col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3548
SELECT ( - col0 ) / col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 90 + 33 * col2 FROM tab1 AS cor0
----
1692
1791
3078

query I rowsort
SELECT ALL + + 23 + - 9 FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT col1 * - col2 * cor0.col1 AS col2 FROM tab1 cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL - col1 * - col0 + cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT col2 * - col0 + - col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT + + cor0.col0 + + 7 - + 42 FROM tab0, tab2 AS cor0
----
9 values hashing to f5ce2f6c4600554ede59b436c886260f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + col2 + 27 AS col2 FROM tab0
----
109
28
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-3557
SELECT DISTINCT + cor1.col2 DIV ( - cor0.col1 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT + cor1.col2 / ( - cor0.col1 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT ALL ( - col1 ) * col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + ( col0 ) * ( col1 + - col2 ) FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT - - col0 * col2 + col0 AS col0 FROM tab1 cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3561
SELECT + + col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3561
SELECT + + col1 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3562
SELECT + + col0 DIV col0 - - cor0.col2 DIV + col1 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-3562
SELECT + + col0 / col0 - - cor0.col2 / + col1 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT + col0 + + 2 AS col1 FROM tab0 cor0
----
26
37
91

query I rowsort
SELECT - 93 FROM tab2, tab0 cor0, tab0, tab2 cor1
----
81 values hashing to 373608b5054d92c1128be0c71db4d4ed

query I rowsort
SELECT 72 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3566
SELECT ALL - ( 8 ) * tab2.col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL - ( 8 ) * tab2.col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col2 + 11 AS col1 FROM tab1 AS cor0
----
107
65
68

query I rowsort
SELECT + col1 * + col0 - + cor0.col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT - + 81 * 71 + + col2 FROM tab1 AS cor0
----
-5655
-5694
-5697

query I rowsort
SELECT + col0 * 23 + - col2 * + col0 FROM tab0 AS cor0
----
-240
-5251
770

query I rowsort
SELECT ALL 20 * - col0 FROM tab0 AS cor0
----
-1780
-480
-700

query I rowsort
SELECT + col1 + - ( + col2 * col2 ) AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT - cor1.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to b98cc07e6d63e3c0583ed19f9e9ad2be

query I rowsort
SELECT ALL - col0 - - cor0.col1 AS col0 FROM tab1 cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3575
SELECT ALL CAST( NULL AS DECIMAL ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL CAST ( NULL AS REAL ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + 29 FROM tab0 AS cor0
----
111
30
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3577
SELECT - cor0.col2 + - ( + ( cor0.col0 ) + - CAST( col2 AS SIGNED ) ) FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3577
SELECT - cor0.col2 + - ( + ( cor0.col0 ) + - CAST ( col2 AS INTEGER ) ) FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT + col1 * col2 + 71 FROM tab0
----
168
2909
7533

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 + - col1 col1 FROM tab1
----
0

query I rowsort
SELECT col2 * + col2 * ( + col2 ) AS col2 FROM tab0
----
1
35937
551368

query I rowsort
SELECT ( tab2.col2 ) * - col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - col1 + 48 AS col1 FROM tab2
----
-11
17
31

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163

query I rowsort
SELECT DISTINCT - - col2 - col0 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - + col0 * - 64 AS col0 FROM tab2 cor0
----
448
4992
5056

query I rowsort
SELECT + - col1 + + ( col2 ) AS col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT cor0.col0 * - ( - col1 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col1 * 11 AS col0 FROM tab2 AS cor0
----
187
341
649

query I rowsort
SELECT DISTINCT col1 * - 86 AS col0 FROM tab1 AS cor0
----
-1118
-2236
-860

query I rowsort
SELECT DISTINCT - col0 * + col2 * col1 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + - col2 * + col2 * + 52 + col0 FROM tab0 cor0
----
-17
-349559
-56604

query I rowsort
SELECT - cor0.col0 * ( 11 ) AS col0 FROM tab2 AS cor0
----
-77
-858
-869

onlyif mysql # use DIV operator for integer division
query I rowsort label-3593
SELECT DISTINCT col2 + col2 DIV col2 AS col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT col2 + col2 / col2 AS col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT - col1 * + cor0.col0 + + 25 + - 76 AS col2 FROM tab0 AS cor0
----
-2115
-3446
-8150

query I rowsort
SELECT - ( + col0 ) * col2 * col2 - col1 * col1 AS col1 FROM tab1 AS cor0
----
-208036
-737449
-9424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 51 + col2 ) col2 FROM tab2
----
13
24
25

query I rowsort
SELECT 12 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 cor2
----
243 values hashing to 009580ad7795d0f2b23f7f164938fe70

query I rowsort
SELECT + tab0.col1 + tab0.col1 * + tab0.col1 AS col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT + col2 + + col0 + + col0 FROM tab0
----
260
71
81

query I rowsort
SELECT + cor0.col1 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-3601
SELECT ALL - 18 + + col0 DIV - 5 FROM tab2 AS cor0
----
-19
-33
-33

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL - 18 + + col0 / - 5 FROM tab2 AS cor0
----
-19
-33
-33

query I rowsort
SELECT DISTINCT - 86 * + col1 * - ( col0 ) AS col0 FROM tab2 AS cor0
----
115498
18662
395772

query I rowsort
SELECT + col2 + - col0 - col1 * + 9 FROM tab2 AS cor0
----
-194
-259
-583

query I rowsort
SELECT ALL 35 + col0 FROM tab1 AS cor0
----
115
38
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col0 + col1 * col0 col0 FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT ALL cor0.col2 * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL col1 * + col2 + 13 AS col1 FROM tab2
----
1547
659
850

query I rowsort
SELECT + - 3 + col1 FROM tab2 AS cor0
----
14
28
56

query I rowsort
SELECT DISTINCT - 65 * cor0.col0 + + 66 * + col2 FROM tab1 AS cor0
----
-398
1136
3369

query I rowsort
SELECT DISTINCT - + 50 + + col0 * col2 FROM tab1 AS cor0
----
112
3598
7630

onlyif mysql # use DIV operator for integer division
query I rowsort label-3611
SELECT ALL + col2 * col1 + - ( + 88 * + col1 ) + - 12 DIV col0 FROM tab2 AS cor0
----
-1892
-3658
-850

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL + col2 * col1 + - ( + 88 * + col1 ) + - 12 / col0 FROM tab2 AS cor0
----
-1892
-3658
-850

onlyif mysql # use DIV operator for integer division
query I rowsort label-3612
SELECT DISTINCT - col0 + col1 DIV 39 FROM tab0
----
-22
-33
-87

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT - col0 + col1 / 39 FROM tab0
----
-22
-33
-87

query I rowsort
SELECT - col0 * cor0.col0 + - col2 AS col0 FROM tab1 AS cor0
----
-4153
-63
-6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 * 15 col1 FROM tab2 AS cor0
----
1196
1223
132

query I rowsort
SELECT DISTINCT cor0.col1 * + 85 + + 12 * - col2 FROM tab1 cor0
----
-47
1562
166

query I rowsort
SELECT ALL + col2 + - 98 AS col2 FROM tab1 AS cor0
----
-2
-41
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( col1 ) col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT col0 * 62 FROM tab1
----
186
3968
4960

query I rowsort
SELECT ALL - + cor0.col2 * col0 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - - 78 * + col0 AS col1 FROM tab0 AS cor0
----
1872
2730
6942

query I rowsort
SELECT - + 9 * - 27 AS col2 FROM tab1 AS cor0
----
243
243
243

query I rowsort
SELECT ALL + - 98 AS col2 FROM tab1 AS cor0
----
-98
-98
-98

query I rowsort
SELECT - 83 * 64 AS col2 FROM tab1 AS cor0
----
-5312
-5312
-5312

query I rowsort
SELECT ALL + 40 * col0 FROM tab0
----
1400
3560
960

query I rowsort
SELECT DISTINCT ( col0 ) - + col2 AS col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT ALL + col2 * + cor0.col0 * col0 + + col1 * col0 AS col2 FROM tab2 AS cor0
----
1540
162786
238501

query I rowsort
SELECT ALL 85 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT ALL - col1 - + 0 * - col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - ( - 58 ) * - col2 FROM tab1 AS cor0
----
-3132
-3306
-5568

query I rowsort
SELECT DISTINCT + + col0 * col1 + cor0.col0 + + 21 AS col0 FROM tab2 AS cor0
----
1443
245
4701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 * col2 + col2 col2 FROM tab1 AS cor0
----
-2808
-3135
-9024

query I rowsort
SELECT ALL + + 16 + + col0 + - cor0.col2 FROM tab1 AS cor0
----
-35
0
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-3633
SELECT - col2 + 48 DIV + col0 AS col1 FROM tab0
----
-31
-82
0

skipif mysql # not compatible
query I rowsort label-3633
SELECT - col2 + 48 / + col0 AS col1 FROM tab0
----
-31
-82
0

query I rowsort
SELECT - 97 + + tab0.col0 AS col0 FROM tab0
----
-62
-73
-8

query I rowsort
SELECT DISTINCT 75 * col0 * col0 FROM tab1
----
307200
480000
675

onlyif mysql # use DIV operator for integer division
query I rowsort label-3636
SELECT + tab1.col0 + col1 DIV + col0 FROM tab1
----
11
64
80

skipif mysql # not compatible
query I rowsort label-3636
SELECT + tab1.col0 + col1 / + col0 FROM tab1
----
11
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + - col2 col0 FROM tab0
----
2805
7380
96

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 <= ( + col2 )
----
7
31
27

query I rowsort
SELECT DISTINCT + col0 * + tab1.col0 * tab1.col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT + tab2.col0 FROM tab2 WHERE NOT NULL IN ( tab2.col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3641
SELECT - col0 + - tab0.col1 DIV - col2 AS col0 FROM tab0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-3641
SELECT - col0 + - tab0.col1 / - col2 AS col0 FROM tab0
----
-22
-88
62

query I rowsort
SELECT + col0 * col0 + tab0.col2 + col2 AS col2 FROM tab0
----
1227
642
8085

query I rowsort
SELECT col0 * col2 + - col1 FROM tab0
----
-62
706
7207

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN ( - col2 ) AND col0 * - col1
----

query I rowsort
SELECT col0 * - col1 + + col2 * col0 + col1 FROM tab0
----
-1186
-3263
-710

onlyif mysql # use DIV operator for integer division
query I rowsort label-3647
SELECT - + col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3647
SELECT - + col0 / - col2 AS col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL + 87 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2088
3045
7743

query I rowsort
SELECT - 59 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1003
-1829
-3481

onlyif mysql # use DIV operator for integer division
query I rowsort label-3651
SELECT cor0.col0 * + col2 + + col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
162
3647
7680

skipif mysql # not compatible
query I rowsort label-3651
SELECT cor0.col0 * + col2 + + col0 / - col2 AS col0 FROM tab1 AS cor0
----
162
3647
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 * + col1 col0 FROM tab2 WHERE ( NULL ) = col2 + + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) NOT BETWEEN + col0 * + col2 AND ( - col2 + + col2 + - col0 )
----

query I rowsort
SELECT col0 + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > + col1
----

query I rowsort
SELECT col1 * col2 * + col2 + col1 * + col2 FROM tab0
----
194
619346
96492

query I rowsort
SELECT + tab1.col0 - col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL + col0 * - col0 + - col1 * + tab1.col0 FROM tab1 WHERE NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL + tab0.col1 * - col1 AS col1 FROM tab0 WHERE ( col0 + - col1 ) BETWEEN col1 - col2 * tab0.col2 AND NULL
----

query I rowsort
SELECT DISTINCT - tab1.col0 * col2 AS col0 FROM tab1
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3661
SELECT DISTINCT + tab2.col1 + - col1 DIV + col0 AS col2 FROM tab2
----
17
27
59

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT + tab2.col1 + - col1 / + col0 AS col2 FROM tab2
----
17
27
59

query I rowsort
SELECT DISTINCT col1 * - col0 FROM tab2 WHERE col2 + - col2 * + col1 * + col0 <= ( - col1 )
----
-1343
-217
-4602

query I rowsort
SELECT col2 * col2 + + col0 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT ALL col1 * - col2 + - tab0.col0 FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT col0 * + col0 * - col0 - - tab1.col0 * + col1 AS col1 FROM tab1
----
-261504
-510960
51

query I rowsort
SELECT DISTINCT col2 * col2 FROM tab1 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3667
SELECT col2 - - col0 DIV + col1 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3667
SELECT col2 - - col0 / + col1 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT tab0.col2 * col1 + tab0.col1 FROM tab0
----
194
2924
7553

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT + 64 AS col0 FROM tab0 AS cor0
----
64

query I rowsort
SELECT - ( 14 ) - + col2 AS col2 FROM tab1 AS cor0
----
-110
-68
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-3672
SELECT ALL - 22 DIV + ( + col0 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL - 22 / + ( + col0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + cor0.col1 * ( - col1 ) + 27 + - col2 AS col2 FROM tab0 AS cor0
----
-7402
-8336
-9383

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + cor0.col0 * col1 col1 FROM tab0 AS cor0
----
1978
3298
8008

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL + 43 FROM tab1, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3677
SELECT + col2 DIV col2 + col1 * col1 AS col0 FROM tab1 cor0
----
101
170
677

skipif mysql # not compatible
query I rowsort label-3677
SELECT + col2 / col2 + col1 * col1 AS col0 FROM tab1 cor0
----
101
170
677

query I rowsort
SELECT + tab1.col0 * 55 * tab1.col0 AS col2 FROM tab1
----
225280
352000
495

onlyif mysql # use DIV operator for integer division
query I rowsort label-3679
SELECT - cor0.col1 DIV 66 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

skipif mysql # not compatible
query I rowsort label-3679
SELECT - cor0.col1 / 66 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT 62 - + col1 FROM tab1
----
36
49
52

query I rowsort
SELECT col0 * + col2 + tab0.col2 AS col2 FROM tab0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-3682
SELECT DISTINCT - tab2.col1 + + col2 DIV col0 FROM tab2
----
-17
-28
-59

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT - tab2.col1 + + col2 / col0 FROM tab2
----
-17
-28
-59

query I rowsort
SELECT DISTINCT col2 + tab2.col2 * + col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT - col0 + ( + col1 ) FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - cor0.col2 * - 71 + - col1 FROM tab0 cor0
----
-26
2257
5731

query I rowsort
SELECT - col1 + + ( + col1 * + 18 ) FROM tab1
----
170
221
442

onlyif mysql # use DIV operator for integer division
query I rowsort label-3687
SELECT - col0 + - col1 DIV col1 FROM tab2 cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-3687
SELECT - col0 + - col1 / col1 FROM tab2 cor0
----
-79
-8
-80

query I rowsort
SELECT DISTINCT 87 * col2 FROM tab1
----
4698
4959
8352

query I rowsort
SELECT ALL col1 - col0 * + col1 AS col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT + - col0 * col1 * - col0 - col2 AS col1 FROM tab0 AS cor0
----
118824
49503
720729

onlyif mysql # use DIV operator for integer division
query I rowsort label-3691
SELECT + + col1 DIV 46 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3691
SELECT + + col1 / 46 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT - - cor0.col0 - + 11 AS col1 FROM tab2 cor0
----
-4
67
68

query I rowsort
SELECT cor0.col2 * 70 + - 30 * col1 + - col0 * 82 FROM tab1 cor0
----
-1558
-230
2754

query I rowsort
SELECT ALL 19 * col2 + + col1 * col0 FROM tab1
----
1104
1723
2864

query I rowsort
SELECT DISTINCT - tab0.col0 * + col2 + - col1 * + col1 FROM tab0
----
-15579
-8188
-9444

query I rowsort
SELECT ALL ( + 2 ) + col2 AS col0 FROM tab2
----
28
29
40

query I rowsort
SELECT ALL col0 * - col2 + col0 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT - ( + col1 ) * col1 * col2 + + col2 AS col1 FROM tab2 AS cor0
----
-10944
-25920
-90480

query I rowsort
SELECT ALL + 61 + + cor0.col1 * col0 FROM tab2 AS cor0
----
1404
278
4663

query I rowsort
SELECT + ( - 7 ) + + cor0.col1 AS col1 FROM tab1 cor0
----
19
3
6

query I rowsort
SELECT ALL + col2 * - col0 * - cor0.col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - + 49 AS col0 FROM tab2 cor0
----
-49
-49
-49

query I rowsort
SELECT - col2 + col1 * - col0 FROM tab2 cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL + cor0.col0 * col1 + + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT 69 + - col0 AS col2 FROM tab0 AS cor0
----
-20
34
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3706
SELECT DISTINCT + 22 * col2 + col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
572
597
836

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT + 22 * col2 + col2 / + col0 AS col0 FROM tab2 AS cor0
----
572
597
836

query I rowsort
SELECT DISTINCT + + 70 + - col2 * + col1 * - col0 FROM tab0 cor0
----
3465
664188
68182

query I rowsort
SELECT + + col1 + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-3709
SELECT DISTINCT 70 * + col1 DIV col1 + col2 + + tab1.col0 FROM tab1
----
127
191
246

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT 70 * + col1 / col1 + col2 + + tab1.col0 FROM tab1
----
127
191
246

query I rowsort
SELECT tab2.col2 * + col2 * - col0 + col1 AS col2 FROM tab2
----
-114059
-5072
-52669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 + - col2 + col1 col0 FROM tab0
----
1321
629
7930

query I rowsort
SELECT + col0 + tab0.col0 + + col1 * col0 * + col2 AS col0 FROM tab0
----
3465
664296
68160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 + - tab1.col1 col1 FROM tab1
----
-4
12
9

query I rowsort
SELECT - 78 + - col1 FROM tab2
----
-109
-137
-95

query I rowsort
SELECT DISTINCT - ( col1 ) * col2 + col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT + tab1.col1 + - 58 * col0 FROM tab1
----
-148
-3702
-4627

query I rowsort
SELECT DISTINCT - - col2 - + cor0.col2 * + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT - - col2 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL col1 + ( col1 ) * col1 FROM tab1 AS cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 * col1 col1 FROM tab1 AS cor0
----
110
182
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3721
SELECT ALL - + col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - + col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 - - col2 * col2 * - col2 FROM tab1 AS cor0
----
-157410
-185136
-884640

query I rowsort
SELECT DISTINCT + - cor0.col0 * col2 * - ( - col1 ) - - col2 AS col0 FROM tab2 AS cor0
----
-119626
-50996
-5832

query I rowsort
SELECT + col2 * cor0.col0 + - col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-3725
SELECT DISTINCT col1 DIV - col2 - + col2 * - col1 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT col1 / - col2 - + col2 * - col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT col2 * + 88 - col0 AS col1 FROM tab1
----
4749
4952
8368

query I rowsort
SELECT ALL - - col1 + ( col1 * + col2 ) FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-3728
SELECT col0 DIV - 9 FROM tab2
----
-8
-8
0

skipif mysql # not compatible
query I rowsort label-3728
SELECT col0 / - 9 FROM tab2
----
-8
-8
0

query I rowsort
SELECT ALL - tab0.col2 * - tab0.col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - col2 * col1 + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 AS cor0 WHERE NOT NULL < cor0.col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + tab2.col2 col2 FROM tab2
----
6110
6279
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3733
SELECT + col2 DIV tab0.col2 col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3733
SELECT + col2 / tab0.col2 col1 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT col1 + col2 * col1 * - col2 FROM tab0 AS cor0
----
-611793
-93568
0

query I rowsort
SELECT DISTINCT - + col2 * - col0 + + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL - col1 * cor0.col2 + col0 - - col0 AS col0 FROM tab1 cor0
----
-1088
-1398
-442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * - col1 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - cor0.col2 * - cor0.col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col2 * - col0 + - col2 + + col0 * col0 FROM tab0 cor0
----
-249
1189
541

query I rowsort
SELECT 62 * col1 * + col0 + - col1 * - col0 AS col0 FROM tab0
----
130032
213885
510237

onlyif mysql # use DIV operator for integer division
query I rowsort label-3741
SELECT + + col0 + col0 DIV col2 AS col1 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-3741
SELECT + + col0 + col0 / col2 AS col1 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT DISTINCT ( + col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col1 * - col1 * col2 FROM tab2 cor0
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-3744
SELECT + cor0.col0 + col0 DIV + col1 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-3744
SELECT + cor0.col0 + col0 / + col1 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT DISTINCT + ( col0 ) * - col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - + cor0.col0 * col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col2 * + col0 + col1 * - col2 AS col1 FROM tab0 cor0
----
-132
-14760
-3630

onlyif mysql # use DIV operator for integer division
query I rowsort label-3748
SELECT DISTINCT col1 DIV col1 col2 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT col1 / col1 col2 FROM tab2
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3749
SELECT + col1 DIV - cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-3749
SELECT + col1 / - cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
83
90
95

query I rowsort
SELECT + col1 * + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + col0 * + col0 * + cor0.col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT 0 + + 61 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
61

query I rowsort
SELECT + + col2 * + 16 FROM tab0 AS cor0
----
1312
16
528

query I rowsort
SELECT ALL ( 52 ) AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT col1 * 99 * ( + tab0.col0 ) - ( + 44 ) AS col1 FROM tab0
----
204292
336061
801757

query I rowsort
SELECT tab0.col1 * - 98 FROM tab0
----
-8428
-8918
-9506

query I rowsort
SELECT ALL - col0 + + col0 + col2 AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT + col2 * 16 + - col0 AS col2 FROM tab2
----
338
425
529

query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27

query I rowsort
SELECT + col2 * col1 + - 11 FROM tab0 AS cor0
----
2827
7451
86

query I rowsort
SELECT ALL + 77 + 66 FROM tab0, tab0 AS cor0
----
9 values hashing to 750c11171f0669c2fa0d412d84db5fa1

query I rowsort
SELECT - + col1 * col1 + - 20 * + col2 FROM tab0 cor0
----
-8056
-9429
-9921

query I rowsort
SELECT ALL + ( col2 + col2 ) AS col1 FROM tab2
----
52
54
76

query I rowsort
SELECT ALL 91 + + col1 * + col0 FROM tab1 AS cor0
----
1131
169
731

query I rowsort
SELECT DISTINCT - cor0.col2 - - col0 AS col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT + col1 * col0 + col0 * col2 AS col0 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT - - ( + col0 ) * + ( - cor0.col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3768
SELECT - col1 DIV col2 + 14 AS col0 FROM tab1 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-3768
SELECT - col1 / col2 + 14 AS col0 FROM tab1 AS cor0
----
14
14
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-3769
SELECT - ( col2 ) DIV + 37 + col0 - - col1 col0 FROM tab1 AS cor0
----
28
73
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3769
SELECT - ( col2 ) / + 37 + col0 - - col1 col0 FROM tab1 AS cor0
----
28
73
91

query I rowsort
SELECT + col1 * col2 - ( + col1 + - cor0.col1 ) FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL + ( - ( - col0 ) ) + 97 * - col2 AS col2 FROM tab1
----
-5235
-5465
-9232

query I rowsort
SELECT col0 + 43 AS col1 FROM tab2
----
121
122
50

query I rowsort
SELECT ALL - cor0.col2 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3774
SELECT - CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3774
SELECT - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT - - 36 - col2 * - col1 FROM tab2 AS cor0
----
1570
682
873

query I rowsort
SELECT DISTINCT col1 + - ( - col0 ) * - col2 AS col2 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + 76 * + col0 + + col0 FROM tab0
----
1848
2695
6853

query I rowsort
SELECT DISTINCT tab0.col2 + - col2 + + col2 AS col1 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL + - col2 + - col1 - - col2 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - 55 + col1 FROM tab1 cor0
----
-29
-42
-45

query I rowsort
SELECT ALL - - 39 AS col0 FROM tab0 cor0
----
39
39
39

query I rowsort
SELECT DISTINCT - col0 + + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - - col1 * - col0 + + col0 * + col1 - + cor0.col2 * ( + col2 ) AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT col2 * + ( - 95 ) + col2 AS col0 FROM tab1 AS cor0
----
-5076
-5358
-9024

query I rowsort
SELECT DISTINCT - col0 * - col1 * col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL col2 + - col1 * 17 FROM tab1 AS cor0
----
-113
-125
-388

onlyif mysql # use DIV operator for integer division
query I rowsort label-3788
SELECT DISTINCT - cor0.col1 DIV 7 + + col0 FROM tab0 AS cor0
----
12
22
76

skipif mysql # not compatible
query I rowsort label-3788
SELECT DISTINCT - cor0.col1 / 7 + + col0 FROM tab0 AS cor0
----
12
22
76

query I rowsort
SELECT DISTINCT + - col1 + + cor0.col2 * cor0.col1 FROM tab2 AS cor0
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3790
SELECT - col1 + + ( + 8 ) DIV + cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3790
SELECT - col1 + + ( + 8 ) / + cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 + + ( col1 * + col1 ) col0 FROM tab0 AS cor0
----
7420
8370
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * + 20 col2 FROM tab1 cor0
----
-1080
-1140
-1920

query I rowsort
SELECT + + col1 - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3794
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) - + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) - + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 59 - col2 * col0 FROM tab2
----
-130
-1969
-2943

skipif mysql # not compatible
query I rowsort
SELECT - tab1.col0 * - col2 / CAST ( + col0 AS REAL ) FROM tab1
----
54
57
96

query I rowsort
SELECT ALL 23 * col2 - 64 * col1 FROM tab1
----
-422
1376
671

onlyif mysql # use DIV operator for integer division
query I rowsort label-3798
SELECT - + ( + col0 ) + - col1 DIV + col1 FROM tab2 cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-3798
SELECT - + ( + col0 ) + - col1 / + col1 FROM tab2 cor0
----
-79
-8
-80

query I rowsort
SELECT tab2.col2 * + 86 FROM tab2
----
2236
2322
3268

query I rowsort
SELECT DISTINCT - tab2.col2 * col1 AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - 92 + + 7 FROM tab0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT tab1.col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
3
64
80

query I rowsort
SELECT + cor1.col1 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2, tab0 AS cor1
----
243 values hashing to c6425afc100dd55de8d45dec18c469ea

onlyif mysql # use DIV operator for integer division
query I rowsort label-3804
SELECT DISTINCT - tab1.col2 DIV 91 col0 FROM tab1
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT - tab1.col2 / 91 col0 FROM tab1
----
-1
0

query I rowsort
SELECT DISTINCT + - col2 + 39 * 10 FROM tab2 AS cor0
----
352
363
364

query I rowsort
SELECT - col1 + + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL - cor0.col0 * - col2 * col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT - ( col1 ) * - col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL - 59 * col2 + + col2 FROM tab0 AS cor0
----
-1914
-4756
-58

query I rowsort
SELECT + 71 + + 67 + col2 * 45 AS col1 FROM tab2 cor0
----
1308
1353
1848

onlyif mysql # use DIV operator for integer division
query I rowsort label-3811
SELECT 46 * + col2 - - col0 * col1 DIV 97 AS col0 FROM tab2 AS cor0
----
1243
1244
1761

skipif mysql # not compatible
query I rowsort label-3811
SELECT 46 * + col2 - - col0 * col1 / 97 AS col0 FROM tab2 AS cor0
----
1243
1244
1761

onlyif mysql # use DIV operator for integer division
query I rowsort label-3812
SELECT ALL - col0 DIV - col2 + col0 DIV - cor0.col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL - col0 / - col2 + col0 / - cor0.col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3813
SELECT DISTINCT 64 + col0 DIV col1 FROM tab1 cor0
----
64
70

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT 64 + col0 / col1 FROM tab1 cor0
----
64
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 * tab0.col0 * col0 + col2 col1 FROM tab0
----
1226
19041
649604

query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab2, tab1 cor0
----
16

query I rowsort
SELECT col1 * col1 + + col1 + 45 AS col1 FROM tab2 cor0
----
1037
351
3585

query I rowsort
SELECT cor0.col0 * - 11 FROM tab0 AS cor0
----
-264
-385
-979

query I rowsort
SELECT ALL + 37 * 89 + - col0 FROM tab2 AS cor0
----
3214
3215
3286

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 col0 FROM tab1 AS cor0
----
86

query I rowsort
SELECT - ( 7 ) - + col0 AS col1 FROM tab0 AS cor0
----
-31
-42
-96

query I rowsort
SELECT DISTINCT ( + col1 ) + col2 FROM tab1 cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3822
SELECT - - CAST( ( - col1 ) AS SIGNED ) - col2 FROM tab2 cor0
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-3822
SELECT - - CAST ( ( - col1 ) AS INTEGER ) - col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - - 57 * - col1 AS col1 FROM tab0 AS cor0
----
-4902
-5187
-5529

query I rowsort
SELECT col0 * col1 * + col0 AS col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + + ( - col2 ) + col2 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + 99 + col2 FROM tab2 AS cor0
----
125
126
137

query I rowsort
SELECT ALL - + cor0.col0 + - col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL 80 + + col1 * - 6 FROM tab2 AS cor0
----
-106
-22
-274

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT + 22 * col1 * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-14133
-18407
-33670

query I rowsort
SELECT DISTINCT - - col0 + col2 + col2 AS col0 FROM tab2 cor0
----
130
155
61

query I rowsort
SELECT - 20 AS col1 FROM tab0 cor0
----
-20
-20
-20

query I rowsort
SELECT DISTINCT + col1 * + col0 + - 54 * 61 AS col2 FROM tab0 AS cor0
----
-1230
101
4805

query I rowsort
SELECT DISTINCT - + col2 * + col1 * - col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - - col1 + - 24 FROM tab0 AS cor0
----
62
67
73

query I rowsort
SELECT ALL col2 * + col1 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col2 + + 12 FROM tab2 AS cor0
----
-14
-15
-26

query I rowsort
SELECT ALL - col1 * - ( - col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - + col0 * + 69 FROM tab1 AS cor0
----
-207
-4416
-5520

query I rowsort
SELECT + ( col0 ) + 47 AS col0 FROM tab1
----
111
127
50

query I rowsort
SELECT ALL - col0 * 13 FROM tab1 cor0
----
-1040
-39
-832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3842
SELECT - - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT - - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3843
SELECT ALL - col1 DIV col1 col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL - col1 / col1 col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col1 * + ( col1 ) + + col2 * + col0 FROM tab0 AS cor0
----
15579
8188
9444

query I rowsort
SELECT DISTINCT col1 + 52 * + col0 * col2 AS col0 FROM tab1 AS cor0
----
189706
399373
8450

query I rowsort
SELECT DISTINCT - col0 - - ( - col1 + col0 * col0 ) FROM tab2 AS cor0
----
11
5947
6145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 + - tab0.col2 col1 FROM tab0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3848
SELECT - col1 DIV - ( + col0 ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-3848
SELECT - col1 / - ( + col0 ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT 72 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL - - col1 * ( 51 ) + - col1 FROM tab1 AS cor0
----
1300
500
650

query I rowsort
SELECT - + cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - col0 * col1 * - col0 + 91 AS col2 FROM tab0 AS cor0
----
118916
49627
720902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 + cor0.col0 col0 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT ALL tab2.col1 + - tab2.col2 AS col0 FROM tab2
----
-21
33
4

query I rowsort
SELECT + 13 * - cor0.col1 FROM tab1, tab0 cor0
----
9 values hashing to 92f9f4020e1b6e4676eecbec4481cf3c

query I rowsort
SELECT ALL 33 FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 5b9acd68f8a2078394b8b32da4e0a18f

query I rowsort
SELECT - 58 * - col1 FROM tab2
----
1798
3422
986

query I rowsort
SELECT ALL col1 * col2 * + tab1.col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL tab0.col1 AS col1 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT DISTINCT + 90 * - col1 AS col2 FROM tab2 AS cor0
----
-1530
-2790
-5310

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3861
SELECT - ( + col0 ) + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3861
SELECT - ( + col0 ) + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 43 + - col0 * + col2 + + col1 AS col1 FROM tab1 AS cor0
----
-3595
-7624
-93

query I rowsort
SELECT col0 + col0 * + col0 + 2 AS col1 FROM tab0 AS cor0
----
1262
602
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-3864
SELECT ALL + + col2 + + cor0.col2 DIV - col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL + + col2 + + cor0.col2 / - col2 FROM tab1 AS cor0
----
53
56
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3865
SELECT DISTINCT + col0 DIV cor0.col1 + + col0 * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT + col0 / cor0.col1 + + col0 * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - 50 * - 24 + - col2 FROM tab2 AS cor0
----
1162
1173
1174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 * col0 + col2 col1 FROM tab1 cor0
----
102
1081
1376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 + col0 col0 FROM tab2 AS cor0
----
101
172
173

query I rowsort
SELECT + 74 * - col1 - col0 * + ( + 37 ) FROM tab1 AS cor0
----
-2035
-3108
-3922

query I rowsort
SELECT DISTINCT tab2.col2 * + 98 * + col0 AS col0 FROM tab2
----
18522
198744
294196

onlyif mysql # use DIV operator for integer division
query I rowsort label-3871
SELECT + 40 DIV ( - col0 ) AS col0 FROM tab2
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3871
SELECT + 40 / ( - col0 ) AS col0 FROM tab2
----
-5
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3872
SELECT - + CAST( NULL AS SIGNED ) * col2 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-3872
SELECT - + CAST ( NULL AS INTEGER ) * col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3873
SELECT - - CAST( NULL AS DECIMAL ) * - 14 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT - - CAST ( NULL AS REAL ) * - 14 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 55 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT - ( + 37 ) FROM tab0, tab0 cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT ALL - col2 * + 62 * col0 FROM tab0
----
-2170
-452476
-49104

query I rowsort
SELECT - col1 * - 31 AS col0 FROM tab2 AS cor0
----
1829
527
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + ( + col0 ) col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT col0 * + col0 + col1 * - col1 FROM tab1 cor0
----
-667
3996
6231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( cor0.col1 ) * col0 col1 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT ALL + 23 - - 75 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 6624b1f09c0594f5576803ac29f4499d

query I rowsort
SELECT - ( 36 ) * col2 FROM tab0 AS cor0
----
-1188
-2952
-36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3883
SELECT - CAST( NULL AS SIGNED ) + - col0 * col2 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT - CAST ( NULL AS INTEGER ) + - col0 * col2 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 + - col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL - 96 * + ( col2 ) FROM tab0 AS cor0
----
-3168
-7872
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 * - cor0.col1 col0 FROM tab1, tab1 AS cor0
----
-1300
-500
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-3887
SELECT DISTINCT col2 * + col2 * tab1.col2 + 61 DIV + col0 FROM tab1
----
157484
185193
884736

skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT col2 * + col2 * tab1.col2 + 61 / + col0 FROM tab1
----
157484
185193
884736

query I rowsort
SELECT ALL 68 + col1 AS col0 FROM tab0 cor0
----
154
159
165

query I rowsort
SELECT ALL - col2 * + col2 + + 18 FROM tab2 AS cor0
----
-1426
-658
-711

query I rowsort
SELECT + col2 + - cor0.col2 * ( - cor0.col2 ) AS col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL + col0 * 28 FROM tab2 AS cor0
----
196
2184
2212

query I rowsort
SELECT DISTINCT + col0 * - ( ( col0 ) ) + - col2 AS col2 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT + col2 * + ( 33 ) + col0 FROM tab2 AS cor0
----
1333
898
936

query I rowsort
SELECT DISTINCT - + col0 * + ( 17 ) FROM tab0 AS cor0
----
-1513
-408
-595

query I rowsort
SELECT - col0 * + 29 * + 7 FROM tab0 AS cor0
----
-18067
-4872
-7105

query I rowsort
SELECT + cor0.col2 + ( - col1 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + col2 * cor0.col0 + + col0 * - col2 * - col0 FROM tab0 cor0
----
1260
19800
656820

query I rowsort
SELECT - - cor0.col0 * col0 + - col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT col2 * col0 * + tab0.col2 + 71 AS col0 FROM tab0
----
106
26207
598507

onlyif mysql # use DIV operator for integer division
query I rowsort label-3900
SELECT DISTINCT - col1 * col1 - + cor0.col2 DIV + col1 FROM tab1 AS cor0
----
-105
-176
-678

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT - col1 * col1 - + cor0.col2 / + col1 FROM tab1 AS cor0
----
-105
-176
-678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 + col1 + ( cor0.col0 + + col0 ) * - 12 col0 FROM tab2 cor0
----
-1900
-1966
-224

query I rowsort
SELECT 90 * col0 AS col0 FROM tab1 AS cor0
----
270
5760
7200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3903
SELECT DISTINCT + ( + col0 ) * col1 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT + ( + col0 ) * col1 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 81 + col0 AS col0 FROM tab2 AS cor0
----
159
160
88

query I rowsort
SELECT col0 + - ( 49 * col0 ) FROM tab0
----
-1152
-1680
-4272

query I rowsort
SELECT col0 * + col2 + col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT col1 + col2 * + col1 AS col0 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT - - col2 + + col2 * - col2 FROM tab2 AS cor0
----
-1406
-650
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3909
SELECT ALL - col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL - col2 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + tab0.col1 * col2 AS col1 FROM tab0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - 71 FROM tab0, tab1 AS cor0
----
-71

query I rowsort
SELECT - ( - tab1.col1 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3913
SELECT ALL - CAST( NULL AS SIGNED ) + col1 * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 + + col1 col1 FROM tab1 AS cor0
----
108
92
95

query I rowsort
SELECT ALL 59 FROM tab2 cor0
----
59
59
59

query I rowsort
SELECT 75 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ( - 75 ) * tab1.col1 AS col0 FROM tab1
----
-1950
-750
-975

query I rowsort
SELECT - cor0.col2 * 76 + col0 * + cor0.col1 + + cor0.col2 FROM tab1 AS cor0
----
-3635
-3972
-6160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 * col2 col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ( + cor0.col2 ) + col2 AS col0 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3921
SELECT CAST( 72 AS SIGNED ) * + col0 AS col0 FROM tab0 AS cor0
----
1728
2520
6408

skipif mysql # not compatible
query I rowsort label-3921
SELECT CAST ( 72 AS INTEGER ) * + col0 AS col0 FROM tab0 AS cor0
----
1728
2520
6408

query I rowsort
SELECT DISTINCT - col0 + ( col0 ) * col0 * + cor0.col0 FROM tab1 AS cor0
----
24
262080
511920

query I rowsort
SELECT ALL - 67 AS col0 FROM tab2 cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT 14 + col1 * col2 AS col2 FROM tab0 AS cor0
----
111
2852
7476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 7 col2 FROM tab1 AS cor0
----
-7
-7
-7

query I rowsort
SELECT ALL - - 22 + - ( - cor0.col0 ) AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 71b82e88bd3eff150ce3705c6b585a91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3927
SELECT CAST( + 17 AS SIGNED ) * col2 FROM tab2
----
442
459
646

skipif mysql # not compatible
query I rowsort label-3927
SELECT CAST ( + 17 AS INTEGER ) * col2 FROM tab2
----
442
459
646

onlyif mysql # use DIV operator for integer division
query I rowsort label-3928
SELECT ALL 82 DIV + 46 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL 82 / + 46 AS col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 55 ) * cor0.col1 + col1 col2 FROM tab2 cor0
----
-1674
-3186
-918

query I rowsort
SELECT 47 + cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 3a6894d70dd3d5c057c48ad75eef24c4

query I rowsort
SELECT + col1 + 93 FROM tab1 AS cor0
----
103
106
119

onlyif mysql # use DIV operator for integer division
query I rowsort label-3932
SELECT ALL cor1.col2 + 77 DIV 21 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to bd73889f25f34930690ff275e8d33564

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL cor1.col2 + 77 / 21 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to bd73889f25f34930690ff275e8d33564

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3933
SELECT + CAST( col2 AS SIGNED ) + col2 * + 76 FROM tab0 AS cor0
----
2541
6314
77

skipif mysql # not compatible
query I rowsort label-3933
SELECT + CAST ( col2 AS INTEGER ) + col2 * + 76 FROM tab0 AS cor0
----
2541
6314
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3934
SELECT ALL + + CAST( - 0 AS SIGNED ) FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL + + CAST ( - 0 AS INTEGER ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - - ( + col1 ) + - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3936
SELECT 18 + - col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-3936
SELECT 18 + - col1 / + col2 AS col0 FROM tab1 AS cor0
----
18
18
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-3937
SELECT col1 + col1 * col2 DIV + col0 FROM tab0 AS cor0
----
174
204
99

skipif mysql # not compatible
query I rowsort label-3937
SELECT col1 + col1 * col2 / + col0 FROM tab0 AS cor0
----
174
204
99

query I rowsort
SELECT col0 * + col0 + - col2 AS col2 FROM tab1
----
-45
4039
6304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3939
SELECT ALL - CAST( 80 AS SIGNED ) * - col2 AS col0 FROM tab0
----
2640
6560
80

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL - CAST ( 80 AS INTEGER ) * - col2 AS col0 FROM tab0
----
2640
6560
80

query I rowsort
SELECT DISTINCT cor0.col2 + + col1 + - 65 * col2 FROM tab0 cor0
----
-2026
-5157
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3941
SELECT ALL + - cor0.col2 * + 76 * 67 + cor0.col2 * + CAST( col1 AS SIGNED ) - + col2 * 34 FROM tab0 AS cor0
----
-166320
-412870
-5029

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL + - cor0.col2 * + 76 * 67 + cor0.col2 * + CAST ( col1 AS INTEGER ) - + col2 * 34 FROM tab0 AS cor0
----
-166320
-412870
-5029

query I rowsort
SELECT - col2 + 74 * ( col2 ) FROM tab2 AS cor0
----
1898
1971
2774

onlyif mysql # use DIV operator for integer division
query I rowsort label-3943
SELECT - col2 + 36 DIV col2 FROM tab0 AS cor0
----
-32
-82
35

skipif mysql # not compatible
query I rowsort label-3943
SELECT - col2 + 36 / col2 FROM tab0 AS cor0
----
-32
-82
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3944
SELECT DISTINCT - - col0 * CAST( + col0 AS SIGNED ) + col0 FROM tab0 AS cor0
----
1260
600
8010

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT - - col0 * CAST ( + col0 AS INTEGER ) + col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL + - col2 - + col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + - 3 col2 FROM tab2 AS cor0
----
-20
-34
-62

query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 + + col1 * col0 FROM tab2 AS cor0
----
1178
1632
8083

query I rowsort
SELECT - col2 - - col0 * - ( - col1 ) AS col2 FROM tab1 cor0
----
24
583
944

query I rowsort
SELECT col2 * 17 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT ALL cor0.col2 * 24 + - 16 + + col1 FROM tab2 cor0
----
663
667
913

query I rowsort
SELECT + 96 + - cor0.col2 FROM tab1 cor0
----
0
39
42

query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL col2 * 90 + col1 AS col0 FROM tab0
----
187
3056
7471

query I rowsort
SELECT + - col1 * - col1 * col2 AS col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT - ( - col1 ) - 31 AS col0 FROM tab1
----
-18
-21
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col2 FROM tab1 AS cor0
----
-61
-61
-61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3957
SELECT DISTINCT + col2 + cor0.col1 * col2 + cor0.col2 * - CAST( NULL AS SIGNED ) / col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT + col2 + cor0.col1 * col2 + cor0.col2 * - CAST ( NULL AS INTEGER ) / col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3958
SELECT + - col1 + + 7 DIV cor0.col2 FROM tab0 AS cor0
----
-86
-90
-91

skipif mysql # not compatible
query I rowsort label-3958
SELECT + - col1 + + 7 / cor0.col2 FROM tab0 AS cor0
----
-86
-90
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-3959
SELECT + col0 DIV - 24 - - col2 FROM tab2 AS cor0
----
23
27
35

skipif mysql # not compatible
query I rowsort label-3959
SELECT + col0 / - 24 - - col2 FROM tab2 AS cor0
----
23
27
35

query I rowsort
SELECT ( - 64 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT + col1 + 27 FROM tab0
----
113
118
124

query I rowsort
SELECT ALL 88 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT ( col0 + + col1 ) FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3965
SELECT ALL CAST( - col2 + col1 AS SIGNED ) FROM tab2
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL CAST ( - col2 + col1 AS INTEGER ) FROM tab2
----
-21
33
4

query I rowsort
SELECT - - ( cor0.col1 ) * col1 + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT + ( + 81 ) + col1 * ( - col2 * + col2 ) AS col1 FROM tab1 AS cor0
----
-119727
-32409
-75735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + col2 + col1 col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT + - col0 + col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-3970
SELECT ALL + 67 + + col2 * 42 DIV + col1 AS col2 FROM tab2 AS cor0
----
103
160
85

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL + 67 + + col2 * 42 / + col1 AS col2 FROM tab2 AS cor0
----
103
160
85

query I rowsort
SELECT ALL + col0 + cor0.col0 * col2 * 50 AS col2 FROM tab1 AS cor0
----
182464
384080
8103

query I rowsort
SELECT ALL 72 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3973
SELECT DISTINCT + col2 DIV cor0.col2 + + col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT + col2 / cor0.col2 + + col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT ALL + + 15 - + col2 FROM tab1 cor0
----
-39
-42
-81

query I rowsort
SELECT ALL 44 * cor1.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9cb418b20be0d8db3c577aa2fd328a62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3976
SELECT + col0 + - col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT + col0 + - col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3977
SELECT DISTINCT col2 - 77 * col2 DIV col1 FROM tab1
----
-105
-381
-472

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT col2 - 77 * col2 / col1 FROM tab1
----
-105
-381
-472

query I rowsort
SELECT col0 + tab0.col0 - 54 FROM tab0
----
-6
124
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-3979
SELECT ALL col2 DIV - 36 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL col2 / - 36 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT + col2 - + tab1.col0 * - col2 * col0 FROM tab1
----
233529
540
614496

query I rowsort
SELECT - col1 * - col2 + col1 FROM tab2 cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3982
SELECT + col1 * + ( col2 ) + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
132
2862
7551

skipif mysql # not compatible
query I rowsort label-3982
SELECT + col1 * + ( col2 ) + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-3983
SELECT DISTINCT - col1 DIV + col0 col2 FROM tab0 cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT - col1 / + col0 col2 FROM tab0 cor0
----
-1
-2
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3984
SELECT DISTINCT - CAST( col2 AS SIGNED ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT ( tab1.col1 ) * - col2 + col0 AS col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT + col2 * + ( + col1 + - 63 ) AS col2 FROM tab2 AS cor0
----
-104
-1748
-864

query I rowsort
SELECT + - 20 + + col1 AS col2 FROM tab2 cor0
----
-3
11
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-3988
SELECT + ( cor0.col2 ) + - col0 DIV + CAST( - 99 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3988
SELECT + ( cor0.col2 ) + - col0 / + CAST ( - 99 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col0 * + col0 + - col2 AS col2 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT ALL + + ( + col2 ) * col2 + + col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT + ( - col1 ) * - col0 + cor0.col1 * - ( cor0.col1 + - col2 ) * col1 FROM tab0 AS cor0
----
-389924
-66430
-899869

query I rowsort
SELECT DISTINCT - tab2.col1 FROM tab2, tab1, tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + col0 * cor0.col2 + - col0 * 76 AS col2 FROM tab1 AS cor0
----
-1216
-66
1600

query I rowsort
SELECT DISTINCT col2 + - ( col0 ) * + 62 AS col0 FROM tab2 AS cor0
----
-407
-4810
-4860

query I rowsort
SELECT - col1 * - col1 - col0 FROM tab1 cor0
----
36
673
89

query I rowsort
SELECT ALL - ( - col1 ) + + col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT 51 * - 48 AS col1 FROM tab0 AS cor0
----
-2448
-2448
-2448

onlyif mysql # use DIV operator for integer division
query I rowsort label-3998
SELECT DISTINCT + col1 * col2 + + col0 DIV - ( col1 ) + - col1 AS col0 FROM tab1 AS cor0
----
1229
1378
554

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT + col1 * col2 + + col0 / - ( col1 ) + - col1 AS col0 FROM tab1 AS cor0
----
1229
1378
554

onlyif mysql # use DIV operator for integer division
query I rowsort label-3999
SELECT DISTINCT - 92 DIV 58 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT - 92 / 58 AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4000
SELECT - CAST( NULL AS SIGNED ) + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT - CAST ( NULL AS INTEGER ) + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col2 * col1 + 77 * col2 + + col2 FROM tab1 AS cor0
----
5016
5616
8736

query I rowsort
SELECT ALL col0 * - col1 + col1 * cor0.col0 - - col2 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - col2 * cor0.col2 - cor0.col0 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT ALL + cor0.col2 * ( 25 ) + cor0.col0 * 71 AS col1 FROM tab2 cor0
----
1172
6188
6559

query I rowsort
SELECT + col2 * col1 * col1 + + col0 AS col1 FROM tab2 AS cor0
----
11061
25954
90584

query I rowsort
SELECT ALL + col2 + col1 * col0 AS col2 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-4007
SELECT + + cor0.col2 + - cor0.col1 DIV - col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4007
SELECT + + cor0.col2 + - cor0.col1 / - col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4008
SELECT DISTINCT - col2 * col0 DIV + 27 col0 FROM tab2 AS cor0
----
-111
-7
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT - col2 * col0 / + 27 col0 FROM tab2 AS cor0
----
-111
-7
-75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4009
SELECT + CAST( - 34 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
-1190
-3026
-816

skipif mysql # not compatible
query I rowsort label-4009
SELECT + CAST ( - 34 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
-1190
-3026
-816

query I rowsort
SELECT col0 * ( col1 ) * col0 AS col2 FROM tab1
----
234
40960
83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 + - 69 col2 FROM tab2
----
-1412
-286
-4671

query I rowsort
SELECT - + col1 * col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4013
SELECT - + col0 DIV col2 - 22 FROM tab1 AS cor0
----
-22
-22
-23

skipif mysql # not compatible
query I rowsort label-4013
SELECT - + col0 / col2 - 22 FROM tab1 AS cor0
----
-22
-22
-23

query I rowsort
SELECT ALL + + ( cor0.col1 ) * - col0 * col0 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-4015
SELECT col0 DIV col1 + - col2 AS col0 FROM tab1
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-4015
SELECT col0 / col1 + - col2 AS col0 FROM tab1
----
-51
-54
-90

query I rowsort
SELECT ALL - cor0.col1 - + col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT col1 * col0 + ( col0 + cor0.col0 ) FROM tab0 AS cor0
----
2112
3465
8277

onlyif mysql # use DIV operator for integer division
query I rowsort label-4018
SELECT DISTINCT - col2 DIV col0 + 23 * col1 * + col2 AS col1 FROM tab1 cor0
----
13110
28703
32274

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT - col2 / col0 + 23 * col1 * + col2 AS col1 FROM tab1 cor0
----
13110
28703
32274

query I rowsort
SELECT DISTINCT - - 40 * - cor0.col2 FROM tab2 AS cor0
----
-1040
-1080
-1520

onlyif mysql # use DIV operator for integer division
query I rowsort label-4020
SELECT DISTINCT cor0.col0 DIV col0 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT cor0.col0 / col0 AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + col2 * - col0 + - col2 - + tab1.col0 AS col0 FROM tab1
----
-219
-3769
-7856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) * col0 + col1 - ( col1 ) col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT - col0 + tab1.col0 + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL - tab0.col2 * col1 + + ( - col1 ) FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT - 40 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6

query I rowsort
SELECT ( - 81 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT + col0 + - col0 * 18 + + col1 AS col2 FROM tab2 AS cor0
----
-1267
-1326
-88

query I rowsort
SELECT DISTINCT + + 17 * + col0 + col2 * + 60 FROM tab1 AS cor0
----
3291
4508
7120

query I rowsort
SELECT ALL + 77 * col0 FROM tab1 AS cor0
----
231
4928
6160

query I rowsort
SELECT - - col1 + cor0.col0 * - ( - col2 ) FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT + col1 * + col0 + col2 + col2 FROM tab2 AS cor0
----
1419
271
4654

query I rowsort
SELECT DISTINCT + - 30 - col2 FROM tab0 AS cor0
----
-112
-31
-63

query I rowsort
SELECT + - col0 * col1 + col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT cor0.col1 * + col0 + col0 + - col1 AS col1 FROM tab1 AS cor0
----
1107
55
694

query I rowsort
SELECT ALL - 21 * + cor0.col2 FROM tab2 cor0
----
-546
-567
-798

query I rowsort
SELECT DISTINCT + col0 * - col2 * - col1 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + + col0 * ( col1 + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
240
4288
8720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4038
SELECT + col2 + CAST( - col1 AS SIGNED ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4038
SELECT + col2 + CAST ( - col1 AS INTEGER ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT 54 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
54

query I rowsort
SELECT DISTINCT - 67 + col2 FROM tab1
----
-10
-13
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-4041
SELECT ALL 68 DIV tab2.col1 AS col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL 68 / tab2.col1 AS col2 FROM tab2
----
1
2
4

query I rowsort
SELECT ALL - cor0.col0 * - col2 * col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT + col2 + tab0.col2 + ( - ( - col2 ) ) FROM tab0
----
246
3
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4044
SELECT - 29 DIV - col2 FROM tab0
----
0
0
29

skipif mysql # not compatible
query I rowsort label-4044
SELECT - 29 / - col2 FROM tab0
----
0
0
29

query I rowsort
SELECT ALL ( - col1 + + 5 ) FROM tab0
----
-81
-86
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4046
SELECT - col2 DIV - col0 + 93 + col1 FROM tab0 AS cor0
----
180
184
190

skipif mysql # not compatible
query I rowsort label-4046
SELECT - col2 / - col0 + 93 + col1 FROM tab0 AS cor0
----
180
184
190

query I rowsort
SELECT + col0 - + 13 * + col2 FROM tab2 AS cor0
----
-260
-344
-415

query I rowsort
SELECT + + cor0.col1 + 96 + 63 FROM tab0 AS cor0
----
245
250
256

onlyif mysql # use DIV operator for integer division
query I rowsort label-4049
SELECT + col0 * - col0 + - 29 + col2 DIV 6 FROM tab2 AS cor0
----
-6109
-6264
-74

skipif mysql # not compatible
query I rowsort label-4049
SELECT + col0 * - col0 + - 29 + col2 / 6 FROM tab2 AS cor0
----
-6109
-6264
-74

query I rowsort
SELECT - col2 - 86 FROM tab1 AS cor0
----
-140
-143
-182

query I rowsort
SELECT + col1 * - ( col0 ) + - col0 + + col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-2866
-5356
-953

query I rowsort
SELECT ALL + col0 - col1 AS col2 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + + 8 * col0 + col2 AS col2 FROM tab2 AS cor0
----
650
670
83

query I rowsort
SELECT + - 70 * col2 AS col1 FROM tab0 AS cor0
----
-2310
-5740
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4055
SELECT - ( 8 ) * col1 DIV + ( col2 ) AS col0 FROM tab0 AS cor0
----
-20
-776
-8

skipif mysql # not compatible
query I rowsort label-4055
SELECT - ( 8 ) * col1 / + ( col2 ) AS col0 FROM tab0 AS cor0
----
-20
-776
-8

query I rowsort
SELECT DISTINCT - 21 * col0 FROM tab2 AS cor0
----
-147
-1638
-1659

query I rowsort
SELECT - - cor0.col0 * - cor0.col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4058
SELECT ALL + + cor0.col2 * - cor0.col0 + col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL + + cor0.col2 * - cor0.col0 + col2 * CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col0 ) + col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT - 38 * ( - col2 ) FROM tab0 AS cor0
----
1254
3116
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 * cor0.col1 col2 FROM tab0 AS cor0
----
-6622
-7007
-7469

query I rowsort
SELECT DISTINCT - 58 * cor0.col1 + col0 AS col1 FROM tab0 AS cor0
----
-4964
-5189
-5591

onlyif mysql # use DIV operator for integer division
query I rowsort label-4063
SELECT ALL + col0 + col2 DIV + col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL + col0 + col2 / + col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + ( col0 ) * ( + col1 ) FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4065
SELECT + + col1 + col0 DIV - cor0.col0 col2 FROM tab1 AS cor0
----
12
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4065
SELECT + + col1 + col0 / - cor0.col0 col2 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col0 AS REAL ) * col2 AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - 47 * + col1 + + col0 AS col2 FROM tab1
----
-1219
-406
-531

query I rowsort
SELECT + + col0 * - col0 + col2 AS col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT + 52 + 20 AS col0 FROM tab2
----
72
72
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-4070
SELECT DISTINCT 44 + col1 + - col2 DIV + 10 FROM tab0
----
127
141

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT 44 + col1 + - col2 / + 10 FROM tab0
----
127
141

query I rowsort
SELECT ( tab2.col0 ) + tab2.col2 AS col1 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - col1 col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - - 26 * col1 AS col0 FROM tab0 cor0
----
2236
2366
2522

onlyif mysql # use DIV operator for integer division
query I rowsort label-4074
SELECT ALL - 2 + col1 DIV - cor0.col0 AS col1 FROM tab1 AS cor0
----
-10
-2
-2

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL - 2 + col1 / - cor0.col0 AS col1 FROM tab1 AS cor0
----
-10
-2
-2

query I rowsort
SELECT + col0 * + col0 * 46 AS col2 FROM tab1 AS cor0
----
188416
294400
414

query I rowsort
SELECT - col2 + - ( col2 + - col1 ) FROM tab1
----
-104
-179
-82

query I rowsort
SELECT - col0 * 35 + col0 FROM tab2 AS cor0
----
-238
-2652
-2686

onlyif mysql # use DIV operator for integer division
query I rowsort label-4078
SELECT + col2 - col1 DIV col0 AS col2 FROM tab1 AS cor0
----
46
57
96

skipif mysql # not compatible
query I rowsort label-4078
SELECT + col2 - col1 / col0 AS col2 FROM tab1 AS cor0
----
46
57
96

query I rowsort
SELECT col2 - + cor0.col1 AS col0 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT - - col0 * - 76 * + col2 + + col1 * - 85 FROM tab1 AS cor0
----
-14522
-278098
-584785

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0 cor1, tab1 cor2
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

query I rowsort
SELECT ALL + col0 + - cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT + cor0.col2 + + col0 * col0 * col2 FROM tab0 AS cor0
----
1226
19041
649604

onlyif mysql # use DIV operator for integer division
query I rowsort label-4084
SELECT DISTINCT - 47 DIV + ( col0 ) FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT - 47 / + ( col0 ) FROM tab0 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col2 * col1 col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT cor0.col2 * - col0 + + cor0.col2 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-4087
SELECT ALL - 6 * - cor0.col0 + + cor0.col2 * CAST( col1 AS SIGNED ) DIV - col2 AS col0 FROM tab1 AS cor0
----
-8
374
467

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL - 6 * - cor0.col0 + + cor0.col2 * CAST ( col1 AS INTEGER ) / - col2 AS col0 FROM tab1 AS cor0
----
-8
374
467

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4088
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - 61 + col2 AS col2 FROM tab0 cor0
----
143
62
94

query I rowsort
SELECT ALL col0 + - 70 AS col0 FROM tab2 cor0
----
-63
8
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4091
SELECT DISTINCT - col1 - col0 * cor0.col0 DIV 5 FROM tab0 AS cor0
----
-1675
-201
-342

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT - col1 - col0 * cor0.col0 / 5 FROM tab0 AS cor0
----
-1675
-201
-342

query I rowsort
SELECT - cor0.col0 + 34 FROM tab2 AS cor0
----
-44
-45
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 33 col1 FROM tab2 AS cor0
----
-231
-2574
-2607

query I rowsort
SELECT DISTINCT + col2 * + 10 + col0 FROM tab2 cor0
----
277
338
459

query I rowsort
SELECT DISTINCT cor0.col0 * 97 + col0 * - col0 FROM tab1 AS cor0
----
1360
2112
282

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - CAST ( - col1 AS REAL ) + col1 * ( ( cor0.col0 ) ) FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4097
SELECT - CAST( - cor0.col0 AS SIGNED ) + cor0.col1 col1 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4097
SELECT - CAST ( - cor0.col0 AS INTEGER ) + cor0.col1 col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + + 82 + col1 * - col2 FROM tab0 cor0
----
-15
-2756
-7380

query I rowsort
SELECT ALL + ( + cor0.col2 ) * col2 AS col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT ALL + 20 - + col1 AS col0 FROM tab0 AS cor0
----
-66
-71
-77

query I rowsort
SELECT - - ( - col0 ) * col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4102
SELECT CAST( NULL AS SIGNED ) * - cor0.col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT CAST ( NULL AS INTEGER ) * - cor0.col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( cor0.col2 ) + - col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + + 68 * + col1 FROM tab2 AS cor0
----
1156
2108
4012

query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 * - ( col2 * col2 ) AS col0 FROM tab0 cor0
----
-35
-49071752
-862488

onlyif mysql # use DIV operator for integer division
query I rowsort label-4106
SELECT + col1 + col2 DIV + CAST( - col1 + - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4106
SELECT + col1 + col2 / + CAST ( - col1 + - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 + + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT - - col0 * col0 + col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL tab0.col1 * - 55 + - col0 FROM tab0
----
-4754
-5094
-5370

query I rowsort
SELECT DISTINCT + cor0.col2 * ( - col1 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 * - col1 col0 FROM tab2
----
1147
2183
629

query I rowsort
SELECT ALL - cor0.col1 + - cor0.col0 * + col2 * col0 FROM tab2 cor0
----
-1354
-158243
-237175

query I rowsort
SELECT ALL + + cor0.col0 * 33 FROM tab0 AS cor0
----
1155
2937
792

query I rowsort
SELECT ALL - col0 * cor0.col2 + col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-105
-3527
-7504

query I rowsort
SELECT ALL cor0.col1 + + col2 * ( + cor0.col1 ) FROM tab2 cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4116
SELECT CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4116
SELECT CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col2 + - 94 AS col0 FROM tab1
----
-148
-151
-190

query I rowsort
SELECT ALL - col1 * + col2 - col1 AS col1 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT + col2 * col2 - col0 * col2 AS col0 FROM tab2
----
-1352
-1558
540

query I rowsort
SELECT ALL col0 - 97 * col2 AS col0 FROM tab0
----
-3177
-62
-7865

query I rowsort
SELECT - col0 * + 18 + col2 AS col1 FROM tab0 AS cor0
----
-1520
-399
-629

query I rowsort
SELECT DISTINCT tab1.col0 - + 19 FROM tab1
----
-16
45
61

query I rowsort
SELECT col0 + + ( col2 ) AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL - cor0.col1 * cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 9be0dab92dd50faf37ee99ac8db7c57d

query I rowsort
SELECT ALL 14 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT DISTINCT col0 * + col0 + - tab1.col1 AS col1 FROM tab1
----
-17
4086
6387

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4127
SELECT DISTINCT col2 + cor0.col2 * CAST( NULL AS SIGNED ) + col0 * col0 col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT col2 + cor0.col2 * CAST ( NULL AS INTEGER ) + col0 * col0 col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 + col1 col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + col2 + - col1 * ( col2 ) FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT - 62 * col0 AS col0 FROM tab1 cor0
----
-186
-3968
-4960

query I rowsort
SELECT ALL - col1 * col1 + - ( - ( + cor0.col2 ) ) AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT - ( col2 ) * + col0 * + 17 + - col0 AS col0 FROM tab1 AS cor0
----
-130640
-2757
-62080

onlyif mysql # use DIV operator for integer division
query I rowsort label-4133
SELECT DISTINCT + col1 * cor0.col2 + - col2 DIV col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT + col1 * cor0.col2 + - col2 / col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL col1 * 36 FROM tab0 cor0
----
3096
3276
3492

query I rowsort
SELECT ALL - 83 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

onlyif mysql # use DIV operator for integer division
query I rowsort label-4136
SELECT + col2 * + 36 + + col2 + col0 DIV + col0 AS col1 FROM tab2 cor0
----
1000
1407
963

skipif mysql # not compatible
query I rowsort label-4136
SELECT + col2 * + 36 + + col2 + col0 / + col0 AS col1 FROM tab2 cor0
----
1000
1407
963

query I rowsort
SELECT ALL 79 + + col2 FROM tab1
----
133
136
175

onlyif mysql # use DIV operator for integer division
query I rowsort label-4138
SELECT + - col0 * 82 DIV - col0 FROM tab1 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-4138
SELECT + - col0 * 82 / - col0 FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT - + col2 + col1 + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-23
-59
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4140
SELECT ALL col0 DIV col0 + col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL col0 / col0 + col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT DISTINCT + - col2 * ( col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - cor0.col2 + 23 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1188
1254
2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 99 ) col1 FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + col1 col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT - ( 33 ) * col0 + + col1 AS col2 FROM tab0 cor0
----
-1058
-2846
-706

query I rowsort
SELECT ALL + - cor0.col2 * ( + col0 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - - col0 + ( - cor0.col1 * cor0.col0 ) FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL col1 + 96 AS col0 FROM tab1 AS cor0
----
106
109
122

onlyif mysql # use DIV operator for integer division
query I rowsort label-4149
SELECT DISTINCT + col2 DIV - col1 + cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
4091
6393
7

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT + col2 / - col1 + cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
4091
6393
7

query I rowsort
SELECT ALL - col0 + col0 * cor0.col1 + - col0 * + col0 AS col0 FROM tab0 AS cor0
----
1464
2135
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4151
SELECT CAST( - ( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-4151
SELECT CAST ( - ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + cor0.col1 * + col2 + col2 * - col1 + + col2 AS col1 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4153
SELECT - 80 * cor0.col0 DIV col0 col1 FROM tab0 cor0
----
-80
-80
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4153
SELECT - 80 * cor0.col0 / col0 col1 FROM tab0 cor0
----
-80
-80
-80

query I rowsort
SELECT + 21 * + cor0.col2 - 3 * + col1 FROM tab1 cor0
----
1056
1167
1977

query I rowsort
SELECT - - col0 * + col1 + - col0 + + col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col1 + col1 + 45 FROM tab0 AS cor0
----
217
227
239

query I rowsort
SELECT ALL + ( tab1.col1 ) AS col2 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 52 * + col2 col1 FROM tab0 cor0
----
-1716
-4264
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT - col0 + + col1 * col2 - + cor0.col1 AS col1 FROM tab2 AS cor0
----
1397
550
799

query I rowsort
SELECT DISTINCT - col2 * + 60 + col1 * col1 + - col2 AS col2 FROM tab1 AS cor0
----
-2618
-3377
-5687

query I rowsort
SELECT DISTINCT 15 FROM tab0, tab2, tab0 AS cor0
----
15

query I rowsort
SELECT tab1.col1 + - tab1.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + + ( + 59 ) FROM tab2 AS cor0
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( col1 * col2 ) + - col0 * col2 col0 FROM tab2
----
21546
22410
37856

query I rowsort
SELECT + col1 + + col2 * col0 AS col1 FROM tab2 AS cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 + - cor1.col0 col2 FROM tab0, tab0 cor0, tab1 cor1
----
-23
-39
38

query I rowsort
SELECT DISTINCT 46 AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-4170
SELECT DISTINCT - col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT - col1 / - col1 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 AS REAL ) * col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + - ( + cor0.col2 ) * + col0 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL 39 * - col0 FROM tab1 AS cor0
----
-117
-2496
-3120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - col2 col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4175
SELECT - col1 * CAST( NULL AS SIGNED ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT - col1 * CAST ( NULL AS INTEGER ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 23 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT DISTINCT - col2 * col1 - + col2 * col0 * col2 AS col2 FROM tab2 AS cor0
----
-114722
-54262
-5940

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4178
SELECT + col2 * - CAST( NULL AS SIGNED ) + - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4178
SELECT + col2 * - CAST ( NULL AS INTEGER ) + - col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4179
SELECT ALL + col1 + + CAST( NULL AS SIGNED ) - 68 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL + col1 + + CAST ( NULL AS INTEGER ) - 68 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + + 4 FROM tab2 AS cor0
----
-3
-74
-75

query I rowsort
SELECT DISTINCT tab0.col0 - - col0 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL ( col1 ) * + col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT col1 + 52 FROM tab2 AS cor0
----
111
69
83

query I rowsort
SELECT - - col0 * - 7 FROM tab1 AS cor0
----
-21
-448
-560

query I rowsort
SELECT - col1 * col1 + cor0.col2 * - cor0.col2 FROM tab2 AS cor0
----
-1690
-1733
-4157

query I rowsort
SELECT + col0 + col2 + + col1 FROM tab1 AS cor0
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4187
SELECT + col2 * ( col2 ) + - col0 DIV + 12 FROM tab1 AS cor0
----
2916
3244
9210

skipif mysql # not compatible
query I rowsort label-4187
SELECT + col2 * ( col2 ) + - col0 / + 12 FROM tab1 AS cor0
----
2916
3244
9210

query I rowsort
SELECT - col1 + - 86 AS col0 FROM tab2 AS cor0
----
-103
-117
-145

query I rowsort
SELECT ALL + 50 AS col0 FROM tab2
----
50
50
50

query I rowsort
SELECT + 70 * col1 AS col2 FROM tab0 AS cor0
----
6020
6370
6790

query I rowsort
SELECT - 66 * - col2 AS col0 FROM tab1 AS cor0
----
3564
3762
6336

query I rowsort
SELECT - cor0.col1 * col2 * + 96 FROM tab2 AS cor0
----
-147264
-62016
-80352

query I rowsort
SELECT col1 * - col0 * col1 + tab0.col2 - tab0.col2 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL + col1 - col2 * + ( + 58 ) AS col0 FROM tab2
----
-1449
-1535
-2187

query I rowsort
SELECT + 0 + + col0 FROM tab1 cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4196
SELECT + - col1 DIV col2 + + ( col0 + + col2 ) FROM tab0 cor0
----
-61
170
55

skipif mysql # not compatible
query I rowsort label-4196
SELECT + - col1 / col2 + + ( col0 + + col2 ) FROM tab0 cor0
----
-61
170
55

query I rowsort
SELECT ALL - + ( - col1 ) + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - col0 * cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + col1 + - col0 * - cor0.col1 AS col2 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + 8 * + col0 * col2 + - col2 * cor0.col1 FROM tab0 AS cor0
----
183
3498
50922

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4201
SELECT + + 84 * + col0 * + 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-4201
SELECT + + 84 * + col0 * + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - col0 * + col2 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL - + ( + col1 ) + 36 + col0 * - cor0.col1 FROM tab0 AS cor0
----
-2114
-3456
-8154

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT 23 - col2 * + CAST ( col0 AS REAL ) AS col2 FROM tab0 AS cor0
----
-12
-7275
-769

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 - + col1 col0 FROM tab1 cor0
----
-35
-4106
-6413

query I rowsort
SELECT ALL col0 + 11 FROM tab0 AS cor0
----
100
35
46

query I rowsort
SELECT ALL - col0 * ( 48 ) FROM tab2 AS cor0
----
-336
-3744
-3792

query I rowsort
SELECT DISTINCT + + col0 * + ( col2 ) + + col2 * cor0.col0 * ( cor0.col0 ) FROM tab0 AS cor0
----
1260
19800
656820

query I rowsort
SELECT + col0 + - col2 + + 57 FROM tab0 AS cor0
----
48
64
91

query I rowsort
SELECT DISTINCT + col0 * 81 FROM tab0 cor0
----
1944
2835
7209

query I rowsort
SELECT col2 + col1 + + 53 * col0 FROM tab0 AS cor0
----
1391
1953
4890

query I rowsort
SELECT DISTINCT + 80 - - col2 AS col1 FROM tab1
----
134
137
176

query I rowsort
SELECT DISTINCT col1 - + col0 * + ( - col1 ) AS col0 FROM tab1
----
104
1053
650

query I rowsort
SELECT cor0.col1 - - cor0.col2 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL cor0.col1 * + cor0.col0 + ( cor0.col0 + - col2 * 59 ) FROM tab0 AS cor0
----
141
3350
3371

query I rowsort
SELECT DISTINCT col1 * 51 + + 88 AS col0 FROM tab2 AS cor0
----
1669
3097
955

query I rowsort
SELECT DISTINCT + 14 - col1 FROM tab1 AS cor0
----
-12
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 col0 FROM tab0, tab0 AS cor0
----
14

query I rowsort
SELECT DISTINCT - 13 + + col2 FROM tab0 AS cor0
----
-12
20
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 63 * + col0 col0 FROM tab2 AS cor0
----
441
4914
4977

query I rowsort
SELECT ALL 58 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT 4 + 77 AS col1 FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT - col0 + col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL - + ( - col1 ) AS col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT cor0.col2 * - col1 + - col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL - col0 * 47 AS col2 FROM tab2
----
-329
-3666
-3713

query I rowsort
SELECT + col2 + ( + 13 * tab1.col2 ) AS col1 FROM tab1
----
1344
756
798

query I rowsort
SELECT DISTINCT 17 FROM tab2, tab0 AS cor0
----
17

query I rowsort
SELECT ALL - - ( + 67 ) * + col2 AS col1 FROM tab0 AS cor0
----
2211
5494
67

query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
7
78
79

query I rowsort
SELECT + col2 * + col1 * tab2.col0 AS col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL - ( + col2 ) + col0 * col1 AS col1 FROM tab2
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-4233
SELECT ( ( - cor0.col2 ) ) + col1 DIV col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4233
SELECT ( ( - cor0.col2 ) ) + col1 / col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + cor0.col2 * + cor0.col2 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT + 98 * col1 * - col0 AS col1 FROM tab2 AS cor0
----
-131614
-21266
-450996

query I rowsort
SELECT DISTINCT + + ( col1 ) * + col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + + col1 + - cor0.col0 * 3 * - col2 FROM tab0 AS cor0
----
202
21985
2462

query I rowsort
SELECT DISTINCT - 61 - - col1 AS col1 FROM tab1 AS cor0
----
-35
-48
-51

query I rowsort
SELECT - 0 + - col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - 14 + - col2 AS col0 FROM tab1 AS cor0
----
-110
-68
-71

query I rowsort
SELECT ALL - - col1 + col1 AS col1 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT DISTINCT - + col1 + cor0.col1 + ( + col2 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + 72 * + col2 + - 92 * + cor0.col2 FROM tab1 cor0
----
-1080
-1140
-1920

query I rowsort
SELECT - - col0 * ( cor0.col0 ) FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT cor0.col1 * 2 AS col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + + col2 + - col1 + col0 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT DISTINCT col0 * - 99 + - col2 AS col2 FROM tab0 cor0
----
-2409
-3466
-8893

query I rowsort
SELECT ALL col1 + + ( + 19 ) FROM tab0 AS cor0
----
105
110
116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * cor0.col2 * col0 col2 FROM tab1 AS cor0
----
207872
737200
8745

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4250
SELECT + + col0 + + CAST( + ( col0 ) AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-1190
-552
-7832

skipif mysql # not compatible
query I rowsort label-4250
SELECT + + col0 + + CAST ( + ( col0 ) AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT + col2 + - 37 FROM tab2 AS cor0
----
-10
-11
1

query I rowsort
SELECT DISTINCT col1 * + 48 AS col1 FROM tab1 AS cor0
----
1248
480
624

query I rowsort
SELECT ALL + 75 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT + + ( col1 ) * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col0 + ( + tab2.col0 + col0 ) * ( + ( col0 ) ) * - 25 FROM tab2
----
-2443
-304122
-311971

query I rowsort
SELECT - col2 - - col1 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - col0 * - col2 + col0 * col0 FROM tab0 cor0
----
1260
1368
15219

query I rowsort
SELECT DISTINCT + 97 + - col0 + - 37 AS col0 FROM tab0 AS cor0
----
-29
25
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4259
SELECT + CAST( NULL AS SIGNED ) * - 91 * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT + CAST ( NULL AS INTEGER ) * - 91 * - col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 * + tab2.col2 + - col2 * col1 * col1 col1 FROM tab2
----
-11020
-25974
-90532

query I rowsort
SELECT + col1 * col1 + ( ( - col1 ) ) + + col1 * 96 AS col2 FROM tab2 AS cor0
----
1904
3906
9086

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - col2 col0 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 + - col0 col2 FROM tab2
----
-26
-3
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4264
SELECT CAST( NULL AS SIGNED ) * - 66 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT CAST ( NULL AS INTEGER ) * - 66 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 87 col1 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT + ( + cor0.col2 ) * col1 * col1 AS col2 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT ALL - - cor0.col2 + col1 * col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT 89 * - 80 - cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-7144
-7155
-7209

query I rowsort
SELECT ALL + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + col0 col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL col1 * col2 - - col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT - 63 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4273
SELECT DISTINCT + - col1 + cor0.col0 + - col2 * col1 DIV + cor0.col1 FROM tab1 cor0
----
-29
-3
-77

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT + - col1 + cor0.col0 + - col2 * col1 / + cor0.col1 FROM tab1 cor0
----
-29
-3
-77

query I rowsort
SELECT DISTINCT - - col1 * + col0 - col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + + 73 FROM tab1 AS cor0
----
73
73
73

query I rowsort
SELECT DISTINCT + 21 + - col0 FROM tab0 AS cor0
----
-14
-3
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4277
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL - CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4278
SELECT ALL - col0 + cor0.col0 DIV col1 + + 33 AS col2 FROM tab1 AS cor0
----
-25
-41
30

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL - col0 + cor0.col0 / col1 + + 33 AS col2 FROM tab1 AS cor0
----
-25
-41
30

query I rowsort
SELECT ALL - - 37 * cor0.col0 AS col1 FROM tab1 AS cor0
----
111
2368
2960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4280
SELECT ( col0 ) + CAST( NULL AS SIGNED ) * + col0 / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT ( col0 ) + CAST ( NULL AS INTEGER ) * + col0 / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col1 * + col0 + - col2 - + col0 * - 3 AS col0 FROM tab1 AS cor0
----
36615
4167
99984

query I rowsort
SELECT DISTINCT - ( + col1 ) + 33 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-64
1003
2615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4285
SELECT DISTINCT - col0 DIV + col0 + - col2 * + col2 FROM tab0 AS cor0
----
-1090
-2
-6725

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT - col0 / + col0 + - col2 * + col2 FROM tab0 AS cor0
----
-1090
-2
-6725

query I rowsort
SELECT DISTINCT + + col0 + - col0 * cor0.col0 + + col0 FROM tab2 AS cor0
----
-35
-5928
-6083

query I rowsort
SELECT ALL - col2 * - 69 FROM tab1 AS cor0
----
3726
3933
6624

query I rowsort
SELECT ALL - col1 + 46 AS col1 FROM tab0 AS cor0
----
-40
-45
-51

query I rowsort
SELECT - + col1 + 96 AS col0 FROM tab0 AS cor0
----
-1
10
5

query I rowsort
SELECT DISTINCT + 19 * col0 FROM tab1
----
1216
1520
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4291
SELECT + col1 * CAST( + col1 * col2 + col2 AS SIGNED ) FROM tab1 cor0
----
17472
37908
6270

skipif mysql # not compatible
query I rowsort label-4291
SELECT + col1 * CAST ( + col1 * col2 + col2 AS INTEGER ) FROM tab1 cor0
----
17472
37908
6270

query I rowsort
SELECT tab2.col1 - - col2 * - tab2.col0 * - col0 AS col0 FROM tab2
----
1354
158243
237175

query I rowsort
SELECT + col1 * - col1 + - tab2.col0 * col1 AS col2 FROM tab2
----
-1178
-1632
-8083

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4294
SELECT ALL - CAST( col1 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL - CAST ( col1 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + col1 - 52 AS col0 FROM tab0 AS cor0
----
34
39
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) + + col0 + - col0 * col2 col1 FROM tab2 cor0
----
-155
-1924
-2885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL col2 * + col2 * col0 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT ALL col1 * col1 * - ( + col0 + col1 ) AS col0 FROM tab2
----
-27744
-36518
-476897

query I rowsort
SELECT DISTINCT - ( + 45 ) FROM tab2, tab1 AS cor0
----
-45

query I rowsort
SELECT col0 + 4 FROM tab2
----
11
82
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4302
SELECT ALL - cor0.col0 DIV 80 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL - cor0.col0 / 80 AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - + col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - - col2 * cor0.col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - - ( + ( col2 ) ) * 23 FROM tab1 AS cor0
----
1242
1311
2208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 53 * - 20 col1 FROM tab0 AS cor0
----
1060

query I rowsort
SELECT + 94 * col1 AS col0 FROM tab0 AS cor0
----
8084
8554
9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) * col2 col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - + 39 AS col0 FROM tab0 AS cor0
----
-39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4310
SELECT DISTINCT + - CAST( col0 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT + - CAST ( col0 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 col2 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab1 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT ( 43 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT DISTINCT + col1 + - col1 + - 26 AS col1 FROM tab2
----
-26

query I rowsort
SELECT DISTINCT 59 + 35 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
94

query I rowsort
SELECT ALL 32 * col2 + + 13 AS col0 FROM tab2
----
1229
845
877

onlyif mysql # use DIV operator for integer division
query I rowsort label-4317
SELECT ALL + col2 * col1 DIV 21 FROM tab1 cor0
----
27
59
66

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL + col2 * col1 / 21 FROM tab1 cor0
----
27
59
66

query I rowsort
SELECT - ( + col2 ) * + col1 * col2 + + col0 AS col2 FROM tab1 AS cor0
----
-119728
-32426
-75813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4319
SELECT DISTINCT - - 11 + + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT - - 11 + + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4320
SELECT col1 * col1 + + col0 DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
163
676
94

skipif mysql # not compatible
query I rowsort label-4320
SELECT col1 * col1 + + col0 / - cor0.col1 AS col1 FROM tab1 AS cor0
----
163
676
94

query I rowsort
SELECT + + 52 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 168bbc8293a8c2e376fb7b7f70690cc6

query I rowsort
SELECT + col1 * - ( - 0 ) * - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4323
SELECT + cor0.col2 + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-4323
SELECT + cor0.col2 + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + + col0 * + 87 FROM tab0 AS cor0
----
2088
3045
7743

query I rowsort
SELECT - col1 * + 23 FROM tab2 AS cor0
----
-1357
-391
-713

query I rowsort
SELECT DISTINCT cor0.col2 + col0 * col1 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT - 8 * + col1 + - 91 FROM tab1 AS cor0
----
-171
-195
-299

query I rowsort
SELECT ALL + - 74 * cor0.col0 FROM tab0 AS cor0
----
-1776
-2590
-6586

query I rowsort
SELECT col2 * - col1 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT + + 35 + + col1 AS col0 FROM tab0 AS cor0
----
121
126
132

query I rowsort
SELECT ALL col2 + col0 AS col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT + col1 * + col0 + + cor0.col0 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT cor0.col1 * 18 FROM tab2, tab0 cor0, tab0 AS cor1
----
1548
1638
1746

query I rowsort
SELECT + 32 + + col0 AS col1 FROM tab2
----
110
111
39

query I rowsort
SELECT - col1 + col2 * + col1 FROM tab0 cor0
----
0
2752
7371

query I rowsort
SELECT ALL col0 * 33 + 32 AS col2 FROM tab0
----
1187
2969
824

query I rowsort
SELECT + col0 + + 47 AS col1 FROM tab2 cor0
----
125
126
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-4338
SELECT DISTINCT 71 DIV - 76 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT 71 / - 76 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - + 41 * col0 AS col1 FROM tab0 AS cor0
----
-1435
-3649
-984

query I rowsort
SELECT - col0 + - 36 FROM tab2 AS cor0
----
-114
-115
-43

query I rowsort
SELECT DISTINCT col0 * col1 + - cor0.col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL col2 * cor0.col2 * col1 + - cor0.col1 - - col0 AS col1 FROM tab1 AS cor0
----
119875
32544
75793

query I rowsort
SELECT - col1 + col2 * col1 * col2 + col1 FROM tab2 cor0
----
22599
24548
39884

query I rowsort
SELECT + - 61 AS col1 FROM tab1, tab2 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 80442609e72d8c1c7f1c6175b1d2eac8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4345
SELECT col1 DIV + 1 + + cor0.col1 * col1 + col2 AS col2 FROM tab0 AS cor0
----
7515
8454
9507

skipif mysql # not compatible
query I rowsort label-4345
SELECT col1 / + 1 + + cor0.col1 * col1 + col2 AS col2 FROM tab0 AS cor0
----
7515
8454
9507

query I rowsort
SELECT DISTINCT - + 69 + tab0.col0 AS col2 FROM tab0, tab2, tab0 AS cor0
----
-34
-45
20

query I rowsort
SELECT ALL ( - cor0.col0 ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + ( - 17 + + col0 ) * col1 col1 FROM tab1
----
1040
2067

query I rowsort
SELECT ALL 37 + + col1 * ( + col1 ) FROM tab2
----
326
3518
998

query I rowsort
SELECT + col1 * cor0.col2 * 41 + col0 + - col2 * + 39 * cor0.col0 AS col0 FROM tab0 AS cor0
----
21409
2647
85494

query I rowsort
SELECT + + cor0.col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - 50 * - ( - col0 ) FROM tab1 AS cor0
----
-150
-3200
-4000

query I rowsort
SELECT - + cor0.col2 - + col1 AS col1 FROM tab0 cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4354
SELECT col0 DIV 1 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4354
SELECT col0 / 1 AS col1 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4355
SELECT - tab2.col1 DIV + ( 4 ) + col1 + + col0 DIV + col0 FROM tab2
----
14
25
46

skipif mysql # not compatible
query I rowsort label-4355
SELECT - tab2.col1 / + ( 4 ) + col1 + + col0 / + col0 FROM tab2
----
14
25
46

query I rowsort
SELECT ( + tab1.col0 ) FROM tab1, tab2 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL - 62 FROM tab2, tab0 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT DISTINCT - col2 + - 82 + 78 FROM tab2
----
-30
-31
-42

query I rowsort
SELECT DISTINCT col0 + ( + col2 ) FROM tab0
----
171
36
57

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * col0 / col1 IN ( + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT col0 * + col2 + col0 AS col2 FROM tab0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-4362
SELECT col0 + + col0 DIV col2 AS col1 FROM tab1
----
3
65
80

skipif mysql # not compatible
query I rowsort label-4362
SELECT col0 + + col0 / col2 AS col1 FROM tab1
----
3
65
80

query I rowsort
SELECT ALL + col2 * col2 FROM tab0 WHERE NOT NULL IN ( - tab0.col0 * tab0.col0 )
----

query I rowsort
SELECT col1 * col0 FROM tab2 WHERE NULL <= col2 / col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + col1 <= NULL
----

query I rowsort
SELECT + col2 FROM tab2 WHERE NULL > - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT col2 * + col2 + + col0 + - col2 FROM tab1
----
2865
3256
9200

query III rowsort
SELECT * FROM tab0 WHERE col1 * col2 BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE - col0 * col2 IN ( - col0 + col1 * col1 / col1 )
----

query I rowsort
SELECT DISTINCT col1 * - col2 + tab0.col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT - + cor0.col0 + col0 * - col0 * - col2 FROM tab1 AS cor0
----
233408
483
614320

onlyif mysql # use DIV operator for integer division
query I rowsort label-4373
SELECT + col1 DIV col0 - col0 * - col0 FROM tab2
----
53
6084
6241

skipif mysql # not compatible
query I rowsort label-4373
SELECT + col1 / col0 - col0 * - col0 FROM tab2
----
53
6084
6241

query I rowsort
SELECT - + cor0.col0 * col0 + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT - col2 * col2 + col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT ALL + col0 * - col1 - col0 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL col1 * + col0 + + col1 FROM tab1 WHERE NOT + col0 NOT IN ( - col0 )
----

query I rowsort
SELECT ALL - col1 * - col0 + col0 - col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col1 + + 52 * + col2 + + col0 FROM tab1 AS cor0
----
2837
3038
5085

onlyif mysql # use DIV operator for integer division
query I rowsort label-4380
SELECT - col2 DIV col1 + 64 * - col2 FROM tab2 AS cor0
----
-1664
-1728
-2434

skipif mysql # not compatible
query I rowsort label-4380
SELECT - col2 / col1 + 64 * - col2 FROM tab2 AS cor0
----
-1664
-1728
-2434

onlyif mysql # use DIV operator for integer division
query I rowsort label-4381
SELECT DISTINCT + col1 + - cor0.col1 DIV - 61 + + col1 AS col0 FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT + col1 + - cor0.col1 / - 61 + + col1 AS col0 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + - col1 col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + + col2 + col2 AS col2 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT DISTINCT col1 + col2 * - col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - - col1 * - ( - col0 ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - tab1.col0 + tab1.col2 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to a7dd239868aa7502273662bd3834ab10

query I rowsort
SELECT DISTINCT col2 + col2 + col0 * col2 FROM tab1
----
270
3762
7872

query I rowsort
SELECT DISTINCT - 50 * cor0.col1 FROM tab0, tab1, tab1 AS cor0
----
-1300
-500
-650

query I rowsort
SELECT col2 + 45 AS col1 FROM tab2
----
71
72
83

query I rowsort
SELECT col0 + + 2 * - col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT 71 * cor1.col0 * 85 FROM tab2, tab1 AS cor0, tab0 cor1
----
144840
211225
537115

query I rowsort
SELECT DISTINCT + + cor0.col1 * col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL col1 * + col1 + col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4394
SELECT ALL + + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL + + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4395
SELECT + cor0.col0 * + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4395
SELECT + cor0.col0 * + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4396
SELECT DISTINCT - tab1.col2 * col1 + - col0 + col2 * col2 DIV + col2 AS col0 FROM tab1
----
-1232
-1353
-577

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT - tab1.col2 * col1 + - col0 + col2 * col2 / + col2 AS col0 FROM tab1
----
-1232
-1353
-577

onlyif mysql # use DIV operator for integer division
query I rowsort label-4397
SELECT ALL + col1 DIV - col0 AS col1 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL + col1 / - col0 AS col1 FROM tab2
----
-4
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4398
SELECT DISTINCT - col2 DIV + tab0.col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4398
SELECT DISTINCT - col2 / + tab0.col0 FROM tab0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 * - col0 + col1 col0 FROM tab1
----
-133
-3574
-7587

query I rowsort
SELECT col1 * - col0 * + col1 AS col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL - 46 - + col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-11
7252
746

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 + + col0 * - tab1.col0 AS col1 FROM tab1
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-4404
SELECT DISTINCT + col0 DIV + col2 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT + col0 / + col2 AS col2 FROM tab1
----
0
1

query I rowsort
SELECT - col2 * tab0.col0 * - col2 + - tab0.col0 * - col1 FROM tab0
----
28200
3430
606535

onlyif mysql # use DIV operator for integer division
query I rowsort label-4406
SELECT - col0 * + col2 * - tab1.col0 + col2 DIV col1 AS col1 FROM tab1
----
233477
488
614407

skipif mysql # not compatible
query I rowsort label-4406
SELECT - col0 * + col2 * - tab1.col0 + col2 / col1 AS col1 FROM tab1
----
233477
488
614407

query I rowsort
SELECT ALL - col2 / + col1 + - col0 FROM tab2 WHERE NULL NOT IN ( - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4408
SELECT ALL col0 + - col2 - col1 * col2 DIV - col0 AS col1 FROM tab1
----
-1
15
417

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL col0 + - col2 - col1 * col2 / - col0 AS col1 FROM tab1
----
-1
15
417

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 - col1 NOT IN ( col2 * + col0 * col0 + col0 * + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT tab0.col2 * - col1 * - col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - tab2.col0 / + col2 + col2 FROM tab2 WHERE NOT - col2 * col0 - - tab2.col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4412
SELECT ALL - col1 DIV + col2 col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL - col1 / + col2 col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4413
SELECT DISTINCT + col1 DIV + col0 AS col1 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT + col1 / + col0 AS col1 FROM tab0
----
1
2
3

query I rowsort
SELECT DISTINCT - 54 FROM tab1, tab2, tab1 AS cor0
----
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-4415
SELECT col1 DIV tab0.col0 + col2 AS col1 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-4415
SELECT col1 / tab0.col0 + col2 AS col1 FROM tab0
----
3
36
83

query I rowsort
SELECT DISTINCT + 64 * + col1 + tab2.col2 AS col0 FROM tab2
----
1126
2011
3802

onlyif mysql # use DIV operator for integer division
query I rowsort label-4417
SELECT DISTINCT - col1 DIV col1 + col0 AS col1 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT - col1 / col1 + col0 AS col1 FROM tab0
----
23
34
88

query I rowsort
SELECT col0 * - col2 + - 48 + col1 AS col0 FROM tab2 AS cor0
----
-2017
-206
-3033

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4419
SELECT ALL + + col0 + + col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL + + col0 + + col0 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col0 + col0 + - col1 AS col0 FROM tab1 AS cor0
----
-14
4150
6467

query I rowsort
SELECT ALL col2 + col2 * col1 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT - + 43 + + col0 + 78 FROM tab1 AS cor0
----
115
38
99

query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT ALL + col2 * + col1 * 46 FROM tab1 cor0
----
26220
57408
64584

query I rowsort
SELECT tab0.col1 * ( col0 ) FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4426
SELECT - tab1.col0 DIV - tab1.col1 + col0 FROM tab1
----
3
70
86

skipif mysql # not compatible
query I rowsort label-4426
SELECT - tab1.col0 / - tab1.col1 + col0 FROM tab1
----
3
70
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-4427
SELECT DISTINCT + col0 DIV - CAST( 25 AS SIGNED ) AS col2 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT + col0 / - CAST ( 25 AS INTEGER ) AS col2 FROM tab0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - ( col2 ) + col0 col0 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4429
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + - 14 * - ( col0 ) FROM tab1 cor0
----
1107
16
886

query I rowsort
SELECT 9 * + col0 FROM tab2 AS cor0
----
63
702
711

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4432
SELECT + CAST( NULL AS DECIMAL ) + - 83 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4432
SELECT + CAST ( NULL AS REAL ) + - 83 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 80 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT + col0 + + ( col2 ) FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT - + col0 * col1 + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-4436
SELECT DISTINCT cor0.col2 + - col1 DIV + ( - 82 ) FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT cor0.col2 + - col1 / + ( - 82 ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT + cor0.col0 + - col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT cor0.col2 * - cor0.col1 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 9fc71e55d98c21fc68f4af540b1d7651

query I rowsort
SELECT DISTINCT - col2 * col0 - col1 AS col1 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT - 51 + + col1 + - col2 FROM tab1
----
-134
-79
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4441
SELECT col2 + col1 DIV col0 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-4441
SELECT col2 + col1 / col0 FROM tab0
----
3
36
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4442
SELECT - col2 DIV 86 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4442
SELECT - col2 / 86 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * - col2 + tab2.col0 * + col1 AS col1 FROM tab2
----
-101
-512
3926

query I rowsort
SELECT ALL 87 * tab1.col1 AS col1 FROM tab1
----
1131
2262
870

query I rowsort
SELECT + tab0.col2 + - col1 + + ( - ( col0 ) ) FROM tab0
----
-131
-77
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * col2 col1 FROM tab2
----
1768
1836
2584

query I rowsort
SELECT - col0 * col1 - col2 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL - col2 * col0 + - col1 + + col1 * col0 FROM tab0
----
1186
3263
710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 - col1 col2 FROM tab0
----
-7482
-8372
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col0 FROM tab0
----
73
73
73

query I rowsort
SELECT DISTINCT - ( col0 ) * col2 + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4453
SELECT DISTINCT - CAST( + 68 AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
-30
-41
-42

skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT - CAST ( + 68 AS INTEGER ) + col2 AS col1 FROM tab2 AS cor0
----
-30
-41
-42

query I rowsort
SELECT ALL - - ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4455
SELECT ALL - 72 DIV ( + col0 ) AS col1 FROM tab0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL - 72 / ( + col0 ) AS col1 FROM tab0
----
-2
-3
0

query I rowsort
SELECT ( col0 * tab1.col0 ) AS col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT - + 28 + - col1 * col1 FROM tab1 AS cor0
----
-128
-197
-704

query I rowsort
SELECT 54 + col0 AS col2 FROM tab0 AS cor0
----
143
78
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4459
SELECT - 34 DIV col0 AS col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4459
SELECT - 34 / col0 AS col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT 38 + + col1 * ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
138
207
714

query I rowsort
SELECT ALL - tab0.col0 * tab0.col0 + - col1 AS col0 FROM tab0
----
-1322
-662
-8012

query I rowsort
SELECT DISTINCT - - 25 - + col2 FROM tab0 cor0
----
-57
-8
24

query I rowsort
SELECT DISTINCT 94 AS col0 FROM tab1, tab1 cor0
----
94

query I rowsort
SELECT - col0 * - 7 AS col1 FROM tab2 AS cor0
----
49
546
553

query I rowsort
SELECT + - col0 + 57 * col0 + + col1 * ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
13083
3408
5355

query I rowsort
SELECT + col1 + + 12 FROM tab2
----
29
43
71

query I rowsort
SELECT + col1 + 84 * 39 + col2 FROM tab0
----
3374
3395
3449

query I rowsort
SELECT ALL col2 - + ( col1 ) AS col2 FROM tab2
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 - col0 col1 FROM tab1
----
-185
-256
-60

query I rowsort
SELECT - col1 + 4 + + col2 AS col1 FROM tab0 AS cor0
----
-49
-5
-92

query I rowsort
SELECT - 33 + 43 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-2785
-3473

query I rowsort
SELECT DISTINCT - 8 AS col0 FROM tab0 cor0
----
-8

query I rowsort
SELECT ALL - - 34 + + col1 * + col0 AS col0 FROM tab0 AS cor0
----
2098
3429
8133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * + col1 col2 FROM tab0 AS cor0
----
2805
7380
96

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col2 AS REAL ) / col2 + + 29 FROM tab0 AS cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) * + col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4477
SELECT ALL - ( - col2 ) DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL - ( - col2 ) / + col0 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT col1 * - ( + 45 ) * + col0 FROM tab0
----
-152775
-364455
-92880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4479
SELECT - CAST( + col1 AS SIGNED ) + col0 + 46 * 54 FROM tab0 AS cor0
----
2422
2422
2482

skipif mysql # not compatible
query I rowsort label-4479
SELECT - CAST ( + col1 AS INTEGER ) + col0 + 46 * 54 FROM tab0 AS cor0
----
2422
2422
2482

query I rowsort
SELECT + 57 + ( + col1 * + col0 ) + - cor0.col1 * - col0 FROM tab2 AS cor0
----
2743
491
9261

query I rowsort
SELECT ALL + col0 + - col0 * col0 AS col0 FROM tab0 cor0
----
-1190
-552
-7832

query I rowsort
SELECT + col2 * - col2 * col0 + ( col2 ) * - col2 + - cor0.col0 FROM tab0 AS cor0
----
-27249
-605249
-71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4483
SELECT - ( + ( + col0 ) ) * - CAST( col1 AS SIGNED ) + col0 * col0 FROM tab0 AS cor0
----
16020
2640
4620

skipif mysql # not compatible
query I rowsort label-4483
SELECT - ( + ( + col0 ) ) * - CAST ( col1 AS INTEGER ) + col0 * col0 FROM tab0 AS cor0
----
16020
2640
4620

onlyif mysql # use DIV operator for integer division
query I rowsort label-4484
SELECT - tab1.col1 + + 10 DIV - col1 FROM tab1
----
-11
-13
-26

skipif mysql # not compatible
query I rowsort label-4484
SELECT - tab1.col1 + + 10 / - col1 FROM tab1
----
-11
-13
-26

query I rowsort
SELECT ALL + col2 * - 83 + col1 AS col1 FROM tab1
----
-4456
-4721
-7955

query I rowsort
SELECT ALL - ( + col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - ( col1 ) + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + col2 + col2 + col2 * col0 * - 43 AS col0 FROM tab0 AS cor0
----
-1503
-313650
-33990

query I rowsort
SELECT - + 4 * + 6 + col0 AS col1 FROM tab2 AS cor0
----
-17
54
55

query I rowsort
SELECT ALL col2 * + 14 * - cor0.col1 FROM tab1 cor0
----
-17472
-19656
-7980

query I rowsort
SELECT ALL + 98 * cor0.col0 + cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 9f4d89c89a6c31bd6ad178190f0ab4c5

query I rowsort
SELECT ALL + + col2 + - 62 FROM tab2 AS cor0
----
-24
-35
-36

query I rowsort
SELECT DISTINCT col2 + - 42 FROM tab0 AS cor0
----
-41
-9
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-4494
SELECT + col1 DIV - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4494
SELECT + col1 / - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + 62 + - col2 * ( - cor0.col1 ) FROM tab0 AS cor0
----
159
2900
7524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4496
SELECT ALL 79 * - cor0.col2 + + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-2028
-2106
-2964

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL 79 * - cor0.col2 + + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-2028
-2106
-2964

query I rowsort
SELECT DISTINCT + 3 AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4498
SELECT ALL + - col0 DIV col1 col0 FROM tab2 AS cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL + - col0 / col1 col0 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT + 4 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT + + 76 * col1 FROM tab1 AS cor0
----
1976
760
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4501
SELECT ALL - col0 + + ( col2 * CAST( + col0 AS SIGNED ) ) FROM tab2
----
182
1950
2923

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL - col0 + + ( col2 * CAST ( + col0 AS INTEGER ) ) FROM tab2
----
182
1950
2923

query I rowsort
SELECT - tab0.col1 + col1 * - col1 AS col0 FROM tab0
----
-7482
-8372
-9506

query I rowsort
SELECT ALL + 88 + col0 * col1 FROM tab0
----
2152
3483
8187

query I rowsort
SELECT ALL + col2 * - 21 + col1 * col0 FROM tab0 AS cor0
----
1371
3374
6377

query I rowsort
SELECT col0 * 35 FROM tab1 AS cor0
----
105
2240
2800

query I rowsort
SELECT ALL + - col2 - ( + 43 ) FROM tab1 AS cor0
----
-100
-139
-97

query I rowsort
SELECT ALL col0 * col2 * - col0 + col2 * 26 * 86 + + col2 * + 78 AS col2 FROM tab1 AS cor0
----
-101574
-392256
124470

query I rowsort
SELECT ALL cor0.col2 + + 96 FROM tab2 AS cor0
----
122
123
134

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4509
SELECT - col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4509
SELECT - col0 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + col1 * - col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
22568
24531
39825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 col0 FROM tab0
----
35
35
35

query I rowsort
SELECT - 59 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

onlyif mysql # use DIV operator for integer division
query I rowsort label-4513
SELECT + col2 DIV - tab0.col1 - tab0.col0 AS col2 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4513
SELECT + col2 / - tab0.col1 - tab0.col0 AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL col1 + 31 AS col2 FROM tab0 AS cor0
----
117
122
128

onlyif mysql # use DIV operator for integer division
query I rowsort label-4515
SELECT DISTINCT col1 DIV col0 - - cor0.col1 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT col1 / col0 - - cor0.col1 FROM tab0 AS cor0
----
89
92
99

query I rowsort
SELECT ALL col1 * - 44 AS col1 FROM tab1 AS cor0
----
-1144
-440
-572

query I rowsort
SELECT ALL - 28 + + col0 FROM tab2 AS cor0
----
-21
50
51

query I rowsort
SELECT + col0 + - cor0.col0 * + col2 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL - col1 + + ( ( col0 ) ) FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4520
SELECT ALL - col0 - col0 DIV col0 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL - col0 - col0 / col0 FROM tab2 AS cor0
----
-79
-8
-80

query I rowsort
SELECT DISTINCT + col1 * col1 + ( col0 ) FROM tab1
----
164
249
679

query I rowsort
SELECT 85 * col2 + col1 AS col1 FROM tab0
----
182
2891
7061

query I rowsort
SELECT - col0 + cor0.col0 * + col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT + + col2 * col1 * + col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT - 42 * + col2 AS col2 FROM tab0
----
-1386
-3444
-42

query I rowsort
SELECT + col2 + + 53 FROM tab1 AS cor0
----
107
110
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * ( - col0 ) - col2 col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT - col0 - col1 * col1 * + col2 FROM tab0 AS cor0
----
-244092
-679131
-9444

query I rowsort
SELECT ALL col2 + cor0.col2 + col1 * + col1 AS col2 FROM tab1 AS cor0
----
214
361
784

query I rowsort
SELECT + cor0.col0 + 66 * - 17 FROM tab2 AS cor0
----
-1043
-1044
-1115

query I rowsort
SELECT col0 - - col2 * 61 * + col2 AS col1 FROM tab0 AS cor0
----
410253
66453
96

query I rowsort
SELECT ALL - - ( + cor0.col1 ) * - col0 + cor0.col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + col1 + + col2 * - cor0.col2 * + cor0.col0 FROM tab2 AS cor0
----
-114059
-5072
-52669

query I rowsort
SELECT ALL - - col0 + col1 + col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT ( + col0 ) + col2 AS col2 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - cor0.col2 ) * cor0.col1 col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - - col1 * - 87 AS col0 FROM tab2 AS cor0
----
-1479
-2697
-5133

query I rowsort
SELECT ALL 56 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT ALL 51 * - col0 AS col1 FROM tab0 AS cor0
----
-1224
-1785
-4539

query I rowsort
SELECT + 82 * - cor0.col1 FROM tab0 AS cor0
----
-7052
-7462
-7954

query I rowsort
SELECT 8 + cor0.col0 AS col0 FROM tab2 cor0
----
15
86
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4542
SELECT - - col0 * col2 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4542
SELECT - - col0 * col2 * - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4543
SELECT - + col2 + + col0 DIV ( + col2 ) AS col2 FROM tab0 AS cor0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-4543
SELECT - + col2 + + col0 / ( + col2 ) AS col2 FROM tab0 AS cor0
----
-33
-81
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4544
SELECT + + 43 DIV col0 FROM tab2 AS cor0
----
0
0
6

skipif mysql # not compatible
query I rowsort label-4544
SELECT + + 43 / col0 FROM tab2 AS cor0
----
0
0
6

query I rowsort
SELECT - col0 * col2 - ( col0 + - col0 ) * col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + + cor0.col0 + - col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL 85 + + col0 FROM tab1 AS cor0
----
149
165
88

query I rowsort
SELECT + 0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col0 + - col0 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT ALL - col1 * - col0 + - 14 FROM tab0 AS cor0
----
2050
3381
8085

query I rowsort
SELECT - + col0 * + col0 + - cor0.col0 + - cor0.col2 * - ( col0 ) * + col2 AS col0 FROM tab2 cor0
----
107756
46566
5047

onlyif mysql # use DIV operator for integer division
query I rowsort label-4552
SELECT DISTINCT + - cor0.col2 DIV col2 AS col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT + - cor0.col2 / col2 AS col2 FROM tab1 cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4553
SELECT ALL 37 DIV col1 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL 37 / col1 FROM tab1
----
1
2
3

query I rowsort
SELECT - + 26 * col2 + - col1 * col0 FROM tab1 cor0
----
-1482
-2122
-3536

query I rowsort
SELECT 78 * + cor0.col0 + - cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 0d562e34343fa05c8f11ec6cc6800042

query I rowsort
SELECT 56 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT DISTINCT + ( 97 ) FROM tab2
----
97

query I rowsort
SELECT ( 68 ) * col0 AS col0 FROM tab1
----
204
4352
5440

query I rowsort
SELECT + tab1.col2 * + 55 * tab1.col2 FROM tab1
----
160380
178695
506880

onlyif mysql # use DIV operator for integer division
query I rowsort label-4560
SELECT col0 + cor0.col0 DIV + col1 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-4560
SELECT col0 + cor0.col0 / + col1 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT + col1 + 92 FROM tab0 AS cor0
----
178
183
189

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + - col1 * + col1 + col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT col2 + col1 + col1 AS col0 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT - col0 + + 75 * + col0 AS col1 FROM tab2 AS cor0
----
518
5772
5846

query I rowsort
SELECT ALL cor0.col1 + ( col2 ) * - col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL + + col2 * + cor0.col2 + + col1 FROM tab2 AS cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4568
SELECT DISTINCT 79 DIV tab2.col1 - col1 * - 54 FROM tab2
----
1676
3187
922

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT 79 / tab2.col1 - col1 * - 54 FROM tab2
----
1676
3187
922

query I rowsort
SELECT ALL + col2 + ( - col0 ) * col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL + col0 * - col0 - col1 * col1 FROM tab0 AS cor0
----
-10634
-16202
-7972

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4571
SELECT col1 + - CAST( NULL AS SIGNED ) * col1 - col1 * - col1 / col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT col1 + - CAST ( NULL AS INTEGER ) * col1 - col1 * - col1 / col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT col1 + CAST ( + ( col1 ) AS REAL ) AS col1 FROM tab1
----
20
26
52

query I rowsort
SELECT ALL 50 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4574
SELECT + col0 * + ( + col0 * + col0 ) - - col2 DIV + col0 FROM tab1
----
262144
45
512001

skipif mysql # not compatible
query I rowsort label-4574
SELECT + col0 * + ( + col0 * + col0 ) - - col2 / + col0 FROM tab1
----
262144
45
512001

query I rowsort
SELECT DISTINCT + col0 * col2 * col1 + + col1 AS col1 FROM tab0
----
3492
664209
68198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col1 col2 FROM tab0 AS cor0
----
-2
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4577
SELECT DISTINCT + tab2.col2 DIV - col1 AS col0 FROM tab2
----
-2
0

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT + tab2.col2 / - col1 AS col0 FROM tab2
----
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4578
SELECT cor0.col1 + col0 DIV + col1 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-4578
SELECT cor0.col1 + col0 / + col1 FROM tab1 AS cor0
----
16
19
26

query I rowsort
SELECT col0 * + tab1.col2 + 8 AS col2 FROM tab1
----
170
3656
7688

query I rowsort
SELECT tab0.col1 + 47 FROM tab0
----
133
138
144

onlyif mysql # use DIV operator for integer division
query I rowsort label-4581
SELECT - col2 * 99 - col2 DIV - tab2.col0 FROM tab2
----
-2574
-2670
-3762

skipif mysql # not compatible
query I rowsort label-4581
SELECT - col2 * 99 - col2 / - tab2.col0 FROM tab2
----
-2574
-2670
-3762

onlyif mysql # use DIV operator for integer division
query I rowsort label-4582
SELECT col1 DIV 73 + ( - col1 ) FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-4582
SELECT col1 / 73 + ( - col1 ) FROM tab0
----
-85
-90
-96

query I rowsort
SELECT + 87 - cor0.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 86238fc5bd93fbfbc70a5ece882c6813

query I rowsort
SELECT DISTINCT - col1 * - ( tab1.col2 ) * col2 FROM tab1
----
119808
32490
75816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4585
SELECT ALL - col2 * cor0.col1 * + CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL - col2 * cor0.col1 * + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT DISTINCT - - col1 + col1 - col2 * - 58 FROM tab0 AS cor0
----
2086
252
4938

query I rowsort
SELECT ALL - col1 * - col0 * col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT + 24 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT ALL + col0 * tab0.col0 * - col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT - col2 * col2 - col0 * + tab0.col2 AS col0 FROM tab0
----
-14022
-1881
-36

query I rowsort
SELECT + col1 * + col2 + + 73 * col2 * + col2 AS col1 FROM tab2 AS cor0
----
106058
50882
54054

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4592
SELECT 4 * - col1 - CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
-377
-389
-446

skipif mysql # not compatible
query I rowsort label-4592
SELECT 4 * - col1 - CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
-377
-389
-446

query I rowsort
SELECT ( cor1.col1 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL - - ( col0 ) + + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + col0 * col2 - col1 AS col0 FROM tab1 cor0
----
136
3638
7667

query I rowsort
SELECT + 85 + col0 AS col0 FROM tab0 AS cor0
----
109
120
174

query I rowsort
SELECT + 35 * col2 FROM tab1 AS cor0
----
1890
1995
3360

onlyif mysql # use DIV operator for integer division
query I rowsort label-4598
SELECT + ( + col0 ) * + ( col1 ) DIV col1 + tab1.col2 AS col0 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-4598
SELECT + ( + col0 ) * + ( col1 ) / col1 + tab1.col2 AS col0 FROM tab1
----
121
176
57

query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE NOT NULL = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4600
SELECT DISTINCT + col2 DIV - cor0.col2 col0 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT + col2 / - cor0.col2 col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + 8 * col1 AS col2 FROM tab0
----
688
728
776

onlyif mysql # use DIV operator for integer division
query I rowsort label-4602
SELECT DISTINCT tab1.col2 DIV + tab1.col1 AS col0 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT tab1.col2 / + tab1.col1 AS col0 FROM tab1
----
2
5
7

query I rowsort
SELECT - col1 + ( - col0 ) * col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT - col2 + ( col0 ) * col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL + col2 * cor0.col0 - col1 AS col0 FROM tab2 cor0
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-4606
SELECT ALL - - col1 DIV col1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL - - col1 / col1 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col0 * ( - col0 ) * col0 AS col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT ALL - col2 * - 13 AS col0 FROM tab2 AS cor0
----
338
351
494

query I rowsort
SELECT ALL + + col2 - + col2 * - 40 * col0 AS col1 FROM tab1 AS cor0
----
145977
307296
6534

query I rowsort
SELECT + - col1 + col2 * 18 AS col1 FROM tab0 AS cor0
----
-79
1385
508

query I rowsort
SELECT - col2 + col0 * - col2 * col0 AS col1 FROM tab0 AS cor0
----
-1226
-19041
-649604

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4612
SELECT - col1 + ( + col2 * col2 ) + CAST( - col0 AS SIGNED ) * - cor0.col0 col2 FROM tab2 cor0
----
6701
747
7668

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4612
SELECT - col1 + ( + col2 * col2 ) + CAST ( - col0 AS INTEGER ) * - cor0.col0 col2 FROM tab2 cor0
----
6701
747
7668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + 97 col0 FROM tab2 cor0
----
679
7566
7663

query I rowsort
SELECT DISTINCT tab1.col2 * - col1 - tab1.col1 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT - - col1 + 71 FROM tab0 AS cor0
----
157
162
168

query I rowsort
SELECT + - col1 + + ( col0 + col2 ) * - 60 AS col2 FROM tab2 AS cor0
----
-2071
-6299
-7037

query I rowsort
SELECT ALL + col2 * + ( + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + col2 * + col0 * + col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT - col1 - col0 * + col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col1 + ( - 65 ) + col0 AS col2 FROM tab2 cor0
----
-27
31
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-4622
SELECT - - 46 * col0 DIV cor0.col0 col0 FROM tab1 AS cor0
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4622
SELECT - - 46 * col0 / cor0.col0 col0 FROM tab1 AS cor0
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 82 ) + - col0 + + col2 col2 FROM tab2 cor0
----
102
30
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor0.col1 ) + col0 col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - 70 + col1 * col2 FROM tab1 AS cor0
----
1178
1334
500

query I rowsort
SELECT DISTINCT + + 55 FROM tab1 cor0
----
55

query I rowsort
SELECT DISTINCT - 10 * + col1 - col2 * ( col2 ) * - cor0.col1 AS col0 FROM tab1 AS cor0
----
119678
32390
75556

query I rowsort
SELECT DISTINCT col0 + 69 FROM tab2 AS cor0
----
147
148
76

query I rowsort
SELECT ALL - col0 * - col1 + + col0 AS col0 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT cor0.col1 * 56 + col0 AS col0 FROM tab2 cor0
----
1031
1743
3382

query I rowsort
SELECT DISTINCT - + col1 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 + col2 * + col1 FROM tab2 AS cor0
----
1515
584
861

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4633
SELECT CAST( 88 AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

skipif mysql # not compatible
query I rowsort label-4633
SELECT CAST ( 88 AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT + 85 AS col2 FROM tab0
----
85
85
85

query I rowsort
SELECT DISTINCT 66 * - tab0.col2 AS col0 FROM tab0, tab2 AS cor0
----
-2178
-5412
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4636
SELECT ALL - col2 DIV 8 + + col1 FROM tab0 cor0
----
81
82
97

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL - col2 / 8 + + col1 FROM tab0 cor0
----
81
82
97

query I rowsort
SELECT + ( - col1 ) + - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT + + ( - 39 ) - col0 * col1 FROM tab2 AS cor0
----
-1382
-256
-4641

query I rowsort
SELECT ALL - + ( - col1 ) + + cor0.col2 * col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT - + col2 + 33 - + col0 AS col2 FROM tab1 AS cor0
----
-143
-24
-88

query I rowsort
SELECT + col2 + col0 * 35 AS col1 FROM tab2
----
272
2756
2803

query I rowsort
SELECT ALL - 51 + cor0.col2 AS col0 FROM tab1 AS cor0
----
3
45
6

query I rowsort
SELECT ALL - col2 * + col0 + 37 FROM tab2 AS cor0
----
-152
-1991
-2965

query I rowsort
SELECT ALL - col0 + 92 AS col1 FROM tab0 AS cor0
----
3
57
68

query I rowsort
SELECT ALL - col2 - col2 * col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT ALL + col1 - + col2 * + 5 FROM tab1 AS cor0
----
-244
-275
-467

query I rowsort
SELECT DISTINCT + - col0 * + col1 + + 22 AS col2 FROM tab1 cor0
----
-1018
-56
-618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 65 col0 FROM tab0 AS cor0
----
-2145
-5330
-65

query I rowsort
SELECT - + col2 * - 51 FROM tab1 cor0
----
2754
2907
4896

query I rowsort
SELECT ALL + col1 + - col0 + col2 FROM tab2
----
-24
51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + + col0 col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + col1 * col2 + col2 AS col0 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT - cor0.col1 * 86 FROM tab2 AS cor0
----
-1462
-2666
-5074

query I rowsort
SELECT - col1 * cor0.col0 * col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT + col2 * + ( + col1 + + 78 ) * + 86 AS col0 FROM tab2 AS cor0
----
253098
306332
310460

query I rowsort
SELECT - 51 * - col1 AS col0 FROM tab1 AS cor0
----
1326
510
663

query I rowsort
SELECT ALL - cor1.col0 AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT DISTINCT 5 * - 19 FROM tab1, tab0 AS cor0
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + col0 col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - 32 * + col0 AS col2 FROM tab2 AS cor0
----
-224
-2496
-2528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4661
SELECT CAST( NULL AS SIGNED ) * + 44 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT CAST ( NULL AS INTEGER ) * + 44 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4662
SELECT 40 DIV - col1 + + col1 * col2 FROM tab2 AS cor0
----
1534
644
836

skipif mysql # not compatible
query I rowsort label-4662
SELECT 40 / - col1 + + col1 * col2 FROM tab2 AS cor0
----
1534
644
836

onlyif mysql # use DIV operator for integer division
query I rowsort label-4663
SELECT + col2 + + col2 DIV - ( + 50 ) FROM tab0 AS cor0
----
1
33
81

skipif mysql # not compatible
query I rowsort label-4663
SELECT + col2 + + col2 / - ( + 50 ) FROM tab0 AS cor0
----
1
33
81

query I rowsort
SELECT + - col2 * - col1 + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + - cor0.col0 * - col2 + - ( col1 * col0 ) AS col2 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT DISTINCT - 44 FROM tab1, tab0, tab1 cor0
----
-44

query I rowsort
SELECT ALL ( col2 * + 0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + cor0.col1 + ( 40 ) * - tab1.col0 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 0718ca29a54b30e8bdb995e6eba14c58

query I rowsort
SELECT col0 + + tab1.col1 * + ( col0 ) * + col0 AS col2 FROM tab1
----
237
41024
83280

onlyif mysql # use DIV operator for integer division
query I rowsort label-4670
SELECT DISTINCT ( col1 ) DIV - col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT ( col1 ) / - col1 FROM tab0
----
-1

query I rowsort
SELECT col2 + + ( + col2 ) * + col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ( - col1 + + 17 * - 75 ) AS col1 FROM tab0
----
-1361
-1366
-1372

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4674
SELECT col1 + - col2 DIV + col1 AS col2 FROM tab2
----
15
31
59

skipif mysql # not compatible
query I rowsort label-4674
SELECT col1 + - col2 / + col1 AS col2 FROM tab2
----
15
31
59

query I rowsort
SELECT - col1 * + cor0.col2 - col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4676
SELECT cor0.col1 DIV + cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d7f03813050fab0932763694116f69ed

skipif mysql # not compatible
query I rowsort label-4676
SELECT cor0.col1 / + cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d7f03813050fab0932763694116f69ed

query I rowsort
SELECT DISTINCT tab2.col1 * col2 * col1 + col1 - - tab2.col0 * + col0 FROM tab2
----
17240
26027
96649

onlyif mysql # use DIV operator for integer division
query I rowsort label-4678
SELECT DISTINCT col2 - col0 DIV - col0 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-4678
SELECT DISTINCT col2 - col0 / - col0 FROM tab2
----
27
28
39

query I rowsort
SELECT cor0.col2 + col2 + - col1 AS col2 FROM tab1 cor0
----
104
179
82

query I rowsort
SELECT - col0 + - col1 + col2 AS col1 FROM tab0
----
-131
-77
-98

query I rowsort
SELECT + - col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL cor0.col1 * col2 + col2 * col2 FROM tab0 cor0
----
14186
3927
98

query I rowsort
SELECT DISTINCT + + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col0 + + col1 AS col1 FROM tab2 cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-4685
SELECT ALL + col1 * cor0.col0 DIV col1 + + col2 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL + col1 * cor0.col0 / col1 + + col2 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 col1 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT + + 47 * + col2 * ( 70 ) FROM tab0 AS cor0
----
108570
269780
3290

query I rowsort
SELECT ALL col1 + - col1 + cor0.col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT ( col2 ) > ( + col2 )
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4690
SELECT col0 DIV col1 + col0 - col2 col1 FROM tab0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4690
SELECT col0 / col1 + col0 - col2 col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL tab1.col2 * - tab1.col2 + tab1.col0 AS col0 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT + tab0.col2 * col0 + + col1 + - col0 FROM tab0
----
7300
854
97

query I rowsort
SELECT ALL + + col1 * + col1 * 15 AS col2 FROM tab2 AS cor0
----
14415
4335
52215

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 + + col2 / - col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT - col1 + col0 < ( + col2 + + col1 * col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= ( - col0 * col1 )
----

query I rowsort
SELECT - col2 + col2 + col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4699
SELECT DISTINCT tab1.col0 + col1 DIV - col2 + + col1 FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT tab1.col0 + col1 / - col2 + + col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL + col0 * - col0 * col1 + + col0 + col0 FROM tab0
----
-118755
-49488
-720633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 col2 FROM tab2
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col1 + tab1.col2 col0 FROM tab1
----
124
134
205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT col0 * - col0 * cor0.col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4706
SELECT ALL - col1 DIV - col0 + - col1 FROM tab1
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL - col1 / - col0 + - col1 FROM tab1
----
-10
-13
-18

query I rowsort
SELECT DISTINCT - col0 * col0 * col1 AS col1 FROM tab2
----
-106097
-1519
-358956

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 ) < NULL
----

query I rowsort
SELECT ALL tab2.col2 + col1 * - col0 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT col0 - + col1 * col0 AS col0 FROM tab0
----
-2040
-3360
-8010

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( - col1 )
----

query I rowsort
SELECT col2 - tab1.col2 * col2 FROM tab1
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-4713
SELECT - col0 + + tab2.col2 DIV + col1 + + col2 AS col2 FROM tab2
----
-39
-52
20

skipif mysql # not compatible
query I rowsort label-4713
SELECT - col0 + + tab2.col2 / + col1 + + col2 AS col2 FROM tab2
----
-39
-52
20

query I rowsort
SELECT col2 * - col1 * + col2 + col0 AS col2 FROM tab2
----
-22592
-24469
-39806

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * col1 * + col1 IN ( col2 + - col1 * - tab1.col2 )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4716
SELECT + col2 * - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4716
SELECT + col2 * - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col0 + col2 * + cor0.col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT - cor0.col0 * ( ( cor0.col2 ) ) FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4719
SELECT col2 DIV ( 60 ) FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4719
SELECT col2 / ( 60 ) FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + col0 + + col1 * 89 * + col1 AS col2 FROM tab0 AS cor0
----
658268
737098
837436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 * col2 col1 FROM tab2
----
-1820
-1890
-2660

query I rowsort
SELECT + cor0.col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-4723
SELECT ALL - col1 DIV + tab1.col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL - col1 / + tab1.col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 * col0 + 12 FROM tab2
----
-177
-2016
-2990

query I rowsort
SELECT + col1 + 36 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
1274
133
3043

query I rowsort
SELECT DISTINCT + 6 * col0 + - col2 FROM tab2 cor0
----
15
436
442

query I rowsort
SELECT - col2 * 87 + col1 FROM tab1 cor0
----
-4672
-4949
-8339

query I rowsort
SELECT - col2 * + col1 + + cor0.col0 * + col1 AS col1 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT - ( col1 ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4730
SELECT - col0 * col2 + col1 DIV col2 AS col1 FROM tab0
----
-7297
-790
62

skipif mysql # not compatible
query I rowsort label-4730
SELECT - col0 * col2 + col1 / col2 AS col1 FROM tab0
----
-7297
-790
62

query I rowsort
SELECT 71 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT ALL + col0 * col1 + - tab0.col2 AS col0 FROM tab0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-4733
SELECT DISTINCT - col2 + col1 DIV 63 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT - col2 + col1 / 63 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT tab0.col0 + 29 FROM tab0
----
118
53
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4735
SELECT ALL - + CAST( + col1 AS SIGNED ) * - col1 + - col1 col2 FROM tab2 AS cor0
----
272
3422
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL - + CAST ( + col1 AS INTEGER ) * - col1 + - col1 col2 FROM tab2 AS cor0
----
272
3422
930

onlyif mysql # use DIV operator for integer division
query I rowsort label-4736
SELECT - cor0.col2 * col1 DIV - col0 + + 1 FROM tab2 AS cor0
----
120
20
9

skipif mysql # not compatible
query I rowsort label-4736
SELECT - cor0.col2 * col1 / - col0 + + 1 FROM tab2 AS cor0
----
120
20
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) * + cor0.col0 + - col1 col1 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4738
SELECT DISTINCT + CAST( 22 AS SIGNED ) - cor0.col2 * - col0 AS col0 FROM tab0 AS cor0
----
57
7320
814

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT + CAST ( 22 AS INTEGER ) - cor0.col2 * - col0 AS col0 FROM tab0 AS cor0
----
57
7320
814

query I rowsort
SELECT - 97 * - col0 FROM tab0
----
2328
3395
8633

onlyif mysql # use DIV operator for integer division
query I rowsort label-4740
SELECT ALL - + ( col1 ) DIV cor0.col0 + col2 + col2 FROM tab2 AS cor0
----
50
52
76

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL - + ( col1 ) / cor0.col0 + col2 + col2 FROM tab2 AS cor0
----
50
52
76

query I rowsort
SELECT 41 * tab2.col1 AS col0 FROM tab2
----
1271
2419
697

query I rowsort
SELECT - ( - 91 ) * col0 * - col0 AS col2 FROM tab1
----
-372736
-582400
-819

onlyif mysql # use DIV operator for integer division
query I rowsort label-4743
SELECT DISTINCT 10 DIV col2 - cor0.col1 FROM tab0 AS cor0
----
-86
-87
-91

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT 10 / col2 - cor0.col1 FROM tab0 AS cor0
----
-86
-87
-91

query I rowsort
SELECT + col0 + col2 * col2 * cor0.col0 FROM tab1 AS cor0
----
208000
737360
8751

query I rowsort
SELECT ALL - col0 + - col2 * + col1 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col2 ) col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - ( - col1 ) * + col2 * - col2 + col0 FROM tab2 AS cor0
----
-22592
-24469
-39806

query I rowsort
SELECT + col2 + col0 + + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1424
1461
691

query I rowsort
SELECT ALL - ( - cor0.col0 ) * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL col2 - col1 * col1 AS col2 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT - ( col2 ) - - tab0.col2 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL - col2 * + tab1.col0 - col2 AS col2 FROM tab1
----
-216
-3705
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-4753
SELECT ALL + col0 DIV + ( + 5 ) FROM tab0
----
17
4
7

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL + col0 / + ( + 5 ) FROM tab0
----
17
4
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4754
SELECT + - cor0.col2 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT + - cor0.col2 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4755
SELECT - cor0.col1 DIV + col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4755
SELECT - cor0.col1 / + col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + + col1 - + 28 AS col0 FROM tab2 AS cor0
----
-11
3
31

query I rowsort
SELECT + - ( + col0 ) * col2 + col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT col1 + + 81 - col2 AS col1 FROM tab0
----
134
177
90

query I rowsort
SELECT ( tab0.col0 ) * col1 - col0 AS col0 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT - col0 + + col0 * col1 * + cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
22790
271466
6747

query I rowsort
SELECT col2 + + 36 FROM tab1 AS cor0
----
132
90
93

query I rowsort
SELECT ALL col1 * + 21 FROM tab1 AS cor0
----
210
273
546

query I rowsort
SELECT ALL - tab1.col1 * 27 * col1 + - col0 * + col0 * col0 + col0 FROM tab1
----
-18276
-264780
-516483

query I rowsort
SELECT + ( - ( col1 ) ) + col2 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4765
SELECT + cor0.col0 + 8 DIV - col1 AS col0 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4765
SELECT + cor0.col0 + 8 / - col1 AS col0 FROM tab1 cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4766
SELECT col1 * CAST( NULL AS SIGNED ) * - 63 + - col1 * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4766
SELECT col1 * CAST ( NULL AS INTEGER ) * - 63 + - col1 * - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + col1 ) * col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4768
SELECT DISTINCT - col0 DIV 45 + + cor0.col0 AS col2 FROM tab0 cor0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT - col0 / 45 + + cor0.col0 AS col2 FROM tab0 cor0
----
24
35
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4769
SELECT - ( - tab1.col2 + col2 ) DIV col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4769
SELECT - ( - tab1.col2 + col2 ) / col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + - col0 * + 60 FROM tab0 AS cor0
----
-1440
-2100
-5340

query I rowsort
SELECT ALL - ( + col1 ) * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - 64 * - 28 FROM tab1 cor0
----
1792
1792
1792

query I rowsort
SELECT DISTINCT col2 * col1 + 24 FROM tab1
----
1272
1428
594

query I rowsort
SELECT - col1 - - col2 * + 93 * - 7 FROM tab2
----
-16985
-17608
-24755

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) * + ( - ( col0 ) ) FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + col2 * + col2 + - ( 33 ) AS col1 FROM tab1 AS cor0
----
2883
3216
9183

query I rowsort
SELECT col1 * + col1 + - 12 AS col0 FROM tab0 AS cor0
----
7384
8269
9397

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 24 col1 FROM tab0 AS cor0
----
-1968
-24
-792

query I rowsort
SELECT ALL - col2 * col1 * col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT col2 * + cor0.col0 * + col0 + col2 FROM tab0 AS cor0
----
1226
19041
649604

onlyif mysql # use DIV operator for integer division
query I rowsort label-4781
SELECT - + col1 * cor0.col0 DIV - col2 FROM tab1 AS cor0
----
1
10
11

skipif mysql # not compatible
query I rowsort label-4781
SELECT - + col1 * cor0.col0 / - col2 FROM tab1 AS cor0
----
1
10
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4782
SELECT DISTINCT col1 / CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL 65 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT 11 * - tab0.col2 * ( 39 ) - + col1 * - col2 * col1 AS col2 FROM tab0
----
229911
643864
8980

query I rowsort
SELECT DISTINCT - ( + col2 ) + 77 FROM tab0
----
-5
44
76

query I rowsort
SELECT ALL col2 * col1 + + col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT - 20 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

onlyif mysql # use DIV operator for integer division
query I rowsort label-4788
SELECT DISTINCT - - cor0.col2 + col1 DIV 76 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT - - cor0.col2 + col1 / 76 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4789
SELECT - col0 * col1 DIV + col0 + - col1 * - ( - 90 + + col0 ) * - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-18467
-69502
-7123

skipif mysql # not compatible
query I rowsort label-4789
SELECT - col0 * col1 / + col0 + - col1 * - ( - 90 + + col0 ) * - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-18467
-69502
-7123

onlyif mysql # use DIV operator for integer division
query I rowsort label-4790
SELECT cor0.col1 + col1 DIV + cor0.col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-4790
SELECT cor0.col1 + col1 / + cor0.col1 FROM tab2 AS cor0
----
18
32
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-4791
SELECT DISTINCT - col1 + 98 DIV + col1 + col2 AS col2 FROM tab1 AS cor0
----
31
56
90

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT - col1 + 98 / + col1 + col2 AS col2 FROM tab1 AS cor0
----
31
56
90

query I rowsort
SELECT + col2 * col1 + col0 * + col1 AS col2 FROM tab0 cor0
----
15561
3492
4902

query I rowsort
SELECT - col0 + - ( - col0 * + col2 ) AS col2 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4794
SELECT DISTINCT + col1 * - col2 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT + col1 * - col2 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col1 * ( 37 * + col1 ) + cor0.col1 FROM tab2 AS cor0
----
10710
128856
35588

query I rowsort
SELECT ALL - col0 + ( - 6 ) FROM tab2 AS cor0
----
-13
-84
-85

query I rowsort
SELECT ALL + 16 * cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to ea70183c0723e155656c0726ed6276f2

query I rowsort
SELECT + ( - 95 ) FROM tab0, tab2, tab2 cor0, tab1
----
81 values hashing to 6ddacf7cdc440b47c37bfd544945f3f8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4799
SELECT col1 + col2 DIV col1 AS col0 FROM tab2
----
19
31
59

skipif mysql # not compatible
query I rowsort label-4799
SELECT col1 + col2 / col1 AS col0 FROM tab2
----
19
31
59

query I rowsort
SELECT - tab1.col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT DISTINCT + col0 + col2 * - 33 * - col0 FROM tab2 AS cor0
----
6244
67002
99145

query I rowsort
SELECT + - cor0.col2 - col0 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 - - 92 col1 FROM tab0 AS cor0
----
1181
6816
93

query I rowsort
SELECT - 85 * + col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-4644
-4902
-8256

query I rowsort
SELECT ALL - 90 * col0 FROM tab0 AS cor0
----
-2160
-3150
-8010

query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) + - 46 AS col0 FROM tab1 AS cor0
----
11
50
8

query I rowsort
SELECT - + col0 * + col1 - ( 50 ) AS col1 FROM tab2 cor0
----
-1393
-267
-4652

query I rowsort
SELECT ALL + col2 - 60 * col1 FROM tab1
----
-1506
-543
-684

query I rowsort
SELECT DISTINCT col1 * col1 + - tab2.col2 - col0 * col2 FROM tab2
----
-2751
1427
745

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col0 AS REAL ) * - tab0.col2 + - col0 col1 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT ALL + col0 - ( col1 ) * 85 FROM tab2
----
-1366
-2628
-4937

query I rowsort
SELECT ALL tab1.col2 * tab1.col2 + 66 FROM tab1
----
2982
3315
9282

query I rowsort
SELECT ALL - ( col1 ) + - col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 - cor0.col1 * cor0.col0 col2 FROM tab1 AS cor0
----
-240
-4288
-8720

query I rowsort
SELECT + + col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - - 23 - col2 FROM tab2 AS cor0
----
-15
-3
-4

query I rowsort
SELECT DISTINCT + + col0 + + col1 * + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + cor0.col1 - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL 13 + col1 FROM tab1 AS cor0
----
23
26
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-4820
SELECT ALL col1 DIV col0 + 52 col0 FROM tab1
----
52
52
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL col1 / col0 + 52 col0 FROM tab1
----
52
52
60

query I rowsort
SELECT - col0 * + col1 + - col2 AS col0 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL - cor0.col0 + col0 * 38 * - cor0.col0 FROM tab1 AS cor0
----
-155712
-243280
-345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + 12 * 91 col1 FROM tab2 AS cor0
----
1118
1119
1130

query I rowsort
SELECT DISTINCT + col0 + + col1 + + col0 * + col2 * + col0 FROM tab1 AS cor0
----
233546
515
614493

onlyif mysql # use DIV operator for integer division
query I rowsort label-4825
SELECT ALL - 32 DIV col1 - col2 FROM tab2 AS cor0
----
-26
-28
-39

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL - 32 / col1 - col2 FROM tab2 AS cor0
----
-26
-28
-39

query I rowsort
SELECT ALL + 47 * + col2 AS col1 FROM tab0
----
1551
3854
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4827
SELECT ( + col1 ) + + cor0.col0 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4827
SELECT ( + col1 ) + + cor0.col0 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 79 * 67 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to eb8ba9c91510d328a5c20709d0fcf380

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4829
SELECT + CAST( col1 AS SIGNED ) + cor0.col2 + col1 AS col0 FROM tab2 cor0
----
144
72
89

skipif mysql # not compatible
query I rowsort label-4829
SELECT + CAST ( col1 AS INTEGER ) + cor0.col2 + col1 AS col0 FROM tab2 cor0
----
144
72
89

query I rowsort
SELECT DISTINCT + col0 + + 39 FROM tab2 AS cor0
----
117
118
46

query I rowsort
SELECT - ( col2 ) * cor0.col1 + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + col1 * - 76 + col2 + - col1 * col1 * col1 AS col1 FROM tab2 cor0
----
-209837
-32120
-6167

query I rowsort
SELECT ( cor0.col2 ) + - col1 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + col0 + col1 * 74 FROM tab1 AS cor0
----
1042
1927
804

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4835
SELECT - - col0 + - col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT - - col0 + - col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 88 + col1 FROM tab1 AS cor0
----
-62
-75
-78

query I rowsort
SELECT DISTINCT + 20 * 27 FROM tab1
----
540

query I rowsort
SELECT + + 79 * - col1 AS col2 FROM tab0 AS cor0
----
-6794
-7189
-7663

query I rowsort
SELECT col2 + + col0 * col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT - + 26 + col2 * - 98 * 82 FROM tab0 AS cor0
----
-265214
-658978
-8062

query I rowsort
SELECT - col0 * col1 * col0 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-4842
SELECT ALL - col1 * + ( - col1 ) DIV col1 AS col2 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL - col1 * + ( - col1 ) / col1 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - col0 * - 11 + col2 + + cor0.col0 * col0 FROM tab1 AS cor0
----
4857
7376
96

query I rowsort
SELECT DISTINCT col0 + ( + col2 ) * - col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + col0 * + 47 * col1 FROM tab2 AS cor0
----
10199
216294
63121

query I rowsort
SELECT col2 - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * - col0 + - col1 + - col1 FROM tab1 AS cor0
----
-214
-3668
-7706

query I rowsort
SELECT col0 * + 48 + + col2 * cor0.col2 FROM tab1 AS cor0
----
13056
3060
6321

query I rowsort
SELECT + col1 - + 6 AS col2 FROM tab0 AS cor0
----
80
85
91

query I rowsort
SELECT - - col2 + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - 94 * ( + col2 ) + - ( col2 + + col1 ) FROM tab0 AS cor0
----
-192
-3221
-7881

query I rowsort
SELECT ALL tab2.col2 + + ( 19 ) * + col2 FROM tab2
----
520
540
760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4853
SELECT + CAST( col2 AS SIGNED ) - cor0.col0 FROM tab2 AS cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-4853
SELECT + CAST ( col2 AS INTEGER ) - cor0.col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL + ( 54 ) + cor0.col1 + + cor0.col0 FROM tab1 AS cor0
----
128
147
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + 67 col1 FROM tab2 AS cor0
----
105
93
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4856
SELECT - ( col1 ) DIV col1 + ( + col1 * col2 ) FROM tab2 AS cor0
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-4856
SELECT - ( col1 ) / col1 + ( + col1 * col2 ) FROM tab2 AS cor0
----
1533
645
836

query I rowsort
SELECT - col2 * + col1 * col0 AS col0 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4858
SELECT DISTINCT CAST( NULL AS SIGNED ) / 72 FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 72 FROM tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( - col0 ) + col1 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1281
241
4583

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 + cor0.col2 * col1 col0 FROM tab1 AS cor0
----
1173
1329
495

query I rowsort
SELECT - col0 * - 33 AS col1 FROM tab2
----
231
2574
2607

query I rowsort
SELECT DISTINCT - ( + 26 ) FROM tab1
----
-26

query I rowsort
SELECT col2 * col0 * + col1 + - col2 FROM tab0 AS cor0
----
3394
664036
68079

query I rowsort
SELECT - - col2 * - 55 AS col2 FROM tab1 cor0
----
-2970
-3135
-5280

query I rowsort
SELECT ALL 53 AS col1 FROM tab2, tab0 AS cor0, tab0 cor1, tab0, tab1 cor2
----
243 values hashing to 44348c6e4ca1e80420908408c8677c28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4866
SELECT - col0 + - cor0.col2 * - ( col0 + CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
14507
1560
35

skipif mysql # not compatible
query I rowsort label-4866
SELECT - col0 + - cor0.col2 * - ( col0 + CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
14507
1560
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + ( - col1 + cor0.col2 ) col2 FROM tab2 AS cor0
----
-108
-858
798

query I rowsort
SELECT - 30 * + 81 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 76726b8f93d6b66432bd40521454465e

query I rowsort
SELECT ALL - cor0.col2 + - col2 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4870
SELECT col2 DIV col0 + ( 59 + col1 ) * + col1 AS col0 FROM tab2 AS cor0
----
1292
2793
6962

skipif mysql # not compatible
query I rowsort label-4870
SELECT col2 / col0 + ( 59 + col1 ) * + col1 AS col0 FROM tab2 AS cor0
----
1292
2793
6962

query I rowsort
SELECT DISTINCT ( + col1 ) + 25 FROM tab0 AS cor0
----
111
116
122

query I rowsort
SELECT ALL + 54 * - col2 - - 53 * - col0 AS col0 FROM tab1 AS cor0
----
-3075
-6470
-9424

query I rowsort
SELECT col0 + + col1 * - col1 AS col2 FROM tab0 cor0
----
-7372
-8192
-9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 11 + - col0 + + col1 col1 FROM tab0 AS cor0
----
13
73

query I rowsort
SELECT DISTINCT col2 + - col0 - col2 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + col1 * col0 + - 64 FROM tab2 AS cor0
----
1279
153
4538

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL tab0.col1 + col2 * col1 AS col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT DISTINCT col2 * + col2 + col2 AS col1 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT col0 * 85 * - col2 FROM tab2
----
-16065
-172380
-255170

onlyif mysql # use DIV operator for integer division
query I rowsort label-4881
SELECT DISTINCT + col2 * col1 DIV + col0 + cor0.col0 * - col2 * 75 + + ( + col2 ) * 68 AS col2 FROM tab0 AS cor0
----
-2555
-541691
-57038

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT + col2 * col1 / + col0 + cor0.col0 * - col2 * 75 + + ( + col2 ) * 68 AS col2 FROM tab0 AS cor0
----
-2555
-541691
-57038

query I rowsort
SELECT DISTINCT col1 * - ( + col1 ) + tab0.col1 AS col2 FROM tab0
----
-7310
-8190
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-4883
SELECT ALL col2 * col1 DIV + 43 FROM tab0
----
173
2
66

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL col2 * col1 / + 43 FROM tab0
----
173
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4884
SELECT ALL - cor0.col2 DIV cor0.col1 + col1 + col0 col0 FROM tab2 AS cor0
----
137
38
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL - cor0.col2 / cor0.col1 + col1 + col0 col0 FROM tab2 AS cor0
----
137
38
94

query I rowsort
SELECT + + 62 AS col1 FROM tab2 AS cor0
----
62
62
62

query I rowsort
SELECT ALL - 75 + col2 AS col0 FROM tab0 AS cor0
----
-42
-74
7

query I rowsort
SELECT DISTINCT - col2 - - 27 FROM tab2
----
-11
0
1

query I rowsort
SELECT ALL - col2 + ( 73 ) AS col0 FROM tab2
----
35
46
47

query I rowsort
SELECT DISTINCT - col1 * ( - col2 ) + - col2 FROM tab1
----
1152
1350
513

query I rowsort
SELECT ALL - 51 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4

query I rowsort
SELECT + cor0.col1 - col0 * - col2 AS col2 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4892
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4893
SELECT DISTINCT tab0.col1 - CAST( + col1 AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT tab0.col1 - CAST ( + col1 AS INTEGER ) FROM tab0
----
0

query I rowsort
SELECT 23 * col2 * col2 AS col2 FROM tab0
----
154652
23
25047

onlyif mysql # use DIV operator for integer division
query I rowsort label-4895
SELECT DISTINCT + col2 * col0 * cor0.col1 + ( + col2 ) + + col1 DIV col2 FROM tab0 AS cor0
----
3493
664201
68147

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT + col2 * col0 * cor0.col1 + ( + col2 ) + + col1 / col2 FROM tab0 AS cor0
----
3493
664201
68147

query I rowsort
SELECT 39 * tab2.col0 + col0 AS col0 FROM tab2
----
280
3120
3160

onlyif mysql # use DIV operator for integer division
query I rowsort label-4897
SELECT + 83 DIV + ( tab1.col1 ) + + col0 FROM tab1
----
6
72
86

skipif mysql # not compatible
query I rowsort label-4897
SELECT + 83 / + ( tab1.col1 ) + + col0 FROM tab1
----
6
72
86

query I rowsort
SELECT ALL - + 17 - col0 * + col0 FROM tab2 AS cor0
----
-6101
-6258
-66

query I rowsort
SELECT ALL col1 * + cor0.col1 + + col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ( - col0 ) + - col0 * col1 FROM tab2 AS cor0
----
-1422
-224
-4680

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0 cor1, tab0, tab2 cor2
----
3645 values hashing to 972d282d6d92f451c90dc8ca51a18f3e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4902
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 30 col0 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT + CAST ( NULL AS REAL ) + 30 col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL 72 + 23 AS col1 FROM tab0 AS cor0
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 - + 52 * - 94 col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to d0da931958dadc06cca65e74107a01db

query I rowsort
SELECT ALL col1 * - ( tab1.col2 ) + + col0 AS col1 FROM tab1
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-4906
SELECT DISTINCT + col1 * - col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT + col1 * - col0 / col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4907
SELECT - - CAST( col2 AS SIGNED ) + col1 + + col0 AS col1 FROM tab2 AS cor0
----
134
163
65

skipif mysql # not compatible
query I rowsort label-4907
SELECT - - CAST ( col2 AS INTEGER ) + col1 + + col0 AS col1 FROM tab2 AS cor0
----
134
163
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - cor0.col2 * col2 col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 52 ) * col2 + + 12 + - col1 col1 FROM tab1 AS cor0
----
2794
2966
4991

query I rowsort
SELECT col2 * - ( + col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL - col1 * + 11 + - col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1066
143
5723

query I rowsort
SELECT DISTINCT 60 * col2 AS col2 FROM tab1 cor0
----
3240
3420
5760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4913
SELECT - CAST( NULL AS DECIMAL ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT - CAST ( NULL AS REAL ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) + - col2 AS col0 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4915
SELECT DISTINCT - ( ( col1 ) ) * CAST( - 33 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2838
3003
3201

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT - ( ( col1 ) ) * CAST ( - 33 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2838
3003
3201

query I rowsort
SELECT + col2 * + col1 + col2 * - col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 32 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4918
SELECT DISTINCT + col0 + + col0 * - CAST( NULL AS SIGNED ) * + cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT + col0 + + col0 * - CAST ( NULL AS INTEGER ) * + cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 + + cor0.col2 * - col2 FROM tab0 cor0
----
-1003
-6633
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 68 + + col1 col2 FROM tab1 AS cor0
----
78
81
94

query I rowsort
SELECT + - cor0.col1 * - cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT + col0 * + 60 AS col0 FROM tab2 AS cor0
----
420
4680
4740

query I rowsort
SELECT ALL + - col0 * cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL + cor0.col1 + ( col2 ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - col1 + - 86 * - col2 FROM tab1 AS cor0
----
4618
4892
8243

onlyif mysql # use DIV operator for integer division
query I rowsort label-4926
SELECT DISTINCT + col2 DIV ( tab2.col1 ) AS col0 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT + col2 / ( tab2.col1 ) AS col0 FROM tab2
----
0
2

query I rowsort
SELECT DISTINCT 32 AS col0 FROM tab0, tab1 AS cor0
----
32

query I rowsort
SELECT 64 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4929
SELECT col0 + + 73 * 80 DIV + col1 AS col0 FROM tab2
----
176
195
422

skipif mysql # not compatible
query I rowsort label-4929
SELECT col0 + + 73 * 80 / + col1 AS col0 FROM tab2
----
176
195
422

onlyif mysql # use DIV operator for integer division
query I rowsort label-4930
SELECT col1 DIV 40 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4930
SELECT col1 / 40 AS col2 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT 59 - cor0.col1 FROM tab0 AS cor0
----
-27
-32
-38

query I rowsort
SELECT ALL col0 + - col2 * + col2 - + col2 * - col2 * - 39 AS col1 FROM tab1
----
-116637
-129896
-368560

query I rowsort
SELECT - cor0.col2 * - 48 FROM tab2 AS cor0
----
1248
1296
1824

query I rowsort
SELECT - ( + col1 ) * + col0 - 4 FROM tab0 AS cor0
----
-2068
-3399
-8103

onlyif mysql # use DIV operator for integer division
query I rowsort label-4935
SELECT + - ( ( - col2 ) ) DIV 26 + col0 FROM tab1 AS cor0
----
5
66
83

skipif mysql # not compatible
query I rowsort label-4935
SELECT + - ( ( - col2 ) ) / 26 + col0 FROM tab1 AS cor0
----
5
66
83

query I rowsort
SELECT ALL - col0 * 44 AS col0 FROM tab1
----
-132
-2816
-3520

query I rowsort
SELECT ALL cor0.col0 * ( - col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4938
SELECT ALL + col2 DIV col0 + col0 AS col2 FROM tab2
----
10
78
79

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL + col2 / col0 + col0 AS col2 FROM tab2
----
10
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4939
SELECT - col2 + CAST( + 35 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-47
2
34

skipif mysql # not compatible
query I rowsort label-4939
SELECT - col2 + CAST ( + 35 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-47
2
34

query I rowsort
SELECT + - col0 + - ( 25 ) FROM tab2 AS cor0
----
-103
-104
-32

query I rowsort
SELECT - col0 + 4 FROM tab0 AS cor0
----
-20
-31
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - 1 col0 FROM tab1
----
-2
-63
-79

query I rowsort
SELECT DISTINCT + tab0.col0 - + col0 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL ( - 10 ) * + col0 FROM tab2
----
-70
-780
-790

query I rowsort
SELECT DISTINCT ( col2 * - tab0.col0 ) FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4946
SELECT ALL 38 DIV col0 FROM tab1
----
0
0
12

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL 38 / col0 FROM tab1
----
0
0
12

query I rowsort
SELECT DISTINCT + - col0 + cor0.col2 * + col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - ( + tab2.col2 * col2 ) AS col0 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT + 80 * col1 AS col1 FROM tab0 AS cor0
----
6880
7280
7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4950
SELECT - + cor0.col1 + - cor0.col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4950
SELECT - + cor0.col1 + - cor0.col2 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 63 AS col0 FROM tab2 cor0
----
63
63
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4952
SELECT DISTINCT 35 DIV - tab1.col2 FROM tab1, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT 35 / - tab1.col2 FROM tab1, tab2 AS cor0
----
0

query I rowsort
SELECT + + col0 * col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT 82 * cor0.col1 FROM tab1 AS cor0
----
1066
2132
820

query I rowsort
SELECT ALL 76 * - col2 AS col0 FROM tab0
----
-2508
-6232
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4956
SELECT DISTINCT - col1 * col1 DIV 90 FROM tab0
----
-104
-82
-92

skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT - col1 * col1 / 90 FROM tab0
----
-104
-82
-92

query I rowsort
SELECT ALL col1 * col2 * tab0.col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT ALL 31 * - col1 * col1 FROM tab1
----
-20956
-3100
-5239

query I rowsort
SELECT DISTINCT - 4 * col1 FROM tab1 AS cor0
----
-104
-40
-52

query I rowsort
SELECT - - cor0.col0 + + 90 * - col0 * col1 AS col1 FROM tab1 AS cor0
----
-57536
-7017
-93520

query I rowsort
SELECT - col0 * - 16 + col0 AS col0 FROM tab2 AS cor0
----
119
1326
1343

query I rowsort
SELECT ALL - - col0 + ( 72 ) FROM tab1 AS cor0
----
136
152
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-4963
SELECT DISTINCT - col1 - + 42 DIV - col0 AS col1 FROM tab1 AS cor0
----
-10
-12
-13

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT - col1 - + 42 / - col0 AS col1 FROM tab1 AS cor0
----
-10
-12
-13

query I rowsort
SELECT + col2 + + ( col2 ) * - col2 AS col1 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT col1 * cor0.col2 - + 51 * col1 FROM tab1 AS cor0
----
585
60
78

query I rowsort
SELECT + cor0.col0 - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 53 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a

query I rowsort
SELECT DISTINCT col0 * 25 + 86 FROM tab0 AS cor0
----
2311
686
961

query I rowsort
SELECT col2 * + col2 + + cor0.col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL + - cor0.col2 * 12 + 42 * - col2 - + col0 FROM tab1 AS cor0
----
-2919
-3142
-5264

query I rowsort
SELECT + 49 + col0 FROM tab1 cor0
----
113
129
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4972
SELECT ( + cor0.col0 ) DIV col0 col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4972
SELECT ( + cor0.col0 ) / col0 col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT cor0.col2 + - ( col1 ) AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + ( col2 ) + cor0.col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT col2 * + col2 + - col2 AS col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT DISTINCT + col2 * + 22 AS col2 FROM tab2 cor0
----
572
594
836

query I rowsort
SELECT ALL - - 99 + ( col2 * 56 + 39 ) FROM tab2 AS cor0
----
1594
1650
2266

onlyif mysql # use DIV operator for integer division
query I rowsort label-4978
SELECT + 30 DIV 68 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4978
SELECT + 30 / 68 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4979
SELECT ALL + ( + col1 ) DIV + col0 + - 68 FROM tab0 AS cor0
----
-65
-66
-67

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL + ( + col1 ) / + col0 + - 68 FROM tab0 AS cor0
----
-65
-66
-67

query I rowsort
SELECT DISTINCT ( col0 ) * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - 41 + + col1 FROM tab2 AS cor0
----
-10
-24
18

query I rowsort
SELECT + - cor0.col1 + - cor0.col0 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4983
SELECT DISTINCT cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab1, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab1, tab1 cor0
----
NULL

query I rowsort
SELECT ALL - + 39 FROM tab0 AS cor0
----
-39
-39
-39

query I rowsort
SELECT ALL col1 * + col0 * - 96 AS col0 FROM tab1 cor0
----
-61440
-7488
-99840

query I rowsort
SELECT ALL tab0.col1 + col1 + col0 AS col1 FROM tab0
----
196
229
271

query I rowsort
SELECT DISTINCT ( + col2 ) * col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL + col2 * + col1 + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL - col0 * ( + ( col2 ) ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT col0 + 38 * + 97 FROM tab0 AS cor0
----
3710
3721
3775

query I rowsort
SELECT DISTINCT - - col0 * ( col1 ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col0 * - col1 + + col0 * cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col1 * 61 AS col0 FROM tab0 AS cor0
----
5246
5551
5917

query I rowsort
SELECT - col1 + cor0.col1 * col0 * col2 FROM tab2 AS cor0
----
119593
51017
5828

query I rowsort
SELECT ALL col2 * - 12 FROM tab0 cor0
----
-12
-396
-984

query I rowsort
SELECT ALL + col0 + + ( + 98 ) AS col0 FROM tab1 cor0
----
101
162
178

query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) + - col0 * - ( col1 ) AS col1 FROM tab2 AS cor0
----
-620
3068
697

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-5000
SELECT + col1 * - 49 + - cor0.col1 * cor0.col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT + col1 * - 49 + - cor0.col1 * cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * 22 + col2 AS col1 FROM tab0 cor0
----
2040
561
771

query I rowsort
SELECT ALL + col1 * col0 + + col0 * col1 AS col2 FROM tab0 AS cor0
----
16198
4128
6790

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5003
SELECT + col2 + + CAST( - col0 AS SIGNED ) - cor0.col0 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5003
SELECT + col2 + + CAST ( - col0 AS INTEGER ) - cor0.col0 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + - 11 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT - col0 * - 8 FROM tab0 AS cor0
----
192
280
712

onlyif mysql # use DIV operator for integer division
query I rowsort label-5006
SELECT ALL + col1 DIV 64 + - col0 * 45 col1 FROM tab2 AS cor0
----
-315
-3510
-3555

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL + col1 / 64 + - col0 * 45 col1 FROM tab2 AS cor0
----
-315
-3510
-3555

query I rowsort
SELECT ALL + col0 * col2 + col2 * col2 AS col2 FROM tab0 AS cor0
----
14022
1881
36

query I rowsort
SELECT DISTINCT + col2 + ( 47 ) FROM tab1
----
101
104
143

query I rowsort
SELECT + 42 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT DISTINCT 21 * cor0.col1 * - col0 + + 26 FROM tab1 AS cor0
----
-13414
-1612
-21814

query I rowsort
SELECT + ( + col1 ) + col0 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - 83 * + col1 + col0 AS col1 FROM tab0 AS cor0
----
-7114
-7464
-8016

query I rowsort
SELECT tab0.col1 FROM tab0, tab1, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT ALL + cor1.col1 FROM tab0, tab2, tab2 cor0, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT ALL 15 - col0 * - 63 FROM tab2
----
456
4929
4992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + col0 col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - ( - col2 ) * - ( - col2 ) + col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT - 63 * col2 + - col1 AS col1 FROM tab1
----
-3428
-3601
-6061

query I rowsort
SELECT 55 + - col1 * - tab0.col0 FROM tab0
----
2119
3450
8154

query I rowsort
SELECT - 53 + + col2 * + col1 FROM tab2
----
1481
593
784

query I rowsort
SELECT + + 17 * + col0 FROM tab2 AS cor0
----
119
1326
1343

query I rowsort
SELECT ALL - - 73 * 20 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 181755e648027b77522e781451148a5f

query I rowsort
SELECT DISTINCT + 29 AS col1 FROM tab1
----
29

query I rowsort
SELECT - col0 - ( + 58 ) AS col1 FROM tab2 AS cor0
----
-136
-137
-65

query I rowsort
SELECT ALL ( - col1 * - tab1.col2 ) AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT col1 * + tab1.col1 + ( col2 ) AS col1 FROM tab1
----
157
265
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * col0 col2 FROM tab1
----
4153
63
6496

query I rowsort
SELECT ALL col0 * - 30 FROM tab2
----
-210
-2340
-2370

query I rowsort
SELECT col2 * 3 AS col1 FROM tab2
----
114
78
81

query I rowsort
SELECT + col0 + + 89 * + col0 + col2 FROM tab2
----
657
7046
7148

query I rowsort
SELECT DISTINCT + tab2.col0 + - tab2.col2 * col0 AS col2 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT ALL - col1 * - col0 * col1 AS col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT DISTINCT - col1 * col0 * + col1 AS col2 FROM tab0
----
-177504
-329315
-737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-5034
SELECT ALL - tab1.col1 DIV 86 col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL - tab1.col1 / 86 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 + ( + col0 + - col1 ) * 14 FROM tab0
----
-771
-782
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + 16 * - col0 col2 FROM tab0 AS cor0
----
-1513
-408
-595

query I rowsort
SELECT DISTINCT col0 * col2 + + col1 AS col0 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5038
SELECT + ( col1 ) * cor0.col0 + - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5038
SELECT + ( col1 ) * cor0.col0 + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 * tab0.col0 col2 FROM tab0
----
1190
552
7832

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL + col2 * - 70 FROM tab1 AS cor0
----
-3780
-3990
-6720

query I rowsort
SELECT ALL 68 + - col1 AS col1 FROM tab1 AS cor0
----
42
55
58

query I rowsort
SELECT + 34 AS col1 FROM tab1 cor0
----
34
34
34

query I rowsort
SELECT + + 46 + col1 * 46 AS col1 FROM tab1 cor0
----
1242
506
644

query I rowsort
SELECT DISTINCT col2 * + col1 + - 39 * col1 + + col2 FROM tab2 AS cor0
----
-345
-741
21

query I rowsort
SELECT DISTINCT + - col1 * cor0.col0 - + cor0.col1 FROM tab0 cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL + cor0.col1 * - col1 - - 96 FROM tab1 AS cor0
----
-4
-580
-73

query I rowsort
SELECT ALL 78 * col2 AS col0 FROM tab1 AS cor0
----
4212
4446
7488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + col1 * ( cor0.col2 * + col1 ) col2 FROM tab1 AS cor0
----
16237
36530
5710

query I rowsort
SELECT ALL + ( + col2 ) * - ( - col2 ) FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-5051
SELECT ALL - 55 DIV col2 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL - 55 / col2 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT 98 AS col2 FROM tab1, tab0 AS cor0
----
98

query I rowsort
SELECT DISTINCT + 85 * col0 * + col2 AS col0 FROM tab2
----
16065
172380
255170

query I rowsort
SELECT DISTINCT + 95 * + col2 AS col2 FROM tab2
----
2470
2565
3610

query I rowsort
SELECT ALL 38 FROM tab2, tab1 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT + col1 + 3 * - col1 AS col1 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT + 22 + 88 AS col1 FROM tab0 AS cor0
----
110
110
110

query I rowsort
SELECT 73 * - col0 AS col0 FROM tab0
----
-1752
-2555
-6497

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5059
SELECT ALL - - 52 + - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL - - 52 + - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 59 + col2 AS col0 FROM tab0 AS cor0
----
141
60
92

query I rowsort
SELECT - ( col1 ) - col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL tab0.col1 * + cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 23253cfee4cea5e1d4f993bec937f9fe

query I rowsort
SELECT + cor0.col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + + col2 + - 15 * + col1 AS col0 FROM tab2 AS cor0
----
-217
-438
-859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * ( - col2 ) col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5066
SELECT col0 + CAST( NULL AS DECIMAL ) * col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5066
SELECT col0 + CAST ( NULL AS REAL ) * col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col1 FROM tab0
----
20

query I rowsort
SELECT + 43 * - col2 * tab0.col0 FROM tab0
----
-1505
-313814
-34056

query I rowsort
SELECT ALL + 34 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT + 29 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT - - col2 + 51 FROM tab0 cor0
----
133
52
84

query I rowsort
SELECT - - cor0.col0 + 38 AS col0 FROM tab2 AS cor0
----
116
117
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5073
SELECT ALL + - col1 DIV - ( + col1 ) + col1 * - col2 * + col2 FROM tab2 AS cor0
----
-22598
-24547
-39883

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL + - col1 / - ( + col1 ) + col1 * - col2 * + col2 FROM tab2 AS cor0
----
-22598
-24547
-39883

query I rowsort
SELECT DISTINCT col0 * col2 + + col1 AS col0 FROM tab2 cor0
----
2087
220
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5075
SELECT ALL col2 * - CAST( - col0 AS SIGNED ) FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL col2 * - CAST ( - col0 AS INTEGER ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT col2 * - 84 AS col0 FROM tab2
----
-2184
-2268
-3192

query I rowsort
SELECT - col0 + col0 * col1 FROM tab1
----
576
75
960

query I rowsort
SELECT - 67 * + col1 FROM tab2 AS cor0
----
-1139
-2077
-3953

query I rowsort
SELECT - tab0.col0 * + 73 FROM tab0, tab1 cor0
----
9 values hashing to 918ffc78af1df7445198a6a319f73fd2

query I rowsort
SELECT - col0 * 17 - - ( - col1 ) * + 17 FROM tab2
----
-1632
-2329
-646

onlyif mysql # use DIV operator for integer division
query I rowsort label-5081
SELECT DISTINCT - col0 DIV - ( - 75 ) + col1 FROM tab2
----
16
31
58

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT - col0 / - ( - 75 ) + col1 FROM tab2
----
16
31
58

query I rowsort
SELECT DISTINCT 93 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
93

query I rowsort
SELECT + col0 - - ( + col0 ) * - col1 AS col1 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT - 60 * col0 AS col2 FROM tab0 AS cor0
----
-1440
-2100
-5340

query I rowsort
SELECT - - 75 * + col2 AS col0 FROM tab0 AS cor0
----
2475
6150
75

query I rowsort
SELECT ( - 19 ) AS col0 FROM tab1 cor0
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + ( col1 ) col0 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5088
SELECT CAST( NULL AS SIGNED ) + col1 / + col1 col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5088
SELECT CAST ( NULL AS INTEGER ) + col1 / + col1 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 90 FROM tab2 cor0
----
-90

query I rowsort
SELECT ALL + + 39 + + col2 AS col0 FROM tab2 AS cor0
----
65
66
77

query I rowsort
SELECT DISTINCT - - 0 * + col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 * 61 FROM tab0 AS cor0
----
2013
5002
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col1 * col0 col2 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL + ( ( col1 ) ) + col0 * col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) - + col1 * - 87 * col0 FROM tab2 cor0
----
116858
18910
400433

query I rowsort
SELECT DISTINCT col0 - col0 * ( col2 + + col0 ) AS col0 FROM tab2
----
-231
-8034
-9164

query I rowsort
SELECT - + col0 + col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - col1 + col1 + + col0 * + col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - + col2 + + cor0.col1 + 14 FROM tab0 AS cor0
----
110
23
67

query I rowsort
SELECT 97 * col1 AS col0 FROM tab0 AS cor0
----
8342
8827
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5101
SELECT CAST( NULL AS SIGNED ) + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5101
SELECT CAST ( NULL AS INTEGER ) + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5102
SELECT + cor0.col0 DIV col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5102
SELECT + cor0.col0 / col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + 93 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ALL - 48 * cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b15203157f93b5a45d6ba24178c5f8ff

query I rowsort
SELECT DISTINCT col0 + + 30 AS col1 FROM tab1 AS cor0
----
110
33
94

query I rowsort
SELECT ALL col2 + col2 + col0 FROM tab0
----
253
37
90

query I rowsort
SELECT - tab0.col0 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT 26 + - col1 * col1 AS col0 FROM tab1
----
-143
-650
-74

query I rowsort
SELECT ALL tab0.col0 - - tab0.col1 * - 60 AS col1 FROM tab0
----
-5136
-5371
-5785

query I rowsort
SELECT ALL col1 - + col0 * + 95 AS col0 FROM tab2
----
-634
-7351
-7488

query I rowsort
SELECT ALL + 68 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col2 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + 81 AS col2 FROM tab1 cor0
----
81

query I rowsort
SELECT ALL ( + col1 ) * + col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - cor0.col2 * + 36 * col1 FROM tab0 cor0
----
-102168
-268632
-3492

query I rowsort
SELECT + col0 + col2 + 77 AS col1 FROM tab2 cor0
----
111
181
194

query I rowsort
SELECT DISTINCT + - col2 * 28 FROM tab2 AS cor0
----
-1064
-728
-756

query I rowsort
SELECT ALL - col0 * + cor0.col1 + col0 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT - col1 + + ( + 23 * col0 ) FROM tab0 AS cor0
----
1956
466
708

query I rowsort
SELECT DISTINCT cor0.col1 * - 0 FROM tab2, tab1 AS cor0
----
0

query I rowsort
SELECT ALL + + cor0.col2 + cor0.col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + col1 * col0 - col2 * col1 AS col2 FROM tab0 AS cor0
----
-774
3298
637

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5123
SELECT cor0.col1 + CAST( col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-5123
SELECT cor0.col1 + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort
SELECT - col1 * CAST ( 21 + col2 AS REAL ) FROM tab0 AS cor0
----
-2134
-4644
-9373

query I rowsort
SELECT + col0 + ( + col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT - col2 + 42 * - ( cor0.col2 ) FROM tab2 AS cor0
----
-1118
-1161
-1634

query I rowsort
SELECT ALL + col0 * + col0 - tab2.col2 AS col0 FROM tab2
----
22
6058
6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-5128
SELECT DISTINCT tab2.col1 DIV + 11 AS col1 FROM tab2, tab2 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT tab2.col1 / + 11 AS col1 FROM tab2, tab2 AS cor0
----
1
2
5

query I rowsort
SELECT DISTINCT col2 * + ( col0 ) + + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - col0 * - cor0.col2 + + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT - col0 * - col0 + cor0.col2 * + col2 * 33 FROM tab2 AS cor0
----
24106
28392
53893

query I rowsort
SELECT ALL + col2 + 15 * + 50 AS col0 FROM tab2 cor0
----
776
777
788

query I rowsort
SELECT - + ( 7 ) * col2 FROM tab1 AS cor0
----
-378
-399
-672

onlyif mysql # use DIV operator for integer division
query I rowsort label-5134
SELECT ALL - + col2 + - col1 DIV col2 col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL - + col2 + - col1 / col2 col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - col0 * + col0 * cor0.col0 FROM tab0 cor0
----
-13824
-42875
-704969

query I rowsort
SELECT ALL - col1 + - 75 + - col2 AS col2 FROM tab2 AS cor0
----
-130
-133
-160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + - col2 col2 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT ALL + 88 * col0 * - col2 AS col0 FROM tab1 AS cor0
----
-14256
-321024
-675840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5139
SELECT ALL - col1 + - 19 * cor0.col1 DIV 62 AS col1 FROM tab0 AS cor0
----
-112
-118
-126

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL - col1 + - 19 * cor0.col1 / 62 AS col1 FROM tab0 AS cor0
----
-112
-118
-126

query I rowsort
SELECT ALL - - 51 * col2 AS col2 FROM tab2 AS cor0
----
1326
1377
1938

query I rowsort
SELECT col0 + + col2 * cor0.col0 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-5142
SELECT DISTINCT - ( + col0 ) + col0 DIV - col2 FROM tab1 cor0
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT - ( + col0 ) + col0 / - col2 FROM tab1 cor0
----
-3
-65
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 * 47 col2 FROM tab2 AS cor0
----
3055
3055
3055

query I rowsort
SELECT DISTINCT 77 * - 76 AS col2 FROM tab2 AS cor0
----
-5852

query I rowsort
SELECT DISTINCT + 68 * ( col1 ) AS col0 FROM tab1 AS cor0
----
1768
680
884

onlyif mysql # use DIV operator for integer division
query I rowsort label-5146
SELECT ALL - - cor0.col0 + col0 * cor0.col0 DIV 11 FROM tab1 AS cor0
----
3
436
661

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL - - cor0.col0 + col0 * cor0.col0 / 11 FROM tab1 AS cor0
----
3
436
661

query I rowsort
SELECT DISTINCT ( ( cor0.col0 ) ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT col0 * col2 * cor0.col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT cor0.col0 * - col2 + + col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT 65 * - cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
-189540
-211185
-599040

query I rowsort
SELECT - 55 * - col1 + - col0 FROM tab2 AS cor0
----
1698
3167
856

query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL - + 94 + - col2 FROM tab1 AS cor0
----
-148
-151
-190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + cor0.col2 ) + ( - ( - col0 ) ) col2 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + col0 * cor0.col0 col0 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT + + col2 + + col0 * col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL - 18 + + 54 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT DISTINCT - col2 * + ( + 48 ) + + col1 * - 15 AS col2 FROM tab2
----
-1761
-2079
-2133

query I rowsort
SELECT ( - col2 ) + cor0.col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + 8 + col1 FROM tab1 AS cor0
----
18
21
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 77 ) * tab2.col0 * ( col2 ) col1 FROM tab2
----
14553
156156
231154

query I rowsort
SELECT - 31 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac

query I rowsort
SELECT ALL cor1.col2 + - ( + tab0.col0 ) AS col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 8e2d2d35b0aeae8bb4f81dcc791d8691

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - col0 * - 69 + - col1 + col0 * col0 FROM tab0 AS cor0
----
-1166
-1287
1689

query I rowsort
SELECT - cor0.col0 + 68 * col2 FROM tab1 AS cor0
----
3669
3812
6448

query I rowsort
SELECT ALL - + 54 + col0 FROM tab1 AS cor0
----
-51
10
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5168
SELECT ALL - tab0.col2 + + CAST( NULL AS SIGNED ) / col1 + - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL - tab0.col2 + + CAST ( NULL AS INTEGER ) / col1 + - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 63 FROM tab0, tab2 cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5170
SELECT + - col1 + 81 DIV - col1 AS col0 FROM tab1 AS cor0
----
-18
-19
-29

skipif mysql # not compatible
query I rowsort label-5170
SELECT + - col1 + 81 / - col1 AS col0 FROM tab1 AS cor0
----
-18
-19
-29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5171
SELECT + + col2 * - CAST( - col1 AS SIGNED ) col0 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5171
SELECT + + col2 * - CAST ( - col1 AS INTEGER ) col0 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5172
SELECT col2 * + CAST( + ( col0 ) AS SIGNED ) DIV - ( col0 ) FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5172
SELECT col2 * + CAST ( + ( col0 ) AS INTEGER ) / - ( col0 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + - col0 * - col0 + - col1 AS col0 FROM tab1 AS cor0
----
-17
4086
6387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 62 col0 FROM tab2 cor0
----
-3
-31
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 96 * 31 col2 FROM tab0 AS cor0
----
2976

onlyif mysql # use DIV operator for integer division
query I rowsort label-5176
SELECT ALL + 23 DIV 78 + col1 * + col2 + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL + 23 / 78 + col1 * + col2 + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL + - col1 * + col1 + col2 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5178
SELECT ALL cor0.col0 - CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL cor0.col0 - CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - + col2 + - cor0.col1 - - cor0.col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + col1 * - col2 + + cor0.col0 * col0 + + col2 * col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + col0 + - col2 + col0 * col2 FROM tab0
----
69
7305
783

query I rowsort
SELECT DISTINCT + col2 * + col0 * - col1 FROM tab0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-5183
SELECT - col0 * cor0.col1 + col0 + - col1 DIV col2 col2 FROM tab1 AS cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5183
SELECT - col0 * cor0.col1 + col0 + - col1 / col2 col2 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5184
SELECT ALL + cor0.col0 * - CAST( col0 AS SIGNED ) + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL + cor0.col0 * - CAST ( col0 AS INTEGER ) + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT 99 * col1 * 75 FROM tab0
----
638550
675675
720225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 col2 FROM tab1
----
45
45
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5188
SELECT - - cor0.col1 + - 99 DIV col1 FROM tab1 AS cor0
----
1
23
6

skipif mysql # not compatible
query I rowsort label-5188
SELECT - - cor0.col1 + - 99 / col1 FROM tab1 AS cor0
----
1
23
6

query I rowsort
SELECT + col0 * + 77 FROM tab2 cor0
----
539
6006
6083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + + 26 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 8384fbc6f3f8136bb17925043d58a495

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab0 cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5192
SELECT ALL + col0 DIV - 24 - 64 FROM tab2 AS cor0
----
-64
-67
-67

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL + col0 / - 24 - 64 FROM tab2 AS cor0
----
-64
-67
-67

query I rowsort
SELECT - - col1 + 87 * 29 * col0 AS col0 FROM tab1 cor0
----
161482
201853
7595

query I rowsort
SELECT ALL col1 + col0 * col2 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - col2 * ( col1 ) + - cor0.col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT + cor1.col1 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + + col2 + 1 AS col0 FROM tab1 AS cor0
----
55
58
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5198
SELECT DISTINCT - col0 + CAST( col1 AS SIGNED ) * + col2 * 14 FROM tab1 AS cor0
----
17392
19653
7916

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT - col0 + CAST ( col1 AS INTEGER ) * + col2 * 14 FROM tab1 AS cor0
----
17392
19653
7916

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5199
SELECT ALL - CAST( NULL AS SIGNED ) - - cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL - CAST ( NULL AS INTEGER ) - - cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col2 + 47 FROM tab1 cor0
----
101
104
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5202
SELECT col0 - - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT col0 - - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT - 40 * cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
-1040
-400
-520

query I rowsort
SELECT DISTINCT col1 + - 55 + 92 * - col0 AS col2 FROM tab0
----
-2177
-3178
-8152

onlyif mysql # use DIV operator for integer division
query I rowsort label-5206
SELECT col1 DIV col1 + ( col1 ) AS col1 FROM tab2 cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-5206
SELECT col1 / col1 + ( col1 ) AS col1 FROM tab2 cor0
----
18
32
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-5207
SELECT DISTINCT col1 DIV col0 + 49 + col2 col2 FROM tab2
----
75
80
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT col1 / col0 + 49 + col2 col2 FROM tab2
----
75
80
87

query I rowsort
SELECT col1 + + ( tab2.col1 ) FROM tab2
----
118
34
62

query I rowsort
SELECT - tab1.col1 + - col1 AS col2 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT ALL - 64 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 100c625e45715c20368551989514ba64

query I rowsort
SELECT - + ( col0 ) - - 15 * + 14 FROM tab0 AS cor0
----
121
175
186

onlyif mysql # use DIV operator for integer division
query I rowsort label-5212
SELECT - 32 * - col1 + + col1 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
2754
2913
3201

skipif mysql # not compatible
query I rowsort label-5212
SELECT - 32 * - col1 + + col1 / cor0.col2 AS col0 FROM tab0 AS cor0
----
2754
2913
3201

onlyif mysql # use DIV operator for integer division
query I rowsort label-5213
SELECT DISTINCT col2 DIV + col2 + + col0 col1 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT col2 / + col2 + + col0 col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT 60 * + col0 FROM tab2 AS cor0
----
420
4680
4740

query I rowsort
SELECT ALL + + col0 * cor0.col2 + col0 - - 49 FROM tab0 cor0
----
119
7436
865

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL + col2 + tab2.col2 * col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT + - col0 * cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5220
SELECT ALL + col0 + + cor0.col0 DIV - 27 AS col2 FROM tab1 AS cor0
----
3
62
78

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL + col0 + + cor0.col0 / - 27 AS col2 FROM tab1 AS cor0
----
3
62
78

query I rowsort
SELECT DISTINCT col0 + + col1 - + ( col0 ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + cor0.col2 * - col1 + col0 * + col1 FROM tab0 AS cor0
----
-774
3298
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-5223
SELECT ALL + + cor0.col2 DIV col1 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL + + cor0.col2 / col1 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - 0 - - col0 * col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - 64 * col1 + 64 + + col2 * - col2 FROM tab0 AS cor0
----
-12484
-6145
-6529

query I rowsort
SELECT + col2 + - col2 * col0 AS col1 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + + col1 * 88 + - col2 FROM tab1 AS cor0
----
1048
2234
823

query I rowsort
SELECT ALL col2 + 47 FROM tab2 AS cor0
----
73
74
85

query I rowsort
SELECT - 61 AS col0 FROM tab2 cor0
----
-61
-61
-61

query I rowsort
SELECT 92 * tab2.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 0759b089d6fb4e40e511a1f725137392

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5231
SELECT DISTINCT 64 * cor0.col2 * col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT 64 * cor0.col2 * col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 11 * 39 FROM tab0 AS cor0
----
429
429
429

query I rowsort
SELECT ALL ( col0 ) * + cor0.col0 + - col2 AS col2 FROM tab2 cor0
----
22
6058
6203

query I rowsort
SELECT DISTINCT col1 + col2 * cor0.col0 + col2 FROM tab2 AS cor0
----
2113
247
3057

query I rowsort
SELECT ALL + 51 - ( col2 + + ( col2 ) ) AS col1 FROM tab0 AS cor0
----
-113
-15
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 94 col0 FROM tab0 AS cor0
----
-94
-94
-94

query I rowsort
SELECT - cor0.col0 * + col2 + col1 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT ALL + + 76 + col2 * cor0.col2 * col0 FROM tab2 AS cor0
----
114152
5179
52804

query I rowsort
SELECT col1 + col0 * - ( + col0 + + col0 * 29 ) FROM tab0 AS cor0
----
-17194
-237539
-36653

query I rowsort
SELECT - cor0.col0 + col0 * + ( - 96 ) + col2 AS col1 FROM tab2 AS cor0
----
-652
-7540
-7625

query I rowsort
SELECT ALL - col2 * + 75 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT DISTINCT col2 * 71 FROM tab2 cor0
----
1846
1917
2698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 * + 47 col1 FROM tab2 AS cor0
----
329
3666
3713

query I rowsort
SELECT + col1 + + 22 AS col2 FROM tab1 AS cor0
----
32
35
48

query I rowsort
SELECT ALL cor0.col1 - 80 FROM tab1, tab0 cor0
----
9 values hashing to 5f79894c7f6c2ff63e1c4792039ff3c9

query I rowsort
SELECT DISTINCT col2 - - ( - col0 ) AS col2 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-5247
SELECT DISTINCT - col1 DIV 99 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT - col1 / 99 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 * - ( col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - col0 + col1 * + col1 * + col2 FROM tab0 AS cor0
----
244044
678953
9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5250
SELECT ALL - cor0.col1 + CAST( + col2 AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL - cor0.col1 + CAST ( + col2 AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT - - col2 * 79 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-121186
-51034
-66123

query I rowsort
SELECT - 41 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT + + col0 + + 90 FROM tab1 AS cor0
----
154
170
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5254
SELECT col2 * CAST( NULL AS SIGNED ) / + 94 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5254
SELECT col2 * CAST ( NULL AS INTEGER ) / + 94 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + 38 + col1 * col0 FROM tab0 AS cor0
----
11557
5332
7081

query I rowsort
SELECT - - cor0.col2 * + col2 + col1 AS col1 FROM tab1 AS cor0
----
2942
3259
9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5258
SELECT DISTINCT cor0.col2 DIV - 53 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5258
SELECT DISTINCT cor0.col2 / - 53 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT cor0.col2 * 57 FROM tab1 cor0
----
3078
3249
5472

query I rowsort
SELECT + - ( col0 ) * + cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + ( - 91 ) * cor0.col1 * col1 FROM tab2 cor0
----
-26299
-316771
-87451

query I rowsort
SELECT + 37 * - col2 AS col2 FROM tab1 AS cor0
----
-1998
-2109
-3552

query I rowsort
SELECT DISTINCT tab2.col2 * 34 AS col2 FROM tab2
----
1292
884
918

query I rowsort
SELECT - 44 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT DISTINCT + 28 AS col1 FROM tab1, tab0 cor0
----
28

query I rowsort
SELECT - 99 + + col2 AS col2 FROM tab0 AS cor0
----
-17
-66
-98

query I rowsort
SELECT DISTINCT + col0 * + col2 + ( + 3 ) + + col1 * col1 FROM tab0 AS cor0
----
15582
8191
9447

query I rowsort
SELECT col2 * + col0 + 74 FROM tab1 AS cor0
----
236
3722
7754

onlyif mysql # use DIV operator for integer division
query I rowsort label-5269
SELECT ALL - 67 DIV + col2 + ( + col1 ) DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL - 67 / + col2 + ( + col1 ) / col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT - col0 * col0 + 88 FROM tab0 AS cor0
----
-1137
-488
-7833

onlyif mysql # use DIV operator for integer division
query I rowsort label-5271
SELECT ALL + - 49 + cor0.col2 DIV 42 col1 FROM tab0 AS cor0
----
-48
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL + - 49 + cor0.col2 / 42 col1 FROM tab0 AS cor0
----
-48
-49
-49

query I rowsort
SELECT 1 * col0 - - col0 * 60 * col2 FROM tab0 cor0
----
2135
437969
47544

query I rowsort
SELECT DISTINCT 6 AS col1 FROM tab2, tab1, tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT tab2.col2 * col2 + + 21 * - tab2.col1 + col1 FROM tab2
----
-504
109
1104

query I rowsort
SELECT DISTINCT + ( col0 ) + + col1 + 78 AS col2 FROM tab1
----
107
152
171

query I rowsort
SELECT 92 * col0 * col0 - col1 * - col2 AS col2 FROM tab0
----
112797
55830
736194

onlyif mysql # use DIV operator for integer division
query I rowsort label-5277
SELECT - col0 DIV + col1 - + CAST( col2 * - col0 AS SIGNED ) AS col1 FROM tab2
----
189
2027
2998

skipif mysql # not compatible
query I rowsort label-5277
SELECT - col0 / + col1 - + CAST ( col2 * - col0 AS INTEGER ) AS col1 FROM tab2
----
189
2027
2998

query I rowsort
SELECT ( col2 * ( + col0 ) ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT col0 + - col1 * 72 FROM tab2
----
-1145
-2225
-4170

query I rowsort
SELECT ALL 73 * 79 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 870ecb0b2bf5202defffcacb6e6665ab

query I rowsort
SELECT - 82 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to c7d52549709c0d1194b36919dde4afb7

query I rowsort
SELECT - + 74 + + col2 FROM tab2 AS cor0
----
-36
-47
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 * + col2 col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT - col2 * tab1.col1 * - 18 FROM tab1
----
10260
22464
25272

query I rowsort
SELECT DISTINCT - ( 22 ) FROM tab2, tab1 AS cor0
----
-22

query I rowsort
SELECT 46 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 - col0 * col1 col1 FROM tab2 AS cor0
----
-1325
-199
-4584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5288
SELECT - + CAST( 37 AS SIGNED ) + col2 + col1 AS col1 FROM tab1 AS cor0
----
30
43
72

skipif mysql # not compatible
query I rowsort label-5288
SELECT - + CAST ( 37 AS INTEGER ) + col2 + col1 AS col1 FROM tab1 AS cor0
----
30
43
72

query I rowsort
SELECT DISTINCT col0 * - ( - col2 ) AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT - - col0 - cor0.col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5291
SELECT - - ( + 32 ) * col2 DIV 51 + + col2 FROM tab2 AS cor0
----
42
43
61

skipif mysql # not compatible
query I rowsort label-5291
SELECT - - ( + 32 ) * col2 / 51 + + col2 FROM tab2 AS cor0
----
42
43
61

query I rowsort
SELECT 86 AS col2 FROM tab2, tab2 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to e219687f6f4ab6f7ee442792edcebca9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5293
SELECT - 22 DIV col2 FROM tab0 AS cor0
----
-22
0
0

skipif mysql # not compatible
query I rowsort label-5293
SELECT - 22 / col2 FROM tab0 AS cor0
----
-22
0
0

query I rowsort
SELECT ALL + - 4 + + col1 * cor0.col2 * col0 FROM tab1 AS cor0
----
36476
4208
99836

query I rowsort
SELECT + col0 + col0 * col0 + - col1 AS col0 FROM tab1 AS cor0
----
-14
4150
6467

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5296
SELECT ALL + col2 * cor0.col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL + col2 * cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + + col2 + col2 * col1 col0 FROM tab1 cor0
----
1424
1461
691

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT cor0.col1 + - col2 + col0 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT ALL ( col1 ) * - col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5301
SELECT ALL col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL col0 / + col0 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 11 * + col1 AS col1 FROM tab1 cor0
----
110
143
286

onlyif mysql # use DIV operator for integer division
query I rowsort label-5303
SELECT ALL - - col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL - - col1 / + col1 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + cor0.col2 col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + col2 * + col0 + 79 - col1 AS col1 FROM tab2 AS cor0
----
2048
237
3064

query I rowsort
SELECT DISTINCT + col1 * + col1 - col2 * col2 FROM tab2
----
-1155
232
2805

query I rowsort
SELECT 80 * col0 * tab1.col0 FROM tab1
----
327680
512000
720

query I rowsort
SELECT ALL - + col0 + - col1 * - col1 * col2 FROM tab1 AS cor0
----
16144
36501
5636

query I rowsort
SELECT DISTINCT - + col1 * col1 - - col1 FROM tab1 AS cor0
----
-156
-650
-90

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 DISTINCT - col0 + - 94 col2 FROM tab0 AS cor0
----
-118
-129
-183

onlyif mysql # use DIV operator for integer division
query I rowsort label-5312
SELECT col2 + - cor0.col2 DIV cor0.col0 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-5312
SELECT col2 + - cor0.col2 / cor0.col0 FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT + col0 + 56 AS col1 FROM tab0 AS cor0
----
145
80
91

skipif mysql # not compatible
query I rowsort
SELECT ALL - - col1 * + CAST ( col0 AS REAL ) / - col0 + + 97 AS col2 FROM tab0 AS cor0
----
0
11
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5315
SELECT ALL - cor0.col1 DIV tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 6112deff45c23c2311a09b6e15d4231f

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL - cor0.col1 / tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 6112deff45c23c2311a09b6e15d4231f

query I rowsort
SELECT DISTINCT - + col1 * - cor0.col2 + - col0 * col2 AS col1 FROM tab2 AS cor0
----
-2356
-494
648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + - col2 col0 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT col2 * - cor0.col2 + col2 AS col1 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL + 10 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT ALL + + 50 AS col0 FROM tab0 cor0
----
50
50
50

query I rowsort
SELECT ALL + cor0.col2 * - col2 + + 73 AS col2 FROM tab2 cor0
----
-1371
-603
-656

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5322
SELECT - col1 * col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT - col1 * col1 * CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * + col1 + col1 AS col2 FROM tab1
----
-1235
-1378
-560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5324
SELECT col1 * + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT col1 * + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + cor0.col1 * cor0.col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - 75 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5327
SELECT - col2 DIV - ( col2 ) AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5327
SELECT - col2 / - ( col2 ) AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - col2 * - 80 * 85 AS col1 FROM tab2 AS cor0
----
176800
183600
258400

query I rowsort
SELECT ALL - 84 * - col0 AS col2 FROM tab2
----
588
6552
6636

query I rowsort
SELECT 73 + col0 * tab0.col0 * - col2 FROM tab0
----
-1152
-18935
-649449

query I rowsort
SELECT ALL + ( - col0 ) + + col2 AS col2 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT ALL col2 - + 39 AS col2 FROM tab0 AS cor0
----
-38
-6
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5333
SELECT DISTINCT CAST( col1 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL 7 + col2 AS col2 FROM tab1 AS cor0
----
103
61
64

query I rowsort
SELECT - cor0.col0 + - 58 FROM tab0 AS cor0
----
-147
-82
-93

query I rowsort
SELECT DISTINCT + col0 + + col1 * col1 FROM tab1 cor0
----
164
249
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 44 + col0 * cor0.col2 col0 FROM tab2 cor0
----
145
1984
2958

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5338
SELECT ALL + CAST( NULL AS SIGNED ) / 70 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL + CAST ( NULL AS INTEGER ) / 70 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - cor0.col0 + + col0 * 35 FROM tab0 AS cor0
----
-4806
0
264

query I rowsort
SELECT DISTINCT + ( - ( - cor0.col1 ) ) + - col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL - col0 + + ( - cor0.col0 ) FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL + tab1.col1 - + 95 * + tab1.col0 AS col2 FROM tab1
----
-259
-6070
-7587

query I rowsort
SELECT ALL + col2 * col2 + tab0.col2 * - col0 * - tab0.col2 AS col2 FROM tab0
----
27225
36
605160

query I rowsort
SELECT ALL 58 + + col1 FROM tab2
----
117
75
89

query I rowsort
SELECT DISTINCT cor1.col0 + 70 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
134
150
73

query I rowsort
SELECT DISTINCT - 34 + + 57 FROM tab2 AS cor0
----
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-5347
SELECT 86 + + 44 DIV + col1 AS col2 FROM tab2 AS cor0
----
86
87
88

skipif mysql # not compatible
query I rowsort label-5347
SELECT 86 + + 44 / + col1 AS col2 FROM tab2 AS cor0
----
86
87
88

query I rowsort
SELECT DISTINCT + col1 * 74 + + col1 FROM tab1 cor0
----
1950
750
975

onlyif mysql # use DIV operator for integer division
query I rowsort label-5349
SELECT DISTINCT 77 DIV 5 AS col0 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT 77 / 5 AS col0 FROM tab1 AS cor0
----
15

query I rowsort
SELECT ALL + + col2 + + ( col1 ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - - 87 + 62 * col1 AS col2 FROM tab0 AS cor0
----
5419
5729
6101

query I rowsort
SELECT DISTINCT + col2 + 25 AS col0 FROM tab2 AS cor0
----
51
52
63

query I rowsort
SELECT ALL + 40 + col0 AS col1 FROM tab0 AS cor0
----
129
64
75

query I rowsort
SELECT ALL - ( + ( - col0 ) ) + - ( col1 ) FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5355
SELECT ( col1 ) + - col1 / CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT ( col1 ) + - col1 / CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) + - col2 col0 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5357
SELECT + col1 DIV 3 AS col0 FROM tab0
----
28
30
32

skipif mysql # not compatible
query I rowsort label-5357
SELECT + col1 / 3 AS col0 FROM tab0
----
28
30
32

query I rowsort
SELECT - + 77 + + col2 * col2 FROM tab0 AS cor0
----
-76
1012
6647

query I rowsort
SELECT col0 * col1 + + cor0.col0 AS col0 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT ( tab1.col0 ) + + col1 * + col1 FROM tab1
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-5361
SELECT CAST( + col0 AS SIGNED ) DIV col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-5361
SELECT CAST ( + col0 AS INTEGER ) / col1 FROM tab1
----
0
6
6

query I rowsort
SELECT + 57 * 77 FROM tab0
----
4389
4389
4389

query I rowsort
SELECT ALL col1 + + col1 * - col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT + + 8 AS col0 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT + 17 * col2 AS col2 FROM tab1
----
1632
918
969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col0 FROM tab0
----
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-5367
SELECT - col2 DIV 93 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5367
SELECT - col2 / 93 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL - 54 + + col0 AS col2 FROM tab1 AS cor0
----
-51
10
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5369
SELECT ALL + 2 / col0 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL + 2 / col0 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 - + col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL 38 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT - col2 + + 37 * + 57 AS col1 FROM tab2 cor0
----
2071
2082
2083

onlyif mysql # use DIV operator for integer division
query I rowsort label-5373
SELECT DISTINCT col0 + 60 DIV - 4 col0 FROM tab1 AS cor0
----
-12
49
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT col0 + 60 / - 4 col0 FROM tab1 AS cor0
----
-12
49
65

query I rowsort
SELECT DISTINCT + + col2 * + 51 AS col1 FROM tab0 AS cor0
----
1683
4182
51

query I rowsort
SELECT ALL - + col2 + + 25 - - col0 FROM tab2 AS cor0
----
5
66
77

query I rowsort
SELECT + col1 * 7 + col1 AS col1 FROM tab0 AS cor0
----
688
728
776

query I rowsort
SELECT + + cor0.col1 + 74 FROM tab1 cor0
----
100
84
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-5378
SELECT - - cor0.col2 DIV - ( col1 ) - + col0 DIV 27 FROM tab2 AS cor0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-5378
SELECT - - cor0.col2 / - ( col1 ) - + col0 / 27 FROM tab2 AS cor0
----
-2
-4
0

query I rowsort
SELECT DISTINCT col2 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + col2 + ( - col0 ) * + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL - + col2 - - 29 * col2 * - col2 FROM tab2 AS cor0
----
-19630
-21168
-41914

query I rowsort
SELECT - - col2 + ( + ( col0 ) ) * - 84 FROM tab2 AS cor0
----
-561
-6526
-6598

query I rowsort
SELECT col0 + - cor0.col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT + cor0.col1 * - col1 + - col0 FROM tab1 cor0
----
-164
-249
-679

query I rowsort
SELECT ALL - cor0.col2 + 46 AS col1 FROM tab2 AS cor0
----
19
20
8

query I rowsort
SELECT DISTINCT + col0 + cor0.col1 + col0 AS col2 FROM tab0 cor0
----
134
167
269

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - ( col2 ) * + col0 + - col1 * + col1 col2 FROM tab0 AS cor0
----
-15490
-8164
-9409

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 AS cor2
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0

query I rowsort
SELECT + cor0.col1 + - col0 + + cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
2126
3457
8101

query I rowsort
SELECT - cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT - col2 - + 4 FROM tab1
----
-100
-58
-61

query I rowsort
SELECT ( 99 ) FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT col1 - col2 * col1 AS col2 FROM tab1
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * + cor0.col2 * 29 col2 FROM tab2, tab1, tab2 cor0
----
27 values hashing to e0ea0c8c84d576d7584ce598209d8aab

onlyif mysql # use DIV operator for integer division
query I rowsort label-5395
SELECT - ( col2 ) DIV - ( col0 ) FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-5395
SELECT - ( col2 ) / - ( col0 ) FROM tab1
----
0
1
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-5396
SELECT col0 + tab0.col0 * 15 DIV 51 FROM tab0
----
115
31
45

skipif mysql # not compatible
query I rowsort label-5396
SELECT col0 + tab0.col0 * 15 / 51 FROM tab0
----
115
31
45

query I rowsort
SELECT 46 + - col1 * - col1 FROM tab0 AS cor0
----
7442
8327
9455

query I rowsort
SELECT DISTINCT - 23 + cor0.col2 + + 87 * + 30 AS col2 FROM tab2 AS cor0
----
2613
2614
2625

query I rowsort
SELECT ALL - col1 + - ( - col0 * + col2 + ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-97
682
7118

query I rowsort
SELECT DISTINCT - col0 + - 6 AS col2 FROM tab0
----
-30
-41
-95

query I rowsort
SELECT tab1.col1 * + col0 AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL - 58 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT DISTINCT - 76 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5404
SELECT DISTINCT - - col0 + - col0 * col1 DIV cor0.col1 + col1 * 96 FROM tab1 AS cor0
----
1248
2496
960

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT - - col0 + - col0 * col1 / cor0.col1 + col1 * 96 FROM tab1 AS cor0
----
1248
2496
960

query I rowsort
SELECT DISTINCT - - col2 * - col1 * - 14 AS col2 FROM tab1 AS cor0
----
17472
19656
7980

query I rowsort
SELECT 53 * - 80 FROM tab2, tab2 AS cor0
----
9 values hashing to 00bd453cb6b250e1c4f5de778a6e8016

query I rowsort
SELECT + 44 * + col0 + col0 + 46 FROM tab1 AS cor0
----
181
2926
3646

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5408
SELECT CAST( NULL AS SIGNED ) + - 93 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT CAST ( NULL AS INTEGER ) + - 93 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 61 * - col0 FROM tab2 cor0
----
-427
-4758
-4819

query I rowsort
SELECT DISTINCT - 27 + + ( col2 ) * col0 FROM tab2 AS cor0
----
162
2001
2975

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5411
SELECT ALL + + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL + + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - 52 * - col2 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
1411
1430
2055

query I rowsort
SELECT col2 * col2 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT ALL + 7 * 46 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 4876f9f9ff455ac9ea9026c3789051d3

query I rowsort
SELECT DISTINCT + ( + col2 ) * - col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - + ( 44 ) + - col1 FROM tab2 AS cor0
----
-103
-61
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 + - cor0.col0 * col1 col2 FROM tab2 AS cor0
----
-118
-1244
-4503

query I rowsort
SELECT DISTINCT col2 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + 23 + col1 * col0 * 43 AS col0 FROM tab1 AS cor0
----
27543
3377
44743

query I rowsort
SELECT ( + col2 ) * ( - col2 + - col1 * cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-245157
-685766
-9410

query I rowsort
SELECT ALL + 99 - - col0 FROM tab0 cor0
----
123
134
188

query I rowsort
SELECT DISTINCT + col1 + col0 * - ( 88 * + col0 ) FROM tab0 AS cor0
----
-107703
-50602
-696957

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5423
SELECT + 10 - col1 * col0 * - CAST( 6 AS SIGNED ) AS col0 FROM tab2
----
1312
27622
8068

skipif mysql # not compatible
query I rowsort label-5423
SELECT + 10 - col1 * col0 * - CAST ( 6 AS INTEGER ) AS col0 FROM tab2
----
1312
27622
8068

query I rowsort
SELECT + col2 * 53 FROM tab2
----
1378
1431
2014

query I rowsort
SELECT ALL - ( + col0 + col2 ) AS col0 FROM tab2
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5426
SELECT DISTINCT + col0 * col0 DIV col0 AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT + col0 * col0 / col0 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT - + col0 * col2 + col2 + - col0 FROM tab1 cor0
----
-111
-3655
-7664

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT + col2 + col2 * col2 * col1 + col0 AS col2 FROM tab0 AS cor0
----
133
612055
93711

query I rowsort
SELECT DISTINCT - col0 + col0 + - col0 * col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT col2 + + col1 + col0 FROM tab1
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5432
SELECT DISTINCT + col1 DIV - cor0.col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5432
SELECT DISTINCT + col1 / - cor0.col1 FROM tab0 cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5433
SELECT - col1 * col0 + col0 DIV cor0.col1 + - col2 AS col2 FROM tab1 AS cor0
----
-1130
-132
-691

skipif mysql # not compatible
query I rowsort label-5433
SELECT - col1 * col0 + col0 / cor0.col1 + - col2 AS col2 FROM tab1 AS cor0
----
-1130
-132
-691

query I rowsort
SELECT ALL + col1 * col2 * - col2 FROM tab0 cor0
----
-611884
-93654
-97

query I rowsort
SELECT ALL col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + col0 * - col1 * - col1 + col2 * col1 FROM tab2 AS cor0
----
23477
273052
7564

query I rowsort
SELECT - col1 * col0 + col0 * col2 AS col1 FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT + - col2 + - col2 + col0 AS col0 FROM tab2 AS cor0
----
-47
26
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5439
SELECT + col0 DIV col2 FROM tab1 AS cor0 WHERE ( col0 * - col0 ) < - col0 OR ( NULL ) NOT IN ( - col2 * - col1 * + col0 + + col1 )
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5439
SELECT + col0 / col2 FROM tab1 AS cor0 WHERE ( col0 * - col0 ) < - col0 OR ( NULL ) NOT IN ( - col2 * - col1 * + col0 + + col1 )
----
0
0
1

query I rowsort
SELECT - col1 * + col2 + - col1 * - col0 * + col0 FROM tab0 AS cor0
----
118728
46698
713349

query I rowsort
SELECT ALL + + cor0.col0 + - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + - col1 * - col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT - col0 * col1 + + col0 * col0 FROM tab0
----
-1488
-178
-2170

query I rowsort
SELECT tab0.col1 + tab0.col1 * col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - col0 * col2 * col2 + - col1 * col1 AS col0 FROM tab1
----
-208036
-737449
-9424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 * col0 col1 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-5447
SELECT - - col1 + col2 DIV cor0.col1 col2 FROM tab1 AS cor0
----
15
20
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5447
SELECT - - col1 + col2 / cor0.col1 col2 FROM tab1 AS cor0
----
15
20
28

query I rowsort
SELECT ALL col1 * - col0 * col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5449
SELECT ALL + + col1 + col1 DIV - col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL + + col1 + col1 / - col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + + 29 + col0 * col2 FROM tab1 AS cor0
----
191
3677
7709

query I rowsort
SELECT ALL - cor0.col2 * + col0 * - col0 + - col0 FROM tab2 AS cor0
----
1316
158106
237079

query I rowsort
SELECT ALL + col2 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT + ( 72 ) AS col0 FROM tab1
----
72

query I rowsort
SELECT DISTINCT 82 * + ( + col1 + + col2 ) FROM tab2
----
4510
4756
6970

onlyif mysql # use DIV operator for integer division
query I rowsort label-5455
SELECT DISTINCT - 32 DIV + col0 FROM tab2
----
-4
0

skipif mysql # not compatible
query I rowsort label-5455
SELECT DISTINCT - 32 / + col0 FROM tab2
----
-4
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5456
SELECT CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5456
SELECT CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT tab2.col0 + - cor0.col0 FROM tab2, tab1, tab2 AS cor0
----
-1
-71
-72
0
1
71
72

query I rowsort
SELECT ( - 4 ) - + tab1.col2 AS col0 FROM tab1
----
-100
-58
-61

query I rowsort
SELECT DISTINCT - - ( - col0 ) FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT - - cor0.col1 + + col0 AS col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL col1 * - tab0.col0 + col1 * - tab0.col0 - col1 * + col0 FROM tab0
----
-10185
-24297
-6192

query I rowsort
SELECT DISTINCT - tab0.col0 + col2 AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT 50 * col0 + tab2.col0 AS col2 FROM tab2
----
357
3978
4029

query I rowsort
SELECT DISTINCT 78 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-562
-962
0

query I rowsort
SELECT ALL ( - col0 * - col2 ) + + col1 * col2 * + col0 AS col0 FROM tab0
----
3430
671416
68904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 * + tab2.col2 col0 FROM tab2
----
1560
684
864

query I rowsort
SELECT - col1 - + tab2.col0 FROM tab2
----
-137
-38
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 - col1 <= - col0 + col1
----
3
26
54

query I rowsort
SELECT - tab0.col0 - + col1 AS col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT ALL - tab2.col1 * + col0 * col0 + + tab2.col0 AS col0 FROM tab2
----
-106018
-1512
-358878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + tab0.col2 col2 FROM tab0
----
1
1089
6724

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) >= ( + col0 / col2 )
----

query I rowsort
SELECT DISTINCT col0 * col1 + + col1 FROM tab1
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-5474
SELECT - col2 - col2 DIV col2 FROM tab0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-5474
SELECT - col2 - col2 / col2 FROM tab0
----
-2
-34
-83

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND col0 * + tab0.col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 + + col0 col2 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT col1 * col2 - - col2 AS col1 FROM tab0
----
2871
7544
98

query I rowsort
SELECT ALL + tab2.col2 - + col0 FROM tab2 WHERE NULL <= - col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5479
SELECT + col1 DIV col2 - + col2 FROM tab0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-5479
SELECT + col1 / col2 - + col2 FROM tab0
----
-31
-81
96

query I rowsort
SELECT + col1 * + tab0.col0 + col2 * col1 + tab0.col1 * col1 FROM tab0
----
12298
12901
23842

query I rowsort
SELECT DISTINCT - col2 * + col2 * col1 + col1 AS col2 FROM tab0
----
-611793
-93568
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5482
SELECT col0 DIV + col1 + col0 FROM tab0 WHERE col0 NOT IN ( - col0 )
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5482
SELECT col0 / + col1 + col0 FROM tab0 WHERE col0 NOT IN ( - col0 )
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5483
SELECT DISTINCT col0 * col1 + - col1 DIV tab0.col0 AS col1 FROM tab0
----
2061
3393
8098

skipif mysql # not compatible
query I rowsort label-5483
SELECT DISTINCT col0 * col1 + - col1 / tab0.col0 AS col1 FROM tab0
----
2061
3393
8098

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT NULL BETWEEN + col1 * + col2 + col2 AND col1
----

query I rowsort
SELECT DISTINCT + tab1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
54
57
96

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT - col1 * - col0 NOT IN ( col1 / - col1 + + tab0.col1 )
----

query I rowsort
SELECT ALL col2 - + col0 * cor0.col1 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT col2 * - col0 * col1 + cor0.col2 FROM tab2 AS cor0
----
-119626
-50996
-5832

query I rowsort
SELECT ALL col2 * + tab1.col2 * col0 + col0 FROM tab1
----
208000
737360
8751

query I rowsort
SELECT DISTINCT col0 * col1 + col1 * col1 AS col2 FROM tab1
----
1209
740
754

query I rowsort
SELECT + 71 + - col0 * - col1 FROM tab2 AS cor0
----
1414
288
4673

query I rowsort
SELECT + + ( cor0.col2 ) * col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - + col0 * col1 * col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5494
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 + col0 * cor0.col0 * 16 AS col2 FROM tab0 AS cor0
----
126827
19697
9302

query I rowsort
SELECT - col2 * + col2 + + col1 AS col2 FROM tab2 cor0
----
-1427
-617
-698

query I rowsort
SELECT - ( - 23 ) AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 24 * + col1 + - col2 * + col1 col2 FROM tab0 AS cor0
----
-5278
-774
2231

query I rowsort
SELECT + 18 - + col2 FROM tab2 cor0
----
-20
-8
-9

query I rowsort
SELECT ALL - - cor0.col0 + col2 * - 47 AS col0 FROM tab0 AS cor0
----
-12
-1527
-3765

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5501
SELECT ALL CAST( NULL AS SIGNED ) * 70 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL CAST ( NULL AS INTEGER ) * 70 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 54 - - tab1.col0 FROM tab1
----
118
134
57

query I rowsort
SELECT DISTINCT - 69 * - ( col2 ) FROM tab1
----
3726
3933
6624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5504
SELECT DISTINCT CAST( tab1.col2 AS SIGNED ) FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT CAST ( tab1.col2 AS INTEGER ) FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
54
57
96

query I rowsort
SELECT col2 * + cor0.col1 + ( + col1 ) FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - col1 * + cor0.col2 * col0 + + col1 * ( col1 ) * - col0 AS col2 FROM tab1 AS cor0
----
-113360
-42880
-6240

query I rowsort
SELECT + col2 * cor0.col0 + + col1 AS col0 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT 26 + + tab0.col0 * - col1 * col1 AS col0 FROM tab0
----
-177478
-329289
-736983

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5509
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0 FROM tab1, tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0 FROM tab1, tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + - col0 + 6 * + col2 AS col1 FROM tab2
----
0
148
70

query I rowsort
SELECT col2 + 67 * - col1 FROM tab1 AS cor0
----
-1688
-613
-775

query I rowsort
SELECT col2 + 14 * col0 AS col2 FROM tab2
----
1118
1144
125

query I rowsort
SELECT DISTINCT ( - 52 ) FROM tab2
----
-52

query I rowsort
SELECT - ( - 49 ) - + col2 FROM tab1
----
-47
-5
-8

query I rowsort
SELECT - + 83 * col1 AS col2 FROM tab2 AS cor0
----
-1411
-2573
-4897

query I rowsort
SELECT ALL + 32 + + cor0.col2 FROM tab2 AS cor0
----
58
59
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5517
SELECT ALL ( 9 ) DIV col0 + + col2 + cor0.col0 * col1 FROM tab1 cor0
----
1136
135
697

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL ( 9 ) / col0 + + col2 + cor0.col0 * col1 FROM tab1 cor0
----
1136
135
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5518
SELECT DISTINCT - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + + cor0.col1 + col2 * col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + cor0.col1 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT + 30 + 80 AS col1 FROM tab2 AS cor0
----
110

query I rowsort
SELECT ALL + 48 * col1 + 35 - - ( col2 ) AS col0 FROM tab0
----
4196
4485
4692

query I rowsort
SELECT DISTINCT ( col1 ) - - tab1.col0 FROM tab1
----
29
74
93

query I rowsort
SELECT + 6 * col1 AS col2 FROM tab0 AS cor0
----
516
546
582

query I rowsort
SELECT 42 * + col0 + + 87 * - cor0.col1 AS col2 FROM tab2 cor0
----
-1857
-2403
1839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5526
SELECT + - col2 + - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-5526
SELECT + - col2 + - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT col1 * col2 * col1 FROM tab2 AS cor0
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 36 col1 FROM tab2 AS cor0
----
1116
2124
612

query I rowsort
SELECT DISTINCT col2 * + col1 + - col0 + - col2 FROM tab2 cor0
----
1430
529
803

query I rowsort
SELECT ALL col1 * + col0 - - ( - col2 ) FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT + col2 * col0 + + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - cor0.col1 * - 20 + + col1 AS col2 FROM tab2 AS cor0
----
1239
357
651

query I rowsort
SELECT DISTINCT + - col1 * col1 * + col0 + col2 AS col0 FROM tab2 AS cor0
----
-22793
-271492
-6700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5534
SELECT ALL + + col1 * - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL + + col1 * - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 22 + col0 col0 FROM tab0 cor0
----
110
158
88

query I rowsort
SELECT + col2 + col1 * tab1.col1 + - col0 FROM tab1
----
185
727
93

query I rowsort
SELECT + col0 + col0 * - col1 AS col1 FROM tab1 cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * col0 col0 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT - tab0.col0 * col2 + col1 * - col2 FROM tab0
----
-132
-14760
-3630

query I rowsort
SELECT + col1 - cor0.col2 * + col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT cor0.col1 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 + + CAST ( - 68 AS REAL ) FROM tab2 AS cor0
----
-37
-51
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5543
SELECT DISTINCT - + col1 DIV - col2 + col2 FROM tab0 AS cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT - + col1 / - col2 + col2 FROM tab0 AS cor0
----
35
83
98

query I rowsort
SELECT DISTINCT + + 56 * col1 * col0 - 88 FROM tab2 AS cor0
----
12064
257624
75120

query I rowsort
SELECT ALL + + 41 * - col0 FROM tab1 AS cor0
----
-123
-2624
-3280

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5546
SELECT - + CAST( - col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5546
SELECT - + CAST ( - col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + 59 AS col1 FROM tab0, tab1 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 05f41d0d3fd0b5c29af79ab9209cab27

onlyif mysql # use DIV operator for integer division
query I rowsort label-5548
SELECT ALL col2 * col1 * col0 + 85 DIV cor0.col1 FROM tab1 AS cor0
----
36488
4215
99846

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL col2 * col1 * col0 + 85 / cor0.col1 FROM tab1 AS cor0
----
36488
4215
99846

onlyif mysql # use DIV operator for integer division
query I rowsort label-5549
SELECT ALL - col2 + cor0.col0 DIV + cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL - col2 + cor0.col0 / + cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col1 - ( ( - col1 ) ) * col1 FROM tab2 AS cor0
----
1178
1632
8083

query I rowsort
SELECT ALL + + col1 * col2 * - ( cor0.col0 ) + cor0.col1 + + 17 FROM tab1 AS cor0
----
-36453
-4169
-99810

query I rowsort
SELECT DISTINCT - - col0 + col2 + col1 * col1 AS col0 FROM tab1 AS cor0
----
221
345
733

query I rowsort
SELECT ALL col1 + col2 * 57 FROM tab1 AS cor0
----
3104
3259
5485

query I rowsort
SELECT ALL + col1 + col1 * ( + col0 ) FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT col0 + + col1 * ( + col2 ) FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - ( 9 ) FROM tab2
----
-9

query I rowsort
SELECT - - 71 * col1 AS col1 FROM tab1 AS cor0
----
1846
710
923

query I rowsort
SELECT - + cor0.col2 + col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT + cor0.col0 * + col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + + col2 + - col1 * + col2 AS col0 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL + col2 * col2 * + 3 AS col2 FROM tab0 AS cor0
----
20172
3
3267

query I rowsort
SELECT - + col0 + col2 * col2 AS col0 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT 11 * + 64 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
704

query I rowsort
SELECT + 55 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1320
-1925
-4895

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5565
SELECT ALL - tab2.col2 * ( col0 * col2 ) + CAST( - col2 * - col0 AS SIGNED ) FROM tab2
----
-111074
-4914
-50700

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL - tab2.col2 * ( col0 * col2 ) + CAST ( - col2 * - col0 AS INTEGER ) FROM tab2
----
-111074
-4914
-50700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5566
SELECT DISTINCT col1 + CAST( - col2 AS SIGNED ) * col1 + + CAST( NULL AS DECIMAL ) * tab0.col0 * - col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT col1 + CAST ( - col2 AS INTEGER ) * col1 + + CAST ( NULL AS REAL ) * tab0.col0 * - col2 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + + col1 + + col1 * + col1 AS col2 FROM tab0
----
7515
8454
9507

onlyif mysql # use DIV operator for integer division
query I rowsort label-5568
SELECT + - col1 + + ( + col0 + + 1 ) DIV col0 AS col2 FROM tab0 cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-5568
SELECT + - col1 + + ( + col0 + + 1 ) / col0 AS col2 FROM tab0 cor0
----
-85
-90
-96

query I rowsort
SELECT + ( + 20 ) + col1 FROM tab2 AS cor0
----
37
51
79

query I rowsort
SELECT + tab2.col1 + col0 * - tab2.col1 FROM tab2
----
-1326
-186
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5571
SELECT tab1.col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5571
SELECT tab1.col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT - 41 + - col1 AS col0 FROM tab2 AS cor0
----
-100
-58
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-5573
SELECT + 40 DIV - col1 + - col0 col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5573
SELECT + 40 / - col1 + - col0 col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL 71 * - cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
-108914
-45866
-59427

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5575
SELECT CAST( col2 + col0 AS SIGNED ) FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-5575
SELECT CAST ( col2 + col0 AS INTEGER ) FROM tab1
----
121
176
57

query I rowsort
SELECT - tab1.col1 AS col1 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - col1 + - ( col2 ) * col2 AS col2 FROM tab1
----
-2942
-3259
-9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-5578
SELECT DISTINCT - tab2.col1 + col1 DIV 84 AS col1 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-5578
SELECT DISTINCT - tab2.col1 + col1 / 84 AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL + col2 * + ( 67 ) + col2 AS col2 FROM tab2
----
1768
1836
2584

onlyif mysql # use DIV operator for integer division
query I rowsort label-5580
SELECT DISTINCT col2 DIV col0 + col0 FROM tab0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT col2 / col0 + col0 FROM tab0
----
25
35
89

query I rowsort
SELECT + col2 * - 68 FROM tab0
----
-2244
-5576
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5582
SELECT DISTINCT col2 + - CAST( NULL AS DECIMAL ) * col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5582
SELECT DISTINCT col2 + - CAST ( NULL AS REAL ) * col1 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT 89 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT ALL ( col1 ) * col1 + - col2 AS col0 FROM tab2 AS cor0
----
251
3455
934

onlyif mysql # use DIV operator for integer division
query I rowsort label-5585
SELECT DISTINCT + col0 + 18 DIV col0 FROM tab1 AS cor0
----
64
80
9

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT + col0 + 18 / col0 FROM tab1 AS cor0
----
64
80
9

query I rowsort
SELECT DISTINCT col1 + ( - col1 ) * + 72 AS col2 FROM tab0 AS cor0
----
-6106
-6461
-6887

query I rowsort
SELECT ALL - - col2 * - col0 + col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-2356
-494
648

onlyif mysql # use DIV operator for integer division
query I rowsort label-5588
SELECT DISTINCT - col1 DIV + col0 FROM tab2 cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT - col1 / + col0 FROM tab2 cor0
----
-4
0

query I rowsort
SELECT ALL + + col2 - 84 FROM tab2 AS cor0
----
-46
-57
-58

query I rowsort
SELECT DISTINCT - - 66 * col1 + + col0 AS col2 FROM tab1 AS cor0
----
1719
724
938

query I rowsort
SELECT ALL 16 * + col0 - col0 FROM tab1 AS cor0
----
1200
45
960

query I rowsort
SELECT ( - col1 ) * + col1 AS col0 FROM tab2 cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-5593
SELECT ALL + col1 DIV + col0 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL + col1 / + col0 FROM tab1 cor0
----
0
0
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5594
SELECT CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5594
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 * - col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT 49 + tab0.col1 AS col0 FROM tab0
----
135
140
146

onlyif mysql # use DIV operator for integer division
query I rowsort label-5597
SELECT - + col1 + col0 * 13 DIV + 13 + col2 DIV ( - 32 ) AS col1 FROM tab1 AS cor0
----
-24
53
64

skipif mysql # not compatible
query I rowsort label-5597
SELECT - + col1 + col0 * 13 / + 13 + col2 / ( - 32 ) AS col1 FROM tab1 AS cor0
----
-24
53
64

query I rowsort
SELECT + 16 * col1 AS col0 FROM tab1 cor0
----
160
208
416

query I rowsort
SELECT + col1 * - col2 * - col2 + + col0 AS col1 FROM tab0 AS cor0
----
132
611973
93678

query I rowsort
SELECT + col1 + - col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5601
SELECT + col1 + col1 + ( + ( - col2 ) ) DIV col1 col2 FROM tab1 AS cor0
----
15
19
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5601
SELECT + col1 + col1 + ( + ( - col2 ) ) / col1 col2 FROM tab1 AS cor0
----
15
19
50

query I rowsort
SELECT ALL 66 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT + + col1 * - col2 + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL + + 85 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT + - cor0.col0 + 83 AS col0 FROM tab2 cor0
----
4
5
76

query I rowsort
SELECT 79 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT - col2 + ( cor0.col2 ) * + cor0.col0 + - col0 AS col0 FROM tab0 AS cor0
----
-1
7127
735

onlyif mysql # use DIV operator for integer division
query I rowsort label-5608
SELECT - + col0 DIV - ( col0 ) FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5608
SELECT - + col0 / - ( col0 ) FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - col0 + col0 * - 1 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT 96 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
96

query I rowsort
SELECT ALL col2 + col2 * 94 FROM tab2 cor0
----
2470
2565
3610

query I rowsort
SELECT col0 * 28 FROM tab2 AS cor0
----
196
2184
2212

onlyif mysql # use DIV operator for integer division
query I rowsort label-5613
SELECT ALL - col2 DIV CAST( - col1 * + cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL - col2 / CAST ( - col1 * + cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col1 + col1 * + col2 FROM tab0 cor0
----
194
2924
7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5615
SELECT + col2 + + CAST( + 58 AS SIGNED ) + - col1 AS col2 FROM tab1 cor0
----
105
141
86

skipif mysql # not compatible
query I rowsort label-5615
SELECT + col2 + + CAST ( + 58 AS INTEGER ) + - col1 AS col2 FROM tab1 cor0
----
105
141
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5616
SELECT col1 * - tab1.col2 * - CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
16224
36504
5700

skipif mysql # not compatible
query I rowsort label-5616
SELECT col1 * - tab1.col2 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT - col2 * col2 + - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT col1 + 11 AS col1 FROM tab2 AS cor0
----
28
42
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5619
SELECT ALL + + col2 + - CAST( col0 + col2 AS SIGNED ) * - col2 AS col0 FROM tab1 cor0
----
16992
3132
6954

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL + + col2 + - CAST ( col0 + col2 AS INTEGER ) * - col2 AS col0 FROM tab1 cor0
----
16992
3132
6954

query I rowsort
SELECT + col2 * + ( + cor0.col2 + - col1 ) AS col1 FROM tab2 AS cor0
----
-108
-858
798

query I rowsort
SELECT - col1 * + ( col1 ) * 12 AS col0 FROM tab2 AS cor0
----
-11532
-3468
-41772

query I rowsort
SELECT DISTINCT - cor0.col1 * - ( col0 ) AS col0 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * - col1 col2 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL - col1 * - col2 * + col0 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL - + col0 * - col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT col2 * + col2 + 6 + col1 * col0 FROM tab2 AS cor0
----
2793
5284
952

onlyif mysql # use DIV operator for integer division
query I rowsort label-5627
SELECT DISTINCT 40 DIV col1 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT 40 / col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL cor1.col2 * cor0.col2 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 994244f565b077d9bfe0a9efd8b9bf4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * + ( 55 ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43476a73746cc280354325c126d25dc5

query I rowsort
SELECT ALL col0 + - tab0.col1 - col2 FROM tab0
----
-63
-84
-95

query I rowsort
SELECT + 48 + col0 FROM tab0
----
137
72
83

query I rowsort
SELECT 40 - col0 FROM tab0
----
-49
16
5

query I rowsort
SELECT ALL 7 - - col2 AS col1 FROM tab2
----
33
34
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5634
SELECT - 80 + - cor0.col2 + CAST( NULL AS SIGNED ) * 88 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5634
SELECT - 80 + - cor0.col2 + CAST ( NULL AS INTEGER ) * 88 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 26 * col0 * col2 + - ( - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
1007
189839
20678

query I rowsort
SELECT + + col1 * col2 + 21 + col2 AS col2 FROM tab2 AS cor0
----
1581
705
885

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

onlyif mysql # use DIV operator for integer division
query I rowsort label-5638
SELECT DISTINCT 97 + col0 DIV + ( - col1 + - col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT 97 + col0 / + ( - col1 + - col0 ) AS col0 FROM tab0
----
97

query I rowsort
SELECT ALL 45 AS col2 FROM tab2 cor0
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 * - cor0.col1 col2 FROM tab1 AS cor0
----
-1404
-540
-702

query I rowsort
SELECT - tab1.col2 + + 54 FROM tab1
----
-3
-42
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col0 AS REAL ) FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5644
SELECT + - 85 DIV + col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5644
SELECT + - 85 / + col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT + 34 * + 94 AS col2 FROM tab2 AS cor0
----
3196

onlyif mysql # use DIV operator for integer division
query I rowsort label-5646
SELECT col1 * 16 DIV + cor0.col2 FROM tab1 AS cor0
----
2
2
7

skipif mysql # not compatible
query I rowsort label-5646
SELECT col1 * 16 / + cor0.col2 FROM tab1 AS cor0
----
2
2
7

query I rowsort
SELECT DISTINCT ( cor0.col0 ) * 39 FROM tab1, tab1 AS cor0
----
117
2496
3120

query I rowsort
SELECT ALL + - col0 * - 38 * + col0 FROM tab2 AS cor0
----
1862
231192
237158

query I rowsort
SELECT - 55 AS col0 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to 037c686cf473a7e2cc59ce6c19d8dc57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e

query I rowsort
SELECT DISTINCT ( col0 * - col1 ) + - 62 FROM tab0
----
-2126
-3457
-8161

query I rowsort
SELECT - col1 + + cor0.col1 * col1 FROM tab1 cor0
----
156
650
90

query I rowsort
SELECT DISTINCT 99 * col2 + col2 FROM tab2
----
2600
2700
3800

query I rowsort
SELECT - tab0.col1 AS col0 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5655
SELECT + col0 * col1 DIV col0 + - ( col2 + col1 ) FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5655
SELECT + col0 * col1 / col0 + - ( col2 + col1 ) FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL + ( col1 ) + col2 FROM tab1
----
109
67
80

query I rowsort
SELECT 88 * col2 + ( - 97 ) + col1 * + 9 AS col0 FROM tab1
----
4889
5009
8468

query I rowsort
SELECT ALL col2 + - col0 + col0 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - 82 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to c7d52549709c0d1194b36919dde4afb7

query I rowsort
SELECT - 39 * - col2 + col2 * 60 * + col0 AS col2 FROM tab1
----
11826
221103
464544

query I rowsort
SELECT DISTINCT - 77 FROM tab0, tab1, tab1 AS cor0
----
-77

query I rowsort
SELECT DISTINCT - col1 + - col0 + + col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT - 92 + col1 AS col2 FROM tab0
----
-1
-6
5

query I rowsort
SELECT 33 * + tab1.col0 * + 58 FROM tab1
----
122496
153120
5742

query I rowsort
SELECT DISTINCT col0 * + 97 * - 24 + + col1 FROM tab1 AS cor0
----
-148982
-186227
-6958

query I rowsort
SELECT + col1 * + col1 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
1922
578
6962

query I rowsort
SELECT ALL col0 - + col0 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col1 * col0 + - 98 AS col2 FROM tab0 cor0
----
1966
3297
8001

query I rowsort
SELECT DISTINCT + col0 + - 74 FROM tab1 cor0
----
-10
-71
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5670
SELECT ALL + col1 + col1 * - 5 * col2 - + 23 DIV col1 FROM tab1 AS cor0
----
-2842
-6228
-6994

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL + col1 + col1 * - 5 * col2 - + 23 / col1 FROM tab1 AS cor0
----
-2842
-6228
-6994

query I rowsort
SELECT - - col2 + 17 AS col1 FROM tab1 AS cor0
----
113
71
74

query I rowsort
SELECT ALL + col2 + col0 - col1 FROM tab2 AS cor0
----
100
3
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5673
SELECT ALL col1 + 24 + cor0.col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
110
115
121

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL col1 + 24 + cor0.col2 / + col1 AS col2 FROM tab0 AS cor0
----
110
115
121

query I rowsort
SELECT - tab1.col1 * - col1 * 79 FROM tab1
----
13351
53404
7900

query I rowsort
SELECT + col2 + 98 AS col2 FROM tab0 AS cor0
----
131
180
99

query I rowsort
SELECT - col0 * 35 FROM tab0
----
-1225
-3115
-840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col1 + col2 col2 FROM tab2 cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-5678
SELECT DISTINCT + col2 * - 27 + cor0.col2 * cor0.col0 DIV - col1 FROM tab2 AS cor0
----
-1202
-735
-736

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT + col2 * - 27 + cor0.col2 * cor0.col0 / - col1 FROM tab2 AS cor0
----
-1202
-735
-736

query I rowsort
SELECT DISTINCT - col0 * col2 + col0 * col0 - - col1 AS col0 FROM tab1 AS cor0
----
-1267
-127
458

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5680
SELECT + CAST( NULL AS SIGNED ) * ( + col2 ) + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT + CAST ( NULL AS INTEGER ) * ( + col2 ) + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * 71 AS col1 FROM tab0 AS cor0
----
6106
6461
6887

query I rowsort
SELECT + + ( + 3 ) FROM tab1 AS cor0
----
3
3
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5683
SELECT - CAST( - cor0.col0 AS SIGNED ) + + col1 AS col0 FROM tab2 cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-5683
SELECT - CAST ( - cor0.col0 AS INTEGER ) + + col1 AS col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT col2 * - col2 + col2 + + col1 FROM tab2 AS cor0
----
-1389
-591
-671

onlyif mysql # use DIV operator for integer division
query I rowsort label-5685
SELECT DISTINCT + col1 * cor0.col2 DIV - col1 + + col0 * - col0 FROM tab0 AS cor0
----
-1226
-609
-8003

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT + col1 * cor0.col2 / - col1 + + col0 * - col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT 92 * - col0 AS col0 FROM tab2 AS cor0
----
-644
-7176
-7268

query I rowsort
SELECT 35 * + col1 - col1 * cor0.col2 AS col2 FROM tab1 cor0
----
-220
-494
-793

query I rowsort
SELECT DISTINCT + - 22 * col2 AS col1 FROM tab2 cor0
----
-572
-594
-836

query I rowsort
SELECT - cor0.col2 + col1 * col0 + - cor0.col2 * - col1 AS col1 FROM tab2 AS cor0
----
1027
1951
6110

query I rowsort
SELECT ALL + cor1.col1 * - 65 AS col2 FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 29c2f8810240a9ccc304cc6a252750f2

query I rowsort
SELECT DISTINCT - 63 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-63

query I rowsort
SELECT - col1 * col0 - col2 FROM tab1 cor0
----
-1136
-132
-697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5693
SELECT + col1 + col2 + - CAST( + 93 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
26
5
80

skipif mysql # not compatible
query I rowsort label-5693
SELECT + col1 + col2 + - CAST ( + 93 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
26
5
80

query I rowsort
SELECT - - ( col1 ) * ( col1 * col2 ) AS col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ( - col1 ) + + cor0.col1 * col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + - 41 AS col0 FROM tab0 cor0
----
-41
-41
-41

query I rowsort
SELECT + + col1 + col1 * + 16 AS col1 FROM tab1 AS cor0
----
170
221
442

query I rowsort
SELECT + col0 * + col1 + col2 + + col1 FROM tab2 AS cor0
----
1398
275
4687

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * col0 - 48 * - col0 col0 FROM tab2 AS cor0
----
5135
553
8346

query I rowsort
SELECT ALL 99 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT + - col1 * + col2 - - col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT col1 * + col1 + - col1 FROM tab1 cor0
----
156
650
90

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-5704
SELECT col0 DIV col2 + 56 AS col0 FROM tab1 AS cor0
----
56
56
57

skipif mysql # not compatible
query I rowsort label-5704
SELECT col0 / col2 + 56 AS col0 FROM tab1 AS cor0
----
56
56
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5705
SELECT DISTINCT col1 DIV - col0 + ( - col1 ) + col0 FROM tab1 AS cor0
----
-31
54
67

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT col1 / - col0 + ( - col1 ) + col0 FROM tab1 AS cor0
----
-31
54
67

query I rowsort
SELECT + 34 * - col1 AS col0 FROM tab2 AS cor0
----
-1054
-2006
-578

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) * - 90 col2 FROM tab1 AS cor0
----
-4860
-5130
-8640

query I rowsort
SELECT - 56 * - col1 FROM tab2
----
1736
3304
952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 * col0 col2 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT - - 14 * - col1 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1581
-5428
-651

query I rowsort
SELECT + + 82 + col2 FROM tab1 AS cor0
----
136
139
178

query I rowsort
SELECT ALL + col2 * col1 * + ( - col0 * col2 ) AS col1 FROM tab1 AS cor0
----
-2079360
-227448
-9584640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( cor0.col1 ) * col1 col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - 8 FROM tab0
----
-8
-8
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5715
SELECT - col1 DIV - ( col2 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5715
SELECT - col1 / - ( col2 ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col1 - - 87 AS col2 FROM tab1
----
100
113
97

skipif mysql # not compatible
query I rowsort
SELECT ALL - ( - col2 ) * col0 - CAST ( - col1 AS REAL ) AS col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT cor0.col0 * - 11 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-77
-858
-869

query I rowsort
SELECT DISTINCT - cor1.col2 AS col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
-26
-27
-38

query I rowsort
SELECT - 79 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # use DIV operator for integer division
query I rowsort label-5721
SELECT ALL 97 DIV col2 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL 97 / col2 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT - 15 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-15

query I rowsort
SELECT 5 * + col1 FROM tab0 AS cor0
----
430
455
485

query I rowsort
SELECT + 26 * col1 * + ( 71 ) AS col1 FROM tab1 AS cor0
----
18460
23998
47996

query I rowsort
SELECT col1 * col2 * 24 FROM tab0 AS cor0
----
179088
2328
68112

query I rowsort
SELECT 26 - + 69 FROM tab1, tab2 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT ALL + 70 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT 18 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT - 71 - + col2 * - col1 FROM tab0
----
26
2767
7391

query I rowsort
SELECT ALL - cor0.col2 * - cor0.col0 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 24e20ca2b8a28088cc71698417e1f489

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab0, tab2 cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT + col0 + + 97 FROM tab1 AS cor0
----
100
161
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) * col0 - - 41 * ( col2 ) col0 FROM tab1 AS cor0
----
1697
2136
2896

query I rowsort
SELECT - + cor0.col0 * col2 - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL 35 * + col0 + - col2 AS col1 FROM tab1 AS cor0
----
2183
2704
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-5736
SELECT + cor0.col0 - - col0 DIV + col2 col2 FROM tab1 AS cor0
----
3
65
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5736
SELECT + cor0.col0 - - col0 / + col2 col2 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT ALL + cor0.col2 + + cor0.col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + col0 + 27 * + col1 AS col0 FROM tab2
----
1671
538
844

query I rowsort
SELECT - 10 * - 98 - col0 AS col2 FROM tab0
----
891
945
956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 8 col0 FROM tab0 AS cor0
----
688
728
776

query I rowsort
SELECT DISTINCT + 61 * - cor0.col2 + - col2 * ( col2 ) AS col0 FROM tab0 AS cor0
----
-11726
-3102
-62

query I rowsort
SELECT DISTINCT + col2 * col1 + - col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT + col2 + col1 * + col1 * 25 FROM tab0 cor0
----
184933
207107
235226

query I rowsort
SELECT ( cor0.col2 ) + col1 AS col0 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5745
SELECT + ( - ( col2 ) ) DIV - ( col0 ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5745
SELECT + ( - ( col2 ) ) / - ( col0 ) FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col2 - + col2 AS col1 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT cor0.col1 + col0 * col2 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - 20 * + col1 + col2 FROM tab2 AS cor0
----
-1154
-302
-593

query I rowsort
SELECT ALL - col0 + col0 * col2 AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT + + 8 * + col0 + col0 AS col1 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT - 0 + col1 * ( + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col2 * - col1 - + ( 43 ) FROM tab0 AS cor0
----
2795
54
7419

query I rowsort
SELECT col1 + - col0 * col1 AS col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT - col0 + col0 * col1 FROM tab0 cor0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col0 col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5756
SELECT DISTINCT col2 * + CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT col2 * + CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor2.col2 col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + col1 - ( col0 + tab2.col2 ) AS col2 FROM tab2
----
-100
-3
-45

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT 12 + - col0 AS col0 FROM tab0 AS cor0
----
-12
-23
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 + col0 * + col0 col1 FROM tab0 AS cor0
----
1301
652
7997

query I rowsort
SELECT + + col1 * - 28 FROM tab2 AS cor0
----
-1652
-476
-868

query I rowsort
SELECT + ( + col2 ) * + col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + + 34 * col2 * col1 AS col0 FROM tab0 AS cor0
----
253708
3298
96492

query I rowsort
SELECT DISTINCT ( 41 ) FROM tab2 AS cor0
----
41

query I rowsort
SELECT ALL - 45 * - col1 * col2 AS col2 FROM tab2 cor0
----
29070
37665
69030

query I rowsort
SELECT ALL + col0 * + tab1.col1 * - col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT col2 * 39 + tab1.col1 AS col0 FROM tab1
----
2132
2233
3757

query I rowsort
SELECT DISTINCT - + col2 * col0 * col2 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT + + col1 + + col0 * + col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - + 24 * - col2 FROM tab1 cor0
----
1296
1368
2304

query I rowsort
SELECT - 44 * col0 + col2 AS col2 FROM tab1 AS cor0
----
-2759
-3424
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5775
SELECT + 31 * col0 DIV col0 FROM tab1 AS cor0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-5775
SELECT + 31 * col0 / col0 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT - cor0.col2 * - col0 + col2 * - col1 FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT + 91 + 78 * col2 * - col1 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-119502
-50280
-65164

query I rowsort
SELECT - col1 + col0 - col2 AS col1 FROM tab1 AS cor0
----
-29
-3
-77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5779
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + col2 + col1 * - col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + col2 + col1 * - col0 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col1 + + col1 - col2 * cor0.col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col1 * + col2 + col0 + col1 FROM tab1
----
1341
1433
644

onlyif mysql # use DIV operator for integer division
query I rowsort label-5782
SELECT - 70 * col0 + col0 DIV - col1 + + col1 AS col1 FROM tab2 AS cor0
----
-459
-5402
-5517

skipif mysql # not compatible
query I rowsort label-5782
SELECT - 70 * col0 + col0 / - col1 + + col1 AS col1 FROM tab2 AS cor0
----
-459
-5402
-5517

query I rowsort
SELECT - col2 * - ( col0 ) + + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL + col0 - col2 * + col1 AS col1 FROM tab0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-5785
SELECT - tab2.col2 + - tab2.col0 DIV - col1 col2 FROM tab2
----
-25
-27
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5785
SELECT - tab2.col2 + - tab2.col0 / - col1 col2 FROM tab2
----
-25
-27
-34

query I rowsort
SELECT ALL - ( tab2.col0 ) * col0 + col2 AS col2 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT ALL - 94 + - col2 + - col2 AS col0 FROM tab1
----
-202
-208
-286

query I rowsort
SELECT 84 * - col0 AS col0 FROM tab1
----
-252
-5376
-6720

query I rowsort
SELECT DISTINCT + 23 * cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
154652
23
25047

query I rowsort
SELECT 60 * - 20 + tab0.col2 * - col2 + - col0 FROM tab0
----
-1236
-2313
-8013

query I rowsort
SELECT DISTINCT + 93 * col1 * + tab2.col2 AS col0 FROM tab2
----
142662
60078
77841

onlyif mysql # use DIV operator for integer division
query I rowsort label-5792
SELECT DISTINCT - 84 * - col0 DIV + col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT - 84 * - col0 / + col0 FROM tab2
----
84

query I rowsort
SELECT ALL + col1 * + col0 + + col2 + + col0 FROM tab2 cor0
----
1460
251
4706

query I rowsort
SELECT ALL col0 * col0 + col2 AS col0 FROM tab2
----
6110
6279
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5795
SELECT col0 * col0 DIV col0 AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5795
SELECT col0 * col0 / col0 AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT col2 + + col2 * col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

query III rowsort
SELECT * FROM tab0 WHERE - col1 IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col0 * col0 col1 FROM tab2
----
18
6025
6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 * - col2 + + col0 col2 FROM tab1
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5800
SELECT col1 * + col1 DIV + col1 AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5800
SELECT col1 * + col1 / + col1 AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT NULL NOT IN ( + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT + cor0.col2 + - cor0.col2 * - col2 * col0 FROM tab0 AS cor0
----
26169
36
598518

query I rowsort
SELECT col0 * cor0.col0 + - col2 FROM tab2 AS cor0
----
22
6058
6203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 + col2 * + tab1.col2 col0 FROM tab1
----
3024
3363
9408

query I rowsort
SELECT DISTINCT + col2 * + tab2.col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + - col0 * col0 - + col0 AS col1 FROM tab2 AS cor0
----
-56
-6162
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 + col1 col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - col0 + - col2 + cor0.col1 * cor0.col0 FROM tab1 AS cor0
----
21
519
864

query I rowsort
SELECT - col1 * + ( - 83 ) * + col1 + - col2 * - col1 FROM tab1
----
15275
57512
8870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 col2 FROM tab2
----
-19
-62
24

query I rowsort
SELECT - 46 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9

query I rowsort
SELECT DISTINCT + - col0 + col2 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1232
-1353
-577

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5814
SELECT ALL + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 + ( - cor0.col0 ) * + cor0.col0 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT + col0 + 17 * - col2 + - col2 AS col0 FROM tab1 AS cor0
----
-1648
-962
-969

query I rowsort
SELECT DISTINCT - ( 54 ) - col1 FROM tab1 AS cor0
----
-64
-67
-80

query I rowsort
SELECT - col2 * + col2 + + col0 AS col2 FROM tab2 cor0
----
-1365
-598
-722

query I rowsort
SELECT ( col0 ) * + col2 * col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT - col2 + + col1 + - col1 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - ( - 24 ) AS col2 FROM tab2 AS cor0
----
24

query I rowsort
SELECT + - col2 + + 4 * col1 AS col2 FROM tab1 AS cor0
----
-17
-44
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-5823
SELECT ALL + col1 * - cor0.col2 + col0 DIV - cor0.col0 FROM tab0 cor0
----
-2839
-7463
-98

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL + col1 * - cor0.col2 + col0 / - cor0.col0 FROM tab0 cor0
----
-2839
-7463
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 * + col0 col1 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-5825
SELECT + col2 DIV col0 + - col1 * 70 AS col0 FROM tab2 AS cor0
----
-1190
-2167
-4130

skipif mysql # not compatible
query I rowsort label-5825
SELECT + col2 / col0 + - col1 * 70 AS col0 FROM tab2 AS cor0
----
-1190
-2167
-4130

query I rowsort
SELECT ALL + + col2 * col1 + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) + col1 * - col1 - - col1 AS col0 FROM tab1 cor0
----
-154
-236
-653

query I rowsort
SELECT ALL + ( col2 ) + - col1 + col1 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - col1 + + ( + col2 ) * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL - col0 + 28 * tab0.col1 * + col1 FROM tab0
----
207064
231779
263417

onlyif mysql # use DIV operator for integer division
query I rowsort label-5831
SELECT ALL - - 1 * cor0.col0 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL - - 1 * cor0.col0 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * - col2 + - 34 col0 FROM tab2 AS cor0
----
-1568
-680
-871

onlyif mysql # use DIV operator for integer division
query I rowsort label-5833
SELECT ALL - - col1 * - col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL - - col1 * - col1 / col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + + ( col2 ) * - col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + col2 col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5836
SELECT ALL col0 DIV col0 + ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL col0 / col0 + ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT - - col1 * - col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + 35 * - cor0.col0 FROM tab1 AS cor0
----
-105
-2240
-2800

query I rowsort
SELECT - - col1 * - col0 * + 96 FROM tab0 cor0
----
-198144
-325920
-777504

onlyif mysql # use DIV operator for integer division
query I rowsort label-5840
SELECT ALL + tab1.col2 DIV - col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL + tab1.col2 / - col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT 2 * - ( + cor0.col0 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f8529b710dc613df309e90c94e8a2770

onlyif mysql # use DIV operator for integer division
query I rowsort label-5842
SELECT col1 DIV - col0 + + col2 col0 FROM tab1
----
46
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5842
SELECT col1 / - col0 + + col2 col0 FROM tab1
----
46
57
96

query I rowsort
SELECT - 69 * col0 AS col1 FROM tab0 AS cor0
----
-1656
-2415
-6141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + cor0.col0 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col1 * - cor0.col0 * + col0 FROM tab1 AS cor0
----
-234
-40960
-83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5846
SELECT CAST( 64 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

skipif mysql # not compatible
query I rowsort label-5846
SELECT CAST ( 64 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 + - col2 col1 FROM tab0
----
-39
10
42

query I rowsort
SELECT + 33 + + tab0.col1 AS col2 FROM tab0
----
119
124
130

query I rowsort
SELECT DISTINCT - col1 * ( 30 * col2 ) AS col1 FROM tab0 AS cor0
----
-223860
-2910
-85140

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5850
SELECT col0 + CAST( NULL AS SIGNED ) * 50 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5850
SELECT col0 + CAST ( NULL AS INTEGER ) * 50 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col0 FROM tab2
----
-67
-67
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5853
SELECT DISTINCT - col2 DIV 86 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5853
SELECT DISTINCT - col2 / 86 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5854
SELECT + - cor0.col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT + - cor0.col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + ( - col2 ) + - col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL - - col2 + + cor0.col0 * - col0 AS col0 FROM tab2 cor0
----
-22
-6058
-6203

query I rowsort
SELECT - col2 + 45 AS col2 FROM tab0 AS cor0
----
-37
12
44

query I rowsort
SELECT DISTINCT + col2 * + ( 89 ) AS col0 FROM tab0 AS cor0
----
2937
7298
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5859
SELECT ALL - cor0.col1 DIV col2 + - col2 FROM tab0 AS cor0
----
-35
-83
-98

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL - cor0.col1 / col2 + - col2 FROM tab0 AS cor0
----
-35
-83
-98

query I rowsort
SELECT DISTINCT - col2 * - ( 84 ) AS col2 FROM tab1 AS cor0
----
4536
4788
8064

query I rowsort
SELECT ALL col2 * 37 * + col0 + col2 + + col0 FROM tab2 AS cor0
----
111191
7027
75140

query I rowsort
SELECT - 17 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
81 values hashing to c2265365b5649c888846aefc3ede9a69

onlyif mysql # use DIV operator for integer division
query I rowsort label-5863
SELECT DISTINCT + col2 * + col1 + - col0 DIV ( 21 ) col1 FROM tab0
----
2837
7458
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT + col2 * + col1 + - col0 / ( 21 ) col1 FROM tab0
----
2837
7458
96

query I rowsort
SELECT ALL - 95 AS col1 FROM tab2, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 6ddacf7cdc440b47c37bfd544945f3f8

query I rowsort
SELECT ALL - 5 * ( - cor0.col1 ) FROM tab0 AS cor0
----
430
455
485

query I rowsort
SELECT ALL - 4 * - 93 FROM tab2 AS cor0
----
372
372
372

query I rowsort
SELECT DISTINCT - 5 + - 38 FROM tab2 AS cor0
----
-43

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * col0 + + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL ( - col1 ) + col2 + - col0 FROM tab0 cor0
----
-131
-77
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5870
SELECT ALL + 0 + - ( col2 ) DIV - ( ( col0 ) ) + col0 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL + 0 + - ( col2 ) / - ( ( col0 ) ) + col0 FROM tab1 AS cor0
----
21
64
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 51 col0 FROM tab0 AS cor0
----
133
52
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-5872
SELECT ALL - 5 DIV - col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL - 5 / - col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 * + col0 col2 FROM tab2 AS cor0
----
56
624
632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) - - col0 col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - ( col2 ) * ( 44 * + col0 ) + col1 AS col2 FROM tab2 AS cor0
----
-132071
-8285
-89173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT DISTINCT + 40 * col1 + + col0 * cor0.col1 FROM tab0 AS cor0
----
11739
5504
7275

query I rowsort
SELECT col2 - 28 * col2 AS col1 FROM tab2
----
-1026
-702
-729

query I rowsort
SELECT + + 19 FROM tab1, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # use DIV operator for integer division
query I rowsort label-5880
SELECT DISTINCT + - col1 DIV col1 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5880
SELECT DISTINCT + - col1 / col1 AS col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 20 FROM tab0, tab0 AS cor0
----
20

query I rowsort
SELECT ALL + col2 * - col1 - - col2 * - col2 FROM tab1 AS cor0
----
-10464
-3819
-4320

query I rowsort
SELECT DISTINCT - - 63 AS col1 FROM tab1 AS cor0
----
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5884
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + cor0.col2 * - col2 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + cor0.col2 * - col2 AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + - 46 * + 37 AS col1 FROM tab0 AS cor0
----
-1702
-1702
-1702

onlyif mysql # use DIV operator for integer division
query I rowsort label-5886
SELECT DISTINCT 64 + - col2 DIV + col0 FROM tab1 AS cor0
----
46
63
64

skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT 64 + - col2 / + col0 FROM tab1 AS cor0
----
46
63
64

query I rowsort
SELECT - 18 + col1 FROM tab1 cor0
----
-5
-8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT - col0 * + col2 + - 83 AS col2 FROM tab2 AS cor0
----
-2111
-272
-3085

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5890
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 44 FROM tab0, tab0 cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 44 FROM tab0, tab0 cor0, tab2 AS cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5891
SELECT + - cor0.col1 DIV col0 + + 38 DIV - 45 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5891
SELECT + - cor0.col1 / col0 + + 38 / - 45 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT - - ( - col0 ) + - 97 AS col2 FROM tab1 AS cor0
----
-100
-161
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
3
64
80

query I rowsort
SELECT 37 + + col2 AS col0 FROM tab1 AS cor0
----
133
91
94

query I rowsort
SELECT 43 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5896
SELECT ALL col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5897
SELECT + cor0.col1 + col0 DIV col2 AS col2 FROM tab0 cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-5897
SELECT + cor0.col1 + col0 / col2 AS col2 FROM tab0 cor0
----
132
86
92

query I rowsort
SELECT DISTINCT - cor0.col0 + col1 AS col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT col0 * ( col0 ) FROM tab2
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5900
SELECT - 58 * + col1 + col0 + - CAST( NULL AS DECIMAL ) 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-5900
SELECT - 58 * + col1 + col0 + - CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - cor0.col2 * - col0 * + 93 AS col2 FROM tab1 AS cor0
----
15063
339200
714160

query I rowsort
SELECT cor0.col0 * + col1 * col0 + col2 FROM tab0 cor0
----
118826
49569
720893

query I rowsort
SELECT DISTINCT - 75 * + col1 AS col2 FROM tab1 AS cor0
----
-1950
-750
-975

query I rowsort
SELECT - ( - 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 col2 * + 74 + col0 * 84 col1 FROM tab1 AS cor0
----
13824
4248
9594

query I rowsort
SELECT cor0.col1 * col1 * + col2 - 5 AS col0 FROM tab1 AS cor0
----
16219
36499
5695

query I rowsort
SELECT col0 * - cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 - - col2 col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL + col2 * col2 + + 81 * - col2 AS col1 FROM tab0
----
-1584
-80
82

query I rowsort
SELECT DISTINCT 1 * - 3 FROM tab2, tab0 cor0
----
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5911
SELECT ALL - col2 + + tab0.col1 DIV col2 col1 FROM tab0
----
-31
-81
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL - col2 + + tab0.col1 / col2 col1 FROM tab0
----
-31
-81
96

query I rowsort
SELECT ALL - 66 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 18b0c368baac0e3433d1e072f8b49f81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5913
SELECT CAST( NULL AS SIGNED ) + 85 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5913
SELECT CAST ( NULL AS INTEGER ) + 85 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 + 38 * + col1 FROM tab2 AS cor0
----
1205
2268
684

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab1 cor3
----
3645 values hashing to ea1a922b7fccb9d184b31eb4689e063b

query I rowsort
SELECT 97 * + col0 * col0 AS col1 FROM tab0
----
118825
55872
768337

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5917
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 50 AS col2 FROM tab2, tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5917
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 50 AS col2 FROM tab2, tab0, tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5918
SELECT DISTINCT + 75 DIV col0 FROM tab1
----
0
1
25

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT + 75 / col0 FROM tab1
----
0
1
25

query I rowsort
SELECT DISTINCT + 24 * col1 FROM tab2
----
1416
408
744

query I rowsort
SELECT + - col1 * cor0.col1 - cor0.col2 AS col1 FROM tab2 AS cor0
----
-327
-3507
-988

onlyif mysql # use DIV operator for integer division
query I rowsort label-5921
SELECT ALL - ( + col1 ) DIV - ( cor0.col0 ) col2 FROM tab0 AS cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL - ( + col1 ) / - ( cor0.col0 ) col2 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT - 65 * col2 AS col2 FROM tab1 AS cor0
----
-3510
-3705
-6240

query I rowsort
SELECT ALL + 79 AS col2 FROM tab0
----
79
79
79

query I rowsort
SELECT DISTINCT col2 * + 9 FROM tab1
----
486
513
864

query I rowsort
SELECT DISTINCT - cor1.col0 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5926
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1, tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5927
SELECT + col1 + col1 DIV col1 AS col2 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5927
SELECT + col1 + col1 / col1 AS col2 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT - + cor0.col2 * + col0 + - col2 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL ( - col2 + - col2 ) AS col2 FROM tab1
----
-108
-114
-192

onlyif mysql # use DIV operator for integer division
query I rowsort label-5930
SELECT DISTINCT - tab2.col1 DIV CAST( col0 + - col1 AS SIGNED ) AS col2 FROM tab2
----
-3
0
1

skipif mysql # not compatible
query I rowsort label-5930
SELECT DISTINCT - tab2.col1 / CAST ( col0 + - col1 AS INTEGER ) AS col2 FROM tab2
----
-3
0
1

query I rowsort
SELECT ALL + - col1 + 27 AS col0 FROM tab2 AS cor0
----
-32
-4
10

query I rowsort
SELECT ALL - col2 * col0 * col2 + cor0.col2 * + 0 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT 24 + col0 AS col1 FROM tab2
----
102
103
31

query I rowsort
SELECT ALL - ( - tab1.col2 * + tab1.col0 ) AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + col2 * col1 * - col0 - col2 FROM tab1
----
-36537
-4266
-99936

onlyif mysql # use DIV operator for integer division
query I rowsort label-5937
SELECT DISTINCT cor0.col1 DIV - 36 FROM tab2, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT cor0.col1 / - 36 FROM tab2, tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + col0 + col2 * 0 * + col2 AS col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5939
SELECT DISTINCT + col0 - - CAST( NULL AS SIGNED ) * 26 * + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT + col0 - - CAST ( NULL AS INTEGER ) * 26 * + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col2 * - 51 - col2 FROM tab1 cor0
----
2700
2850
4800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5941
SELECT - col0 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5941
SELECT - col0 + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5942
SELECT + + col0 * - 62 - col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
-1489
-2170
-5518

skipif mysql # not compatible
query I rowsort label-5942
SELECT + + col0 * - 62 - col2 / + col0 AS col1 FROM tab0 AS cor0
----
-1489
-2170
-5518

query I rowsort
SELECT DISTINCT + + col0 * - 99 * 68 + - col2 * + 19 AS col0 FROM tab1 AS cor0
----
-21222
-431931
-540384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 74 - col0 col1 FROM tab2 cor0
----
1846
1991
2733

query I rowsort
SELECT DISTINCT + + col1 * - 38 FROM tab0 AS cor0
----
-3268
-3458
-3686

query I rowsort
SELECT ALL col1 + - col1 AS col0 FROM tab0 WHERE NOT + col1 <> NULL
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( + col1 * - col0 * + col1 ) NOT BETWEEN col2 AND col2 + tab1.col0
----
3
64
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - col1 AND col1
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT - tab1.col2 = NULL
----

query I rowsort
SELECT col2 + - col0 * - col2 AS col1 FROM tab2
----
2054
216
3040

query I rowsort
SELECT ALL col1 + - col0 * col1 AS col2 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT col2 * - col2 - - col1 FROM tab1
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-5953
SELECT ALL col0 + + col0 DIV col1 FROM tab1
----
3
70
86

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL col0 + + col0 / col1 FROM tab1
----
3
70
86

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - tab1.col1 AND NULL
----

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + col2 * col1 + col0 FROM tab1 WHERE NOT col0 <= ( NULL )
----

query I rowsort
SELECT 16 * + col1 * + col1 FROM tab0 AS cor0
----
118336
132496
150544

query I rowsort
SELECT DISTINCT + 69 * - col1 FROM tab2 AS cor0
----
-1173
-2139
-4071

query I rowsort
SELECT col0 + col2 + - col1 AS col2 FROM tab2
----
100
3
45

query I rowsort
SELECT ALL - tab2.col2 * + col1 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5961
SELECT ALL + col2 DIV + col2 + tab0.col1 AS col2 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL + col2 / + col2 + tab0.col1 AS col2 FROM tab0
----
87
92
98

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE col0 + - col1 * col0 * - col1 <> col2 - - col1
----
-54
-57
-96

query I rowsort
SELECT ALL col0 - col0 FROM tab0 WHERE NULL NOT IN ( + tab0.col0 )
----

query I rowsort
SELECT + col0 * tab2.col0 + col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT DISTINCT + col2 - tab0.col2 AS col1 FROM tab0
----
0

query I rowsort
SELECT + col2 + col2 FROM tab0 WHERE NOT NULL >= + col2 * col1
----

query I rowsort
SELECT + - col1 + + col1 * - 15 AS col0 FROM tab1 AS cor0
----
-160
-208
-416

query I rowsort
SELECT DISTINCT + col1 + col1 * col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL - col0 * col1 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - 44 + + col1 * 14 FROM tab0 AS cor0
----
1160
1230
1314

query I rowsort
SELECT - + 85 + col2 FROM tab0 AS cor0
----
-3
-52
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-5972
SELECT DISTINCT col1 + - cor0.col0 DIV + col1 AS col1 FROM tab2 AS cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT col1 + - cor0.col0 / + col1 AS col1 FROM tab2 AS cor0
----
13
31
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-5973
SELECT col1 + + col0 * ( 94 + - col1 ) DIV col0 col1 FROM tab2 AS cor0
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5973
SELECT col1 + + col0 * ( 94 + - col1 ) / col0 col1 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT - 85 * - col1 FROM tab0 AS cor0
----
7310
7735
8245

query I rowsort
SELECT DISTINCT - 41 * col2 AS col0 FROM tab2 AS cor0
----
-1066
-1107
-1558

query I rowsort
SELECT DISTINCT - col0 * col0 * + col1 + col0 * - col1 + col2 * 31 AS col2 FROM tab1
----
-39833
-81264
1362

query I rowsort
SELECT DISTINCT 26 + col2 AS col1 FROM tab0
----
108
27
59

query I rowsort
SELECT ALL - 31 * tab0.col0 FROM tab0
----
-1085
-2759
-744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * + col0 col1 FROM tab2
----
154
1716
1738

onlyif mysql # use DIV operator for integer division
query I rowsort label-5980
SELECT ALL - col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL - col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + - col2 * - col2 + col2 AS col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL - - 45 + col0 * 60 AS col0 FROM tab0 AS cor0
----
1485
2145
5385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT ALL - col0 * ( - col2 ) + ( - 35 ) FROM tab2 AS cor0
----
154
1993
2967

query I rowsort
SELECT + col1 * + ( + col0 * tab1.col2 + - col0 * col0 ) AS col2 FROM tab1
----
-4480
16640
3978

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5987
SELECT col1 / + CAST( NULL AS SIGNED ) + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5987
SELECT col1 / + CAST ( NULL AS INTEGER ) + - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 86 * - col1 + - col2 * col2 * + col1 AS col1 FROM tab0
----
-101050
-619710
-8439

query I rowsort
SELECT ( + col0 ) + tab2.col0 AS col0 FROM tab2
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-5990
SELECT ALL col2 + 51 DIV + col1 FROM tab1 AS cor0
----
55
62
99

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL col2 + 51 / + col1 FROM tab1 AS cor0
----
55
62
99

query I rowsort
SELECT ALL col1 * 26 * - col2 + + 32 FROM tab0 AS cor0
----
-193980
-2490
-73756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 * 67 + - col2 col2 FROM tab2 AS cor0
----
-4314
-4315
-4326

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + col1 col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5994
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * col1 + 42 FROM tab2 cor0
----
-247
-3439
-919

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * col1 + 42 FROM tab2 cor0
----
-247
-3439
-919

query I rowsort
SELECT + + col1 + - col0 * col2 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + col2 * ( col2 ) * col2 + col1 AS col0 FROM tab2 cor0
----
17635
19714
54889

query I rowsort
SELECT DISTINCT col1 + + col1 * col2 * 6 AS col1 FROM tab0 AS cor0
----
17114
44863
679

query I rowsort
SELECT ALL + 20 * col0 + col2 FROM tab2 AS cor0
----
1586
1618
167

query I rowsort
SELECT - - 91 + + col2 FROM tab2 AS cor0
----
117
118
129

query I rowsort
SELECT DISTINCT - col1 * + col2 - + cor0.col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT col1 + col0 * 41 FROM tab1 AS cor0
----
149
2634
3293

query I rowsort
SELECT - col0 * 85 + + 48 FROM tab1 AS cor0
----
-207
-5392
-6752

query I rowsort
SELECT ALL ( col0 ) * tab0.col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + - col2 + - ( col0 + col2 ) * - col2 AS col0 FROM tab0 AS cor0
----
13940
1848
35

query I rowsort
SELECT + col1 - cor0.col1 * 4 FROM tab2 AS cor0
----
-177
-51
-93

query I rowsort
SELECT - col2 * - cor0.col1 * col1 FROM tab2 cor0
----
10982
25947
90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6007
SELECT cor0.col0 / 67 + - cor0.col1 + - col2 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT cor0.col0 / 67 + - cor0.col1 + - col2 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * 55 * + col0 FROM tab0
----
-31680
-435655
-67375

query I rowsort
SELECT ALL + 10 * 29 AS col2 FROM tab0 AS cor0
----
290
290
290

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6010
SELECT DISTINCT + CAST( 89 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT + CAST ( 89 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
89

query I rowsort
SELECT ALL + ( - 6 ) * col0 + ( col2 ) * col2 * col0 FROM tab0 AS cor0
----
-175
25992
597902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col1 FROM tab2
----
37
37
37

query I rowsort
SELECT DISTINCT - + col0 + + cor0.col2 * + 35 FROM tab0 AS cor0
----
0
1131
2781

query I rowsort
SELECT ALL - 54 * + col0 * col2 + + col2 FROM tab1 AS cor0
----
-196935
-414624
-8694

query I rowsort
SELECT ALL + 13 * - cor0.col2 FROM tab0 AS cor0
----
-1066
-13
-429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT + col0 + + col0 * col1 FROM tab2 cor0
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6018
SELECT DISTINCT col1 + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT col1 + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( cor0.col0 ) * + col2 col1 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-6020
SELECT DISTINCT - - col0 * col0 + - col1 DIV col1 FROM tab0 cor0
----
1224
575
7920

skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT - - col0 * col0 + - col1 / col1 FROM tab0 cor0
----
1224
575
7920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6021
SELECT ALL col2 * + CAST( col1 AS SIGNED ) - + col1 * cor0.col1 FROM tab1 AS cor0
----
1079
470
728

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL col2 * + CAST ( col1 AS INTEGER ) - + col1 * cor0.col1 FROM tab1 AS cor0
----
1079
470
728

query I rowsort
SELECT + 66 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT + + 8 * + 65 + col0 FROM tab1 AS cor0
----
523
584
600

query I rowsort
SELECT - col2 + + 54 * col1 FROM tab1 AS cor0
----
1350
483
606

query I rowsort
SELECT 7 + - col1 + col0 AS col2 FROM tab0 AS cor0
----
-55
-55
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 * - ( 55 ) col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5a06b1afbcd820c3bb0084d05aa21bf0

query I rowsort
SELECT DISTINCT - 48 + + cor0.col1 - - 57 * + 2 FROM tab1 AS cor0
----
76
79
92

query I rowsort
SELECT DISTINCT + ( col1 ) - + col1 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 10 * - ( col2 ) * 20 AS col0 FROM tab1
----
-10800
-11400
-19200

query I rowsort
SELECT - - col1 * + col1 + 73 AS col0 FROM tab0 AS cor0
----
7469
8354
9482

query I rowsort
SELECT ALL + + 19 * col1 + - col1 * + col2 FROM tab2 AS cor0
----
-248
-323
-413

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 + 50 * col1 FROM tab2 AS cor0
----
1550
2950
850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 col0 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 1b1b58f936aab250d5d6d3f1065ea6dd

query I rowsort
SELECT DISTINCT col2 * col2 * - tab0.col0 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT + 21 FROM tab1, tab0 cor0, tab2 AS cor1, tab1 AS cor2
----
21

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col1 AS REAL ) * col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL ( - 1 ) AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6039
SELECT DISTINCT 13 DIV col0 FROM tab1
----
0
4

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT 13 / col0 FROM tab1
----
0
4

query I rowsort
SELECT ( + col2 * col0 ) + + col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL tab1.col1 * - 67 FROM tab1
----
-1742
-670
-871

query I rowsort
SELECT + ( tab0.col0 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT + ( col2 ) + - col1 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6044
SELECT col0 * 7 DIV + cor0.col0 FROM tab1 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-6044
SELECT col0 * 7 / + cor0.col0 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT + + 61 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT + ( - col2 ) * + col2 AS col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + 42 - - col0 FROM tab1
----
106
122
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-6048
SELECT + ( + cor0.col2 ) + + ( + 15 ) DIV + col0 col2 FROM tab2 cor0
----
26
29
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6048
SELECT + ( + cor0.col2 ) + + ( + 15 ) / + col0 col2 FROM tab2 cor0
----
26
29
38

query I rowsort
SELECT + col2 * col2 * 47 AS col1 FROM tab2
----
31772
34263
67868

query I rowsort
SELECT + 24 + - cor0.col0 FROM tab0 AS cor0
----
-11
-65
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 9 col1 FROM tab1 AS cor0
----
117
234
90

query I rowsort
SELECT + col2 + cor0.col0 * + col1 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT + cor0.col2 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6054
SELECT ALL + + cor0.col2 DIV col0 + - col1 FROM tab0 AS cor0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL + + cor0.col2 / col0 + - col1 FROM tab0 AS cor0
----
-85
-91
-97

query I rowsort
SELECT DISTINCT + - cor0.col1 * - 91 - col1 AS col2 FROM tab2 AS cor0
----
1530
2790
5310

query I rowsort
SELECT ALL - col1 * col1 - + col1 * col0 FROM tab0 cor0
----
-12804
-16380
-9460

query I rowsort
SELECT ALL + + col0 * - 66 FROM tab0 AS cor0
----
-1584
-2310
-5874

query I rowsort
SELECT + - col1 + - col1 * + col2 * - col0 AS col0 FROM tab1 cor0
----
36470
4186
99827

query I rowsort
SELECT DISTINCT + - col0 * + 12 + - col1 + col0 AS col2 FROM tab0 AS cor0
----
-1070
-350
-482

query I rowsort
SELECT ALL - col1 * + ( + ( cor0.col1 ) ) FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6061
SELECT ALL col2 * + col2 + + col2 DIV - cor0.col1 + 96 AS col0 FROM tab1 AS cor0
----
3010
3340
9305

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL col2 * + col2 + + col2 / - cor0.col1 + 96 AS col0 FROM tab1 AS cor0
----
3010
3340
9305

query I rowsort
SELECT DISTINCT cor0.col1 * - ( - 67 ) * col0 - - col0 AS col1 FROM tab2 AS cor0
----
14546
308412
90060

query I rowsort
SELECT + - col0 + ( + col1 + + col0 * - col0 ) AS col1 FROM tab2 AS cor0
----
-25
-6103
-6303

query I rowsort
SELECT ALL - col1 + - cor0.col0 * + 29 FROM tab1 AS cor0
----
-113
-1866
-2333

query I rowsort
SELECT DISTINCT - col1 * - 12 FROM tab0
----
1032
1092
1164

query I rowsort
SELECT DISTINCT - col0 * + col1 + cor0.col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL col1 * + col0 - cor0.col1 * - col2 FROM tab1 cor0
----
1210
1482
2288

query I rowsort
SELECT - - col1 + + col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT tab0.col2 * col0 + col0 FROM tab0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6070
SELECT DISTINCT CAST( NULL AS SIGNED ) - cor0.col1 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT CAST ( NULL AS INTEGER ) - cor0.col1 FROM tab1, tab2 AS cor0
----
NULL

query I rowsort
SELECT - + col0 * + col2 + - ( + col0 ) FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL col1 * - 65 FROM tab1 AS cor0
----
-1690
-650
-845

onlyif mysql # use DIV operator for integer division
query I rowsort label-6073
SELECT + - cor0.col0 - CAST( + cor0.col1 AS SIGNED ) DIV col1 FROM tab0 cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-6073
SELECT + - cor0.col0 - CAST ( + cor0.col1 AS INTEGER ) / col1 FROM tab0 cor0
----
-25
-36
-90

query I rowsort
SELECT ALL + - cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - col0 + - col1 * - 0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT col1 * + col0 + cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

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 DISTINCT ( + cor0.col2 ) col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + + cor0.col1 * + col2 + col2 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6080
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * col0 + - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6080
SELECT DISTINCT - CAST ( NULL AS REAL ) * col0 + - col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6081
SELECT DISTINCT - cor0.col2 DIV - cor0.col1 + col0 + - 58 AS col0 FROM tab1 AS cor0
----
-53
11
29

skipif mysql # not compatible
query I rowsort label-6081
SELECT DISTINCT - cor0.col2 / - cor0.col1 + col0 + - 58 AS col0 FROM tab1 AS cor0
----
-53
11
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - cor0.col1 + + col1 col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT col2 * tab1.col2 + col2 + col1 * - col2 * - 8 FROM tab1
----
14202
19296
7866

query I rowsort
SELECT DISTINCT - col2 * - col0 + col2 FROM tab0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 40 col1 FROM tab0
----
46
51
57

query I rowsort
SELECT - + 21 * - col2 - col0 * cor0.col2 FROM tab1 AS cor0
----
-2451
-5664
972

query I rowsort
SELECT ALL 46 AS col0 FROM tab2 AS cor0
----
46
46
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6088
SELECT ALL col2 + + col0 * CAST( NULL AS SIGNED ) * - cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL col2 + + col0 * CAST ( NULL AS INTEGER ) * - cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + - col1 * col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT 4 * + col2 FROM tab1 AS cor0
----
216
228
384

query I rowsort
SELECT 16 + - 77 FROM tab1
----
-61
-61
-61

query I rowsort
SELECT DISTINCT - 41 * col2 FROM tab1 AS cor0
----
-2214
-2337
-3936

query I rowsort
SELECT - 49 + - col2 * 31 AS col0 FROM tab2 cor0
----
-1227
-855
-886

query I rowsort
SELECT DISTINCT + - col1 * + col2 + + col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + 70 * - col2 AS col2 FROM tab2 AS cor0
----
-1820
-1890
-2660

query I rowsort
SELECT DISTINCT - 49 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-147
-3136
-3920

query I rowsort
SELECT - col0 * col0 - col1 FROM tab0 AS cor0
----
-1322
-662
-8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-6098
SELECT - tab2.col1 DIV - 85 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-6098
SELECT - tab2.col1 / - 85 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT + col1 * - col2 - - 45 * - 1 FROM tab1 cor0
----
-1293
-1449
-615

query I rowsort
SELECT 35 * 97 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to f92bd517cf3f633e1e791247a9e79ada

onlyif mysql # use DIV operator for integer division
query I rowsort label-6101
SELECT ALL - col0 + tab2.col2 DIV col0 FROM tab2
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL - col0 + tab2.col2 / col0 FROM tab2
----
-4
-78
-79

query I rowsort
SELECT + + ( ( + cor0.col2 ) ) + 76 AS col2 FROM tab1 cor0
----
130
133
172

query I rowsort
SELECT - col1 + col1 * - col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT - 87 * + col2 AS col0 FROM tab2 AS cor0
----
-2262
-2349
-3306

query I rowsort
SELECT 85 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT DISTINCT - - col2 + + 61 * col0 AS col1 FROM tab0 AS cor0
----
1497
2136
5511

query I rowsort
SELECT ALL 83 * col1 AS col0 FROM tab1 AS cor0
----
1079
2158
830

query I rowsort
SELECT - col2 + col0 * - col0 * + col1 FROM tab1
----
-288
-41017
-83296

query I rowsort
SELECT col0 * 44 AS col1 FROM tab0 AS cor0
----
1056
1540
3916

onlyif mysql # use DIV operator for integer division
query I rowsort label-6110
SELECT ALL col2 * - tab0.col0 DIV col0 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL col2 * - tab0.col0 / col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT 60 * - 23 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c6759ef40c7eb8bf4ce3b1a59e515a8

query I rowsort
SELECT - col0 + col0 * 98 AS col1 FROM tab2 AS cor0
----
679
7566
7663

query I rowsort
SELECT ALL - col2 + + col2 * 61 AS col0 FROM tab0
----
1980
4920
60

query I rowsort
SELECT ALL - 72 * - col1 + + 64 FROM tab0
----
6256
6616
7048

query I rowsort
SELECT - - cor0.col0 * col0 + col2 * col0 AS col1 FROM tab1 cor0
----
14080
171
7744

query I rowsort
SELECT ALL col2 * + 77 AS col1 FROM tab0
----
2541
6314
77

query I rowsort
SELECT DISTINCT col1 * ( + col0 ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + col2 + 32 + 89 AS col1 FROM tab2 AS cor0
----
147
148
159

query I rowsort
SELECT - cor0.col1 + + ( - 29 + col0 ) AS col0 FROM tab0 AS cor0
----
-31
-91
-91

query I rowsort
SELECT - - 42 * col2 FROM tab1 AS cor0
----
2268
2394
4032

query I rowsort
SELECT ( col0 ) * col2 - 14 FROM tab0
----
21
7284
778

query I rowsort
SELECT - ( col1 ) * + col2 * - 91 + 52 FROM tab2
----
139646
58838
76219

query I rowsort
SELECT DISTINCT 58 + col1 FROM tab1
----
68
71
84

query I rowsort
SELECT - 40 + ( + col2 ) * col2 FROM tab0 AS cor0
----
-39
1049
6684

query I rowsort
SELECT - 17 FROM tab0 cor0
----
-17
-17
-17

query I rowsort
SELECT DISTINCT - col0 * + col0 * + col0 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT + - col0 + cor0.col0 * 56 AS col2 FROM tab1 AS cor0
----
165
3520
4400

query I rowsort
SELECT - col2 - 57 AS col0 FROM tab1 AS cor0
----
-111
-114
-153

query I rowsort
SELECT + col2 + + cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-6130
SELECT col1 + + 42 DIV col1 FROM tab1 AS cor0
----
14
16
27

skipif mysql # not compatible
query I rowsort label-6130
SELECT col1 + + 42 / col1 FROM tab1 AS cor0
----
14
16
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-6131
SELECT + tab1.col1 DIV - col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6131
SELECT + tab1.col1 / - col2 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT + + col2 - + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col1 - + ( + col2 + + col1 ) AS col2 FROM tab2 cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col1 FROM tab2, tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6136
SELECT DISTINCT - - ( + col0 ) + 86 DIV col1 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT - - ( + col0 ) + 86 / col1 FROM tab0 AS cor0
----
25
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6137
SELECT - - ( col0 ) + - 60 DIV + col2 + col2 AS col0 FROM tab0 AS cor0
----
-24
171
56

skipif mysql # not compatible
query I rowsort label-6137
SELECT - - ( col0 ) + - 60 / + col2 + col2 AS col0 FROM tab0 AS cor0
----
-24
171
56

query I rowsort
SELECT DISTINCT col1 + - col1 * col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + - 75 + + col1 * cor0.col0 * + col0 FROM tab1 AS cor0
----
159
40885
83125

query I rowsort
SELECT ALL - col0 * cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT - col2 + - col2 * ( - 59 ) FROM tab0
----
1914
4756
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + tab1.col0 * col1 col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT cor0.col2 + - tab2.col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 5ba9183f97d06cb5c1340d457f55f1e3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6144
SELECT DISTINCT + - col1 + - cor0.col0 + + 19 DIV col1 FROM tab1 cor0
----
-29
-73
-92

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT + - col1 + - cor0.col0 + + 19 / col1 FROM tab1 cor0
----
-29
-73
-92

query I rowsort
SELECT DISTINCT col1 - 28 FROM tab1 AS cor0
----
-15
-18
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * + col2 col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - 93 + col2 * col1 + tab0.col2 AS col0 FROM tab0
----
2778
5
7451

query I rowsort
SELECT - ( col2 ) * - tab0.col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT - cor0.col1 * + cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 86c8e75d83d283b29460c020ab5988af

query I rowsort
SELECT DISTINCT ( tab2.col1 ) + 2 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
19
33
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6152
SELECT + CAST( NULL AS SIGNED ) + 14 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6152
SELECT + CAST ( NULL AS INTEGER ) + 14 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 94 * + col1 AS col1 FROM tab0 AS cor0
----
8084
8554
9118

onlyif mysql # use DIV operator for integer division
query I rowsort label-6154
SELECT ( col2 ) DIV col1 + col1 + + 81 col0 FROM tab0 cor0
----
167
172
178

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6154
SELECT ( col2 ) / col1 + col1 + + 81 col0 FROM tab0 cor0
----
167
172
178

query I rowsort
SELECT - ( - col2 ) + + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - col1 - - col1 * + 24 FROM tab1
----
230
299
598

query I rowsort
SELECT + col1 * 16 - + 80 FROM tab2
----
192
416
864

query I rowsort
SELECT col0 * - 19 - - 21 FROM tab0
----
-1670
-435
-644

query I rowsort
SELECT DISTINCT 44 + - col0 AS col2 FROM tab0
----
-45
20
9

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 - 65 - col2 col2 FROM tab1
----
-119
-122
-161

onlyif mysql # use DIV operator for integer division
query I rowsort label-6162
SELECT ALL + col0 DIV - col0 - col0 DIV col1 AS col2 FROM tab1 AS cor0
----
-1
-7
-7

skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL + col0 / - col0 - col0 / col1 AS col2 FROM tab1 AS cor0
----
-1
-7
-7

query I rowsort
SELECT + - 71 * col0 + col1 AS col0 FROM tab0 AS cor0
----
-1618
-2388
-6228

query I rowsort
SELECT + 37 + - 97 AS col0 FROM tab0 AS cor0
----
-60
-60
-60

query I rowsort
SELECT ALL - 28 + - col0 AS col1 FROM tab2
----
-106
-107
-35

query I rowsort
SELECT + 33 + col1 - + col2 * + col2 FROM tab0
----
-6600
-970
129

query I rowsort
SELECT col2 + + ( col1 ) + 19 FROM tab2
----
104
74
77

query I rowsort
SELECT - - 31 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT DISTINCT col2 * + 82 * + col1 AS col0 FROM tab2 AS cor0
----
125788
52972
68634

query I rowsort
SELECT - - ( - 78 ) FROM tab2 AS cor0
----
-78
-78
-78

query I rowsort
SELECT col1 + - 97 * + col2 AS col0 FROM tab2
----
-2463
-2588
-3669

query I rowsort
SELECT ALL - col1 * col1 + - col2 AS col2 FROM tab0
----
-7429
-8363
-9410

query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 * cor0.col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT ALL - 6 + - col1 * + col1 FROM tab0 AS cor0
----
-7402
-8287
-9415

query I rowsort
SELECT ALL + col1 * + cor0.col1 + - 42 FROM tab0 cor0
----
7354
8239
9367

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 + - col2 * + col0 + - 32 FROM tab2 AS cor0
----
-2060
-221
-3034

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6178
SELECT ALL + ( col1 ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL + ( col1 ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6179
SELECT cor0.col2 DIV - cor0.col2 AS col0 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6179
SELECT cor0.col2 / - cor0.col2 AS col0 FROM tab0 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 - + col2 * + col1 col0 FROM tab2
----
-1629
-741
-932

onlyif mysql # use DIV operator for integer division
query I rowsort label-6181
SELECT DISTINCT + col1 DIV + col2 + + 77 FROM tab0 cor0
----
174
78
79

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT + col1 / + col2 + + 77 FROM tab0 cor0
----
174
78
79

query I rowsort
SELECT + ( cor0.col2 ) + 19 FROM tab0 AS cor0
----
101
20
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6183
SELECT ALL + col2 * col0 * CAST( col2 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
114155
5110
52806

skipif mysql # not compatible
query I rowsort label-6183
SELECT ALL + col2 * col0 * CAST ( col2 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
114155
5110
52806

onlyif mysql # use DIV operator for integer division
query I rowsort label-6184
SELECT DISTINCT + col1 * - col1 - col1 DIV - 39 AS col1 FROM tab2 AS cor0
----
-289
-3480
-961

skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT + col1 * - col1 - col1 / - 39 AS col1 FROM tab2 AS cor0
----
-289
-3480
-961

query I rowsort
SELECT - cor0.col1 + + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - cor0.col2 * - col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6187
SELECT ALL - + col1 + - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL - + col1 + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6188
SELECT DISTINCT - - col1 DIV + col0 - + ( - col1 ) FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT - - col1 / + col0 - + ( - col1 ) FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT + + cor0.col1 * 41 AS col1 FROM tab1 AS cor0
----
1066
410
533

query I rowsort
SELECT ALL - col2 * col0 * + col0 AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT ALL - col1 * - col0 + + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - col1 * - 65 FROM tab0 cor0
----
5590
5915
6305

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * ( - col2 ) col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT cor0.col1 + - col1 * + col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL - + col0 * col0 + + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6196
SELECT ALL + + CAST( + 67 AS SIGNED ) * col0 + 68 FROM tab0 AS cor0
----
1676
2413
6031

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL + + CAST ( + 67 AS INTEGER ) * col0 + 68 FROM tab0 AS cor0
----
1676
2413
6031

query I rowsort
SELECT DISTINCT - 0 * - col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - cor1.col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col2 + - col2 col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + ( 60 ) AS col0 FROM tab0 cor0
----
60
60
60

query I rowsort
SELECT ALL - tab1.col0 * - col0 * col2 AS col1 FROM tab1
----
233472
486
614400

query I rowsort
SELECT ALL ( tab0.col1 ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT col0 * ( + col0 * - tab1.col0 ) AS col0 FROM tab1
----
-262144
-27
-512000

skipif mysql # not compatible
query I rowsort
SELECT + col0 + + CAST ( + col2 AS REAL ) * col1 * + ( - col1 ) FROM tab0 AS cor0
----
-244044
-678953
-9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6205
SELECT col0 * 34 + col2 * + col0 + CAST( col2 AS SIGNED ) * col2 FROM tab1 AS cor0
----
19616
3180
9073

skipif mysql # not compatible
query I rowsort label-6205
SELECT col0 * 34 + col2 * + col0 + CAST ( col2 AS INTEGER ) * col2 FROM tab1 AS cor0
----
19616
3180
9073

query I rowsort
SELECT ALL - col1 + ( col0 ) AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL col2 - ( - col0 ) * - col0 FROM tab2 AS cor0
----
-22
-6058
-6203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6208
SELECT - + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6208
SELECT - + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6209
SELECT - 54 DIV 92 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6209
SELECT - 54 / 92 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ( + 89 ) * col2 AS col0 FROM tab2 cor0
----
2314
2403
3382

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( 63 + col0 ) * - col2 col0 FROM tab1
----
-178464
-72390
-92664

query I rowsort
SELECT - - 44 * + col2 AS col2 FROM tab0 AS cor0
----
1452
3608
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + cor0.col1 col0 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6214
SELECT - + cor0.col0 + - col0 DIV CAST( col1 * col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6214
SELECT - + cor0.col0 + - col0 / CAST ( col1 * col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 * + col0 + 57 col0 FROM tab2 AS cor0
----
-132
-1971
-2945

query I rowsort
SELECT DISTINCT - col0 * - col0 - cor0.col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT 3 * + col0 - - 83 FROM tab0 AS cor0
----
155
188
350

query I rowsort
SELECT + ( + col2 ) - col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - col2 * col1 - + col1 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6220
SELECT - - col2 * + col2 + CAST( - 44 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2872
3205
9172

skipif mysql # not compatible
query I rowsort label-6220
SELECT - - col2 * + col2 + CAST ( - 44 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2872
3205
9172

onlyif mysql # use DIV operator for integer division
query I rowsort label-6221
SELECT + col2 - - col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6221
SELECT + col2 - - col2 / - col1 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - - col1 + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT - ( cor1.col1 ) AS col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
-10
-13
-26

query I rowsort
SELECT col0 * 27 + - col2 + col2 * + col2 * - col0 FROM tab2 AS cor0
----
-111981
-4941
-50648

query I rowsort
SELECT - cor0.col1 + col2 * + col1 * - cor0.col0 + col0 FROM tab1 AS cor0
----
-36426
-4235
-99773

query I rowsort
SELECT - + col1 + 97 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
12
39
42

query I rowsort
SELECT DISTINCT + + col1 * 76 FROM tab1 AS cor0
----
1976
760
988

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-6229
SELECT + cor0.col0 + + col0 DIV 24 FROM tab0 AS cor0
----
25
36
92

skipif mysql # not compatible
query I rowsort label-6229
SELECT + cor0.col0 + + col0 / 24 FROM tab0 AS cor0
----
25
36
92

query I rowsort
SELECT col2 * col0 + col0 + col2 * col2 FROM tab1 AS cor0
----
16976
3081
6961

query I rowsort
SELECT DISTINCT + col0 * ( col1 ) + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - ( - 86 ) FROM tab0, tab2 cor0
----
86

query I rowsort
SELECT - col0 + ( - tab2.col0 ) FROM tab2
----
-14
-156
-158

query I rowsort
SELECT DISTINCT 55 * 78 AS col1 FROM tab0, tab0 AS cor0
----
4290

query I rowsort
SELECT col2 + col2 + col1 * - col0 AS col1 FROM tab1 cor0
----
-526
-848
30

query I rowsort
SELECT ALL 46 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT ALL 97 + tab1.col0 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 02d2892b361fc3d06d5db36957de1116

query I rowsort
SELECT 68 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT ALL + col0 * col2 - col0 * - 88 AS col0 FROM tab0
----
15130
2904
3115

query I rowsort
SELECT col2 * col0 * - col1 - 11 * - col0 * col2 FROM tab0
----
-3010
-583840
-59400

query I rowsort
SELECT DISTINCT 91 * - col2 AS col2 FROM tab2
----
-2366
-2457
-3458

query I rowsort
SELECT col0 * col2 * - 49 FROM tab0
----
-1715
-357602
-38808

query I rowsort
SELECT - cor0.col0 * col0 * - ( col0 * col0 ) FROM tab1 AS cor0
----
16777216
40960000
81

query I rowsort
SELECT ALL col1 + - col1 + col2 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT - col2 * + col1 * tab1.col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT ALL tab1.col2 * tab1.col1 * col1 AS col1 FROM tab1
----
16224
36504
5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab0 WHERE NULL IN ( + tab0.col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col1 * + col2 col1 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6249
SELECT + col2 + + col2 DIV + tab0.col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-6249
SELECT + col2 + + col2 / + tab0.col2 FROM tab0
----
2
34
83

query I rowsort
SELECT - col2 * + col1 + - tab2.col1 AS col0 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT col1 * col0 + + tab1.col2 * col0 FROM tab1
----
240
4288
8720

query I rowsort
SELECT col2 * col0 + - tab0.col2 AS col0 FROM tab0
----
34
7216
759

query I rowsort
SELECT DISTINCT + + col0 + cor0.col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + - col1 * + col2 - 4 FROM tab0 AS cor0
----
-101
-2842
-7466

query I rowsort
SELECT ALL + - col0 * - col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + col0 + col0 + - col1 AS col2 FROM tab2 AS cor0
----
-17
141
97

query I rowsort
SELECT DISTINCT - 97 * col1 + 7 AS col0 FROM tab0 AS cor0
----
-8335
-8820
-9402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + 92 col0 FROM tab0 AS cor0
----
-700
-7206
57

query I rowsort
SELECT DISTINCT + 66 * cor0.col0 + 74 AS col2 FROM tab0 AS cor0
----
1658
2384
5948

query I rowsort
SELECT ALL - col2 * + cor0.col2 + - 67 * - col0 FROM tab2 AS cor0
----
-260
3849
4550

query I rowsort
SELECT ALL col2 + + col2 - col2 AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT tab0.col2 + tab0.col0 + - col2 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6263
SELECT col1 DIV col1 - + col1 * + tab0.col0 * col1 FROM tab0
----
-177503
-329314
-737008

skipif mysql # not compatible
query I rowsort label-6263
SELECT col1 / col1 - + col1 * + tab0.col0 * col1 FROM tab0
----
-177503
-329314
-737008

query I rowsort
SELECT - col0 * col2 + col0 * col0 - - col2 FROM tab2
----
-113
3277
4082

query I rowsort
SELECT DISTINCT col0 / col0 + cor0.col2 * + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( - col2 * col1 * - col2 + col0 )
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE col2 >= - col1 + - col2 + + col2
----
-1
-33
-82

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL + col2 * + col2 * + col1 FROM tab0
----
611884
93654
97

query I rowsort
SELECT DISTINCT tab0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
24
35
89

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 / + col1 ) = + col1 * - col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT ALL col2 + col1 * col0 FROM tab2
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-6272
SELECT + tab0.col2 DIV tab0.col2 + - col1 + col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6272
SELECT + tab0.col2 / tab0.col2 + - col1 + col1 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT col2 * + col1 + col0 AS col2 FROM tab0 WHERE NOT + col1 >= + col2 * col0
----
2862
7551

query I rowsort
SELECT DISTINCT + col2 * - col2 + col1 * col0 AS col1 FROM tab2
----
-101
-512
3926

query I rowsort
SELECT ALL col2 * col1 + col1 AS col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT col0 - col1 * - col0 * tab2.col2 FROM tab2
----
119730
51113
5866

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > col2 * - col1
----

query I rowsort
SELECT + col0 + col1 - col1 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL - col1 * + col0 + + col2 * + col0 AS col0 FROM tab1
----
3008
6640
84

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT col0 * + col2 * + col0 NOT IN ( - col0 / col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col2 + + col2 col2 FROM tab1
----
108
114
192

query I rowsort
SELECT + col0 * 22 AS col0 FROM tab2 cor0
----
154
1716
1738

query I rowsort
SELECT - - 51 * 94 AS col2 FROM tab2 AS cor0
----
4794
4794
4794

onlyif mysql # use DIV operator for integer division
query I rowsort label-6285
SELECT ALL + col2 * col2 DIV 51 AS col0 FROM tab1
----
180
57
63

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL + col2 * col2 / 51 AS col0 FROM tab1
----
180
57
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-6286
SELECT 41 + 85 DIV col1 AS col0 FROM tab2
----
42
43
46

skipif mysql # not compatible
query I rowsort label-6286
SELECT 41 + 85 / col1 AS col0 FROM tab2
----
42
43
46

query I rowsort
SELECT DISTINCT - col1 + 51 AS col0 FROM tab1
----
25
38
41

query I rowsort
SELECT ALL 86 + tab2.col0 * tab2.col0 AS col0 FROM tab2
----
135
6170
6327

query I rowsort
SELECT ALL - col2 * 89 AS col0 FROM tab1
----
-4806
-5073
-8544

query I rowsort
SELECT ( - 6 ) AS col0 FROM tab2, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to b27ffe5fca3aedb2653abfcf3561c0ae

query I rowsort
SELECT ALL 51 + + col2 * - col2 * col1 FROM tab1 AS cor0
----
-119757
-32439
-75765

query I rowsort
SELECT ALL ( + 58 ) + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2780
-39
-7404

query I rowsort
SELECT ALL + ( col0 ) * col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT + 29 * col1 AS col2 FROM tab1
----
290
377
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-6296
SELECT ALL - col0 * 13 DIV tab0.col2 AS col2 FROM tab0
----
-14
-455
-9

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL - col0 * 13 / tab0.col2 AS col2 FROM tab0
----
-14
-455
-9

query I rowsort
SELECT DISTINCT + tab1.col2 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
54
57
96

query I rowsort
SELECT col0 + - 33 FROM tab0 AS cor0
----
-9
2
56

query I rowsort
SELECT + col2 * + 27 * + 95 + + cor0.col0 + - 58 AS col0 FROM tab1 AS cor0
----
138455
146211
246262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 + 57 * col0 col1 FROM tab0
----
12994
1944
3220

onlyif mysql # use DIV operator for integer division
query I rowsort label-6301
SELECT col2 + - col1 DIV 6 col1 FROM tab1
----
50
56
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6301
SELECT col2 + - col1 / 6 col1 FROM tab1
----
50
56
94

query I rowsort
SELECT + 0 * - col1 FROM tab1
----
0
0
0

query I rowsort
SELECT tab2.col2 + + tab2.col0 AS col0 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6304
SELECT col0 DIV col2 + + col2 FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-6304
SELECT col0 / col2 + + col2 FROM tab1
----
54
58
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6305
SELECT DISTINCT + - col2 * + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT + - col2 * + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 + col2 col0 FROM tab2
----
134
163
65

query I rowsort
SELECT ALL - col1 * + ( 22 ) FROM tab1 AS cor0
----
-220
-286
-572

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6308
SELECT + + col0 * - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-6308
SELECT + + col0 * - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + - col1 * ( - col0 ) + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT DISTINCT - col0 * + 62 AS col2 FROM tab0 cor0
----
-1488
-2170
-5518

query I rowsort
SELECT - cor0.col1 * + col0 + cor0.col0 AS col2 FROM tab1 cor0
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6312
SELECT ALL - - col2 * - CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL - - col2 * - CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( + col2 * - col1 ) col2 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ALL + ( ( - tab0.col1 ) ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6315
SELECT ALL col2 + - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * - ( - ( col0 ) ) + + 58 * col1 FROM tab1 AS cor0
----
-3068
-6926
1346

query I rowsort
SELECT DISTINCT + col2 + col0 * col1 * cor0.col2 AS col0 FROM tab2 cor0
----
119678
51072
5886

query I rowsort
SELECT ALL - - col0 + col1 * 53 + col0 * 38 FROM tab1 AS cor0
----
1495
3026
3809

query I rowsort
SELECT DISTINCT + col0 + - col2 * 65 AS col0 FROM tab1 AS cor0
----
-3507
-3641
-6160

onlyif mysql # use DIV operator for integer division
query I rowsort label-6320
SELECT ALL - 35 DIV 55 + col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL - 35 / 55 + col0 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + 60 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col1 FROM tab0 cor0
----
35
35
35

query I rowsort
SELECT + col0 + + cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT + 6 * + col1 FROM tab2
----
102
186
354

query I rowsort
SELECT + col1 + col1 * + ( col2 + cor0.col0 ) FROM tab0 AS cor0
----
15652
3589
4988

query I rowsort
SELECT + tab0.col2 - + 60 * 8 FROM tab0, tab1 AS cor0
----
9 values hashing to 0cca5a0f116346f167d3c4a5f9662352

query I rowsort
SELECT - ( + col2 ) * + col1 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-6328
SELECT cor0.col1 DIV - col2 + + ( + col2 ) FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6328
SELECT cor0.col1 / - col2 + + ( + col2 ) FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - + col0 * col0 + col1 * 3 AS col0 FROM tab1 AS cor0
----
-4066
-6361
69

query I rowsort
SELECT - + col0 * + col1 + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + cor0.col0 ) * + cor0.col1 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

query I rowsort
SELECT DISTINCT - + col0 + + 65 * - 41 + col2 AS col0 FROM tab0 AS cor0
----
-2656
-2672
-2699

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - 30 col2 FROM tab0 AS cor0
----
-56
-61
-67

query I rowsort
SELECT + col1 * + ( 85 + - col2 ) FROM tab1 AS cor0
----
-143
280
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-6335
SELECT ALL + cor0.col0 DIV cor0.col1 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2ee98119c78288c6cb10711ce24bf26c

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL + cor0.col0 / cor0.col1 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2ee98119c78288c6cb10711ce24bf26c

query I rowsort
SELECT + ( col2 ) + + col0 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

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 44 + ( - col1 ) FROM tab0 AS cor0
----
-42
-47
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-6340
SELECT - cor0.col0 * - col1 * + col2 + + ( 81 ) DIV col1 FROM tab2 AS cor0
----
119653
51038
5861

skipif mysql # not compatible
query I rowsort label-6340
SELECT - cor0.col0 * - col1 * + col2 + + ( 81 ) / col1 FROM tab2 AS cor0
----
119653
51038
5861

query I rowsort
SELECT DISTINCT - 70 * - 92 AS col0 FROM tab0 AS cor0
----
6440

query I rowsort
SELECT - col2 * col1 - col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 44 col1 FROM tab2 cor0
----
-13
-27
15

query I rowsort
SELECT ( + col2 ) + col0 * - 52 FROM tab1
----
-102
-3271
-4064

query I rowsort
SELECT ALL + + col1 * - 85 * - cor0.col0 FROM tab2 AS cor0
----
114155
18445
391170

query I rowsort
SELECT ALL - - cor0.col1 * - col2 + + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - col1 + - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-6348
SELECT DISTINCT - col2 DIV - col2 + 11 col0 FROM tab1 cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT - col2 / - col2 + 11 col0 FROM tab1 cor0
----
12

query I rowsort
SELECT ALL - 75 * col2 + col2 FROM tab2 AS cor0
----
-1924
-1998
-2812

query I rowsort
SELECT + cor0.col1 * col0 + 74 AS col2 FROM tab2 AS cor0
----
1417
291
4676

query I rowsort
SELECT DISTINCT - col1 * col1 + col1 AS col2 FROM tab1 cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT + 82 * col2 + - ( - cor0.col0 ) * col2 FROM tab2 AS cor0
----
2403
4160
6118

query I rowsort
SELECT DISTINCT 25 * col0 + + 44 * 99 AS col2 FROM tab2 AS cor0
----
4531
6306
6331

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - cor0.col1 col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT ALL 8 * - col1 - col2 AS col2 FROM tab0 AS cor0
----
-721
-777
-810

query I rowsort
SELECT - 51 + col0 AS col0 FROM tab2 cor0
----
-44
27
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-6357
SELECT tab1.col2 * col1 DIV + col1 AS col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6357
SELECT tab1.col2 * col1 / + col1 AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT - tab0.col0 AS col2 FROM tab0, tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + 78 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 col2 FROM tab2, tab1 AS cor0
----
93

query I rowsort
SELECT cor0.col0 * ( cor0.col1 ) * + col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + col0 + ( col1 ) * col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT 51 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
51

query I rowsort
SELECT - col0 * - 58 FROM tab1 AS cor0
----
174
3712
4640

query I rowsort
SELECT ALL - 28 FROM tab2, tab0 cor0, tab0 cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

query I rowsort
SELECT - 53 + 69 AS col1 FROM tab2, tab0, tab2 cor0, tab1
----
81 values hashing to 9ffb4aaf972de606a4957894645b6216

query I rowsort
SELECT DISTINCT + 85 FROM tab2, tab0 AS cor0
----
85

query I rowsort
SELECT DISTINCT - ( + 50 ) AS col2 FROM tab2, tab1 cor0
----
-50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6369
SELECT - col1 - CAST( NULL AS SIGNED ) / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6369
SELECT - col1 - CAST ( NULL AS INTEGER ) / + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6370
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - - col0 * - col0 + - col1 * col0 FROM tab2 AS cor0
----
-10686
-266
-7584

query I rowsort
SELECT ALL - 70 * col1 + col1 * + col2 AS col2 FROM tab1 AS cor0
----
-130
-416
338

query I rowsort
SELECT DISTINCT - + cor0.col1 + + 86 + 64 AS col0 FROM tab0 cor0
----
53
59
64

query I rowsort
SELECT - - col1 + col2 * - ( + col2 ) FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT col1 * + 75 + 90 + - tab1.col0 * col1 FROM tab1
----
1962
200
25

query I rowsort
SELECT - col2 * + 55 FROM tab0 AS cor0
----
-1815
-4510
-55

query I rowsort
SELECT DISTINCT tab2.col0 + ( col1 ) * col2 + col2 AS col0 FROM tab2
----
1638
763
871

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6378
SELECT ALL - col0 * CAST( col2 AS SIGNED ) + col2 * + 9 * - col0 + + col0 * col0 * ( col0 ) FROM tab1 AS cor0
----
-1593
225664
435200

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL - col0 * CAST ( col2 AS INTEGER ) + col2 * + 9 * - col0 + + col0 * col0 * ( col0 ) FROM tab1 AS cor0
----
-1593
225664
435200

query I rowsort
SELECT ALL + - col0 * + col1 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + + col0 - - 81 AS col1 FROM tab2 AS cor0
----
159
160
88

query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * + cor0.col2 * - col1 FROM tab1 AS cor0
----
-36423
-4158
-99744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6382
SELECT + col1 * + CAST( + 83 AS SIGNED ) + col2 FROM tab2 AS cor0
----
1449
2600
4923

skipif mysql # not compatible
query I rowsort label-6382
SELECT + col1 * + CAST ( + 83 AS INTEGER ) + col2 FROM tab2 AS cor0
----
1449
2600
4923

query I rowsort
SELECT - - ( - 99 ) AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 761f5f1a166a00db99360141565a85da

query I rowsort
SELECT + col1 * col1 + - col0 * + 30 AS col2 FROM tab0
----
5611
6676
8359

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6385
SELECT col1 + + ( - col1 ) * CAST( cor0.col2 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-6385
SELECT col1 + + ( - col1 ) * CAST ( cor0.col2 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + 96 + cor0.col1 * col1 - - col0 AS col2 FROM tab0 AS cor0
----
7516
8466
9540

onlyif mysql # use DIV operator for integer division
query I rowsort label-6387
SELECT ALL - col0 DIV + ( - col2 + + 85 ) AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL - col0 / + ( - col2 + + 85 ) AS col2 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL - 64 * + col1 AS col2 FROM tab1 AS cor0
----
-1664
-640
-832

query I rowsort
SELECT DISTINCT + + 34 * - col0 + 88 * cor0.col2 * + col0 FROM tab0 cor0
----
1890
639198
68880

query I rowsort
SELECT DISTINCT + + cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6391
SELECT ALL + 55 + - col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
-42
53
54

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL + 55 + - col1 / + col2 AS col1 FROM tab0 AS cor0
----
-42
53
54

query I rowsort
SELECT DISTINCT col0 * col0 * + 6 FROM tab0 AS cor0
----
3456
47526
7350

onlyif mysql # use DIV operator for integer division
query I rowsort label-6393
SELECT DISTINCT - 59 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-3

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT - 59 / col1 AS col2 FROM tab2 AS cor0
----
-1
-3

query I rowsort
SELECT ALL - 59 + cor0.col2 FROM tab1 AS cor0
----
-2
-5
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 12 + col0 col0 FROM tab1 cor0
----
15
76
92

query I rowsort
SELECT ALL - ( - col2 ) + col2 AS col2 FROM tab2
----
52
54
76

query I rowsort
SELECT ALL - - 55 - col2 FROM tab2 AS cor0
----
17
28
29

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) + + 7 * + col1 FROM tab0 AS cor0
----
548
578
644

query I rowsort
SELECT - 40 + cor0.col1 FROM tab2 cor0
----
-23
-9
19

query I rowsort
SELECT DISTINCT 25 * col1 AS col2 FROM tab2 AS cor0
----
1475
425
775

onlyif mysql # use DIV operator for integer division
query I rowsort label-6401
SELECT - cor0.col1 + cor0.col2 * col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
102
40
946

skipif mysql # not compatible
query I rowsort label-6401
SELECT - cor0.col1 + cor0.col2 * col2 / + col0 AS col1 FROM tab1 AS cor0
----
102
40
946

query I rowsort
SELECT ALL - ( cor0.col2 ) * + col0 * col2 + cor0.col2 FROM tab2 AS cor0
----
-114038
-5076
-52702

query I rowsort
SELECT ALL - 31 - col0 FROM tab1 AS cor0
----
-111
-34
-95

query I rowsort
SELECT ALL + - cor0.col0 * col2 - + ( - 39 ) AS col1 FROM tab2 AS cor0
----
-150
-1989
-2963

query I rowsort
SELECT ( - cor0.col2 ) * col1 + cor0.col1 * + col1 AS col0 FROM tab2 cor0
----
-357
124
1947

query I rowsort
SELECT 37 * col0 + + ( - col1 ) AS col2 FROM tab2
----
228
2827
2906

onlyif mysql # use DIV operator for integer division
query I rowsort label-6407
SELECT - cor1.col0 DIV 32 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 24950544d5039d1d5a57fa31a4f89f27

skipif mysql # not compatible
query I rowsort label-6407
SELECT - cor1.col0 / 32 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 24950544d5039d1d5a57fa31a4f89f27

onlyif mysql # use DIV operator for integer division
query I rowsort label-6408
SELECT ALL - col1 DIV - col1 col1 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL - col1 / - col1 col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL ( - 22 ) FROM tab1 AS cor0
----
-22
-22
-22

query I rowsort
SELECT + ( - col1 ) + col2 - col1 AS col1 FROM tab1 AS cor0
----
2
37
70

query I rowsort
SELECT 89 * col2 + - col1 + + col2 * + col1 AS col2 FROM tab2 AS cor0
----
3209
3789
4011

query I rowsort
SELECT + - ( + col0 ) + + cor0.col1 * 32 AS col1 FROM tab1 AS cor0
----
256
336
829

query I rowsort
SELECT ALL + - ( - col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - + 99 * col2 + col0 FROM tab1 AS cor0
----
-5343
-5579
-9424

query I rowsort
SELECT ALL - col1 + - 15 AS col0 FROM tab0 AS cor0
----
-101
-106
-112

query I rowsort
SELECT DISTINCT - + 61 FROM tab2 AS cor0
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * - col1 + - col1 col0 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT ALL col0 + + 52 AS col2 FROM tab2
----
130
131
59

query I rowsort
SELECT ALL - cor0.col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * - CAST ( + ( col2 ) * col0 AS REAL ) - col2 * + col0 FROM tab0
----
-1260
-19800
-656820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) col1 FROM tab0 cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6422
SELECT CAST( NULL AS DECIMAL ) + 84 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6422
SELECT CAST ( NULL AS REAL ) + 84 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6423
SELECT DISTINCT + col1 + - col2 DIV col1 AS col2 FROM tab2 cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT + col1 + - col2 / col1 AS col2 FROM tab2 cor0
----
15
31
59

query I rowsort
SELECT ALL - 33 * - 7 * col1 + col2 + col0 AS col0 FROM tab2 AS cor0
----
13733
4044
7195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 89 ) + + cor0.col2 * - 97 col2 FROM tab2 AS cor0
----
-2611
-2708
-3775

query I rowsort
SELECT ALL - 2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT ALL - - col2 * 94 * + col0 AS col0 FROM tab0 AS cor0
----
3290
686012
74448

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6428
SELECT + col0 * CAST( + 94 AS SIGNED ) AS col2 FROM tab0 cor0
----
2256
3290
8366

skipif mysql # not compatible
query I rowsort label-6428
SELECT + col0 * CAST ( + 94 AS INTEGER ) AS col2 FROM tab0 cor0
----
2256
3290
8366

onlyif mysql # use DIV operator for integer division
query I rowsort label-6429
SELECT col0 DIV + 75 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6429
SELECT col0 / + 75 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT - + 16 + + 20 * col2 AS col0 FROM tab2 AS cor0
----
504
524
744

query I rowsort
SELECT + 32 * col2 + - col0 AS col0 FROM tab1 cor0
----
1725
1760
2992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 59 col0 FROM tab2
----
413
4602
4661

query I rowsort
SELECT - col0 * - ( - 46 ) FROM tab2
----
-322
-3588
-3634

query I rowsort
SELECT 10 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to bf75e71325a06683558cf93fd725ad16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * ( + 87 ) * col2 col0 FROM tab2 AS cor0
----
133432
56164
72792

query I rowsort
SELECT 26 * - col0 * - col2 FROM tab2
----
4914
52728
78052

query I rowsort
SELECT + ( 46 * - col0 ) AS col0 FROM tab2
----
-322
-3588
-3634

query I rowsort
SELECT DISTINCT - col2 * tab0.col1 * + col1 FROM tab0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6439
SELECT - 40 DIV + col1 FROM tab1 AS cor0
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-6439
SELECT - 40 / + col1 FROM tab1 AS cor0
----
-1
-3
-4

query I rowsort
SELECT DISTINCT 44 * col0 FROM tab0
----
1056
1540
3916

onlyif mysql # use DIV operator for integer division
query I rowsort label-6441
SELECT ALL tab1.col1 DIV - col0 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL tab1.col1 / - col0 FROM tab1
----
-8
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6442
SELECT ALL - + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL - + col0 / col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 29 AS col2 FROM tab1
----
29
29
29

query I rowsort
SELECT - 34 - - col1 * - 37 AS col2 FROM tab1
----
-404
-515
-996

query I rowsort
SELECT + - 40 + col1 FROM tab1 AS cor0
----
-14
-27
-30

query I rowsort
SELECT + col2 * ( + cor0.col1 ) FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6447
SELECT + col1 + + CAST( - 21 AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0
----
-487
-536
-781

skipif mysql # not compatible
query I rowsort label-6447
SELECT + col1 + + CAST ( - 21 AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0
----
-487
-536
-781

query I rowsort
SELECT col2 - 1 AS col0 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( 41 AS REAL ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-6450
SELECT DISTINCT + col1 DIV 45 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT + col1 / 45 AS col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT - - col1 * 9 AS col0 FROM tab2 AS cor0
----
153
279
531

query I rowsort
SELECT DISTINCT + col2 + + 61 FROM tab0 AS cor0
----
143
62
94

query I rowsort
SELECT ALL cor0.col0 * ( 70 ) + col1 AS col0 FROM tab1 AS cor0
----
236
4490
5613

query I rowsort
SELECT ALL - col0 * 76 AS col0 FROM tab2 AS cor0
----
-532
-5928
-6004

query I rowsort
SELECT + col0 + ( + 88 ) FROM tab1 AS cor0
----
152
168
91

query I rowsort
SELECT ALL col2 + 18 * col1 * col1 FROM tab2 cor0
----
17325
5240
62684

query I rowsort
SELECT - col1 + - 83 FROM tab2 AS cor0
----
-100
-114
-142

query I rowsort
SELECT ALL + cor0.col1 + 48 FROM tab1 AS cor0
----
58
61
74

query I rowsort
SELECT col1 * + col2 + col0 * + col2 AS col2 FROM tab1
----
1566
4218
8928

query I rowsort
SELECT - col2 + cor0.col0 * col0 * - col1 FROM tab0 AS cor0
----
-118826
-49569
-720893

query I rowsort
SELECT ALL - 64 + + col2 AS col2 FROM tab0 AS cor0
----
-31
-63
18

query I rowsort
SELECT + 54 * - col1 FROM tab0 AS cor0
----
-4644
-4914
-5238

query I rowsort
SELECT + ( - col0 ) - - col1 * ( + col1 ) * cor0.col0 FROM tab0 AS cor0
----
177480
329280
736920

query I rowsort
SELECT DISTINCT - + 70 + col1 + 99 * col0 FROM tab1 AS cor0
----
253
6276
7863

query I rowsort
SELECT - - ( + col1 ) * ( + cor0.col1 ) + col1 + 73 FROM tab0 AS cor0
----
7555
8445
9579

query I rowsort
SELECT + 87 * col1 + col1 + + col2 FROM tab1 cor0
----
1240
2342
937

query I rowsort
SELECT DISTINCT - - 47 + col1 FROM tab1 AS cor0
----
57
60
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 14 + + col1 * - ( - col1 ) col2 FROM tab2 AS cor0
----
275
3467
947

query I rowsort
SELECT DISTINCT + 17 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
17

query I rowsort
SELECT DISTINCT - ( - col2 ) + + col1 AS col0 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6471
SELECT ALL + ( - col2 ) DIV col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL + ( - col2 ) / col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT ( cor0.col0 ) * - col1 + + col0 * col2 FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT ALL - 37 * col0 FROM tab2 cor0
----
-259
-2886
-2923

query I rowsort
SELECT - col1 * + 94 AS col1 FROM tab0 AS cor0
----
-8084
-8554
-9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * 98 * col1 col2 FROM tab0 AS cor0
----
-278124
-731276
-9506

query I rowsort
SELECT ALL + + col1 - + cor0.col0 AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + + col2 * - 9 FROM tab2 cor0
----
-234
-243
-342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 * col1 + - col0 + 77 col1 FROM tab0 AS cor0
----
3437
664106
68165

query I rowsort
SELECT ALL col1 + - 78 FROM tab0
----
13
19
8

query I rowsort
SELECT ALL col2 * - ( + ( - tab0.col0 ) * ( col2 ) ) + - col0 FROM tab0
----
0
26112
598347

query I rowsort
SELECT ALL col1 + + 79 + 25 FROM tab1
----
114
117
130

query I rowsort
SELECT ALL + tab2.col1 * 68 + col2 FROM tab2
----
1194
2135
4038

query I rowsort
SELECT DISTINCT + col1 * + ( - col0 ) + + col0 + + col2 FROM tab0
----
-2007
-3359
-7928

query I rowsort
SELECT - ( col1 ) * col1 + + col1 FROM tab2 AS cor0
----
-272
-3422
-930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6485
SELECT ALL ( - 36 ) * + col1 * CAST( 20 AS SIGNED ) col2 FROM tab0
----
-61920
-65520
-69840

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL ( - 36 ) * + col1 * CAST ( 20 AS INTEGER ) col2 FROM tab0
----
-61920
-65520
-69840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6486
SELECT CAST( NULL AS SIGNED ) * - col0 + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT CAST ( NULL AS INTEGER ) * - col0 + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6487
SELECT ALL col2 * - cor0.col1 DIV - col1 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL col2 * - cor0.col1 / - col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT - ( 83 ) * - col2 AS col0 FROM tab0 AS cor0
----
2739
6806
83

query I rowsort
SELECT DISTINCT + - col0 * col0 * col0 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT DISTINCT + + 62 + col1 FROM tab0 AS cor0
----
148
153
159

query I rowsort
SELECT col2 * - 84 AS col1 FROM tab2 AS cor0
----
-2184
-2268
-3192

query I rowsort
SELECT ALL + 35 + - col2 FROM tab0 AS cor0
----
-47
2
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col0 col2 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT ALL - ( 73 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT + 12 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT - 46 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-46

query I rowsort
SELECT col1 + 22 FROM tab1 cor0
----
32
35
48

query I rowsort
SELECT col0 * - 25 FROM tab0
----
-2225
-600
-875

query I rowsort
SELECT tab1.col0 * ( + col2 ) + col0 AS col2 FROM tab1
----
165
3712
7760

query I rowsort
SELECT DISTINCT tab0.col1 * 58 FROM tab0
----
4988
5278
5626

query I rowsort
SELECT DISTINCT - col1 * - 30 AS col1 FROM tab0
----
2580
2730
2910

onlyif mysql # use DIV operator for integer division
query I rowsort label-6502
SELECT ALL - col1 * + col2 + + col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-1534
-644
-837

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL - col1 * + col2 + + col2 / col1 AS col1 FROM tab2 AS cor0
----
-1534
-644
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6503
SELECT ALL col1 + - CAST( + 14 AS SIGNED ) FROM tab0 AS cor0
----
72
77
83

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL col1 + - CAST ( + 14 AS INTEGER ) FROM tab0 AS cor0
----
72
77
83

query I rowsort
SELECT ALL - col1 * col2 + ( + col2 ) FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT col0 * col0 + - col0 * - col2 AS col0 FROM tab2 AS cor0
----
238
8112
9243

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6506
SELECT col1 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6506
SELECT col1 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 32 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 52 ) col0 FROM tab0, tab1 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT DISTINCT cor0.col1 + + ( col1 ) * col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ALL + col2 + 66 * 98 AS col2 FROM tab1
----
6522
6525
6564

query I rowsort
SELECT - 27 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # use DIV operator for integer division
query I rowsort label-6512
SELECT + col2 * + col1 - - col1 DIV col1 AS col1 FROM tab2 AS cor0
----
1535
647
838

skipif mysql # not compatible
query I rowsort label-6512
SELECT + col2 * + col1 - - col1 / col1 AS col1 FROM tab2 AS cor0
----
1535
647
838

query I rowsort
SELECT DISTINCT - col0 + + 93 * cor0.col1 FROM tab1 AS cor0
----
1129
2415
866

query I rowsort
SELECT DISTINCT + col2 * col2 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6515
SELECT ALL - - col0 - + CAST( - col1 * + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1328
1407
634

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL - - col0 - + CAST ( - col1 * + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-6516
SELECT DISTINCT col0 + ( + col2 ) DIV - cor0.col2 FROM tab1 cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT col0 + ( + col2 ) / - cor0.col2 FROM tab1 cor0
----
2
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6517
SELECT DISTINCT + + col2 + ( col2 ) DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT + + col2 + ( col2 ) / cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 25 * col0 col1 FROM tab2 AS cor0
----
-175
-1950
-1975

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6519
SELECT + CAST( NULL AS SIGNED ) + - cor0.col0 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6519
SELECT + CAST ( NULL AS INTEGER ) + - cor0.col0 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - 73 AS col1 FROM tab2 AS cor0
----
-66
5
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + cor0.col0 col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6522
SELECT DISTINCT - + col0 + cor0.col1 * - col1 DIV + col1 col1 FROM tab1 AS cor0
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6522
SELECT DISTINCT - + col0 + cor0.col1 * - col1 / + col1 col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL - 59 + col0 * col2 + - col0 FROM tab1
----
100
3525
7541

query I rowsort
SELECT DISTINCT + 3 AS col0 FROM tab2
----
3

query I rowsort
SELECT col2 + 37 AS col0 FROM tab1 AS cor0
----
133
91
94

query I rowsort
SELECT - col0 * 38 * - col1 + - col0 FROM tab1 AS cor0
----
24256
2961
39440

query I rowsort
SELECT ALL + col2 * + ( - cor0.col2 ) - col0 * - ( - col2 + col1 ) AS col0 FROM tab2 AS cor0
----
-3103
-701
1898

onlyif mysql # use DIV operator for integer division
query I rowsort label-6529
SELECT + 61 DIV tab2.col1 AS col1 FROM tab2
----
1
1
3

skipif mysql # not compatible
query I rowsort label-6529
SELECT + 61 / tab2.col1 AS col1 FROM tab2
----
1
1
3

query I rowsort
SELECT DISTINCT - 89 + + col2 FROM tab2
----
-51
-62
-63

query I rowsort
SELECT + ( - ( + col1 ) ) * + tab0.col2 - col1 AS col0 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT 2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT ( - 40 ) * col2 * - col2 FROM tab0 AS cor0
----
268960
40
43560

query I rowsort
SELECT DISTINCT col1 + cor0.col2 + + col1 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT DISTINCT col2 * 84 FROM tab1
----
4536
4788
8064

query I rowsort
SELECT ALL + ( + col1 + + col2 ) AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL ( - tab0.col1 + - tab0.col0 ) * col2 FROM tab0
----
-132
-14760
-3630

query I rowsort
SELECT + col0 * col1 + - 84 FROM tab0 AS cor0
----
1980
3311
8015

query I rowsort
SELECT + col1 * 66 + - cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
-322
1317
3218

query I rowsort
SELECT ALL + 47 * col1 + ( col2 ) + col1 * + col2 AS col1 FROM tab0
----
11821
4657
6913

query I rowsort
SELECT DISTINCT 59 + - tab0.col2 FROM tab0
----
-23
26
58

query I rowsort
SELECT - - col2 * - col0 + - cor0.col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT - tab0.col1 * - ( col0 ) FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6545
SELECT - cor0.col0 DIV - ( - col0 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6545
SELECT - cor0.col0 / - ( - col0 ) FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6546
SELECT ALL col0 + + CAST( col1 AS SIGNED ) FROM tab2 cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL col0 + + CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 + 23 col0 FROM tab0 AS cor0
----
-2041
-3372
-8076

query I rowsort
SELECT + col1 + + col1 + ( col0 + + col1 ) FROM tab2 AS cor0
----
100
130
255

query I rowsort
SELECT - - col2 + 19 FROM tab2 AS cor0
----
45
46
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6550
SELECT - col0 DIV + col1 col1 FROM tab1 AS cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6550
SELECT - col0 / + col1 col1 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT DISTINCT + col2 * - col2 * - col0 AS col0 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-6552
SELECT DISTINCT - - col1 DIV cor0.col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT - - col1 / cor0.col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL - + cor0.col1 * + col0 * col2 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - col2 * + cor0.col1 + - col0 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-6555
SELECT DISTINCT - cor0.col2 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT - cor0.col2 / cor0.col2 AS col0 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 * col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col2 * - col2 * col1 AS col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL tab0.col0 + + col0 * - col1 AS col2 FROM tab0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-6559
SELECT - col2 * col2 DIV + cor0.col1 FROM tab2 AS cor0
----
-11
-23
-84

skipif mysql # not compatible
query I rowsort label-6559
SELECT - col2 * col2 / + cor0.col1 FROM tab2 AS cor0
----
-11
-23
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6560
SELECT col2 DIV + col2 AS col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6560
SELECT col2 / + col2 AS col0 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ALL cor0.col2 * - col1 * + cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
-36470
-4186
-99827

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 - cor0.col0 + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col2 * + col2 * col0 + - col1 AS col2 FROM tab1 cor0
----
207926
737267
8722

query I rowsort
SELECT ALL 40 - - col1 AS col2 FROM tab1
----
50
53
66

query I rowsort
SELECT - + col0 + col2 * col2 * col1 + - col1 AS col2 FROM tab1 AS cor0
----
119715
32416
75787

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col0 + col2 + - col0 AS col1 FROM tab0 cor0
----
-1259
-567
-7928

query I rowsort
SELECT ALL + col2 * col1 + col2 * + col1 FROM tab2 cor0
----
1292
1674
3068

query I rowsort
SELECT - col2 * col0 * col0 - - col1 AS col2 FROM tab0 AS cor0
----
-1128
-18922
-649431

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) - ( - col0 + col1 * - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
7453
8452
9445

query I rowsort
SELECT DISTINCT + col0 + + col1 * - col0 + col1 FROM tab2 AS cor0
----
-1247
-179
-4465

query I rowsort
SELECT DISTINCT + 30 + col1 FROM tab0 AS cor0
----
116
121
127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - col0 col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - + ( cor0.col2 ) + - col0 + col1 FROM tab2 AS cor0
----
-100
-3
-45

query I rowsort
SELECT - - ( col2 ) - - col0 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - + col1 * + col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT - + 83 + + col2 * + col2 AS col0 FROM tab0 AS cor0
----
-82
1006
6641

query I rowsort
SELECT DISTINCT + 34 + col2 * ( ( col0 ) ) FROM tab2 AS cor0
----
2062
223
3036

query I rowsort
SELECT ALL - 33 + col0 AS col2 FROM tab1 AS cor0
----
-30
31
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-6580
SELECT ALL + col2 + col2 DIV col1 AS col2 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL + col2 + col2 / col1 AS col2 FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT DISTINCT + + col2 + - 38 AS col1 FROM tab0 AS cor0
----
-37
-5
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 - - cor0.col0 * cor0.col1 col1 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-6583
SELECT ALL - CAST( col0 AS SIGNED ) DIV - col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL - CAST ( col0 AS INTEGER ) / - col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6584
SELECT - + col0 DIV cor0.col1 + + cor0.col0 * 63 AS col1 FROM tab2 AS cor0
----
441
4913
4973

skipif mysql # not compatible
query I rowsort label-6584
SELECT - + col0 / cor0.col1 + + cor0.col0 * 63 AS col1 FROM tab2 AS cor0
----
441
4913
4973

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6585
SELECT - CAST( NULL AS DECIMAL ) + col1 + col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6585
SELECT - CAST ( NULL AS REAL ) + col1 + col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - 63 * col0 FROM tab2 cor0
----
-410
-4855
-4960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6587
SELECT ALL - CAST( - col1 AS SIGNED ) * - col2 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL - CAST ( - col1 AS INTEGER ) * - col2 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT 13 + + col1 FROM tab0
----
104
110
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6589
SELECT ALL - CAST( col0 AS SIGNED ) + tab2.col0 * + col2 FROM tab2
----
182
1950
2923

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL - CAST ( col0 AS INTEGER ) + tab2.col0 * + col2 FROM tab2
----
182
1950
2923

query I rowsort
SELECT ALL col0 * tab2.col2 + - tab2.col0 * - col1 FROM tab2
----
406
4345
6630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 * + 20 + col1 * col1 col1 FROM tab0
----
10101
11229
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-6592
SELECT ALL ( + col0 ) DIV col2 + - col2 * col1 AS col1 FROM tab0
----
-2838
-62
-7461

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL ( + col0 ) / col2 + - col2 * col1 AS col1 FROM tab0
----
-2838
-62
-7461

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6593
SELECT DISTINCT CAST( NULL AS SIGNED ) - 53 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 53 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 31 - + 53 AS col0 FROM tab2
----
-22

query I rowsort
SELECT DISTINCT col1 * + col2 - + col2 AS col1 FROM tab1
----
1152
1350
513

query I rowsort
SELECT + 1 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT ( tab0.col0 ) + col0 + - tab0.col0 * + col1 FROM tab0
----
-2016
-3325
-7921

query I rowsort
SELECT + 80 * + 39 + + col2 * 50 AS col1 FROM tab2
----
4420
4470
5020

query I rowsort
SELECT ALL cor0.col0 + - 43 * + col0 FROM tab2 AS cor0
----
-294
-3276
-3318

query I rowsort
SELECT + 41 FROM tab2, tab0 cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT 0 + - 42 + col1 FROM tab1
----
-16
-29
-32

query I rowsort
SELECT - col1 + + cor0.col0 + + col2 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT ALL - 1 * + col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 * col1 col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + 1 * col2 - ( + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-6606
SELECT - col0 DIV + col1 + - col0 FROM tab2 AS cor0
----
-7
-79
-83

skipif mysql # not compatible
query I rowsort label-6606
SELECT - col0 / + col1 + - col0 FROM tab2 AS cor0
----
-7
-79
-83

query I rowsort
SELECT DISTINCT - + cor0.col1 * - col0 AS col2 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6608
SELECT col1 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6608
SELECT col1 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab2.col2 AS col1 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT DISTINCT col0 * 13 FROM tab0
----
1157
312
455

query I rowsort
SELECT ALL + tab2.col0 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + 8 AS REAL ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT col0 * + col2 * col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT - + col2 - + ( ( - col1 ) ) FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ( cor0.col0 ) * cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0

query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 * - col1 * - col0 AS col2 FROM tab2 AS cor0
----
106018
1512
358878

query I rowsort
SELECT + tab0.col2 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6618
SELECT ALL - CAST( NULL AS SIGNED ) * col0 * - cor0.col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 * - cor0.col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - ( - cor0.col0 ) ) * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6620
SELECT DISTINCT + col0 * + cor0.col0 + col1 DIV ( + col1 ) FROM tab2 AS cor0
----
50
6085
6242

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT + col0 * + cor0.col0 + col1 / ( + col1 ) FROM tab2 AS cor0
----
50
6085
6242

query I rowsort
SELECT - - 21 * + 41 AS col2 FROM tab1 cor0
----
861
861
861

query I rowsort
SELECT ALL + + ( + 82 ) * col1 FROM tab1 AS cor0
----
1066
2132
820

query I rowsort
SELECT - col0 * col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( + 75 AS REAL ) * col2 FROM tab1 AS cor0
----
4050
4275
7200

query I rowsort
SELECT + col0 * - col1 * cor0.col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT col0 + - 15 FROM tab2 AS cor0
----
-8
63
64

query I rowsort
SELECT DISTINCT - 39 * + cor0.col1 FROM tab0, tab0 AS cor0
----
-3354
-3549
-3783

query I rowsort
SELECT + 25 + - col1 * col0 FROM tab2
----
-1318
-192
-4577

query I rowsort
SELECT ALL - cor0.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT 48 + 62 FROM tab2 AS cor0
----
110
110
110

query I rowsort
SELECT - 17 + ( tab0.col2 ) * + col2 FROM tab0
----
-16
1072
6707

query I rowsort
SELECT ALL - ( + col1 ) * + col1 + + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-3748
-7849
-838

query I rowsort
SELECT DISTINCT + col0 * - 73 AS col2 FROM tab2 cor0
----
-511
-5694
-5767

query I rowsort
SELECT - col2 * - 83 AS col2 FROM tab1 AS cor0
----
4482
4731
7968

query I rowsort
SELECT 30 * - col1 + col1 FROM tab0 cor0
----
-2494
-2639
-2813

query I rowsort
SELECT + + 30 * col0 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT - 19 + + 86 AS col1 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT + 36 AS col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6639
SELECT ( tab0.col1 ) * col1 DIV - 15 FROM tab0
----
-493
-552
-627

skipif mysql # not compatible
query I rowsort label-6639
SELECT ( tab0.col1 ) * col1 / - 15 FROM tab0
----
-493
-552
-627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * col1 col2 FROM tab2
----
289
3481
961

query I rowsort
SELECT - - cor0.col1 + - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6642
SELECT - col2 DIV + ( - col1 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6642
SELECT - col2 / + ( - col1 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6643
SELECT - + col0 * + col1 DIV col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-6643
SELECT - + col0 * + col1 / col1 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6644
SELECT - - col2 + 7 DIV - cor0.col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6644
SELECT - - col2 + 7 / - cor0.col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - 19 + + 8 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 * - col2 + - col0 AS col0 FROM tab2 AS cor0
----
119574
50955
5852

query I rowsort
SELECT DISTINCT + col1 * + ( + col0 ) + - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT + col2 + + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-6649
SELECT ALL - col0 * - ( + col2 ) + cor0.col1 DIV + 10 AS col0 FROM tab0 AS cor0
----
44
7307
800

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL - col0 * - ( + col2 ) + cor0.col1 / + 10 AS col0 FROM tab0 AS cor0
----
44
7307
800

query I rowsort
SELECT DISTINCT - col1 * + 36 FROM tab1 cor0
----
-360
-468
-936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6651
SELECT ALL col2 + - CAST( NULL AS SIGNED ) + 19 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) + 19 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + cor0.col1 + 39 FROM tab1 AS cor0
----
1287
1443
609

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6653
SELECT col1 * + CAST( col1 AS SIGNED ) - cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
15005
8485
9410

skipif mysql # not compatible
query I rowsort label-6653
SELECT col1 * + CAST ( col1 AS INTEGER ) - cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
15005
8485
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - cor0.col2 * - col2 col0 FROM tab0 AS cor0
----
1122
2
6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * - 49 + + col0 col0 FROM tab1 AS cor0
----
150
3200
4000

onlyif mysql # use DIV operator for integer division
query I rowsort label-6656
SELECT ALL col2 * CAST( col1 AS SIGNED ) + - col1 DIV 79 AS col1 FROM tab0 AS cor0
----
2837
7461
96

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL col2 * CAST ( col1 AS INTEGER ) + - col1 / 79 AS col1 FROM tab0 AS cor0
----
2837
7461
96

query I rowsort
SELECT DISTINCT col2 + + ( + cor0.col1 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - col2 * col0 + cor0.col0 FROM tab2 cor0
----
-182
-1950
-2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6659
SELECT - CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT - CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 * col2 * + col1 col2 FROM tab1 AS cor0
----
119821
32500
75842

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6661
SELECT DISTINCT CAST( col0 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT CAST ( col0 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL col1 * 4 FROM tab2 AS cor0
----
124
236
68

query I rowsort
SELECT - cor0.col1 * cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT - - 21 * col2 AS col2 FROM tab2 AS cor0
----
546
567
798

query I rowsort
SELECT DISTINCT - col0 * 51 + col0 AS col2 FROM tab1 cor0
----
-150
-3200
-4000

query I rowsort
SELECT ALL - 70 - col1 * - cor0.col2 FROM tab1 AS cor0
----
1178
1334
500

query I rowsort
SELECT 73 + + col0 * col1 + col1 FROM tab2 AS cor0
----
1433
321
4734

query I rowsort
SELECT ALL + col1 * 69 AS col2 FROM tab1 AS cor0
----
1794
690
897

onlyif mysql # use DIV operator for integer division
query I rowsort label-6669
SELECT ALL - col0 + CAST( + col1 + col0 AS SIGNED ) * col0 DIV - 35 AS col2 FROM tab1
----
-199
-292
-5

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL - col0 + CAST ( + col1 + col0 AS INTEGER ) * col0 / - 35 AS col2 FROM tab1
----
-199
-292
-5

query I rowsort
SELECT - col2 * - 14 AS col1 FROM tab2
----
364
378
532

query I rowsort
SELECT col1 - - ( + 97 + tab1.col0 ) FROM tab1
----
126
171
190

query I rowsort
SELECT ALL + + 34 + cor0.col1 FROM tab0 cor0
----
120
125
131

query I rowsort
SELECT DISTINCT - - ( col1 ) + cor0.col2 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + col1 * col0 * col2 - col0 FROM tab0 AS cor0
----
3360
664029
68088

query I rowsort
SELECT ALL - - ( col0 ) * - cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-6676
SELECT DISTINCT + ( + col1 ) DIV + 77 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6676
SELECT DISTINCT + ( + col1 ) / + 77 FROM tab0 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6677
SELECT ALL + 30 + + col1 DIV col2 AS col1 FROM tab1 AS cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL + 30 + + col1 / col2 AS col1 FROM tab1 AS cor0
----
30
30
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-6678
SELECT DISTINCT - ( - col1 ) + - ( - col2 ) DIV col1 - + CAST( + col2 + col1 AS SIGNED ) * cor0.col1 col0 FROM tab2 AS cor0
----
-1767
-4956
-916

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6678
SELECT DISTINCT - ( - col1 ) + - ( - col2 ) / col1 - + CAST ( + col2 + col1 AS INTEGER ) * cor0.col1 col0 FROM tab2 AS cor0
----
-1767
-4956
-916

onlyif mysql # use DIV operator for integer division
query I rowsort label-6679
SELECT ALL - + col1 * col1 DIV + 85 AS col2 FROM tab1 AS cor0
----
-1
-1
-7

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL - + col1 * col1 / + 85 AS col2 FROM tab1 AS cor0
----
-1
-1
-7

query I rowsort
SELECT - ( 56 + + col2 ) FROM tab2
----
-82
-83
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 72 ) col0 FROM tab0
----
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6682
SELECT + - CAST( tab2.col0 AS SIGNED ) AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

skipif mysql # not compatible
query I rowsort label-6682
SELECT + - CAST ( tab2.col0 AS INTEGER ) AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT 6 + tab2.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 18b1dc4dfc5d9767235584c20d288a61

query I rowsort
SELECT ALL col0 * + 6 * - col2 FROM tab1
----
-21888
-46080
-972

query I rowsort
SELECT 42 AS col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT - - 5 + col2 * col0 FROM tab0 cor0
----
40
7303
797

query I rowsort
SELECT ALL col0 + - 38 AS col0 FROM tab1
----
-35
26
42

query I rowsort
SELECT ALL + col0 + 26 * - col0 * 43 + + col2 FROM tab2
----
-7792
-87100
-88205

onlyif mysql # use DIV operator for integer division
query I rowsort label-6689
SELECT DISTINCT col2 DIV + ( col0 ) + 86 DIV + col2 + + col2 FROM tab1
----
58
73
97

skipif mysql # not compatible
query I rowsort label-6689
SELECT DISTINCT col2 / + ( col0 ) + 86 / + col2 + + col2 FROM tab1
----
58
73
97

query I rowsort
SELECT ALL 18 + col2 FROM tab2
----
44
45
56

query I rowsort
SELECT DISTINCT - 73 + + col0 FROM tab1
----
-70
-9
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 + - 6 col0 FROM tab0
----
-5
27
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 * - col0 + col2 col0 FROM tab2
----
1274
1302
139

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6694
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + + col2 * cor0.col1 * 29 FROM tab2 AS cor0
----
18772
24300
44512

skipif mysql # not compatible
query I rowsort label-6694
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + + col2 * cor0.col1 * 29 FROM tab2 AS cor0
----
18772
24300
44512

query I rowsort
SELECT ALL 98 * col2 * - col1 + 77 + + 91 FROM tab2
----
-150164
-63140
-81858

onlyif mysql # use DIV operator for integer division
query I rowsort label-6696
SELECT 13 DIV 74 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6696
SELECT 13 / 74 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 59 + + col2 AS col2 FROM tab0
----
141
60
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 + ( - tab2.col2 ) * col0 col1 FROM tab2
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 * cor0.col1 col2 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT - col2 + + col0 - col1 * + ( col2 ) FROM tab2 AS cor0
----
-1482
-605
-857

query I rowsort
SELECT ALL + - 23 + col1 * cor0.col2 FROM tab0 AS cor0
----
2815
74
7439

onlyif mysql # use DIV operator for integer division
query I rowsort label-6702
SELECT DISTINCT - 55 DIV col2 FROM tab0 AS cor0
----
-1
-55
0

skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT - 55 / col2 FROM tab0 AS cor0
----
-1
-55
0

query I rowsort
SELECT + col2 + - col0 * col0 + - col0 FROM tab2 AS cor0
----
-29
-6136
-6282

query I rowsort
SELECT + cor0.col1 + cor0.col0 * - cor0.col1 * + col2 + col1 FROM tab2 AS cor0
----
-119534
-51000
-5797

query I rowsort
SELECT - 69 + cor0.col1 AS col2 FROM tab0 AS cor0
----
17
22
28

query I rowsort
SELECT - cor0.col1 * - 2 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6707
SELECT DISTINCT - - col2 * CAST( NULL AS SIGNED ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT - - col2 * CAST ( NULL AS INTEGER ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col2 * ( + cor0.col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - + col0 + + 89 AS col0 FROM tab2 AS cor0
----
10
11
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6710
SELECT ALL + col2 * + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL + col2 * + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 + - 4 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT + col0 * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL col2 * + ( + col0 ) + - cor0.col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6714
SELECT ALL col1 - CAST( col2 AS SIGNED ) * col2 AS col0 FROM tab1 cor0
----
-2890
-3239
-9203

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL col1 - CAST ( col2 AS INTEGER ) * col2 AS col0 FROM tab1 cor0
----
-2890
-3239
-9203

query I rowsort
SELECT + - col0 * + col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + - cor0.col0 + 26 AS col0 FROM tab2 AS cor0
----
-52
-53
19

query I rowsort
SELECT + cor0.col1 * + col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + col0 - 10 * col0 FROM tab0 AS cor0
----
-216
-315
-801

query I rowsort
SELECT ALL + col2 + - col1 * cor0.col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT - col0 + + 44 AS col1 FROM tab1 AS cor0
----
-20
-36
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-6721
SELECT ALL - col1 + + 70 * cor0.col2 DIV col0 FROM tab2 AS cor0
----
-36
16
239

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL - col1 + + 70 * cor0.col2 / col0 FROM tab2 AS cor0
----
-36
16
239

query I rowsort
SELECT - cor0.col1 * + 34 AS col0 FROM tab2 cor0
----
-1054
-2006
-578

query I rowsort
SELECT DISTINCT - cor0.col0 * + ( col2 ) + col0 * + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col0 + 43 FROM tab2 AS cor0
----
121
122
50

query I rowsort
SELECT 78 * - col1 * col2 FROM tab1 AS cor0
----
-109512
-44460
-97344

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6726
SELECT - CAST( col0 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-6726
SELECT - CAST ( col0 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL + col0 * 0 + - col1 * - col1 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6728
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + 40 + col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + 40 + col0 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6729
SELECT - 27 DIV - cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6729
SELECT - 27 / - cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - - ( - ( - col2 ) ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + 45 * + col0 AS col2 FROM tab1 cor0
----
135
2880
3600

query I rowsort
SELECT ALL tab1.col2 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - tab0.col1 + - 66 * + col2 FROM tab0
----
-163
-2264
-5503

query I rowsort
SELECT ( col0 ) + - col1 * col2 AS col0 FROM tab0 cor0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * col0 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - cor1.col0 - ( 60 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-149
-84
-95

query I rowsort
SELECT DISTINCT 97 FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
97

query I rowsort
SELECT - col1 * col0 * + col2 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT - - col1 + + 50 * cor0.col2 FROM tab0 AS cor0
----
147
1736
4191

query I rowsort
SELECT DISTINCT + 72 AS col2 FROM tab1, tab2 AS cor0
----
72

query I rowsort
SELECT ALL + - 76 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT ALL col1 * 2 AS col0 FROM tab1
----
20
26
52

query I rowsort
SELECT 48 FROM tab2, tab0, tab1 AS cor0, tab2 AS cor1
----
81 values hashing to df6d12001a34fdcf5cfb2ca3a4a22108

query I rowsort
SELECT ALL - col2 * ( col1 ) AS col1 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6745
SELECT + col2 DIV + col1 + 24 * 30 + + col2 AS col0 FROM tab2 AS cor0
----
746
747
760

skipif mysql # not compatible
query I rowsort label-6745
SELECT + col2 / + col1 + 24 * 30 + + col2 AS col0 FROM tab2 AS cor0
----
746
747
760

query I rowsort
SELECT DISTINCT - - 46 + - col0 FROM tab0 AS cor0
----
-43
11
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-6747
SELECT + cor0.col2 DIV + col1 + + cor0.col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
104
119
34

skipif mysql # not compatible
query I rowsort label-6747
SELECT + cor0.col2 / + col1 + + cor0.col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
104
119
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6748
SELECT col0 DIV - col1 + cor0.col2 - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6748
SELECT col0 / - col1 + cor0.col2 - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 17 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT 5 * - cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 291214d7e7b04fb5cda904908ec550c4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL 0 * 11 * + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6753
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6754
SELECT - CAST( + 55 AS SIGNED ) * col2 * col1 - col1 FROM tab2 AS cor0
----
-35547
-46066
-84429

skipif mysql # not compatible
query I rowsort label-6754
SELECT - CAST ( + 55 AS INTEGER ) * col2 * col1 - col1 FROM tab2 AS cor0
----
-35547
-46066
-84429

query I rowsort
SELECT - cor0.col0 + + 19 + col0 FROM tab1 AS cor0
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col0 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6757
SELECT + + CAST( NULL AS SIGNED ) * + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT + + CAST ( NULL AS INTEGER ) * + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 50 * col1 AS col1 FROM tab2 AS cor0
----
1550
2950
850

query I rowsort
SELECT + 53 * cor0.col0 + + col0 + - 27 * + 47 FROM tab1 AS cor0
----
-1107
2187
3051

query I rowsort
SELECT - col2 * - ( - col0 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6761
SELECT col0 + + 33 DIV col0 col0 FROM tab1 AS cor0
----
14
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6761
SELECT col0 + + 33 / col0 col0 FROM tab1 AS cor0
----
14
64
80

query I rowsort
SELECT 66 * 61 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 00fecf418f473f7db04079b3c66f4797

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6763
SELECT ALL - ( + 81 ) + - col0 * CAST( 50 AS SIGNED ) FROM tab1 cor0
----
-231
-3281
-4081

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL - ( + 81 ) + - col0 * CAST ( 50 AS INTEGER ) FROM tab1 cor0
----
-231
-3281
-4081

query I rowsort
SELECT 85 * - 85 FROM tab2 AS cor0
----
-7225
-7225
-7225

onlyif mysql # use DIV operator for integer division
query I rowsort label-6765
SELECT ALL + col0 + + col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL + col0 + + col2 / - col2 AS col1 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT DISTINCT 91 * - col1 FROM tab1 AS cor0
----
-1183
-2366
-910

query I rowsort
SELECT - col1 - cor0.col1 * + col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT ALL - cor0.col2 + - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - 59 - col1 FROM tab1 AS cor0
----
-69
-72
-85

query I rowsort
SELECT - col0 * - col1 * ( + col0 ) + col1 FROM tab0 AS cor0
----
118922
49622
720902

query I rowsort
SELECT ALL + - col0 * col0 + + col1 * 40 + - col1 FROM tab0 AS cor0
----
-4372
2558
2778

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT DISTINCT ( - 18 ) FROM tab2
----
-18

query I rowsort
SELECT DISTINCT 1 + + col2 AS col2 FROM tab0 AS cor0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 + col2 col2 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT DISTINCT 72 + col1 FROM tab2 AS cor0
----
103
131
89

query I rowsort
SELECT + cor0.col0 + col0 * + col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - - col2 + 0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + col2 * ( + col2 * col2 ) FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT DISTINCT 8 * col1 AS col1 FROM tab2
----
136
248
472

query I rowsort
SELECT cor0.col0 + col0 * - col2 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6782
SELECT + col1 * CAST( - col0 * - col0 AS SIGNED ) + col0 FROM tab1 AS cor0
----
237
41024
83280

skipif mysql # not compatible
query I rowsort label-6782
SELECT + col1 * CAST ( - col0 * - col0 AS INTEGER ) + col0 FROM tab1 AS cor0
----
237
41024
83280

query I rowsort
SELECT DISTINCT col2 + - cor0.col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL - cor0.col0 * + ( - cor0.col2 + cor0.col1 ) * - 25 FROM tab2 AS cor0
----
-41475
64350
700

query I rowsort
SELECT DISTINCT - 80 FROM tab2 cor0
----
-80

query I rowsort
SELECT ALL - - col0 + + 79 AS col2 FROM tab0 AS cor0
----
103
114
168

onlyif mysql # use DIV operator for integer division
query I rowsort label-6787
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-6787
SELECT DISTINCT col1 / - col1 col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + + col1 + - ( - col0 ) * col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + + col0 + - 29 AS col2 FROM tab0 AS cor0
----
-5
6
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-6790
SELECT DISTINCT - 61 DIV + col0 col1 FROM tab1
----
-20
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6790
SELECT DISTINCT - 61 / + col0 col1 FROM tab1
----
-20
0

query I rowsort
SELECT ALL + ( + col0 ) * col2 AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT 65 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT DISTINCT + cor0.col1 + ( 60 ) FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
70
73
86

query I rowsort
SELECT col1 * col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT col1 + ( cor0.col0 ) * col1 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-6796
SELECT ALL + col1 DIV col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL + col1 / col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - col0 + - col0 * col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT DISTINCT - col0 + + 71 * - 59 FROM tab2 AS cor0
----
-4196
-4267
-4268

onlyif mysql # use DIV operator for integer division
query I rowsort label-6799
SELECT col0 + - 51 DIV col1 AS col1 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6799
SELECT col0 + - 51 / col1 AS col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT cor0.col2 * 63 AS col2 FROM tab0 AS cor0
----
2079
5166
63

query I rowsort
SELECT ALL - ( col1 ) * - col0 + - 46 FROM tab2 cor0
----
1297
171
4556

query I rowsort
SELECT DISTINCT - + col2 * 36 + col1 FROM tab2 AS cor0
----
-1351
-877
-941

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6803
SELECT ALL + CAST( + 1 AS SIGNED ) + + col1 AS col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL + CAST ( + 1 AS INTEGER ) + + col1 AS col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL 98 * - col0 - - col0 AS col2 FROM tab1 AS cor0
----
-291
-6208
-7760

query I rowsort
SELECT DISTINCT - col1 * ( col2 ) + col2 + - col1 FROM tab2 AS cor0
----
-1567
-625
-841

query I rowsort
SELECT cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT + 94 + + col0 + col0 FROM tab1 AS cor0
----
100
222
254

onlyif mysql # use DIV operator for integer division
query I rowsort label-6808
SELECT ALL - + cor0.col1 * + cor0.col1 DIV ( col1 ) FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL - + cor0.col1 * + cor0.col1 / ( col1 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - 74 * - col1 + 30 + + col1 FROM tab2 AS cor0
----
1305
2355
4455

query I rowsort
SELECT - + col1 * - col2 + - ( + ( - cor0.col1 ) ) AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - + 20 * + cor0.col2 FROM tab0 AS cor0
----
-1640
-20
-660

query I rowsort
SELECT DISTINCT - 71 * - col0 AS col0 FROM tab2 AS cor0
----
497
5538
5609

query I rowsort
SELECT DISTINCT + - col1 + col1 * - col1 FROM tab1 AS cor0
----
-110
-182
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-6814
SELECT - col0 DIV col0 + - col1 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-6814
SELECT - col0 / col0 + - col1 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT DISTINCT + col0 * + col2 + - col1 FROM tab0 AS cor0
----
-62
706
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col1 + col0 col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL ( col0 ) * + cor0.col1 + + col0 - col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + col1 * col1 + cor0.col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT - 66 AS col1 FROM tab0
----
-66
-66
-66

query I rowsort
SELECT col0 * + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col1 - - col1 * col1 FROM tab0 AS cor0
----
7310
8190
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + cor0.col2 + col2 col1 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL - cor0.col0 + + ( + 28 ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 94b3e9db2fcc5e46adf15bf2b72e310d

query I rowsort
SELECT col0 + + cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT - - ( col1 ) * col2 + + 12 + - col1 * - col0 FROM tab1 AS cor0
----
1222
1494
2300

query I rowsort
SELECT DISTINCT - col2 + col2 * col0 AS col0 FROM tab2 AS cor0
----
162
2002
2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6827
SELECT + ( + col0 ) + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6827
SELECT + ( + col0 ) + col1 * + 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-6828
SELECT DISTINCT CAST( col2 AS SIGNED ) DIV col1 - + col1 * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT CAST ( col2 AS INTEGER ) / col1 - + col1 * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT col0 * + col1 + tab1.col1 + + col2 AS col1 FROM tab1
----
1149
158
707

onlyif mysql # use DIV operator for integer division
query I rowsort label-6830
SELECT col1 DIV + 26 col1 FROM tab2
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6830
SELECT col1 / + 26 col1 FROM tab2
----
0
1
2

query I rowsort
SELECT + ( 1 ) - col0 * col0 * col2 AS col0 FROM tab0 AS cor0
----
-1224
-19007
-649521

query I rowsort
SELECT - ( - 31 ) AS col2 FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT - ( 64 ) + - col0 FROM tab0
----
-153
-88
-99

query I rowsort
SELECT DISTINCT 67 + col2 AS col2 FROM tab2
----
105
93
94

query I rowsort
SELECT col2 + + col0 + + col2 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT 66 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-14
2
63

query I rowsort
SELECT ALL - col0 + - col2 * col1 * col1 FROM tab1
----
-16304
-36507
-5764

query I rowsort
SELECT ALL ( + tab1.col0 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT col2 * + 82 * + col1 AS col2 FROM tab0
----
232716
611884
7954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 * - col2 col2 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT ( - col1 ) * - col2 * - col1 FROM tab1
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-6842
SELECT DISTINCT + col1 + col2 DIV + 95 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT + col1 + col2 / + 95 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL col2 - col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL - cor0.col1 + ( col1 ) + - cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + - cor0.col0 * + 65 + ( col0 ) FROM tab0 AS cor0
----
-1536
-2240
-5696

onlyif mysql # use DIV operator for integer division
query I rowsort label-6846
SELECT ALL - - col1 + col1 DIV col1 col0 FROM tab0 AS cor0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL - - col1 + col1 / col1 col0 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT DISTINCT + 17 FROM tab2, tab0 AS cor0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT + 70 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # use DIV operator for integer division
query I rowsort label-6850
SELECT DISTINCT + col1 * cor0.col2 DIV col0 FROM tab2 AS cor0
----
119
19
8

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT + col1 * cor0.col2 / col0 FROM tab2 AS cor0
----
119
19
8

query I rowsort
SELECT + ( col1 ) * + col2 - - col2 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT + - col0 * + col2 + - col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL - + col1 + - 65 * col0 FROM tab0 AS cor0
----
-1646
-2372
-5876

query I rowsort
SELECT 2 - - col0 AS col1 FROM tab2 cor0
----
80
81
9

query I rowsort
SELECT ALL - cor0.col0 * + col2 + - col0 * col0 FROM tab0 AS cor0
----
-1260
-1368
-15219

onlyif mysql # use DIV operator for integer division
query I rowsort label-6856
SELECT DISTINCT ( 58 ) + - col0 DIV col0 - - col2 AS col1 FROM tab0 AS cor0
----
139
58
90

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT ( 58 ) + - col0 / col0 - - col2 AS col1 FROM tab0 AS cor0
----
139
58
90

query I rowsort
SELECT - 68 FROM tab2, tab1 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT ALL - 45 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371

query I rowsort
SELECT - + 67 * col1 AS col2 FROM tab2 AS cor0
----
-1139
-2077
-3953

query I rowsort
SELECT - ( col1 ) + col2 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - 21 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1

query I rowsort
SELECT ALL col2 * + 16 + col1 AS col1 FROM tab2 AS cor0
----
463
475
625

query I rowsort
SELECT DISTINCT - + col2 + - col0 + col1 AS col2 FROM tab1 cor0
----
-111
-163
-31

query I rowsort
SELECT ALL + - col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + - cor0.col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + tab0.col0 * - col0 - col2 AS col1 FROM tab0
----
-1226
-609
-8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-6867
SELECT col0 + col1 DIV - tab1.col0 AS col0 FROM tab1
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-6867
SELECT col0 + col1 / - tab1.col0 AS col0 FROM tab1
----
-5
64
80

query I rowsort
SELECT + col2 * col2 - - tab1.col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT + col1 * - col1 + + col0 FROM tab0
----
-7372
-8192
-9374

query I rowsort
SELECT col1 + - col1 * + col0 AS col0 FROM tab1
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col0 col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - col0 * col2 + col1 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT col0 + - tab2.col0 * - col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL + col2 * col2 * col1 + col0 + col0 AS col0 FROM tab2
----
22613
24706
40040

query I rowsort
SELECT ALL 53 + col2 * tab2.col1 AS col2 FROM tab2
----
1587
699
890

query I rowsort
SELECT - 1 * + col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ( - col0 ) * col1 + - col2 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL 69 FROM tab0, tab2 cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT ALL 94 + tab0.col1 * col1 AS col2 FROM tab0
----
7490
8375
9503

query I rowsort
SELECT ALL col0 + + ( col0 ) FROM tab2
----
14
156
158

query I rowsort
SELECT - col0 * + col1 * - col1 FROM tab1 AS cor0
----
13520
2028
6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 * - col0 col2 FROM tab2 AS cor0
----
-364
-4056
-4108

query I rowsort
SELECT DISTINCT cor1.col2 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
54
57
96

query I rowsort
SELECT - - 3 * col0 + + col0 FROM tab0 AS cor0
----
140
356
96

query I rowsort
SELECT ALL 25 + - col2 FROM tab2 AS cor0
----
-1
-13
-2

query I rowsort
SELECT - 90 + col1 AS col0 FROM tab0 AS cor0
----
-4
1
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 * col1 + - col1 * + col1 col1 FROM tab0 cor0
----
-4902
-5642
-6596

query I rowsort
SELECT - col0 * col2 * - col2 AS col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT + + ( + col1 ) * - col0 + col0 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT 54 * col0 + + col2 * + col2 FROM tab2 AS cor0
----
1107
4888
5710

query I rowsort
SELECT col0 + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-6892
SELECT - - col1 + - cor0.col0 DIV + col2 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-6892
SELECT - - col1 + - cor0.col0 / + col2 FROM tab1 AS cor0
----
13
26
9

query I rowsort
SELECT ALL 14 * + col2 FROM tab0 AS cor0
----
1148
14
462

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6894
SELECT CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6894
SELECT CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 82 * - 2 + col2 FROM tab1 AS cor0
----
-107
-110
-68

query I rowsort
SELECT - 85 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-4590
-4845
-8160

query I rowsort
SELECT col1 - + ( - col0 ) FROM tab2
----
137
38
96

query I rowsort
SELECT - 38 + - col1 * - ( col1 ) FROM tab0 AS cor0
----
7358
8243
9371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 98 + + col0 col0 FROM tab2 AS cor0
----
105
176
177

query I rowsort
SELECT - 23 + tab1.col1 + - 20 FROM tab1
----
-17
-30
-33

query I rowsort
SELECT col1 * - col1 + - cor0.col2 * - col1 FROM tab0 AS cor0
----
-4558
-819
-9312

query I rowsort
SELECT col0 + + 31 * + 4 + col2 AS col0 FROM tab2 AS cor0
----
158
228
241

query I rowsort
SELECT cor0.col0 * + ( col1 ) FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL + col1 * - 88 AS col1 FROM tab0 AS cor0
----
-7568
-8008
-8536

query I rowsort
SELECT - - col0 + ( col1 ) + + col0 * col2 * col1 FROM tab1 AS cor0
----
36554
4241
99933

query I rowsort
SELECT + cor0.col0 * + cor0.col0 * ( + col2 * col1 ) + col0 FROM tab0 AS cor0
----
118860
1634712
59106591

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 * col2 * + 3 + 7 col0 FROM tab1
----
-13115
-13844
-23321

onlyif mysql # use DIV operator for integer division
query I rowsort label-6908
SELECT ALL + col2 DIV - col2 + col2 * tab1.col2 * - col1 FROM tab1
----
-119809
-32491
-75817

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL + col2 / - col2 + col2 * tab1.col2 * - col1 FROM tab1
----
-119809
-32491
-75817

query I rowsort
SELECT DISTINCT - col2 * tab2.col0 + col0 AS col1 FROM tab2
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-6910
SELECT ALL - tab2.col1 DIV col0 + - 63 AS col1 FROM tab2
----
-63
-63
-67

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL - tab2.col1 / col0 + - 63 AS col1 FROM tab2
----
-63
-63
-67

query I rowsort
SELECT ALL col1 + 68 AS col0 FROM tab2
----
127
85
99

query I rowsort
SELECT DISTINCT - + col2 * - 37 FROM tab1 AS cor0
----
1998
2109
3552

query I rowsort
SELECT col2 * - ( - col2 ) + col0 * col1 * col0 FROM tab0 AS cor0
----
118826
50625
727535

onlyif mysql # use DIV operator for integer division
query I rowsort label-6914
SELECT - col2 + - cor0.col1 DIV + ( + col0 ) + - col1 * col1 AS col1 FROM tab1 cor0
----
-157
-265
-738

skipif mysql # not compatible
query I rowsort label-6914
SELECT - col2 + - cor0.col1 / + ( + col0 ) + - col1 * col1 AS col1 FROM tab1 cor0
----
-157
-265
-738

query I rowsort
SELECT ALL - cor0.col1 - + 87 FROM tab1 cor0
----
-100
-113
-97

query I rowsort
SELECT ALL col0 + - tab1.col1 * col0 FROM tab1
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6917
SELECT + 15 + - col2 * col0 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6917
SELECT + 15 + - col2 * col0 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6918
SELECT + col1 * 14 DIV + col2 AS col2 FROM tab0
----
1358
15
36

skipif mysql # not compatible
query I rowsort label-6918
SELECT + col1 * 14 / + col2 AS col2 FROM tab0
----
1358
15
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-6919
SELECT - col0 * ( + col0 ) DIV + col1 col2 FROM tab1
----
-409
-492
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6919
SELECT - col0 * ( + col0 ) / + col1 col2 FROM tab1
----
-409
-492
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6920
SELECT DISTINCT tab1.col1 DIV + 60 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6920
SELECT DISTINCT tab1.col1 / + 60 AS col0 FROM tab1
----
0

query I rowsort
SELECT + 74 * col2 * - col2 + 72 AS col0 FROM tab2 cor0
----
-106784
-49952
-53874

query I rowsort
SELECT DISTINCT 46 * col2 AS col1 FROM tab0
----
1518
3772
46

query I rowsort
SELECT col2 * - col0 + - col2 * + col1 + col0 FROM tab1 cor0
----
-1563
-4154
-8848

query I rowsort
SELECT + ( col0 ) + - col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT 54 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT ALL col0 + col2 * cor0.col0 AS col0 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT - + ( col1 ) + - col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT - col2 * col1 + - 57 * + ( col1 ) AS col1 FROM tab0 cor0
----
-12649
-5626
-7740

query I rowsort
SELECT cor0.col1 + 52 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
150
171
225

query I rowsort
SELECT ALL + cor0.col0 + 51 FROM tab0 AS cor0
----
140
75
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - col0 col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col0 * + col2 + + 49 * col2 FROM tab0 AS cor0
----
11316
2409
84

query I rowsort
SELECT col2 * 51 - + 32 AS col1 FROM tab1 AS cor0
----
2722
2875
4864

query I rowsort
SELECT ALL + col0 * col2 * + 3 + 34 * col1 FROM tab1
----
11284
1370
23482

onlyif mysql # use DIV operator for integer division
query I rowsort label-6935
SELECT + col2 DIV 90 + - col2 + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6935
SELECT + col2 / 90 + - col2 + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * 65 + col1 * + col1 - ( col0 ) FROM tab0 AS cor0
----
11649
13977
8932

query I rowsort
SELECT 69 + + col2 * + 7 FROM tab1 AS cor0
----
447
468
741

query I rowsort
SELECT + col1 + - col2 * + 15 AS col1 FROM tab2 AS cor0
----
-331
-374
-553

query I rowsort
SELECT DISTINCT col0 * ( col0 ) * cor0.col0 FROM tab2 AS cor0
----
343
474552
493039

onlyif mysql # use DIV operator for integer division
query I rowsort label-6940
SELECT DISTINCT col1 DIV - ( - col1 * cor0.col0 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT col1 / - ( - col1 * cor0.col0 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6941
SELECT + col2 + + cor0.col1 DIV col0 col2 FROM tab0 AS cor0
----
3
36
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6941
SELECT + col2 + + cor0.col1 / col0 col2 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT cor0.col2 + cor1.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 940a6b82c800eab4d330c129dc095a0c

query I rowsort
SELECT cor0.col0 - + cor0.col1 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 318a6997409c5decbbc3333c9d493ad3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + + cor0.col0 col1 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6945
SELECT + + CAST( - col1 AS SIGNED ) + + cor0.col2 AS col2 FROM tab0 cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-6945
SELECT + + CAST ( - col1 AS INTEGER ) + + cor0.col2 AS col2 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT ( - 5 ) AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e

query I rowsort
SELECT 52 * tab2.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to da4cd6148e4259481d89d5ed19a2691d

query I rowsort
SELECT + - 97 + + col2 AS col0 FROM tab2 AS cor0
----
-59
-70
-71

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab0 AS cor0, tab1 cor1
----
972 values hashing to 82e15d5967b272804e574774895a0222

query I rowsort
SELECT - col0 * + cor0.col1 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - ( - col1 ) + + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - + 66 + + col2 AS col2 FROM tab2 AS cor0
----
-28
-39
-40

query I rowsort
SELECT DISTINCT - - col2 * col0 + ( col1 ) FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT ( col0 ) + + 0 * + 49 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 94 ) col1 FROM tab2
----
94
94
94

query I rowsort
SELECT ALL ( 25 ) FROM tab2
----
25
25
25

query I rowsort
SELECT col2 * col1 * col2 AS col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT DISTINCT - cor0.col0 - + col1 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6959
SELECT - 74 * - col0 + col1 DIV - cor0.col0 FROM tab1 AS cor0
----
214
4736
5920

skipif mysql # not compatible
query I rowsort label-6959
SELECT - 74 * - col0 + col1 / - cor0.col0 FROM tab1 AS cor0
----
214
4736
5920

query I rowsort
SELECT DISTINCT - col1 * col2 + col2 - - 16 FROM tab1 cor0
----
-1136
-1334
-497

onlyif mysql # use DIV operator for integer division
query I rowsort label-6961
SELECT + col1 + col1 DIV + ( 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-6961
SELECT + col1 + col1 / + ( col1 ) col2 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT DISTINCT + + 78 * col0 AS col1 FROM tab1 AS cor0
----
234
4992
6240

query I rowsort
SELECT ALL + cor0.col2 + + col0 * - 12 AS col2 FROM tab2 AS cor0
----
-57
-910
-910

query I rowsort
SELECT 26 + col1 FROM tab1 AS cor0
----
36
39
52

query I rowsort
SELECT ALL + tab0.col0 + + tab0.col0 * + col1 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL 87 * col2 FROM tab0 AS cor0
----
2871
7134
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6967
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + cor0.col0 + + col0 * - col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

query I rowsort
SELECT - 4 + col2 * 25 FROM tab2 AS cor0
----
646
671
946

query I rowsort
SELECT ALL + col0 + tab1.col1 * col0 * col0 AS col1 FROM tab1
----
237
41024
83280

query I rowsort
SELECT + col2 * - col0 * 84 FROM tab0
----
-2940
-613032
-66528

query I rowsort
SELECT 31 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT + col1 * col2 - - col0 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT ALL 8 + ( - col2 + - 79 ) AS col0 FROM tab0 cor0
----
-104
-153
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-6976
SELECT - col1 + - 95 DIV - col0 FROM tab2 cor0
----
-16
-18
-58

skipif mysql # not compatible
query I rowsort label-6976
SELECT - col1 + - 95 / - col0 FROM tab2 cor0
----
-16
-18
-58

query I rowsort
SELECT DISTINCT + 56 * + 89 FROM tab0 AS cor0
----
4984

query I rowsort
SELECT - + col1 + col1 - col2 * cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT col2 + + ( + col0 + col0 * col1 ) FROM tab2
----
1460
251
4706

onlyif mysql # use DIV operator for integer division
query I rowsort label-6980
SELECT col0 DIV 43 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6980
SELECT col0 / 43 FROM tab0
----
0
0
2

query I rowsort
SELECT DISTINCT + col1 + col1 - tab0.col1 FROM tab0
----
86
91
97

query I r