sqllogictest
Artifact Content
Not logged in

Artifact ff4a05f62e02b332a1765b2790ce6d3ab126873d:


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 - col2 * 18 FROM tab2
----
-468
-486
-684

onlyif mysql # use DIV operator for integer division
query I rowsort label-1
SELECT ALL col2 * 24 DIV col0 + col1 * - 3 AS col2 FROM tab0
----
-225
-251
-291

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL col2 * 24 / col0 + col1 * - 3 AS col2 FROM tab0
----
-225
-251
-291

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4
SELECT + 18 * col1 + col1 / CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5
SELECT DISTINCT + + CAST( + col2 AS SIGNED ) * col2 - 38 * col1 FROM tab0 AS cor0
----
-2179
-3685
3266

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT + + CAST ( + col2 AS INTEGER ) * col2 - 38 * col1 FROM tab0 AS cor0
----
-2179
-3685
3266

query I rowsort
SELECT DISTINCT + - 91 - - col2 FROM tab1 AS cor0
----
-34
-37
5

query I rowsort
SELECT - col0 * 16 FROM tab2 AS cor0
----
-112
-1248
-1264

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

skipif mysql # not compatible
query I rowsort label-8
SELECT ALL + cor0.col1 + col1 / + col0 AS col0 FROM tab1 cor0
----
10
13
34

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-13
SELECT ALL - + CAST( col2 AS SIGNED ) + - cor0.col0 DIV - col1 FROM tab2 cor0
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL - + CAST ( col2 AS INTEGER ) + - cor0.col0 / - col1 FROM tab2 cor0
----
-25
-27
-34

query I rowsort
SELECT ALL + col2 + 63 * col2 * - 75 AS col1 FROM tab0 AS cor0
----
-155892
-387368
-4724

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

query I rowsort
SELECT + - ( + col2 ) * + col2 + col0 * col0 * col0 + + cor0.col1 FROM tab0 AS cor0
----
12821
42971
698336

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * - 33 col2 FROM tab2 AS cor0
----
1023
1947
561

onlyif mysql # use DIV operator for integer division
query I rowsort label-19
SELECT ALL - cor0.col2 DIV + col0 + col1 * - col2 FROM tab0 AS cor0
----
-2839
-7462
-97

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL - cor0.col2 / + col0 + col1 * - col2 FROM tab0 AS cor0
----
-2839
-7462
-97

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

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

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

query I rowsort
SELECT + col1 * - col2 - col1 * col1 FROM tab0 AS cor0
----
-10234
-15743
-9506

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

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

query I rowsort
SELECT ALL - col2 * 27 - + col2 * - col2 AS col0 FROM tab1 AS cor0
----
1458
1710
6624

query I rowsort
SELECT DISTINCT - + col2 + + 59 AS col2 FROM tab1 AS cor0
----
-37
2
5

query I rowsort
SELECT DISTINCT - - col2 * col0 * 96 AS col2 FROM tab0 AS cor0
----
3360
700608
76032

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-32
SELECT ALL - col2 * + CAST( 26 * cor0.col1 + col2 AS SIGNED ) FROM tab0 AS cor0
----
-200736
-2523
-74877

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL - col2 * + CAST ( 26 * cor0.col1 + col2 AS INTEGER ) FROM tab0 AS cor0
----
-200736
-2523
-74877

query I rowsort
SELECT ALL + col0 + 81 * 91 FROM tab1 AS cor0
----
7374
7435
7451

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

query I rowsort
SELECT - col1 * - ( 66 * + cor0.col2 ) + col1 AS col0 FROM tab2 AS cor0
----
101303
42653
55273

query I rowsort
SELECT ALL - col0 * - 6 AS col2 FROM tab0 AS cor0
----
144
210
534

onlyif mysql # use DIV operator for integer division
query I rowsort label-37
SELECT - - col0 - - col2 * cor0.col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
-16
-5
67

skipif mysql # not compatible
query I rowsort label-37
SELECT - - col0 - - col2 * cor0.col2 / - col1 AS col2 FROM tab2 AS cor0
----
-16
-5
67

query I rowsort
SELECT DISTINCT - col1 * - col1 + cor0.col2 + cor0.col0 FROM tab0 AS cor0
----
7453
8452
9445

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-40
SELECT + col0 + col1 / 82 col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - col1 + + 22 * col1 FROM tab0 AS cor0
----
1806
1911
2037

query I rowsort
SELECT DISTINCT - cor0.col2 * 46 AS col1 FROM tab2 cor0
----
-1196
-1242
-1748

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-44
SELECT DISTINCT col2 DIV - 20 + col2 col1 FROM tab0 AS cor0
----
1
32
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT col2 / - 20 + col2 col1 FROM tab0 AS cor0
----
1
32
78

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

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

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

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NULL IN ( - cor0.col1 )
----

query I rowsort
SELECT DISTINCT tab0.col2 + ( - 3 ) FROM tab0
----
-2
30
79

query I rowsort
SELECT + col2 * 88 FROM tab2
----
2288
2376
3344

onlyif mysql # use DIV operator for integer division
query I rowsort label-50
SELECT col1 * CAST( col2 AS SIGNED ) DIV - col0 AS col0 FROM tab0
----
-118
-2
-83

skipif mysql # not compatible
query I rowsort label-50
SELECT col1 * CAST ( col2 AS INTEGER ) / - col0 AS col0 FROM tab0
----
-118
-2
-83

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

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

query I rowsort
SELECT ALL ( col0 ) * + 43 * + col0 AS col1 FROM tab2 AS cor0
----
2107
261612
268363

query I rowsort
SELECT ALL + 50 FROM tab1, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT DISTINCT ( + cor1.col2 ) FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
54
57
96

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

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

query I rowsort
SELECT DISTINCT - 5 * + col0 FROM tab2
----
-35
-390
-395

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

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT 12 / + col1 FROM tab0
----
0

query I rowsort
SELECT ALL ( col0 ) - + ( ( + col1 ) + + col1 ) * col0 AS col2 FROM tab0
----
-16109
-4104
-6755

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

query I rowsort
SELECT DISTINCT - + 15 * col1 + col1 + + col0 AS col1 FROM tab0 AS cor0
----
-1180
-1185
-1323

query I rowsort
SELECT ALL - + 33 - cor0.col1 FROM tab2 AS cor0
----
-50
-64
-92

query I rowsort
SELECT col2 + - col2 * 17 * col1 FROM tab0
----
-126772
-1648
-48213

query I rowsort
SELECT - 60 + - col1 AS col2 FROM tab2
----
-119
-77
-91

query I rowsort
SELECT DISTINCT 72 AS col2 FROM tab1
----
72

query I rowsort
SELECT ALL - tab1.col2 + col1 + col2 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT + col2 * 9 AS col0 FROM tab1 AS cor0
----
486
513
864

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

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

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 40 AS REAL ) * col0 + + 17 + cor0.col1 FROM tab2 AS cor0
----
3194
3196
328

onlyif mysql # use DIV operator for integer division
query I rowsort label-71
SELECT DISTINCT 81 DIV col2 AS col1 FROM tab0 AS cor0
----
0
2
81

skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT 81 / col2 AS col1 FROM tab0 AS cor0
----
0
2
81

query I rowsort
SELECT DISTINCT - 37 + ( - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-101
-117
-40

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-75
SELECT - - 47 DIV + col0 + + col0 col0 FROM tab2 cor0
----
13
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-75
SELECT - - 47 / + col0 + + col0 col0 FROM tab2 cor0
----
13
78
79

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

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

query I rowsort
SELECT 14 * 67 AS col2 FROM tab1
----
938
938
938

query I rowsort
SELECT - col2 + + col1 * ( 80 * col0 ) AS col0 FROM tab2 cor0
----
107402
17333
368134

query I rowsort
SELECT DISTINCT col1 * 35 * + col0 FROM tab2
----
161070
47005
7595

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + - 72 * 1 col1 FROM tab0 AS cor0
----
-158
-163
-169

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

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

query I rowsort
SELECT col1 * 34 FROM tab0 cor0
----
2924
3094
3298

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * 56 col2 FROM tab0 AS cor0
----
1848
4592
56

query I rowsort
SELECT + cor0.col0 * 56 - cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 0498d2b036a46acbd1caa22e36400ce8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 36 col1 FROM tab1 AS cor0
----
360
468
936

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

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

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

query I rowsort
SELECT col2 - + 0 * col2 FROM tab1 AS cor0
----
54
57
96

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

query I rowsort
SELECT tab1.col0 + col0 * col0 AS col0 FROM tab1
----
12
4160
6480

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

query I rowsort
SELECT DISTINCT col2 * - 54 AS col0 FROM tab1
----
-2916
-3078
-5184

query I rowsort
SELECT ALL + col1 * - 62 FROM tab1
----
-1612
-620
-806

query I rowsort
SELECT DISTINCT - cor0.col1 + - 21 AS col1 FROM tab2, tab1 AS cor0
----
-31
-34
-47

query I rowsort
SELECT - ( cor0.col2 * cor0.col0 + + cor0.col2 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 1a401437dba9f96d380ac3bcf6d83b72

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

query I rowsort
SELECT 36 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to e09b197365a04fabbaaf0718d2ae88c5

query I rowsort
SELECT + col2 + 62 AS col0 FROM tab0 AS cor0
----
144
63
95

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

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

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

query I rowsort
SELECT ALL + + col2 * 64 * col2 + col0 * - 79 AS col2 FROM tab0 AS cor0
----
-2701
423305
67800

query I rowsort
SELECT ALL - col0 + - 91 * + col1 FROM tab1 cor0
----
-1263
-2369
-974

query I rowsort
SELECT DISTINCT - 3 * col0 FROM tab2
----
-21
-234
-237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 * + col1 col2 FROM tab2
----
-1770
-510
-930

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

query I rowsort
SELECT ALL - 20 FROM tab2 cor0
----
-20
-20
-20

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

query I rowsort
SELECT ALL + ( 2 * + col0 ) FROM tab2
----
14
156
158

query I rowsort
SELECT - 57 * 98 FROM tab0, tab1, tab0 cor0
----
27 values hashing to e3aa95cf1c664b3c13ccd3befce855c9

query I rowsort
SELECT ALL 62 * 82 * - col0 AS col0 FROM tab0
----
-122016
-177940
-452476

onlyif mysql # use DIV operator for integer division
query I rowsort label-115
SELECT ALL + ( 26 ) DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL + ( 26 ) / - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 90 * col1 FROM tab2
----
1530
2790
5310

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

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

query I rowsort
SELECT ALL - 53 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col2 + - 75 * - col0 col2 FROM tab2 AS cor0
----
1254
6526
7369

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-122
SELECT col2 DIV - 36 + + 78 * - col1 FROM tab1 AS cor0
----
-1016
-2029
-781

skipif mysql # not compatible
query I rowsort label-122
SELECT col2 / - 36 + + 78 * - col1 FROM tab1 AS cor0
----
-1016
-2029
-781

query I rowsort
SELECT col0 * ( 33 ) AS col1 FROM tab2 AS cor0
----
231
2574
2607

query I rowsort
SELECT ALL + col1 * 68 AS col2 FROM tab1 AS cor0
----
1768
680
884

query I rowsort
SELECT ALL + + col1 + + col2 + + cor0.col1 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT ALL + col2 * col0 + + col1 * - cor0.col0 * - col0 + - 26 AS col2 FROM tab2 AS cor0
----
109073
1682
360958

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

query I rowsort
SELECT ALL - col0 * col2 + 71 FROM tab1 AS cor0
----
-3577
-7609
-91

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

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

query I rowsort
SELECT DISTINCT - 52 * col2 - 54 FROM tab2
----
-1406
-1458
-2030

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

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

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

query I rowsort
SELECT + col0 * 17 * 72 + - col2 FROM tab0 AS cor0
----
108854
29343
42839

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 * 99 col0 FROM tab2 AS cor0
----
142956
66924
72171

query I rowsort
SELECT DISTINCT col2 + - 85 FROM tab2
----
-47
-58
-59

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

onlyif mysql # use DIV operator for integer division
query I rowsort label-141
SELECT ALL - tab0.col0 DIV col1 + tab0.col0 * col1 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL - tab0.col0 / col1 + tab0.col0 * col1 FROM tab0
----
2064
3395
8099

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 + col0 * col1 FROM tab0
----
2150
3492
8190

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-149
SELECT ALL + tab0.col0 + - col2 * col2 DIV + col0 FROM tab0
----
-21
14
35

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL + tab0.col0 + - col2 * col2 / + col0 FROM tab0
----
-21
14
35

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

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

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

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

skipif mysql # not compatible
query I rowsort label-153
SELECT DISTINCT - col1 - - col1 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

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

query I rowsort
SELECT col1 * col1 + col2 - ( + col1 ) FROM tab2
----
310
3448
957

onlyif mysql # use DIV operator for integer division
query I rowsort label-156
SELECT + 32 DIV + col1 + + CAST( 69 AS SIGNED ) DIV col0 + - 49 col1 FROM tab1
----
-25
-45
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-156
SELECT + 32 / + col1 + + CAST ( 69 AS INTEGER ) / col0 + - 49 col1 FROM tab1
----
-25
-45
-47

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

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

query I rowsort
SELECT DISTINCT 52 * - col0 FROM tab0 AS cor0
----
-1248
-1820
-4628

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

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

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

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

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

query I rowsort
SELECT - ( + 39 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 * - 15 * + col0 col2 FROM tab1 AS cor0
----
-138
-61504
-96080

query I rowsort
SELECT ALL - - ( + ( - cor0.col2 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT - tab1.col1 + 75 FROM tab1, tab2 AS cor0
----
9 values hashing to 14d2541597be5985637864b1cac599ee

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

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

skipif mysql # not compatible
query I rowsort label-169
SELECT DISTINCT - col1 + - col2 / + col0 AS col2 FROM tab2 cor0
----
-17
-34
-59

query I rowsort
SELECT ALL + - col1 + col2 * - ( col2 * col0 + col0 ) FROM tab2 AS cor0
----
-117095
-5323
-54815

query I rowsort
SELECT - 3 * - col1 FROM tab0 cor0
----
258
273
291

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

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

query I rowsort
SELECT ALL + col0 * + col0 * + ( + col0 + col1 ) FROM tab0 AS cor0
----
1425780
161700
63360

onlyif mysql # use DIV operator for integer division
query I rowsort label-175
SELECT DISTINCT + col1 + col0 DIV - 83 AS col1 FROM tab0 AS cor0
----
86
90
97

skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT + col1 + col0 / - 83 AS col1 FROM tab0 AS cor0
----
86
90
97

query I rowsort
SELECT DISTINCT + cor0.col1 * - col2 + - ( col2 ) AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT + - col0 + + col0 * 46 FROM tab0 AS cor0
----
1080
1575
4005

query I rowsort
SELECT DISTINCT - col2 * + ( + 11 ) AS col0 FROM tab0 cor0
----
-11
-363
-902

query I rowsort
SELECT ALL - - cor0.col0 + - cor0.col2 * - 12 FROM tab0 AS cor0
----
1073
420
47

query I rowsort
SELECT + ( - col1 ) * ( - col0 ) + + col2 * + col2 - + col0 FROM tab0
----
14734
3129
3361

query I rowsort
SELECT + col2 + + col2 * col0 + col1 AS col0 FROM tab1 AS cor0
----
242
3715
7789

query I rowsort
SELECT ALL + 82 * 81 FROM tab1 AS cor0
----
6642
6642
6642

query I rowsort
SELECT 7 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to bd991c690468eea3ef45a96817ca3617

query I rowsort
SELECT DISTINCT + - 11 + + cor0.col1 FROM tab2 AS cor0
----
20
48
6

query I rowsort
SELECT col1 * 97 + col1 * + ( + col1 ) + - col1 FROM tab0 cor0
----
15652
17017
18721

query I rowsort
SELECT ALL - col2 * - 94 AS col0 FROM tab2 cor0
----
2444
2538
3572

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

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

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094

query I rowsort
SELECT + 4 + col2 * col2 FROM tab2 AS cor0
----
1448
680
733

query I rowsort
SELECT 94 * 68 FROM tab1
----
6392
6392
6392

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

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

query I rowsort
SELECT DISTINCT 8 * cor0.col2 + cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
486
513
864

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-193
SELECT - + CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + + col2 + 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 + ( col1 ) * col1 + - 87 * col0 col1 FROM tab1 AS cor0
----
-5468
-6791
415

query I rowsort
SELECT DISTINCT + 98 + + col1 FROM tab2 AS cor0
----
115
129
157

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

query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) + - col0 FROM tab0 AS cor0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
1
33
82

query I rowsort
SELECT tab0.col1 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

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

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

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

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

query I rowsort
SELECT DISTINCT 31 + - col2 AS col2 FROM tab1 AS cor0
----
-23
-26
-65

query I rowsort
SELECT - - col0 * col1 + - col0 * - col1 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT DISTINCT - col1 * 74 AS col2 FROM tab0
----
-6364
-6734
-7178

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-209
SELECT DISTINCT + col2 DIV col1 + + col2 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-209
SELECT DISTINCT + col2 / col1 + + col2 FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * cor0.col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
203
2184
3160

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * col0 - cor0.col0 * + cor0.col0 FROM tab1 AS cor0
----
-4736
-7440
-87

query I rowsort
SELECT DISTINCT - - 64 + + col0 * col1 + col0 FROM tab2 AS cor0
----
1486
288
4744

onlyif mysql # use DIV operator for integer division
query I rowsort label-217
SELECT ALL + 7 DIV - tab0.col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL + 7 / - tab0.col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - + ( + col0 ) * - col0 * col0 FROM tab1 AS cor0
----
262144
27
512000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 15 * + col0 * col2 + - col1 * - cor0.col2 col2 FROM tab1 AS cor0
----
116448
3834
55290

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

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

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 WHERE - col1 BETWEEN NULL AND NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE col1 + + col1 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 + - col0 * col0 col0 FROM tab2
----
-45
-6051
-6262

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( col1 )
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT BETWEEN col2 * col2 AND col2 * - col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

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

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

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

query I rowsort
SELECT col1 * col0 + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-237
SELECT + col0 + col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
7
75
77

skipif mysql # not compatible
query I rowsort label-237
SELECT + col0 + col0 / - col1 AS col0 FROM tab2 AS cor0
----
7
75
77

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

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

query I rowsort
SELECT DISTINCT - col2 + col0 * col0 FROM tab0
----
1224
543
7839

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 ) >= ( col1 )
----

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

query III rowsort
SELECT * FROM tab2 WHERE - col1 > col1 + col1
----

query I rowsort
SELECT ALL ( + 44 ) AS col0 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT col0 + 80 AS col1 FROM tab1 AS cor0
----
144
160
83

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

query I rowsort
SELECT col1 + 5 + + tab0.col2 AS col1 FROM tab0
----
103
124
178

query I rowsort
SELECT + col0 * + ( + col0 * col0 ) + - col2 + tab1.col0 FROM tab1
----
-24
262151
511984

query I rowsort
SELECT col2 * - 63 FROM tab1
----
-3402
-3591
-6048

query I rowsort
SELECT DISTINCT 43 + - col0 FROM tab2
----
-35
-36
36

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-254
SELECT col2 + col0 DIV - cor0.col0 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-254
SELECT col2 + col0 / - cor0.col0 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT - 86 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-258
-5504
-6880

query I rowsort
SELECT + col0 * - 68 + - cor0.col1 FROM tab0 AS cor0
----
-1718
-2477
-6143

query I rowsort
SELECT ALL - 62 * + cor0.col2 - - 80 FROM tab1 cor0
----
-3268
-3454
-5872

query I rowsort
SELECT ALL - 77 * + col2 * - col0 + - col1 * col2 + col2 * col0 FROM tab0 AS cor0
----
2633
561782
58938

query I rowsort
SELECT DISTINCT - + 30 + col0 * + col0 FROM tab1 AS cor0
----
-21
4066
6370

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

query I rowsort
SELECT - - 40 * col1 AS col2 FROM tab0 AS cor0
----
3440
3640
3880

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) * + ( cor0.col0 * col1 ) - 90 * - 38 col2 FROM tab2 AS cor0
----
-19411
-268098
-3307

query I rowsort
SELECT DISTINCT 8 FROM tab0, tab0 AS cor0
----
8

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-269
SELECT ( col0 * tab1.col2 ) + col0 DIV + col2 AS col1 FROM tab1
----
162
3649
7680

skipif mysql # not compatible
query I rowsort label-269
SELECT ( col0 * tab1.col2 ) + col0 / + col2 AS col1 FROM tab1
----
162
3649
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 60 col2 FROM tab1
----
124
140
63

query I rowsort
SELECT + 63 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

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

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

query I rowsort
SELECT DISTINCT cor0.col1 + col0 * 6 AS col2 FROM tab0 AS cor0
----
230
307
625

onlyif mysql # use DIV operator for integer division
query I rowsort label-274
SELECT + + col2 * ( - col2 ) + - cor0.col2 + - col0 DIV 10 FROM tab0 AS cor0
----
-1124
-5
-6814

skipif mysql # not compatible
query I rowsort label-274
SELECT + + col2 * ( - col2 ) + - cor0.col2 + - col0 / 10 FROM tab0 AS cor0
----
-1124
-5
-6814

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * ( col1 ) + col2 col0 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-276
SELECT col0 DIV - ( 44 ) AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-276
SELECT col0 / - ( 44 ) AS col0 FROM tab2 AS cor0
----
-1
-1
0

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

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

query I rowsort
SELECT DISTINCT + + col0 + - 52 + 62 FROM tab2 AS cor0
----
17
88
89

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

query I rowsort
SELECT - 55 * col0 AS col2 FROM tab2
----
-385
-4290
-4345

query I rowsort
SELECT + - 73 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1
----
27 values hashing to 2931474b870c05694e446771031a6949

query I rowsort
SELECT 6 + 79 FROM tab0, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * col1 + col0 * col2 * col1 AS col1 FROM tab1 cor0
----
100009
36580
4888

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

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

query I rowsort
SELECT ALL + ( ( col0 ) ) * + col2 + + ( col2 + - ( - 46 ) ) * col2 FROM tab2 AS cor0
----
2160
3900
6194

query I rowsort
SELECT DISTINCT + 58 + + 69 * col1 FROM tab1 cor0
----
1852
748
955

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-293
SELECT ALL + ( + col1 ) DIV col0 + + 76 col0 FROM tab0 AS cor0
----
77
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-293
SELECT ALL + ( + col1 ) / col0 + + 76 col0 FROM tab0 AS cor0
----
77
78
79

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

query I rowsort
SELECT DISTINCT + 94 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
689
7391
7443

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

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

query I rowsort
SELECT DISTINCT + - 52 + col0 * - 45 FROM tab1 AS cor0
----
-187
-2932
-3652

query I rowsort
SELECT + 27 + col2 AS col1 FROM tab2 AS cor0
----
53
54
65

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

query I rowsort
SELECT - 60 FROM tab1
----
-60
-60
-60

query I rowsort
SELECT + 11 + + col2 AS col1 FROM tab1
----
107
65
68

query I rowsort
SELECT + col2 * cor0.col2 + - col1 * - col1 FROM tab0 AS cor0
----
15005
8485
9410

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

query I rowsort
SELECT DISTINCT - col0 * 57 + - ( - col0 * ( 60 ) ) FROM tab0 AS cor0
----
105
267
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-306
SELECT ALL - - col0 + + CAST( - 84 AS SIGNED ) DIV - col1 + + 60 * - col2 FROM tab1 cor0
----
-3234
-3348
-5674

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL - - col0 + + CAST ( - 84 AS INTEGER ) / - col1 + + 60 * - col2 FROM tab1 cor0
----
-3234
-3348
-5674

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

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

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

query I rowsort
SELECT + col2 + - 34 FROM tab2 AS cor0
----
-7
-8
4

query I rowsort
SELECT DISTINCT + col1 * 27 FROM tab1 AS cor0
----
270
351
702

query I rowsort
SELECT - + col1 * 92 FROM tab2 AS cor0
----
-1564
-2852
-5428

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 59 + - col0 * col2 col2 FROM tab0 AS cor0
----
-1929
4282
5688

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

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

query I rowsort
SELECT + col0 * ( ( + col2 ) * col0 ) + col2 FROM tab2 AS cor0
----
1350
158210
237196

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

query I rowsort
SELECT + - 88 FROM tab0 AS cor0
----
-88
-88
-88

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

query I rowsort
SELECT + + 24 * - col0 FROM tab1 AS cor0
----
-1536
-1920
-72

query I rowsort
SELECT DISTINCT cor0.col1 + + 4 AS col2 FROM tab1 AS cor0
----
14
17
30

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

query I rowsort
SELECT + 45 + tab1.col0 FROM tab1
----
109
125
48

query I rowsort
SELECT DISTINCT 57 + - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-2
26
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 * + 52 col0 FROM tab2 cor0
----
105456
156104
9828

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

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

query I rowsort
SELECT 83 * col2 + col2 * - col2 AS col0 FROM tab0 AS cor0
----
1650
82
82

query I rowsort
SELECT - 43 + - col2 AS col1 FROM tab0 AS cor0
----
-125
-44
-76

query I rowsort
SELECT 28 + + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-10
1
2

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

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

query I rowsort
SELECT ALL + 3 AS col1 FROM tab0
----
3
3
3

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

query I rowsort
SELECT - + ( 30 ) + col0 * col0 AS col2 FROM tab2 AS cor0
----
19
6054
6211

query I rowsort
SELECT - 81 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

query I rowsort
SELECT + 37 * - 4 AS col2 FROM tab0
----
-148
-148
-148

query I rowsort
SELECT tab1.col2 * col1 * - col2 FROM tab1
----
-119808
-32490
-75816

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

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

query I rowsort
SELECT ALL - 69 * - cor0.col0 * col1 + + 34 * cor0.col1 + col1 FROM tab2 AS cor0
----
16058
319603
93262

query I rowsort
SELECT DISTINCT - ( + col2 ) - 5 AS col2 FROM tab0 AS cor0
----
-38
-6
-87

query I rowsort
SELECT + + col0 * col0 + 47 AS col2 FROM tab2 AS cor0
----
6131
6288
96

query I rowsort
SELECT - ( 15 * col2 ) FROM tab1
----
-1440
-810
-855

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

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

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

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

query I rowsort
SELECT - + cor0.col2 + - col2 * - 9 FROM tab0 AS cor0
----
264
656
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-346
SELECT col1 DIV + 93 + - tab0.col0 FROM tab0
----
-24
-34
-89

skipif mysql # not compatible
query I rowsort label-346
SELECT col1 / + 93 + - tab0.col0 FROM tab0
----
-24
-34
-89

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

query I rowsort
SELECT - col2 * ( 32 ) FROM tab2 AS cor0
----
-1216
-832
-864

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

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

query I rowsort
SELECT - 5 - - col1 FROM tab2 AS cor0
----
12
26
54

query I rowsort
SELECT + ( 63 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1638
-630
-819

query I rowsort
SELECT col2 * 74 * col2 - + col0 FROM tab1 AS cor0
----
215781
240362
681904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - 12 col0 FROM tab1 AS cor0
----
-108
-66
-69

query I rowsort
SELECT col0 * - 95 FROM tab2
----
-665
-7410
-7505

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-356
SELECT - col1 DIV - 47 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-356
SELECT - col1 / - 47 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 - 37 AS col2 FROM tab1 cor0
----
-34
27
43

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

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

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

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

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

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

query I rowsort
SELECT ALL col2 * col2 - col1 AS col1 FROM tab2 AS cor0
----
1427
617
698

onlyif mysql # use DIV operator for integer division
query I rowsort label-364
SELECT - cor0.col0 + + 22 DIV - col0 FROM tab1 AS cor0
----
-10
-64
-80

skipif mysql # not compatible
query I rowsort label-364
SELECT - cor0.col0 + + 22 / - col0 FROM tab1 AS cor0
----
-10
-64
-80

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

query I rowsort
SELECT ALL + 18 - - col1 * + col2 FROM tab1 AS cor0
----
1266
1422
588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 32 * col1 * - col2 + cor0.col0 col0 FROM tab2 cor0
----
-20593
-26777
-49010

onlyif mysql # use DIV operator for integer division
query I rowsort label-368
SELECT 20 + col1 DIV 45 FROM tab2
----
20
20
21

skipif mysql # not compatible
query I rowsort label-368
SELECT 20 + col1 / 45 FROM tab2
----
20
20
21

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-372
SELECT col2 * - col2 + col0 DIV col2 FROM tab1 cor0
----
-2916
-3248
-9216

skipif mysql # not compatible
query I rowsort label-372
SELECT col2 * - col2 + col0 / col2 FROM tab1 cor0
----
-2916
-3248
-9216

query I rowsort
SELECT DISTINCT 73 * + col0 AS col0 FROM tab0
----
1752
2555
6497

query I rowsort
SELECT DISTINCT + col2 * col2 * + 94 FROM tab2 cor0
----
135736
63544
68526

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

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

query I rowsort
SELECT DISTINCT col1 + - 45 - 49 FROM tab1 cor0
----
-68
-81
-84

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

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL + col0 / 46 FROM tab1 cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-379
SELECT ALL + - col1 * + CAST( + col1 AS SIGNED ) DIV - col1 - + ( col1 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-379
SELECT ALL + - col1 * + CAST ( + col1 AS INTEGER ) / - col1 - + ( col1 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + + 9 * - 88 FROM tab2 AS cor0
----
-809
-823
-851

skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 + CAST ( - col1 AS REAL ) FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT + + col2 * 49 AS col0 FROM tab1 AS cor0
----
2646
2793
4704

query I rowsort
SELECT DISTINCT + col0 + col1 * 95 + + col2 AS col0 FROM tab0 AS cor0
----
8227
8816
9251

query I rowsort
SELECT ALL - col0 + - 19 FROM tab2 AS cor0
----
-26
-97
-98

query I rowsort
SELECT ALL + - col0 + 81 AS col2 FROM tab1 AS cor0
----
1
17
78

query I rowsort
SELECT ALL - col1 * + 94 + + col0 FROM tab1 AS cor0
----
-1142
-2441
-876

query I rowsort
SELECT DISTINCT + - col1 + 7 AS col2 FROM tab0 AS cor0
----
-79
-84
-90

query I rowsort
SELECT ALL - col2 * ( - col2 * + cor0.col2 ) AS col0 FROM tab1 cor0
----
157464
185193
884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 70 col1 FROM tab1 AS cor0
----
-124
-127
-166

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-390
SELECT + + cor0.col2 * col2 + + cor0.col2 * CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
13448
2
2178

skipif mysql # not compatible
query I rowsort label-390
SELECT + + cor0.col2 * col2 + + cor0.col2 * CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
13448
2
2178

query I rowsort
SELECT + col2 * - 56 + col0 FROM tab1 AS cor0
----
-3021
-3128
-5296

query I rowsort
SELECT ALL + col1 + + 52 * - col0 FROM tab0
----
-1162
-1723
-4537

onlyif mysql # use DIV operator for integer division
query I rowsort label-393
SELECT + col0 * - col2 + col0 DIV ( 49 ) FROM tab2 AS cor0
----
-189
-2027
-3001

skipif mysql # not compatible
query I rowsort label-393
SELECT + col0 * - col2 + col0 / ( 49 ) FROM tab2 AS cor0
----
-189
-2027
-3001

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

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

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + cor0.col1 * - cor0.col0 FROM tab2 AS cor0
----
-1305
-190
-4576

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 + + col2 * col2 col2 FROM tab0 AS cor0
----
1170
6805
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-398
SELECT - 31 + - col1 DIV col1 FROM tab2 AS cor0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-398
SELECT - 31 + - col1 / col1 FROM tab2 AS cor0
----
-32
-32
-32

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - 50 + + col1 FROM tab2 AS cor0
----
-19
-33
9

query I rowsort
SELECT ALL - - 11 * + col0 FROM tab2 AS cor0
----
77
858
869

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-409
SELECT - 48 DIV + col2 + + col0 + col0 FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-409
SELECT - 48 / + col2 + + col0 + col0 FROM tab1 AS cor0
----
128
160
6

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-411
SELECT DISTINCT - - col0 * + col1 + col2 * col0 DIV col0 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

skipif mysql # not compatible
query I rowsort label-411
SELECT DISTINCT - - col0 * + col1 + col2 * col0 / col0 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT col1 * col1 * ( - col1 + + col2 ) AS col2 FROM tab2 AS cor0
----
-114873
-3844
6069

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

query I rowsort
SELECT ALL + col2 * col1 + - 27 FROM tab0 AS cor0
----
2811
70
7435

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

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

query I rowsort
SELECT + 90 + + col0 AS col0 FROM tab1 AS cor0
----
154
170
93

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

query I rowsort
SELECT ( - 22 + col2 ) FROM tab2
----
16
4
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-420
SELECT + col2 + col0 DIV CAST( - 64 AS SIGNED ) FROM tab2
----
25
27
37

skipif mysql # not compatible
query I rowsort label-420
SELECT + col2 + col0 / CAST ( - 64 AS INTEGER ) FROM tab2
----
25
27
37

query I rowsort
SELECT ALL 77 + + col1 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
139
139
79

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

query I rowsort
SELECT 43 * col1 + col2 AS col1 FROM tab2 AS cor0
----
1360
2563
769

query I rowsort
SELECT ALL + 97 + col2 * cor0.col0 FROM tab2 AS cor0
----
2125
286
3099

query I rowsort
SELECT - tab2.col0 - 26 FROM tab2
----
-104
-105
-33

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * 74 col0 FROM tab0 AS cor0
----
2442
6068
74

query I rowsort
SELECT 11 * cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b3b218c33383236135097f276c34a8d

query I rowsort
SELECT ALL + 75 FROM tab0
----
75
75
75

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

skipif mysql # not compatible
query I rowsort label-430
SELECT + 33 / + 17 + - col2 AS col0 FROM tab2
----
-25
-26
-37

query I rowsort
SELECT DISTINCT + 85 + col2 AS col2 FROM tab2
----
111
112
123

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-432
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - + 97 * - cor0.col2 + - col0 AS col2 FROM tab1 AS cor0
----
5235
5465
9232

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

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

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

query I rowsort
SELECT ALL 35 + col2 * - col1 FROM tab0 AS cor0
----
-2803
-62
-7427

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-438
SELECT DISTINCT + col2 * cor0.col2 * col0 + - col0 DIV col2 AS col2 FROM tab1 AS cor0
----
207935
737280
8748

skipif mysql # not compatible
query I rowsort label-438
SELECT DISTINCT + col2 * cor0.col2 * col0 + - col0 / col2 AS col2 FROM tab1 AS cor0
----
207935
737280
8748

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

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

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

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

query I rowsort
SELECT + col1 * 48 + + col1 + - col1 FROM tab1 AS cor0
----
1248
480
624

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-445
SELECT - col0 + + col1 DIV - 16 + col1 FROM tab1 AS cor0
----
-54
-67
22

skipif mysql # not compatible
query I rowsort label-445
SELECT - col0 + + col1 / - 16 + col1 FROM tab1 AS cor0
----
-54
-67
22

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

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

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

query I rowsort
SELECT + 83 * col2 + - col2 * ( 52 ) FROM tab2 AS cor0
----
1178
806
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-449
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-449
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT ALL + + 53 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT - + 64 + + 8 FROM tab1 AS cor0
----
-56
-56
-56

query I rowsort
SELECT + col1 + ( - col2 ) * col0 * 77 AS col0 FROM tab1
----
-12448
-280886
-591347

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL tab0.col0 / + col2 + + col1 FROM tab0
----
132
86
92

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

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

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

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

query I rowsort
SELECT ALL - 48 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2558735eaa258a08592aef9d33020c18

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

query I rowsort
SELECT DISTINCT ( col1 ) * 16 FROM tab2
----
272
496
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 + - 22 * - col0 col1 FROM tab2 AS cor0
----
2384
3250
991

query I rowsort
SELECT + - cor0.col1 * col1 + - col0 * col1 * + ( col2 ) FROM tab2 cor0
----
-123133
-51323
-6820

query I rowsort
SELECT DISTINCT + col2 + 69 AS col0 FROM tab0 AS cor0
----
102
151
70

query I rowsort
SELECT - col2 * - cor0.col2 + 25 FROM tab2 AS cor0
----
1469
701
754

query I rowsort
SELECT DISTINCT 42 - 39 FROM tab0, tab2 AS cor0
----
3

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

query I rowsort
SELECT DISTINCT tab1.col2 * - col1 - - col1 * + col1 FROM tab1
----
-1079
-470
-728

query I rowsort
SELECT ALL + 31 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 + + 46 + col1 col0 FROM tab2
----
-16
27
70

query I rowsort
SELECT + - col1 + - col1 * + ( - 59 ) AS col0 FROM tab1 AS cor0
----
1508
580
754

query I rowsort
SELECT ALL + ( + col2 ) + 5 FROM tab0 AS cor0
----
38
6
87

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

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

query I rowsort
SELECT - 77 * - col2 * - col0 FROM tab2 AS cor0
----
-14553
-156156
-231154

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

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

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

query I rowsort
SELECT ALL + + 56 * - col2 FROM tab1 AS cor0
----
-3024
-3192
-5376

query I rowsort
SELECT - col0 * col0 * - ( - 29 * + col0 ) FROM tab0 AS cor0
----
-1243375
-20444101
-400896

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

query I rowsort
SELECT - 58 * + col0 AS col2 FROM tab0 AS cor0
----
-1392
-2030
-5162

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

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

query I rowsort
SELECT DISTINCT + tab0.col0 * + col1 + col0 * + tab0.col0 * - col1 FROM tab0 WHERE NOT col2 + tab0.col0 IN ( col1 / col1 )
----
-115430
-47472
-712712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 + - col1 col0 FROM tab2 AS cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col0 col0 FROM tab2 AS cor0
----
14
156
158

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

query I rowsort
SELECT DISTINCT + + 13 + col1 FROM tab0 AS cor0
----
104
110
99

query I rowsort
SELECT - 73 + col1 FROM tab0 AS cor0
----
13
18
24

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

query I rowsort
SELECT col2 * col2 * - col2 FROM tab1
----
-157464
-185193
-884736

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

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

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

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

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

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

query I rowsort
SELECT ALL - tab2.col0 * + col2 AS col0 FROM tab2
----
-189
-2028
-3002

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

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

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL + CAST ( NULL AS REAL ) AS col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

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

query I rowsort
SELECT ALL + + 27 * col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
1671
538
844

query I rowsort
SELECT ALL + col0 + + col2 + 64 AS col1 FROM tab0 AS cor0
----
100
121
235

onlyif mysql # use DIV operator for integer division
query I rowsort label-508
SELECT - 14 + cor0.col1 DIV + col1 + - col0 FROM tab0 AS cor0
----
-102
-37
-48

skipif mysql # not compatible
query I rowsort label-508
SELECT - 14 + cor0.col1 / + col1 + - col0 FROM tab0 AS cor0
----
-102
-37
-48

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col1 - + col1 col2 FROM tab1
----
3
64
80

query I rowsort
SELECT tab0.col1 * col1 + + col0 + col2 * col0 FROM tab0
----
15668
8212
9479

query I rowsort
SELECT col0 FROM tab0 WHERE ( NULL ) IN ( - col0 / + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 * col0 - col2 ) BETWEEN col0 * + col2 AND NULL
----
79
17
38

query I rowsort
SELECT col1 + + col2 + + col1 AS col2 FROM tab1
----
106
122
77

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 - + col2 <> NULL
----

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-518
SELECT ALL - col2 * + col0 DIV tab1.col0 AS col0 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL - col2 * + col0 / tab1.col0 AS col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col1 + - col2 + + col1 AS col0 FROM tab0
----
100
139
193

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

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

onlyif mysql # use DIV operator for integer division
query III rowsort label-522
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col0 + + col0 ) IN ( col0 DIV col2 )
----
24
86
33

skipif mysql # not compatible
query III rowsort label-522
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col0 + + col0 ) IN ( col0 / col2 )
----
24
86
33

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-525
SELECT col0 DIV + col0 + col1 DIV col2 col2 FROM tab0
----
2
3
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-525
SELECT col0 / + col0 + col1 / col2 col2 FROM tab0
----
2
3
98

query I rowsort
SELECT ALL + col1 + - col2 - + col2 * - tab1.col0 AS col1 FROM tab1
----
134
3601
7597

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

query I rowsort
SELECT col2 FROM tab1 WHERE ( - col1 ) IN ( col2 - col2 )
----

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

query I rowsort
SELECT DISTINCT - col2 * col1 - tab0.col1 * - col1 AS col2 FROM tab0
----
4558
819
9312

query III rowsort
SELECT * FROM tab1 WHERE + col0 > NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE ( NULL ) BETWEEN ( col0 ) AND + col0 * - col0 + col2
----

query I rowsort
SELECT - col2 * + col2 + col1 * col2 * - col1 FROM tab1
----
-25440
-39420
-8949

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * col1 + tab2.col1 col2 FROM tab2
----
22848
271577
6758

query I rowsort
SELECT ALL col1 * tab0.col1 + + col2 * + col1 * + col2 FROM tab0
----
101050
620165
9506

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

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

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

query I rowsort
SELECT - - col1 * 49 FROM tab0 AS cor0
----
4214
4459
4753

query I rowsort
SELECT + col2 * + col2 + + col1 * + ( + col0 ) + cor0.col1 * + col2 FROM tab2 AS cor0
----
1783
3433
6812

query I rowsort
SELECT + 75 - - 52 AS col0 FROM tab1 AS cor0
----
127
127
127

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

query I rowsort
SELECT + + 45 + + col1 AS col2 FROM tab1 AS cor0
----
55
58
71

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-547
SELECT - - col2 DIV col2 + col0 * + cor0.col1 + + col0 * col0 col2 FROM tab0 AS cor0
----
16021
2641
4621

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-547
SELECT - - col2 / col2 + col0 * + cor0.col1 + + col0 * col0 col2 FROM tab0 AS cor0
----
16021
2641
4621

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

query I rowsort
SELECT ALL - col2 * - col0 + col1 * 52 + + col0 AS col2 FROM tab1
----
1517
4232
8436

onlyif mysql # use DIV operator for integer division
query I rowsort label-550
SELECT - 34 DIV cor0.col1 + col2 DIV cor0.col1 col0 FROM tab1 AS cor0
----
1
2
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-550
SELECT - 34 / cor0.col1 + col2 / cor0.col1 col0 FROM tab1 AS cor0
----
1
2
5

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-553
SELECT col2 * CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-553
SELECT col2 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

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

query I rowsort
SELECT DISTINCT + cor0.col1 * ( 78 * col1 ) FROM tab1 AS cor0
----
13182
52728
7800

query I rowsort
SELECT DISTINCT - col2 * cor0.col0 + + col0 * - col1 FROM tab2 AS cor0
----
-406
-4345
-6630

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-558
SELECT ALL + col0 * - col0 DIV col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-558
SELECT ALL + col0 * - col0 / col0 FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( - 89 ) col1 FROM tab2 AS cor0
----
-2314
-2403
-3382

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - cor0.col1 * CAST ( - col1 AS REAL ) AS col1 FROM tab1 AS cor0
----
100
169
676

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

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

query I rowsort
SELECT - col1 * ( 97 ) FROM tab2 AS cor0
----
-1649
-3007
-5723

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

query I rowsort
SELECT + col1 * - col0 * 52 + - col0 FROM tab2
----
-11291
-239382
-69915

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

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

query I rowsort
SELECT + - col2 + + 39 * + col2 * - cor0.col2 FROM tab0 cor0
----
-262318
-40
-42504

query I rowsort
SELECT ALL col1 * ( - 96 ) AS col0 FROM tab1
----
-1248
-2496
-960

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

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

query I rowsort
SELECT ALL col1 * - ( 56 ) FROM tab2
----
-1736
-3304
-952

query I rowsort
SELECT ALL + cor1.col1 FROM tab2, tab0 AS cor0, tab1, tab0 cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT ALL - 47 + col1 FROM tab2
----
-16
-30
12

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-574
SELECT 61 DIV + 32 + + col1 * + col0 FROM tab1
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-574
SELECT 61 / + 32 + + col1 * + col0 FROM tab1
----
1041
641
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-575
SELECT - 49 DIV - tab0.col0 AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-575
SELECT - 49 / - tab0.col0 AS col0 FROM tab0
----
0
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-576
SELECT ( 18 ) DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-576
SELECT ( 18 ) / - col1 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT ALL 38 * + col1 AS col1 FROM tab1 AS cor0
----
380
494
988

query I rowsort
SELECT DISTINCT + 52 + + col0 FROM tab2 AS cor0
----
130
131
59

query I rowsort
SELECT ALL + 2 * + cor0.col0 * col0 - + col1 FROM tab1 AS cor0
----
-8
12787
8182

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 * col1 col1 FROM tab1 AS cor0
----
-230
-299
-598

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

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

query I rowsort
SELECT ALL 42 AS col0 FROM tab1
----
42
42
42

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col1 AS REAL ) AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT + ( tab0.col1 ) AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL 19 FROM tab2, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

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

query I rowsort
SELECT + - col0 * + cor0.col1 + col1 + - col2 AS col2 FROM tab0 AS cor0
----
-2011
-3299
-8090

query I rowsort
SELECT - + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT + 40 AS col0 FROM tab1
----
40
40
40

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

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

query I rowsort
SELECT cor0.col1 * col1 + col1 * col0 * - col2 AS col0 FROM tab0 AS cor0
----
-60716
-655837
6014

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( 16 ) + + col1 + - col1 * col2 col0 FROM tab0 AS cor0
----
-3136
-560
-8795

query I rowsort
SELECT ALL - col1 * + col2 + 24 FROM tab2 AS cor0
----
-1510
-622
-813

query I rowsort
SELECT ALL - 19 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT - col0 * col0 - col2 AS col2 FROM tab2
----
-6110
-6279
-76

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 11 * col0 AS col1 FROM tab1
----
33
704
880

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 + col1 AND NULL OR col2 IN ( + cor0.col1 / - col2 + col1 )
----

query I rowsort
SELECT - col1 * + col2 - col0 * col1 FROM tab1
----
-1210
-1482
-2288

query I rowsort
SELECT + + cor0.col2 + + col2 * col0 + col1 FROM tab1 AS cor0
----
242
3715
7789

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

query I rowsort
SELECT ALL - col0 + col1 + - col2 AS col0 FROM tab0
----
-80
29
61

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

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

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL + cor0.col2 + - CAST ( NULL AS REAL ) / col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + + col2 + ( 41 ) AS col2 FROM tab0 cor0
----
123
42
74

query I rowsort
SELECT ALL - - col1 * - ( + 33 ) FROM tab2 cor0
----
-1023
-1947
-561

query I rowsort
SELECT - col2 * 32 + - 76 FROM tab2 AS cor0
----
-1292
-908
-940

query I rowsort
SELECT - col2 * + 39 + cor0.col1 FROM tab0 AS cor0
----
-1201
-3107
58

query I rowsort
SELECT ALL col2 + + 2 FROM tab0 AS cor0
----
3
35
84

query I rowsort
SELECT ALL - col0 + - col1 * col1 * col1 AS col0 FROM tab1 AS cor0
----
-1064
-17579
-2277

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

query I rowsort
SELECT DISTINCT + col1 + col2 * 85 AS col2 FROM tab2
----
2269
2326
3247

onlyif mysql # use DIV operator for integer division
query I rowsort label-631
SELECT - col0 DIV col1 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4102
-6406
-9

skipif mysql # not compatible
query I rowsort label-631
SELECT - col0 / col1 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4102
-6406
-9

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

skipif mysql # not compatible
query I rowsort label-632
SELECT + cor0.col0 / + ( + col0 + 49 ) FROM tab1 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-633
SELECT - ( col0 ) / col2 FROM tab0 AS cor0
----
-1
-35
0

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

query I rowsort
SELECT tab1.col1 + 59 AS col1 FROM tab1
----
69
72
85

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-637
SELECT ALL + col1 DIV tab2.col0 + col0 * + col1 + + 40 * - col0 * col0 col1 FROM tab2
----
-1739
-238758
-248297

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-637
SELECT ALL + col1 / tab2.col0 + col0 * + col1 + + 40 * - col0 * col0 col1 FROM tab2
----
-1739
-238758
-248297

query I rowsort
SELECT ALL + cor0.col2 + - 99 AS col2 FROM tab2 AS cor0
----
-61
-72
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-639
SELECT DISTINCT + col0 + 17 * col2 DIV + col0 AS col2 FROM tab0
----
104
35
47

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT + col0 + 17 * col2 / + col0 AS col2 FROM tab0
----
104
35
47

query I rowsort
SELECT + col0 + ( col1 ) * col2 FROM tab1
----
1328
1407
634

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

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT col0 * 41 + + col1 * - col2 + CAST ( - col0 AS INTEGER ) * col1 FROM tab2
----
-2938
-767
1250

query I rowsort
SELECT + + 33 * cor0.col1 * 21 AS col0 FROM tab0 AS cor0
----
59598
63063
67221

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

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

query I rowsort
SELECT + 38 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

onlyif mysql # use DIV operator for integer division
query I rowsort label-645
SELECT ALL - - col1 DIV - col0 + - col0 - - cor0.col1 col1 FROM tab2 AS cor0
----
-19
-62
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-645
SELECT ALL - - col1 / - col0 + - col0 - - cor0.col1 col1 FROM tab2 AS cor0
----
-19
-62
20

query I rowsort
SELECT ALL 7 + - col1 FROM tab2 AS cor0
----
-10
-24
-52

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

query I rowsort
SELECT ALL - - 64 - col0 FROM tab0 AS cor0
----
-25
29
40

query I rowsort
SELECT DISTINCT 2 + - col2 AS col1 FROM tab1 AS cor0
----
-52
-55
-94

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

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

query I rowsort
SELECT ALL - 11 * col2 - 53 AS col1 FROM tab2 AS cor0
----
-339
-350
-471

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-652
SELECT ALL ( col2 ) * CAST( col1 AS SIGNED ) + col2 * col0 FROM tab2
----
1026
3562
3648

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL ( col2 ) * CAST ( col1 AS INTEGER ) + col2 * col0 FROM tab2
----
1026
3562
3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 + 28 + + 52 * col0 col0 FROM tab0 cor0
----
-2068
1847
187

query I rowsort
SELECT DISTINCT - - 46 AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT 32 * - col0 + col1 AS col2 FROM tab0 AS cor0
----
-1023
-2757
-682

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-659
SELECT - + 96 DIV + col2 + 14 AS col0 FROM tab1 AS cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-659
SELECT - + 96 / + col2 + 14 AS col0 FROM tab1 AS cor0
----
13
13
13

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

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

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

query I rowsort
SELECT - col1 * + col1 + col1 FROM tab1
----
-156
-650
-90

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-665
SELECT 83 + - col2 DIV + tab1.col0 AS col0 FROM tab1
----
65
82
83

skipif mysql # not compatible
query I rowsort label-665
SELECT 83 + - col2 / + tab1.col0 AS col0 FROM tab1
----
65
82
83

query I rowsort
SELECT + cor0.col0 * - col0 * 59 FROM tab1 AS cor0
----
-241664
-377600
-531

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

query I rowsort
SELECT - 57 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

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

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

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

query I rowsort
SELECT + col1 * cor0.col2 * 28 FROM tab1 AS cor0
----
15960
34944
39312

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

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

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

query I rowsort
SELECT + col0 * + col2 - - col2 * col2 AS col1 FROM tab0 AS cor0
----
14022
1881
36

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

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

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

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

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

query I rowsort
SELECT ALL col2 * - 33 AS col1 FROM tab2 AS cor0
----
-1254
-858
-891

query I rowsort
SELECT + + col0 + + 61 AS col0 FROM tab0 AS cor0
----
150
85
96

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

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

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

query I rowsort
SELECT + col0 + 25 AS col1 FROM tab0 AS cor0
----
114
49
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-686
SELECT DISTINCT + 63 + + col1 DIV + col0 FROM tab1 AS cor0
----
63
71

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT + 63 + + col1 / + col0 FROM tab1 AS cor0
----
63
71

query I rowsort
SELECT - col0 + col1 * + col1 FROM tab1 AS cor0
----
36
673
89

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

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

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

skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT CAST ( NULL AS REAL ) * - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + ( + col2 ) * col1 * + col1 + + col0 AS col1 FROM tab0
----
244092
679131
9444

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

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

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

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

query I rowsort
SELECT ALL - ( 96 ) FROM tab1
----
-96
-96
-96

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

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

query I rowsort
SELECT - col1 + 82 FROM tab0 AS cor0
----
-15
-4
-9

query I rowsort
SELECT - - 66 * 9 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b459be5af057ddbed7c9f871da3b621

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

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

query I rowsort
SELECT DISTINCT + 3 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
3

query I rowsort
SELECT ALL + 88 + 5 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT ALL col1 + 43 FROM tab0
----
129
134
140

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

skipif mysql # not compatible
query I rowsort label-703
SELECT ( cor1.col1 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-704
SELECT DISTINCT col1 DIV + col1 + - col0 FROM tab2
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT col1 / + col1 + - col0 FROM tab2
----
-6
-77
-78

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

query I rowsort
SELECT col1 * - col1 + 31 AS col1 FROM tab2 AS cor0
----
-258
-3450
-930

query I rowsort
SELECT + col1 + + tab2.col2 * col2 AS col0 FROM tab2
----
1461
735
760

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 - col2 * + col1 * + col2 AS col2 FROM tab2 AS cor0
----
-22630
-24565
-39943

query I rowsort
SELECT DISTINCT + - 34 - col2 * col1 FROM tab0 AS cor0
----
-131
-2872
-7496

query I rowsort
SELECT ALL - cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

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

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

query I rowsort
SELECT + - col0 * col2 + 14 FROM tab1 AS cor0
----
-148
-3634
-7666

query I rowsort
SELECT - 65 * + tab1.col2 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 9af8dbbf5ebf8ac7a98a5fe43134d5a3

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

query I rowsort
SELECT 14 AS col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

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

query I rowsort
SELECT - ( cor0.col0 ) + + 57 * - col1 FROM tab1 cor0
----
-1485
-634
-821

query I rowsort
SELECT DISTINCT + + cor0.col2 + + col2 * 38 AS col2 FROM tab1 AS cor0
----
2106
2223
3744

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

query I rowsort
SELECT ALL col2 - - col2 FROM tab1 AS cor0
----
108
114
192

skipif mysql # not compatible
query I rowsort
SELECT col2 * ( cor0.col2 ) + - col0 * - CAST ( - col0 * col1 AS REAL ) AS col1 FROM tab0 AS cor0
----
-118824
-48447
-714087

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

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

query I rowsort
SELECT + cor0.col2 * col2 + col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT col1 + ( 88 ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
1157
2314
890

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT DISTINCT - 88 - col2 FROM tab2
----
-114
-115
-126

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

query I rowsort
SELECT col2 * - col0 + - col2 + + 9 * tab0.col1 FROM tab0
----
-51
-6561
837

query I rowsort
SELECT DISTINCT 50 FROM tab0, tab1 cor0 CROSS JOIN tab2
----
50

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-738
SELECT DISTINCT col1 DIV 71 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT col1 / 71 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + - col2 * 41 FROM tab0 AS cor0
----
-1353
-3362
-41

query I rowsort
SELECT 73 * - col0 AS col2 FROM tab2 AS cor0
----
-511
-5694
-5767

query I rowsort
SELECT DISTINCT - ( 75 ) * cor0.col0 FROM tab2 AS cor0
----
-525
-5850
-5925

query I rowsort
SELECT DISTINCT - 76 + - cor0.col0 FROM tab0 AS cor0
----
-100
-111
-165

query I rowsort
SELECT ALL + 75 * + col2 + col1 FROM tab2 AS cor0
----
2009
2056
2867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - 59 col0 FROM tab2 AS cor0
----
137
138
66

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-747
SELECT - CAST( col0 AS SIGNED ) + - col2 col1 FROM tab2 AS cor0
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-747
SELECT - CAST ( col0 AS INTEGER ) + - col2 col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT + cor0.col1 * + 13 FROM tab0 AS cor0
----
1118
1183
1261

query I rowsort
SELECT DISTINCT + 97 * - col1 + + col0 AS col2 FROM tab0 AS cor0
----
-8318
-8738
-9374

query I rowsort
SELECT - 62 + col0 AS col2 FROM tab0 AS cor0
----
-27
-38
27

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

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

query I rowsort
SELECT ALL + - col2 + - col1 + - col1 * 90 AS col1 FROM tab1 AS cor0
----
-1279
-2420
-967

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

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

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

query I rowsort
SELECT 27 * - col2 + + col0 - - col0 AS col1 FROM tab0
----
-2036
-843
43

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

query I rowsort
SELECT ALL 87 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 + - col2 col1 FROM tab0 AS cor0
----
-26
-75
6

query I rowsort
SELECT ALL - cor0.col0 + ( + col0 * cor0.col2 ) + + col1 FROM tab2 AS cor0
----
2009
213
2940

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

query I rowsort
SELECT DISTINCT - col2 * 90 + col0 - col2 FROM tab2 AS cor0
----
-2288
-2450
-3379

query I rowsort
SELECT - cor0.col1 * + 8 FROM tab2 AS cor0
----
-136
-248
-472

query I rowsort
SELECT DISTINCT col2 * + col1 * - 83 FROM tab0 AS cor0
----
-235554
-619346
-8051

query I rowsort
SELECT - cor0.col1 * col2 * + ( col0 * + col0 ) FROM tab2 AS cor0
----
-4031686
-41013
-9332856

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

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

query I rowsort
SELECT + 76 + col0 * + col0 * - 62 FROM tab0 cor0
----
-35636
-491026
-75874

query I rowsort
SELECT ALL + ( - 60 ) + col2 AS col0 FROM tab2 AS cor0
----
-22
-33
-34

query I rowsort
SELECT - ( - 63 ) * - cor0.col1 FROM tab1 AS cor0
----
-1638
-630
-819

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col2 ) col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL cor0.col1 + 87 AS col2 FROM tab2 AS cor0
----
104
118
146

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

query I rowsort
SELECT ALL + 98 * ( + col1 ) AS col2 FROM tab2 AS cor0
----
1666
3038
5782

query I rowsort
SELECT DISTINCT cor0.col0 + - 73 FROM tab1 cor0
----
-70
-9
7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-777
SELECT CAST ( col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
17
31
59

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-779
SELECT 13 * + cor0.col1 DIV col1 AS col2 FROM tab2 AS cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-779
SELECT 13 * + cor0.col1 / col1 AS col2 FROM tab2 AS cor0
----
13
13
13

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

query I rowsort
SELECT ALL ( 37 ) * - col1 FROM tab0
----
-3182
-3367
-3589

query I rowsort
SELECT - - ( - 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-783
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2, tab0, tab0 cor0
----
NULL

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

query I rowsort
SELECT DISTINCT 67 * + col0 FROM tab1
----
201
4288
5360

query I rowsort
SELECT ALL - col2 * - col2 * col2 AS col0 FROM tab1 AS cor0
----
157464
185193
884736

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

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL ( + ( + cor0.col0 ) ) * CAST ( col1 AS INTEGER ) + - col0 FROM tab0 cor0
----
2040
3360
8010

query I rowsort
SELECT ( + tab0.col2 * ( - tab0.col1 ) ) + - col1 * + col1 * tab0.col1 AS col1 FROM tab0
----
-638894
-761033
-912770

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

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL col0 * col2 + + ( + ( col1 ) * - CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab1.col0 col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + col1 * col0 + col2 * col1 AS col2 FROM tab0
----
15561
3492
4902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 + col2 col0 FROM tab1
----
52
55
94

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

query I rowsort
SELECT col2 + + col1 + 82 * col0 AS col1 FROM tab0
----
2087
2968
7471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 + col1 col2 FROM tab1 AS cor0
----
1261
1430
580

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-796
SELECT + 83 * + col1 * + CAST( + col1 AS SIGNED ) FROM tab0
----
613868
687323
780947

skipif mysql # not compatible
query I rowsort label-796
SELECT + 83 * + col1 * + CAST ( + col1 AS INTEGER ) FROM tab0
----
613868
687323
780947

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

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

query I rowsort
SELECT + - col1 * + 65 + + col0 + col0 FROM tab1 AS cor0
----
-1684
-522
-685

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 4 col2 FROM tab0 AS cor0
----
140
356
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-800
SELECT - + cor0.col2 * col2 + - 70 + cor0.col1 DIV + col0 FROM tab0 AS cor0
----
-1156
-6793
-69

skipif mysql # not compatible
query I rowsort label-800
SELECT - + cor0.col2 * col2 + - 70 + cor0.col1 / + col0 FROM tab0 AS cor0
----
-1156
-6793
-69

query I rowsort
SELECT DISTINCT col1 * col0 + 82 AS col1 FROM tab1 AS cor0
----
1122
160
722

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

query I rowsort
SELECT DISTINCT + col0 * - 78 FROM tab2 AS cor0
----
-546
-6084
-6162

query I rowsort
SELECT - cor0.col2 + - 26 FROM tab2, tab1 AS cor0
----
9 values hashing to 1c3a4879393c4305585c09037ff20aa8

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab1 cor0, tab2 cor1
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766

query I rowsort
SELECT 84 - + col2 * + 45 AS col2 FROM tab0
----
-1401
-3606
39

query I rowsort
SELECT 64 AS col0 FROM tab1 cor0
----
64
64
64

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

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

query I rowsort
SELECT 96 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

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

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

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

query I rowsort
SELECT + - col0 * - ( - 67 ) FROM tab2 AS cor0
----
-469
-5226
-5293

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

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

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

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

query I rowsort
SELECT + - 17 + ( - col0 ) FROM tab0 cor0
----
-106
-41
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-818
SELECT + col0 * col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
-103
-367

skipif mysql # not compatible
query I rowsort label-818
SELECT + col0 * col0 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-103
-367

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

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

query I rowsort
SELECT + + 86 * 23 FROM tab2 AS cor0
----
1978
1978
1978

query I rowsort
SELECT 30 FROM tab1 AS cor0
----
30
30
30

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 * - col2 col2 FROM tab2 cor0
----
-2418
-2511
-3534

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-827
SELECT CAST( col0 + col2 AS SIGNED ) FROM tab2
----
104
117
34

skipif mysql # not compatible
query I rowsort label-827
SELECT CAST ( col0 + col2 AS INTEGER ) FROM tab2
----
104
117
34

query I rowsort
SELECT ALL 70 + cor0.col1 FROM tab1 AS cor0
----
80
83
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 * ( - col1 ) + + col2 col0 FROM tab0 AS cor0
----
244101
679124
9410

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

query I rowsort
SELECT - col1 * cor0.col1 + cor0.col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL 89 * - col1 FROM tab2 AS cor0
----
-1513
-2759
-5251

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

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

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

query I rowsort
SELECT ALL + ( col0 ) * col2 * + col0 - col1 FROM tab2
----
1292
158125
237141

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

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

query I rowsort
SELECT DISTINCT ( 78 ) - col2 FROM tab1
----
-18
21
24

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

query I rowsort
SELECT ALL + 10 + col0 * 19 FROM tab0
----
1701
466
675

query I rowsort
SELECT ALL - 5 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-843
SELECT ALL - col2 * col0 * 48 + 53 DIV col0 AS col2 FROM tab1
----
-175104
-368640
-7759

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL - col2 * col0 * 48 + 53 / col0 AS col2 FROM tab1
----
-175104
-368640
-7759

query I rowsort
SELECT + 43 + - col0 AS col0 FROM tab2 AS cor0
----
-35
-36
36

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

query I rowsort
SELECT DISTINCT - col1 + col2 * col2 * + 77 FROM tab1 AS cor0
----
224506
250163
709619

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

query I rowsort
SELECT - ( - col0 ) * col0 + + 59 FROM tab2 AS cor0
----
108
6143
6300

query I rowsort
SELECT + col0 + - col0 * ( col1 ) * + col1 FROM tab1 AS cor0
----
-13440
-2025
-6336

query I rowsort
SELECT 91 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col0 AS REAL ) FROM tab0 cor0
----
-24
-35
-89

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

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

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

query I rowsort
SELECT ALL + ( + 43 ) + tab0.col0 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 4394aeeffdc591c2231480bc7023ebc4

query I rowsort
SELECT DISTINCT ( + col1 * col0 ) + 48 * col1 FROM tab2
----
1705
2159
7434

query I rowsort
SELECT DISTINCT col2 * + col1 + col1 * + col0 FROM tab0
----
15561
3492
4902

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

query I rowsort
SELECT DISTINCT + ( 9 ) + - col1 AS col2 FROM tab2
----
-22
-50
-8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-860
SELECT ( - col1 ) + col0 * col1 / col0 col1 FROM tab0
----
0
0
0

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

query I rowsort
SELECT ALL col1 + 6 * + col0 FROM tab0 AS cor0
----
230
307
625

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-866
SELECT col1 * col0 + + col1 DIV 37 FROM tab0
----
2066
3397
8101

skipif mysql # not compatible
query I rowsort label-866
SELECT col1 * col0 + + col1 / 37 FROM tab0
----
2066
3397
8101

query I rowsort
SELECT DISTINCT + - cor1.col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-26
-27
-38

query I rowsort
SELECT ALL 74 - col0 FROM tab1 AS cor0
----
-6
10
71

query I rowsort
SELECT - + 20 FROM tab0 AS cor0
----
-20
-20
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 * + col1 col1 FROM tab0 AS cor0
----
1462
1547
1649

query I rowsort
SELECT DISTINCT + - 11 + cor0.col1 + ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
161
171
183

query I rowsort
SELECT + col2 + + col2 AS col0 FROM tab1
----
108
114
192

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

skipif mysql # not compatible
query I rowsort label-873
SELECT - - col2 / + col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL col2 + 26 FROM tab0 AS cor0
----
108
27
59

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

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL + col0 + + CAST ( col2 + col1 AS INTEGER ) * + ( ( col1 ) ) * col0 FROM tab2 AS cor0
----
12593
391248
73944

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

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

query I rowsort
SELECT ALL + col0 * + ( 57 ) AS col1 FROM tab1 AS cor0
----
171
3648
4560

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + 58 * + col1 col2 FROM tab2 AS cor0
----
1771
3396
948

query I rowsort
SELECT ALL + col1 + + col0 + col1 * - col0 FROM tab2
----
-1247
-179
-4465

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

query I rowsort
SELECT col1 * + col0 + col1 + ( 60 ) FROM tab0
----
2210
3552
8250

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

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

query I rowsort
SELECT DISTINCT + col1 + - col2 + + col0 * - col0 AS col1 FROM tab0
----
-1129
-523
-7912

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

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

query I rowsort
SELECT DISTINCT + ( - 43 ) * col2 FROM tab1 AS cor0
----
-2322
-2451
-4128

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

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

query I rowsort
SELECT - col2 * + 90 FROM tab2 AS cor0
----
-2340
-2430
-3420

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

query I rowsort
SELECT + col1 * col2 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1292
1674
3068

query I rowsort
SELECT ALL + - 88 * col0 AS col1 FROM tab2 AS cor0
----
-616
-6864
-6952

query I rowsort
SELECT DISTINCT + - 66 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
1716
1782
2508

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 - + col2 col2 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT + 70 * - col0 AS col1 FROM tab0 cor0
----
-1680
-2450
-6230

query I rowsort
SELECT DISTINCT + 21 + col0 AS col2 FROM tab2 cor0
----
100
28
99

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

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

query I rowsort
SELECT ( + 65 * col1 ) - - tab0.col2 AS col2 FROM tab0
----
5623
5997
6306

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-902
SELECT + CAST( + 29 AS SIGNED ) + col0 + ( col2 ) AS col0 FROM tab1
----
150
205
86

skipif mysql # not compatible
query I rowsort label-902
SELECT + CAST ( + 29 AS INTEGER ) + col0 + ( col2 ) AS col0 FROM tab1
----
150
205
86

query I rowsort
SELECT DISTINCT 40 + - 97 * col2 FROM tab2
----
-2482
-2579
-3646

query I rowsort
SELECT DISTINCT - 70 * - col1 + col0 * - 7 + tab0.col2 * - col0 FROM tab0
----
-1551
5060
6510

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

skipif mysql # not compatible
query I rowsort label-905
SELECT ( col0 ) / col1 + col1 * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL 98 * cor0.col2 + col0 FROM tab2 AS cor0
----
2626
2653
3803

query I rowsort
SELECT ALL - + col0 * - col1 + - col0 * 89 * + cor0.col1 FROM tab0 AS cor0
----
-181632
-298760
-712712

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 + col1 * - 46 FROM tab1 AS cor0
----
-1142
-403
-502

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

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

query I rowsort
SELECT - - col1 * col1 * + 15 AS col1 FROM tab1 cor0
----
10140
1500
2535

query I rowsort
SELECT - - col2 + col0 * 33 AS col2 FROM tab1 AS cor0
----
153
2169
2736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - cor0.col0 + + 4 col1 FROM tab2 AS cor0
----
-100
-113
-30

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

query I rowsort
SELECT 8 * col2 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1326
-342
-621

query I rowsort
SELECT ALL 59 FROM tab1, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT col0 + + col1 * + 78 FROM tab0 AS cor0
----
6732
7187
7601

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

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

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

query I rowsort
SELECT ( tab1.col0 ) * - 53 AS col0 FROM tab1
----
-159
-3392
-4240

query I rowsort
SELECT ALL col1 * - col1 * - ( + 70 ) FROM tab1
----
11830
47320
7000

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-928
SELECT 12 DIV - cor0.col2 + + col1 FROM tab0 AS cor0
----
85
86
91

skipif mysql # not compatible
query I rowsort label-928
SELECT 12 / - cor0.col2 + + col1 FROM tab0 AS cor0
----
85
86
91

query I rowsort
SELECT ALL + + col1 * + 78 + col2 FROM tab2 AS cor0
----
1364
2445
4628

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

query I rowsort
SELECT - - col2 * col0 + + cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
14022
1881
36

query I rowsort
SELECT ALL - 12 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

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

query I rowsort
SELECT + col1 * - col2 + + col2 * col0 FROM tab2
----
-648
2356
494

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-935
SELECT DISTINCT + col1 - + CAST( col2 AS SIGNED ) FROM tab1
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-935
SELECT DISTINCT + col1 - + CAST ( col2 AS INTEGER ) FROM tab1
----
-28
-47
-83

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

query I rowsort
SELECT ALL + ( 98 ) FROM tab0 cor0
----
98
98
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-938
SELECT ( 18 ) * col0 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
1
15
20

skipif mysql # not compatible
query I rowsort label-938
SELECT ( 18 ) * col0 / cor0.col2 AS col2 FROM tab1 AS cor0
----
1
15
20

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-942
SELECT DISTINCT - ( cor0.col0 ) + - col1 DIV + 66 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT - ( cor0.col0 ) + - col1 / + 66 FROM tab1 AS cor0
----
-3
-64
-80

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

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

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

query I rowsort
SELECT ALL - + 59 AS col0 FROM tab0 AS cor0
----
-59
-59
-59

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

query I rowsort
SELECT ALL - + 38 + - col1 AS col1 FROM tab2 cor0
----
-55
-69
-97

query I rowsort
SELECT DISTINCT col0 * + 52 AS col2 FROM tab1
----
156
3328
4160

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

query I rowsort
SELECT - col2 + + 43 AS col1 FROM tab2 cor0
----
16
17
5

query I rowsort
SELECT ALL + 44 * 49 FROM tab1, tab1 AS cor0
----
9 values hashing to 9808972954cd33be06909f3bc5b4cb55

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

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT + col2 / - tab2.col1 + - col2 FROM tab2
----
-26
-27
-40

query I rowsort
SELECT + + 8 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT DISTINCT - 65 * 42 + col0 FROM tab2
----
-2651
-2652
-2723

query I rowsort
SELECT + ( - 32 ) + + col2 * col0 FROM tab2 AS cor0
----
157
1996
2970

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

query I rowsort
SELECT ALL col1 * 64 * col1 + + 25 FROM tab2 AS cor0
----
18521
222809
61529

query I rowsort
SELECT - col1 + - 88 FROM tab0 AS cor0
----
-174
-179
-185

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-959
SELECT + + CAST( - 76 AS SIGNED ) + col0 FROM tab0 AS cor0
----
-41
-52
13

skipif mysql # not compatible
query I rowsort label-959
SELECT + + CAST ( - 76 AS INTEGER ) + col0 FROM tab0 AS cor0
----
-41
-52
13

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

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

query I rowsort
SELECT - - 7 * ( col2 ) + - ( cor0.col2 ) * - col1 AS col2 FROM tab0 AS cor0
----
104
3069
8036

query I rowsort
SELECT + col1 + + col2 + + ( - col1 ) FROM tab0 AS cor0
----
1
33
82

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

query I rowsort
SELECT + - 16 + col0 FROM tab2 AS cor0
----
-9
62
63

query I rowsort
SELECT col1 * ( - 23 ) + col1 + cor0.col2 FROM tab2 AS cor0
----
-1272
-336
-655

onlyif mysql # use DIV operator for integer division
query I rowsort label-967
SELECT ALL + col2 DIV + col0 + + 46 + col0 col1 FROM tab2 AS cor0
----
124
125
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-967
SELECT ALL + col2 / + col0 + + 46 + col0 col1 FROM tab2 AS cor0
----
124
125
56

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

query I rowsort
SELECT ALL - 77 + tab2.col2 * 23 AS col1 FROM tab2
----
521
544
797

query I rowsort
SELECT ALL + 44 * tab2.col0 FROM tab2
----
308
3432
3476

query I rowsort
SELECT ALL col0 * - ( + 32 ) * col1 FROM tab2 AS cor0
----
-147264
-42976
-6944

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

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

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

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

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL col2 * + col2 / col2 FROM tab1 AS cor0
----
54
57
96

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

query I rowsort
SELECT + col0 * - cor0.col1 * - col0 - col2 FROM tab1 AS cor0
----
180
40903
83104

query I rowsort
SELECT + col0 + col0 * + 2 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT ALL + col1 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - col2 * 45 FROM tab0 AS cor0
----
-1485
-3690
-45

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-984
SELECT + col0 / - ( - 98 ) FROM tab0 AS cor0
----
0
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-986
SELECT DISTINCT + col1 * 13 DIV col0 col1 FROM tab2 cor0
----
2
57
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT + col1 * 13 / col0 col1 FROM tab2 cor0
----
2
57
9

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

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

query I rowsort
SELECT ALL + 32 * - col0 + - col1 AS col0 FROM tab2 AS cor0
----
-2545
-255
-2555

query I rowsort
SELECT - col0 + - 82 * - col2 FROM tab2 AS cor0
----
2054
2207
3037

query I rowsort
SELECT ALL + cor0.col2 * 19 FROM tab2 cor0
----
494
513
722

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

query I rowsort
SELECT DISTINCT - tab0.col0 + + col0 - + 51 FROM tab0
----
-51

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col1 ) * 22 col2 FROM tab2 AS cor0
----
-1298
-374
-682

query I rowsort
SELECT ALL + + 46 + col2 AS col0 FROM tab0 AS cor0
----
128
47
79

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

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

query I rowsort
SELECT ALL 73 + - col1 * col1 FROM tab2 AS cor0
----
-216
-3408
-888

query I rowsort
SELECT ALL + 7 + 72 AS col2 FROM tab0
----
79
79
79

query I rowsort
SELECT ALL ( + 25 + - col0 ) FROM tab1
----
-39
-55
22

query I rowsort
SELECT 99 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to c841a8d826151b422ecdb71db0250739

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

query I rowsort
SELECT ALL - + 69 * + col2 AS col0 FROM tab1 AS cor0
----
-3726
-3933
-6624

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

query I rowsort
SELECT 17 * + col2 FROM tab1 AS cor0
----
1632
918
969

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

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

query I rowsort
SELECT ALL + 71 + col2 * + col0 AS col2 FROM tab0 AS cor0
----
106
7369
863

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

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

query I rowsort
SELECT + col2 * col2 * - 9 FROM tab2 cor0
----
-12996
-6084
-6561

query I rowsort
SELECT DISTINCT 82 + col1 FROM tab2 AS cor0
----
113
141
99

query I rowsort
SELECT ALL - col2 + - col2 * - 84 FROM tab2 AS cor0
----
2158
2241
3154

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

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

query I rowsort
SELECT DISTINCT + col2 * + tab0.col1 * col2 + + ( + col2 ) FROM tab0
----
611966
93687
98

query I rowsort
SELECT + ( 82 ) + col2 FROM tab1
----
136
139
178

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

query I rowsort
SELECT + 6 * cor0.col1 + - 63 FROM tab2 AS cor0
----
123
291
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 + col0 col0 FROM tab0
----
130
65
76

query I rowsort
SELECT DISTINCT + 77 * 15 AS col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
1155

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col2 + + ( + col2 * col2 + ( 84 ) ) col0 FROM tab2 AS cor0
----
-24
-774
882

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

query I rowsort
SELECT ALL + tab1.col1 * 56 FROM tab1, tab2 AS cor0
----
9 values hashing to 41c4689e302d76e2a8cf44553a3b49b3

query I rowsort
SELECT col1 * 38 FROM tab1
----
380
494
988

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

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

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

query I rowsort
SELECT cor0.col0 + + col0 * - col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT 8 * col0 * + col1 + - col0 FROM tab1 AS cor0
----
5056
621
8240

query I rowsort
SELECT DISTINCT - col0 * tab0.col2 * col2 + col2 FROM tab0
----
-26103
-34
-598354

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1029
SELECT ALL 65 + + col2 DIV col1 + - col0 AS col0 FROM tab2
----
-12
-13
58

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL 65 + + col2 / col1 + - col0 AS col0 FROM tab2
----
-12
-13
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + tab2.col0 + - col2 * + col1 col1 FROM tab2
----
-788
4550
5595

query I rowsort
SELECT DISTINCT col0 + 59 + - tab0.col2 * 63 * + col2 AS col0 FROM tab0
----
-423464
-68524
31

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 * col0 col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL - 33 * - 5 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to 4d4a8c8bb76a3c41d19b34cb1bb041f7

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1036
SELECT DISTINCT + 13 DIV + col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT + 13 / + col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL + 6 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to 44f233d1b3804e00d9436c0a41d1e2c8

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

skipif mysql # not compatible
query I rowsort label-1038
SELECT CAST ( NULL AS INTEGER ) / - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 71 * tab2.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c45900672e4269f4277aecc97e19ae9f

query I rowsort
SELECT DISTINCT 56 * + col1 AS col0 FROM tab1
----
1456
560
728

query I rowsort
SELECT DISTINCT - col2 + - 55 FROM tab2
----
-81
-82
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-1043
SELECT ALL ( + cor0.col0 ) - col2 * 51 DIV 34 AS col0 FROM tab1 AS cor0
----
-21
-64
-78

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL ( + cor0.col0 ) - col2 * 51 / 34 AS col0 FROM tab1 AS cor0
----
-21
-64
-78

query I rowsort
SELECT + - col2 * + 88 - + col1 FROM tab0 AS cor0
----
-185
-2990
-7307

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

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

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

query I rowsort
SELECT 94 + col0 FROM tab2 AS cor0
----
101
172
173

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

skipif mysql # not compatible
query I rowsort label-1048
SELECT + CAST ( 40 AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL - - col2 + + 20 FROM tab0 AS cor0
----
102
21
53

query I rowsort
SELECT col2 * 5 + col2 FROM tab2 AS cor0
----
156
162
228

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

query I rowsort
SELECT 96 + cor0.col2 * + col2 * col1 FROM tab2 cor0
----
22695
24644
39980

onlyif mysql # use DIV operator for integer division
query I rowsort label-1053
SELECT - col2 * + 53 + + col2 DIV + ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-2860
-3016
-5081

skipif mysql # not compatible
query I rowsort label-1053
SELECT - col2 * + 53 + + col2 / + ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-2860
-3016
-5081

query I rowsort
SELECT - ( cor0.col2 ) * - col0 - - 7 FROM tab0 AS cor0
----
42
7305
799

skipif mysql # not compatible
query I rowsort
SELECT + 41 + + ( col1 + + CAST ( col0 AS REAL ) ) FROM tab1 AS cor0
----
115
134
70

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

query I rowsort
SELECT 2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT col0 * 52 FROM tab1
----
156
3328
4160

query I rowsort
SELECT ALL 64 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

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

query I rowsort
SELECT col1 * - 29 + 29 FROM tab2 AS cor0
----
-1682
-464
-870

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

query I rowsort
SELECT 52 + + cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to decb63d48a6a9ce513d93595c6a028ea

query I rowsort
SELECT ALL col1 * - 37 FROM tab1
----
-370
-481
-962

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

query I rowsort
SELECT - col1 + 58 + - col2 * - col2 FROM tab2
----
1485
675
756

query I rowsort
SELECT DISTINCT col0 + - ( + ( + col1 ) * + 32 ) FROM tab0
----
-2728
-2823
-3069

query I rowsort
SELECT + col1 + - ( col0 ) * + col1 * + col2 + + col0 FROM tab0
----
-3263
-663938
-68002

onlyif mysql # use DIV operator for integer division
query I rowsort label-1069
SELECT + tab2.col2 + 72 DIV - tab2.col0 FROM tab2
----
17
26
38

skipif mysql # not compatible
query I rowsort label-1069
SELECT + tab2.col2 + 72 / - tab2.col0 FROM tab2
----
17
26
38

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

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

query I rowsort
SELECT DISTINCT + ( 17 + col1 ) AS col1 FROM tab0
----
103
108
114

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1075
SELECT DISTINCT ( - tab1.col0 ) DIV CAST( + 80 + tab1.col0 AS SIGNED ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1075
SELECT DISTINCT ( - tab1.col0 ) / CAST ( + 80 + tab1.col0 AS INTEGER ) AS col0 FROM tab1
----
0

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

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

query I rowsort
SELECT - col2 * + col2 * + col2 + col0 * + col2 FROM tab0
----
-35145
-544070
34

query I rowsort
SELECT - + 19 + col0 FROM tab1 AS cor0
----
-16
45
61

query I rowsort
SELECT ALL - - cor0.col2 + col2 * 42 FROM tab0 AS cor0
----
1419
3526
43

query I rowsort
SELECT DISTINCT + - cor0.col1 + 65 FROM tab0 AS cor0
----
-21
-26
-32

query I rowsort
SELECT ALL - + col1 + - 82 FROM tab2 AS cor0
----
-113
-141
-99

query I rowsort
SELECT ALL - col0 - - ( - cor0.col0 + cor0.col2 ) FROM tab1 AS cor0
----
-64
-71
48

query I rowsort
SELECT DISTINCT + col2 + ( - col1 ) * col1 - 79 FROM tab0 AS cor0
----
-7442
-8278
-9487

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

query I rowsort
SELECT DISTINCT + - col2 + 97 AS col0 FROM tab1 cor0
----
1
40
43

query I rowsort
SELECT ALL + + col2 + - ( - cor0.col2 ) * + col1 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL col1 + 46 + col2 AS col1 FROM tab1 AS cor0
----
113
126
155

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

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

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

query I rowsort
SELECT ALL - col1 * + col1 + 8 FROM tab0 AS cor0
----
-7388
-8273
-9401

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

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

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

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

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

query I rowsort
SELECT - 11 AS col1 FROM tab0
----
-11
-11
-11

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

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

query I rowsort
SELECT 94 * + col2 + col1 FROM tab1 AS cor0
----
5102
5368
9037

query I rowsort
SELECT ALL 91 * 47 AS col2 FROM tab1 cor0
----
4277
4277
4277

query I rowsort
SELECT - 57 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-24
-56
25

query I rowsort
SELECT DISTINCT - 50 * + cor0.col1 FROM tab0 AS cor0
----
-4300
-4550
-4850

query I rowsort
SELECT - + col1 + 65 * - cor0.col0 * 23 AS col0 FROM tab1 AS cor0
----
-119613
-4511
-95690

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1107
SELECT + + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL 14 * 44 - + col2 AS col2 FROM tab2 cor0
----
578
589
590

query I rowsort
SELECT ALL col1 * col1 + + col0 * 54 AS col1 FROM tab0 AS cor0
----
11299
13087
8692

query I rowsort
SELECT ALL + 93 * - col1 - + col1 * col1 FROM tab0 AS cor0
----
-15394
-16744
-18430

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

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

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

query I rowsort
SELECT - 54 * + col2 + col0 FROM tab0 AS cor0
----
-1758
-19
-4339

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 * + col0 col1 FROM tab1 cor0
----
258
5504
6880

query I rowsort
SELECT ALL 80 * 65 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to cc138d43da1aeef47f2db5c554d364bf

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

query I rowsort
SELECT DISTINCT - 94 + col1 AS col2 FROM tab0 cor0
----
-3
-8
3

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 72 * col0 col2 FROM tab2 AS cor0
----
535
5675
5705

query I rowsort
SELECT + col0 * - 92 + col1 + - cor0.col0 FROM tab1 AS cor0
----
-253
-5942
-7427

query I rowsort
SELECT ALL + - col1 + + col1 * - 10 AS col2 FROM tab1 AS cor0
----
-110
-143
-286

query I rowsort
SELECT + cor0.col0 * - 61 AS col1 FROM tab1 AS cor0
----
-183
-3904
-4880

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

query I rowsort
SELECT col1 + cor0.col2 * + 78 - cor0.col0 FROM tab1 AS cor0
----
4235
4392
7421

query I rowsort
SELECT + col0 + ( + cor0.col2 + col0 ) AS col2 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT col2 - col2 * - col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT + cor0.col1 + + 39 * col2 FROM tab0 AS cor0
----
136
1373
3289

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

query I rowsort
SELECT + col2 * + col0 * col2 + + 98 FROM tab0 AS cor0
----
133
26234
598534

query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1, tab0 AS cor0, tab2 cor1
----
10
13
26

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

query I rowsort
SELECT ALL + tab2.col0 - 35 FROM tab2, tab0 AS cor0
----
9 values hashing to f5ce2f6c4600554ede59b436c886260f

query I rowsort
SELECT ALL - 62 * - col1 FROM tab1 cor0
----
1612
620
806

query I rowsort
SELECT + col1 * col1 * + ( + 24 ) AS col0 FROM tab0 AS cor0
----
177504
198744
225816

onlyif mysql # use DIV operator for integer division
query I rowsort label-1138
SELECT ALL + 93 DIV - cor0.col0 + - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-18
-44
-60

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL + 93 / - cor0.col0 + - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-18
-44
-60

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 8 + + col2 col0 FROM tab0 AS cor0
----
41
9
90

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

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

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

query I rowsort
SELECT DISTINCT + col0 + col1 - + 30 AS col2 FROM tab0
----
102
150
80

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1147
SELECT DISTINCT - tab0.col1 - + col1 DIV + 81 FROM tab0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT - tab0.col1 - + col1 / + 81 FROM tab0
----
-87
-92
-98

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

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

query I rowsort
SELECT col2 + + col2 + - col1 AS col1 FROM tab0
----
-20
-95
73

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT DISTINCT + 76 * + 45 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
3420

query I rowsort
SELECT - - col0 + 62 * ( + col1 ) FROM tab2 AS cor0
----
1133
1929
3736

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

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

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

query I rowsort
SELECT ALL col2 * 98 AS col1 FROM tab1 AS cor0
----
5292
5586
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( - col1 ) col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + 46 * + ( + tab2.col0 ) AS col1 FROM tab2
----
322
3588
3634

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

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

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

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

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

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

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

query I rowsort
SELECT - - ( 64 ) AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + 91 + col1 col1 FROM tab0 AS cor0
----
7912
8372
8924

query I rowsort
SELECT DISTINCT - col1 * col2 - col0 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL - 30 - + col1 * cor0.col2 FROM tab2 AS cor0
----
-1564
-676
-867

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

query I rowsort
SELECT 3 + col1 * col1 FROM tab0 cor0
----
7399
8284
9412

onlyif mysql # use DIV operator for integer division
query I rowsort label-1173
SELECT - 59 DIV col0 AS col0 FROM tab1 AS cor0
----
-19
0
0

skipif mysql # not compatible
query I rowsort label-1173
SELECT - 59 / col0 AS col0 FROM tab1 AS cor0
----
-19
0
0

query I rowsort
SELECT ALL + + col1 + - col1 * - ( col1 ) FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ( col0 ) + + 68 AS col2 FROM tab0 AS cor0
----
103
157
92

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 * col2 col2 FROM tab1 AS cor0
----
4860
5130
8640

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

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

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

query I rowsort
SELECT - - 93 + - 40 AS col1 FROM tab2 AS cor0
----
53
53
53

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

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

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

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

query I rowsort
SELECT DISTINCT + 70 FROM tab0, tab0 AS cor0
----
70

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

query I rowsort
SELECT DISTINCT - 42 * col2 FROM tab1
----
-2268
-2394
-4032

query I rowsort
SELECT + 9 + - col2 FROM tab2 AS cor0
----
-17
-18
-29

query I rowsort
SELECT DISTINCT 9 + + col0 * 54 AS col1 FROM tab0 AS cor0
----
1305
1899
4815

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

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

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

query I rowsort
SELECT col1 * col2 - - col2 * + col1 FROM tab2 AS cor0
----
1292
1674
3068

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

query I rowsort
SELECT + cor1.col2 * - 67 * cor1.col2 AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 47b1afa80602bb9a5ee878aba0a44cd0

query I rowsort
SELECT - 62 + tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to da26656843b35a056a6125fe5ba4f326

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

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

query I rowsort
SELECT ALL - col2 + - 18 FROM tab2 AS cor0
----
-44
-45
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-1198
SELECT ALL ( + col0 ) DIV 19 FROM tab1
----
0
3
4

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL ( + col0 ) / 19 FROM tab1
----
0
3
4

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

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

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

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

query I rowsort
SELECT ALL col0 + 68 AS col1 FROM tab0
----
103
157
92

query I rowsort
SELECT - + col0 + cor0.col0 * + col2 * col2 + - col0 * col2 AS col1 FROM tab2 AS cor0
----
110995
4907
50622

query I rowsort
SELECT DISTINCT + col1 + - 75 FROM tab0
----
11
16
22

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

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

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

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

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

query I rowsort
SELECT + ( col0 ) * col0 + + 94 FROM tab0 AS cor0
----
1319
670
8015

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

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

query I rowsort
SELECT ALL col2 + col0 + col2 FROM tab2 AS cor0
----
130
155
61

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL CAST ( + col0 AS INTEGER ) + + col2 * + 0 FROM tab2 AS cor0
----
7
78
79

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) + - col2 * + col2 col0 FROM tab1 cor0
----
-2890
-3239
-9203

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

query I rowsort
SELECT ALL col0 + ( + col1 ) * + 2 FROM tab1 AS cor0
----
106
55
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-1221
SELECT ALL col2 - - tab0.col1 DIV col0 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL col2 - - tab0.col1 / col0 FROM tab0
----
3
36
83

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

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

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

query I rowsort
SELECT ALL + + 23 AS col0 FROM tab2 AS cor0
----
23
23
23

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1227
SELECT - cor0.col0 * - col0 - 74 DIV - cor0.col0 AS col0 FROM tab0 AS cor0
----
1227
579
7921

skipif mysql # not compatible
query I rowsort label-1227
SELECT - cor0.col0 * - col0 - 74 / - cor0.col0 AS col0 FROM tab0 AS cor0
----
1227
579
7921

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

query I rowsort
SELECT DISTINCT col1 * ( - col0 ) * col1 - - col2 * col1 * - col2 AS col2 FROM tab0 AS cor0
----
-1348893
-271158
-329412

query I rowsort
SELECT - col2 + col1 * 97 AS col2 FROM tab0 AS cor0
----
8309
8745
9408

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

query I rowsort
SELECT col1 * cor0.col2 * + col2 + - col1 FROM tab0 AS cor0
----
0
611793
93568

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

query I rowsort
SELECT ALL - - col0 * ( ( col2 ) ) + + col2 * cor0.col0 FROM tab0 AS cor0
----
14596
1584
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1235
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-1235
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT DISTINCT - + col1 + - 24 AS col2 FROM tab0 AS cor0
----
-110
-115
-121

query I rowsort
SELECT DISTINCT - col2 + + col0 + 1 FROM tab1 AS cor0
----
-15
-50
8

query I rowsort
SELECT 65 + + col1 FROM tab2
----
124
82
96

query I rowsort
SELECT - 69 + - col1 AS col1 FROM tab1
----
-79
-82
-95

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 62 * + col1 + col2 * + col1 + cor0.col1 FROM tab0 AS cor0
----
-2408
-5820
1911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * cor0.col1 - - col0 col2 FROM tab0 AS cor0
----
7420
8370
9444

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

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

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

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

query I rowsort
SELECT + col1 * + cor0.col0 + col2 - col2 * + col1 * + col2 AS col0 FROM tab1 AS cor0
----
-118672
-31793
-75684

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

query I rowsort
SELECT - 62 + + col2 AS col1 FROM tab2 AS cor0
----
-24
-35
-36

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

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

query I rowsort
SELECT cor0.col1 * ( 40 ) + col2 FROM tab1 AS cor0
----
1094
457
616

onlyif mysql # use DIV operator for integer division
query I rowsort label-1255
SELECT ALL cor0.col2 * + 31 + ( + cor0.col1 ) * + col2 + - col1 DIV col2 FROM tab0 AS cor0
----
10003
31
3859

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL cor0.col2 * + 31 + ( + cor0.col1 ) * + col2 + - col1 / col2 FROM tab0 AS cor0
----
10003
31
3859

query I rowsort
SELECT DISTINCT + + cor0.col2 * ( - col2 ) - - col0 * + ( 96 ) AS col1 FROM tab1 AS cor0
----
-1536
-2628
2895

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

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

query I rowsort
SELECT cor0.col0 + + 94 FROM tab1, tab0 cor0
----
9 values hashing to 9b1f0ff90459ca4d0de0d98f13232994

query I rowsort
SELECT ALL 57 + - ( col2 ) AS col0 FROM tab1 cor0
----
-39
0
3

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

query I rowsort
SELECT ALL - 98 FROM tab1, tab0 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

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

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

query I rowsort
SELECT + col2 + 77 * + col0 AS col0 FROM tab2 AS cor0
----
566
6032
6121

query I rowsort
SELECT + col1 * 99 FROM tab0 AS cor0
----
8514
9009
9603

query I rowsort
SELECT - + 21 * 25 FROM tab2 AS cor0
----
-525
-525
-525

query I rowsort
SELECT + ( - col2 ) + col2 * ( - 78 ) FROM tab1 cor0
----
-4266
-4503
-7584

query I rowsort
SELECT ALL 94 * - col1 * + col2 FROM tab1
----
-117312
-131976
-53580

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

query I rowsort
SELECT + col2 + 39 * col0 AS col1 FROM tab2 AS cor0
----
300
3068
3119

query I rowsort
SELECT - ( + cor0.col0 ) * cor0.col0 + - ( 5 ) * col0 * col0 AS col0 FROM tab0 AS cor0
----
-3456
-47526
-7350

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

query I rowsort
SELECT 20 AS col2 FROM tab0 cor0
----
20
20
20

query I rowsort
SELECT + 6 * + ( col2 ) FROM tab1 AS cor0
----
324
342
576

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

query I rowsort
SELECT + col2 + + 85 AS col2 FROM tab2 cor0
----
111
112
123

onlyif mysql # use DIV operator for integer division
query I rowsort label-1277
SELECT ( - tab2.col1 + col0 ) * + col0 DIV col0 AS col1 FROM tab2
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-1277
SELECT ( - tab2.col1 + col0 ) * + col0 / col0 AS col1 FROM tab2
----
-24
19
62

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

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

query I rowsort
SELECT ALL col1 * - 17 * - col2 FROM tab2
----
10982
14229
26078

query I rowsort
SELECT 26 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT + col0 + + 33 FROM tab0 AS cor0
----
122
57
68

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

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

query I rowsort
SELECT DISTINCT 42 + col1 FROM tab2
----
101
59
73

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

query I rowsort
SELECT DISTINCT - - col0 * ( 59 ) + col2 AS col1 FROM tab1 AS cor0
----
231
3833
4816

query I rowsort
SELECT DISTINCT - col0 * col1 + - 34 FROM tab2 AS cor0
----
-1377
-251
-4636

query I rowsort
SELECT - + col2 + - col1 * + col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL + - col0 - 99 * + 24 FROM tab1 AS cor0
----
-2379
-2440
-2456

query I rowsort
SELECT ALL - col0 * - 35 FROM tab0 cor0
----
1225
3115
840

query I rowsort
SELECT ALL 56 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL col2 / - ( 67 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * - 31 + cor0.col1 FROM tab2 AS cor0
----
-1770
-510
-930

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1302
SELECT DISTINCT col0 DIV + col0 + - col2 * col2 AS col2 FROM tab0
----
-1088
-6723
0

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT col0 / + col0 + - col2 * col2 AS col2 FROM tab0
----
-1088
-6723
0

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + - 46 + col0 * col2 AS col2 FROM tab0 AS cor0
----
24
7341
770

onlyif mysql # use DIV operator for integer division
query I rowsort label-1307
SELECT + + ( - col2 ) * col0 * ( + col0 ) + + col0 DIV 34 FROM tab2 AS cor0
----
-1323
-158182
-237156

skipif mysql # not compatible
query I rowsort label-1307
SELECT + + ( - col2 ) * col0 * ( + col0 ) + + col0 / 34 FROM tab2 AS cor0
----
-1323
-158182
-237156

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

query I rowsort
SELECT - - 87 * ( col2 ) * col1 + col0 AS col1 FROM tab1 AS cor0
----
108656
122151
49654

query I rowsort
SELECT DISTINCT - 81 + col1 FROM tab2 AS cor0
----
-22
-50
-64

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + + cor0.col1 * cor0.col0 + - 80 FROM tab0 AS cor0
----
1984
3315
8019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 * + cor0.col1 col2 FROM tab2 AS cor0
----
1275
2325
4425

query I rowsort
SELECT DISTINCT cor0.col2 * + col0 - + 9 * 50 AS col0 FROM tab1 cor0
----
-288
3198
7230

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

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

query I rowsort
SELECT col2 - 70 FROM tab1
----
-13
-16
26

query I rowsort
SELECT DISTINCT 44 + col2 * col0 AS col2 FROM tab2
----
2072
233
3046

query I rowsort
SELECT ALL + ( - 66 ) * + tab1.col1 AS col2 FROM tab1, tab2, tab1 cor0
----
27 values hashing to d199a2fe48d3d3201fdb7b9a8aa98454

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1324
SELECT ALL + CAST( - col2 AS SIGNED ) * col2 FROM tab0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL + CAST ( - col2 AS INTEGER ) * col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - + col0 * + col0 + + col1 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830

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

query I rowsort
SELECT + 89 * col1 + + 5 FROM tab1 AS cor0
----
1162
2319
895

query I rowsort
SELECT DISTINCT - 32 - + col0 AS col1 FROM tab1
----
-112
-35
-96

query I rowsort
SELECT col1 * col2 + col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
229
2948
7642

query I rowsort
SELECT ALL - 12 + col0 FROM tab1 cor0
----
-9
52
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + - col1 * + col0 col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + 65 + - col1 FROM tab2 AS cor0
----
34
48
6

query I rowsort
SELECT - 75 + col0 AS col0 FROM tab1
----
-11
-72
5

query I rowsort
SELECT 65 - + col1 FROM tab2
----
34
48
6

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

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

query I rowsort
SELECT DISTINCT + 34 + col1 + tab1.col0 AS col1 FROM tab1
----
108
127
63

query I rowsort
SELECT ALL - 25 + col0 * col2 FROM tab0
----
10
7273
767

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

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

query I rowsort
SELECT - 39 + col0 + col1 * 71 AS col2 FROM tab0
----
6091
6511
6883

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

query I rowsort
SELECT DISTINCT cor0.col1 * 37 AS col2 FROM tab0, tab0 AS cor0
----
3182
3367
3589

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

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

query I rowsort
SELECT - 16 * col2 FROM tab0
----
-1312
-16
-528

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

query I rowsort
SELECT - ( 37 ) FROM tab0 AS cor0
----
-37
-37
-37

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

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

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

query I rowsort
SELECT - 76 * - 65 FROM tab0 AS cor0
----
4940
4940
4940

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

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

query I rowsort
SELECT ALL 69 * 43 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 0d9a8bb36b5725f8d183bc0e98c86261

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

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

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

skipif mysql # not compatible
query I rowsort label-1357
SELECT + 25 / - 6 + col1 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 64 - cor0.col0 FROM tab1 AS cor0
----
189
4032
5040

query I rowsort
SELECT + - ( 19 ) * + col1 + ( 94 ) + + col1 * - cor0.col0 FROM tab2 AS cor0
----
-1572
-5629
-712

onlyif mysql # use DIV operator for integer division
query I rowsort label-1360
SELECT DISTINCT 80 DIV col0 FROM tab2 AS cor0
----
1
11

skipif mysql # not compatible
query I rowsort label-1360
SELECT DISTINCT 80 / col0 FROM tab2 AS cor0
----
1
11

query I rowsort
SELECT - col1 + 22 FROM tab0 AS cor0
----
-64
-69
-75

query I rowsort
SELECT + ( col0 ) + col1 - - col1 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT DISTINCT - - col1 * 9 AS col0 FROM tab0 AS cor0
----
774
819
873

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1366
SELECT + 71 + - 48 - col0 DIV + 64 AS col2 FROM tab2 AS cor0
----
22
22
23

skipif mysql # not compatible
query I rowsort label-1366
SELECT + 71 + - 48 - col0 / + 64 AS col2 FROM tab2 AS cor0
----
22
22
23

query I rowsort
SELECT ALL 39 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1365
-3471
-936

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

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

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT + col0 / ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT col0 * + col0 - col0 AS col2 FROM tab2
----
42
6006
6162

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

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NULL IN ( - col2 )
----

query I rowsort
SELECT tab0.col0 / tab0.col0 + col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( col0 )
----

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - tab2.col0 + + tab2.col1 * col0 * - tab2.col1 FROM tab2
----
-22910
-271596
-6734

query III rowsort
SELECT * FROM tab1 WHERE + col2 BETWEEN - col1 * - tab1.col2 + col0 AND NULL
----

query I rowsort
SELECT ALL - col2 + - col0 * col0 AS col0 FROM tab2
----
-6110
-6279
-76

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

query I rowsort
SELECT DISTINCT + col1 + - col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 WHERE NOT + col1 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT tab0.col0 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1391
SELECT - col2 * col2 + col0 DIV + col0 FROM tab2
----
-1443
-675
-728

skipif mysql # not compatible
query I rowsort label-1391
SELECT - col2 * col2 + col0 / + col0 FROM tab2
----
-1443
-675
-728

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1394
SELECT ALL + + col0 + col2 + - col2 DIV + col2 FROM tab1 cor0
----
120
175
56

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL + + col0 + col2 + - col2 / + col2 FROM tab1 cor0
----
120
175
56

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

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + col0 AS col2 FROM tab2 AS cor0
----
-210
-3403
-954

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

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

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

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

query I rowsort
SELECT ALL col0 + + cor0.col0 - col1 FROM tab2 AS cor0
----
-17
141
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * col1 col2 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT cor0.col0 * cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1406
SELECT col0 + - col0 * + col2 + - col1 * col0 DIV col1 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-1406
SELECT col0 + - col0 * + col2 + - col1 * col0 / col1 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1410
SELECT - col1 * col2 + 98 DIV - col1 AS col2 FROM tab1 AS cor0
----
-1255
-1407
-579

skipif mysql # not compatible
query I rowsort label-1410
SELECT - col1 * col2 + 98 / - col1 AS col2 FROM tab1 AS cor0
----
-1255
-1407
-579

onlyif mysql # use DIV operator for integer division
query I rowsort label-1411
SELECT col1 * 73 + + col2 DIV col0 FROM tab1 AS cor0
----
1916
730
950

skipif mysql # not compatible
query I rowsort label-1411
SELECT col1 * 73 + + col2 / col0 FROM tab1 AS cor0
----
1916
730
950

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

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

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

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

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

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

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

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

query I rowsort
SELECT 42 + cor0.col2 FROM tab0 AS cor0
----
124
43
75

query I rowsort
SELECT 39 + col2 AS col2 FROM tab0 AS cor0
----
121
40
72

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

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

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

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

query I rowsort
SELECT + 69 * col2 FROM tab0
----
2277
5658
69

query I rowsort
SELECT ALL - tab0.col2 + col2 + tab0.col1 FROM tab0
----
86
91
97

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

query I rowsort
SELECT - col1 * tab2.col1 AS col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT - 94 + ( + col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1440
552
743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 65 + - col0 col1 FROM tab1 AS cor0
----
-15
1
62

query I rowsort
SELECT DISTINCT - - col1 + + 66 FROM tab2 AS cor0
----
125
83
97

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

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

query I rowsort
SELECT - - 41 * - col1 + - col2 FROM tab2 AS cor0
----
-1298
-2445
-735

query I rowsort
SELECT + cor1.col1 AS col0 FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL col0 * col1 + 8 FROM tab2
----
1351
225
4610

query I rowsort
SELECT - col1 * - 52 - + col2 AS col1 FROM tab2
----
1585
3042
846

query I rowsort
SELECT DISTINCT col0 + - 35 AS col0 FROM tab2
----
-28
43
44

query I rowsort
SELECT ALL col1 + ( tab2.col0 ) + col0 AS col2 FROM tab2
----
175
215
45

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 + + cor0.col2 col2 FROM tab1 AS cor0
----
137
140
179

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

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

query I rowsort
SELECT + + col1 + col1 AS col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL col0 * col1 + + col0 * + col1 * col2 AS col0 FROM tab1 cor0
----
100880
37120
4290

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

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

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

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

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

query I rowsort
SELECT + cor0.col0 * + ( + 45 ) + + col1 AS col0 FROM tab1 AS cor0
----
161
2890
3613

query I rowsort
SELECT DISTINCT col2 + col2 + tab0.col0 * + col0 FROM tab0
----
1227
642
8085

query I rowsort
SELECT - col0 * col0 * - col1 + + col2 AS col2 FROM tab0
----
118826
49569
720893

query I rowsort
SELECT col1 + + col2 + - col1 FROM tab1
----
54
57
96

query I rowsort
SELECT tab0.col2 * - col1 + col2 * + col1 + col1 FROM tab0
----
86
91
97

query I rowsort
SELECT col1 * - col1 + - col0 * + col1 FROM tab1
----
-1209
-740
-754

query I rowsort
SELECT DISTINCT col0 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7420
8370
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col0 FROM tab1, tab0 AS cor0
----
1
33
82

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 + cor0.col1 col2 FROM tab2 AS cor0
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + col2 col0 FROM tab1 AS cor0
----
28
47
83

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

skipif mysql # not compatible
query I rowsort label-1464
SELECT + + col2 + + col1 + + col0 / + cor0.col0 FROM tab2 AS cor0
----
56
59
86

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

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

query I rowsort
SELECT ALL + cor0.col2 * - cor0.col2 + col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1032
-6553
35

query I rowsort
SELECT col1 * + col2 + col2 FROM tab2 AS cor0
----
1560
684
864

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

query I rowsort
SELECT DISTINCT cor0.col0 - - cor0.col0 AS col1 FROM tab1 AS cor0
----
128
160
6

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1474
SELECT DISTINCT + col1 + tab1.col0 * + col0 DIV - col0 FROM tab1
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT + col1 + tab1.col0 * + col0 / - col0 FROM tab1
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col2 * + col1 col0 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT - 28 * - cor0.col2 FROM tab2 cor0
----
1064
728
756

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 * - col2 col0 FROM tab1 AS cor0
----
-1248
-702
-741

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

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

query I rowsort
SELECT - - col0 + - col0 * + col0 * - col2 FROM tab0 AS cor0
----
1260
19032
649611

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1484
SELECT + ( - col0 ) + + col2 / - col0 FROM tab2
----
-10
-78
-79

query I rowsort
SELECT ALL - 11 * + col2 FROM tab2 AS cor0
----
-286
-297
-418

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1488
SELECT + ( - col2 ) * cor0.col0 DIV + cor0.col1 FROM tab0 AS cor0
----
-80
-9
0

skipif mysql # not compatible
query I rowsort label-1488
SELECT + ( - col2 ) * cor0.col0 / + cor0.col1 FROM tab0 AS cor0
----
-80
-9
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 93 * col1 col2 FROM tab1 AS cor0
----
1209
2418
930

query I rowsort
SELECT - col0 * col1 + + 20 AS col0 FROM tab1 AS cor0
----
-1020
-58
-620

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

query I rowsort
SELECT + + 2 * col2 AS col0 FROM tab1 AS cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 * 61 col2 FROM tab1 AS cor0
----
-180
-3840
-4800

query I rowsort
SELECT 73 * col2 + col0 AS col2 FROM tab1 AS cor0
----
3945
4225
7088

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

query I rowsort
SELECT col2 * col0 + col0 * + col1 * + col1 AS col0 FROM tab1 AS cor0
----
10048
21200
2190

onlyif mysql # use DIV operator for integer division
query I rowsort label-1497
SELECT + + 2 * col2 + + 89 DIV + col0 AS col0 FROM tab1 AS cor0
----
115
137
193

skipif mysql # not compatible
query I rowsort label-1497
SELECT + + 2 * col2 + + 89 / + col0 AS col0 FROM tab1 AS cor0
----
115
137
193

onlyif mysql # use DIV operator for integer division
query I rowsort label-1498
SELECT - col2 * col0 + 13 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-1498
SELECT - col2 * col0 + 13 / cor0.col1 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

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

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

query I rowsort
SELECT + 36 + 99 - col2 * col2 FROM tab2 AS cor0
----
-1309
-541
-594

onlyif mysql # use DIV operator for integer division
query I rowsort label-1502
SELECT + - ( 66 ) DIV col1 + + 38 - + col0 FROM tab1 cor0
----
-32
-47
33

skipif mysql # not compatible
query I rowsort label-1502
SELECT + - ( 66 ) / col1 + + 38 - + col0 FROM tab1 cor0
----
-32
-47
33

query I rowsort
SELECT DISTINCT 13 + col1 AS col2 FROM tab1 cor0
----
23
26
39

query I rowsort
SELECT ALL + col1 * 56 * - col1 FROM tab1 AS cor0
----
-37856
-5600
-9464

query I rowsort
SELECT ALL - ( col0 ) + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT + + 74 * 38 FROM tab0 AS cor0
----
2812
2812
2812

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1508
SELECT - CAST( NULL AS DECIMAL ) col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1508
SELECT - CAST ( NULL AS REAL ) col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + + 21 + - col2 * col2 + + ( col0 ) FROM tab2 AS cor0
----
-1344
-577
-701

query I rowsort
SELECT DISTINCT col1 + - tab2.col1 * col2 * col2 - - ( + tab2.col2 ) FROM tab2
----
-22541
-24493
-39799

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + ( col2 ) + col2 * col2 + tab1.col1 col0 FROM tab1
----
16909
3104
6907

query I rowsort
SELECT DISTINCT - cor0.col0 * + 50 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1200
-1750
-4450

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) * col2 + + 49 * - ( col1 ) / - col1 FROM tab0 AS cor0
----
7347
84
841

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1522
SELECT + 50 * + 71 + - col2 DIV 46 AS col1 FROM tab1 cor0
----
3548
3549
3549

skipif mysql # not compatible
query I rowsort label-1522
SELECT + 50 * + 71 + - col2 / 46 AS col1 FROM tab1 cor0
----
3548
3549
3549

onlyif mysql # use DIV operator for integer division
query I rowsort label-1523
SELECT - - cor0.col1 DIV + col0 + + 69 * cor0.col0 col1 FROM tab0 AS cor0
----
1659
2417
6142

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1523
SELECT - - cor0.col1 / + col0 + + 69 * cor0.col0 col1 FROM tab0 AS cor0
----
1659
2417
6142

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1525
SELECT ALL - + ( col1 ) DIV ( cor0.col1 ) + + cor0.col0 + - 89 * col1 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
-40
48
67

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL - + ( col1 ) / ( cor0.col1 ) + + cor0.col0 + - 89 * col1 / cor0.col2 AS col0 FROM tab1 AS cor0
----
-40
48
67

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

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

query I rowsort
SELECT 95 * + 60 FROM tab0
----
5700
5700
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-1528
SELECT - col0 * col2 DIV col1 FROM tab0
----
-80
-9
0

skipif mysql # not compatible
query I rowsort label-1528
SELECT - col0 * col2 / col1 FROM tab0
----
-80
-9
0

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

query I rowsort
SELECT DISTINCT - 69 * col0 * - col0 + 83 * + col0 AS col1 FROM tab0
----
41736
553936
87430

query I rowsort
SELECT - col0 * - col0 * 92 AS col0 FROM tab2 cor0
----
4508
559728
574172

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

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

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

query I rowsort
SELECT - + ( col1 ) + + 34 FROM tab2 AS cor0
----
-25
17
3

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

skipif mysql # not compatible
query I rowsort label-1536
SELECT col1 * + cor0.col1 + col2 / - col2 FROM tab0 cor0
----
7395
8280
9408

query I rowsort
SELECT + 13 * col1 - - 97 FROM tab0 AS cor0
----
1215
1280
1358

query I rowsort
SELECT DISTINCT col1 * 73 - - 53 FROM tab2 cor0
----
1294
2316
4360

onlyif mysql # use DIV operator for integer division
query I rowsort label-1539
SELECT - ( - col1 ) + - col0 DIV ( col2 ) FROM tab0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-1539
SELECT - ( - col1 ) + - col0 / ( col2 ) FROM tab0
----
62
86
90

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1541
SELECT ALL - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL - col2 / col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT + + col1 * - ( 95 ) + col1 AS col0 FROM tab2 AS cor0
----
-1598
-2914
-5546

query I rowsort
SELECT DISTINCT + col0 + cor0.col2 * + 70 AS col1 FROM tab1 AS cor0
----
3783
4054
6800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 + 64 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 184dd874efc91366378cfe8644e8c122

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1546
SELECT col1 DIV 34 + - col1 * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-1546
SELECT col1 / 34 + - col1 * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col1 * + col1 + - 12 FROM tab0 AS cor0
----
7384
8269
9397

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

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

query I rowsort
SELECT ALL + col1 * 66 AS col0 FROM tab2 AS cor0
----
1122
2046
3894

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

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

query I rowsort
SELECT col0 * - 74 FROM tab1 AS cor0
----
-222
-4736
-5920

query I rowsort
SELECT ALL - + cor0.col0 + 28 FROM tab1 AS cor0
----
-36
-52
25

query I rowsort
SELECT + col2 + 5 * - col1 * + col1 FROM tab0 AS cor0
----
-36947
-41323
-47044

query I rowsort
SELECT col2 * - col1 - - col0 * col0 * col1 AS col0 FROM tab0 AS cor0
----
118728
46698
713349

query I rowsort
SELECT + + col0 * col2 * - 87 AS col1 FROM tab1 cor0
----
-14094
-317376
-668160

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703

query I rowsort
SELECT ALL 28 * ( col2 ) + + 50 * col2 + - cor0.col1 * - col2 AS col1 FROM tab2 AS cor0
----
2943
3562
3610

query I rowsort
SELECT - col0 * + 29 + + col1 * - ( col1 ) FROM tab2 AS cor0
----
-1164
-2580
-5743

onlyif mysql # use DIV operator for integer division
query I rowsort label-1560
SELECT + col0 DIV + 81 - col0 * - cor0.col0 * ( cor0.col2 ) FROM tab1 cor0
----
233472
486
614400

skipif mysql # not compatible
query I rowsort label-1560
SELECT + col0 / + 81 - col0 * - cor0.col0 * ( cor0.col2 ) FROM tab1 cor0
----
233472
486
614400

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

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

query I rowsort
SELECT ALL + ( 44 ) AS col2 FROM tab0, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 19a2b9512177749564ba22ea2213fe3f

query I rowsort
SELECT ALL col2 + col1 * 2 AS col1 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT ALL + - col0 * col2 + - 56 AS col1 FROM tab1 AS cor0
----
-218
-3704
-7736

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

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

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

query I rowsort
SELECT ALL + tab2.col2 + 77 FROM tab2, tab0 cor0
----
9 values hashing to 77777986c4237073899ea003aa892bba

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1571
SELECT - - cor0.col2 DIV col0 AS col2 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-1571
SELECT - - cor0.col2 / col0 AS col2 FROM tab1 AS cor0
----
0
1
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-1572
SELECT - col1 DIV cor0.col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-1572
SELECT - col1 / cor0.col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT ALL + cor0.col1 * - col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - ( col2 ) * tab2.col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL - col0 + ( - 20 ) FROM tab0 AS cor0
----
-109
-44
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-1576
SELECT DISTINCT col2 DIV + 26 AS col1 FROM tab1
----
2
3

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT col2 / + 26 AS col1 FROM tab1
----
2
3

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 8bda8b9cf32f196464e0ee0b41a5162d

query I rowsort
SELECT ALL + - col0 * - 91 FROM tab0 cor0
----
2184
3185
8099

query I rowsort
SELECT + col2 + ( + ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT 39 + - col0 FROM tab2
----
-39
-40
32

query I rowsort
SELECT - col1 * col1 * + col0 + col1 FROM tab2
----
-22814
-271459
-6696

query I rowsort
SELECT DISTINCT - 29 + - 10 FROM tab2
----
-39

query I rowsort
SELECT ALL - col2 + tab2.col1 AS col0 FROM tab2
----
-21
33
4

query I rowsort
SELECT - tab2.col2 + 60 AS col2 FROM tab2
----
22
33
34

query I rowsort
SELECT ALL - col0 + col2 + + col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col1 * + 95 + + col2 * 97 FROM tab0 AS cor0
----
11371
16599
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 * + 25 col2 FROM tab2 cor0
----
575
575
575

onlyif mysql # use DIV operator for integer division
query I rowsort label-1588
SELECT DISTINCT - - col2 DIV 69 + col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT - - col2 / 69 + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - col1 * col2 * + col2 + 44 FROM tab1 AS cor0
----
-119764
-32446
-75772

query I rowsort
SELECT DISTINCT + + col1 * col1 + col0 * col2 AS col0 FROM tab1 AS cor0
----
3748
7849
838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col2 + - col2 col0 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL - 83 * + col0 AS col2 FROM tab0 AS cor0
----
-1992
-2905
-7387

query I rowsort
SELECT ALL - ( - col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + col2 + - col1 * - col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-1595
SELECT DISTINCT ( cor0.col1 ) DIV - ( + 60 ) + col2 AS col0 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT ( cor0.col1 ) / - ( + 60 ) + col2 AS col0 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT - ( col1 ) * ( + col1 ) + col0 AS col0 FROM tab1 AS cor0
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1597
SELECT ALL - ( - col0 ) + col0 DIV cor0.col1 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL - ( - col0 ) + col0 / cor0.col1 FROM tab0 cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1598
SELECT ALL 48 DIV - col2 + + 96 * 83 FROM tab1 AS cor0
----
7968
7968
7968

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL 48 / - col2 + + 96 * 83 FROM tab1 AS cor0
----
7968
7968
7968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1599
SELECT DISTINCT - + col1 * col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1599
SELECT DISTINCT - + col1 * col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + col0 AS col0 FROM tab0 cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col0 * col1 * col2 col0 FROM tab2
----
119711
51051
5890

query I rowsort
SELECT + ( col0 + + col0 ) AS col2 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT col0 * col2 + col0 * ( + 35 ) FROM tab0
----
10413
1260
1632

query I rowsort
SELECT DISTINCT + 11 * 92 + - col1 FROM tab1
----
1002
986
999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - col2 * + col0 col0 FROM tab0 AS cor0
----
-132
-7389
-878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + - col0 * - 1 col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT 61 * col2 FROM tab0 cor0
----
2013
5002
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-1608
SELECT DISTINCT ( + col1 ) + - col0 DIV + col2 AS col2 FROM tab0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT ( + col1 ) + - col0 / + col2 AS col2 FROM tab0
----
62
86
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1609
SELECT col2 * + CAST( - col0 AS SIGNED ) * col2 FROM tab1
----
-207936
-737280
-8748

skipif mysql # not compatible
query I rowsort label-1609
SELECT col2 * + CAST ( - col0 AS INTEGER ) * col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT + col0 * col0 * col1 AS col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT col1 + 2 FROM tab1
----
12
15
28

query I rowsort
SELECT DISTINCT col2 * + ( - col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT col2 + - col2 + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col1 * ( col1 ) + + col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT + col1 - 25 FROM tab2 AS cor0
----
-8
34
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1616
SELECT col1 * CAST( col1 * + col2 AS SIGNED ) FROM tab2 AS cor0
----
10982
25947
90506

skipif mysql # not compatible
query I rowsort label-1616
SELECT col1 * CAST ( col1 * + col2 AS INTEGER ) FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT + col1 * col0 + + 81 AS col2 FROM tab2 AS cor0
----
1424
298
4683

query I rowsort
SELECT DISTINCT - - col1 * ( col1 ) * - col2 AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1619
SELECT - + CAST( NULL AS SIGNED ) + - cor0.col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1619
SELECT - + CAST ( NULL AS INTEGER ) + - cor0.col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 20 * col0 + col1 FROM tab2 AS cor0
----
-109
-1501
-1563

query I rowsort
SELECT DISTINCT - ( col2 ) * - col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - ( cor0.col2 ) + - col0 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - 88 + 29 FROM tab0 AS cor0
----
-59
-59
-59

query I rowsort
SELECT col0 * + 63 * + col1 FROM tab2
----
13671
289926
84609

query I rowsort
SELECT - col0 + - 55 + - col2 AS col1 FROM tab1
----
-112
-176
-231

query I rowsort
SELECT DISTINCT tab0.col0 * - col1 + - col0 AS col1 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT + + 52 AS col2 FROM tab1 cor0
----
52
52
52

query I rowsort
SELECT DISTINCT + tab0.col1 * - tab0.col0 + - col2 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT + + col0 * + 48 * + col0 FROM tab2 cor0
----
2352
292032
299568

query I rowsort
SELECT + col1 * col1 + col0 FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-1631
SELECT ALL - + col0 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1631
SELECT ALL - + col0 / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 75 AS col0 FROM tab1 AS cor0
----
-75
-75
-75

query I rowsort
SELECT ALL - 48 * col2 FROM tab1 AS cor0
----
-2592
-2736
-4608

query I rowsort
SELECT ALL col0 * - tab1.col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL - 51 * - col2 AS col2 FROM tab0
----
1683
4182
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1636
SELECT ALL - 28 * col0 * CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
102144
215040
4536

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL - 28 * col0 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
102144
215040
4536

onlyif mysql # use DIV operator for integer division
query I rowsort label-1637
SELECT DISTINCT + - col0 DIV - col1 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT + - col0 / - col1 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT - 91 * col1 FROM tab1 AS cor0
----
-1183
-2366
-910

query I rowsort
SELECT + 70 AS col2 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT col0 + - 49 FROM tab1 AS cor0
----
-46
15
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-1641
SELECT + col2 DIV + col1 + col1 col1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1641
SELECT + col2 / + col1 + col1 col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col0 + col1 + - tab0.col2 AS col2 FROM tab0
----
-80
29
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * + 21 col1 FROM tab1 AS cor0
----
14196
2100
3549

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 46 col0 FROM tab0 AS cor0
----
1518
3772
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1646
SELECT tab1.col1 DIV - col1 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1646
SELECT tab1.col1 / - col1 AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL col1 * + ( 28 ) FROM tab0
----
2408
2548
2716

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1648
SELECT - cor0.col0 * CAST( - 96 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
672
7488
7584

skipif mysql # not compatible
query I rowsort label-1648
SELECT - cor0.col0 * CAST ( - 96 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
672
7488
7584

query I rowsort
SELECT + col0 + - 57 * + col2 FROM tab1 AS cor0
----
-3075
-3185
-5392

query I rowsort
SELECT - col1 * + col0 * - col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-1651
SELECT col2 DIV + 10 AS col1 FROM tab2
----
2
2
3

skipif mysql # not compatible
query I rowsort label-1651
SELECT col2 / + 10 AS col1 FROM tab2
----
2
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1652
SELECT DISTINCT + tab1.col0 DIV col2 AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT + tab1.col0 / col2 AS col0 FROM tab1
----
0
1

query I rowsort
SELECT tab0.col0 + tab0.col0 AS col2 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL 76 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT + 43 * col2 FROM tab0 AS cor0
----
1419
3526
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col0 FROM tab1 AS cor0
----
7
7
7

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c

onlyif mysql # use DIV operator for integer division
query I rowsort label-1658
SELECT ALL col2 + + col1 DIV col1 + ( ( - col0 ) + + col2 ) AS col1 FROM tab1 cor0
----
106
113
51

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL col2 + + col1 / col1 + ( ( - col0 ) + + col2 ) AS col1 FROM tab1 cor0
----
106
113
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1659
SELECT ALL - 33 * ( col2 ) + - CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL - 33 * ( col2 ) + - CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * - col2 + + cor0.col2 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1661
SELECT - - CAST( NULL AS SIGNED ) + + col0 * col2 col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1661
SELECT - - CAST ( NULL AS INTEGER ) + + col0 * col2 col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + ( col0 ) ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col0 - 57 FROM tab1 AS cor0
----
-121
-137
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1664
SELECT + + CAST( + col1 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-1664
SELECT + + CAST ( + col1 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 43 * ( - col2 ) FROM tab2 AS cor0
----
1118
1161
1634

query I rowsort
SELECT - col2 * - 43 * col0 FROM tab1 AS cor0
----
156864
330240
6966

query I rowsort
SELECT DISTINCT - + col0 * - col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL 60 * + cor0.col2 + col1 * col1 FROM tab2 AS cor0
----
2569
2581
5041

query I rowsort
SELECT DISTINCT - col2 - ( + cor0.col0 + 41 ) * col2 FROM tab2 AS cor0
----
-1323
-3120
-4598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL + cor0.col1 + + col2 AS col0 FROM tab2 cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 col2 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT ALL + ( - col2 ) + - 39 * col2 FROM tab2 AS cor0
----
-1040
-1080
-1520

query I rowsort
SELECT + 63 + col1 AS col0 FROM tab1 AS cor0
----
73
76
89

query I rowsort
SELECT DISTINCT + 76 + cor0.col0 FROM tab2 AS cor0
----
154
155
83

query I rowsort
SELECT - 28 AS col0 FROM tab1, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 70e92c218433163922867899a16e1269

query I rowsort
SELECT 12 AS col2 FROM tab1
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 - cor1.col0 col2 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 9834cca1c52b7305d59a6037ae72b0ec

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823

query I rowsort
SELECT + col0 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col0 * - 23 FROM tab2, tab1 AS cor0
----
9 values hashing to e9624cdc45488e38bd1d49c31ef0f48b

query I rowsort
SELECT - col1 * 97 FROM tab1 cor0
----
-1261
-2522
-970

query I rowsort
SELECT DISTINCT col1 * 31 FROM tab0 AS cor0
----
2666
2821
3007

query I rowsort
SELECT DISTINCT col1 * + col2 + - 61 * cor0.col2 FROM tab1 AS cor0
----
-1890
-2907
-4608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 7 col1 FROM tab1
----
378
399
672

query I rowsort
SELECT DISTINCT col2 * - 51 FROM tab1
----
-2754
-2907
-4896

query I rowsort
SELECT ALL + cor0.col1 * col2 + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-1689
SELECT DISTINCT cor0.col2 * - col1 + col2 + + 88 * col0 DIV + col0 FROM tab2 AS cor0
----
-1420
-520
-722

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT cor0.col2 * - col1 + col2 + + 88 * col0 / + col0 FROM tab2 AS cor0
----
-1420
-520
-722

query I rowsort
SELECT ALL + + ( cor0.col1 ) * - col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - cor0.col0 * 16 FROM tab1 cor0
----
-1024
-1280
-48

query I rowsort
SELECT ALL - col0 + - ( - col0 ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 - 36 AS col0 FROM tab1
----
-10
-23
-26

query I rowsort
SELECT + col2 * col2 * col1 + tab0.col2 FROM tab0
----
611966
93687
98

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT ALL + - 91 FROM tab0 AS cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT + + col2 * col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + col2 * 26 FROM tab1 AS cor0
----
1404
1482
2496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 * - col0 col1 FROM tab0 AS cor0
----
-1848
-2695
-6853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 61 col1 FROM tab0 AS cor0
----
2013
5002
61

query I rowsort
SELECT + ( col1 ) + - col1 + + 70 * + col2 AS col2 FROM tab1 AS cor0
----
3780
3990
6720

query I rowsort
SELECT ALL + 22 + ( + col0 ) FROM tab1 AS cor0
----
102
25
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1
----
1
33
82

query I rowsort
SELECT 63 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1705
SELECT ALL CAST( + ( + col0 ) AS SIGNED ) * + 45 AS col2 FROM tab1
----
135
2880
3600

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL CAST ( + ( + col0 ) AS INTEGER ) * + 45 AS col2 FROM tab1
----
135
2880
3600

onlyif mysql # use DIV operator for integer division
query I rowsort label-1706
SELECT + col1 DIV - col1 + + col0 AS col2 FROM tab2
----
6
77
78

skipif mysql # not compatible
query I rowsort label-1706
SELECT + col1 / - col1 + + col0 AS col2 FROM tab2
----
6
77
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1707
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1707
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1708
SELECT DISTINCT + - col2 DIV col1 AS col0 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT + - col2 / col1 AS col0 FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT - col1 + 57 * col1 + ( col0 ) AS col2 FROM tab1 cor0
----
1459
624
808

query I rowsort
SELECT ALL 35 * + col1 AS col1 FROM tab1
----
350
455
910

query I rowsort
SELECT ALL - 41 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf

onlyif mysql # use DIV operator for integer division
query I rowsort label-1712
SELECT ALL - tab0.col2 * col1 - - 92 DIV + col0 FROM tab0
----
-2835
-7461
-95

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL - tab0.col2 * col1 - - 92 / + col0 FROM tab0
----
-2835
-7461
-95

query I rowsort
SELECT col0 + cor0.col0 AS col2 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + 23 * cor0.col2 + - col0 + col0 * + col2 AS col2 FROM tab2 AS cor0
----
2548
3797
803

query I rowsort
SELECT ALL - tab0.col2 + col2 * tab0.col2 AS col1 FROM tab0
----
0
1056
6642

query I rowsort
SELECT DISTINCT - ( 73 + + tab0.col1 ) FROM tab0, tab2 cor0, tab0 cor1
----
-159
-164
-170

query I rowsort
SELECT ( + cor0.col2 ) FROM tab0, tab2, tab2 cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT 4 * col0 AS col2 FROM tab1
----
12
256
320

query I rowsort
SELECT col0 * col0 + - col1 AS col2 FROM tab2
----
18
6025
6224

query I rowsort
SELECT ALL + col1 * - col0 + + col2 * - cor0.col2 FROM tab1 AS cor0
----
-10256
-2994
-3889

query I rowsort
SELECT ALL - + cor0.col1 + 43 FROM tab0 AS cor0
----
-43
-48
-54

query I rowsort
SELECT DISTINCT col0 * + 90 AS col2 FROM tab2 AS cor0
----
630
7020
7110

query I rowsort
SELECT DISTINCT - - col0 + cor0.col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + - col0 * - 97 + - col1 AS col0 FROM tab2 AS cor0
----
648
7507
7646

onlyif mysql # use DIV operator for integer division
query I rowsort label-1725
SELECT ALL + col0 DIV + CAST( - 34 AS SIGNED ) + col1 AS col2 FROM tab0 cor0
----
86
89
96

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL + col0 / + CAST ( - 34 AS INTEGER ) + col1 AS col2 FROM tab0 cor0
----
86
89
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1726
SELECT ALL col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col0 * + ( col0 * col2 ) AS col0 FROM tab0 cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT + col2 + - 49 AS col2 FROM tab0 AS cor0
----
-16
-48
33

query I rowsort
SELECT ALL + cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - - col0 * ( - 99 * + cor0.col1 ) FROM tab2 AS cor0
----
-132957
-21483
-455598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 + - col0 col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col2 * - 83 * col0 FROM tab2 AS cor0
----
-15687
-168324
-249166

query I rowsort
SELECT DISTINCT - col1 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - col0 * - tab1.col1 + - col2 FROM tab1
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-1735
SELECT col1 DIV + col2 + - col2 * col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-1735
SELECT col1 / + col2 + - col2 * col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - col0 * tab0.col0 * col1 AS col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( NULL ) IN ( col2 )
----

query I rowsort
SELECT DISTINCT + col1 - - col2 FROM tab0
----
119
173
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT DISTINCT col2 + - tab2.col0 * - col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT tab2.col2 + col1 * + col2 AS col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT DISTINCT col0 + + col1 * col1 AS col0 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT + col2 * - col1 + col1 + + col2 FROM tab2 AS cor0
----
-1449
-591
-779

query I rowsort
SELECT - tab1.col0 + - tab1.col2 * tab1.col1 FROM tab1
----
-1328
-1407
-634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col0 col2 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-1746
SELECT ALL + - col2 + col2 + + col2 * col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0
12
73

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL + - col2 + col2 + + col2 * col2 / col1 AS col1 FROM tab0 AS cor0
----
0
12
73

query I rowsort
SELECT ALL cor0.col0 * + col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + col2 * + col1 * - cor0.col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-1749
SELECT DISTINCT cor0.col0 DIV - cor1.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT cor0.col0 / - cor1.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
0

query I rowsort
SELECT + 77 - tab0.col1 FROM tab0
----
-14
-20
-9

query I rowsort
SELECT - - 46 AS col0 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT - 85 * col1 AS col0 FROM tab0 cor0
----
-7310
-7735
-8245

query I rowsort
SELECT DISTINCT cor0.col0 + ( - ( + cor0.col2 ) ) AS col1 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1754
SELECT ALL + cor0.col2 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL + cor0.col2 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - col0 + + col1 * + col2 AS col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - 57 FROM tab1, tab0, tab2 cor0
----
-57

query I rowsort
SELECT - 73 * - cor0.col2 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to daf10d9637c518d6046fbb04e953ce70

query I rowsort
SELECT DISTINCT 71 AS col2 FROM tab1
----
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-1759
SELECT DISTINCT - col0 * - cor0.col2 - col0 DIV + col0 FROM tab0 AS cor0
----
34
7297
791

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT - col0 * - cor0.col2 - col0 / + col0 FROM tab0 AS cor0
----
34
7297
791

query I rowsort
SELECT + + col0 + 84 * col2 AS col2 FROM tab1 AS cor0
----
4539
4852
8144

onlyif mysql # use DIV operator for integer division
query I rowsort label-1761
SELECT DISTINCT - + col0 + - col2 DIV - cor0.col2 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-1761
SELECT DISTINCT - + col0 + - col2 / - cor0.col2 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT DISTINCT + cor0.col0 + 19 FROM tab2 AS cor0
----
26
97
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + col0 * + col0 IN ( - col1 * col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT + col2 * tab0.col2 + col0 FROM tab0
----
1113
36
6813

query I rowsort
SELECT tab1.col2 * + col0 * + col1 + + col0 * col0 * col1 AS col1 FROM tab1
----
183040
4446
77440

query I rowsort
SELECT - col0 * tab2.col1 * + col2 AS col0 FROM tab2
----
-119652
-51034
-5859

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + col0 NOT IN ( - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1768
SELECT DISTINCT + col2 * col0 + col0 DIV col1 + + col1 AS col1 FROM tab0
----
132
7389
878

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT + col2 * col0 + col0 / col1 + + col1 AS col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT - col0 + col2 AS col0 FROM tab1 WHERE NOT col2 + col2 < - col1 * col1
----
-7
16
51

query I rowsort
SELECT col2 * + tab1.col0 * + col2 + col2 FROM tab1
----
207993
737376
8802

query I rowsort
SELECT tab2.col1 * + col1 AS col1 FROM tab2 WHERE NULL BETWEEN col1 AND col1 / - col2
----

query I rowsort
SELECT DISTINCT - col1 * + col2 AS col0 FROM tab1
----
-1248
-1404
-570

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) >= ( col1 )
----

query I rowsort
SELECT col0 * - col0 + col1 + - col2 * + col0 * + col0 FROM tab0
----
-19498
-2353
-657352

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1776
SELECT + tab0.col0 DIV - col1 + + col2 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1776
SELECT + tab0.col0 / - col1 + + col2 AS col1 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1777
SELECT - col2 + col2 DIV + col2 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-1777
SELECT - col2 + col2 / + col2 FROM tab1
----
-53
-56
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-1778
SELECT DISTINCT - col1 DIV col1 - col1 AS col0 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT - col1 / col1 - col1 AS col0 FROM tab1
----
-11
-14
-27

query I rowsort
SELECT ALL + col1 + - col2 * col1 AS col2 FROM tab2
----
-1475
-629
-806

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) IN ( col1 * + col1 )
----

query I rowsort
SELECT DISTINCT tab0.col0 + + col2 AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL - col0 * + col0 - col2 AS col0 FROM tab2 AS cor0
----
-6110
-6279
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * col1 - - ( col0 + col2 ) col0 FROM tab2 AS cor0
----
3585
406
995

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col0 * - col0 * col0 - col1 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + - col1 + + col1 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1786
SELECT col2 * col0 * col2 + - col1 DIV tab0.col2 AS col2 FROM tab0
----
-62
26134
598435

skipif mysql # not compatible
query I rowsort label-1786
SELECT col2 * col0 * col2 + - col1 / tab0.col2 AS col2 FROM tab0
----
-62
26134
598435

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL - col2 * - col0 + - tab0.col1 AS col0 FROM tab0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-1789
SELECT col1 DIV col0 - - col0 * - col0 FROM tab0
----
-1223
-573
-7920

skipif mysql # not compatible
query I rowsort label-1789
SELECT col1 / col0 - - col0 * - col0 FROM tab0
----
-1223
-573
-7920

query I rowsort
SELECT tab2.col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT + 95 + + col2 FROM tab0
----
128
177
96

query I rowsort
SELECT 32 + + col1 AS col1 FROM tab2
----
49
63
91

query I rowsort
SELECT col1 * col1 * ( col0 ) + - tab1.col0 * + tab1.col2 FROM tab1
----
1866
2752
5840

query I rowsort
SELECT + col2 + cor0.col1 + 43 FROM tab1 AS cor0
----
110
123
152

query I rowsort
SELECT DISTINCT + + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + col1 * col1 + ( + tab0.col0 * col0 ) FROM tab0
----
10634
16202
7972

query I rowsort
SELECT 73 * - cor0.col1 FROM tab1 AS cor0
----
-1898
-730
-949

query I rowsort
SELECT col2 + col2 * 16 FROM tab0
----
1394
17
561

onlyif mysql # use DIV operator for integer division
query I rowsort label-1799
SELECT DISTINCT col2 * col2 + - col2 DIV + col0 FROM tab1
----
2898
3249
9215

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT col2 * col2 + - col2 / + col0 FROM tab1
----
2898
3249
9215

query I rowsort
SELECT col2 * + col2 * - tab0.col0 AS col2 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT + col2 + ( tab2.col2 ) AS col2 FROM tab2
----
52
54
76

query I rowsort
SELECT ALL + col0 * ( col0 ) FROM tab2 cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1803
SELECT - col2 * + CAST( col0 * col1 + col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
-101088
-37050
-5616

skipif mysql # not compatible
query I rowsort label-1803
SELECT - col2 * + CAST ( col0 * col1 + col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
-101088
-37050
-5616

query I rowsort
SELECT ALL - col0 * 32 AS col2 FROM tab1 AS cor0
----
-2048
-2560
-96

query I rowsort
SELECT ALL - cor0.col1 + - 60 * - col0 FROM tab1 AS cor0
----
154
3830
4787

query I rowsort
SELECT DISTINCT col1 * + 14 AS col1 FROM tab0 AS cor0
----
1204
1274
1358

query I rowsort
SELECT + cor0.col0 + cor0.col2 AS col2 FROM tab2 cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col0 col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL + 90 * + col1 + - col2 FROM tab1
----
1074
2286
843

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1810
SELECT ALL - CAST( 3 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL - CAST ( 3 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT 7 + + col0 FROM tab0 AS cor0
----
31
42
96

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) + - col1 FROM tab1 AS cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * + 65 * - col0 col2 FROM tab1 cor0
----
-10530
-237120
-499200

query I rowsort
SELECT - ( + 51 ) - col0 AS col2 FROM tab2 AS cor0
----
-129
-130
-58

query I rowsort
SELECT - col0 * - col2 * + col0 + + col2 FROM tab0 AS cor0
----
1226
19041
649604

query I rowsort
SELECT ALL - ( - col0 ) + - 93 AS col1 FROM tab1 AS cor0
----
-13
-29
-90

query I rowsort
SELECT 6 AS col0 FROM tab0 AS cor0
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 * + col2 + 8 col0 FROM tab2 AS cor0
----
-114068
-5095
-52720

query I rowsort
SELECT ALL + 91 * col2 * 54 FROM tab1 AS cor0
----
265356
280098
471744

onlyif mysql # use DIV operator for integer division
query I rowsort label-1820
SELECT DISTINCT + + col0 DIV col0 col2 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT + + col0 / col0 col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + + 31 AS col2 FROM tab1 AS cor0
----
31

query I rowsort
SELECT DISTINCT 30 FROM tab1, tab2 AS cor0, tab1 cor1, tab1 AS cor2
----
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-1823
SELECT DISTINCT - tab2.col2 DIV 91 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT - tab2.col2 / 91 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col2 + - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT 45 + col1 * 31 FROM tab2 AS cor0
----
1006
1874
572

query I rowsort
SELECT DISTINCT + - cor0.col1 * + col1 - + col2 FROM tab1 AS cor0
----
-157
-265
-730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 + col0 col2 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 * col0 + - col1 * col1 col0 FROM tab0 AS cor0
----
-128234
-56932
-729092

query I rowsort
SELECT DISTINCT - - col0 + - col1 + + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1163
514
7919

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * - col1 col1 FROM tab1
----
-1209
-2418
-930

query I rowsort
SELECT col2 * + cor0.col0 - + col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 + col1 col1 FROM tab1 AS cor0
----
-34
-47
-50

query I rowsort
SELECT ALL + - 44 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-308
-3432
-3476

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab2, tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL 59 + - col2 AS col0 FROM tab2
----
21
32
33

query I rowsort
SELECT - col0 * col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT - col0 + - col1 * - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT + col0 * - 82 * + col2 AS col0 FROM tab1 AS cor0
----
-13284
-299136
-629760

query I rowsort
SELECT - 94 AS col1 FROM tab2 AS cor0
----
-94
-94
-94

query I rowsort
SELECT ALL - 19 * col0 + - col2 + col2 * cor0.col0 FROM tab2 cor0
----
1463
29
520

query I rowsort
SELECT - col1 - - col1 * - tab1.col0 AS col0 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT + col2 + col1 + - tab2.col2 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL + 31 + col2 * col2 FROM tab2
----
1475
707
760

query I rowsort
SELECT DISTINCT + col0 * - 63 + col2 FROM tab0
----
-1479
-2204
-5525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 - - col2 * col0 col0 FROM tab0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-1847
SELECT - col2 * col0 + col2 DIV col0 FROM tab1
----
-144
-3648
-7679

skipif mysql # not compatible
query I rowsort label-1847
SELECT - col2 * col0 + col2 / col0 FROM tab1
----
-144
-3648
-7679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 - + ( col1 ) * + col1 col0 FROM tab0
----
-7361
-8246
-9374

query I rowsort
SELECT - tab1.col0 * + tab1.col2 + - col2 AS col1 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT - col2 * tab2.col0 + - col1 AS col0 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT + + ( 9 ) * - col2 FROM tab0 AS cor0
----
-297
-738
-9

query I rowsort
SELECT DISTINCT + ( 96 ) FROM tab2 AS cor0
----
96

query I rowsort
SELECT - 22 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT ( + col0 ) * - col2 * tab2.col1 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-1855
SELECT + ( + 29 ) + col1 DIV - col2 AS col1 FROM tab0
----
-68
27
28

skipif mysql # not compatible
query I rowsort label-1855
SELECT + ( + 29 ) + col1 / - col2 AS col1 FROM tab0
----
-68
27
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-1856
SELECT - CAST( tab1.col0 + + col0 AS SIGNED ) DIV tab1.col1 FROM tab1
----
-12
-12
0

skipif mysql # not compatible
query I rowsort label-1856
SELECT - CAST ( tab1.col0 + + col0 AS INTEGER ) / tab1.col1 FROM tab1
----
-12
-12
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1857
SELECT ( + tab0.col2 ) DIV col2 col0 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1857
SELECT ( + tab0.col2 ) / col2 col0 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL col0 + + ( tab0.col0 ) FROM tab0
----
178
48
70

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( 52 AS REAL ) * col2 + col2 AS col1 FROM tab1
----
2862
3021
5088

query I rowsort
SELECT + + cor0.col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1861
SELECT CAST( NULL AS SIGNED ) * 82 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1861
SELECT CAST ( NULL AS INTEGER ) * 82 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( + col0 ) * col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1863
SELECT - cor0.col2 DIV - col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1863
SELECT - cor0.col2 / - col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT 76 * + col0 * + col0 + ( 68 ) * - tab2.col1 AS col1 FROM tab2
----
1616
458372
473160

query I rowsort
SELECT DISTINCT - 37 AS col0 FROM tab2
----
-37

query I rowsort
SELECT - 83 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT 53 FROM tab0, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT DISTINCT col1 - cor0.col2 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ( - col1 * - col0 ) AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT ( 2 ) * tab2.col2 AS col0 FROM tab2
----
52
54
76

query I rowsort
SELECT + col1 + col1 + 27 AS col1 FROM tab1
----
47
53
79

query I rowsort
SELECT DISTINCT tab2.col0 + tab2.col2 AS col1 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1873
SELECT DISTINCT - col0 + - col0 DIV ( col0 ) FROM tab2
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT - col0 + - col0 / ( col0 ) FROM tab2
----
-79
-8
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1874
SELECT - col1 DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1874
SELECT - col1 / + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1875
SELECT + col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT + col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 95 AS col1 FROM tab1
----
-95
-95
-95

query I rowsort
SELECT - 62 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6

query I rowsort
SELECT ALL + 51 FROM tab0
----
51
51
51

query I rowsort
SELECT DISTINCT col2 * ( 59 ) FROM tab2 AS cor0
----
1534
1593
2242

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1880
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 4 FROM tab2, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 4 FROM tab2, tab2 cor0
----
NULL

query I rowsort
SELECT - + col1 * col1 FROM tab1 cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-1882
SELECT ALL - - col1 * 38 DIV col0 FROM tab1 cor0
----
329
5
6

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL - - col1 * 38 / col0 FROM tab1 cor0
----
329
5
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1883
SELECT DISTINCT + col0 + col2 DIV 39 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-1883
SELECT DISTINCT + col0 + col2 / 39 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + col0 * - 98 FROM tab0 AS cor0
----
-2352
-3430
-8722

onlyif mysql # use DIV operator for integer division
query I rowsort label-1885
SELECT + - col2 DIV ( 35 * + col1 ) + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-1885
SELECT + - col2 / ( 35 * + col1 ) + col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + ( + col1 ) col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL + 67 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT ALL - 70 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT + col0 * - ( + col1 ) + col0 AS col2 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT 60 * col1 FROM tab2 AS cor0
----
1020
1860
3540

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1892
SELECT + CAST( 22 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-1892
SELECT + CAST ( 22 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
22
22
22

query I rowsort
SELECT - col0 * - tab2.col0 + col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT - ( col0 ) + col2 * - 65 + - col1 FROM tab1 AS cor0
----
-3539
-3779
-6333

query I rowsort
SELECT DISTINCT ( 32 ) FROM tab2 AS cor0
----
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-1896
SELECT ALL col0 + + cor0.col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL col0 + + cor0.col2 / - col2 AS col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT - + col1 + col2 * - col2 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT ALL + 58 AS col1 FROM tab0 cor0
----
58
58
58

query I rowsort
SELECT ALL + 68 + - cor0.col2 * + col1 FROM tab0 AS cor0
----
-2770
-29
-7394

query I rowsort
SELECT ALL ( + 48 ) * col0 FROM tab1 AS cor0
----
144
3072
3840

onlyif mysql # use DIV operator for integer division
query I rowsort label-1901
SELECT ALL - col0 DIV - 22 AS col2 FROM tab0
----
1
1
4

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL - col0 / - 22 AS col2 FROM tab0
----
1
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1903
SELECT + - CAST( col2 AS SIGNED ) + + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-1903
SELECT + - CAST ( col2 AS INTEGER ) + + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + col1 + + col0 * col2 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT + col0 * col0 + ( cor0.col1 * + cor0.col0 ) FROM tab2 AS cor0
----
10686
266
7584

query I rowsort
SELECT 56 - + col2 FROM tab2 AS cor0
----
18
29
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - col2 + + cor0.col1 col1 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT 17 + cor0.col2 FROM tab1 AS cor0
----
113
71
74

query I rowsort
SELECT col0 * - col2 * col0 - col0 AS col2 FROM tab2 AS cor0
----
-1330
-158262
-237237

query I rowsort
SELECT + 4 * col1 FROM tab2 AS cor0
----
124
236
68

query I rowsort
SELECT + col1 + 94 * 13 AS col2 FROM tab0 AS cor0
----
1308
1313
1319

query I rowsort
SELECT - col2 * 56 * + 51 + col1 FROM tab0 AS cor0
----
-234101
-2759
-94162

query I rowsort
SELECT - col1 + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT DISTINCT col2 + - 7 + col1 AS col0 FROM tab0 AS cor0
----
112
166
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col1 col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL 82 AS col0 FROM tab0 AS cor0
----
82
82
82

query I rowsort
SELECT DISTINCT cor0.col1 * + col0 * - 20 FROM tab1 AS cor0
----
-12800
-1560
-20800

query I rowsort
SELECT ALL 63 AS col2 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT ALL - + 84 FROM tab2 AS cor0
----
-84
-84
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1920
SELECT DISTINCT + col1 + cor0.col1 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT + col1 + cor0.col1 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT + - col2 * - col0 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col0 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL col1 + + col0 * 4 * - col1 AS col2 FROM tab2 AS cor0
----
-18349
-5355
-837

query I rowsort
SELECT col1 * - col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - ( cor0.col0 ) * 84 AS col2 FROM tab0 AS cor0
----
-2016
-2940
-7476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 + + col2 * - tab0.col1 + col1 col2 FROM tab0
----
-2794
-42
-7413

query I rowsort
SELECT + tab0.col0 + col2 - - col0 FROM tab0
----
260
71
81

query I rowsort
SELECT ALL + ( + col2 + col1 ) * + 76 FROM tab2
----
4180
4408
6460

query I rowsort
SELECT tab1.col1 - - col1 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT + 92 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
92

query I rowsort
SELECT ALL - ( - col0 ) * 80 + col2 + col0 AS col2 FROM tab1 AS cor0
----
297
5241
6576

query I rowsort
SELECT DISTINCT - + col1 * - col0 - + ( + col1 + - col2 ) * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - 77 + col2 AS col2 FROM tab2 AS cor0
----
-39
-50
-51

query I rowsort
SELECT - + 77 * - col1 + + col0 AS col2 FROM tab1 cor0
----
1081
2005
834

query I rowsort
SELECT DISTINCT - - 87 * cor0.col1 FROM tab0 AS cor0
----
7482
7917
8439

query I rowsort
SELECT ALL col0 * 49 FROM tab2
----
343
3822
3871

query I rowsort
SELECT + col2 + col0 + + col0 AS col2 FROM tab1
----
185
256
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-1939
SELECT - + 51 DIV col2 FROM tab0 cor0
----
-1
-51
0

skipif mysql # not compatible
query I rowsort label-1939
SELECT - + 51 / col2 FROM tab0 cor0
----
-1
-51
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1940
SELECT - 61 + + 35 DIV - col1 col2 FROM tab0
----
-61
-61
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1940
SELECT - 61 + + 35 / - col1 col2 FROM tab0
----
-61
-61
-61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1941
SELECT DISTINCT col0 * tab2.col1 * + tab2.col2 + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT col0 * tab2.col1 * + tab2.col2 + CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT tab0.col1 * tab0.col2 + col2 AS col1 FROM tab0
----
2871
7544
98

query I rowsort
SELECT ALL cor0.col0 + + 95 FROM tab0 cor0
----
119
130
184

query I rowsort
SELECT - col0 * col2 + col1 * - col2 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT - col0 * + col0 + + col1 - + 38 AS col2 FROM tab0 AS cor0
----
-1166
-528
-7868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 + 73 col2 FROM tab0 AS cor0
----
115
115
115

query I rowsort
SELECT cor0.col2 + - 42 AS col0 FROM tab0 cor0
----
-41
-9
40

query I rowsort
SELECT ALL - 93 * cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
-1113
-2364
-873

query I rowsort
SELECT ALL - - 66 * + col0 + col2 * - col1 + col0 * - col0 FROM tab0 AS cor0
----
-1830
-9509
988

query I rowsort
SELECT DISTINCT + - 1 * ( + col2 ) + + 44 FROM tab2 AS cor0
----
17
18
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 5 col0 FROM tab1 AS cor0
----
15
320
400

query I rowsort
SELECT DISTINCT + col1 * 87 + col2 * + col1 AS col0 FROM tab0 AS cor0
----
10320
15379
8536

query I rowsort
SELECT DISTINCT + - 95 * col1 AS col0 FROM tab0 AS cor0
----
-8170
-8645
-9215

query I rowsort
SELECT - - col2 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - + ( - col1 ) + + col1 - + col2 AS col1 FROM tab2 AS cor0
----
-4
35
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1956
SELECT ALL + 60 * - ( col0 ) + CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL + 60 * - ( col0 ) + CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 * + col2 - - cor0.col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - col1 + - col0 AS col2 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT ALL + - col1 + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 * col1 col0 FROM tab2 AS cor0
----
-1292
-2356
-4484

query I rowsort
SELECT + col0 + - col0 * 90 * - 12 FROM tab2 cor0
----
7567
84318
85399

query I rowsort
SELECT ALL 53 + - col1 * 79 FROM tab0 AS cor0
----
-6741
-7136
-7610

query I rowsort
SELECT ALL - + col2 + col0 * + 50 AS col0 FROM tab1 AS cor0
----
3143
3904
96

query I rowsort
SELECT DISTINCT - - 2 * - col2 AS col1 FROM tab0 cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-1965
SELECT DISTINCT col2 DIV - col0 + - col1 - + 72 AS col1 FROM tab1
----
-116
-82
-86

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT col2 / - col0 + - col1 - + 72 AS col1 FROM tab1
----
-116
-82
-86

query I rowsort
SELECT - 7 + col1 FROM tab1 AS cor0
----
19
3
6

query I rowsort
SELECT ALL col2 - + ( cor0.col2 * col2 ) FROM tab0 AS cor0
----
-1056
-6642
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 97 + col0 col0 FROM tab2 AS cor0
----
1728
3014
5801

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1969
SELECT cor0.col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT cor0.col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1970
SELECT ALL + - cor0.col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL + - cor0.col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + 11 FROM tab2 AS cor0
----
187
341
649

query I rowsort
SELECT 78 FROM tab2, tab1 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1973
SELECT DISTINCT col1 * - col2 * col0 + - col0 * - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-124254
-52377
-6076

skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT col1 * - col2 * col0 + - col0 * - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-124254
-52377
-6076

query I rowsort
SELECT DISTINCT - col0 - + ( - 32 ) AS col0 FROM tab0 AS cor0
----
-3
-57
8

query I rowsort
SELECT ALL + col1 * + 70 AS col1 FROM tab1 AS cor0
----
1820
700
910

query I rowsort
SELECT + col1 * col2 + + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT cor0.col2 + ( + 73 ) FROM tab1 AS cor0
----
127
130
169

query I rowsort
SELECT DISTINCT col0 * - col1 * + 41 FROM tab1
----
-26240
-3198
-42640

query I rowsort
SELECT DISTINCT ( col2 ) * col2 + col1 + col2 AS col1 FROM tab2 AS cor0
----
1499
761
787

onlyif mysql # use DIV operator for integer division
query I rowsort label-1980
SELECT DISTINCT - col2 + ( col0 ) DIV - col0 AS col1 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT - col2 + ( col0 ) / - col0 AS col1 FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT ALL + 6 * col2 - col0 AS col2 FROM tab0 cor0
----
-29
174
403

query I rowsort
SELECT DISTINCT col1 * ( 52 * - col0 ) AS col0 FROM tab1
----
-33280
-4056
-54080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1983
SELECT ALL + col0 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL + col0 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 55 + 84 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
139

onlyif mysql # use DIV operator for integer division
query I rowsort label-1985
SELECT + col1 DIV col0 + 60 DIV + 12 col2 FROM tab2 cor0
----
5
5
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1985
SELECT + col1 / col0 + 60 / + 12 col2 FROM tab2 cor0
----
5
5
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1986
SELECT - col2 * col1 + + col2 DIV + 36 AS col2 FROM tab1 AS cor0
----
-1246
-1403
-569

skipif mysql # not compatible
query I rowsort label-1986
SELECT - col2 * col1 + + col2 / + 36 AS col2 FROM tab1 AS cor0
----
-1246
-1403
-569

query I rowsort
SELECT - - 11 + + col2 AS col1 FROM tab0 AS cor0
----
12
44
93

query I rowsort
SELECT + - col0 + + col0 + - col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - col0 * - 71 FROM tab2 AS cor0
----
497
5538
5609

query I rowsort
SELECT DISTINCT + 99 AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
99

query I rowsort
SELECT - ( - col1 ) * col0 + col1 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1992
SELECT - 43 * col2 + + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1992
SELECT - 43 * col2 + + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * 82 FROM tab1
----
-1066
-2132
-820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1994
SELECT + CAST( NULL AS SIGNED ) + - col1 * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT + CAST ( NULL AS INTEGER ) + - col1 * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 37 ) * col0 + - col2 FROM tab0 AS cor0
----
1294
3211
855

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * 99 col1 FROM tab0
----
8514
9009
9603

query I rowsort
SELECT DISTINCT 97 * col2 * + col0 + 99 AS col2 FROM tab1
----
15813
353955
745059

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col1 ) col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - ( 29 + - col0 ) FROM tab2
----
-22
49
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2000
SELECT + 11 * 13 + + col2 * + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2000
SELECT + 11 * 13 + + col2 * + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 * tab1.col1 col1 FROM tab1
----
130
50
65

query I rowsort
SELECT - col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - 19 + col0 AS col0 FROM tab0 AS cor0
----
16
5
70

query I rowsort
SELECT ALL cor0.col1 + - col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2005
SELECT 75 DIV 66 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2005
SELECT 75 / 66 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT - + cor0.col1 * tab1.col1 FROM tab1, tab2, tab2 AS cor0
----
9 values hashing to c6f4b0b1d1f7796b05493e23d40b0b75

query I rowsort
SELECT DISTINCT col2 * tab1.col2 + + col0 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT ALL 20 FROM tab1
----
20
20
20

query I rowsort
SELECT ALL 32 FROM tab2
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col2 col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 col2 FROM tab2, tab1 cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL - tab2.col0 * col0 AS col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT + col1 * ( + 31 ) - - col2 * col2 AS col1 FROM tab1
----
3559
3722
9619

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to bd2b318ad064d89aa12ab468220362b6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2015
SELECT DISTINCT tab2.col1 DIV - col0 AS col1 FROM tab2
----
-4
0

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT tab2.col1 / - col0 AS col1 FROM tab2
----
-4
0

query I rowsort
SELECT - tab0.col1 + 93 FROM tab0
----
-4
2
7

query I rowsort
SELECT + ( col0 ) + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + + ( - 27 ) * col2 * - col1 AS col0 FROM tab2 AS cor0
----
17442
22599
41418

query I rowsort
SELECT + 90 * 77 FROM tab2 cor0
----
6930
6930
6930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 + - col2 col1 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2021
SELECT + CAST( - col1 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-2021
SELECT + CAST ( - col1 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - col2 * 85 FROM tab1 AS cor0
----
-4590
-4845
-8160

query I rowsort
SELECT cor0.col1 * - 62 FROM tab1 AS cor0
----
-1612
-620
-806

query I rowsort
SELECT ALL 8 + 64 * + col0 AS col1 FROM tab2 cor0
----
456
5000
5064

onlyif mysql # use DIV operator for integer division
query I rowsort label-2025
SELECT col1 DIV + 62 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2025
SELECT col1 / + 62 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 50 * - col2 * - col1 AS col0 FROM tab2 cor0
----
32300
41850
76700

query I rowsort
SELECT ALL - col0 - ( + 99 ) * col1 FROM tab2 AS cor0
----
-1762
-3076
-5919

query I rowsort
SELECT ALL + col2 * col2 + col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
2787
5278
946

onlyif mysql # use DIV operator for integer division
query I rowsort label-2029
SELECT DISTINCT + col1 DIV + ( + 75 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT + col1 / + ( + 75 ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - - cor0.col0 * 47 FROM tab0 AS cor0
----
1128
1645
4183

query I rowsort
SELECT 7 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT tab0.col2 + - ( col1 + col2 ) FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2033
SELECT DISTINCT + col1 + - col0 DIV col0 AS col2 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT + col1 + - col0 / col0 AS col2 FROM tab2
----
16
30
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-2034
SELECT DISTINCT col2 + + 52 DIV - col1 FROM tab1
----
52
92

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT col2 + + 52 / - col1 FROM tab1
----
52
92

query I rowsort
SELECT col0 * col0 * - col0 + + col1 + ( 44 ) FROM tab1
----
-262090
-511943
43

query I rowsort
SELECT col1 * - 96 AS col0 FROM tab0
----
-8256
-8736
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 col1 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + col0 + + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 * - col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT 57 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT ALL col2 + - 94 FROM tab0 AS cor0
----
-12
-61
-93

query I rowsort
SELECT + + ( - col0 ) * col0 + 1 AS col2 FROM tab2 cor0
----
-48
-6083
-6240

query I rowsort
SELECT DISTINCT + - 63 * col0 * - col0 FROM tab1 cor0
----
258048
403200
567

query I rowsort
SELECT + - col2 * cor0.col1 + + col2 * - 57 FROM tab1 AS cor0
----
-3819
-4482
-6720

query I rowsort
SELECT cor0.col1 + + col1 * + col0 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + - ( col2 ) * cor0.col2 + - ( + col1 + col0 ) AS col1 FROM tab0 AS cor0
----
-1199
-133
-6904

query I rowsort
SELECT + + 38 * - col2 - + col0 FROM tab2 AS cor0
----
-1033
-1066
-1523

query I rowsort
SELECT - + col2 * - col1 + - cor0.col1 + - col0 FROM tab2 cor0
----
1397
550
799

query I rowsort
SELECT ALL + ( + col2 ) * + col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + 45 * 11 FROM tab2 AS cor0
----
495
495
495

query I rowsort
SELECT col0 + col2 + - tab0.col2 * - col1 * - tab0.col0 AS col1 FROM tab0
----
-3359
-663947
-68055

query I rowsort
SELECT ALL col0 + + ( col0 ) + col1 AS col0 FROM tab2
----
175
215
45

query I rowsort
SELECT ALL - col1 - 20 * col2 * col1 FROM tab1
----
-11410
-24973
-28106

query I rowsort
SELECT ALL col0 * - col2 - - 14 FROM tab1
----
-148
-3634
-7666

query I rowsort
SELECT ALL tab2.col0 - col1 AS col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL - tab0.col1 - - col0 AS col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT 33 * - col2 + col0 + + col1 FROM tab0 AS cor0
----
-2526
-979
99

query I rowsort
SELECT DISTINCT 47 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-10
-49
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + col1 col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - + col1 * col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + - col0 * col0 + ( cor0.col1 ) + + cor0.col2 AS col2 FROM tab1 AS cor0
----
-4029
-6291
71

query I rowsort
SELECT DISTINCT + col2 + col0 * col0 - + cor0.col1 FROM tab2 cor0
----
45
6051
6262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + - 4 AS col1 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL + col0 + cor0.col2 - ( 77 * col2 ) FROM tab2 cor0
----
-1898
-2045
-2809

query I rowsort
SELECT ( + col1 ) + col0 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * + tab1.col0 col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ( + 27 ) + - tab2.col0 FROM tab2
----
-51
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2069
SELECT 24 * - tab0.col1 + - col1 * + CAST( NULL AS SIGNED ) * 2 col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2069
SELECT 24 * - tab0.col1 + - col1 * + CAST ( NULL AS INTEGER ) * 2 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + col0 * - col0 AS col2 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT ALL - col1 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-2072
SELECT DISTINCT - col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT - col2 / + col0 AS col1 FROM tab2 AS cor0
----
-3
0

query I rowsort
SELECT DISTINCT + 97 AS col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL ( col2 ) * col1 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor2.col1 + - 94 col2 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 96188b9253e12712c59b5649d04ace0f

query I rowsort
SELECT col1 * - ( ( - col0 ) ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col1 * 2 AS col1 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2078
SELECT col0 * CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-2078
SELECT col0 * CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + col2 * 2 AS col1 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2080
SELECT + - col2 * CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2080
SELECT + - col2 * CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 49 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to adfccb10c9468825d9961e3613140f89

query I rowsort
SELECT ( + ( - cor0.col1 ) ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT DISTINCT + 23 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
23

query I rowsort
SELECT 55 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT ALL tab2.col1 * - 64 AS col2 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to c30207ed71ccb04697c90d1e30ce1565

onlyif mysql # use DIV operator for integer division
query I rowsort label-2086
SELECT ALL - tab1.col0 DIV col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL - tab1.col0 / col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT + 76 FROM tab2, tab2 AS cor0
----
76

query I rowsort
SELECT 54 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1 AS cor2
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32

query I rowsort
SELECT + - cor0.col2 + - 72 FROM tab1 AS cor0
----
-126
-129
-168

query I rowsort
SELECT ALL col2 + col0 * col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT col0 + ( + cor0.col2 ) * col1 * - 79 AS col2 FROM tab1 cor0
----
-110913
-44966
-98512

query I rowsort
SELECT ALL - cor0.col2 * + 28 * ( - col0 ) - - 20 * - 56 AS col0 FROM tab0 AS cor0
----
-140
203224
21056

query I rowsort
SELECT ALL + 47 FROM tab1, tab1 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2094
SELECT DISTINCT + col0 * col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT + col0 * col0 / - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + cor0.col1 * col0 AS col2 FROM tab2 cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col0 ) + col1 * - 80 * col0 col2 FROM tab1 AS cor0
----
-51264
-6243
-83280

query I rowsort
SELECT ALL 94 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
2256
3290
8366

query I rowsort
SELECT - col1 * - 85 + col0 FROM tab1 AS cor0
----
1185
2213
914

query I rowsort
SELECT DISTINCT - ( col0 ) + col0 + col0 * col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - + ( - 64 ) + cor0.col0 * + ( col0 ) AS col2 FROM tab1 AS cor0
----
4160
6464
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2101
SELECT DISTINCT - 8 * col2 * col2 + CAST( - col2 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-22344
-23166
-66048

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT - 8 * col2 * col2 + CAST ( - col2 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-22344
-23166
-66048

query I rowsort
SELECT ALL + cor0.col1 - 36 * - col2 FROM tab1 AS cor0
----
1970
2062
3469

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2103
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 67 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2103
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 67 AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT cor0.col0 * + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT - col0 + + col1 * - col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT + col0 * - col1 * - col1 FROM tab2 cor0
----
22831
271518
6727

query I rowsort
SELECT ALL - + 24 AS col2 FROM tab0 cor0
----
-24
-24
-24

query I rowsort
SELECT ALL - cor0.col2 + - col2 * + ( 37 ) FROM tab2 AS cor0
----
-1026
-1444
-988

query I rowsort
SELECT - 21 FROM tab0, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to b6019fd8f0ff78caeaf4b2de3226eb65

query I rowsort
SELECT + 94 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT DISTINCT 85 AS col1 FROM tab0 AS cor0
----
85

query I rowsort
SELECT + 60 + col0 AS col2 FROM tab1 AS cor0
----
124
140
63

query I rowsort
SELECT - - 71 * col1 + + 86 * - col0 AS col1 FROM tab1 AS cor0
----
-4794
-5957
1588

query I rowsort
SELECT ALL - col2 * col2 + - 7 + - col1 FROM tab0 cor0
----
-105
-1182
-6822

query I rowsort
SELECT 8 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( + col2 * col1 ) col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-2117
SELECT + + col2 DIV + 12 FROM tab1 AS cor0
----
4
4
8

skipif mysql # not compatible
query I rowsort label-2117
SELECT + + col2 / + 12 FROM tab1 AS cor0
----
4
4
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2118
SELECT col2 DIV - 89 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2118
SELECT col2 / - 89 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT cor0.col0 + - ( ( col0 ) ) - 36 FROM tab1 AS cor0
----
-36
-36
-36

query I rowsort
SELECT - 97 * col1 + - col1 AS col0 FROM tab0 AS cor0
----
-8428
-8918
-9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2121
SELECT col1 DIV 79 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2121
SELECT col1 / 79 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - tab1.col1 * - col1 * + col1 FROM tab1
----
1000
17576
2197

query I rowsort
SELECT + 80 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT + - col0 + col0 * col2 AS col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2126
SELECT - CAST( NULL AS SIGNED ) + col1 * + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2126
SELECT - CAST ( NULL AS INTEGER ) + col1 * + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 95 + col0 - + col2 AS col1 FROM tab0 AS cor0
----
102
129
86

query I rowsort
SELECT cor0.col2 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT + 16 AS col1 FROM tab1
----
16

query I rowsort
SELECT - 41 * + cor0.col1 FROM tab2 AS cor0
----
-1271
-2419
-697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2131
SELECT DISTINCT col1 - + cor0.col1 * - CAST( + 74 * col2 AS SIGNED ) FROM tab1 cor0
----
103922
42190
92365

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT col1 - + cor0.col1 * - CAST ( + 74 * col2 AS INTEGER ) FROM tab1 cor0
----
103922
42190
92365

query I rowsort
SELECT + col0 * col0 + col0 AS col2 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT col0 + 57 * col1 FROM tab0 AS cor0
----
4926
5276
5564

query I rowsort
SELECT - col0 * 27 + col2 - cor0.col0 AS col0 FROM tab0 cor0
----
-2410
-639
-979

query I rowsort
SELECT - col1 + ( ( col1 ) ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + + ( + col0 ) AS col2 FROM tab0 cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2137
SELECT - col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT - col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2138
SELECT DISTINCT - 80 DIV cor0.col1 FROM tab2, tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT - 80 / cor0.col1 FROM tab2, tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT DISTINCT col0 + - col0 * + col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL - col2 + - ( col0 ) * ( + cor0.col2 + col0 ) AS col2 FROM tab0 AS cor0
----
-1261
-1401
-15301

query I rowsort
SELECT DISTINCT - 43 + - col2 AS col2 FROM tab0 AS cor0
----
-125
-44
-76

query I rowsort
SELECT - 92 - col2 AS col1 FROM tab0 AS cor0
----
-125
-174
-93

query I rowsort
SELECT ALL + - ( + 31 ) * - col0 + - col0 FROM tab2 AS cor0
----
210
2340
2370

query I rowsort
SELECT DISTINCT ( + col1 ) + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - - 77 FROM tab0 AS cor0
----
77

query I rowsort
SELECT 86 * col1 + col2 FROM tab1 AS cor0
----
1214
2290
917

query I rowsort
SELECT + + col2 * + col0 * - cor0.col0 - col0 FROM tab0 cor0
----
-1260
-19032
-649611

query I rowsort
SELECT DISTINCT + - 25 + - cor0.col0 * - col1 AS col0 FROM tab2 AS cor0
----
1318
192
4577

onlyif mysql # use DIV operator for integer division
query I rowsort label-2149
SELECT ALL - 61 DIV cor0.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-2149
SELECT ALL - 61 / cor0.col1 - - col0 col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL 96 FROM tab2, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT ALL 80 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT DISTINCT 64 * col1 FROM tab1 AS cor0
----
1664
640
832

onlyif mysql # use DIV operator for integer division
query I rowsort label-2153
SELECT ALL - col1 DIV cor0.col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL - col1 / cor0.col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT + 79 * + col0 AS col1 FROM tab1 AS cor0
----
237
5056
6320

query I rowsort
SELECT - col0 * + col2 * - ( col2 + - col1 ) FROM tab0 AS cor0
----
-3360
-41976
-65682

query I rowsort
SELECT 41 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT - 91 FROM tab2
----
-91

query I rowsort
SELECT ( - col0 ) * + col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col2 * - 89 * - col0 FROM tab0
----
-3115
-649522
-70488

query I rowsort
SELECT + 97 AS col2 FROM tab2
----
97
97
97

query I rowsort
SELECT DISTINCT - 68 AS col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
-68

query I rowsort
SELECT - - ( - col2 ) * + 34 * + 35 FROM tab0 AS cor0
----
-1190
-39270
-97580

query I rowsort
SELECT ALL - 73 AS col2 FROM tab1
----
-73
-73
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-2164
SELECT + col0 + col0 DIV col2 FROM tab1
----
3
65
80

skipif mysql # not compatible
query I rowsort label-2164
SELECT + col0 + col0 / col2 FROM tab1
----
3
65
80

query I rowsort
SELECT + 43 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2166
SELECT DISTINCT CAST( + col0 AS SIGNED ) AS col2 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL ( 69 ) - col2 AS col0 FROM tab0 AS cor0
----
-13
36
68

query I rowsort
SELECT ALL - + 77 + 56 AS col0 FROM tab0 AS cor0
----
-21
-21
-21

query I rowsort
SELECT ALL - + 43 * - 30 FROM tab1 cor0
----
1290
1290
1290

query I rowsort
SELECT DISTINCT 51 FROM tab0, tab1 AS cor0, tab2 cor1, tab2 AS cor2
----
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-2171
SELECT + + col2 DIV - col1 + + col0 AS col0 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2171
SELECT + + col2 / - col1 + + col0 AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + col2 * col0 + - col0 * + col0 + cor0.col0 FROM tab0 AS cor0
----
-1155
-534
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 23 col2 FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT + + col1 * col2 + + ( + col1 ) AS col2 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT ALL - 66 * col0 AS col0 FROM tab1 AS cor0
----
-198
-4224
-5280

query I rowsort
SELECT ALL + + col0 * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 col1 FROM tab2 cor0
----
59

query I rowsort
SELECT - - col1 * - col0 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2179
SELECT ALL col0 * col0 + ( 76 ) DIV col1 AS col0 FROM tab1 AS cor0
----
11
4103
6405

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL col0 * col0 + ( 76 ) / col1 AS col0 FROM tab1 AS cor0
----
11
4103
6405

query I rowsort
SELECT ALL - 83 + - cor0.col1 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 9d2395afeff40d35f34e1061b77d6ae4

query I rowsort
SELECT DISTINCT - 31 * col0 + cor0.col0 FROM tab0 AS cor0
----
-1050
-2670
-720

query I rowsort
SELECT DISTINCT + col0 + + col2 * col2 + - cor0.col2 FROM tab1 cor0
----
2865
3256
9200

query I rowsort
SELECT ( col1 ) * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 53 * - col1 col2 FROM tab1 AS cor0
----
1378
530
689

onlyif mysql # use DIV operator for integer division
query I rowsort label-2185
SELECT DISTINCT + col1 DIV col2 + - cor0.col2 FROM tab0 AS cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT + col1 / col2 + - cor0.col2 FROM tab0 AS cor0
----
-31
-81
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) + + col1 * - col0 col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT - col0 + + 27 * - col2 AS col2 FROM tab0 AS cor0
----
-2303
-62
-915

query I rowsort
SELECT - col0 * + col2 + ( col1 ) AS col2 FROM tab0 AS cor0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 - + cor0.col2 col1 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2190
SELECT + cor0.col1 + col0 DIV - col0 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-2190
SELECT + cor0.col1 + col0 / - col0 FROM tab2 AS cor0
----
16
30
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-2191
SELECT DISTINCT - col2 DIV + 93 + 56 AS col0 FROM tab1 AS cor0
----
55
56

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT - col2 / + 93 + 56 AS col0 FROM tab1 AS cor0
----
55
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-2192
SELECT ALL - - col2 * 6 DIV - cor0.col1 FROM tab2 cor0
----
-13
-2
-5

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL - - col2 * 6 / - cor0.col1 FROM tab2 cor0
----
-13
-2
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2193
SELECT col2 + col0 DIV - cor0.col2 FROM tab0 AS cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-2193
SELECT col2 + col0 / - cor0.col2 FROM tab0 AS cor0
----
-34
33
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2194
SELECT DISTINCT - col1 DIV 90 AS col2 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT - col1 / 90 AS col2 FROM tab0 cor0
----
-1
0

query I rowsort
SELECT DISTINCT col2 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - cor0.col2 + + ( col2 ) * - cor0.col1 * + 95 FROM tab0 AS cor0
----
-269643
-708972
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2197
SELECT ALL + - col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL + - col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + cor0.col2 * + 26 + 89 FROM tab0 cor0
----
115
2221
947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 7 + + col1 col2 FROM tab1 cor0
----
404
409
685

query I rowsort
SELECT DISTINCT + - col2 + 56 FROM tab0 AS cor0
----
-26
23
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-2201
SELECT ALL - cor0.col0 * 69 - + col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-1658
-2512
-6142

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - cor0.col0 * 69 - + col1 / col2 AS col1 FROM tab0 AS cor0
----
-1658
-2512
-6142

query I rowsort
SELECT ALL col1 + + ( col1 ) FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT ALL + col0 + 90 * - cor0.col2 FROM tab2 AS cor0
----
-2262
-2423
-3341

query I rowsort
SELECT + - cor0.col0 + + 38 * 11 AS col0 FROM tab0 AS cor0
----
329
383
394

query I rowsort
SELECT DISTINCT - - cor0.col2 * 86 FROM tab1 AS cor0
----
4644
4902
8256

query I rowsort
SELECT col2 + + ( - 35 ) FROM tab0 AS cor0
----
-2
-34
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 37 * cor0.col2 col0 FROM tab0 AS cor0
----
-248788
-37
-40293

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2208
SELECT DISTINCT - - ( col1 ) * + col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT - - ( col1 ) * + col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 35707ade138fec4b370f5140a4cd2963

query I rowsort
SELECT ALL + - 13 + 96 AS col2 FROM tab1 cor0
----
83
83
83

query I rowsort
SELECT DISTINCT + 44 * - col1 * - col2 FROM tab2 AS cor0
----
28424
36828
67496

query I rowsort
SELECT 38 + ( col1 ) * cor0.col2 FROM tab1 AS cor0
----
1286
1442
608

query I rowsort
SELECT DISTINCT - 33 AS col2 FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1
----
-33

query I rowsort
SELECT 76 + 30 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to e3a970c661a05070afa8a3ed8dca742e

query I rowsort
SELECT ALL - col2 - + 0 AS col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT col2 * + 23 AS col2 FROM tab2 AS cor0
----
598
621
874

onlyif mysql # use DIV operator for integer division
query I rowsort label-2217
SELECT cor0.col0 DIV col1 + cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-2217
SELECT cor0.col0 / col1 + cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT 17 * 69 FROM tab1 AS cor0
----
1173
1173
1173

query I rowsort
SELECT ALL - col2 * + ( col0 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col2 * + 87 - col0 AS col2 FROM tab2 AS cor0
----
-2340
-2356
-3385

query I rowsort
SELECT + - 59 * 46 AS col2 FROM tab0 AS cor0
----
-2714
-2714
-2714

query I rowsort
SELECT ALL + - 55 FROM tab2 cor0
----
-55
-55
-55

query I rowsort
SELECT DISTINCT cor0.col0 * col0 + col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT - col0 * - 23 + - col0 + + col1 AS col0 FROM tab0
----
2049
614
867

onlyif mysql # use DIV operator for integer division
query I rowsort label-2225
SELECT DISTINCT col2 * col0 DIV + 76 + col0 FROM tab0
----
185
34
35

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT col2 * col0 / + 76 + col0 FROM tab0
----
185
34
35

query I rowsort
SELECT DISTINCT - col1 + - ( + 94 ) * col1 AS col0 FROM tab1
----
-1235
-2470
-950

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2227
SELECT col2 * 68 * - tab1.col2 + tab1.col0 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT col2 * 68 * - tab1.col2 + tab1.col0 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( 42 ) + col0 AS col0 FROM tab2 AS cor0
----
120
121
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-2229
SELECT - - ( col0 ) * + col0 + 91 DIV + ( - col0 ) AS col1 FROM tab0 AS cor0
----
1223
573
7920

skipif mysql # not compatible
query I rowsort label-2229
SELECT - - ( col0 ) * + col0 + 91 / + ( - col0 ) AS col1 FROM tab0 AS cor0
----
1223
573
7920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2230
SELECT CAST( NULL AS DECIMAL ) / - col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2230
SELECT CAST ( NULL AS REAL ) / - col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - ( + col2 ) * col1 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT col1 * col2 + - col2 * + ( 79 ) FROM tab2
----
-1296
-2356
-520

query I rowsort
SELECT ALL + ( col1 ) - + cor0.col2 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - col1 + 25 - - col0 FROM tab2 AS cor0
----
1
44
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-2235
SELECT + 5 DIV col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2235
SELECT + 5 / col2 FROM tab0
----
0
0
5

query I rowsort
SELECT DISTINCT col2 + + col1 * + 58 + + tab2.col2 AS col2 FROM tab2
----
1062
1852
3474

query I rowsort
SELECT DISTINCT tab0.col0 * + 54 FROM tab0
----
1296
1890
4806

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab2, tab0, tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - - col1 + 19 * + col0 FROM tab2 AS cor0
----
1518
1541
164

query I rowsort
SELECT ALL + + cor0.col2 + ( col2 ) FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT col0 + - col0 * - 69 FROM tab2 AS cor0
----
490
5460
5530

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2242
SELECT + + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2242
SELECT + + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - ( col1 ) * - col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT 14 AS col0 FROM tab0
----
14
14
14

query I rowsort
SELECT ALL col2 + 46 * col0 FROM tab1 AS cor0
----
192
3001
3776

query I rowsort
SELECT col1 * - ( + col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to b050f98b2d07c1b092b73ecf6b5b347c

query I rowsort
SELECT DISTINCT + 94 AS col1 FROM tab1, tab2 AS cor0
----
94

query I rowsort
SELECT cor0.col0 + 69 * col0 AS col1 FROM tab0 AS cor0
----
1680
2450
6230

query I rowsort
SELECT - cor0.col1 * col2 - ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab1, tab1 AS cor1
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

query I rowsort
SELECT DISTINCT col0 - 54 * - col2 FROM tab2
----
1465
1482
2131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + col0 * col2 col0 FROM tab1
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2254
SELECT CAST( NULL AS SIGNED ) + - col2 / + tab2.col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT CAST ( NULL AS INTEGER ) + - col2 / + tab2.col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + cor0.col0 + col1 * cor0.col1 FROM tab2 cor0
----
3559
368
968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2256
SELECT + CAST( 26 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
2236
2366
2522

skipif mysql # not compatible
query I rowsort label-2256
SELECT + CAST ( 26 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
2236
2366
2522

query I rowsort
SELECT - col0 * - col2 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab1, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - 42 * - col0 FROM tab2
----
294
3276
3318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2260
SELECT col2 * - cor0.col1 + CAST( + col2 * - col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
-1292
-1674
-3068

skipif mysql # not compatible
query I rowsort label-2260
SELECT col2 * - cor0.col1 + CAST ( + col2 * - col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
-1292
-1674
-3068

query I rowsort
SELECT + col0 + col2 AS col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT tab2.col2 + 86 * - 49 AS col0 FROM tab2
----
-4176
-4187
-4188

query I rowsort
SELECT DISTINCT - 45 FROM tab1, tab1 cor0, tab1 cor1
----
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2264
SELECT + col0 DIV ( + 66 ) FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2264
SELECT + col0 / ( + 66 ) FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL - col2 + ( - cor0.col2 ) FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT + col2 * - ( 40 ) * - col2 FROM tab0 AS cor0
----
268960
40
43560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 col2 FROM tab2, tab2 AS cor0
----
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2268
SELECT - CAST( NULL AS SIGNED ) + 63 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2268
SELECT - CAST ( NULL AS INTEGER ) + 63 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - col2 + ( 12 ) FROM tab0 AS cor0
----
-21
-70
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-2270
SELECT - - cor0.col1 + + col1 DIV - cor0.col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-2270
SELECT - - cor0.col1 + + col1 / - cor0.col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT DISTINCT col0 + + 68 * col0 FROM tab0
----
1656
2415
6141

query I rowsort
SELECT 91 * col0 + col1 + - col2 FROM tab2
----
641
7131
7168

query I rowsort
SELECT ALL - ( + 11 * - col2 ) + + col1 FROM tab2
----
328
345
435

query I rowsort
SELECT ALL - + 91 + - col2 FROM tab1 AS cor0
----
-145
-148
-187

query I rowsort
SELECT ALL cor0.col0 * col2 + + col0 FROM tab2 cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-2276
SELECT + + ( 42 ) DIV + cor0.col2 + 97 FROM tab1 cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-2276
SELECT + + ( 42 ) / + cor0.col2 + 97 FROM tab1 cor0
----
97
97
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2277
SELECT + CAST( NULL AS SIGNED ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT + CAST ( NULL AS INTEGER ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 32 FROM tab1 AS cor0
----
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-2279
SELECT ( + col1 ) + 23 * 93 + + col2 DIV 30 AS col1 FROM tab2 AS cor0
----
2157
2170
2198

skipif mysql # not compatible
query I rowsort label-2279
SELECT ( + col1 ) + 23 * 93 + + col2 / 30 AS col1 FROM tab2 AS cor0
----
2157
2170
2198

query I rowsort
SELECT DISTINCT col2 * col0 + col1 * ( col1 ) FROM tab2 AS cor0
----
1150
3291
5509

query I rowsort
SELECT ALL + 38 + col0 FROM tab0 AS cor0
----
127
62
73

query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 * col2 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-2283
SELECT ALL + 49 + + col1 DIV 2 + - col0 AS col0 FROM tab1 AS cor0
----
-10
-25
59

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL + 49 + + col1 / 2 + - col0 AS col0 FROM tab1 AS cor0
----
-10
-25
59

query I rowsort
SELECT - 99 + + col0 * + 9 + - col1 AS col1 FROM tab0 AS cor0
----
119
31
611

query I rowsort
SELECT ALL - + cor0.col0 * - col1 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - - col1 * - cor0.col1 + ( - cor0.col0 ) FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT ALL col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + cor0.col0 + col0 * col0 + 93 FROM tab0 AS cor0
----
1353
693
8103

onlyif mysql # use DIV operator for integer division
query I rowsort label-2289
SELECT DISTINCT + - ( - col0 ) * 80 + col1 DIV col0 + + col0 AS col1 FROM tab2 AS cor0
----
571
6318
6399

skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT + - ( - col0 ) * 80 + col1 / col0 + + col0 AS col1 FROM tab2 AS cor0
----
571
6318
6399

query I rowsort
SELECT 9 + cor0.col0 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c26a561a598e37af97ce04d5fe681cd9

query I rowsort
SELECT DISTINCT + ( col2 ) * + col0 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL 26 - + 36 AS col0 FROM tab0 AS cor0
----
-10
-10
-10

onlyif mysql # use DIV operator for integer division
query I rowsort label-2293
SELECT ALL tab2.col1 DIV - col1 + tab2.col2 FROM tab2
----
25
26
37

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL tab2.col1 / - col1 + tab2.col2 FROM tab2
----
25
26
37

query I rowsort
SELECT ALL - ( - col0 + col1 ) FROM tab0
----
-2
-62
-62

query I rowsort
SELECT + 35 + 50 AS col2 FROM tab1
----
85
85
85

query I rowsort
SELECT DISTINCT - + 49 FROM tab0 cor0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 * - col0 col2 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-2298
SELECT DISTINCT - ( 85 ) DIV - col0 AS col1 FROM tab1 AS cor0
----
1
28

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT - ( 85 ) / - col0 AS col1 FROM tab1 AS cor0
----
1
28

query I rowsort
SELECT DISTINCT + 41 AS col1 FROM tab1 AS cor0
----
41

query I rowsort
SELECT + 64 * + col0 FROM tab0 AS cor0
----
1536
2240
5696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - tab1.col0 + 50 col2 FROM tab1
----
-28
-590
-990

query I rowsort
SELECT ALL col0 + col1 * col1 AS col2 FROM tab2
----
3559
368
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 + ( + col2 ) * col0 * ( 41 * tab0.col1 ) col2 FROM tab0
----
139195
27228838
2792592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL - 86 + + col2 + ( tab0.col2 + col0 ) * + col0 * + 27 FROM tab0
----
33935
36883
410909

query I rowsort
SELECT 53 * + col2 + - col1 FROM tab1
----
2836
3011
5075

onlyif mysql # use DIV operator for integer division
query I rowsort label-2307
SELECT DISTINCT - col1 + col0 + col1 DIV - tab1.col1 AS col0 FROM tab1
----
-24
53
66

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT - col1 + col0 + col1 / - tab1.col1 AS col0 FROM tab1
----
-24
53
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2308
SELECT + col0 DIV col0 + - col1 AS col0 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-2308
SELECT + col0 / col0 + - col1 AS col0 FROM tab2
----
-16
-30
-58

query I rowsort
SELECT DISTINCT + tab1.col0 + col1 + + ( col1 ) AS col2 FROM tab1
----
106
55
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + 46 col1 FROM tab0 AS cor0
----
-1518
-3772
-46

query I rowsort
SELECT - col0 + + col1 * col0 * col2 FROM tab0 AS cor0
----
3360
664029
68088

query I rowsort
SELECT DISTINCT cor0.col1 + + col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2313
SELECT col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col0 + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + col0 * 21 AS col2 FROM tab0
----
1869
504
735

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2316
SELECT ALL - col0 + + CAST( + 3 AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
-156
-193
-88

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL - col0 + + CAST ( + 3 AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
-156
-193
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-2317
SELECT ALL col1 * col1 + - col1 DIV col0 AS col1 FROM tab0 AS cor0
----
7393
8280
9407

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL col1 * col1 + - col1 / col0 AS col1 FROM tab0 AS cor0
----
7393
8280
9407

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + cor0.col1 + + col2 * 94 * - col0 AS col1 FROM tab2 AS cor0
----
-17735
-190573
-282171

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2320
SELECT + + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT + + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2321
SELECT ALL col1 * 32 DIV 11 FROM tab0 cor0
----
250
264
282

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL col1 * 32 / 11 FROM tab0 cor0
----
250
264
282

query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2323
SELECT DISTINCT + cor0.col0 * CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT + cor0.col0 * CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT col0 * - col1 + ( - cor0.col1 * ( col1 ) ) FROM tab0 AS cor0
----
-12804
-16380
-9460

query I rowsort
SELECT DISTINCT col1 + 14 FROM tab0 AS cor0
----
100
105
111

query I rowsort
SELECT col0 + 5 AS col0 FROM tab2 AS cor0
----
12
83
84

query I rowsort
SELECT ALL - + col2 * - col1 * + 75 FROM tab0 AS cor0
----
212850
559650
7275

query I rowsort
SELECT + col0 * - col0 + col0 * col1 FROM tab1 AS cor0
----
-3456
-5360
69

query I rowsort
SELECT DISTINCT - - col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL col1 + + 80 * col0 FROM tab1 AS cor0
----
266
5130
6413

query I rowsort
SELECT + - 98 * - ( + col0 + + ( col1 ) ) AS col0 FROM tab1 AS cor0
----
2842
7252
9114

query I rowsort
SELECT - + 1 * 32 FROM tab2 AS cor0
----
-32
-32
-32

query I rowsort
SELECT ALL - 27 FROM tab2 cor0
----
-27
-27
-27

query I rowsort
SELECT - ( cor0.col1 ) + + col1 * + col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT ALL + cor0.col1 * cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
205379
29791
4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-2336
SELECT + col1 DIV col1 + + col2 + - col2 * col1 FROM tab2 AS cor0
----
-1507
-607
-809

skipif mysql # not compatible
query I rowsort label-2336
SELECT + col1 / col1 + + col2 + - col2 * col1 FROM tab2 AS cor0
----
-1507
-607
-809

onlyif mysql # use DIV operator for integer division
query I rowsort label-2337
SELECT - 74 DIV - col2 + col2 AS col0 FROM tab0 AS cor0
----
35
75
82

skipif mysql # not compatible
query I rowsort label-2337
SELECT - 74 / - col2 + col2 AS col0 FROM tab0 AS cor0
----
35
75
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - ( - col2 ) col2 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT - col0 + ( col1 ) * - col1 AS col0 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT + col2 * 81 AS col1 FROM tab2 AS cor0
----
2106
2187
3078

query I rowsort
SELECT - 59 * col2 FROM tab1 AS cor0
----
-3186
-3363
-5664

onlyif mysql # use DIV operator for integer division
query I rowsort label-2342
SELECT - - col1 + col0 DIV + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2342
SELECT - - col1 + col0 / + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL col1 * - col0 + col2 * col1 FROM tab1 AS cor0
----
-70
1326
208

query I rowsort
SELECT DISTINCT col2 + col2 * 39 FROM tab1 AS cor0
----
2160
2280
3840

query I rowsort
SELECT ALL 58 * - col1 + col0 - - col1 FROM tab0 AS cor0
----
-4878
-5098
-5494

query I rowsort
SELECT ALL + 13 + + col2 * col2 FROM tab2 AS cor0
----
1457
689
742

query I rowsort
SELECT DISTINCT + col2 * - col2 + ( + col1 ) AS col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL ( + col1 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + cor0.col0 * col0 + 51 + - col2 AS col0 FROM tab1 AS cor0
----
4090
6
6355

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col0 ) col2 FROM tab1 cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) - tab1.col2 col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT col1 + - 79 FROM tab0
----
12
18
7

query I rowsort
SELECT + + ( col2 ) AS col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT + ( + col0 ) * + col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - - col0 * col0 + col2 AS col2 FROM tab2 cor0
----
6110
6279
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2356
SELECT col2 + + CAST( + 71 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-159
-4487
-5584

skipif mysql # not compatible
query I rowsort label-2356
SELECT col2 + + CAST ( + 71 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-159
-4487
-5584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2357
SELECT + tab1.col2 DIV + col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-2357
SELECT + tab1.col2 / + col0 FROM tab1
----
0
1
18

query I rowsort
SELECT - - 0 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2359
SELECT + CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2359
SELECT + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + + ( + col2 ) * col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2361
SELECT - + CAST( NULL AS SIGNED ) * cor0.col1 * - cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2361
SELECT - + CAST ( NULL AS INTEGER ) * cor0.col1 * - cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 + 73 AS col1 FROM tab1 AS cor0
----
137
153
76

query I rowsort
SELECT + + 80 AS col1 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT ALL 80 + cor0.col2 FROM tab1 cor0
----
134
137
176

query I rowsort
SELECT - - 14 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT + col1 + + col2 * + col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT 87 AS col2 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT + cor0.col2 * + col2 * + col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT 80 AS col2 FROM tab1, tab2 AS cor0
----
80

query I rowsort
SELECT ALL 21 FROM tab0, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2371
SELECT cor0.col1 + CAST( 61 AS SIGNED ) FROM tab2 cor0
----
120
78
92

skipif mysql # not compatible
query I rowsort label-2371
SELECT cor0.col1 + CAST ( 61 AS INTEGER ) FROM tab2 cor0
----
120
78
92

query I rowsort
SELECT col0 + - ( - 10 ) AS col1 FROM tab0 AS cor0
----
34
45
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2373
SELECT ALL CAST( NULL AS SIGNED ) * cor0.col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col1 * 19 + - col0 FROM tab2 AS cor0
----
1043
244
582

query I rowsort
SELECT DISTINCT + col2 + + 9 FROM tab0 AS cor0
----
10
42
91

query I rowsort
SELECT - col0 + ( col2 ) AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + 8 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-46
-49
-88

query I rowsort
SELECT ALL + ( + 47 ) * col1 AS col0 FROM tab0 AS cor0
----
4042
4277
4559

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2379
SELECT col2 - + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2379
SELECT col2 - + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab0, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col2 + + ( + col0 + col1 * col2 ) FROM tab0
----
133
2895
7633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2382
SELECT CAST( col0 AS SIGNED ) + - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2382
SELECT CAST ( col0 AS INTEGER ) + - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + 81 + col0 FROM tab0
----
105
116
170

query I rowsort
SELECT DISTINCT 73 + col0 * col2 * 50 FROM tab0
----
1823
364973
39673

onlyif mysql # use DIV operator for integer division
query I rowsort label-2385
SELECT DISTINCT - col0 DIV + 89 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT - col0 / + 89 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT + - ( + col1 ) * col0 + col2 * + col0 FROM tab0 AS cor0
----
-1272
-3360
-801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + col1 col1 FROM tab1 AS cor0
----
-54
-67
23

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 4037d65571c1bbf6e0e7d759f858120e

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to ca91d1f523a87017f672304548e91a77

onlyif mysql # use DIV operator for integer division
query I rowsort label-2390
SELECT + col1 DIV - col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2390
SELECT + col1 / - col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col0 + 85 AS col0 FROM tab0 AS cor0
----
109
120
174

query I rowsort
SELECT DISTINCT - 35 * col2 AS col2 FROM tab1
----
-1890
-1995
-3360

query I rowsort
SELECT ALL + col0 - tab2.col2 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2394
SELECT 89 DIV col0 FROM tab1
----
1
1
29

skipif mysql # not compatible
query I rowsort label-2394
SELECT 89 / col0 FROM tab1
----
1
1
29

query I rowsort
SELECT - cor1.col0 AS col0 FROM tab1, tab2 cor0, tab2 AS cor1, tab0 cor2
----
81 values hashing to adaea38eae032c1639715f21831dd376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2397
SELECT + col2 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT + col2 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col0 + cor0.col0 - col2 FROM tab1 AS cor0
----
-213
-3641
-7696

query I rowsort
SELECT + col0 + 84 AS col2 FROM tab2 AS cor0
----
162
163
91

query I rowsort
SELECT DISTINCT col0 * - 79 + + col1 AS col2 FROM tab2 AS cor0
----
-522
-6103
-6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-2401
SELECT 99 DIV tab2.col0 AS col1 FROM tab2
----
1
1
14

skipif mysql # not compatible
query I rowsort label-2401
SELECT 99 / tab2.col0 AS col1 FROM tab2
----
1
1
14

query I rowsort
SELECT DISTINCT - + col1 + - col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2403
SELECT DISTINCT - col2 DIV - 70 + + col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT - col2 / - 70 + + col1 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - cor0.col0 col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL + col0 + + col1 * cor0.col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - col1 + - ( + col2 ) * col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT + col1 * 53 + - col1 FROM tab2 cor0
----
1612
3068
884

query I rowsort
SELECT ALL + cor0.col1 + col0 * + ( col0 ) FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT DISTINCT - col2 * - col1 * + col0 + col0 AS col1 FROM tab1 AS cor0
----
36544
4215
99920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 + + col1 col0 FROM tab0 cor0
----
79
84
90

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 + - col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT - - 12 * col2 + 38 AS col0 FROM tab0 AS cor0
----
1022
434
50

query I rowsort
SELECT - ( col2 ) + + col0 * + 65 FROM tab1 AS cor0
----
141
4103
5104

query I rowsort
SELECT DISTINCT + col0 + col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - col1 + + col1 - 16 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort
SELECT ALL + cor0.col1 + - col0 * + ( ( col1 ) * CAST ( 90 AS REAL ) ) FROM tab1 AS cor0
----
-57590
-6994
-93587

query I rowsort
SELECT - - 76 FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT ALL - col1 * + col0 * + col2 + - cor0.col1 FROM tab1 cor0
----
-36490
-4238
-99853

query I rowsort
SELECT ALL col1 * col1 - col0 AS col1 FROM tab1 AS cor0
----
36
673
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2420
SELECT col2 * col0 + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2420
SELECT col2 * col0 + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * tab1.col2 + ( + col1 ) AS col2 FROM tab1
----
1261
1430
580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2422
SELECT col2 * col2 + CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
1113
36
6813

skipif mysql # not compatible
query I rowsort label-2422
SELECT col2 * col2 + CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
1113
36
6813

query I rowsort
SELECT + tab0.col2 * + tab0.col1 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 16 + - col1 FROM tab0
----
-70
-75
-81

query I rowsort
SELECT + + col1 + - ( col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2426
SELECT col2 / CAST( NULL AS SIGNED ) + - col1 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2426
SELECT col2 / CAST ( NULL AS INTEGER ) + - col1 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 19 + col2 AS col0 FROM tab2
----
45
46
57

query I rowsort
SELECT - cor0.col0 * - 18 FROM tab0, tab1 AS cor0
----
9 values hashing to 53392ea3b6bfc532646309214a364024

query I rowsort
SELECT + col1 * + tab1.col0 * 83 + col1 + + col2 FROM tab1
----
53187
6554
86429

query I rowsort
SELECT - col2 * - col0 + col2 AS col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT ALL 31 AS col2 FROM tab1, tab2, tab0 cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab1, tab2, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT col0 * + 0 * + col0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + ( col0 ) + + col2 + + 44 AS col2 FROM tab0 AS cor0
----
101
215
80

query I rowsort
SELECT DISTINCT - 87 * col0 - col2 AS col0 FROM tab0 AS cor0
----
-2121
-3046
-7825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2436
SELECT ALL - - CAST( 77 AS SIGNED ) * col1 * - 76 + - col2 * + col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-102407
-181594
-347218

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL - - CAST ( 77 AS INTEGER ) * col1 * - 76 + - col2 * + col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-102407
-181594
-347218

query I rowsort
SELECT ALL - + ( + col0 ) - col0 FROM tab2 AS cor0
----
-14
-156
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 col0 FROM tab0 AS cor0
----
-57

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab2 AS cor0, tab0 cor1
----
972 values hashing to deaaa983f771be544ffdc26f04a18657

query I rowsort
SELECT DISTINCT col2 * - 97 FROM tab1
----
-5238
-5529
-9312

query I rowsort
SELECT col2 - col0 * 61 AS col1 FROM tab2
----
-400
-4732
-4781

query I rowsort
SELECT - 34 AS col0 FROM tab1
----
-34
-34
-34

query I rowsort
SELECT DISTINCT ( - col2 ) * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - cor0.col1 * - col1 - + col1 AS col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT ALL - + 78 FROM tab0 cor0
----
-78
-78
-78

query I rowsort
SELECT ALL + 12 * cor0.col2 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT - ( - col2 ) * - col1 - + col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT ALL - col1 * ( + col1 ) * - col0 AS col0 FROM tab2 AS cor0
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-2449
SELECT ALL - ( + col1 ) DIV col1 - col0 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL - ( + col1 ) / col1 - col0 FROM tab2 AS cor0
----
-79
-8
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2450
SELECT col0 * col2 + + col1 DIV col0 FROM tab0 AS cor0
----
37
7299
795

skipif mysql # not compatible
query I rowsort label-2450
SELECT col0 * col2 + + col1 / col0 FROM tab0 AS cor0
----
37
7299
795

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2451
SELECT DISTINCT CAST( + ( col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT CAST ( + ( col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - - 60 * + ( col0 ) * col1 + col0 FROM tab1 AS cor0
----
38464
4683
62480

query I rowsort
SELECT DISTINCT - - col2 * - 60 FROM tab0 AS cor0
----
-1980
-4920
-60

query I rowsort
SELECT ALL - 5 * col0 AS col2 FROM tab1 AS cor0
----
-15
-320
-400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2455
SELECT ALL + 7 DIV + col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL + 7 / + col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT tab0.col1 + col1 * col1 * + col0 AS col1 FROM tab0
----
177590
329412
737100

query I rowsort
SELECT - - col1 * - col2 + 17 FROM tab2 AS cor0
----
-1517
-629
-820

query I rowsort
SELECT ALL col1 + - col0 * - col0 FROM tab2
----
6143
6258
80

query I rowsort
SELECT cor0.col1 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL col0 + - col1 AS col0 FROM tab2
----
-24
19
62

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( - col1 AS REAL ) FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2462
SELECT DISTINCT 25 DIV ( + col0 ) AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT 25 / ( + col0 ) AS col0 FROM tab0
----
0
1

query I rowsort
SELECT + cor0.col0 * - col0 + + col0 - 54 AS col0 FROM tab0 AS cor0
----
-1244
-606
-7886

query I rowsort
SELECT ALL + + 53 * + col0 FROM tab2 cor0
----
371
4134
4187

query I rowsort
SELECT + - col2 * + col1 + 98 FROM tab0 AS cor0
----
-2740
-7364
1

query I rowsort
SELECT + cor0.col1 + cor0.col2 - 23 FROM tab2 AS cor0
----
32
35
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2467
SELECT col2 + - col2 DIV col0 + ( + col2 ) * 86 FROM tab0 AS cor0
----
2870
7134
87

skipif mysql # not compatible
query I rowsort label-2467
SELECT col2 + - col2 / col0 + ( + col2 ) * 86 FROM tab0 AS cor0
----
2870
7134
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT - cor0.col0 * col0 - 17 AS col1 FROM tab2 AS cor0
----
-6101
-6258
-66

query I rowsort
SELECT col2 * col2 + ( - col2 + + col1 ) * - col2 AS col2 FROM tab2 AS cor0
----
-182
2242
621

query I rowsort
SELECT col1 * + col0 + - 80 - 47 FROM tab2 AS cor0
----
1216
4475
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 67 col0 FROM tab1 AS cor0
----
-201
-4288
-5360

query I rowsort
SELECT DISTINCT + col0 * - ( - col0 ) + col1 FROM tab1 cor0
----
35
4106
6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-2474
SELECT col2 + col2 DIV - 19 FROM tab1
----
52
54
91

skipif mysql # not compatible
query I rowsort label-2474
SELECT col2 + col2 / - 19 FROM tab1
----
52
54
91

query I rowsort
SELECT + 8 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT ALL + col1 * cor0.col2 * 47 + - col0 AS col1 FROM tab1 AS cor0
----
26726
58576
65985

query I rowsort
SELECT ALL - - col0 - 15 * + 71 AS col0 FROM tab1 AS cor0
----
-1001
-1062
-985

onlyif mysql # use DIV operator for integer division
query I rowsort label-2478
SELECT - + col2 + col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
-57
-62
-96

skipif mysql # not compatible
query I rowsort label-2478
SELECT - + col2 + col1 / - col0 AS col0 FROM tab1 AS cor0
----
-57
-62
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col1 * + col0 col1 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-2480
SELECT DISTINCT + cor0.col0 * + col0 + - col1 DIV col1 AS col0 FROM tab2 AS cor0
----
48
6083
6240

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT + cor0.col0 * + col0 + - col1 / col1 AS col0 FROM tab2 AS cor0
----
48
6083
6240

query I rowsort
SELECT ALL + col2 + + ( + col1 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - - col0 + + 28 FROM tab1 AS cor0
----
108
31
92

query I rowsort
SELECT DISTINCT - col0 + col1 * col1 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT DISTINCT col2 * - col2 + col1 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT - - 99 * + col1 AS col0 FROM tab2 cor0
----
1683
3069
5841

query I rowsort
SELECT ALL + col0 * 60 AS col2 FROM tab2 AS cor0
----
420
4680
4740

query I rowsort
SELECT DISTINCT cor1.col0 + 0 AS col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
24
35
89

query I rowsort
SELECT DISTINCT + cor0.col2 + - 82 * col0 AS col1 FROM tab1 cor0
----
-192
-5191
-6464

query I rowsort
SELECT + ( 12 ) + - col1 * col1 FROM tab2 cor0
----
-277
-3469
-949

query I rowsort
SELECT - 6 * - col0 AS col1 FROM tab0 AS cor0
----
144
210
534

query I rowsort
SELECT ALL 20 * 14 FROM tab0, tab2 AS cor0
----
9 values hashing to bb7b999648fdece98c89ef94f1d23e93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to b092e3fa17e78608cf120e97d1bfff67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2493
SELECT + cor0.col0 * - CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2493
SELECT + cor0.col0 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col2 + - 65 * - 83 AS col2 FROM tab1
----
5449
5452
5491

query I rowsort
SELECT - 79 * + col2 FROM tab0
----
-2607
-6478
-79

query I rowsort
SELECT ALL + col0 * + col1 + + 77 * + 44 + col2 AS col2 FROM tab1
----
3520
4085
4524

query I rowsort
SELECT - col1 * col2 - + 94 FROM tab2
----
-1628
-740
-931

query I rowsort
SELECT col1 * + col1 - col2 AS col2 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT - + col1 * 10 * - col0 FROM tab0 AS cor0
----
20640
33950
80990

query I rowsort
SELECT - + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2501
SELECT col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2501
SELECT col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 * - col2 + + cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2503
SELECT ALL col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2503
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-2504
SELECT + col2 * 2 + col2 DIV col0 FROM tab2 AS cor0
----
52
57
76

skipif mysql # not compatible
query I rowsort label-2504
SELECT + col2 * 2 + col2 / col0 FROM tab2 AS cor0
----
52
57
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2505
SELECT DISTINCT + cor0.col2 DIV ( col1 * + col0 + - col1 ) col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT + cor0.col2 / ( col1 * + col0 + - col1 ) col2 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2506
SELECT col0 DIV - CAST( ( - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2506
SELECT col0 / - CAST ( ( - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col0 + - col1 AS col1 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + + col0 * + 35 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
2183
2704
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-2509
SELECT - col0 + col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2509
SELECT - col0 + col0 / + col1 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT col0 * + ( ( + col2 ) ) + col1 * col2 FROM tab0 AS cor0
----
132
14760
3630

query I rowsort
SELECT + + col2 + - col0 + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT ALL - col0 + col2 * 35 * + col0 FROM tab2 AS cor0
----
104991
6608
70902

onlyif mysql # use DIV operator for integer division
query I rowsort label-2513
SELECT + ( + col1 ) DIV - cor0.col0 AS col1 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2513
SELECT + ( + col1 ) / - cor0.col0 AS col1 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT - - 30 * - 87 + col0 FROM tab2 AS cor0
----
-2531
-2532
-2603

query I rowsort
SELECT DISTINCT col2 - col0 AS col2 FROM tab0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2516
SELECT - CAST( + col1 AS SIGNED ) * - col1 + + 95 AS col1 FROM tab2 AS cor0
----
1056
3576
384

skipif mysql # not compatible
query I rowsort label-2516
SELECT - CAST ( + col1 AS INTEGER ) * - col1 + + 95 AS col1 FROM tab2 AS cor0
----
1056
3576
384

query I rowsort
SELECT - col1 - 59 FROM tab2 AS cor0
----
-118
-76
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2518
SELECT CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2518
SELECT CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL 23 + - col0 FROM tab2 AS cor0
----
-55
-56
16

query I rowsort
SELECT 69 + cor0.col1 * - 24 FROM tab0 AS cor0
----
-1995
-2115
-2259

query I rowsort
SELECT - 77 + col1 AS col2 FROM tab2 AS cor0
----
-18
-46
-60

query I rowsort
SELECT ALL - 0 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # use DIV operator for integer division
query I rowsort label-2524
SELECT DISTINCT - + col2 DIV + col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-2524
SELECT DISTINCT - + col2 / + col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
24
5
6

query I rowsort
SELECT ALL col1 * col2 + + col1 * - col1 FROM tab1 AS cor0
----
1079
470
728

query I rowsort
SELECT ALL + cor0.col2 - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - 54 + cor0.col1 FROM tab1 AS cor0
----
-28
-41
-44

query I rowsort
SELECT DISTINCT - col2 * - col1 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL 40 + + col0 FROM tab1 AS cor0
----
104
120
43

query I rowsort
SELECT ALL + col0 * col2 * - col2 + 95 AS col1 FROM tab0 AS cor0
----
-26041
-598341
60

query I rowsort
SELECT DISTINCT - ( + col2 ) * - col1 + + 26 * - col2 FROM tab1 AS cor0
----
-1248
-912
0

query I rowsort
SELECT + + 40 + + col1 AS col2 FROM tab2 AS cor0
----
57
71
99

query I rowsort
SELECT ALL col0 * + col2 + + ( col2 * col2 ) AS col1 FROM tab0 AS cor0
----
14022
1881
36

query I rowsort
SELECT DISTINCT ( cor0.col0 ) - 50 * 32 * - col2 AS col1 FROM tab2 cor0
----
41678
43207
60879

query I rowsort
SELECT DISTINCT - 62 AS col0 FROM tab2 AS cor0
----
-62

query I rowsort
SELECT + - col0 * col1 - - cor0.col1 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT - 29 * col1 AS col2 FROM tab2
----
-1711
-493
-899

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 col0 FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL ( - col1 ) + 42 AS col1 FROM tab0 AS cor0
----
-44
-49
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - col0 * - 29 col2 FROM tab1 AS cor0
----
1799
2224
33

query I rowsort
SELECT ALL col1 + col0 * - col0 * cor0.col0 FROM tab1 AS cor0
----
-1
-262134
-511987

query I rowsort
SELECT ( col0 ) - + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 96 - col1 AS col0 FROM tab1
----
-106
-109
-122

query I rowsort
SELECT DISTINCT col0 + - col0 + col2 AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT 37 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
37

query I rowsort
SELECT + col1 * + col1 + col1 AS col0 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL - 79 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 7afc0dfcd65d937c1cf3f6d78a7fd244

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2549
SELECT - col1 + + CAST( col0 AS SIGNED ) + + col2 FROM tab2 cor0
----
100
3
45

skipif mysql # not compatible
query I rowsort label-2549
SELECT - col1 + + CAST ( col0 AS INTEGER ) + + col2 FROM tab2 cor0
----
100
3
45

query I rowsort
SELECT - + cor0.col1 + + col1 * cor0.col1 FROM tab2 AS cor0
----
272
3422
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2552
SELECT DISTINCT - col1 + - col0 DIV - col0 AS col1 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT - col1 + - col0 / - col0 AS col1 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT DISTINCT - + 91 + col0 FROM tab1 AS cor0
----
-11
-27
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-2554
SELECT DISTINCT + col1 DIV + ( - cor0.col2 ) + col0 - col2 DIV col0 FROM tab1 AS cor0
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT + col1 / + ( - cor0.col2 ) + col0 - col2 / col0 FROM tab1 AS cor0
----
-15
64
79

query I rowsort
SELECT ALL + - col0 * + 16 FROM tab1 AS cor0
----
-1024
-1280
-48

query I rowsort
SELECT + 7 * cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eb8e4907382073cf46d4e4e322830309

query I rowsort
SELECT DISTINCT 70 FROM tab1, tab0 cor0, tab1 AS cor1
----
70

query I rowsort
SELECT DISTINCT 16 * col2 - col0 AS col1 FROM tab0
----
-19
1223
504

query I rowsort
SELECT + - 86 + + cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
11
2752
7376

query I rowsort
SELECT ALL - col0 * 90 * col2 FROM tab0 AS cor0
----
-3150
-656820
-71280

query I rowsort
SELECT ALL + 60 AS col2 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT - ( + cor0.col0 ) + cor0.col1 * col2 FROM tab0 AS cor0
----
2814
62
7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + ( + tab1.col2 ) + - col0 * + col1 * 93 col0 FROM tab1
----
-59453
-7174
-96611

query I rowsort
SELECT ALL - - col2 + + col1 + - col1 AS col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2565
SELECT ALL + - col1 + col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
-17
-28
-59

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL + - col1 + col2 / + col0 AS col0 FROM tab2 AS cor0
----
-17
-28
-59

query I rowsort
SELECT ALL + col1 * col0 + col0 * - col0 + + col2 AS col0 FROM tab1 AS cor0
----
-3399
-5264
123

query I rowsort
SELECT + col0 + cor0.col1 * 28 FROM tab1 AS cor0
----
344
444
731

query I rowsort
SELECT ALL + + col0 + + 57 FROM tab0 AS cor0
----
146
81
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2569
SELECT + CAST( NULL AS SIGNED ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT + CAST ( NULL AS INTEGER ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 82 * col2 FROM tab2 AS cor0
----
-2132
-2214
-3116

onlyif mysql # use DIV operator for integer division
query I rowsort label-2571
SELECT - + cor0.col1 * col0 DIV + col1 AS col1 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2571
SELECT - + cor0.col1 * col0 / + col1 AS col1 FROM tab0 cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 + - 9 col0 FROM tab1 AS cor0
----
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 + ( col1 ) * - col0 + col0 * col2 col1 FROM tab1 AS cor0
----
3015
6647
91

query I rowsort
SELECT DISTINCT + col1 * tab2.col1 + col1 + + col0 FROM tab2
----
3618
385
999

query I rowsort
SELECT cor0.col2 * col1 + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2576
SELECT col2 DIV + 39 + col2 * - col2 - 68 AS col2 FROM tab1 AS cor0
----
-2983
-3316
-9282

skipif mysql # not compatible
query I rowsort label-2576
SELECT col2 / + 39 + col2 * - col2 - 68 AS col2 FROM tab1 AS cor0
----
-2983
-3316
-9282

query I rowsort
SELECT - 91 + + col0 FROM tab0 AS cor0
----
-2
-56
-67

query I rowsort
SELECT DISTINCT ( - col1 ) * + 73 + ( col2 * cor0.col0 + + 90 ) AS col0 FROM tab1 AS cor0
----
-1646
3008
6821

query I rowsort
SELECT DISTINCT - + col2 + + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - ( col1 ) * - 69 AS col0 FROM tab1
----
1794
690
897

query I rowsort
SELECT + col1 + tab1.col1 * col1 FROM tab1
----
110
182
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2582
SELECT ALL + 94 + - col0 * - CAST( - col2 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
-119558
-50940
-5765

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL + 94 + - col0 * - CAST ( - col2 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
-119558
-50940
-5765

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2583
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col0 - 83 col2 FROM tab1 AS cor0
----
-245
-3731
-7763

query I rowsort
SELECT + + 69 + - col0 AS col0 FROM tab1 AS cor0
----
-11
5
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2586
SELECT DISTINCT - cor0.col0 DIV cor0.col1 + + cor0.col2 FROM tab1 AS cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT - cor0.col0 / cor0.col1 + + cor0.col2 FROM tab1 AS cor0
----
51
54
90

query I rowsort
SELECT ALL + col0 * col2 + 35 FROM tab2 AS cor0
----
2063
224
3037

query I rowsort
SELECT - 63 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2

query I rowsort
SELECT - col1 * + col2 - + tab0.col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT ALL + + col1 * 32 FROM tab2 AS cor0
----
1888
544
992

query I rowsort
SELECT ALL - + col1 + - ( ( + col1 ) ) * col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT - + col2 + col0 + + 63 AS col1 FROM tab0 AS cor0
----
54
70
97

query I rowsort
SELECT - col2 * col0 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2594
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT - col1 - col1 * tab2.col1 FROM tab2
----
-306
-3540
-992

query I rowsort
SELECT 97 + tab1.col0 AS col0 FROM tab1
----
100
161
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT tab1.col0 * + col0 + col2 FROM tab1
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-2599
SELECT DISTINCT 64 DIV - col0 + - col0 FROM tab1
----
-24
-65
-80

skipif mysql # not compatible
query I rowsort label-2599
SELECT DISTINCT 64 / - col0 + - col0 FROM tab1
----
-24
-65
-80

query I rowsort
SELECT + col2 + 56 FROM tab1
----
110
113
152

query I rowsort
SELECT 31 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2666
2821
3007

query I rowsort
SELECT + 5 FROM tab0, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT 99 * col1 AS col2 FROM tab1
----
1287
2574
990

query I rowsort
SELECT - 50 + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4b28833e9544243bd20473e99806e9d0

query I rowsort
SELECT DISTINCT + + col0 - - col2 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - + 51 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2607
SELECT ALL 84 DIV - 4 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL 84 / - 4 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2608
SELECT 34 + col0 * + CAST( 34 * - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1632
-206822
-212160

skipif mysql # not compatible
query I rowsort label-2608
SELECT 34 + col0 * + CAST ( 34 * - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1632
-206822
-212160

onlyif mysql # use DIV operator for integer division
query I rowsort label-2609
SELECT - col1 * cor0.col2 DIV + col2 col2 FROM tab1 cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2609
SELECT - col1 * cor0.col2 / + col2 col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT col1 + + col0 * - 96 AS col2 FROM tab2 AS cor0
----
-641
-7429
-7567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col0 + - col2 col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT - + 48 * col2 AS col1 FROM tab1 AS cor0
----
-2592
-2736
-4608

query I rowsort
SELECT ALL + + col0 + - col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2614
SELECT tab0.col0 * col2 DIV col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2614
SELECT tab0.col0 * col2 / col2 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT ( + col1 ) BETWEEN - col2 AND - col2 OR NOT col2 + col0 IN ( col2 )
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2616
SELECT ALL - + col1 DIV + cor0.col2 - + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
-2
-3
-98

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL - + col1 / + cor0.col2 - + col2 / col2 AS col2 FROM tab0 AS cor0
----
-2
-3
-98

query I rowsort
SELECT ALL + col1 * col0 * - col0 + tab0.col1 - - col1 * - tab0.col0 FROM tab0
----
-122123
-51514
-728819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 + + col2 col1 FROM tab2
----
1560
684
864

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT BETWEEN col1 * - col1 AND NULL
----

query I rowsort
SELECT col0 + - col0 - + col1 * + col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + col1 * - col0 + + col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT col1 * col1 + + col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2623
SELECT DISTINCT col1 DIV + tab0.col1 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT col1 / + tab0.col1 AS col1 FROM tab0
----
1

query I rowsort
SELECT - + 59 AS col1 FROM tab0 AS cor0
----
-59
-59
-59

query I rowsort
SELECT + col1 * + col0 AS col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col0 + - col1 - col2 AS col0 FROM tab0
----
-133
-143
-262

onlyif mysql # use DIV operator for integer division
query I rowsort label-2627
SELECT + - col0 DIV - cor0.col0 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2627
SELECT + - col0 / - cor0.col0 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col1 * + col2 * col2 FROM tab1 AS cor0
----
119808
32490
75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-2629
SELECT col0 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2629
SELECT col0 / cor0.col0 AS col2 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col0 AND col2
----

query I rowsort
SELECT DISTINCT - col1 * col2 - - tab2.col2 * + col2 FROM tab2
----
-108
-858
798

query I rowsort
SELECT tab0.col0 - - col1 FROM tab0 WHERE ( NULL ) = + col0
----

query I rowsort
SELECT DISTINCT - tab1.col1 * tab1.col0 AS col1 FROM tab1 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT tab0.col0 AS col1 FROM tab0 WHERE NOT - tab0.col0 * tab0.col1 IN ( col2 * + col0 * col0 )
----
24
35
89

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2637
SELECT - col1 + - col0 DIV - col0 AS col2 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-2637
SELECT - col1 + - col0 / - col0 AS col2 FROM tab2
----
-16
-30
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-2638
SELECT ALL col1 DIV + col1 - col1 AS col0 FROM tab1
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL col1 / + col1 - col1 AS col0 FROM tab1
----
-12
-25
-9

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col0 * - col1 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2640
SELECT ALL - tab0.col2 * + col0 + - col0 DIV col0 FROM tab0
----
-36
-7299
-793

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL - tab0.col2 * + col0 + - col0 / col0 FROM tab0
----
-36
-7299
-793

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 BETWEEN col0 + col1 + col0 AND ( NULL )
----

query I rowsort
SELECT - tab1.col2 + tab1.col2 * col1 FROM tab1
----
1152
1350
513

query I rowsort
SELECT ALL col2 * col0 * - col2 + - col0 FROM tab2
----
-114155
-5110
-52806

query I rowsort
SELECT DISTINCT + col2 * col0 + - col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT - col2 - tab0.col2 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT - - 77 + col1 AS col2 FROM tab1 AS cor0
----
103
87
90

query I rowsort
SELECT + col2 * col2 + col1 * col0 AS col2 FROM tab2 AS cor0
----
2787
5278
946

query I rowsort
SELECT col0 * + col0 + + col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT + tab1.col1 * col2 + + col2 AS col0 FROM tab1
----
1344
1458
627

query I rowsort
SELECT + col0 * + col2 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND col2
----

query I rowsort
SELECT - col2 * + cor0.col2 + col1 * + col0 * col2 FROM tab0 AS cor0
----
3394
657394
67023

query I rowsort
SELECT col1 * + col1 + - col1 AS col1 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT ALL + col1 * col0 * col2 + - col2 AS col2 FROM tab1
----
36423
4158
99744

query I rowsort
SELECT + col2 + col0 + - col1 AS col0 FROM tab1
----
111
163
31

query I rowsort
SELECT ALL - col2 * col1 + tab0.col0 AS col2 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT col1 - cor0.col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - cor0.col1 * cor0.col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * - col0 * col1 + col2 col1 FROM tab0 cor0
----
-118824
-49503
-720729

query I rowsort
SELECT col0 + + col0 * col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - col1 - + col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + cor0.col1 * col0 <= col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT BETWEEN col2 + col1 AND NULL
----

query I rowsort
SELECT ALL + cor0.col0 * col0 * col0 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT DISTINCT col0 - - col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT cor0.col1 - col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col1 * - col1 * - col2 + col0 * - col2 AS col2 FROM tab1 AS cor0
----
2052
36342
8544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 - col2 col2 FROM tab1
----
-1344
-1458
-627

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 + + col0 AND + col0
----

query I rowsort
SELECT ALL + col0 * - col0 + col2 * col1 AS col0 FROM tab1
----
-3526
-5152
1395

query I rowsort
SELECT tab2.col2 + + col0 * + col1 AS col2 FROM tab2
----
1381
244
4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2671
SELECT DISTINCT + + CAST( + col1 AS SIGNED ) + col2 AS col0 FROM tab2 cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT + + CAST ( + col1 AS INTEGER ) + col2 AS col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT - 72 + + col0 FROM tab1 AS cor0
----
-69
-8
8

query I rowsort
SELECT - 85 + col0 AS col1 FROM tab0
----
-50
-61
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2674
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 21 + col0 * - col0 FROM tab2
----
-28
-6063
-6220

query I rowsort
SELECT DISTINCT + 37 * col2 + + col1 FROM tab1
----
2024
2119
3565

onlyif mysql # use DIV operator for integer division
query I rowsort label-2677
SELECT 42 DIV col1 AS col0 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2677
SELECT 42 / col1 AS col0 FROM tab2
----
0
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2678
SELECT ALL - col1 + col0 DIV ( col2 + col0 ) FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL - col1 + col0 / ( col2 + col0 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - col1 * + col1 * + 10 FROM tab2 AS cor0
----
-2890
-34810
-9610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 94 + cor0.col1 col0 FROM tab0 cor0
----
-3
-8
3

query I rowsort
SELECT - 51 + col2 * ( cor0.col1 ) * col0 FROM tab0 AS cor0
----
3344
664067
68061

query I rowsort
SELECT DISTINCT - 77 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1001
-2002
-770

query I rowsort
SELECT DISTINCT + + 43 * col2 FROM tab0 AS cor0
----
1419
3526
43

query I rowsort
SELECT DISTINCT col2 * 96 FROM tab0
----
3168
7872
96

query I rowsort
SELECT DISTINCT 99 FROM tab2, tab2 cor0
----
99

query I rowsort
SELECT - col0 + - 52 FROM tab0 AS cor0
----
-141
-76
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + col1 col2 FROM tab2
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 + col2 * + tab0.col1 * - col2 col0 FROM tab0
----
-611802
-93621
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2689
SELECT + col0 * + CAST( - col1 AS SIGNED ) * + col1 AS col1 FROM tab0
----
-177504
-329315
-737009

skipif mysql # not compatible
query I rowsort label-2689
SELECT + col0 * + CAST ( - col1 AS INTEGER ) * + col1 AS col1 FROM tab0
----
-177504
-329315
-737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + 63 * col2 col1 FROM tab2 AS cor0
----
1560
1694
2315

query I rowsort
SELECT cor0.col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - col1 * 30 + col1 AS col1 FROM tab0 AS cor0
----
-2494
-2639
-2813

query I rowsort
SELECT ALL - col2 * ( + cor0.col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - ( cor0.col0 * col1 ) col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + cor0.col2 * col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + ( + 97 ) AS col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL ( col0 ) * col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT 47 * col1 FROM tab0 AS cor0
----
4042
4277
4559

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2699
SELECT ALL + CAST( NULL AS SIGNED ) * ( col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL + CAST ( NULL AS INTEGER ) * ( col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - 77 * - 80 AS col0 FROM tab0 AS cor0
----
6160

query I rowsort
SELECT DISTINCT - + ( col2 ) + + cor0.col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + 80 * 12 FROM tab1 cor0
----
960
960
960

query I rowsort
SELECT DISTINCT + 30 * col1 FROM tab0 AS cor0
----
2580
2730
2910

query I rowsort
SELECT ALL - tab0.col0 + - ( + col1 ) FROM tab0
----
-110
-132
-180

query I rowsort
SELECT 27 * ( col2 ) FROM tab2 AS cor0
----
1026
702
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-2707
SELECT 2 + - cor0.col1 + col1 DIV + cor0.col0 FROM tab0 AS cor0
----
-81
-88
-93

skipif mysql # not compatible
query I rowsort label-2707
SELECT 2 + - cor0.col1 + col1 / + cor0.col0 FROM tab0 AS cor0
----
-81
-88
-93

query I rowsort
SELECT ALL + 10 AS col1 FROM tab2 AS cor0
----
10
10
10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2709
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 / col0 + - col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 / col0 + - col1 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + col0 * - col2 + col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT + col2 + + col1 * - col2 * - cor0.col2 AS col2 FROM tab1 cor0
----
119904
32547
75870

query I rowsort
SELECT + 92 * tab0.col1 FROM tab0
----
7912
8372
8924

query I rowsort
SELECT - col1 * + 44 AS col1 FROM tab2
----
-1364
-2596
-748

onlyif mysql # use DIV operator for integer division
query I rowsort label-2714
SELECT - 82 DIV + cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
2
23
7

skipif mysql # not compatible
query I rowsort label-2714
SELECT - 82 / + cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
2
23
7

query I rowsort
SELECT + ( col0 ) * col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2716
SELECT + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 42 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT + ( 2 ) AS col2 FROM tab2
----
2
2
2

query I rowsort
SELECT + 96 * + col2 FROM tab1 AS cor0
----
5184
5472
9216

query I rowsort
SELECT cor0.col0 - - col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT col0 + + ( col1 * - col0 ) FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT - col2 * cor0.col2 + + col2 * + col0 FROM tab1 cor0
----
-1536
-2754
399

query I rowsort
SELECT + col0 + + col2 + + col2 FROM tab0 AS cor0
----
253
37
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2724
SELECT ALL - col1 * + CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL - col1 * + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + + col2 + - cor0.col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 99 + col1 + 70 * - col0 FROM tab1
----
-4371
-5488
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2727
SELECT ALL + col2 + - col1 DIV - ( - 8 * - col0 ) + - col2 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL + col2 + - col1 / - ( - 8 * - col0 ) + - col2 AS col2 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2728
SELECT col1 + + CAST( NULL AS SIGNED ) * - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2728
SELECT col1 + + CAST ( NULL AS INTEGER ) * - col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - tab0.col1 * - tab0.col1 FROM tab0, tab2 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL col2 + ( - col0 ) AS col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT + col2 + ( + col0 ) * + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - col2 + 86 + col2 * col0 AS col0 FROM tab0 AS cor0
----
120
7302
845

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2733
SELECT DISTINCT - - col2 * CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT - - col2 * CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col2 * col0 - - 91 * col2 FROM tab1 cor0
----
16416
5076
8835

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * ( col1 ) col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT 54 AS col1 FROM tab0, tab2 cor0
----
54

query I rowsort
SELECT - col2 + - 91 FROM tab0 AS cor0
----
-124
-173
-92

query I rowsort
SELECT ALL - col0 + + col1 * + col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL cor0.col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - + 2 FROM tab0 AS cor0
----
-2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2741
SELECT - col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2741
SELECT - col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 96 FROM tab0 AS cor0
----
96

query I rowsort
SELECT ALL - col0 * col0 + - col0 AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT DISTINCT + - 99 * col2 * - col1 FROM tab0 AS cor0
----
280962
738738
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 18 * col0 col2 FROM tab0 AS cor0
----
-1520
-399
-629

onlyif mysql # use DIV operator for integer division
query I rowsort label-2746
SELECT DISTINCT + - 15 DIV ( - col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT + - 15 / ( - col1 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + ( cor0.col0 ) * - col2 * + col1 FROM tab2 cor0
----
-119652
-51034
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 86 ) * - cor0.col2 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d17498ac0e257bcfabe8c52fbb5bd89d

query I rowsort
SELECT DISTINCT col1 - - 14 FROM tab2
----
31
45
73

query I rowsort
SELECT ALL - ( + col2 ) * - col0 * - cor0.col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1296
-158158
-237120

query I rowsort
SELECT DISTINCT - 35 + col0 * + col2 FROM tab2 AS cor0
----
154
1993
2967

query I rowsort
SELECT + 93 * col2 FROM tab2 AS cor0
----
2418
2511
3534

query I rowsort
SELECT DISTINCT + 30 * col0 - col1 AS col2 FROM tab1 AS cor0
----
1910
2387
64

query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col1 * - ( - col1 ) - col1 FROM tab2 AS cor0
----
22814
271459
6696

query I rowsort
SELECT ALL 78 + col0 AS col0 FROM tab2 cor0
----
156
157
85

query I rowsort
SELECT 48 + col1 FROM tab2 cor0
----
107
65
79

query I rowsort
SELECT - ( tab0.col0 ) * col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT 28 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ( - col1 * tab0.col1 ) - + ( - col2 ) FROM tab0
----
-7363
-8199
-9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2760
SELECT ALL - - col2 * - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL - - col2 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-2761
SELECT ALL + - cor0.col0 + + 62 * col1 DIV - cor0.col2 AS col2 FROM tab0 AS cor0
----
-157
-185
-6049

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL + - cor0.col0 + + 62 * col1 / - cor0.col2 AS col2 FROM tab0 AS cor0
----
-157
-185
-6049

query I rowsort
SELECT col1 + - col1 * - tab1.col2 AS col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT col1 + col2 * + 58 FROM tab1
----
3158
3316
5581

query I rowsort
SELECT + col1 + tab0.col0 AS col1 FROM tab0
----
110
132
180

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9

query I rowsort
SELECT DISTINCT 17 AS col2 FROM tab0, tab0 AS cor0
----
17

query I rowsort
SELECT ALL + cor0.col2 + col0 * - ( + col0 ) * col1 - 66 FROM tab0 cor0
----
-118890
-49569
-720795

query I rowsort
SELECT ALL + col2 * + 5 * - col1 + col2 AS col1 FROM tab2 AS cor0
----
-3192
-4158
-7644

query I rowsort
SELECT DISTINCT - 41 AS col1 FROM tab2, tab2 AS cor0
----
-41

query I rowsort
SELECT - col1 * col0 + tab2.col1 * tab2.col2 AS col1 FROM tab2
----
-3068
-697
620

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 * col2 col1 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT col2 * - 51 FROM tab1 AS cor0
----
-2754
-2907
-4896

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2774
SELECT col0 * + CAST( 74 AS SIGNED ) FROM tab1 AS cor0
----
222
4736
5920

skipif mysql # not compatible
query I rowsort label-2774
SELECT col0 * + CAST ( 74 AS INTEGER ) FROM tab1 AS cor0
----
222
4736
5920

query I rowsort
SELECT ALL + + cor0.col1 AS col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT cor0.col2 + - col2 * col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT col0 * + 2 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - col1 + + col2 * - 92 FROM tab0 AS cor0
----
-189
-3122
-7635

query I rowsort
SELECT ALL - - col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT 76 FROM tab1, tab1 AS cor0
----
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2781
SELECT DISTINCT col0 + - 90 * - col0 DIV - col0 FROM tab2
----
-11
-12
-83

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT col0 + - 90 * - col0 / - col0 FROM tab2
----
-11
-12
-83

query I rowsort
SELECT DISTINCT + col2 + + 47 AS col2 FROM tab1 AS cor0
----
101
104
143

query I rowsort
SELECT - 80 + + col2 AS col2 FROM tab0 AS cor0
----
-47
-79
2

query I rowsort
SELECT - cor0.col0 * 66 + + col0 AS col1 FROM tab0 cor0
----
-1560
-2275
-5785

onlyif mysql # use DIV operator for integer division
query I rowsort label-2785
SELECT - + 84 + 26 DIV col1 FROM tab2 AS cor0
----
-83
-84
-84

skipif mysql # not compatible
query I rowsort label-2785
SELECT - + 84 + 26 / col1 FROM tab2 AS cor0
----
-83
-84
-84

query I rowsort
SELECT ALL - + 25 FROM tab0 AS cor0
----
-25
-25
-25

query I rowsort
SELECT ( col1 ) + cor0.col2 - col0 AS col1 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT ALL + - 72 + + col0 FROM tab0 AS cor0
----
-37
-48
17

query I rowsort
SELECT cor0.col1 * col2 * 78 FROM tab1 AS cor0
----
109512
44460
97344

query I rowsort
SELECT DISTINCT 21 AS col2 FROM tab0
----
21

query I rowsort
SELECT tab1.col0 - col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT + + cor0.col0 + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 761f5f1a166a00db99360141565a85da

query I rowsort
SELECT - + col2 + - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2795
SELECT CAST( 23 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-2795
SELECT CAST ( 23 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
23
23
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2796
SELECT ALL - CAST( NULL AS SIGNED ) / cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL - CAST ( NULL AS INTEGER ) / cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2797
SELECT + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + - col0 * cor0.col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT ALL col2 + col1 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + col1 * + col2 - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT 69 + col1 AS col0 FROM tab0 AS cor0
----
155
160
166

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2802
SELECT - CAST( - col2 AS SIGNED ) + col2 * + cor0.col1 * col1 FROM tab2 AS cor0
----
11020
25974
90532

skipif mysql # not compatible
query I rowsort label-2802
SELECT - CAST ( - col2 AS INTEGER ) + col2 * + cor0.col1 * col1 FROM tab2 AS cor0
----
11020
25974
90532

onlyif mysql # use DIV operator for integer division
query I rowsort label-2803
SELECT col0 DIV + cor0.col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2803
SELECT col0 / + cor0.col0 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col0 + col0 * + ( - col0 ) AS col1 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT + col2 + ( col0 ) AS col1 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2806
SELECT - tab1.col1 DIV + 62 + col2 * + col0 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-2806
SELECT - tab1.col1 / + 62 + col2 * + col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - 44 * col1 + - col2 FROM tab1 cor0
----
-1198
-497
-668

query I rowsort
SELECT + 61 FROM tab2, tab1 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col0 col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col0 * 29 + - col0 FROM tab0 AS cor0
----
-1050
-2670
-720

query I rowsort
SELECT + 75 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to 3384246e49f3e69ba32c165b88111fee

query I rowsort
SELECT + - 73 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT DISTINCT + 67 + + tab0.col2 AS col0 FROM tab0
----
100
149
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-2814
SELECT - col0 DIV + col1 + col1 FROM tab2 AS cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-2814
SELECT - col0 / + col1 + col1 FROM tab2 AS cor0
----
13
31
58

query I rowsort
SELECT col1 + - ( + col2 + col2 ) * 47 FROM tab1 AS cor0
----
-5050
-5348
-9011

query I rowsort
SELECT col2 - cor0.col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL col0 + - col1 * 28 AS col0 FROM tab1
----
-216
-284
-725

skipif mysql # not compatible
query I rowsort
SELECT col1 * CAST ( - col1 AS REAL ) FROM tab2
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 0 ) col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL - 16 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9

query I rowsort
SELECT DISTINCT + col2 * ( + col2 ) * col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT ALL - col2 * - col1 - + cor0.col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT + - col2 + + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * 74 + + col1 * col1 col2 FROM tab2 AS cor0
----
1479
6135
9253

query I rowsort
SELECT DISTINCT + + cor0.col0 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT + col0 + 52 FROM tab1 AS cor0
----
116
132
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2827
SELECT col2 * + CAST( NULL AS SIGNED ) + - col1 * col2 - + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2827
SELECT col2 * + CAST ( NULL AS INTEGER ) + - col1 * col2 - + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - cor0.col0 * - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT 51 + - col2 FROM tab0
----
-31
18
50

query I rowsort
SELECT - col0 * col2 * col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-113997
-5096
-52650

query I rowsort
SELECT + - 16 * + col2 FROM tab1 AS cor0
----
-1536
-864
-912

query I rowsort
SELECT cor0.col2 + + 37 FROM tab2 AS cor0
----
63
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( col2 ) * col1 + cor0.col2 col2 FROM tab1 AS cor0
----
119904
32547
75870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 col2 FROM tab1
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + 88 + col0 FROM tab0 AS cor0
----
112
123
177

query I rowsort
SELECT DISTINCT - 3 + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-103
-172
-679

query I rowsort
SELECT DISTINCT + col0 * - col0 + col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col0 FROM tab2
----
25
25
25

query I rowsort
SELECT + col1 * + 83 + - 67 AS col0 FROM tab1 AS cor0
----
1012
2091
763

query I rowsort
SELECT + col1 + col1 - - cor0.col1 FROM tab1 cor0
----
30
39
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 * 60 col0 FROM tab0 cor0
----
-1956
-25
-4831

onlyif mysql # use DIV operator for integer division
query I rowsort label-2843
SELECT - cor0.col1 DIV + col0 - + col1 col0 FROM tab1 AS cor0
----
-10
-13
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2843
SELECT - cor0.col1 / + col0 - + col1 col0 FROM tab1 AS cor0
----
-10
-13
-34

skipif mysql # not compatible
query I rowsort
SELECT - - col0 + CAST ( col0 + col2 AS REAL ) FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT col2 + cor0.col2 * col2 - col1 FROM tab1 AS cor0
----
2944
3296
9299

query I rowsort
SELECT ALL - col2 + - col1 * - 57 FROM tab0
----
4869
5105
5528

query I rowsort
SELECT DISTINCT + col0 + col2 * ( + col2 ) * tab1.col2 + - col0 AS col1 FROM tab1
----
157464
185193
884736

query I rowsort
SELECT - ( col2 ) + tab1.col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT - + col0 + + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT 53 + + col0 FROM tab2
----
131
132
60

query I rowsort
SELECT ALL ( 44 ) AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT ALL 93 FROM tab0, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col0 col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + - 63 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT ALL - col2 + col2 * - cor0.col1 FROM tab0 AS cor0
----
-2871
-7544
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2856
SELECT ALL - + col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL - + col1 / col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT + ( - col1 * col1 ) FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT 58 FROM tab2, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2860
SELECT - + ( - cor0.col2 ) DIV - CAST( + ( col1 ) + + col0 * + ( + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2860
SELECT - + ( - cor0.col2 ) / - CAST ( + ( col1 ) + + col0 * + ( + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 col2 FROM tab1
----
85

query I rowsort
SELECT + cor0.col0 * cor0.col1 + 44 AS col0 FROM tab2 AS cor0
----
1387
261
4646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - 11 * 70 + col1 col2 FROM tab0 AS cor0
----
25496
63231
867

query I rowsort
SELECT col1 + cor0.col2 * + col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT col2 * + ( + col0 ) FROM tab0 cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + 35 * col0 col2 FROM tab0 AS cor0
----
1322
3206
926

query I rowsort
SELECT + 58 * - col0 * 57 AS col0 FROM tab2
----
-23142
-257868
-261174

query I rowsort
SELECT - col0 + - col2 * col1 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-2869
SELECT ALL - col0 + col1 + col1 DIV col0 AS col1 FROM tab2 cor0
----
-19
-62
28

skipif mysql # not compatible
query I rowsort label-2869
SELECT ALL - col0 + col1 + col1 / col0 AS col1 FROM tab2 cor0
----
-19
-62
28

query I rowsort
SELECT - col1 * + ( - cor0.col2 ) + - col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT - cor0.col1 - cor0.col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - col0 * ( ( + col2 ) ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - ( + col2 ) * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2874
SELECT - col0 DIV + 15 FROM tab2 AS cor0
----
-5
-5
0

skipif mysql # not compatible
query I rowsort label-2874
SELECT - col0 / + 15 FROM tab2 AS cor0
----
-5
-5
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2875
SELECT DISTINCT + col1 * col1 DIV - col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT + col1 * col1 / - col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT tab0.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL 89 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # use DIV operator for integer division
query I rowsort label-2878
SELECT DISTINCT col1 DIV col1 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT col1 / col1 AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2879
SELECT ALL - + col0 DIV col0 + - col1 * + 24 AS col0 FROM tab1 AS cor0
----
-241
-313
-625

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL - + col0 / col0 + - col1 * + 24 AS col0 FROM tab1 AS cor0
----
-241
-313
-625

onlyif mysql # use DIV operator for integer division
query I rowsort label-2880
SELECT + col1 * col1 + - col1 DIV col1 AS col0 FROM tab1 AS cor0
----
168
675
99

skipif mysql # not compatible
query I rowsort label-2880
SELECT + col1 * col1 + - col1 / col1 AS col0 FROM tab1 AS cor0
----
168
675
99

query I rowsort
SELECT DISTINCT - + col1 - + col0 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT 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 DISTINCT 93 col0 FROM tab1 AS cor0
----
93

query I rowsort
SELECT + col0 * cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL + col2 * - 9 + col2 AS col0 FROM tab2 AS cor0
----
-208
-216
-304

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + 22 AS REAL ) + cor0.col0 AS col0 FROM tab2 AS cor0
----
100
101
29

query I rowsort
SELECT DISTINCT ( - col0 ) AS col2 FROM tab2 cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2888
SELECT ALL + col0 DIV 22 + col0 * + col0 AS col1 FROM tab2 AS cor0
----
49
6087
6244

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL + col0 / 22 + col0 * + col0 AS col1 FROM tab2 AS cor0
----
49
6087
6244

query I rowsort
SELECT 50 * - col0 FROM tab2 AS cor0
----
-350
-3900
-3950

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2890
SELECT ALL - ( 61 ) * + col0 + - CAST( + col0 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
-261
-4544
-5920

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL - ( 61 ) * + col0 + - CAST ( + col0 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
-261
-4544
-5920

query I rowsort
SELECT ALL col2 + - tab0.col0 AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + col0 * 32 + - col2 AS col2 FROM tab2
----
197
2470
2490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 * ( col0 ) col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL col1 * col0 + + col2 * tab1.col2 + col1 * - col1 * col2 FROM tab1
----
-1811
-33510
-5968

query I rowsort
SELECT col0 - 8 * 0 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT - col0 * col2 * - col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL col0 * 8 * - col0 + - col1 FROM tab1 AS cor0
----
-32778
-51213
-98

query I rowsort
SELECT ALL - + col1 * + 88 FROM tab1 AS cor0
----
-1144
-2288
-880

query I rowsort
SELECT - + 64 + + col1 * + col2 AS col1 FROM tab1 cor0
----
1184
1340
506

query I rowsort
SELECT col2 * col0 + - col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL - 70 AS col1 FROM tab1 AS cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT 42 FROM tab1 AS cor0
----
42

query I rowsort
SELECT DISTINCT - + cor0.col1 + 37 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
11
24
27

query I rowsort
SELECT DISTINCT col2 + + col0 - + col0 AS col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2905
SELECT DISTINCT col2 * 40 DIV col2 FROM tab1 cor0
----
40

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT col2 * 40 / col2 FROM tab1 cor0
----
40

query I rowsort
SELECT + col2 * + col1 + + cor0.col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL cor0.col1 + + 86 * cor0.col0 AS col1 FROM tab2 cor0
----
633
6767
6811

query I rowsort
SELECT - 10 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2910
SELECT col2 * 46 DIV + col1 + col2 FROM tab1 AS cor0
----
149
319
435

skipif mysql # not compatible
query I rowsort label-2910
SELECT col2 * 46 / + col1 + col2 FROM tab1 AS cor0
----
149
319
435

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + ( - col2 ) * col0 col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT col1 * + ( col2 ) AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + col2 + - col0 + + ( + col2 ) FROM tab2 AS cor0
----
-26
-3
47

query I rowsort
SELECT DISTINCT + + col2 * + col1 * + 13 FROM tab0 AS cor0
----
1261
36894
97006

query I rowsort
SELECT DISTINCT + + col2 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-2916
SELECT 51 + + cor0.col2 DIV - 73 AS col2 FROM tab0 AS cor0
----
50
51
51

skipif mysql # not compatible
query I rowsort label-2916
SELECT 51 + + cor0.col2 / - 73 AS col2 FROM tab0 AS cor0
----
50
51
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2917
SELECT ALL - col0 + - col0 * CAST( - 25 * col2 + + 11 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
181382
19512
455

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL - col0 + - col0 * CAST ( - 25 * col2 + + 11 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
181382
19512
455

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2918
SELECT - 37 + cor0.col1 * CAST( NULL AS SIGNED ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2918
SELECT - 37 + cor0.col1 * CAST ( NULL AS INTEGER ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col2 ) - + 81 AS col2 FROM tab2 AS cor0
----
-43
-54
-55

query I rowsort
SELECT ALL col0 + col2 FROM tab2 cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 * - ( col1 + cor0.col0 ) col1 FROM tab2 AS cor0
----
1185
1711
8161

query I rowsort
SELECT DISTINCT cor0.col2 + col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT - col2 - + cor0.col1 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2924
SELECT DISTINCT col2 * col0 * CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
26136
35
598436

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT col2 * col0 * CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT + col2 * - col2 + col2 + - col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT col2 + - col1 * col2 + col2 FROM tab1 AS cor0
----
-1056
-1296
-456

query I rowsort
SELECT ALL + ( + tab2.col0 ) + col1 * ( col2 ) FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-2928
SELECT + cor1.col0 DIV + 42 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e1e0cfc6d15933eb424ade504a2163bc

skipif mysql # not compatible
query I rowsort label-2928
SELECT + cor1.col0 / + 42 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e1e0cfc6d15933eb424ade504a2163bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 + col0 col1 FROM tab2 cor0
----
26
97
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2930
SELECT DISTINCT CAST( 3 AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT CAST ( 3 AS INTEGER ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - cor0.col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - + col0 * + col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + col0 * col0 + - col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT - 58 AS col0 FROM tab1 cor0
----
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-2935
SELECT ALL - ( - ( cor0.col2 ) ) + col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL - ( - ( cor0.col2 ) ) + col0 / + col2 AS col0 FROM tab0 AS cor0
----
33
36
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2936
SELECT col0 + - col1 + col1 DIV + col0 AS col0 FROM tab1
----
-15
54
67

skipif mysql # not compatible
query I rowsort label-2936
SELECT col0 + - col1 + col1 / + col0 AS col0 FROM tab1
----
-15
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2937
SELECT CAST( NULL AS DECIMAL ) * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT CAST ( NULL AS REAL ) * col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( - 49 ) FROM tab1
----
-49
-49
-49

query I rowsort
SELECT + 40 * col2 + col0 FROM tab2 AS cor0
----
1087
1118
1599

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col0 AS REAL ) + - col1 AS col2 FROM tab0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 + - col1 col1 FROM tab0
----
-49
-54
-60

query I rowsort
SELECT ( col1 ) * col1 * - tab1.col2 AS col2 FROM tab1
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-2943
SELECT DISTINCT ( tab1.col2 ) + - tab1.col1 DIV col1 AS col0 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT ( tab1.col2 ) + - tab1.col1 / col1 AS col0 FROM tab1
----
53
56
95

query I rowsort
SELECT DISTINCT - col2 + 42 FROM tab2
----
15
16
4

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 57708840c4ff70ecdca82ffd05259432

onlyif mysql # use DIV operator for integer division
query I rowsort label-2946
SELECT - 91 DIV ( col1 ) AS col0 FROM tab2
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-2946
SELECT - 91 / ( col1 ) AS col0 FROM tab2
----
-1
-2
-5

query I rowsort
SELECT DISTINCT 23 * + col2 * + col1 + ( col0 ) FROM tab0
----
171715
2266
65298

onlyif mysql # use DIV operator for integer division
query I rowsort label-2948
SELECT + cor0.col0 DIV col0 + col1 * col1 + col2 AS col1 FROM tab1 AS cor0
----
158
266
731

skipif mysql # not compatible
query I rowsort label-2948
SELECT + cor0.col0 / col0 + col1 * col1 + col2 AS col1 FROM tab1 AS cor0
----
158
266
731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 col0 FROM tab2
----
-34
-34
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2950
SELECT - 63 DIV + col2 FROM tab0
----
-1
-63
0

skipif mysql # not compatible
query I rowsort label-2950
SELECT - 63 / + col2 FROM tab0
----
-1
-63
0

query I rowsort
SELECT + tab0.col0 * - col0 * 56 AS col0 FROM tab0
----
-32256
-443576
-68600

query I rowsort
SELECT - 39 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 * + 69 col0 FROM tab0
----
-463956
-69
-75141

query I rowsort
SELECT cor0.col0 * col2 + + col2 * + col2 + + col0 FROM tab2 AS cor0
----
2782
4525
925

query I rowsort
SELECT ALL ( 60 ) FROM tab1, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT + cor0.col0 * - col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + col2 * col2 + ( col2 * col0 + col1 ) AS col2 FROM tab0 AS cor0
----
133
14113
1967

query I rowsort
SELECT + cor0.col2 + - col0 * col0 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT col0 * - ( 41 + - col0 ) * col1 FROM tab2
----
-7378
170274
51034

query I rowsort
SELECT ALL col0 * + 70 AS col1 FROM tab1
----
210
4480
5600

query I rowsort
SELECT 94 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT - 11 + + col0 FROM tab1 cor0
----
-8
53
69

query I rowsort
SELECT ALL - - 97 + col1 AS col2 FROM tab1 AS cor0
----
107
110
123

query I rowsort
SELECT DISTINCT - col1 * - col2 - + col2 FROM tab2 cor0
----
1508
608
810

query I rowsort
SELECT - + 9 * col2 AS col1 FROM tab2 AS cor0
----
-234
-243
-342

onlyif mysql # use DIV operator for integer division
query I rowsort label-2966
SELECT - + ( col2 ) DIV col1 col2 FROM tab1 AS cor0
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2966
SELECT - + ( col2 ) / col1 col2 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT 95 * col0 FROM tab2 AS cor0
----
665
7410
7505

query I rowsort
SELECT + ( 5 ) + + col1 FROM tab0 AS cor0
----
102
91
96

query I rowsort
SELECT - 92 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1564
-2852
-5428

query I rowsort
SELECT DISTINCT + ( - tab0.col2 ) FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2971
SELECT ALL cor0.col2 DIV cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL cor0.col2 / cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ALL 70 + + col1 FROM tab2
----
101
129
87

query I rowsort
SELECT DISTINCT + 48 * + tab0.col0 + col2 * + col0 FROM tab0
----
11570
1715
1944

query I rowsort
SELECT + col2 + + col2 AS col2 FROM tab1
----
108
114
192

query I rowsort
SELECT col2 * - col2 + col1 * col1 FROM tab0
----
1557
6307
9408

query I rowsort
SELECT - tab0.col2 * + col0 + col1 FROM tab0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 - col1 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col0 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL 60 * col1 - col1 * col2 AS col1 FROM tab2
----
1023
2006
374

onlyif mysql # use DIV operator for integer division
query I rowsort label-2981
SELECT 61 DIV col1 AS col2 FROM tab1
----
2
4
6

skipif mysql # not compatible
query I rowsort label-2981
SELECT 61 / col1 AS col2 FROM tab1
----
2
4
6

query I rowsort
SELECT 56 AS col1 FROM tab1
----
56
56
56

query I rowsort
SELECT - 87 * 3 AS col1 FROM tab1
----
-261
-261
-261

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2984
SELECT + CAST( - ( col0 ) AS SIGNED ) * + col2 * + cor0.col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif mysql # not compatible
query I rowsort label-2984
SELECT + CAST ( - ( col0 ) AS INTEGER ) * + col2 * + cor0.col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + 22 * - col1 AS col2 FROM tab1 AS cor0
----
-220
-286
-572

query I rowsort
SELECT ALL col2 - - 18 AS col1 FROM tab2
----
44
45
56

query I rowsort
SELECT - - col2 * col0 * + col0 AS col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT ALL 56 + col0 AS col1 FROM tab0 AS cor0
----
145
80
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-2990
SELECT col1 DIV + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-2990
SELECT col1 / + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-31
-81
96

query I rowsort
SELECT + col0 * col1 * col2 + col0 AS col2 FROM tab0 AS cor0
----
3430
664207
68136

onlyif mysql # use DIV operator for integer division
query I rowsort label-2992
SELECT + + 84 + + col1 * - col1 DIV col1 col1 FROM tab0 AS cor0
----
-13
-2
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2992
SELECT + + 84 + + col1 * - col1 / col1 col1 FROM tab0 AS cor0
----
-13
-2
-7

query I rowsort
SELECT DISTINCT + 33 + + col1 FROM tab1 AS cor0
----
43
46
59

query I rowsort
SELECT ALL - - col2 + - col0 * - col1 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT - 46 * tab2.col0 FROM tab2
----
-322
-3588
-3634

query I rowsort
SELECT DISTINCT col2 * col2 * tab0.col0 FROM tab0
----
26136
35
598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-2997
SELECT + + col2 + col1 DIV col0 FROM tab1 AS cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-2997
SELECT + + col2 + col1 / col0 FROM tab1 AS cor0
----
57
62
96

query I rowsort
SELECT ALL 45 FROM tab1 cor0
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col0 * col1 - col0 FROM tab1
----
576
75
960

query I rowsort
SELECT col2 + col2 - + col1 FROM tab0 AS cor0
----
-20
-95
73

query I rowsort
SELECT ALL tab2.col1 * + col2 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT - col1 * + col0 * col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT - col0 - + col1 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ALL - col1 * - col1 - + col0 AS col2 FROM tab0
----
7372
8192
9374

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT col0 * col1 + col0 + + col2 * + col0 FROM tab2 AS cor0
----
413
4424
6708

onlyif mysql # use DIV operator for integer division
query I rowsort label-3009
SELECT DISTINCT col1 * col1 DIV col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT col1 * col1 / col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL + col1 + - tab2.col1 + col2 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT - col2 - col0 AS col2 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT - col1 * + tab1.col0 + col2 FROM tab1
----
-24
-583
-944

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN col2 + col1 + col2 * - tab2.col2 AND col0 + col1 * col1
----

query I rowsort
SELECT ALL col2 + - col1 * + col1 - - col2 * - col1 AS col2 FROM tab2
----
-1771
-4989
-897

query I rowsort
SELECT DISTINCT col2 + col1 * + col2 + - col2 * - col2 FROM tab2
----
1593
2128
2236

query I rowsort
SELECT + col1 * tab0.col1 - col1 * + col0 AS col0 FROM tab0
----
182
5332
6014

query I rowsort
SELECT - col1 * - col1 - + col2 * col1 * + col0 FROM tab2
----
-116171
-4898
-50745

query I rowsort
SELECT - tab1.col0 * - col0 * + col2 AS col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT DISTINCT tab0.col0 * + col1 * - col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL tab2.col2 + col1 + col2 FROM tab2
----
111
85
93

query I rowsort
SELECT col0 * col1 * col2 AS col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL - col2 * - col2 + col1 AS col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT - + col2 - - col0 * col0 * + col1 FROM tab0 AS cor0
----
118824
49503
720729

query I rowsort
SELECT ALL - - col2 + col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL + cor0.col0 + + col1 + col1 * col0 FROM tab2 AS cor0
----
1439
255
4739

onlyif mysql # use DIV operator for integer division
query I rowsort label-3027
SELECT ALL + cor0.col1 DIV col1 + - col1 + col2 AS col2 FROM tab2 AS cor0
----
-3
-32
22

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL + cor0.col1 / col1 + - col1 + col2 AS col2 FROM tab2 AS cor0
----
-3
-32
22

query I rowsort
SELECT ALL + - col2 * cor0.col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col2 * - cor0.col1 - col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 - - col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - - cor0.col2 + col2 * col1 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3032
SELECT ALL - col1 + col1 DIV + col1 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL - col1 + col1 / + col1 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT cor0.col2 + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 > NULL OR NULL >= col2 + col1
----

query I rowsort
SELECT DISTINCT tab0.col2 * - col2 AS col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT col2 + col2 * col0 * - col2 FROM tab0
----
-26103
-34
-598354

query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col1 * + col2 * + col0 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT col2 * tab0.col0 - - col1 AS col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL + - col1 - col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - - col2 * + col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL col0 + - tab1.col2 + col1 FROM tab1
----
-25
-3
17

query I rowsort
SELECT - 69 + 93 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3042
SELECT DISTINCT + col0 + CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
137
38
96

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT + col0 + CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT col1 * ( - col1 ) + + 77 - - 57 * col1 FROM tab0 AS cor0
----
-2417
-3017
-3803

query I rowsort
SELECT ALL col1 * col0 + 97 + col2 * ( col1 + - col1 ) FROM tab2
----
1440
314
4699

query I rowsort
SELECT ALL col1 + + ( 43 ) * - col2 * col2 FROM tab0
----
-289041
-46741
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 35 col0 FROM tab0 cor0
----
3010
3185
3395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 27 col0 FROM tab2 cor0
----
-1026
-702
-729

query I rowsort
SELECT DISTINCT col1 * col0 + tab2.col1 AS col0 FROM tab2
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col2 + tab0.col2 ) col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f5a900b2f94b2c0349974e7b95e705a8

query I rowsort
SELECT ALL + col1 + - 26 AS col0 FROM tab2 AS cor0
----
-9
33
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3051
SELECT CAST( col0 AS SIGNED ) - + col2 AS col1 FROM tab0 cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-3051
SELECT CAST ( col0 AS INTEGER ) - + col2 AS col1 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - col0 * col2 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL - + 47 * - col1 AS col0 FROM tab0 AS cor0
----
4042
4277
4559

query I rowsort
SELECT DISTINCT - + 24 * + 64 * - cor0.col0 - col0 * ( - col0 ) FROM tab2 AS cor0
----
10801
125892
127585

query I rowsort
SELECT - - cor0.col0 + cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL ( + col2 ) * + cor0.col0 FROM tab0 AS cor0
----
35
7298
792

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f

query I rowsort
SELECT + - col2 * + cor0.col1 + - col1 * ( col2 ) AS col0 FROM tab2 AS cor0
----
-1292
-1674
-3068

query I rowsort
SELECT + ( col1 ) - col1 * - 10 FROM tab2 AS cor0
----
187
341
649

onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT + + ( cor0.col1 ) * col0 + - ( + 31 + col2 ) DIV col0 FROM tab2 AS cor0
----
1343
209
4602

skipif mysql # not compatible
query I rowsort label-3060
SELECT + + ( cor0.col1 ) * col0 + - ( + 31 + col2 ) / col0 FROM tab2 AS cor0
----
1343
209
4602

query I rowsort
SELECT ( - 27 ) AS col1 FROM tab2 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT + col2 + col0 + - col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3063
SELECT DISTINCT + ( + cor0.col1 ) DIV + col1 AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3063
SELECT DISTINCT + ( + cor0.col1 ) / + col1 AS col2 FROM tab1 cor0
----
1

query I rowsort
SELECT DISTINCT 4 AS col0 FROM tab1 AS cor0
----
4

query I rowsort
SELECT col0 * col1 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + - col0 col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - - 0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * - col0 * ( col1 ) FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT + 25 AS col0 FROM tab1, tab2 AS cor0
----
25

query I rowsort
SELECT + col2 + col0 * ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-3071
SELECT + col2 + cor0.col2 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3071
SELECT + col2 + cor0.col2 / col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col0 + + col2 * 23 FROM tab2
----
628
676
953

query I rowsort
SELECT + tab2.col2 FROM tab2, tab1 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT col0 * ( - 16 ) AS col1 FROM tab0 cor0
----
-1424
-384
-560

query I rowsort
SELECT cor0.col0 * 59 AS col2 FROM tab0 AS cor0
----
1416
2065
5251

query I rowsort
SELECT ALL cor0.col2 + 29 * col1 AS col2 FROM tab0 AS cor0
----
2527
2721
2814

onlyif mysql # use DIV operator for integer division
query I rowsort label-3078
SELECT DISTINCT + cor0.col2 DIV col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT + cor0.col2 / col2 FROM tab0 cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3079
SELECT + col1 + 80 DIV - col1 AS col0 FROM tab1 AS cor0
----
2
23
7

skipif mysql # not compatible
query I rowsort label-3079
SELECT + col1 + 80 / - col1 AS col0 FROM tab1 AS cor0
----
2
23
7

query I rowsort
SELECT + + col1 + + 18 AS col2 FROM tab1 AS cor0
----
28
31
44

query I rowsort
SELECT DISTINCT 20 * col0 + + col1 * - col2 + col1 FROM tab1 AS cor0
----
-1318
365
720

query I rowsort
SELECT ALL - col2 * 61 AS col0 FROM tab1 AS cor0
----
-3294
-3477
-5856

query I rowsort
SELECT - 48 FROM tab1, tab1 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT ALL - 89 * col1 FROM tab1 AS cor0
----
-1157
-2314
-890

query I rowsort
SELECT 61 * + cor0.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 549898816cae2e868cfcf2407ea21c95

query I rowsort
SELECT ALL + cor0.col2 * - 19 FROM tab1, tab1 cor0
----
9 values hashing to cb9bf66e6728e11c30ab219590f1042d

query I rowsort
SELECT + col2 * + col2 * col1 + 1 AS col1 FROM tab0 AS cor0
----
611885
93655
98

query I rowsort
SELECT - + col0 * col0 + col1 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT - col0 * + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT DISTINCT - 35 FROM tab0, tab2 AS cor0
----
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-3091
SELECT ALL - 61 DIV + col0 col0 FROM tab2
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL - 61 / + col0 col0 FROM tab2
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col2 FROM tab2
----
-72

query I rowsort
SELECT + col2 * - col0 AS col1 FROM tab0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3094
SELECT + ( col0 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3094
SELECT + ( col0 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * col0 + 98 FROM tab2 AS cor0
----
-1930
-2904
-91

query I rowsort
SELECT DISTINCT cor0.col1 + + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + + col0 * - col2 + + col1 * 86 AS col0 FROM tab2 AS cor0
----
-1540
2477
3046

query I rowsort
SELECT DISTINCT - + ( col1 ) + col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + cor0.col2 * + col2 + col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT - - col0 + col1 + - 8 * - 17 FROM tab0 cor0
----
246
268
316

query I rowsort
SELECT + 48 + + col0 AS col2 FROM tab2 AS cor0
----
126
127
55

query I rowsort
SELECT DISTINCT - col1 * + col1 + + col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL + - col2 * - col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
24
35
89

query I rowsort
SELECT ALL + + 63 + + col1 AS col2 FROM tab0 AS cor0
----
149
154
160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3106
SELECT ALL CAST( col1 + col2 AS SIGNED ) * + col1 FROM tab2
----
1798
5015
935

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL CAST ( col1 + col2 AS INTEGER ) * + col1 FROM tab2
----
1798
5015
935

query I rowsort
SELECT ALL - col0 * - col0 + - col0 FROM tab0
----
1190
552
7832

query I rowsort
SELECT ALL ( col2 * - col0 ) FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - 97 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT + tab0.col0 AS col1 FROM tab0, tab2, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT 80 - col1 FROM tab2
----
21
49
63

query I rowsort
SELECT - col1 * tab2.col1 * 4 FROM tab2
----
-1156
-13924
-3844

query I rowsort
SELECT ALL 61 + - col1 AS col1 FROM tab1
----
35
48
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3114
SELECT DISTINCT + col0 * + CAST( + col0 * + col2 AS SIGNED ) AS col0 FROM tab0
----
1225
19008
649522

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT + col0 * + CAST ( + col0 * + col2 AS INTEGER ) AS col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT - + ( - col0 ) FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT 80 * + cor0.col1 FROM tab1 AS cor0
----
1040
2080
800

query I rowsort
SELECT + + col0 + 71 AS col2 FROM tab1 AS cor0
----
135
151
74

query I rowsort
SELECT 6 FROM tab0, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3119
SELECT col2 - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * ( col0 ) AS col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT + col2 * ( + cor0.col0 ) FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3122
SELECT CAST( 75 AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

skipif mysql # not compatible
query I rowsort label-3122
SELECT CAST ( 75 AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT + col2 + + 33 FROM tab1
----
129
87
90

query I rowsort
SELECT DISTINCT - 25 * 33 - - col0 * + 40 FROM tab2
----
-545
2295
2335

query I rowsort
SELECT cor0.col2 + 11 FROM tab2 AS cor0
----
37
38
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-3126
SELECT col1 - ( col1 ) DIV col0 FROM tab2
----
17
27
59

skipif mysql # not compatible
query I rowsort label-3126
SELECT col1 - ( col1 ) / col0 FROM tab2
----
17
27
59

query I rowsort
SELECT + 40 * - 97 + col2 AS col2 FROM tab1
----
-3784
-3823
-3826

query I rowsort
SELECT ALL + ( col2 ) * + col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL + 20 * col0 + col0 AS col0 FROM tab0 AS cor0
----
1869
504
735

query I rowsort
SELECT ALL + ( col1 ) + col0 * ( + col2 * + col0 ) FROM tab2 AS cor0
----
1354
158243
237175

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3131
SELECT - - CAST( - cor0.col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-3131
SELECT - - CAST ( - cor0.col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT col2 * cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL + ( - col0 + tab0.col0 ) FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col2 * ( col0 + 82 ) FROM tab2
----
2403
4160
6118

query I rowsort
SELECT col0 * + 6 + tab1.col0 AS col2 FROM tab1
----
21
448
560

query I rowsort
SELECT - tab1.col1 + - 81 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 45e11188d812ed17de3d37f5163e6662

query I rowsort
SELECT ALL - - 86 + - col2 * col1 FROM tab2 AS cor0
----
-1448
-560
-751

query I rowsort
SELECT DISTINCT + 67 * - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-1156
-2108
-4012

query I rowsort
SELECT - col0 * ( - cor0.col0 ) FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - - cor0.col2 * - ( - col0 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + 51 FROM tab0, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT cor0.col0 * col2 - col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL col0 + col0 * col0 + 96 * col0 FROM tab1 AS cor0
----
10304
14160
300

query I rowsort
SELECT DISTINCT - - col0 * - col0 - + col0 FROM tab1 AS cor0
----
-12
-4160
-6480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3145
SELECT col2 * col2 * + CAST( - col1 AS SIGNED ) - + col2 FROM tab1 AS cor0
----
-119904
-32547
-75870

skipif mysql # not compatible
query I rowsort label-3145
SELECT col2 * col2 * + CAST ( - col1 AS INTEGER ) - + col2 FROM tab1 AS cor0
----
-119904
-32547
-75870

query I rowsort
SELECT DISTINCT + col1 + + col2 * 6 FROM tab0 AS cor0
----
103
284
583

query I rowsort
SELECT DISTINCT - 35 * col0 FROM tab1 AS cor0
----
-105
-2240
-2800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3148
SELECT + col0 * - col2 + col1 * 5 + + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT + col0 * - col2 + col1 * 5 + + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 96 AS col2 FROM tab1 cor0
----
96

query I rowsort
SELECT + + col1 + - cor0.col2 + col2 AS col0 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT - 83 + - col1 * 67 AS col2 FROM tab2 AS cor0
----
-1222
-2160
-4036

onlyif mysql # use DIV operator for integer division
query I rowsort label-3152
SELECT ( 18 * tab2.col0 ) - + 89 * col1 DIV + col0 FROM tab2
----
-268
1337
1403

skipif mysql # not compatible
query I rowsort label-3152
SELECT ( 18 * tab2.col0 ) - + 89 * col1 / + col0 FROM tab2
----
-268
1337
1403

onlyif mysql # use DIV operator for integer division
query I rowsort label-3153
SELECT ( 37 ) * tab1.col1 DIV + 94 - + col0 FROM tab1
----
-61
-75
7

skipif mysql # not compatible
query I rowsort label-3153
SELECT ( 37 ) * tab1.col1 / + 94 - + col0 FROM tab1
----
-61
-75
7

query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab1, tab1 AS cor0
----
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-3155
SELECT DISTINCT ( - tab2.col1 ) DIV + col0 FROM tab2
----
-4
0

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT ( - tab2.col1 ) / + col0 FROM tab2
----
-4
0

query I rowsort
SELECT DISTINCT - col2 * + col2 * 87 AS col0 FROM tab2 AS cor0
----
-125628
-58812
-63423

query I rowsort
SELECT DISTINCT 67 * col2 FROM tab0 AS cor0
----
2211
5494
67

query I rowsort
SELECT - ( cor0.col2 ) + col2 * cor0.col2 FROM tab0 cor0
----
0
1056
6642

query I rowsort
SELECT - - col1 * + col0 * - 35 AS col2 FROM tab2 AS cor0
----
-161070
-47005
-7595

query I rowsort
SELECT ALL + ( col1 ) * ( cor0.col1 ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + - col2 * col0 + col2 + + cor0.col1 * 5 AS col1 FROM tab2 cor0
----
-1707
-2879
-7

query I rowsort
SELECT col1 * ( + col2 ) AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT + col1 + + 76 + cor0.col0 * + col2 * - ( + 0 ) AS col0 FROM tab2 AS cor0
----
107
135
93

query I rowsort
SELECT ALL + col0 + ( - col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col1 * 71 + col2 FROM tab2 AS cor0
----
-1169
-2174
-4163

query I rowsort
SELECT DISTINCT + col0 + + ( col0 ) * - col0 + col2 FROM tab2 AS cor0
----
-15
-5980
-6124

query I rowsort
SELECT DISTINCT col1 + + cor0.col0 * col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT col0 * 49 + 67 FROM tab1 AS cor0
----
214
3203
3987

query I rowsort
SELECT ALL col1 + + ( + 67 ) AS col1 FROM tab2 AS cor0
----
126
84
98

query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col1 * + 54 AS col1 FROM tab2 AS cor0
----
1674
3186
918

query I rowsort
SELECT ALL - col2 * + 40 * - col1 + - col2 + 37 AS col0 FROM tab0 AS cor0
----
113524
298435
3916

query I rowsort
SELECT + col0 * 95 + col2 AS col0 FROM tab0 AS cor0
----
2313
3326
8537

query I rowsort
SELECT + col1 * + 88 FROM tab1 AS cor0
----
1144
2288
880

query I rowsort
SELECT ALL + col1 * - 22 * + col2 AS col2 FROM tab0 AS cor0
----
-164164
-2134
-62436

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 90e25bbdedfdeba1119139dab203aeea

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 * + col0 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3180
SELECT - - CAST( - col2 AS SIGNED ) + - col0 * 85 FROM tab1 AS cor0
----
-309
-5497
-6896

skipif mysql # not compatible
query I rowsort label-3180
SELECT - - CAST ( - col2 AS INTEGER ) + - col0 * 85 FROM tab1 AS cor0
----
-309
-5497
-6896

query I rowsort
SELECT ALL - - 72 + + col1 FROM tab0 AS cor0
----
158
163
169

query I rowsort
SELECT 43 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT DISTINCT + 44 FROM tab0 cor0 CROSS JOIN tab0, tab2 cor1, tab1 AS cor2
----
44

query I rowsort
SELECT + col0 * 70 * - 16 AS col0 FROM tab2 cor0
----
-7840
-87360
-88480

query I rowsort
SELECT - col0 + ( col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + col1 * + col2 * col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT - 72 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888

query I rowsort
SELECT ALL + ( + col0 ) * - 70 FROM tab2
----
-490
-5460
-5530

query I rowsort
SELECT ALL col2 * + tab0.col2 * - ( tab0.col0 ) FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT + - 64 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 100c625e45715c20368551989514ba64

query I rowsort
SELECT + ( col1 ) AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT col0 * 85 - cor0.col1 FROM tab2 AS cor0
----
564
6571
6698

query I rowsort
SELECT ALL col2 * 91 AS col2 FROM tab0 AS cor0
----
3003
7462
91

query I rowsort
SELECT - - col0 * - 13 AS col2 FROM tab0 AS cor0
----
-1157
-312
-455

query I rowsort
SELECT ALL cor0.col2 + + 54 FROM tab0 AS cor0
----
136
55
87

query I rowsort
SELECT tab0.col0 / col0 AS col1 FROM tab0 WHERE NOT NULL IN ( - col2 )
----

query I rowsort
SELECT ALL + col0 + + col2 * col2 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT + col1 * + col0 * col2 FROM tab0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 + - col1 col2 FROM tab2
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-3200
SELECT ALL + tab2.col1 + + col0 DIV + col1 AS col0 FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL + tab2.col1 + + col0 / + col1 AS col0 FROM tab2
----
21
31
60

query I rowsort
SELECT DISTINCT - tab1.col1 * col1 AS col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT col0 + + col0 * - col2 * col0 FROM tab0
----
-1190
-18984
-649433

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT + col0 <> NULL
----

query I rowsort
SELECT ALL col0 + col2 * col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT col1 + + col2 * tab0.col2 AS col0 FROM tab0
----
1175
6815
98

query I rowsort
SELECT ALL + + cor0.col0 - cor0.col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL + col1 + col2 + col1 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT ALL col0 * col2 * 69 FROM tab2
----
13041
139932
207138

query I rowsort
SELECT cor0.col2 * cor0.col0 + ( + col2 ) FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT col2 + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT 94 * col0 FROM tab1 AS cor0
----
282
6016
7520

query I rowsort
SELECT + cor1.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT 88 * col1 + col2 FROM tab0
----
7601
8090
8537

query I rowsort
SELECT + 0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - 6 + - col1 + 53 * col2 FROM tab1 AS cor0
----
2830
3005
5069

onlyif mysql # use DIV operator for integer division
query I rowsort label-3216
SELECT 76 * + col0 + - 84 * col2 DIV + col2 FROM tab1 AS cor0
----
144
4780
5996

skipif mysql # not compatible
query I rowsort label-3216
SELECT 76 * + col0 + - 84 * col2 / + col2 FROM tab1 AS cor0
----
144
4780
5996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col0 col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT 71 + col2 AS col1 FROM tab0 cor0
----
104
153
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3219
SELECT + + col2 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT + + col2 * - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + cor0.col0 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT col2 * - 96 FROM tab1 AS cor0
----
-5184
-5472
-9216

query I rowsort
SELECT - + col2 + cor0.col0 + - col1 FROM tab0 AS cor0
----
-63
-84
-95

query I rowsort
SELECT + 44 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # use DIV operator for integer division
query I rowsort label-3224
SELECT + 73 * col1 DIV - col0 + - col1 + + 98 col2 FROM tab0 AS cor0
----
-201
-249
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3224
SELECT + 73 * col1 / - col0 + - col1 + + 98 col2 FROM tab0 AS cor0
----
-201
-249
-67

query I rowsort
SELECT + 26 + + col1 FROM tab2 AS cor0
----
43
57
85

query I rowsort
SELECT - + 31 AS col2 FROM tab0 AS cor0
----
-31
-31
-31

onlyif mysql # use DIV operator for integer division
query I rowsort label-3227
SELECT - cor0.col1 DIV 1 + + cor0.col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3227
SELECT - cor0.col1 / 1 + + cor0.col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3228
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3228
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 + - tab2.col0 + 84 FROM tab2
----
108
22
65

query I rowsort
SELECT - col1 * + 42 + col2 AS col1 FROM tab0 AS cor0
----
-3579
-3740
-4073

query I rowsort
SELECT 86 + - 36 AS col2 FROM tab1
----
50
50
50

query I rowsort
SELECT - 46 * col2 FROM tab0
----
-1518
-3772
-46

query I rowsort
SELECT ALL - 39 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3234
SELECT - col1 + CAST( - col2 AS SIGNED ) * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

skipif mysql # not compatible
query I rowsort label-3234
SELECT - col1 + CAST ( - col2 AS INTEGER ) * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3235
SELECT ALL col0 DIV - 53 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL col0 / - 53 AS col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL + cor0.col1 + + col1 AS col1 FROM tab1 cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3237
SELECT + - col0 DIV - ( + 98 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3237
SELECT + - col0 / - ( + 98 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col0 + ( ( col2 ) ) * - col1 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT col1 * 80 AS col2 FROM tab0 AS cor0
----
6880
7280
7760

query I rowsort
SELECT ALL col1 * ( col1 ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT col1 * - 20 AS col1 FROM tab1 AS cor0
----
-200
-260
-520

query I rowsort
SELECT col1 * 71 FROM tab1 AS cor0
----
1846
710
923

query I rowsort
SELECT DISTINCT - col2 * + ( col0 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 20 col0 FROM tab1 AS cor0
----
-200
-260
-520

query I rowsort
SELECT - + 92 + col2 AS col0 FROM tab1 cor0
----
-35
-38
4

query I rowsort
SELECT ALL - ( 16 ) AS col2 FROM tab1 AS cor0
----
-16
-16
-16

onlyif mysql # use DIV operator for integer division
query I rowsort label-3247
SELECT DISTINCT + col0 DIV cor0.col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT + col0 / cor0.col0 FROM tab0 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3248
SELECT ALL col1 DIV col1 - col2 AS col0 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL col1 / col1 - col2 AS col0 FROM tab1
----
-53
-56
-95

query I rowsort
SELECT ALL ( 74 * - tab2.col1 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 2b7bc85997ae687f3c8138ae97659079

query I rowsort
SELECT DISTINCT 6 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
6

query I rowsort
SELECT DISTINCT + 98 FROM tab1, tab0 cor0
----
98

query I rowsort
SELECT + col2 + + 67 * col2 AS col1 FROM tab1
----
3672
3876
6528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3253
SELECT - CAST( NULL AS SIGNED ) + + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT - CAST ( NULL AS INTEGER ) + + col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 85 + + col2 - - col1 AS col2 FROM tab1 AS cor0
----
-18
-5
24

query I rowsort
SELECT DISTINCT - + cor0.col1 * 60 AS col0 FROM tab2 AS cor0
----
-1020
-1860
-3540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 48 col1 FROM tab0 AS cor0
----
-41
13
24

query I rowsort
SELECT ALL - cor0.col0 - + col2 * - ( col1 * col1 ) FROM tab1 AS cor0
----
16144
36501
5636

query I rowsort
SELECT ALL col1 - + col1 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + 57 * col2 FROM tab1 AS cor0
----
3078
3249
5472

query I rowsort
SELECT ALL 33 + - col0 AS col1 FROM tab1 AS cor0
----
-31
-47
30

query I rowsort
SELECT ALL - 70 + + col1 + col1 AS col2 FROM tab1 AS cor0
----
-18
-44
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-3262
SELECT ALL - + col0 DIV 45 col1 FROM tab0 cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL - + col0 / 45 col1 FROM tab0 cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3263
SELECT DISTINCT + cor0.col2 * - CAST( NULL AS SIGNED ) + + col1 col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT + cor0.col2 * - CAST ( NULL AS INTEGER ) + + col1 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 * + ( col0 ) AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3265
SELECT DISTINCT col2 * CAST( - col1 AS SIGNED ) + - col0 * cor0.col2 FROM tab1 AS cor0
----
-1566
-4218
-8928

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT col2 * CAST ( - col1 AS INTEGER ) + - col0 * cor0.col2 FROM tab1 AS cor0
----
-1566
-4218
-8928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 + - col2 col2 FROM tab2
----
-17
-5
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3267
SELECT + 22 DIV col0 + col1 FROM tab1
----
10
13
33

skipif mysql # not compatible
query I rowsort label-3267
SELECT + 22 / col0 + col1 FROM tab1
----
10
13
33

query I rowsort
SELECT 4 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT - col2 * + col2 - + tab1.col0 FROM tab1
----
-2919
-3313
-9296

query I rowsort
SELECT 33 * + tab0.col1 + - col0 AS col0 FROM tab0
----
2814
2914
3166

query I rowsort
SELECT - cor0.col1 * + col0 + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-15397
-2856
-3430

query I rowsort
SELECT DISTINCT - + col1 - 26 AS col0 FROM tab0 AS cor0
----
-112
-117
-123

query I rowsort
SELECT DISTINCT - col0 * - 89 + - 31 FROM tab2 AS cor0
----
592
6911
7000

query I rowsort
SELECT DISTINCT + col0 + ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - col0 - cor0.col2 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT ( - 48 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3277
SELECT ALL - col2 DIV + 4 AS col2 FROM tab1
----
-13
-14
-24

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL - col2 / + 4 AS col2 FROM tab1
----
-13
-14
-24

query I rowsort
SELECT ALL + col0 * cor0.col1 + col1 * + cor0.col0 AS col2 FROM tab0 cor0
----
16198
4128
6790

query I rowsort
SELECT ALL + col0 - - 19 * + col1 AS col0 FROM tab2 AS cor0
----
1199
402
596

query I rowsort
SELECT DISTINCT + - col0 + 0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL ( - col2 * + col0 ) + tab0.col1 + tab0.col1 AS col1 FROM tab0
----
-620
-7116
159

query I rowsort
SELECT col0 * 12 FROM tab2
----
84
936
948

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3283
SELECT - CAST( NULL AS DECIMAL ) * 89 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3283
SELECT - CAST ( NULL AS REAL ) * 89 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 26 + - col2 * - ( - col0 ) * - col1 FROM tab0 AS cor0
----
3421
664144
68138

query I rowsort
SELECT - 6 * col2 FROM tab0
----
-198
-492
-6

query I rowsort
SELECT DISTINCT 7 FROM tab1 AS cor0
----
7

query I rowsort
SELECT ALL + tab2.col0 * 87 + col0 AS col2 FROM tab2
----
616
6864
6952

query I rowsort
SELECT ALL + 69 * cor0.col1 FROM tab0 cor0
----
5934
6279
6693

query I rowsort
SELECT + + 20 + - col1 FROM tab1 AS cor0
----
-6
10
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3290
SELECT col2 + + col2 DIV + col1 AS col2 FROM tab2 cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-3290
SELECT col2 + + col2 / + col1 AS col2 FROM tab2 cor0
----
26
27
40

query I rowsort
SELECT DISTINCT + - 82 + col1 * + ( - cor0.col0 ) - col1 AS col1 FROM tab2 AS cor0
----
-1442
-330
-4743

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3292
SELECT ALL - 78 / + col2 + CAST( NULL AS SIGNED ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL - 78 / + col2 + CAST ( NULL AS INTEGER ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 86 + col2 FROM tab2 cor0
----
-48
-59
-60

query I rowsort
SELECT DISTINCT + + 71 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1207
2201
4189

query I rowsort
SELECT DISTINCT col2 * - col2 + - ( + ( col2 ) ) FROM tab1 AS cor0
----
-2970
-3306
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-3296
SELECT ALL + cor0.col0 DIV col0 - ( ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL + cor0.col0 / col0 - ( ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT + 76 * - col0 AS col0 FROM tab2 AS cor0
----
-532
-5928
-6004

query I rowsort
SELECT DISTINCT - 42 * col1 FROM tab1 cor0
----
-1092
-420
-546

query I rowsort
SELECT - 99 * cor0.col0 + col0 FROM tab0 AS cor0
----
-2352
-3430
-8722

query I rowsort
SELECT DISTINCT + - cor0.col0 + - col1 * - col2 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT ALL + - col2 * - cor0.col2 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 - col0 col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT col2 + - col0 * col1 * + col0 FROM tab1 AS cor0
----
-180
-40903
-83104

query I rowsort
SELECT ALL + 62 AS col1 FROM tab1
----
62
62
62

query I rowsort
SELECT ALL - - col1 * + col0 + + col1 * ( + col2 ) FROM tab2 cor0
----
1054
1989
6136

query I rowsort
SELECT - col0 * - ( cor0.col1 ) + + col0 * - 92 + col0 AS col0 FROM tab0 AS cor0
----
-120
0
210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 + col1 + col2 col2 FROM tab1 AS cor0
----
138
151
180

query I rowsort
SELECT ALL 46 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT - 61 + - 4 FROM tab0 AS cor0
----
-65
-65
-65

query I rowsort
SELECT + + cor0.col2 + 17 * col1 FROM tab1 AS cor0
----
227
317
496

onlyif mysql # use DIV operator for integer division
query I rowsort label-3311
SELECT + col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3311
SELECT + col0 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - + 80 + - col1 AS col1 FROM tab2 AS cor0
----
-111
-139
-97

query I rowsort
SELECT + ( 36 + - col2 * col1 ) AS col2 FROM tab0
----
-2802
-61
-7426

query I rowsort
SELECT col1 + ( + ( col2 ) ) AS col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + col2 + - col1 AS col2 FROM tab1 cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + + col1 * 90 col1 FROM tab0 cor0
----
7826
8281
8827

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3317
SELECT + + col0 + CAST( 69 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-3723
-3869
-6544

skipif mysql # not compatible
query I rowsort label-3317
SELECT + + col0 + CAST ( 69 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-3723
-3869
-6544

skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 + tab1.col2 * + CAST ( col0 AS REAL ) FROM tab1
----
159
3584
7600

query I rowsort
SELECT - + cor0.col1 + ( + 93 ) * cor0.col1 FROM tab2 AS cor0
----
1564
2852
5428

query I rowsort
SELECT ALL - cor0.col1 * + cor0.col0 + - tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ef2992c4b03d2b4865cc708daf51e9c7

query I rowsort
SELECT ALL - 63 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT - col0 + + 15 * col2 + col2 * 3 FROM tab2
----
390
479
605

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3323
SELECT DISTINCT + col2 + CAST( 83 AS SIGNED ) FROM tab2 AS cor0
----
109
110
121

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT + col2 + CAST ( 83 AS INTEGER ) FROM tab2 AS cor0
----
109
110
121

query I rowsort
SELECT DISTINCT + cor0.col1 * - 57 FROM tab0 AS cor0
----
-4902
-5187
-5529

query I rowsort
SELECT - + col1 * - 12 + + col1 * col0 * + col1 AS col1 FROM tab1 cor0
----
13676
2340
6520

query I rowsort
SELECT DISTINCT col0 * + col1 + col2 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT ALL - col2 - + ( 63 ) AS col1 FROM tab0 AS cor0
----
-145
-64
-96

query I rowsort
SELECT tab0.col1 * 11 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to a2e7ea6fb249573ca21cb56d28d49e82

query I rowsort
SELECT ALL - ( 19 ) * - col2 FROM tab0 AS cor0
----
1558
19
627

query I rowsort
SELECT DISTINCT 6 FROM tab2, tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT + + col2 + ( cor0.col1 ) * col2 FROM tab2 AS cor0
----
1560
684
864

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) + cor0.col1 AS col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - col1 * - 1 AS col0 FROM tab0 cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 55 + col2 col2 FROM tab0 AS cor0
----
1353
1926
4977

query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab1 AS cor0
----
56

query I rowsort
SELECT ALL 84 * - col2 AS col2 FROM tab2 AS cor0
----
-2184
-2268
-3192

query I rowsort
SELECT tab1.col1 + + col1 * + 59 * col0 + col2 FROM tab1
----
37827
4682
61469

query I rowsort
SELECT ALL col2 - col2 * tab2.col0 FROM tab2
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-3339
SELECT tab1.col1 DIV + 45 col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3339
SELECT tab1.col1 / + 45 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - 27 - + 8 FROM tab0 AS cor0
----
-35
-35
-35

query I rowsort
SELECT - cor0.col0 * + 94 + col2 * - col0 * - col1 AS col2 FROM tab1 AS cor0
----
30464
3930
92320

query I rowsort
SELECT ( 78 ) * col0 + + 89 AS col1 FROM tab1 AS cor0
----
323
5081
6329

query I rowsort
SELECT + + 35 AS col0 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT - 57 + - cor0.col1 * tab2.col1 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 577f05716dc1f06bc34387dc8b668521

query I rowsort
SELECT - col1 + + col2 * + 55 FROM tab0 AS cor0
----
-42
1729
4419

query I rowsort
SELECT 61 * col1 * col1 FROM tab2 AS cor0
----
17629
212341
58621

query I rowsort
SELECT + 18 + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0e3cfb5fb07064ef049b0e928ddc26d1

query I rowsort
SELECT - - 58 * - col1 FROM tab0 AS cor0
----
-4988
-5278
-5626

query I rowsort
SELECT col1 + - cor0.col2 * 1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT cor0.col1 + 37 FROM tab0 AS cor0
----
123
128
134

onlyif mysql # use DIV operator for integer division
query I rowsort label-3351
SELECT DISTINCT - col0 - - col0 DIV - 13 FROM tab1
----
-3
-68
-86

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT - col0 - - col0 / - 13 FROM tab1
----
-3
-68
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + col2 col0 FROM tab2 cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3353
SELECT ALL col0 + 68 DIV + 46 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL col0 + 68 / + 46 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT ALL + 53 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3355
SELECT + col0 * + 17 + col2 DIV 82 + - col1 FROM tab2 AS cor0
----
1267
1326
88

skipif mysql # not compatible
query I rowsort label-3355
SELECT + col0 * + 17 + col2 / 82 + - col1 FROM tab2 AS cor0
----
1267
1326
88

query I rowsort
SELECT DISTINCT + - 20 * col1 * - col2 AS col2 FROM tab2 AS cor0
----
12920
16740
30680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 * - tab2.col0 col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT 23 * + col2 FROM tab2 cor0
----
598
621
874

onlyif mysql # use DIV operator for integer division
query I rowsort label-3359
SELECT ALL + cor0.col0 DIV col1 - - cor0.col1 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL + cor0.col0 / col1 - - cor0.col1 FROM tab1 AS cor0
----
16
19
26

query I rowsort
SELECT ALL col2 * - col2 + + col2 * + col2 - col1 * 97 FROM tab2 cor0
----
-1649
-3007
-5723

query I rowsort
SELECT DISTINCT ( - 34 ) AS col1 FROM tab1, tab0 cor0, tab0 cor1
----
-34

query I rowsort
SELECT + col2 * col1 * ( + col2 ) FROM tab2 cor0
----
22599
24548
39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3363
SELECT DISTINCT + col0 + - col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3363
SELECT DISTINCT + col0 + - col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 98 * col2 AS col0 FROM tab2 AS cor0
----
2548
2646
3724

query I rowsort
SELECT - + ( col1 ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col2 + 46 AS col1 FROM tab0
----
-36
13
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3367
SELECT + + col2 * + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-3367
SELECT + + col2 * + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - cor0.col0 * + 70 + + col2 * col0 + col2 FROM tab1 AS cor0
----
-775
2176
6

query I rowsort
SELECT col1 * - col1 * - col1 AS col1 FROM tab0 cor0
----
636056
753571
912673

query I rowsort
SELECT ALL + col2 * ( - 88 ) + + tab2.col2 FROM tab2
----
-2262
-2349
-3306

query I rowsort
SELECT DISTINCT + col2 + - ( - col1 ) AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT + col2 * col2 * + col2 FROM tab0
----
1
35937
551368

query I rowsort
SELECT col1 * + 39 FROM tab1
----
1014
390
507

query I rowsort
SELECT tab1.col0 * + 32 + tab1.col0 FROM tab1
----
2112
2640
99

query I rowsort
SELECT ALL - cor0.col1 * 36 AS col0 FROM tab1 AS cor0
----
-360
-468
-936

query I rowsort
SELECT DISTINCT col2 * col1 + - col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT - + col2 * - 11 FROM tab0 AS cor0
----
11
363
902

onlyif mysql # use DIV operator for integer division
query I rowsort label-3378
SELECT ALL col0 + + col0 DIV + 41 col1 FROM tab0 cor0
----
24
35
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL col0 + + col0 / + 41 col1 FROM tab0 cor0
----
24
35
91

query I rowsort
SELECT + col0 + - 75 AS col0 FROM tab2 AS cor0
----
-68
3
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 * + col0 col0 FROM tab1 AS cor0
----
-114
-2432
-3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 88 + 70 col1 FROM tab2 AS cor0
----
158
158
158

query I rowsort
SELECT DISTINCT + + 50 FROM tab2 cor0
----
50

query I rowsort
SELECT DISTINCT - col1 + col2 * col1 * - col2 AS col1 FROM tab2 AS cor0
----
-22630
-24565
-39943

query I rowsort
SELECT - 13 + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-175
-3661
-7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3385
SELECT - CAST( - 18 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
468
486
684

skipif mysql # not compatible
query I rowsort label-3385
SELECT - CAST ( - 18 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
468
486
684

onlyif mysql # use DIV operator for integer division
query I rowsort label-3386
SELECT DISTINCT + - col1 DIV 83 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT + - col1 / 83 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - col0 + + col0 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL - - ( col1 ) * + col1 + 36 * + 17 AS col1 FROM tab2 AS cor0
----
1573
4093
901

query I rowsort
SELECT ( + cor0.col2 ) * - cor0.col2 * ( + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-119808
-32490
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-3390
SELECT DISTINCT + col2 DIV col0 + col0 DIV 51 AS col2 FROM tab1 AS cor0
----
1
18
2

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT + col2 / col0 + col0 / 51 AS col2 FROM tab1 AS cor0
----
1
18
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3391
SELECT ALL tab1.col1 DIV - ( - 39 + col1 ) AS col0 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL tab1.col1 / - ( - 39 + col1 ) AS col0 FROM tab1
----
0
0
2

query I rowsort
SELECT ALL col1 + ( col1 * - col2 ) + + col1 AS col1 FROM tab1
----
-1222
-1352
-550

query I rowsort
SELECT ALL col0 + + col1 * + col0 AS col2 FROM tab1
----
1120
704
81

query I rowsort
SELECT col1 + ( + col2 ) AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL - tab1.col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT + col2 + col0 * + col2 * col2 + col1 FROM tab1 AS cor0
----
208003
737389
8828

query I rowsort
SELECT DISTINCT + + ( - col1 ) * cor0.col0 * - 96 FROM tab2 AS cor0
----
128928
20832
441792

query I rowsort
SELECT col1 + + col0 * + col0 * - 14 FROM tab0 AS cor0
----
-110803
-17053
-7978

query I rowsort
SELECT - ( - col1 ) * + col1 + - 93 FROM tab1 cor0
----
583
7
76

query I rowsort
SELECT DISTINCT - + 85 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT DISTINCT + col0 * ( + cor0.col1 ) + 22 FROM tab1 AS cor0
----
100
1062
662

query I rowsort
SELECT ALL - col1 + 12 FROM tab1
----
-1
-14
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3403
SELECT tab0.col1 - - CAST( col0 AS SIGNED ) * col0 AS col2 FROM tab0
----
1322
662
8012

skipif mysql # not compatible
query I rowsort label-3403
SELECT tab0.col1 - - CAST ( col0 AS INTEGER ) * col0 AS col2 FROM tab0
----
1322
662
8012

query I rowsort
SELECT ALL 5 * + 13 + - col1 * col0 FROM tab1 cor0
----
-13
-575
-975

query I rowsort
SELECT ALL - ( + 48 ) + - col0 FROM tab1 AS cor0
----
-112
-128
-51

onlyif mysql # use DIV operator for integer division
query I rowsort label-3406
SELECT ALL tab1.col2 + 45 DIV col1 AS col0 FROM tab1
----
55
61
99

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL tab1.col2 + 45 / col1 AS col0 FROM tab1
----
55
61
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 + 75 col1 FROM tab0
----
107
107
107

query I rowsort
SELECT DISTINCT - col0 * ( col2 * tab2.col0 ) + 40 + col2 FROM tab2
----
-1256
-158118
-237080

query I rowsort
SELECT DISTINCT - 26 AS col2 FROM tab2
----
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3410
SELECT + 66 DIV - col1 + + col2 AS col2 FROM tab1
----
51
52
91

skipif mysql # not compatible
query I rowsort label-3410
SELECT + 66 / - col1 + + col2 AS col2 FROM tab1
----
51
52
91

query I rowsort
SELECT - col1 * + col1 * - 18 AS col1 FROM tab0 AS cor0
----
133128
149058
169362

query I rowsort
SELECT + cor0.col2 * 68 + col2 AS col1 FROM tab0 AS cor0
----
2277
5658
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-3413
SELECT - 56 DIV col2 FROM tab0
----
-1
-56
0

skipif mysql # not compatible
query I rowsort label-3413
SELECT - 56 / col2 FROM tab0
----
-1
-56
0

query I rowsort
SELECT tab2.col2 + - col2 + + 94 AS col2 FROM tab2
----
94
94
94

query I rowsort
SELECT + tab2.col2 - col1 AS col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL col2 * - ( 52 ) FROM tab0 AS cor0
----
-1716
-4264
-52

query I rowsort
SELECT - + col1 + + cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3419
SELECT DISTINCT col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT col1 / - col1 AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + + col0 * - 57 FROM tab0 cor0
----
-1368
-1995
-5073

query I rowsort
SELECT col0 * - col1 + cor0.col1 + - col0 AS col0 FROM tab2 AS cor0
----
-1405
-193
-4621

query I rowsort
SELECT DISTINCT + + col2 + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT 6 + + tab0.col0 AS col0 FROM tab0
----
30
41
95

query I rowsort
SELECT + col1 - + col2 * 61 FROM tab2
----
-1527
-1616
-2301

onlyif mysql # use DIV operator for integer division
query I rowsort label-3425
SELECT tab0.col2 DIV col1 + col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3425
SELECT tab0.col2 / col1 + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL 97 * tab2.col0 AS col1 FROM tab2
----
679
7566
7663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 + + ( + 16 * + tab2.col0 ) col0 FROM tab2
----
119
1326
1343

query I rowsort
SELECT col0 * 86 - - col1 * col1 * - col1 FROM tab0 AS cor0
----
-633992
-745917
-909663

query I rowsort
SELECT DISTINCT + - col0 - + 69 * col0 FROM tab1 AS cor0
----
-210
-4480
-5600

query I rowsort
SELECT ALL - + col1 + - ( - col1 ) * col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT cor0.col0 + + 59 AS col2 FROM tab0 AS cor0
----
148
83
94

query I rowsort
SELECT DISTINCT col2 * - ( - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + - col0 + + 32 FROM tab0 AS cor0
----
-3
-57
8

query I rowsort
SELECT ALL + + col0 + 83 FROM tab0 AS cor0
----
107
118
172

query I rowsort
SELECT ALL col0 + ( 65 ) FROM tab1 AS cor0
----
129
145
68

query I rowsort
SELECT 72 * - tab1.col0 FROM tab1
----
-216
-4608
-5760

query I rowsort
SELECT 57 * + col0 + col0 AS col1 FROM tab1 AS cor0
----
174
3712
4640

query I rowsort
SELECT + 54 * - col1 + 73 FROM tab2 AS cor0
----
-1601
-3113
-845

onlyif mysql # use DIV operator for integer division
query I rowsort label-3439
SELECT col0 DIV col2 + - 30 FROM tab1 AS cor0
----
-29
-30
-30

skipif mysql # not compatible
query I rowsort label-3439
SELECT col0 / col2 + - 30 FROM tab1 AS cor0
----
-29
-30
-30

query I rowsort
SELECT ALL - 4 * + col0 FROM tab1 AS cor0
----
-12
-256
-320

query I rowsort
SELECT col1 * + 72 + col0 FROM tab0 AS cor0
----
6216
6641
7019

query I rowsort
SELECT - - cor0.col0 + 72 * col0 AS col0 FROM tab2 AS cor0
----
511
5694
5767

query I rowsort
SELECT cor0.col1 + + ( col2 ) AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + col2 + - 5 FROM tab2 AS cor0
----
21
22
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col0 * + ( col0 ) AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT 13 AS col0 FROM tab2
----
13
13
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-3448
SELECT + 24 + - col2 * col2 DIV 87 FROM tab2
----
16
17
8

skipif mysql # not compatible
query I rowsort label-3448
SELECT + 24 + - col2 * col2 / 87 FROM tab2
----
16
17
8

query I rowsort
SELECT - ( - col0 ) * col0 AS col2 FROM tab2
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3450
SELECT + col0 * + CAST( + col1 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
576
75
960

skipif mysql # not compatible
query I rowsort label-3450
SELECT + col0 * + CAST ( + col1 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT + - col0 * col2 + - col2 * + col1 AS col2 FROM tab2 AS cor0
----
-1026
-3562
-3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * + cor0.col0 + col0 col1 FROM tab1 cor0
----
186
3968
4960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT cor0.col2 * - col1 + - col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL - cor0.col0 * col2 + - col1 AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT - + 53 * cor0.col1 + col2 - ( 25 ) FROM tab2 cor0
----
-1641
-3126
-888

query I rowsort
SELECT col1 * + 85 + col1 AS col1 FROM tab1
----
1118
2236
860

onlyif mysql # use DIV operator for integer division
query I rowsort label-3458
SELECT col0 DIV ( col0 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3458
SELECT col0 / ( col0 ) FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3459
SELECT + ( - col2 ) DIV + col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-3459
SELECT + ( - col2 ) / + col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT + + ( cor0.col1 ) * + cor0.col2 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - 23 * col2 - col2 FROM tab1 cor0
----
-1296
-1368
-2304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3462
SELECT 18 + + tab0.col2 + - tab0.col2 * - CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
54
7398
843

skipif mysql # not compatible
query I rowsort label-3462
SELECT 18 + + tab0.col2 + - tab0.col2 * - CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
54
7398
843

query I rowsort
SELECT - - col1 + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
-17
-31
-59

query I rowsort
SELECT DISTINCT col0 + - col0 + + col2 FROM tab2
----
26
27
38

query I rowsort
SELECT + 90 * col2 AS col1 FROM tab0 AS cor0
----
2970
7380
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 * - col0 + col1 * col2 * col1 col2 FROM tab0 AS cor0
----
242988
675037
7834

query I rowsort
SELECT DISTINCT - col2 * col1 + 2 * + col2 + col2 AS col2 FROM tab0 AS cor0
----
-2739
-7216
-94

query I rowsort
SELECT 70 + + col2 FROM tab2 cor0
----
108
96
97

query I rowsort
SELECT ALL + 57 AS col1 FROM tab0
----
57
57
57

query I rowsort
SELECT ALL 11 * col1 + - col2 FROM tab1 cor0
----
232
47
53

query I rowsort
SELECT - 4 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # use DIV operator for integer division
query I rowsort label-3473
SELECT DISTINCT - - col1 DIV - ( + col2 ) + col1 * + col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT - - col1 / - ( + col2 ) + col1 * + col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col2 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - tab0.col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT - col2 + - col0 * + 17 FROM tab2 AS cor0
----
-1352
-1381
-146

onlyif mysql # use DIV operator for integer division
query I rowsort label-3477
SELECT + 39 DIV tab0.col0 AS col2 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3477
SELECT + 39 / tab0.col0 AS col2 FROM tab0
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3478
SELECT ALL CAST( + tab2.col2 AS SIGNED ) AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL CAST ( + tab2.col2 AS INTEGER ) AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 col0 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3480
SELECT CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3480
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + 29 FROM tab2 AS cor0
----
1102
754
783

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3482
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3482
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * col2 + ( ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL + + col0 + - col1 - + col1 * + 81 AS col2 FROM tab1 AS cor0
----
-2129
-756
-986

query I rowsort
SELECT ALL - + 25 + + 76 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT - + col2 + cor0.col2 * col1 * 74 AS col0 FROM tab2 AS cor0
----
113490
47766
61911

query I rowsort
SELECT DISTINCT 22 * col2 + col2 AS col2 FROM tab1 AS cor0
----
1242
1311
2208

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3488
SELECT DISTINCT - + ( + col2 ) + + col0 + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT - + ( + col2 ) + + col0 + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 17 AS col1 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT + - col0 + 26 FROM tab1 AS cor0
----
-38
-54
23

query I rowsort
SELECT ALL - ( + col0 ) AS col1 FROM tab2 cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + col1 * - col0 col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + + col1 + - cor0.col1 * col1 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3494
SELECT ALL + col1 + + 42 DIV - col0 FROM tab1 AS cor0
----
10
12
13

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL + col1 + + 42 / - col0 FROM tab1 AS cor0
----
10
12
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3495
SELECT + + CAST( NULL AS SIGNED ) * - cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3495
SELECT + + CAST ( NULL AS INTEGER ) * - cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3496
SELECT DISTINCT CAST( + 86 AS SIGNED ) + col2 FROM tab1 AS cor0
----
140
143
182

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT CAST ( + 86 AS INTEGER ) + col2 FROM tab1 AS cor0
----
140
143
182

query I rowsort
SELECT DISTINCT col1 * col2 + 90 FROM tab1
----
1338
1494
660

query I rowsort
SELECT ALL - col1 * + 90 + + 88 FROM tab0
----
-7652
-8102
-8642

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 * CAST ( col0 AS REAL ) + + col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT 52 * tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to a87ba043dfff5f53bd11ba70aa992502

query I rowsort
SELECT + 3 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343

query I rowsort
SELECT 28 + ( col2 ) AS col2 FROM tab1 AS cor0
----
124
82
85

query I rowsort
SELECT DISTINCT - ( col0 ) * - col2 + 80 + col1 * col1 AS col0 FROM tab0 AS cor0
----
15659
8268
9524

query I rowsort
SELECT ALL - 57 * + 16 AS col2 FROM tab1 AS cor0
----
-912
-912
-912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 + col0 * - col2 col0 FROM tab1 AS cor0
----
-219
-3705
-7737

query I rowsort
SELECT col1 * + col1 + + col0 AS col2 FROM tab1 AS cor0
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-3507
SELECT DISTINCT - col2 DIV col0 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT - col2 / col0 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
32
82

query I rowsort
SELECT + 86 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT 91 * + 1 * col2 + + col2 FROM tab0
----
3036
7544
92

query I rowsort
SELECT - col0 * + ( 48 ) - + col2 FROM tab1 cor0
----
-198
-3129
-3936

query I rowsort
SELECT 32 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL - 74 * + tab1.col2 AS col0 FROM tab1
----
-3996
-4218
-7104

query I rowsort
SELECT + - ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + tab0.col1 AS col1 FROM tab0, tab1 cor0, tab1 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - + col2 * ( - col0 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - tab1.col2 + 51 * - col1 * col0 FROM tab1
----
-32697
-4032
-53136

query I rowsort
SELECT ALL col0 * 3 + + col0 * col1 * 61 FROM tab2
----
13258
280956
82160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3518
SELECT ALL col2 + CAST( 94 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
148
151
190

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL col2 + CAST ( 94 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
148
151
190

query I rowsort
SELECT ALL + - col2 + cor0.col1 + cor0.col2 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + ( - cor0.col1 ) col0 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3521
SELECT col1 * CAST( NULL AS SIGNED ) - - ( + col1 + 32 ) / col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT col1 * CAST ( NULL AS INTEGER ) - - ( + col1 + 32 ) / col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * ( + col1 ) + col0 + col1 AS col2 FROM tab1 AS cor0
----
107
1133
714

onlyif mysql # use DIV operator for integer division
query I rowsort label-3523
SELECT DISTINCT - - col0 * col1 + 73 * col1 DIV - col1 FROM tab2 cor0
----
1270
144
4529

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT - - col0 * col1 + 73 * col1 / - col1 FROM tab2 cor0
----
1270
144
4529

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3524
SELECT + col2 + CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3524
SELECT + col2 + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3525
SELECT DISTINCT + col1 DIV col0 + - cor0.col1 + col0 * ( col2 ) * col2 FROM tab2 cor0
----
114059
5076
52669

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT + col1 / col0 + - cor0.col1 + col0 * ( col2 ) * col2 FROM tab2 cor0
----
114059
5076
52669

query I rowsort
SELECT 82 * 30 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 5e9722135129ab3beb30e455722fcce6

skipif mysql # not compatible
query I rowsort
SELECT + col1 * CAST ( + col1 AS REAL ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT ALL - col2 * ( + cor0.col0 + - col0 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3529
SELECT + + col1 - 63 DIV - ( - col0 ) AS col0 FROM tab0 AS cor0
----
84
91
96

skipif mysql # not compatible
query I rowsort label-3529
SELECT + + col1 - 63 / - ( - col0 ) AS col0 FROM tab0 AS cor0
----
84
91
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3530
SELECT + col2 DIV + 92 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3530
SELECT + col2 / + 92 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * col2 * col2 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT + + cor0.col0 * + cor0.col2 + 77 AS col1 FROM tab2 cor0
----
2105
266
3079

query I rowsort
SELECT DISTINCT + + cor0.col0 * col1 * + col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + - 50 + - col1 * - col0 AS col0 FROM tab1 AS cor0
----
28
590
990

query I rowsort
SELECT ALL - ( - col0 ) AS col1 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + - 40 * cor0.col0 FROM tab1 AS cor0
----
-120
-2560
-3200

query I rowsort
SELECT - ( ( cor0.col2 ) ) * 37 + col2 * + col1 * + 86 FROM tab0 cor0
----
242847
638698
8305

query I rowsort
SELECT + + ( col0 ) * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3540
SELECT col0 * col0 DIV + col2 AS col1 FROM tab0
----
1225
17
96

skipif mysql # not compatible
query I rowsort label-3540
SELECT col0 * col0 / + col2 AS col1 FROM tab0
----
1225
17
96

query I rowsort
SELECT col1 + + 53 * col1 AS col2 FROM tab0 AS cor0
----
4644
4914
5238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 + col0 col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT 95 * + cor1.col1 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 960743e5d4fb5ecbc021fbe9fedf94d6

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 * + 88 FROM tab1 AS cor0
----
256608
285912
811008

onlyif mysql # use DIV operator for integer division
query I rowsort label-3545
SELECT ALL - 71 DIV + col1 AS col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL - 71 / + col1 AS col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT ALL 13 * col0 FROM tab0
----
1157
312
455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - 53 + + col2 * 83 FROM tab2 AS cor0
----
2105
2188
3101

onlyif mysql # use DIV operator for integer division
query I rowsort label-3549
SELECT - 11 DIV col0 FROM tab1 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3549
SELECT - 11 / col0 FROM tab1 cor0
----
-3
0
0

query I rowsort
SELECT ALL - + 58 * - col0 AS col0 FROM tab1 AS cor0
----
174
3712
4640

onlyif mysql # use DIV operator for integer division
query I rowsort label-3551
SELECT + col0 DIV + 45 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3551
SELECT + col0 / + 45 FROM tab2 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 5 col2 FROM tab0 AS cor0
----
102
91
96

query I rowsort
SELECT ALL - col2 * cor0.col0 + - 96 FROM tab2 AS cor0
----
-2124
-285
-3098

onlyif mysql # use DIV operator for integer division
query I rowsort label-3554
SELECT - - col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3554
SELECT - - col0 / + col0 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + col2 + col2 * 81 AS col2 FROM tab0 AS cor0
----
2706
6724
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3556
SELECT ALL + tab2.col1 DIV col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL + tab2.col1 / col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL 66 * 98 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9cc9ef055f4788ed67c19e272355c9b9

query I rowsort
SELECT - col1 - - col0 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - col1 + + col0 * + tab2.col0 FROM tab2
----
18
6025
6224

query I rowsort
SELECT + col1 * + col1 + col1 FROM tab2
----
306
3540
992

query I rowsort
SELECT 1 + cor0.col1 FROM tab1 cor0
----
11
14
27

query I rowsort
SELECT + 80 * col2 FROM tab0 AS cor0
----
2640
6560
80

query I rowsort
SELECT DISTINCT + tab1.col1 * + col2 + + col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE - col2 <> - col0 + col2
----
17
31
59

query I rowsort
SELECT ALL + col2 * + col1 + - col2 AS col0 FROM tab0
----
2805
7380
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 NOT BETWEEN + col2 AND ( - col2 )
----

query I rowsort
SELECT + col2 + + col0 AS col2 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3568
SELECT 87 DIV - col0 FROM tab2
----
-1
-1
-12

skipif mysql # not compatible
query I rowsort label-3568
SELECT 87 / - col0 FROM tab2
----
-1
-1
-12

query I rowsort
SELECT + tab0.col2 * tab0.col1 AS col0 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT 16 * col1 FROM tab1
----
160
208
416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * col2 col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - + cor0.col2 + col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT + col1 - - tab2.col1 AS col2 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL - col0 * tab1.col2 * + 33 + - ( col2 ) - + 9 AS col1 FROM tab1
----
-120450
-253545
-5409

query I rowsort
SELECT ALL - 16 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9

query I rowsort
SELECT ALL col0 + + col0 FROM tab0
----
178
48
70

query I rowsort
SELECT col0 - - tab1.col1 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT + tab2.col0 - col2 FROM tab2
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * col2 col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT ALL + cor0.col1 * - cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 9be0dab92dd50faf37ee99ac8db7c57d

query I rowsort
SELECT DISTINCT col0 / col0 - + cor0.col0 AS col1 FROM tab2 cor0 WHERE NULL >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3583
SELECT - col0 DIV - col1 AS col0 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3583
SELECT - col0 / - col1 AS col0 FROM tab2
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 col1 FROM tab0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3585
SELECT + col0 + - col2 DIV - col1 FROM tab2
----
7
78
81

skipif mysql # not compatible
query I rowsort label-3585
SELECT + col0 + - col2 / - col1 FROM tab2
----
7
78
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 + col0 col0 FROM tab0
----
171
36
57

query I rowsort
SELECT + col1 + col2 * tab1.col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT ALL + col0 * - col2 + col1 FROM tab2
----
-158
-1969
-2985

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT IN ( + col2 * + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT + col0 - col1 FROM tab0 WHERE NULL BETWEEN NULL AND ( - col0 * col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 ) IN ( col0 * col0 + col2 )
----

query I rowsort
SELECT DISTINCT + col1 * col2 + col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT - col0 * - tab0.col1 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

query I rowsort
SELECT + 84 FROM tab0, tab2, tab0 cor0
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT DISTINCT 50 AS col1 FROM tab2
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 44 col1 FROM tab2 AS cor0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT - 8 AS col1 FROM tab1
----
-8

query I rowsort
SELECT DISTINCT 72 * + ( tab0.col0 ) AS col0 FROM tab0
----
1728
2520
6408

query I rowsort
SELECT DISTINCT - + 3 * col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-105
-21894
-2376

query I rowsort
SELECT - 74 + col2 + col0 * col0 FROM tab2 AS cor0
----
2
6036
6205

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3601
SELECT - + CAST( NULL AS SIGNED ) * 81 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT - + CAST ( NULL AS INTEGER ) * 81 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 48 * col2 * - 24 FROM tab0 cor0
----
1152
38016
94464

query I rowsort
SELECT DISTINCT + - col0 + - cor0.col2 * 75 AS col0 FROM tab0 AS cor0
----
-110
-2499
-6239

query I rowsort
SELECT ALL + 85 AS col2 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT - col0 * + col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT + + 73 * - col2 AS col2 FROM tab0 AS cor0
----
-2409
-5986
-73

query I rowsort
SELECT DISTINCT ( - 69 ) * col2 FROM tab1
----
-3726
-3933
-6624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * + col0 - col1 col2 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT - 92 + + col0 AS col0 FROM tab0 cor0
----
-3
-57
-68

query I rowsort
SELECT DISTINCT - 92 + + col1 AS col0 FROM tab0 AS cor0
----
-1
-6
5

query I rowsort
SELECT + cor0.col1 * col2 + - ( - col1 ) FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + col2 + + ( 9 ) * + col0 AS col0 FROM tab2 AS cor0
----
728
749
90

query I rowsort
SELECT DISTINCT + col2 + + ( + 41 * col2 ) FROM tab2 AS cor0
----
1092
1134
1596

query I rowsort
SELECT + col2 * col1 - + col0 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT ALL 66 * tab2.col0 FROM tab2
----
462
5148
5214

query I rowsort
SELECT - 25 * col2 AS col2 FROM tab1
----
-1350
-1425
-2400

query I rowsort
SELECT + + col1 * 76 FROM tab0 AS cor0
----
6536
6916
7372

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3618
SELECT + col0 * CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-3618
SELECT + col0 * CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3619
SELECT ALL - - CAST( NULL AS SIGNED ) / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL - - CAST ( NULL AS INTEGER ) / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - tab0.col1 + 18 FROM tab0
----
7414
8299
9427

query I rowsort
SELECT col1 * col2 + - col1 FROM tab0
----
0
2752
7371

query I rowsort
SELECT + 73 FROM tab1, tab1 AS cor0, tab2, tab0 cor1
----
81 values hashing to 9f0f371d979e70a792c8597c6559f0e2

query I rowsort
SELECT ALL 42 * col2 + - ( - col0 ) AS col2 FROM tab1 AS cor0
----
2271
2458
4112

onlyif mysql # use DIV operator for integer division
query I rowsort label-3624
SELECT DISTINCT + cor0.col2 DIV - col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT + cor0.col2 / - col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col2 * - col1 + col2 AS col0 FROM tab0 cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 + col1 col1 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT - - col0 * cor0.col2 - col1 AS col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ALL - - 4 + + col0 AS col2 FROM tab0 AS cor0
----
28
39
93

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 85 AS REAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT col2 * col0 - col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT - 97 * col1 + - ( col1 * cor0.col1 ) FROM tab2 AS cor0
----
-1938
-3968
-9204

query I rowsort
SELECT - 10 - + col0 FROM tab1 AS cor0
----
-13
-74
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3633
SELECT + 47 DIV col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3633
SELECT + 47 / col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3634
SELECT - tab1.col0 DIV 80 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT - tab1.col0 / 80 FROM tab1
----
-1
0
0

query I rowsort
SELECT 19 - col1 FROM tab0 AS cor0
----
-67
-72
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3636
SELECT ALL 14 DIV + col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL 14 / + col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col1 + col1 + - 35 AS col1 FROM tab2 AS cor0
----
-1
27
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3638
SELECT col1 * col2 + CAST( col1 AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
14924
194
5676

skipif mysql # not compatible
query I rowsort label-3638
SELECT col1 * col2 + CAST ( col1 AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
14924
194
5676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3639
SELECT ALL col2 * CAST( col2 AS SIGNED ) + - cor0.col0 FROM tab2 AS cor0
----
1365
598
722

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL col2 * CAST ( col2 AS INTEGER ) + - cor0.col0 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT ALL + col2 + col1 + ( + col0 ) FROM tab0
----
133
143
262

query I rowsort
SELECT ALL - + col2 + + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT 90 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT col1 * + 31 FROM tab1 cor0
----
310
403
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 + + col1 col2 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL col1 * - col1 + col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT ALL - + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + cor2.col2 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2

query I rowsort
SELECT DISTINCT - col1 * + col2 + + col1 * ( col0 ) - col2 FROM tab0 AS cor0
----
-807
3297
555

query I rowsort
SELECT DISTINCT + - 34 AS col2 FROM tab0 cor0
----
-34

query I rowsort
SELECT + + 20 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT tab1.col2 * - 52 FROM tab1, tab2 AS cor0
----
-2808
-2964
-4992

query I rowsort
SELECT ALL + 12 - + col1 AS col1 FROM tab0
----
-74
-79
-85

query I rowsort
SELECT ALL col1 - 31 FROM tab1
----
-18
-21
-5

query I rowsort
SELECT col0 + 26 AS col0 FROM tab1
----
106
29
90

query I rowsort
SELECT DISTINCT + 57 + - col2 AS col1 FROM tab1 AS cor0
----
-39
0
3

query I rowsort
SELECT ALL - tab0.col2 * - 30 AS col0 FROM tab0
----
2460
30
990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab1.col2 ) col0 FROM tab1
----
54
57
96

query I rowsort
SELECT - - col2 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT 93 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT - col2 * col0 + - col1 AS col2 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT col2 + + 28 FROM tab2 AS cor0
----
54
55
66

query I rowsort
SELECT ALL + 93 AS col1 FROM tab1 AS cor0
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - cor0.col1 ) + col1 * + 59 col0 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT + 72 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT - ( cor0.col2 ) * 35 FROM tab2, tab2 AS cor0, tab1, tab1 cor1
----
81 values hashing to fcf3ff2c678ae0fc12c1b2ebcbc3de1d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3666
SELECT DISTINCT CAST( NULL AS DECIMAL ) * tab2.col1 * - col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT CAST ( NULL AS REAL ) * tab2.col1 * - col0 AS col1 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3667
SELECT - 1 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3667
SELECT - 1 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col2 * - tab0.col1 + - col2 + + 63 FROM tab0
----
-2808
-35
-7481

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col2 FROM tab1 AS cor0
----
9
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + 45 + cor0.col1 FROM tab2 AS cor0
----
104
62
76

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col0 * - 55 AS col1 FROM tab1 AS cor0
----
200640
422400
8910

query I rowsort
SELECT - tab1.col2 * - 19 AS col0 FROM tab1
----
1026
1083
1824

query I rowsort
SELECT col2 + 15 AS col1 FROM tab0
----
16
48
97

query I rowsort
SELECT col2 + 0 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3676
SELECT DISTINCT + + col2 DIV - col0 AS col0 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT + + col2 / - col0 AS col0 FROM tab0 cor0
----
-1
0

query I rowsort
SELECT + col2 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT col2 + col0 + cor0.col2 FROM tab1 cor0
----
111
178
272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + cor0.col2 col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + col0 * - ( col1 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + 47 * + cor0.col0 FROM tab0 AS cor0
----
1128
1645
4183

query I rowsort
SELECT DISTINCT - 46 * col0 FROM tab0 AS cor0
----
-1104
-1610
-4094

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3683
SELECT ALL CAST( + col0 AS SIGNED ) * - col2 FROM tab2 cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL CAST ( + col0 AS INTEGER ) * - col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + - col0 * 2 AS col0 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3685
SELECT CAST( 76 AS SIGNED ) FROM tab0 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-3685
SELECT CAST ( 76 AS INTEGER ) FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT col1 + 72 * - col0 AS col1 FROM tab2 cor0
----
-473
-5557
-5671

query I rowsort
SELECT DISTINCT + col0 + 9 AS col1 FROM tab0
----
33
44
98

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3689
SELECT - CAST( NULL AS DECIMAL ) FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3689
SELECT - CAST ( NULL AS REAL ) FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + + 64 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT 83 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3692
SELECT DISTINCT + + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL ( - cor0.col1 ) * col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT 58 + - col2 AS col2 FROM tab1 AS cor0
----
-38
1
4

query I rowsort
SELECT DISTINCT + ( - 91 + cor0.col0 ) AS col0 FROM tab1, tab1 cor0
----
-11
-27
-88

query I rowsort
SELECT ( 97 ) FROM tab0, tab1 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL + col1 * 66 + + col1 FROM tab1 AS cor0
----
1742
670
871

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) FROM tab0, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - col2 * - ( - col2 + + col1 * 62 ) AS col0 FROM tab0
----
174867
455920
6013

query I rowsort
SELECT 53 + col0 * col1 FROM tab1
----
1093
131
693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3701
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 51 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 51 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col2 FROM tab2
----
-92
-92
-92

query I rowsort
SELECT - + col0 * cor0.col0 * col1 + - col1 FROM tab2 AS cor0
----
-106114
-1550
-359015

query I rowsort
SELECT DISTINCT col2 * + col2 + + col2 AS col0 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT - 46 * - col2 FROM tab1 cor0
----
2484
2622
4416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col1 + - col1 col2 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + + 6 AS col1 FROM tab1 cor0
----
6
6
6

query I rowsort
SELECT ALL tab0.col0 * - col0 * 29 FROM tab0
----
-16704
-229709
-35525

query I rowsort
SELECT - + tab0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT + - col2 + col1 * 41 * col0 FROM tab1 AS cor0
----
26183
3144
42544

query I rowsort
SELECT + col2 + - cor0.col0 * 55 * cor0.col1 FROM tab1 AS cor0
----
-35143
-4236
-57104

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3712
SELECT - - col1 * CAST( 43 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3698
3913
4171

skipif mysql # not compatible
query I rowsort label-3712
SELECT - - col1 * CAST ( 43 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3698
3913
4171

query I rowsort
SELECT + col0 + - 11 * col0 * + col1 FROM tab1 AS cor0
----
-11360
-6976
-855

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab0 cor1, tab0 AS cor2
----
972 values hashing to d522b52b67b20888d3544d25cb98f232

query I rowsort
SELECT DISTINCT + col1 * + 2 FROM tab2
----
118
34
62

query I rowsort
SELECT + + col0 + 95 * 63 * col0 AS col1 FROM tab0 AS cor0
----
143664
209510
532754

query I rowsort
SELECT DISTINCT + col0 + - 23 AS col0 FROM tab2 AS cor0
----
-16
55
56

query I rowsort
SELECT ALL - col2 - - cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col1 + + col0 AS col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL - col0 * ( col2 ) - col2 FROM tab0 AS cor0
----
-36
-7380
-825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3721
SELECT DISTINCT + - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT + - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col0 * 37 AS col1 FROM tab0 AS cor0
----
1295
3293
888

query I rowsort
SELECT - col0 * + ( col1 ) + + col0 AS col1 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col0 + cor0.col2 * - col2 FROM tab2 AS cor0
----
-540
1352
1558

query I rowsort
SELECT ALL - - col0 + 35 AS col1 FROM tab0 AS cor0
----
124
59
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3726
SELECT DISTINCT + + col2 * 56 + col2 + + cor0.col0 * CAST( - col0 AS SIGNED ) FROM tab0 cor0
----
-1168
-3247
1305

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT + + col2 * 56 + col2 + + cor0.col0 * CAST ( - col0 AS INTEGER ) FROM tab0 cor0
----
-1168
-3247
1305

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0 CROSS JOIN tab1, tab0 cor1
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f

query I rowsort
SELECT + ( + col2 + col0 ) FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3729
SELECT + cor0.col1 + - col2 DIV - cor0.col0 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-3729
SELECT + cor0.col1 + - col2 / - cor0.col0 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT + cor0.col1 * col1 + col1 - - cor0.col2 AS col0 FROM tab0 AS cor0
----
7515
8454
9507

query I rowsort
SELECT ( cor0.col0 ) * cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT 38 - - 10 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT - col2 + - col1 - cor0.col2 FROM tab0 AS cor0
----
-152
-255
-99

query I rowsort
SELECT + 32 * 45 + col0 * + col1 * col1 AS col1 FROM tab2 AS cor0
----
24271
272958
8167

onlyif mysql # use DIV operator for integer division
query I rowsort label-3735
SELECT - 60 + - cor0.col1 * + col1 + col2 DIV col2 col2 FROM tab0 AS cor0
----
-7455
-8340
-9468

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3735
SELECT - 60 + - cor0.col1 * + col1 + col2 / col2 col2 FROM tab0 AS cor0
----
-7455
-8340
-9468

query I rowsort
SELECT - + cor0.col1 + col1 AS col1 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - col1 + col0 * - ( col2 ) AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT 49 + + cor0.col2 * ( - col2 ) FROM tab0 AS cor0
----
-1040
-6675
48

query I rowsort
SELECT DISTINCT - + 89 * + col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
16821
180492
267178

onlyif mysql # use DIV operator for integer division
query I rowsort label-3741
SELECT ALL 91 DIV - tab1.col1 FROM tab1, tab2 cor0
----
9 values hashing to 192c146b5d7659dad40910b5c370f2ea

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL 91 / - tab1.col1 FROM tab1, tab2 cor0
----
9 values hashing to 192c146b5d7659dad40910b5c370f2ea

query I rowsort
SELECT - col1 * - ( 85 ) FROM tab1 AS cor0
----
1105
2210
850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 75 col2 FROM tab1 AS cor0
----
-1950
-750
-975

query I rowsort
SELECT ALL - + tab1.col0 + 52 AS col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 5588896c36837da597a845c0bf19836b

query I rowsort
SELECT - col2 + - ( + col0 ) FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL + col0 + + 1 * cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + 35 * - col2 AS col0 FROM tab0 AS cor0
----
-1155
-2870
-35

query I rowsort
SELECT + cor0.col2 * + col0 - + cor0.col2 AS col1 FROM tab2 cor0
----
162
2002
2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-3749
SELECT DISTINCT + 89 + + 71 DIV col0 FROM tab1
----
112
89
90

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT + 89 + + 71 / col0 FROM tab1
----
112
89
90

query I rowsort
SELECT DISTINCT + ( + 36 ) + col0 AS col0 FROM tab2 AS cor0
----
114
115
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-3751
SELECT DISTINCT col1 DIV + col1 + - cor0.col1 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT col1 / + col1 + - cor0.col1 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT - col2 + 13 * + col1 AS col2 FROM tab0 AS cor0
----
1085
1101
1260

query I rowsort
SELECT col1 - + 56 FROM tab1
----
-30
-43
-46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3754
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - cor0.col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - cor0.col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - ( col2 ) * col1 + ( + col1 ) FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col1 * col1 FROM tab0 cor0
----
7429
8363
9410

query I rowsort
SELECT - 65 * + cor0.col2 - - col2 AS col0 FROM tab2 cor0
----
-1664
-1728
-2432

query I rowsort
SELECT ALL 31 * + col2 + cor0.col1 FROM tab1 AS cor0
----
1700
1777
2989

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3759
SELECT + CAST( col1 AS SIGNED ) + col2 AS col1 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-3759
SELECT + CAST ( col1 AS INTEGER ) + col2 AS col1 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3760
SELECT DISTINCT CAST( cor0.col1 AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT CAST ( cor0.col1 AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col2 * - 81 - col2 * col0 AS col2 FROM tab0 AS cor0
----
-116
-13940
-3465

query I rowsort
SELECT 42 + col2 * col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
1217
140
6857

query I rowsort
SELECT ALL ( col2 ) * col2 + - 42 FROM tab0 AS cor0
----
-41
1047
6682

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 + - col1 col1 FROM tab0 AS cor0
----
-180
-185
-191

query I rowsort
SELECT DISTINCT col1 + col0 * - ( col0 ) FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT - 41 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-41

query I rowsort
SELECT + + tab1.col1 FROM tab1, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT - 31 + - col1 FROM tab0
----
-117
-122
-128

query I rowsort
SELECT ALL ( col2 ) * + col0 AS col0 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3770
SELECT - 1 * + 0 + cor1.col1 DIV 67 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3770
SELECT - 1 * + 0 + cor1.col1 / 67 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - 69 * - cor0.col1 * col0 AS col1 FROM tab2 cor0
----
14973
317538
92667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 60 * + col0 col1 FROM tab0 AS cor0
----
-1440
-2100
-5340

query I rowsort
SELECT DISTINCT + 61 * col2 FROM tab0 AS cor0
----
2013
5002
61

query I rowsort
SELECT DISTINCT - - 77 AS col1 FROM tab1 AS cor0
----
77

query I rowsort
SELECT - 42 * col0 FROM tab0 cor0
----
-1008
-1470
-3738

query I rowsort
SELECT DISTINCT - ( + col2 ) AS col1 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT + col1 + - col1 * col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - - col0 + - col0 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * col2 + - col0 * - col2 * - col1 AS col1 FROM tab0 AS cor0
----
-3298
-65274
-656656

query I rowsort
SELECT ALL 11 * col1 FROM tab0 cor0
----
1001
1067
946

query I rowsort
SELECT + col2 + col1 * ( - col0 ) FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + cor0.col1 + col2 + col2 AS col0 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT 82 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - col2 + col1 * col1 FROM tab1 cor0
----
43
622
73

query I rowsort
SELECT ALL - 53 * + col0 FROM tab0
----
-1272
-1855
-4717

query I rowsort
SELECT DISTINCT ( col1 * - col0 ) FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT col1 * + col2 * + 35 AS col0 FROM tab0 AS cor0
----
261170
3395
99330

query I rowsort
SELECT DISTINCT - + col2 + - 20 FROM tab2 AS cor0
----
-46
-47
-58

query I rowsort
SELECT ALL col2 * + ( cor0.col2 ) * + col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3792
SELECT ALL + col0 * CAST( 28 AS SIGNED ) + col2 FROM tab1 AS cor0
----
138
1849
2336

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL + col0 * CAST ( 28 AS INTEGER ) + col2 FROM tab1 AS cor0
----
138
1849
2336

query I rowsort
SELECT + 24 * col2 * 30 AS col0 FROM tab1
----
38880
41040
69120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3794
SELECT - ( + cor0.col2 ) / CAST( NULL AS SIGNED ) FROM tab0, tab1, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3794
SELECT - ( + cor0.col2 ) / CAST ( NULL AS INTEGER ) FROM tab0, tab1, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + col0 + ( - col0 ) * col2 * - 84 AS col1 FROM tab2 AS cor0
----
15883
170430
252247

query I rowsort
SELECT - 47 * + 31 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e7593e7314c30908e5bfbe7fdc486485

onlyif mysql # use DIV operator for integer division
query I rowsort label-3797
SELECT - col2 + - col2 DIV + col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3797
SELECT - col2 + - col2 / + col1 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3798
SELECT DISTINCT col1 * + col0 DIV - col0 AS col2 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT col1 * + col0 / - col0 AS col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL - + 60 AS col2 FROM tab0, tab2 cor0, tab2, tab2 cor1
----
81 values hashing to 17ea60db8bdc9b534fe91b7fd55df3f9

query I rowsort
SELECT DISTINCT - col1 + + tab1.col2 FROM tab1
----
28
47
83

query I rowsort
SELECT col2 + col1 - + col1 FROM tab1
----
54
57
96

query I rowsort
SELECT + 30 + col2 * 22 * - col0 FROM tab1 AS cor0
----
-168930
-3534
-80226

query I rowsort
SELECT + col2 * + col1 * + 7 + col1 AS col0 FROM tab1 AS cor0
----
4000
8749
9854

query I rowsort
SELECT DISTINCT 92 + col1 FROM tab0
----
178
183
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT tab1.col1 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + 41 * col2 AS col2 FROM tab0
----
1353
3362
41

query I rowsort
SELECT DISTINCT - 48 AS col2 FROM tab2
----
-48

query I rowsort
SELECT ALL + 29 + + col1 FROM tab1 AS cor0
----
39
42
55

query I rowsort
SELECT DISTINCT + col2 + + col2 * col2 + - col0 FROM tab2 cor0
----
1403
624
749

query I rowsort
SELECT ALL 74 * col2 FROM tab2 AS cor0
----
1924
1998
2812

query I rowsort
SELECT ALL + - col2 * + cor0.col2 + - col0 * - cor0.col0 * col0 FROM tab0 AS cor0
----
12735
42874
698245

query I rowsort
SELECT - cor0.col0 + cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT - - ( col0 ) * - col0 + col2 * col2 FROM tab2 AS cor0
----
-4797
-5408
680

query I rowsort
SELECT - + cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + 19 + 35 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT ALL - 32 FROM tab2, tab2 cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 34 * ( - col0 ) + col2 col0 FROM tab0 AS cor0
----
-1189
-2944
-783

query I rowsort
SELECT + ( 8 ) * col1 FROM tab0 AS cor0
----
688
728
776

query I rowsort
SELECT + col2 + 52 FROM tab1 AS cor0
----
106
109
148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 col0 FROM tab2
----
18
18
18

query I rowsort
SELECT - 24 * 46 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to e67fc3356932f443164380a5f9d4fbba

query I rowsort
SELECT ALL - 95 AS col2 FROM tab1
----
-95
-95
-95

query I rowsort
SELECT DISTINCT - + col0 + col1 * - 4 FROM tab2 AS cor0
----
-131
-147
-314

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3825
SELECT - col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3825
SELECT - col2 / 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-3826
SELECT - cor0.col1 + 13 DIV + col1 FROM tab1 AS cor0
----
-12
-26
-9

skipif mysql # not compatible
query I rowsort label-3826
SELECT - cor0.col1 + 13 / + col1 FROM tab1 AS cor0
----
-12
-26
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3827
SELECT tab0.col2 + + col2 + + 70 * col2 DIV - col2 AS col0 FROM tab0
----
-4
-68
94

skipif mysql # not compatible
query I rowsort label-3827
SELECT tab0.col2 + + col2 + + 70 * col2 / - col2 AS col0 FROM tab0
----
-4
-68
94

query I rowsort
SELECT - + col2 * - ( col1 ) + cor0.col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT - col2 * cor0.col0 + col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT col0 * - 56 FROM tab1
----
-168
-3584
-4480

query I rowsort
SELECT col2 * 42 FROM tab1
----
2268
2394
4032

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3833
SELECT CAST( NULL AS SIGNED ) + + col2 * + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT CAST ( NULL AS INTEGER ) + + col2 * + col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - col1 * - col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT 32 + - col0 FROM tab2 AS cor0
----
-46
-47
25

query I rowsort
SELECT ALL col0 * - 23 FROM tab2
----
-161
-1794
-1817

query I rowsort
SELECT + col0 * + ( - ( col0 ) ) FROM tab1
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 col0 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3839
SELECT + col0 DIV ( + col0 + + col1 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3839
SELECT + col0 / ( + col0 + + col1 ) FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 + - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT 73 * col0 + cor0.col2 FROM tab2 AS cor0
----
538
5720
5805

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3843
SELECT CAST( NULL AS DECIMAL ) * - col1 + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3843
SELECT CAST ( NULL AS REAL ) * - col1 + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 67 AS col0 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT ALL + ( 73 ) + col0 AS col2 FROM tab1 AS cor0
----
137
153
76

query I rowsort
SELECT ALL + 60 * col2 FROM tab2 AS cor0
----
1560
1620
2280

query I rowsort
SELECT col2 + col1 + col1 AS col2 FROM tab1
----
106
122
77

query I rowsort
SELECT + + 19 + + ( col0 ) * col1 FROM tab2 cor0
----
1362
236
4621

onlyif mysql # use DIV operator for integer division
query I rowsort label-3849
SELECT DISTINCT - col1 DIV 63 - col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT - col1 / 63 - col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + 94 + col0 AS col1 FROM tab0 AS cor0
----
118
129
183

query I rowsort
SELECT ALL - 59 + - col1 AS col2 FROM tab2
----
-118
-76
-90

query I rowsort
SELECT DISTINCT + tab2.col2 * - col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT cor0.col0 * + col0 + ( - 22 ) + + col2 FROM tab1 AS cor0
----
41
4131
6474

query I rowsort
SELECT ALL 25 AS col1 FROM tab0
----
25
25
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-3855
SELECT ALL - col2 DIV 91 + + tab2.col1 * - col0 + - col0 FROM tab2
----
-1422
-224
-4680

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL - col2 / 91 + + tab2.col1 * - col0 + - col0 FROM tab2
----
-1422
-224
-4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3856
SELECT cor0.col1 * - CAST( NULL AS DECIMAL ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3856
SELECT cor0.col1 * - CAST ( NULL AS REAL ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 62 * - col0 FROM tab0
----
-1488
-2170
-5518

query I rowsort
SELECT + col1 * + 13 * + col0 - + col0 * ( col1 ) AS col0 FROM tab2
----
16116
2604
55224

query I rowsort
SELECT + cor0.col2 * tab1.col2 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 994244f565b077d9bfe0a9efd8b9bf4b

query I rowsort
SELECT DISTINCT - + col1 * cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col2 + - ( col0 ) AS col2 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - tab1.col1 + 95 * 74 col1 FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to bdfb827967c05552666c5caad9c2b2cc

query I rowsort
SELECT - tab1.col1 - + col0 FROM tab1
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3864
SELECT + 32 + tab2.col2 * ( + col1 ) DIV + col1 col1 FROM tab2
----
58
59
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3864
SELECT + 32 + tab2.col2 * ( + col1 ) / + col1 col1 FROM tab2
----
58
59
70

query I rowsort
SELECT DISTINCT col1 * col0 - + col2 AS col1 FROM tab2
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 63 ) col2 FROM tab0, tab2 AS cor0
----
63

query I rowsort
SELECT - col0 * 8 AS col2 FROM tab0 cor0
----
-192
-280
-712

query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 + 25 FROM tab2 AS cor0
----
-1509
-621
-812

onlyif mysql # use DIV operator for integer division
query I rowsort label-3869
SELECT DISTINCT + cor0.col1 DIV cor0.col1 + 28 FROM tab2 cor0
----
29

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT + cor0.col1 / cor0.col1 + 28 FROM tab2 cor0
----
29

query I rowsort
SELECT - col1 + - ( ( cor0.col2 ) ) * ( ( col1 ) ) FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-3871
SELECT ALL + + col2 DIV 82 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL + + col2 / 82 AS col1 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - + col1 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + col1 + cor0.col2 * 28 AS col0 FROM tab2 AS cor0
----
1081
787
787

query I rowsort
SELECT 13 - + col0 FROM tab1
----
-51
-67
10

query I rowsort
SELECT + col1 - 2 FROM tab0
----
84
89
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - cor0.col2 col1 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3877
SELECT ALL - col0 DIV col1 + - col2 * - col0 FROM tab1 AS cor0
----
162
3642
7674

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL - col0 / col1 + - col2 * - col0 FROM tab1 AS cor0
----
162
3642
7674

query I rowsort
SELECT + 95 + - col2 FROM tab1
----
-1
38
41

query I rowsort
SELECT - 89 FROM tab0, tab1 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT DISTINCT + ( - col0 * - col1 ) AS col1 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3881
SELECT + col0 DIV - tab0.col0 + + col2 AS col2 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-3881
SELECT + col0 / - tab0.col0 + + col2 AS col2 FROM tab0
----
0
32
81

query I rowsort
SELECT - 33 AS col2 FROM tab2
----
-33
-33
-33

query I rowsort
SELECT ALL 43 AS col0 FROM tab0 AS cor0
----
43
43
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-3884
SELECT ALL - - col2 * + col2 + cor0.col2 DIV - col0 + col0 AS col2 FROM tab0 AS cor0
----
1112
36
6813

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL - - col2 * + col2 + cor0.col2 / - col0 + col0 AS col2 FROM tab0 AS cor0
----
1112
36
6813

query I rowsort
SELECT + 48 * - col2 AS col2 FROM tab0 AS cor0
----
-1584
-3936
-48

query I rowsort
SELECT DISTINCT col1 * + col1 + + col2 * col2 FROM tab1 AS cor0
----
3349
3592
9385

query I rowsort
SELECT DISTINCT - 8 * col1 * - col1 AS col0 FROM tab1 cor0
----
1352
5408
800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 + - cor0.col1 + col2 * cor0.col0 col2 FROM tab1 AS cor0
----
3738
7836
812

query I rowsort
SELECT 60 FROM tab2 cor0
----
60
60
60

query I rowsort
SELECT ALL 92 * col0 FROM tab1 AS cor0
----
276
5888
7360

query I rowsort
SELECT DISTINCT - col1 + - col0 + col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + 77 + col1 AS col2 FROM tab1 cor0
----
103
87
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + col2 col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT + col2 * col0 + - col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT col2 * - ( col0 ) + + col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - cor0.col0 * 55 AS col2 FROM tab0 AS cor0
----
-1320
-1925
-4895

query I rowsort
SELECT ALL + + col2 * ( + col1 ) * col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT + col2 + 68 FROM tab0 cor0
----
101
150
69

query I rowsort
SELECT + - col1 + cor0.col0 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-3900
SELECT col1 DIV + col2 + col0 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-3900
SELECT col1 / + col2 + col0 FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT ALL - ( cor0.col2 ) - col0 * col0 FROM tab0 AS cor0
----
-1226
-609
-8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-3902
SELECT ALL col2 DIV + cor0.col1 AS col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL col2 / + cor0.col1 AS col1 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT + 31 * col2 + + col0 FROM tab1 AS cor0
----
1677
1831
3056

query I rowsort
SELECT ALL - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT - col0 * - col2 + col2 AS col0 FROM tab1
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3906
SELECT + + CAST( ( + col0 ) AS SIGNED ) * - cor0.col1 + - cor0.col2 FROM tab1 AS cor0
----
-1136
-132
-697

skipif mysql # not compatible
query I rowsort label-3906
SELECT + + CAST ( ( + col0 ) AS INTEGER ) * - cor0.col1 + - cor0.col2 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-3907
SELECT ( - 45 ) DIV - col0 + - col0 FROM tab1 cor0
----
-64
-80
12

skipif mysql # not compatible
query I rowsort label-3907
SELECT ( - 45 ) / - col0 + - col0 FROM tab1 cor0
----
-64
-80
12

query I rowsort
SELECT ALL + ( - cor0.col1 ) + - col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT 67 + + cor0.col0 AS col2 FROM tab1, tab1 AS cor0
----
131
147
70

query I rowsort
SELECT DISTINCT - ( col2 ) - col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL col1 + - col0 * - col1 * col0 FROM tab1 cor0
----
260
40970
83213

query I rowsort
SELECT DISTINCT + - col0 * col1 + col2 * + col0 AS col2 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT + - col0 * col1 * col2 + + cor0.col2 * + col2 FROM tab1 AS cor0
----
-1296
-33231
-90624

onlyif mysql # use DIV operator for integer division
query I rowsort label-3914
SELECT DISTINCT - - col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT - - col0 / - col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col0 + cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-3916
SELECT + + col0 DIV col0 col0 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3916
SELECT + + col0 / col0 col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + col2 + - cor0.col2 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + col1 + - col2 * col0 * - col2 FROM tab2 AS cor0
----
114093
5134
52787

query I rowsort
SELECT + cor0.col0 * cor0.col2 FROM tab0, tab2 cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0

query I rowsort
SELECT cor0.col2 + - col1 * col0 * cor0.col2 FROM tab1 AS cor0
----
-36423
-4158
-99744

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NULL >= ( - cor0.col2 )
----

query I rowsort
SELECT - tab2.col0 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - cor0.col1 + + col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT - + col1 * + col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3925
SELECT - col2 DIV - col1 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3925
SELECT - col2 / - col1 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + cor0.col2 + + cor0.col0 AS col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + 10 * + col0 + col2 AS col1 FROM tab0
----
273
351
972

query I rowsort
SELECT - + cor0.col2 * col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL - 12 AS col0 FROM tab1
----
-12
-12
-12

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - col2 ) AND col1 * col0 IN ( col0 )
----

query I rowsort
SELECT DISTINCT + col2 + col1 * - col0 FROM tab0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-3932
SELECT cor0.col0 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3932
SELECT cor0.col0 / - col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 * - col1 + col1 + col0 * col2 * col2 FROM tab2
----
112750
48185
4917

query I rowsort
SELECT + col0 * col0 * + col0 + tab0.col0 + + tab0.col1 AS col2 FROM tab0
----
13934
43007
705149

query I rowsort
SELECT ALL col0 * col1 + col0 AS col2 FROM tab2
----
1422
224
4680

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL AND NOT NULL NOT IN ( + col0 * col1 * col1 + - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3938
SELECT ALL + col0 + col1 DIV + col1 AS col2 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL + col0 + col1 / + col1 AS col2 FROM tab2
----
79
8
80

query I rowsort
SELECT cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT - cor0.col1 + ( col1 ) * col0 FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3941
SELECT ALL 75 * col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL 75 * col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 65 AS col2 FROM tab1
----
65

query I rowsort
SELECT - 5 * + col2 - + col0 AS col2 FROM tab1 AS cor0
----
-273
-349
-560

query I rowsort
SELECT DISTINCT 26 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
26

query I rowsort
SELECT DISTINCT col0 + ( + col1 ) * tab2.col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT col0 * ( - cor0.col0 ) AS col1 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT + 8 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT DISTINCT + 64 * cor0.col1 FROM tab1, tab0 AS cor0
----
5504
5824
6208

query I rowsort
SELECT ALL + col0 + ( tab2.col2 ) AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT + tab0.col0 * + col1 + - col0 FROM tab0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 3 col1 FROM tab0
----
-258
-273
-291

query I rowsort
SELECT ALL + col1 + + ( cor0.col0 ) + col1 AS col0 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT - col1 + - col2 * - col0 * + col1 AS col2 FROM tab1 AS cor0
----
36470
4186
99827

query I rowsort
SELECT DISTINCT ( 58 + col1 ) * 54 FROM tab2
----
4050
4806
6318

query I rowsort
SELECT ALL col0 * 43 + - col2 FROM tab0 AS cor0
----
1504
3745
999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 * - tab1.col2 col1 FROM tab1
----
1620
1710
2880

query I rowsort
SELECT ALL - ( - col2 ) * col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT - - col0 + cor0.col2 * col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ( + col0 ) + col0 * + 51 AS col0 FROM tab0 AS cor0
----
1248
1820
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-3960
SELECT col2 * col1 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3960
SELECT col2 * col1 / cor0.col1 AS col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3961
SELECT DISTINCT - col2 * - 15 + col0 DIV CAST( 67 AS SIGNED ) FROM tab1 AS cor0
----
1441
810
855

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT - col2 * - 15 + col0 / CAST ( 67 AS INTEGER ) FROM tab1 AS cor0
----
1441
810
855

onlyif mysql # use DIV operator for integer division
query I rowsort label-3962
SELECT + + col0 + + col2 + - 23 DIV col1 FROM tab1 AS cor0
----
119
175
57

skipif mysql # not compatible
query I rowsort label-3962
SELECT + + col0 + + col2 + - 23 / col1 FROM tab1 AS cor0
----
119
175
57

query I rowsort
SELECT - col1 * + cor0.col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 18 * col1 + - col1 FROM tab1 AS cor0
----
170
221
442

query I rowsort
SELECT + 71 * cor0.col0 - - 77 AS col0 FROM tab0 cor0
----
1781
2562
6396

query I rowsort
SELECT + col2 + + cor0.col1 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - - col0 * col1 + - 16 - 85 FROM tab0 AS cor0
----
1963
3294
7998

query I rowsort
SELECT + 81 * + col1 + ( + 60 ) * cor0.col1 AS col1 FROM tab0 cor0
----
12126
12831
13677

query I rowsort
SELECT 23 * 14 FROM tab0
----
322
322
322

query I rowsort
SELECT ALL + 4 + col1 * tab1.col0 * tab1.col2 FROM tab1
----
36484
4216
99844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 - col2 col1 FROM tab0 AS cor0
----
-8
41
73

query I rowsort
SELECT - 11 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-264
-385
-979

query I rowsort
SELECT DISTINCT 72 * - col0 * ( + 2 ) AS col1 FROM tab0 AS cor0
----
-12816
-3456
-5040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT + cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL col2 * cor0.col2 + - ( col1 ) AS col0 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT DISTINCT - + col1 * - 7 FROM tab0 AS cor0
----
602
637
679

query I rowsort
SELECT + - col2 * 29 FROM tab0 cor0
----
-2378
-29
-957

query I rowsort
SELECT ALL + - cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3980
SELECT - col2 + col2 * + col1 DIV - col1 FROM tab2 AS cor0
----
-52
-54
-76

skipif mysql # not compatible
query I rowsort label-3980
SELECT - col2 + col2 * + col1 / - col1 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT - col0 * + col1 + - ( + col2 ) * - col1 * col2 AS col2 FROM tab1 AS cor0
----
118768
31850
75738

query I rowsort
SELECT DISTINCT - col2 + ( col0 ) * col1 * col0 AS col2 FROM tab2 cor0
----
106059
1492
358930

query I rowsort
SELECT tab0.col2 + - col2 - col2 AS col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT + 91 * + col0 + + col1 + tab2.col0 AS col2 FROM tab2
----
675
7235
7285

query I rowsort
SELECT ALL col1 * col2 - col1 * + col0 FROM tab0
----
-3298
-637
774

query I rowsort
SELECT tab1.col1 + - tab1.col2 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT tab0.col2 * col2 - col1 FROM tab0
----
-96
1003
6633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col1 col1 FROM tab1
----
0

query I rowsort
SELECT ALL + 59 + 80 FROM tab2 AS cor0
----
139
139
139

query I rowsort
SELECT ALL - - ( cor0.col2 ) * col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL - + 58 - 90 FROM tab1 AS cor0
----
-148
-148
-148

onlyif mysql # use DIV operator for integer division
query I rowsort label-3992
SELECT DISTINCT - + col2 DIV - col0 + + cor0.col1 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT - + col2 / - col0 + + cor0.col1 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT ALL col0 - + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + 16 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL + col0 + 22 * + col2 FROM tab2 AS cor0
----
601
650
915

query I rowsort
SELECT DISTINCT + ( 6 ) * col0 + col0 FROM tab2 AS cor0
----
49
546
553

onlyif mysql # use DIV operator for integer division
query I rowsort label-3997
SELECT ALL - col2 DIV - tab2.col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL - col2 / - tab2.col0 FROM tab2
----
0
0
3

query I rowsort
SELECT - - 37 FROM tab0 AS cor0
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL - - 10 AS col1 FROM tab0 cor0
----
10
10
10

query I rowsort
SELECT + col0 + + col1 + col2 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT + - col2 + col1 * + col0 + + ( col2 ) * - col1 AS col1 FROM tab2 cor0
----
-647
3042
659

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 col0 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4004
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + + cor0.col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + + cor0.col1 FROM tab1 cor0
----
0

query I rowsort
SELECT col1 * cor0.col1 * col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4007
SELECT ALL + col1 DIV col1 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + col1 / col1 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT ( ( col0 ) ) * - ( - col1 ) + cor0.col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT ( col0 ) * col0 + + 76 * col1 * col1 FROM tab0 AS cor0
----
562672
637277
716309

query I rowsort
SELECT DISTINCT - cor0.col1 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL 41 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT ALL - ( - tab1.col2 ) * - col0 AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - ( + col2 ) * + tab0.col0 FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + cor0.col0 col0 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 * col0 col1 FROM tab1 AS cor0
----
-138
-2944
-3680

query I rowsort
SELECT 98 + 55 FROM tab0
----
153
153
153

query I rowsort
SELECT DISTINCT col0 * - ( - tab2.col0 ) * - 88 AS col0 FROM tab2
----
-4312
-535392
-549208

query I rowsort
SELECT - 35 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b

query I rowsort
SELECT ( + 17 ) FROM tab0
----
17
17
17

query I rowsort
SELECT DISTINCT + col1 * 33 AS col1 FROM tab0
----
2838
3003
3201

query I rowsort
SELECT + cor0.col2 - + ( col1 ) FROM tab0 AS cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + ( col0 ) * - cor0.col0 col2 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT - - col0 + + ( + 20 ) - - col2 FROM tab2 AS cor0
----
124
137
54

query I rowsort
SELECT 64 * col1 FROM tab0
----
5504
5824
6208

query I rowsort
SELECT ALL - - col2 * 15 + col2 * cor0.col0 + ( - col2 ) FROM tab0 AS cor0
----
1254
49
8446

query I rowsort
SELECT DISTINCT + cor0.col2 * - 34 + + col0 * - cor0.col2 FROM tab2 AS cor0
----
-1107
-2912
-4294

query I rowsort
SELECT ALL - col2 + 51 * - col2 AS col0 FROM tab2 AS cor0
----
-1352
-1404
-1976

query I rowsort
SELECT DISTINCT + col0 + ( col2 ) AS col1 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 - col0 col2 FROM tab2
----
-24
-25
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-4030
SELECT tab0.col1 DIV tab0.col2 - - col0 AS col2 FROM tab0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-4030
SELECT tab0.col1 / tab0.col2 - - col0 AS col2 FROM tab0
----
132
26
90

query I rowsort
SELECT ALL - col0 + col1 * - col2 FROM tab0
----
-132
-2862
-7551

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab2 cor3
----
3645 values hashing to ee83821bd928a072bc435d7135362ca1

query I rowsort
SELECT DISTINCT - col2 + + 46 * + col0 AS col0 FROM tab1
----
2887
3584
84

query I rowsort
SELECT col1 * 40 - - col2 * col1 AS col0 FROM tab0 AS cor0
----
11102
3977
6278

onlyif mysql # use DIV operator for integer division
query I rowsort label-4035
SELECT - + col2 + 55 DIV - col0 AS col2 FROM tab0 AS cor0
----
-2
-35
-82

skipif mysql # not compatible
query I rowsort label-4035
SELECT - + col2 + 55 / - col0 AS col2 FROM tab0 AS cor0
----
-2
-35
-82

query I rowsort
SELECT + col1 - + 56 * col0 FROM tab2 AS cor0
----
-361
-4309
-4407

query I rowsort
SELECT DISTINCT col1 * + 31 * + col1 + col2 AS col2 FROM tab0 AS cor0
----
229309
256793
291680

query I rowsort
SELECT - cor0.col0 + - ( 50 + col1 ) FROM tab2 AS cor0
----
-146
-187
-88

query I rowsort
SELECT + + col1 + + ( - ( - cor0.col1 ) ) AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + col0 * + 45 FROM tab2 cor0
----
315
3510
3555

query I rowsort
SELECT + col1 * col2 + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL - col0 * - 2 * + cor0.col0 FROM tab0 cor0
----
1152
15842
2450

query I rowsort
SELECT DISTINCT - col2 + 87 AS col2 FROM tab0 AS cor0
----
5
54
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 83 col2 FROM tab2
----
-45
-56
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4045
SELECT ALL col1 + + col2 * + ( + col1 * CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL col1 + + col2 * + ( + col1 * CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * 25 + col1 AS col0 FROM tab2 cor0
----
1534
442
806

query I rowsort
SELECT - 7 * + col2 + col0 * col2 FROM tab0 AS cor0
----
28
561
6724

query I rowsort
SELECT DISTINCT col1 + col1 * + col0 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL col0 + - ( + col0 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + 39 FROM tab2, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL - 65 * 52 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 41a73930adf9213a4216a436de14b8d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4052
SELECT ALL + col2 + CAST( NULL AS SIGNED ) * - col2 + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) * - col2 + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4053
SELECT - col0 DIV ( ( - col2 ) ) AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4053
SELECT - col0 / ( ( - col2 ) ) AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT col2 * ( - col1 ) AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + + 87 FROM tab2 AS cor0
----
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-4056
SELECT ALL + 59 DIV - cor0.col0 - - col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
41
6084
6241

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL + 59 / - cor0.col0 - - col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
41
6084
6241

query I rowsort
SELECT ALL + + cor0.col2 + col1 FROM tab0 cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4058
SELECT CAST( NULL AS SIGNED ) * ( + col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT CAST ( NULL AS INTEGER ) * ( + col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 55 - col0 * - col0 FROM tab2 AS cor0
----
104
6139
6296

query I rowsort
SELECT + col2 * + col1 + + cor0.col2 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4061
SELECT + ( ( + cor0.col1 ) ) - + CAST( 64 * col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3430
-3638
-6131

skipif mysql # not compatible
query I rowsort label-4061
SELECT + ( ( + cor0.col1 ) ) - + CAST ( 64 * col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3430
-3638
-6131

query I rowsort
SELECT - 25 * col2 + col2 * + cor0.col2 FROM tab2 AS cor0
----
26
494
54

query I rowsort
SELECT - 60 * col2 - col0 AS col1 FROM tab2 AS cor0
----
-1627
-1638
-2359

query I rowsort
SELECT DISTINCT - tab1.col2 AS col2 FROM tab1, tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - + 63 FROM tab1 AS cor0
----
-63
-63
-63

query I rowsort
SELECT col2 * - col2 * - col2 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT DISTINCT 42 * - col1 * col2 FROM tab0
----
-119196
-313404
-4074

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + + ( - col0 ) - col1 * - ( - col2 ) * + col2 AS col0 FROM tab1 AS cor0
----
-121136
-33124
-77223

query I rowsort
SELECT col2 * + cor0.col1 * 28 FROM tab1 AS cor0
----
15960
34944
39312

query I rowsort
SELECT + 75 * col0 AS col0 FROM tab2 AS cor0
----
525
5850
5925

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4071
SELECT DISTINCT - col2 + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT - col2 + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 37 * + col2 FROM tab0 AS cor0
----
1221
3034
37

query I rowsort
SELECT + col2 * col1 AS col2 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4074
SELECT ALL - cor0.col0 DIV col1 + + 8 * col0 AS col2 FROM tab1 cor0
----
24
506
634

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL - cor0.col0 / col1 + + 8 * col0 AS col2 FROM tab1 cor0
----
24
506
634

query I rowsort
SELECT ALL + col1 * col2 - + 25 * - col1 FROM tab2 AS cor0
----
1071
1612
3009

query I rowsort
SELECT ALL - - cor0.col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort
SELECT - col1 * - CAST ( 82 AS REAL ) AS col0 FROM tab2 cor0
----
1394
2542
4838

query I rowsort
SELECT + 47 * + col1 + - col1 - - cor0.col2 FROM tab1 AS cor0
----
1250
517
694

query I rowsort
SELECT + col1 * col0 + - col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL - 85 * col0 + + col0 AS col1 FROM tab0 AS cor0
----
-2016
-2940
-7476

query I rowsort
SELECT + ( - col1 ) + 67 AS col0 FROM tab1 cor0
----
41
54
57

query I rowsort
SELECT DISTINCT - 57 + + col0 AS col0 FROM tab0 AS cor0
----
-22
-33
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-4083
SELECT + + 91 DIV + col1 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4083
SELECT + + 91 / + col1 FROM tab0 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - col2 - ( cor0.col1 ) col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - ( col1 ) + - 5 - + 99 AS col0 FROM tab0 AS cor0
----
-190
-195
-201

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4086
SELECT ALL CAST( - 71 + col0 AS SIGNED ) col1 FROM tab0
----
-36
-47
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL CAST ( - 71 + col0 AS INTEGER ) col1 FROM tab0
----
-36
-47
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-4087
SELECT ALL 49 DIV - col1 AS col1 FROM tab1
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL 49 / - col1 AS col1 FROM tab1
----
-1
-3
-4

query I rowsort
SELECT - 68 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88

query I rowsort
SELECT DISTINCT col2 * col2 * ( 16 ) AS col2 FROM tab1 AS cor0
----
147456
46656
51984

query I rowsort
SELECT ALL ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - ( + 70 + + col0 ) * - col2 FROM tab2
----
2079
3848
5662

query I rowsort
SELECT DISTINCT + - col0 * + 34 AS col1 FROM tab1 AS cor0
----
-102
-2176
-2720

query I rowsort
SELECT + col0 + cor0.col1 * + 4 AS col0 FROM tab0 cor0
----
368
423
453

query I rowsort
SELECT + col2 + + col0 * col2 * + col1 AS col1 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT ALL + 25 - col2 FROM tab2
----
-1
-13
-2

query I rowsort
SELECT - + 20 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT DISTINCT col1 * - col0 - col1 AS col2 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT ALL - 88 * - tab0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ab5619610da4d20b9373a629516ff9d8

query I rowsort
SELECT + - cor0.col1 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4100
SELECT + col2 * + CAST( 1 AS SIGNED ) FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4100
SELECT + col2 * + CAST ( 1 AS INTEGER ) FROM tab1
----
54
57
96

query I rowsort
SELECT + col1 - ( + col0 + + col2 ) * col2 AS col1 FROM tab0
----
-13931
-1795
61

query I rowsort
SELECT - 56 + 89 * col1 FROM tab0
----
7598
8043
8577

query I rowsort
SELECT ALL + tab1.col2 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - ( ( - tab2.col1 ) ) FROM tab2
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4105
SELECT + CAST( 73 * - col0 + ( - 11 ) * + col0 AS SIGNED ) FROM tab1
----
-252
-5376
-6720

skipif mysql # not compatible
query I rowsort label-4105
SELECT + CAST ( 73 * - col0 + ( - 11 ) * + col0 AS INTEGER ) FROM tab1
----
-252
-5376
-6720

query I rowsort
SELECT + col0 * ( - col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 70 col2 FROM tab0 AS cor0
----
-70
-70
-70

query I rowsort
SELECT ALL col0 * 11 AS col2 FROM tab1
----
33
704
880

query I rowsort
SELECT - + col1 + col2 AS col1 FROM tab2 cor0
----
-33
-4
21

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1, tab1 AS cor1
----
3645 values hashing to 76903cfa3a27727fd541d9dcdf362a4c

query I rowsort
SELECT - col0 * + ( - col1 ) + tab2.col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL - - ( col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 - - col1 AS col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT - 56 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-56

query I rowsort
SELECT ALL - - 6 + + cor0.col1 FROM tab1 cor0
----
16
19
32

query I rowsort
SELECT cor0.col0 * - col1 + col1 * - 11 AS col0 FROM tab2 cor0
----
-1530
-5251
-558

onlyif mysql # use DIV operator for integer division
query I rowsort label-4117
SELECT ALL - - col1 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL - - col1 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + + col1 * col0 AS col2 FROM tab0 cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-4119
SELECT + col1 + + col0 DIV + cor0.col1 AS col1 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-4119
SELECT + col1 + + col0 / + cor0.col1 AS col1 FROM tab1 AS cor0
----
16
19
26

query I rowsort
SELECT + col0 * - col2 + - cor0.col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL + tab1.col2 + 58 * - col1 FROM tab1
----
-1454
-523
-658

query I rowsort
SELECT ALL tab2.col1 + col1 AS col1 FROM tab2
----
118
34
62

query I rowsort
SELECT - - col2 * + 28 * col1 + + col1 * - 53 AS col1 FROM tab1 AS cor0
----
15430
34255
37934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4124
SELECT - + col1 + + CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT - + col1 + + CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor1.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4126
SELECT - col1 + 67 * col1 DIV col2 FROM tab1 AS cor0
----
-4
1
6

skipif mysql # not compatible
query I rowsort label-4126
SELECT - col1 + 67 * col1 / col2 FROM tab1 AS cor0
----
-4
1
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col0 ) * - col1 col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - ( - ( - col0 ) ) + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - 78 + ( col2 ) AS col1 FROM tab1 AS cor0
----
-21
-24
18

query I rowsort
SELECT - cor0.col1 + - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1461
-735
-760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4131
SELECT DISTINCT + 0 DIV + col0 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4131
SELECT DISTINCT + 0 / + col0 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL ( + ( col1 ) ) * ( - 46 ) FROM tab2 AS cor0
----
-1426
-2714
-782

query I rowsort
SELECT DISTINCT - 85 + 40 * col2 * 8 FROM tab2 AS cor0
----
12075
8235
8555

query I rowsort
SELECT ALL + cor0.col1 + 38 AS col0 FROM tab2 AS cor0
----
55
69
97

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL ( + 13 ) * cor0.col1 FROM tab1 cor0
----
130
169
338

query I rowsort
SELECT DISTINCT 83 + ( + col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
-1451
-563
-754

query I rowsort
SELECT - 96 * + col2 + + col1 FROM tab1 AS cor0
----
-5158
-5462
-9203

query I rowsort
SELECT DISTINCT - 19 AS col2 FROM tab2 AS cor0
----
-19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4140
SELECT col1 * + ( + col1 ) * - col1 + CAST( - col0 AS SIGNED ) + col0 AS col0 FROM tab2
----
-205379
-29791
-4913

skipif mysql # not compatible
query I rowsort label-4140
SELECT col1 * + ( + col1 ) * - col1 + CAST ( - col0 AS INTEGER ) + col0 AS col0 FROM tab2
----
-205379
-29791
-4913

query I rowsort
SELECT + col2 * - 49 AS col1 FROM tab0
----
-1617
-4018
-49

query I rowsort
SELECT ALL 4 FROM tab2, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT DISTINCT + col0 + col1 * tab2.col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL col0 + col1 + 66 * ( + col1 ) * 86 AS col1 FROM tab2
----
175994
335021
96588

query I rowsort
SELECT - cor0.col2 * col2 * + cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
-157438
-185183
-884723

query I rowsort
SELECT DISTINCT 52 * - col1 AS col0 FROM tab2 AS cor0
----
-1612
-3068
-884

query I rowsort
SELECT DISTINCT + - col2 * col2 AS col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT - col2 * col1 + + 15 AS col1 FROM tab1 AS cor0
----
-1233
-1389
-555

query I rowsort
SELECT DISTINCT - 65 + col1 FROM tab2 cor0
----
-34
-48
-6

query I rowsort
SELECT col1 * - cor0.col1 + - ( 93 ) AS col1 FROM tab0 AS cor0
----
-7489
-8374
-9502

query I rowsort
SELECT - col1 + + col1 * - 60 FROM tab0 AS cor0
----
-5246
-5551
-5917

query I rowsort
SELECT + + col0 + + ( - col1 ) * - col1 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT col2 * 13 + col0 * + col2 FROM tab1 AS cor0
----
4389
864
8928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 - + col2 * + col1 col1 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - col1 * 95 AS col0 FROM tab0 AS cor0
----
-8170
-8645
-9215

query I rowsort
SELECT DISTINCT cor0.col2 * 81 FROM tab2 AS cor0
----
2106
2187
3078

query I rowsort
SELECT + + col2 * 17 FROM tab1 AS cor0
----
1632
918
969

onlyif mysql # use DIV operator for integer division
query I rowsort label-4158
SELECT ALL - col1 * 86 DIV + 1 FROM tab1 AS cor0
----
-1118
-2236
-860

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL - col1 * 86 / + 1 FROM tab1 AS cor0
----
-1118
-2236
-860

onlyif mysql # use DIV operator for integer division
query I rowsort label-4159
SELECT col2 * col2 + 21 * col2 DIV - ( - col0 ) FROM tab2 AS cor0
----
1454
683
810

skipif mysql # not compatible
query I rowsort label-4159
SELECT col2 * col2 + 21 * col2 / - ( - col0 ) FROM tab2 AS cor0
----
1454
683
810

query I rowsort
SELECT - + col2 * - col2 * - col0 + - col1 AS col0 FROM tab1 AS cor0
----
-207946
-737293
-8774

query I rowsort
SELECT ALL - col0 * - col1 + 28 * tab0.col1 AS col2 FROM tab0
----
10647
4472
6111

query I rowsort
SELECT ALL - col2 * tab1.col1 + - tab1.col1 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT - 64 * col1 AS col2 FROM tab0 AS cor0
----
-5504
-5824
-6208

query I rowsort
SELECT ALL + 64 + 11 FROM tab0 AS cor0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 + col0 col2 FROM tab1 AS cor0
----
131
147
70

query I rowsort
SELECT DISTINCT ( + 97 ) * cor0.col0 * col0 FROM tab0 AS cor0
----
118825
55872
768337

query I rowsort
SELECT ALL - col2 + - 63 AS col0 FROM tab0 AS cor0
----
-145
-64
-96

query I rowsort
SELECT ALL - cor0.col2 * - 95 AS col0 FROM tab1 AS cor0
----
5130
5415
9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 col2 FROM tab1 cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4170
SELECT ALL - CAST( ( col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL - CAST ( ( col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - ( col0 ) * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + - 18 AS col0 FROM tab0 AS cor0
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 * + col0 + col1 * cor0.col2 col1 FROM tab1 AS cor0
----
-232902
-613152
918

query I rowsort
SELECT DISTINCT - + ( col0 ) * cor0.col2 * - ( col2 ) AS col1 FROM tab1 AS cor0
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( - col0 ) * col2 + tab2.col0 col1 FROM tab2
----
-1316
-158106
-237079

query I rowsort
SELECT DISTINCT tab2.col0 * ( col0 + + col2 ) AS col1 FROM tab2
----
238
8112
9243

query I rowsort
SELECT DISTINCT - col0 * + col2 * - col0 FROM tab0 AS cor0
----
1225
19008
649522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4178
SELECT ALL - CAST( NULL AS SIGNED ) * 86 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL - CAST ( NULL AS INTEGER ) * 86 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4179
SELECT ALL - - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL - - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
76

query I rowsort
SELECT ALL 89 * - cor0.col1 FROM tab0 AS cor0
----
-7654
-8099
-8633

query I rowsort
SELECT DISTINCT ( 24 ) * col2 AS col1 FROM tab0 AS cor0
----
1968
24
792

query I rowsort
SELECT col0 * - 60 FROM tab1 AS cor0
----
-180
-3840
-4800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4184
SELECT DISTINCT + + CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col1 * + tab2.col2 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT cor1.col2 + - 31 AS col1 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 98de368b2bd43947c7c8a48aa8820deb

query I rowsort
SELECT ALL + - cor0.col1 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT 12 AS col1 FROM tab0
----
12

query I rowsort
SELECT ALL col1 * + 53 FROM tab1
----
1378
530
689

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4190
SELECT + col2 * - tab0.col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT + col2 * - tab0.col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 70 + + col0 * ( + col0 ) AS col0 FROM tab2 AS cor0
----
119
6154
6311

query I rowsort
SELECT - - cor0.col0 * + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4193
SELECT + - cor0.col1 + col0 * col2 DIV + 53 AS col2 FROM tab0 cor0
----
-72
-97
46

skipif mysql # not compatible
query I rowsort label-4193
SELECT + - cor0.col1 + col0 * col2 / + 53 AS col2 FROM tab0 cor0
----
-72
-97
46

query I rowsort
SELECT ALL + col1 * - col2 - - 10 FROM tab1 cor0
----
-1238
-1394
-560

query I rowsort
SELECT ALL col0 * + col0 + + col0 AS col1 FROM tab2 cor0
----
56
6162
6320

query I rowsort
SELECT ALL - - col0 + - 34 AS col2 FROM tab1 AS cor0
----
-31
30
46

query I rowsort
SELECT + + col2 * ( - cor0.col0 ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - 80 * - cor0.col1 - col0 FROM tab1 cor0
----
2077
736
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 47 - col0 col2 FROM tab2 AS cor0
----
-31
-32
40

query I rowsort
SELECT ALL 13 * 16 - + cor0.col0 FROM tab0 cor0
----
119
173
184

query I rowsort
SELECT - 41 * - 63 AS col2 FROM tab2 cor0
----
2583
2583
2583

query I rowsort
SELECT DISTINCT + + col2 + - col1 * + col1 FROM tab1 cor0
----
-43
-622
-73

query I rowsort
SELECT - 76 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT ALL ( 26 ) AS col1 FROM tab2 AS cor0
----
26
26
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4205
SELECT - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 * + 98 FROM tab1 AS cor0
----
294
6272
7840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4207
SELECT - + cor0.col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT - + cor0.col2 * CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 col2 FROM tab1 cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * ( col0 ) col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + ( col1 ) * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - + col2 * - col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4214
SELECT DISTINCT + + col0 + col2 DIV col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT + + col0 + col2 / col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col1 * - col1 * - cor0.col0 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT col2 * col1 + - cor0.col0 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT + col0 * - col0 + 98 * + col2 + + col1 FROM tab0 AS cor0
----
-1030
206
2744

query I rowsort
SELECT DISTINCT 83 FROM tab2, tab2 cor0
----
83

query I rowsort
SELECT - cor0.col0 + col0 * col2 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT - ( + col2 ) AS col2 FROM tab2
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT ALL - col1 + tab1.col0 AS col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT - 82 * - col1 AS col2 FROM tab2 AS cor0
----
1394
2542
4838

query I rowsort
SELECT - - cor0.col1 * + 74 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
1241
2263
4307

onlyif mysql # use DIV operator for integer division
query I rowsort label-4225
SELECT - + col0 + - 88 DIV cor0.col1 FROM tab2 AS cor0
----
-79
-84
-9

skipif mysql # not compatible
query I rowsort label-4225
SELECT - + col0 + - 88 / cor0.col1 FROM tab2 AS cor0
----
-79
-84
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4226
SELECT ALL + - col1 DIV - ( - col0 ) AS col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL + - col1 / - ( - col0 ) AS col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT + 75 - - col2 * ( + tab2.col0 ) AS col1 FROM tab2
----
2103
264
3077

query I rowsort
SELECT + 73 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT col1 + + col0 * tab2.col2 AS col0 FROM tab2
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-4230
SELECT - col0 + 29 DIV 75 col0 FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4230
SELECT - col0 + 29 / 75 col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT col0 + - col1 * col2 * col1 FROM tab2
----
-10903
-25940
-90428

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4232
SELECT col0 - + CAST( NULL AS SIGNED ) * 88 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4232
SELECT col0 - + CAST ( NULL AS INTEGER ) * 88 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + + cor0.col1 * 59 FROM tab2 cor0
----
1822
3403
924

query I rowsort
SELECT ALL + col2 + + 27 * 87 FROM tab2 cor0
----
2375
2376
2387

onlyif mysql # use DIV operator for integer division
query I rowsort label-4235
SELECT DISTINCT - col2 DIV + col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT - col2 / + col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT cor0.col0 * + col2 + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT 33 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
33

query I rowsort
SELECT DISTINCT - ( + col2 ) * col1 * + 83 - 49 AS col0 FROM tab2
----
-127371
-53667
-69520

query I rowsort
SELECT ALL tab0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT ( tab0.col2 ) - col2 * + col1 * col2 FROM tab0
----
-611802
-93621
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 85 * - tab1.col1 ) + + col0 - col2 * - col0 col0 FROM tab1
----
-2045
2862
6655

query I rowsort
SELECT 47 * - 50 AS col0 FROM tab1 AS cor0
----
-2350
-2350
-2350

query I rowsort
SELECT ALL + - 96 * col2 + ( col0 ) * + col2 - cor0.col0 FROM tab0 cor0
----
-2400
-663
-96

query I rowsort
SELECT + - ( col1 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + 13 * col2 + 70 FROM tab1 AS cor0
----
1318
772
811

query I rowsort
SELECT + - col0 * col0 + - col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-238
-8112
-9243

query I rowsort
SELECT DISTINCT + col2 * - col0 - col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL + 30 * - col1 AS col1 FROM tab1 AS cor0
----
-300
-390
-780

query I rowsort
SELECT 88 - - col0 AS col1 FROM tab2 AS cor0
----
166
167
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4250
SELECT + col2 * col2 + CAST( NULL AS SIGNED ) * cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4250
SELECT + col2 * col2 + CAST ( NULL AS INTEGER ) * cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 33 + - col2 + - col2 * - ( - col1 + col1 ) FROM tab2 AS cor0
----
-5
6
7

query I rowsort
SELECT DISTINCT + - 1 AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + col2 * col0 * - col0 AS col1 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT 80 * tab1.col1 FROM tab1
----
1040
2080
800

query I rowsort
SELECT cor0.col0 * col1 - + col2 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL col0 + col2 * + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ( 15 ) FROM tab1
----
15
15
15

query I rowsort
SELECT + ( - 77 ) FROM tab0 cor0
----
-77
-77
-77

query I rowsort
SELECT + ( col1 ) + - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - ( col2 ) + + col2 * col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT DISTINCT 30 * + tab0.col0 AS col2 FROM tab0
----
1050
2670
720

query I rowsort
SELECT + col0 * + tab2.col2 + - 93 AS col2 FROM tab2
----
1935
2909
96

query I rowsort
SELECT col2 * col0 + - col2 * + col0 * tab2.col0 FROM tab2
----
-1134
-156156
-234156

query I rowsort
SELECT ALL - + col1 - col1 * col2 AS col2 FROM tab1 cor0
----
-1261
-1430
-580

query I rowsort
SELECT - ( col2 ) + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 + col1 * col1 col0 FROM tab0 AS cor0
----
7515
8454
9507

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4267
SELECT DISTINCT - cor0.col1 + CAST( NULL AS SIGNED ) / col1 - - cor0.col2 * - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT - cor0.col1 + CAST ( NULL AS INTEGER ) / col1 - - cor0.col2 * - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT cor0.col1 + ( col2 ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - + col1 + + col2 * col0 AS col0 FROM tab0 cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-4270
SELECT ALL col1 * 74 DIV - col2 - + col2 AS col0 FROM tab0 AS cor0
----
-164
-225
-7179

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL col1 * 74 / - col2 - + col2 AS col0 FROM tab0 AS cor0
----
-164
-225
-7179

query I rowsort
SELECT col0 * + cor0.col2 * - col2 FROM tab2 cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT - - col2 * ( col2 * cor0.col0 ) FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT ALL + cor0.col0 * col1 + + cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
1066
130
660

query I rowsort
SELECT ALL cor0.col1 + ( 18 ) + col2 FROM tab0 AS cor0
----
116
137
191

query I rowsort
SELECT ALL - cor0.col2 + 10 AS col0 FROM tab0 AS cor0
----
-23
-72
9

query I rowsort
SELECT DISTINCT - - col1 - + col2 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL + + col2 + + col1 * ( + col2 ) FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT col1 * col0 + - tab2.col0 FROM tab2
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col1 FROM tab2
----
27
27
27

query I rowsort
SELECT + ( tab0.col2 ) * col1 + - col1 * col1 AS col1 FROM tab0
----
-4558
-819
-9312

query I rowsort
SELECT - - col2 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT col0 + cor0.col1 + col1 AS col2 FROM tab2 cor0
----
113
196
69

query I rowsort
SELECT + - col1 * - col1 + - col1 AS col0 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT - col2 + - col2 + col1 * - col2 FROM tab1 AS cor0
----
-1440
-1512
-684

query I rowsort
SELECT + - col2 + col2 * col1 + - col0 * col2 FROM tab1 cor0
----
-3135
-6528
1188

query I rowsort
SELECT DISTINCT - col1 * col0 * - col1 AS col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT + + col2 * + col1 AS col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + col1 * col1 * + col0 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT tab0.col2 * col1 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + + ( + cor0.col0 ) * - col2 + - col1 * - col1 FROM tab0 AS cor0
----
6604
9374
983

query I rowsort
SELECT + + 34 * - col0 + - col0 FROM tab1 AS cor0
----
-105
-2240
-2800

query I rowsort
SELECT - 55 - + col0 AS col2 FROM tab2 AS cor0
----
-133
-134
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4293
SELECT - + cor0.col2 DIV col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4293
SELECT - + cor0.col2 / col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ( col1 ) + + col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930

onlyif mysql # use DIV operator for integer division
query I rowsort label-4295
SELECT + cor0.col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4295
SELECT + cor0.col2 / - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - - cor0.col1 - col1 * col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4297
SELECT ALL col2 + col1 + - col2 DIV col0 AS col1 FROM tab2
----
55
55
85

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL col2 + col1 + - col2 / col0 AS col1 FROM tab2
----
55
55
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 4 + col1 col2 FROM tab1
----
33
78
97

query I rowsort
SELECT ALL ( col0 ) + col2 AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT - 15 + cor0.col2 * - col2 FROM tab0 AS cor0
----
-1104
-16
-6739

query I rowsort
SELECT + cor0.col1 * col1 AS col2 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT 75 AS col0 FROM tab1
----
75
75
75

query I rowsort
SELECT + - 83 * + col1 + col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-2078
-763
-970

query I rowsort
SELECT - cor0.col2 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4305
SELECT + CAST( col1 AS SIGNED ) * + tab0.col2 col1 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4305
SELECT + CAST ( col1 AS INTEGER ) * + tab0.col2 col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL + ( + 10 ) + col1 * col1 AS col2 FROM tab2
----
299
3491
971

query I rowsort
SELECT ALL - + 64 + col1 AS col2 FROM tab1 AS cor0
----
-38
-51
-54

query I rowsort
SELECT DISTINCT + ( 11 ) FROM tab0
----
11

query I rowsort
SELECT ALL col2 + 56 AS col2 FROM tab0
----
138
57
89

query I rowsort
SELECT ALL - col0 * + col0 + col1 AS col2 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT ALL tab2.col2 + + 41 * + col2 FROM tab2
----
1092
1134
1596

query I rowsort
SELECT DISTINCT - 70 + col0 AS col0 FROM tab0
----
-35
-46
19

query I rowsort
SELECT ALL 63 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4314
SELECT ALL + col0 + col0 + - CAST( - 80 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-234
-4992
-6240

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL + col0 + col0 + - CAST ( - 80 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-234
-4992
-6240

query I rowsort
SELECT DISTINCT + - col2 - - col1 * + 93 AS col0 FROM tab2 cor0
----
1543
2856
5461

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) * + col0 col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4317
SELECT - - 31 DIV - col2 AS col1 FROM tab0 AS cor0
----
-31
0
0

skipif mysql # not compatible
query I rowsort label-4317
SELECT - - 31 / - col2 AS col1 FROM tab0 AS cor0
----
-31
0
0

query I rowsort
SELECT ALL + ( - col0 ) * col1 + + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT col1 + + col1 * 84 AS col1 FROM tab0 cor0
----
7310
7735
8245

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4320
SELECT ALL + col0 + + col1 * - CAST( + 20 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
11464
25040
28083

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL + col0 + + col1 * - CAST ( + 20 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
11464
25040
28083

query I rowsort
SELECT ALL col1 - col2 * 1 * col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL + col1 - col0 AS col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT + col1 * col0 + - ( col2 ) * + col2 + + ( + cor0.col0 ) FROM tab1 AS cor0
----
-2545
-2835
-8096

query I rowsort
SELECT col2 + - 63 AS col2 FROM tab1 AS cor0
----
-6
-9
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4325
SELECT - cor0.col0 - col1 * ( - col2 * CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT - cor0.col0 - col1 * ( - col2 * CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * 20 + + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-329
-3588
-4582

query I rowsort
SELECT - col1 + + col2 - - 1 FROM tab1 AS cor0
----
29
48
84

query I rowsort
SELECT col0 + + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL - col1 + + 35 - col1 * + col2 * col0 AS col2 FROM tab2 AS cor0
----
-119676
-51016
-5855

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + col0 col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - + col1 * + col1 * - col2 + col2 * col1 - + col2 * 87 * + col1 AS col2 FROM tab0 AS cor0
----
0
1067
37310

query I rowsort
SELECT + 99 + cor0.col0 AS col2 FROM tab2 AS cor0
----
106
177
178

onlyif mysql # use DIV operator for integer division
query I rowsort label-4333
SELECT - 12 * - cor0.col1 * cor0.col0 + + CAST( - ( - col1 ) + col2 AS SIGNED ) * col2 DIV + cor0.col1 FROM tab0 AS cor0
----
24813
40741
97343

skipif mysql # not compatible
query I rowsort label-4333
SELECT - 12 * - cor0.col1 * cor0.col0 + + CAST ( - ( - col1 ) + col2 AS INTEGER ) * col2 / + cor0.col1 FROM tab0 AS cor0
----
24813
40741
97343

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4334
SELECT ALL + - CAST( - col0 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL + - CAST ( - col0 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT 19 + + 18 AS col2 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT + col1 * col0 + col2 * - col0 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT - - col1 * - 82 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1377
-2511
-4779

query I rowsort
SELECT DISTINCT - - ( col2 ) * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - 50 * 38 AS col1 FROM tab1 AS cor0
----
-1900

query I rowsort
SELECT DISTINCT - + col0 * - col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + 69 * col2 - col2 AS col2 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT ALL + col2 * - col0 + + col1 AS col0 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT ALL col1 * col0 + - col0 AS col1 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT + + 33 AS col1 FROM tab2 AS cor0
----
33

query I rowsort
SELECT DISTINCT ( col0 ) + + col1 * + col0 * - 21 AS col0 FROM tab2 AS cor0
----
-28124
-4550
-96564

query I rowsort
SELECT - col1 * ( - tab1.col2 ) AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT col1 * 76 * tab1.col0 AS col0 FROM tab1
----
48640
5928
79040

query I rowsort
SELECT DISTINCT + - 63 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1311
-1467
-633

query I rowsort
SELECT - 37 + + cor0.col2 FROM tab1 AS cor0
----
17
20
59

query I rowsort
SELECT ALL ( 64 ) FROM tab0 AS cor0
----
64
64
64

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + ( ( col2 ) ) + - CAST ( - col0 AS REAL ) FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + + col2 * cor0.col1 + ( + col0 ) col2 FROM tab1 AS cor0
----
1408
1410
698

query I rowsort
SELECT + tab1.col2 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + ( - col0 ) * - col2 + + 44 * + tab2.col1 * tab2.col0 FROM tab2
----
204516
62094
9737

query I rowsort
SELECT ALL - 20 + + col0 AS col1 FROM tab1
----
-17
44
60

query I rowsort
SELECT DISTINCT + col1 + col0 * col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL ( - col1 ) + col2 * col2 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT 66 AS col0 FROM tab0
----
66
66
66

query I rowsort
SELECT 64 * + 72 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4ff3941081cbf6617c594966073c9f88

query I rowsort
SELECT DISTINCT tab2.col2 * - tab2.col2 + col1 - - col2 FROM tab2
----
-1389
-591
-671

query I rowsort
SELECT + col1 + - 45 FROM tab2
----
-14
-28
14

query I rowsort
SELECT DISTINCT - col2 * + 65 + tab0.col0 - col2 FROM tab0
----
-2154
-31
-5323

query I rowsort
SELECT + tab2.col1 + 87 - - tab2.col2 FROM tab2
----
142
145
172

query I rowsort
SELECT col0 + ( 86 * + col2 + 85 ) FROM tab1
----
4732
5051
8421

query I rowsort
SELECT + cor0.col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4367
SELECT - cor0.col2 + - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-4367
SELECT - cor0.col2 + - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4368
SELECT DISTINCT col1 * CAST( NULL AS DECIMAL ) + col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT col1 * CAST ( NULL AS REAL ) + col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 * + 9 FROM tab1 AS cor0
----
486
513
864

query I rowsort
SELECT + 92 + + 7 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL + 0 * + col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT 63 FROM tab0, tab0 AS cor0, tab0 cor1
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 + + 90 * - col2 col0 FROM tab2 AS cor0
----
-2314
-2403
-3382

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( 71 ) col0 FROM tab0 AS cor0
----
1704
2485
6319

query I rowsort
SELECT ALL ( + col1 ) + - col0 FROM tab0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4377
SELECT + col0 * - col2 / + CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT + col0 * - col2 / + CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4378
SELECT + CAST( - col0 * col2 AS SIGNED ) + + col1 * - tab1.col2 FROM tab1
----
-1566
-4218
-8928

skipif mysql # not compatible
query I rowsort label-4378
SELECT + CAST ( - col0 * col2 AS INTEGER ) + + col1 * - tab1.col2 FROM tab1
----
-1566
-4218
-8928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4379
SELECT CAST( + 37 AS SIGNED ) FROM tab0 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-4379
SELECT CAST ( + 37 AS INTEGER ) FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT ALL + 8 * 31 + - col0 AS col2 FROM tab2
----
169
170
241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4381
SELECT ALL CAST( NULL AS SIGNED ) * ( + col1 ) + 29 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL CAST ( NULL AS INTEGER ) * ( + col1 ) + 29 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 30 FROM tab2, tab2 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT ALL + col0 + - col2 * - col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT ALL + col0 * col0 + 42 AS col1 FROM tab2 AS cor0
----
6126
6283
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-4385
SELECT ALL - + cor0.col0 + col2 * 7 DIV 80 FROM tab0 cor0
----
-22
-35
-82

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL - + cor0.col0 + col2 * 7 / 80 FROM tab0 cor0
----
-22
-35
-82

query I rowsort
SELECT - - ( col2 ) + col0 FROM tab1 cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 + + col0 col1 FROM tab0 cor0
----
-1065
-6635
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col1 col2 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT - + 80 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-45
-56
9

query I rowsort
SELECT - 21 AS col0 FROM tab0
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 col0 FROM tab0 cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 94 col0 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT DISTINCT - 84 + col2 * col0 + 98 FROM tab2 AS cor0
----
203
2042
3016

query I rowsort
SELECT + - col2 * + col1 + + col2 AS col1 FROM tab2 cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-4395
SELECT DISTINCT + col1 * col1 DIV + ( - 51 ) AS col0 FROM tab0 AS cor0
----
-145
-162
-184

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT + col1 * col1 / + ( - 51 ) AS col0 FROM tab0 AS cor0
----
-145
-162
-184

onlyif mysql # use DIV operator for integer division
query I rowsort label-4396
SELECT ALL - - ( - col2 ) * + col1 + - col0 DIV col2 FROM tab0 AS cor0
----
-132
-2838
-7463

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL - - ( - col2 ) * + col1 + - col0 / col2 FROM tab0 AS cor0
----
-132
-2838
-7463

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) * 44 col1 FROM tab2 AS cor0
----
1144
1188
1672

query I rowsort
SELECT DISTINCT col0 * col1 - - cor0.col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + col0 * col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT col2 - - col2 AS col0 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT + 72 AS col0 FROM tab1
----
72
72
72

query I rowsort
SELECT + 73 * col2 AS col2 FROM tab1
----
3942
4161
7008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 col1 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 * col0 col2 FROM tab2
----
224
2496
2528

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 773bb916e463ebc075d701108532badb

query I rowsort
SELECT - col0 * + 88 AS col1 FROM tab2 AS cor0
----
-616
-6864
-6952

query I rowsort
SELECT - col1 * + cor0.col1 * - col1 AS col1 FROM tab1 AS cor0
----
1000
17576
2197

query I rowsort
SELECT - col0 * 1 + + col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 87 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT 97 * col1 * tab1.col0 + - col0 * + col2 + ( + col0 ) FROM tab1
----
58496
7407
93280

query I rowsort
SELECT - col2 * ( - col2 ) AS col0 FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + cor0.col1 + 80 * + col2 col2 FROM tab2 AS cor0
----
-1401
1199
2751

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col1 AS REAL ) * + col0 + col2 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - + 91 AS col1 FROM tab1 AS cor0
----
-91
-91
-91

query I rowsort
SELECT + ( - col2 ) * + cor0.col1 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4416
SELECT + col0 + + col1 - CAST( + 9 AS SIGNED ) col0 FROM tab0 AS cor0
----
101
123
171

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4416
SELECT + col0 + + col1 - CAST ( + 9 AS INTEGER ) col0 FROM tab0 AS cor0
----
101
123
171

onlyif mysql # use DIV operator for integer division
query I rowsort label-4417
SELECT ALL col2 + + 97 DIV col0 + - col1 * + col1 AS col1 FROM tab2
----
-250
-3454
-921

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL col2 + + 97 / col0 + - col1 * + col1 AS col1 FROM tab2
----
-250
-3454
-921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4418
SELECT 31 DIV - col1 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4418
SELECT 31 / - col1 FROM tab1
----
-1
-2
-3

query I rowsort
SELECT ALL tab0.col2 + col0 AS col0 FROM tab0
----
171
36
57

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 <= NULL
----

query I rowsort
SELECT col1 * col0 + col2 AS col2 FROM tab2
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-4422
SELECT + tab1.col1 + - tab1.col0 DIV - col1 col0 FROM tab1
----
16
19
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4422
SELECT + tab1.col1 + - tab1.col0 / - col1 col0 FROM tab1
----
16
19
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4423
SELECT DISTINCT + col0 DIV + col1 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT + col0 / + col1 AS col1 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4424
SELECT col0 * col1 DIV col0 AS col2 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4424
SELECT col0 * col1 / col0 AS col2 FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4425
SELECT + col1 DIV tab0.col0 AS col1 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4425
SELECT + col1 / tab0.col0 AS col1 FROM tab0
----
1
2
3

query I rowsort
SELECT - col2 * - col2 * - col1 FROM tab0
----
-611884
-93654
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 - col0 <> col1 * - col1
----

query I rowsort
SELECT + tab2.col0 + + col0 AS col1 FROM tab2
----
14
156
158

query I rowsort
SELECT col2 + - col2 * + col0 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT ALL tab0.col1 * - col0 - - col2 FROM tab0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-4431
SELECT col2 DIV col0 col1 FROM tab2
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4431
SELECT col2 / col0 col1 FROM tab2
----
0
0
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col1 + col0 ) IN ( - col0 * col1 / + tab0.col0 - + col0 )
----

query I rowsort
SELECT ALL - col1 * - col1 - + tab1.col2 FROM tab1
----
43
622
73

query I rowsort
SELECT col0 + - col1 * tab2.col2 * col2 AS col0 FROM tab2
----
-22592
-24469
-39806

query I rowsort
SELECT ALL col2 * col1 + col0 + col0 AS col0 FROM tab2
----
1690
804
851

onlyif mysql # use DIV operator for integer division
query I rowsort label-4436
SELECT + col0 DIV + col0 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4436
SELECT + col0 / + col0 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL - tab0.col0 * + tab0.col0 FROM tab0
----
-1225
-576
-7921

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > ( + col1 )
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT col1 * col0 + col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL tab1.col2 + col1 AS col0 FROM tab1 WHERE NOT NULL > ( - col2 )
----

query I rowsort
SELECT DISTINCT + tab0.col1 * + col2 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL tab0.col2 * tab0.col0 AS col1 FROM tab0 WHERE NULL IN ( + col1 * col0 )
----

query I rowsort
SELECT DISTINCT col1 + col2 * + col2 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT tab1.col1 * tab1.col1 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL tab2.col1 * - col0 AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT col1 + col0 * col1 - col1 * tab2.col0 AS col1 FROM tab2 WHERE NOT - col2 + - col1 >= + col0 * col1
----
17
31
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= NULL OR NOT NULL NOT IN ( - col0 + - col2 )
----

query I rowsort
SELECT + col0 + + cor0.col2 AS col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT col2 FROM tab1 WHERE ( col0 * + tab1.col1 ) = NULL
----

query I rowsort
SELECT col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4453
SELECT ALL col1 * col0 DIV - col0 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL col1 * col0 / - col0 FROM tab1
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4454
SELECT + col2 * tab1.col2 DIV col2 AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4454
SELECT + col2 * tab1.col2 / col2 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL tab2.col0 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( - col2 )
----

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT col0 * col1 + - col2 * + col0 * col1 AS col1 FROM tab2 AS cor0
----
-115050
-49691
-5642

query I rowsort
SELECT DISTINCT + col1 - tab2.col0 FROM tab2 WHERE NOT NULL IN ( col0 * + col2 / - col2 )
----

query I rowsort
SELECT col1 * + col1 - col0 FROM tab2 AS cor0
----
210
3403
954

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 / - col1 + col1 )
----

query I rowsort
SELECT col1 * 99 + - col0 + - col2 * + 72 FROM tab1
----
-1317
-3178
-5705

query I rowsort
SELECT ALL col2 + ( - col2 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col2 * 55 * - 7 - - col1 AS col2 FROM tab2 AS cor0
----
-10364
-14613
-9951

query I rowsort
SELECT ALL - + col2 + - ( col2 * + col2 + + 40 ) FROM tab0 cor0
----
-1162
-42
-6846

query I rowsort
SELECT - col0 * + col0 * ( col2 ) FROM tab2 cor0
----
-1323
-158184
-237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + 90 * + col0 col1 FROM tab1 AS cor0
----
216
5703
7104

query I rowsort
SELECT ALL + cor0.col0 * - col1 * + col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL - + cor0.col0 AS col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT 58 * + col2 + cor0.col0 FROM tab0 AS cor0
----
1938
4845
93

query I rowsort
SELECT ALL 10 * ( - col1 ) * - col1 + + col1 * cor0.col0 * 65 - col1 AS col1 FROM tab1 AS cor0
----
11804
42590
69277

query I rowsort
SELECT 35 + + col1 AS col1 FROM tab2 AS cor0
----
52
66
94

query I rowsort
SELECT ALL 48 AS col0 FROM tab2, tab2 AS cor0, tab0 cor1, tab0 AS cor2
----
81 values hashing to df6d12001a34fdcf5cfb2ca3a4a22108

query I rowsort
SELECT DISTINCT 14 * - col2 FROM tab2 AS cor0
----
-364
-378
-532

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4476
SELECT ALL - - CAST( NULL AS SIGNED ) * - 94 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL - - CAST ( NULL AS INTEGER ) * - 94 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col1 ) * cor0.col0 + - col2 * col0 + col1 col2 FROM tab0 cor0
----
-15306
-2770
-3333

query I rowsort
SELECT + 62 * - 33 + cor0.col1 * col0 FROM tab0 AS cor0
----
1349
18
6053

query I rowsort
SELECT + 79 * ( col0 ) + ( + col2 + col0 * - col1 ) FROM tab2 AS cor0
----
1586
363
4936

query I rowsort
SELECT + 84 * col2 + col2 FROM tab1 AS cor0
----
4590
4845
8160

onlyif mysql # use DIV operator for integer division
query I rowsort label-4481
SELECT DISTINCT col2 - - col1 DIV ( + col0 + + 46 ) AS col0 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT col2 - - col1 / ( + col0 + + 46 ) AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL 75 * col1 AS col0 FROM tab2 AS cor0
----
1275
2325
4425

query I rowsort
SELECT - cor0.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

onlyif mysql # use DIV operator for integer division
query I rowsort label-4484
SELECT ( col1 ) DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4484
SELECT ( col1 ) / + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - ( - 4 ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

onlyif mysql # use DIV operator for integer division
query I rowsort label-4486
SELECT ALL + col1 DIV col0 + - col1 DIV col1 FROM tab1 AS cor0
----
-1
-1
7

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL + col1 / col0 + - col1 / col1 FROM tab1 AS cor0
----
-1
-1
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4487
SELECT - col0 DIV col0 + ( - col1 ) + col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4487
SELECT - col0 / col0 + ( - col1 ) + col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + tab2.col1 + + col2 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL col1 / col1 FROM tab0 WHERE NOT NULL < col0
----

query I rowsort
SELECT DISTINCT - tab2.col2 + - col0 AS col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT ( col0 ) NOT BETWEEN ( + col2 * + col2 ) AND + col2 * col2 + + col2
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 * col0 NOT IN ( - col2 / col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col0 + - col0 * cor0.col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT + 59 * + cor0.col1 + col2 AS col2 FROM tab0 cor0
----
5107
5451
5724

query I rowsort
SELECT ALL - col0 * col1 + + 67 * 37 + + col2 FROM tab1 AS cor0
----
1535
1896
2455

query I rowsort
SELECT ALL cor0.col1 * + 46 FROM tab0, tab0 AS cor0
----
9 values hashing to 3cd21e5b80ecb33a8825b0374fd6afdc

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL col1 * - 92 FROM tab1 AS cor0
----
-1196
-2392
-920

query I rowsort
SELECT col0 + + col2 * col1 AS col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT - ( + col1 ) - + col2 AS col2 FROM tab1
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col0 col2 FROM tab0, tab2, tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - 39 + 87 FROM tab0 cor0
----
48
48
48

query I rowsort
SELECT ALL - + ( - col2 ) AS col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT - col1 * col2 + - col0 * 72 FROM tab1 AS cor0
----
-1620
-5178
-7008

query I rowsort
SELECT DISTINCT - 64 * col2 FROM tab0 AS cor0
----
-2112
-5248
-64

query I rowsort
SELECT + col0 + col1 * col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + col2 + + col1 - + col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT 95 * col1 FROM tab2 AS cor0
----
1615
2945
5605

query I rowsort
SELECT - 49 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-343
-3822
-3871

query I rowsort
SELECT ALL - col1 + col2 * col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL + 10 AS col2 FROM tab2 AS cor0
----
10
10
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-4513
SELECT DISTINCT 35 DIV - 75 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT 35 / - 75 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT + + col0 + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + + cor0.col0 * col0 * + col1 FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-4516
SELECT + col0 DIV col0 + - 83 FROM tab0 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-4516
SELECT + col0 / col0 + - 83 FROM tab0 AS cor0
----
-82
-82
-82

query I rowsort
SELECT + + col0 * cor0.col1 + + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT - 20 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
73

query I rowsort
SELECT + + 36 AS col2 FROM tab2 cor0
----
36
36
36

query I rowsort
SELECT ALL + ( tab1.col1 ) AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL 93 * - 53 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 673fd3f0bb8e81b9535b0db2bc4eb29c

query I rowsort
SELECT + col1 + - col0 * - col2 * + tab1.col0 FROM tab1
----
233482
512
614413

query I rowsort
SELECT + ( col0 * col2 + 34 ) FROM tab1
----
196
3682
7714

query I rowsort
SELECT - 47 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5

query I rowsort
SELECT col1 * col2 + tab1.col1 * col2 * col2 FROM tab1
----
121056
33060
77220

query I rowsort
SELECT - 76 * - col0 AS col2 FROM tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT ALL + tab2.col0 + + col1 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT col1 + 1 AS col0 FROM tab0
----
87
92
98

query I rowsort
SELECT ALL - ( 71 ) FROM tab1, tab0 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT ALL + 34 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # use DIV operator for integer division
query I rowsort label-4533
SELECT + ( + col2 ) * col0 DIV col1 + - col1 - col1 AS col2 FROM tab1 cor0
----
-46
344
564

skipif mysql # not compatible
query I rowsort label-4533
SELECT + ( + col2 ) * col0 / col1 + - col1 - col1 AS col2 FROM tab1 cor0
----
-46
344
564

query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) + - col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT col1 * - col0 + col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4536
SELECT + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - cor0.col1 * + ( - 12 ) FROM tab1, tab0 AS cor0
----
9 values hashing to aa9ffb7412d8c82fc327f13292dd4391

query I rowsort
SELECT DISTINCT - 25 FROM tab0
----
-25

query I rowsort
SELECT DISTINCT col2 * 86 FROM tab0
----
2838
7052
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4540
SELECT DISTINCT CAST( - 96 + col1 AS SIGNED ) * col0 FROM tab1
----
-210
-5504
-6640

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT CAST ( - 96 + col1 AS INTEGER ) * col0 FROM tab1
----
-210
-5504
-6640

query I rowsort
SELECT ( col0 ) + + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - 3 + - col0 + - col0 AS col0 FROM tab2
----
-159
-161
-17

query I rowsort
SELECT - tab1.col0 + + col1 AS col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT ALL ( col1 ) - col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT + 42 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT DISTINCT + + col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - - col0 * + 66 FROM tab0 AS cor0
----
1584
2310
5874

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4548
SELECT - + cor0.col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT - + cor0.col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col1 ) * + col0 AS col2 FROM tab1
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4550
SELECT col2 + - col2 DIV - ( + 62 * + cor0.col2 ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4550
SELECT col2 + - col2 / - ( + 62 * + cor0.col2 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col2 + col2 * 9 AS col1 FROM tab2 AS cor0
----
260
270
380

query IIIIII rowsort
SELECT * FROM tab1, tab0 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 * - col1 + 32 * col0 FROM tab2 AS cor0
----
-613
1882
962

query I rowsort
SELECT ALL + cor0.col2 - 1 FROM tab0 AS cor0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4555
SELECT + cor0.col2 DIV CAST( + col0 AS SIGNED ) + col0 * + ( + col2 ) AS col1 FROM tab1 AS cor0
----
180
3648
7681

skipif mysql # not compatible
query I rowsort label-4555
SELECT + cor0.col2 / CAST ( + col0 AS INTEGER ) + col0 * + ( + col2 ) AS col1 FROM tab1 AS cor0
----
180
3648
7681

query I rowsort
SELECT DISTINCT + col1 * - 88 + col0 * + col0 FROM tab0 AS cor0
----
-6992
-7311
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-4557
SELECT + col1 DIV + ( col1 ) + cor0.col2 * - col2 FROM tab0 AS cor0
----
-1088
-6723
0

skipif mysql # not compatible
query I rowsort label-4557
SELECT + col1 / + ( col1 ) + cor0.col2 * - col2 FROM tab0 AS cor0
----
-1088
-6723
0

query I rowsort
SELECT ALL - - col0 * 20 * col2 + + col0 AS col2 FROM tab2 AS cor0
----
3787
40638
60119

query I rowsort
SELECT DISTINCT - + cor0.col0 * col2 + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT col1 + 50 * 93 AS col1 FROM tab0 AS cor0
----
4736
4741
4747

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 * tab1.col1 + + col2 * col2 col0 FROM tab1
----
-3151
-4304
888

onlyif mysql # use DIV operator for integer division
query I rowsort label-4562
SELECT - 74 DIV col1 AS col2 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-4562
SELECT - 74 / col1 AS col2 FROM tab2
----
-1
-2
-4

query I rowsort
SELECT 47 + col1 * + col1 FROM tab2
----
1008
336
3528

query I rowsort
SELECT + 83 * col2 + 40 * + col0 + + tab0.col2 AS col1 FROM tab0
----
10448
1484
3732

query I rowsort
SELECT DISTINCT 22 - + col0 * - col2 FROM tab1
----
184
3670
7702

query I rowsort
SELECT DISTINCT + 59 FROM tab2 cor0
----
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4567
SELECT DISTINCT + - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - + ( - col1 ) + + cor0.col0 * col2 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL + - 80 FROM tab1 AS cor0
----
-80
-80
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4570
SELECT ALL - cor0.col1 * - 71 + col2 DIV - col2 FROM tab1 AS cor0
----
1845
709
922

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL - cor0.col1 * - 71 + col2 / - col2 FROM tab1 AS cor0
----
1845
709
922

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4571
SELECT - CAST( col1 AS SIGNED ) + col0 + 35 AS col2 FROM tab1 AS cor0
----
102
12
89

skipif mysql # not compatible
query I rowsort label-4571
SELECT - CAST ( col1 AS INTEGER ) + col0 + 35 AS col2 FROM tab1 AS cor0
----
102
12
89

query I rowsort
SELECT - - ( col2 ) * cor0.col2 * 94 AS col2 FROM tab0 cor0
----
102366
632056
94

query I rowsort
SELECT - ( 59 ) FROM tab1 cor0
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col1 AS REAL ) * + col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT tab2.col2 * col2 * col2 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT DISTINCT - cor1.col0 * + tab1.col0 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-192
-240
-4096
-5120
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT - 80 AS col1 FROM tab0
----
-80
-80
-80

query I rowsort
SELECT ALL - 67 AS col2 FROM tab1
----
-67
-67
-67

query I rowsort
SELECT DISTINCT + - cor0.col2 + + col2 * - cor0.col0 * + 13 FROM tab1 AS cor0
----
-2160
-47481
-99936

query I rowsort
SELECT ALL + 92 * col0 AS col1 FROM tab2 AS cor0
----
644
7176
7268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 col0 FROM tab2 cor0
----
-62

query I rowsort
SELECT 45 + + col1 * col1 FROM tab2 AS cor0
----
1006
334
3526

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col2 col1 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 68 col0 FROM tab1
----
78
81
94

query I rowsort
SELECT col2 + col2 * - col2 AS col0 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT - ( 45 ) AS col1 FROM tab2
----
-45

query I rowsort
SELECT - 92 AS col2 FROM tab1
----
-92
-92
-92

query I rowsort
SELECT - ( col2 ) * + col2 + - 8 FROM tab0
----
-1097
-6732
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4590
SELECT CAST( NULL AS SIGNED ) * col0 + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4590
SELECT CAST ( NULL AS INTEGER ) * col0 + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + col1 * + 16 FROM tab2 AS cor0
----
1022
351
503

query I rowsort
SELECT ALL - 81 AS col1 FROM tab2 cor0
----
-81
-81
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4593
SELECT DISTINCT + col1 DIV cor0.col1 + + col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT + col1 / cor0.col1 + + col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT ALL + cor0.col1 + + cor0.col1 * 62 + - col2 * + col0 FROM tab1 cor0
----
-3018
-6861
1476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT 79 AS col2 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT - col1 + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL col2 * col1 + cor0.col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT ( - col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + col0 + - col0 * 72 AS col2 FROM tab1 AS cor0
----
-213
-4544
-5680

query I rowsort
SELECT ALL cor2.col0 - + 77 * cor2.col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab0 cor2
----
243 values hashing to bf0dba6616ad0bf18aa71ea873efaa2c

query I rowsort
SELECT + col2 - 12 AS col1 FROM tab2
----
14
15
26

query I rowsort
SELECT - col1 * ( + col1 ) + - col0 FROM tab0
----
-7420
-8370
-9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 col0 FROM tab2
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-4605
SELECT DISTINCT + + col0 + ( 94 ) DIV - col2 FROM tab1 cor0
----
2
63
80

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT + + col0 + ( 94 ) / - col2 FROM tab1 cor0
----
2
63
80

query I rowsort
SELECT + + col1 + - col0 * col0 AS col0 FROM tab0 cor0
----
-1128
-490
-7830

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 + CAST ( 74 AS REAL ) FROM tab0 AS cor0
----
107
156
75

query I rowsort
SELECT DISTINCT + - col0 - + ( cor0.col2 ) FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - col1 + 99 * col1 AS col0 FROM tab2 AS cor0
----
1666
3038
5782

query I rowsort
SELECT + cor2.col1 * 51 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 7dfeb41747019ccf28a597bd2b4ffd38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4611
SELECT + CAST( NULL AS SIGNED ) + - 9 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4611
SELECT + CAST ( NULL AS INTEGER ) + - 9 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 57 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ALL - ( col1 ) * - cor0.col1 + + col0 AS col2 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * col2 + + 48 FROM tab2 AS cor0
----
-1396
-628
-681

query I rowsort
SELECT ALL ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 76 + col1 * - col2 FROM tab1 AS cor0
----
-1172
-1328
-494

query I rowsort
SELECT DISTINCT + + col2 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL + + 99 * 44 + col2 * + 39 AS col1 FROM tab0 AS cor0
----
4395
5643
7554

onlyif mysql # use DIV operator for integer division
query I rowsort label-4619
SELECT DISTINCT + 19 DIV + ( - col1 ) + - col2 * cor0.col1 AS col0 FROM tab2 cor0
----
-1534
-647
-837

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT + 19 / + ( - col1 ) + - col2 * cor0.col1 AS col0 FROM tab2 cor0
----
-1534
-647
-837

query I rowsort
SELECT DISTINCT - col0 * + col2 - + col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT cor2.col0 FROM tab2, tab1 AS cor0, tab0 cor1, tab1, tab1 AS cor2
----
3
64
80

query I rowsort
SELECT ALL - col0 * 26 * col1 + + 69 AS col0 FROM tab2 AS cor0
----
-119583
-34849
-5573

onlyif mysql # use DIV operator for integer division
query I rowsort label-4623
SELECT DISTINCT + cor0.col0 DIV - cor0.col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4623
SELECT DISTINCT + cor0.col0 / - cor0.col1 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4624
SELECT + col1 DIV ( + col2 ) + - col0 AS col2 FROM tab0 AS cor0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-4624
SELECT + col1 / ( + col2 ) + - col0 AS col2 FROM tab0 AS cor0
----
-22
-88
62

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 81a27955147133c47c9e8e63dacc5c37

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
54
57
96

query I rowsort
SELECT 51 + col1 + col1 * col2 FROM tab2 AS cor0
----
1644
714
919

onlyif mysql # use DIV operator for integer division
query I rowsort label-4628
SELECT DISTINCT 87 DIV col0 AS col1 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT 87 / col0 AS col1 FROM tab0 AS cor0
----
0
2
3

query I rowsort
SELECT DISTINCT - 4 + col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1347
-221
-4606

query I rowsort
SELECT col0 - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-4631
SELECT + + 75 + col1 DIV ( + col1 ) + - col2 FROM tab0 AS cor0
----
-6
43
75

skipif mysql # not compatible
query I rowsort label-4631
SELECT + + 75 + col1 / ( + col1 ) + - col2 FROM tab0 AS cor0
----
-6
43
75

query I rowsort
SELECT + 78 FROM tab0 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT - 56 + col1 AS col1 FROM tab1 AS cor0
----
-30
-43
-46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4634
SELECT + col1 * col0 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT + col1 * col0 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + col2 - + col2 AS col1 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT ALL + cor0.col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL cor0.col1 + cor0.col1 * col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT cor2.col1 * 96 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to dd42c3aaa41c16a95b75d54cdb609c91

onlyif mysql # use DIV operator for integer division
query I rowsort label-4639
SELECT DISTINCT col1 DIV - col2 + 52 FROM tab0 AS cor0
----
-45
50
51

skipif mysql # not compatible
query I rowsort label-4639
SELECT DISTINCT col1 / - col2 + 52 FROM tab0 AS cor0
----
-45
50
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 + col2 col0 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT + cor0.col2 + 3 FROM tab1 AS cor0
----
57
60
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4642
SELECT col1 * CAST( - 97 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-8342
-8827
-9409

skipif mysql # not compatible
query I rowsort label-4642
SELECT col1 * CAST ( - 97 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-8342
-8827
-9409

query I rowsort
SELECT - - col2 * + cor0.col2 + 31 AS col0 FROM tab1 AS cor0
----
2947
3280
9247

onlyif mysql # use DIV operator for integer division
query I rowsort label-4644
SELECT DISTINCT + col1 DIV - col2 + col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT + col1 / - col2 + col0 FROM tab1
----
3
64
80

query I rowsort
SELECT + col1 * + 47 * + col2 - col2 FROM tab0 AS cor0
----
133353
350632
4558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 * col2 col0 FROM tab1
----
2646
2793
4704

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4647
SELECT ALL + - CAST( NULL AS DECIMAL ) * + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL + - CAST ( NULL AS REAL ) * + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT col1 * - col2 * col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - + ( cor0.col0 ) * - col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - 38 * col1 AS col0 FROM tab0 cor0
----
-3268
-3458
-3686

query I rowsort
SELECT cor1.col2 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - 36 + cor0.col1 * - col2 * col1 AS col0 FROM tab0 AS cor0
----
-244104
-679078
-9445

query I rowsort
SELECT + col1 * col2 - + col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT 33 - - col0 AS col2 FROM tab0 AS cor0
----
122
57
68

query I rowsort
SELECT - 28 * col0 AS col0 FROM tab2 cor0
----
-196
-2184
-2212

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 col0 FROM tab1
----
76
76
76

query I rowsort
SELECT col2 * col0 + + col1 FROM tab2
----
2087
220
3019

query I rowsort
SELECT tab0.col0 - + 0 AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT col1 + 85 AS col1 FROM tab1
----
111
95
98

query I rowsort
SELECT DISTINCT 44 * - col0 FROM tab1
----
-132
-2816
-3520

query I rowsort
SELECT 30 * col0 AS col1 FROM tab2 AS cor0
----
210
2340
2370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * - col2 col2 FROM tab1 cor0
----
3564
3762
6336

onlyif mysql # use DIV operator for integer division
query I rowsort label-4664
SELECT + 36 DIV col0 AS col2 FROM tab1 cor0
----
0
0
12

skipif mysql # not compatible
query I rowsort label-4664
SELECT + 36 / col0 AS col2 FROM tab1 cor0
----
0
0
12

query I rowsort
SELECT - + 12 AS col0 FROM tab1 cor0
----
-12
-12
-12

onlyif mysql # use DIV operator for integer division
query I rowsort label-4666
SELECT ALL - col2 DIV col0 AS col0 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL - col2 / col0 AS col0 FROM tab2
----
-3
0
0

query I rowsort
SELECT ALL 27 * col0 * ( + ( tab1.col1 ) ) FROM tab1
----
17280
2106
28080

query I rowsort
SELECT - col0 + ( 18 + col1 * + col2 ) AS col1 FROM tab0 AS cor0
----
2832
7391
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * + col0 col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4670
SELECT ALL col0 DIV - tab2.col0 + - col0 DIV tab2.col0 AS col0 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL col0 / - tab2.col0 + - col0 / tab2.col0 AS col0 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT + - 14 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc

query I rowsort
SELECT ALL + col0 * tab2.col1 * + ( tab2.col2 * col2 ) FROM tab2
----
158193
1939292
3110952

query I rowsort
SELECT tab1.col1 + tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1a063bfb694f348122cd0739295ca641

query I rowsort
SELECT ALL 64 * + 94 FROM tab2, tab1 AS cor0
----
9 values hashing to b5b039528dbf8066b378ac73c2be2b4f

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0, tab2, tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 * + cor0.col1 col1 FROM tab2 AS cor0
----
1564
2852
5428

query I rowsort
SELECT + col0 * - 74 AS col1 FROM tab0
----
-1776
-2590
-6586

query I rowsort
SELECT - col0 * ( tab0.col2 + - tab0.col2 ) * col2 AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
0

query I rowsort
SELECT + col1 + + col2 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT - tab0.col0 * + tab0.col0 * col0 AS col1 FROM tab0
----
-13824
-42875
-704969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4682
SELECT - CAST( NULL AS SIGNED ) * + 83 + col2 * + 71 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT - CAST ( NULL AS INTEGER ) * + 83 + col2 * + 71 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 47 + 72 AS col1 FROM tab2 AS cor0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 + col0 + + col1 col0 FROM tab1 AS cor0
----
101
146
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( cor0.col0 ) col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col0 * - col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT ALL + ( + col2 ) * + col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-4688
SELECT col2 DIV col2 + col2 AS col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-4688
SELECT col2 / col2 + col2 AS col2 FROM tab0
----
2
34
83

query I rowsort
SELECT + col2 - col2 AS col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 11 - + col1 * + col0 col2 FROM tab0 AS cor0
----
-1118
-2328
-7098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 - + col2 * col0 col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL - + 6 * col0 AS col1 FROM tab1 AS cor0
----
-18
-384
-480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4693
SELECT ALL - CAST( col2 AS SIGNED ) * cor0.col1 + + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL - CAST ( col2 AS INTEGER ) * cor0.col1 + + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT - 3 + 35 * col2 AS col2 FROM tab2 AS cor0
----
1327
907
942

query I rowsort
SELECT DISTINCT + + 25 * 89 - - col0 FROM tab0 AS cor0
----
2249
2260
2314

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4696
SELECT ALL - CAST( col2 AS SIGNED ) * col2 + + col1 FROM tab2 AS cor0
----
-1427
-617
-698

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL - CAST ( col2 AS INTEGER ) * col2 + + col1 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT - - 42 FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT - 89 * - col1 * + col0 + - 50 AS col2 FROM tab1 AS cor0
----
56910
6892
92510

query I rowsort
SELECT DISTINCT + 63 + - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-7235
-729
28

query I rowsort
SELECT DISTINCT ( - col2 ) + cor0.col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT DISTINCT + col0 * 11 - col2 * 15 AS col2 FROM tab0 AS cor0
----
-231
-251
370

skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( + col2 AS REAL ) * + col1 + - col1 - + col0 FROM tab0 AS cor0
----
-229
-2948
-7642

query I rowsort
SELECT ( - col1 ) + col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - - ( col0 ) + cor0.col0 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort
SELECT - col0 + + col1 * ( + col1 + + col1 ) * - CAST ( col2 AS REAL ) FROM tab0 AS cor0
----
-1358173
-18853
-488160

query I rowsort
SELECT 85 + - col0 * + 98 * - col0 AS col1 FROM tab2 AS cor0
----
4887
596317
611703

query I rowsort
SELECT + ( + col2 ) * col0 + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - ( col2 ) * cor0.col1 + col2 * + cor0.col0 * - 81 AS col0 FROM tab0 AS cor0
----
-2932
-598600
-66990

query I rowsort
SELECT - 6 * + col2 AS col0 FROM tab0 cor0
----
-198
-492
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 + + col2 col2 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-4711
SELECT + col2 * col1 DIV 47 + + col0 + + col2 * + 65 FROM tab2 AS cor0
----
1779
1800
2562

skipif mysql # not compatible
query I rowsort label-4711
SELECT + col2 * col1 / 47 + + col0 + + col2 * + 65 FROM tab2 AS cor0
----
1779
1800
2562

query I rowsort
SELECT DISTINCT + + col2 + col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4713
SELECT + 28 DIV col0 FROM tab1 AS cor0
----
0
0
9

skipif mysql # not compatible
query I rowsort label-4713
SELECT + 28 / col0 FROM tab1 AS cor0
----
0
0
9

query I rowsort
SELECT ALL + ( + col2 ) + + ( col0 ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col1 * cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT + 92 + tab2.col2 FROM tab2
----
118
119
130

onlyif mysql # use DIV operator for integer division
query I rowsort label-4717
SELECT - col0 DIV + col1 - - 57 AS col2 FROM tab2
----
53
56
57

skipif mysql # not compatible
query I rowsort label-4717
SELECT - col0 / + col1 - - 57 AS col2 FROM tab2
----
53
56
57

query I rowsort
SELECT DISTINCT + + col0 * + 88 AS col1 FROM tab2 AS cor0
----
616
6864
6952

query I rowsort
SELECT cor0.col1 * 79 + - col1 * col2 * + 93 FROM tab1 AS cor0
----
-115037
-128518
-52220

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4720
SELECT col2 * - CAST( ( - col1 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-4720
SELECT col2 * - CAST ( ( - col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + col0 + col1 * - ( col0 ) + + ( + cor0.col1 ) FROM tab2 AS cor0
----
-1247
-179
-4465

query I rowsort
SELECT + col0 + - col2 * - col1 * - col2 + 91 FROM tab1 AS cor0
----
-119637
-32335
-75722

query I rowsort
SELECT cor0.col0 * ( + ( col1 ) ) * ( - col0 ) FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT + - col0 * - 25 FROM tab1 AS cor0
----
1600
2000
75

query I rowsort
SELECT - cor0.col2 * - cor0.col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4726
SELECT DISTINCT - + col0 / CAST( NULL AS SIGNED ) + ( col2 ) + CAST( NULL AS SIGNED ) * + 1 * - cor0.col0 col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT - + col0 / CAST ( NULL AS INTEGER ) + ( col2 ) + CAST ( NULL AS INTEGER ) * + 1 * - cor0.col0 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 92 + col0 + col2 FROM tab1
----
149
213
268

onlyif mysql # use DIV operator for integer division
query I rowsort label-4728
SELECT ALL - tab2.col0 * col2 + - col1 DIV tab2.col0 FROM tab2
----
-193
-2028
-3002

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL - tab2.col0 * col2 + - col1 / tab2.col0 FROM tab2
----
-193
-2028
-3002

query I rowsort
SELECT - - tab0.col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL 53 + - tab0.col0 FROM tab0
----
-36
18
29

query I rowsort
SELECT cor1.col2 AS col0 FROM tab0, tab0 cor0, tab2, tab0 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT DISTINCT col1 + + cor0.col1 * 70 FROM tab1 AS cor0
----
1846
710
923

query I rowsort
SELECT cor0.col2 + + 63 FROM tab2 AS cor0
----
101
89
90

skipif mysql # not compatible
query I rowsort
SELECT - - cor0.col1 * CAST ( - ( - col0 ) AS REAL ) + col1 + col0 FROM tab2 AS cor0
----
1439
255
4739

onlyif mysql # use DIV operator for integer division
query I rowsort label-4735
SELECT ALL + tab1.col1 DIV col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL + tab1.col1 / col0 FROM tab1
----
0
0
8

query I rowsort
SELECT ALL + 43 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT DISTINCT + + col0 + col1 * - cor0.col0 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-4738
SELECT DISTINCT + + 78 DIV col1 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT + + 78 / col1 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col2 + col1 * col1 FROM tab1 cor0
----
43
622
73

query I rowsort
SELECT DISTINCT ( + col2 ) * - col1 - tab2.col2 AS col1 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT - 3 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

query I rowsort
SELECT ALL - 17 * - col0 FROM tab1 AS cor0
----
1088
1360
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4743
SELECT ALL col0 + col0 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL col0 + col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 94 + - col0 * ( col1 ) FROM tab2
----
-123
-1249
-4508

query I rowsort
SELECT ALL ( col0 ) * - tab2.col2 + + col2 * - tab2.col0 + col2 AS col1 FROM tab2
----
-351
-4030
-5966

query I rowsort
SELECT ALL - col1 + col1 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + col1 * - cor0.col1 + - 89 AS col1 FROM tab1 cor0
----
-189
-258
-765

query I rowsort
SELECT DISTINCT col2 * + col2 + - col0 AS col1 FROM tab0 cor0
----
-34
1065
6635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * + ( col2 ) + col1 col2 FROM tab1 cor0
----
1274
1456
590

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 + ( col0 ) AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + - col2 + col0 * 6 + - col0 FROM tab0 AS cor0
----
174
363
87

query I rowsort
SELECT cor0.col1 * col2 + - col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-4753
SELECT + + col2 DIV - col0 AS col1 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4753
SELECT + + col2 / - col0 AS col1 FROM tab0 cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4754
SELECT - 26 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4754
SELECT - 26 / + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4755
SELECT CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4755
SELECT CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL + 43 FROM tab0, tab1, tab2 cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT + 50 AS col0 FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT col0 + tab2.col0 * + col0 AS col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT + col0 + ( tab1.col0 ) FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT - 98 * 28 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-2744

query I rowsort
SELECT ALL - col2 * col0 * + col1 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - - col1 + + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + - cor0.col1 * col0 + - col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT 1 FROM tab0, tab2 AS cor0
----
1

query I rowsort
SELECT ( 56 ) AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 9cee91ca9c60ba6e45a33b388a3b7d9b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col2 * ( col2 ) + + col1 AS col0 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT col1 + cor0.col0 * 0 * col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - cor0.col2 + + col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - col0 + + 71 AS col1 FROM tab0 AS cor0
----
-18
36
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-4771
SELECT ALL + cor0.col1 DIV - cor0.col0 FROM tab1 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL + cor0.col1 / - cor0.col0 FROM tab1 cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT + 3 * - ( - col1 ) + + 83 AS col0 FROM tab0 AS cor0
----
341
356
374

query I rowsort
SELECT ALL - 95 * + col2 FROM tab1 AS cor0
----
-5130
-5415
-9120

query I rowsort
SELECT ALL + col2 + + 25 * + col2 FROM tab0 AS cor0
----
2132
26
858

query I rowsort
SELECT ALL 22 * + col0 * + col2 FROM tab0
----
160556
17424
770

onlyif mysql # use DIV operator for integer division
query I rowsort label-4776
SELECT ALL - tab2.col2 DIV col0 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL - tab2.col2 / col0 FROM tab2
----
-3
0
0

query I rowsort
SELECT ALL - 63 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT - cor0.col1 * 25 FROM tab2 cor0
----
-1475
-425
-775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 48 * 54 col0 FROM tab0 AS cor0
----
2592
2592
2592

query I rowsort
SELECT 12 * cor0.col1 FROM tab1 AS cor0
----
120
156
312

query I rowsort
SELECT + col2 * + col1 + col0 * col0 AS col2 FROM tab1 AS cor0
----
1413
4666
7648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 * col1 + - col0 col1 FROM tab0 AS cor0
----
177480
329280
736920

query I rowsort
SELECT + 32 * 82 AS col0 FROM tab0 cor0
----
2624
2624
2624

query I rowsort
SELECT - + 23 AS col0 FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT ALL tab0.col0 AS col1 FROM tab1, tab2 cor0 CROSS JOIN tab0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL + 82 + col0 FROM tab2 cor0
----
160
161
89

query I rowsort
SELECT ALL col0 - - cor0.col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4788
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4788
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL 3 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT ALL + - ( cor0.col1 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT DISTINCT + - 17 - - ( + col2 * + 11 ) FROM tab0 AS cor0
----
-6
346
885

query I rowsort
SELECT + col1 + + 9 FROM tab2 AS cor0
----
26
40
68

query I rowsort
SELECT + 59 + + 34 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT col1 * 91 AS col2 FROM tab0
----
7826
8281
8827

query I rowsort
SELECT ALL + tab2.col0 * 14 FROM tab2
----
1092
1106
98

query I rowsort
SELECT col2 * + ( + col1 + - col1 ) FROM tab2
----
0
0
0

query I rowsort
SELECT col2 * ( col0 ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT + col0 * col1 + - col0 + + col2 AS col0 FROM tab1 cor0
----
1056
129
633

query I rowsort
SELECT DISTINCT tab0.col0 + col2 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT - col2 + col2 * col2 AS col1 FROM tab2 WHERE NOT ( NULL ) IN ( + tab2.col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 = ( + col2 )
----

query I rowsort
SELECT - col0 + col1 + col0 * + col0 AS col1 FROM tab1
----
32
4042
6333

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col1 )
----

query I rowsort
SELECT + col2 * - col0 + col2 - + col1 FROM tab1 WHERE NOT ( col2 * - col2 ) NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT col2 + + col1 + tab1.col2 FROM tab1
----
124
134
205

query I rowsort
SELECT ALL - col1 + - col2 * col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT cor0.col0 * cor0.col1 + cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b2c2ff6e5a3eeadb8a09f26aece0118e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4808
SELECT ALL - col1 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - col1 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT ALL col1 * + col0 AS col2 FROM tab1 cor0
----
1040
640
78

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( cor0.col0 )
----

query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4812
SELECT DISTINCT col0 * col1 * - cor0.col1 + col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
-177503
-329314
-737008

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT col0 * col1 * - cor0.col1 + col0 / + col0 AS col2 FROM tab0 AS cor0
----
-177503
-329314
-737008

onlyif mysql # use DIV operator for integer division
query I rowsort label-4813
SELECT DISTINCT col0 * col1 DIV col2 - - tab1.col2 AS col2 FROM tab1
----
106
55
68

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT col0 * col1 / col2 - - tab1.col2 AS col2 FROM tab1
----
106
55
68

query I rowsort
SELECT DISTINCT - col2 * + col0 - + tab1.col0 AS col2 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT - col2 * tab1.col0 + tab1.col2 - tab1.col1 * col1 FROM tab1
----
-3691
-7753
-784

query I rowsort
SELECT col0 + col2 - col0 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col1 col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT + col2 * + col2 * col1 AS col1 FROM tab0
----
611884
93654
97

query I rowsort
SELECT cor0.col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col2 + cor0.col2 + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col2 * + col0 - + col1 FROM tab1
----
136
3638
7667

query I rowsort
SELECT DISTINCT + col2 * col1 * col2 - - col0 AS col0 FROM tab0
----
132
611973
93678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * col1 col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL + - col0 + + col0 * + col2 AS col1 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL col1 + + col0 * - col1 * col2 + + col1 FROM tab0 AS cor0
----
-3201
-663936
-67940

onlyif mysql # use DIV operator for integer division
query I rowsort label-4826
SELECT DISTINCT - col1 + + tab2.col1 * + col1 DIV col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT - col1 + + tab2.col1 * + col1 / col1 FROM tab2
----
0

query I rowsort
SELECT - col1 * + cor0.col0 + - col1 + col2 AS col1 FROM tab2 AS cor0
----
-1322
-221
-4635

query I rowsort
SELECT + col1 + + col2 + + col1 FROM tab1 cor0
----
106
122
77

query I rowsort
SELECT - col1 + col2 * - col1 * col2 FROM tab2 AS cor0
----
-22630
-24565
-39943

query I rowsort
SELECT ALL cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4831
SELECT DISTINCT - col1 * col0 DIV col2 + + col2 + col2 * - col2 FROM tab0 AS cor0
----
-1118
-3395
-6740

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT - col1 * col0 / col2 + + col2 + col2 * - col2 FROM tab0 AS cor0
----
-1118
-3395
-6740

query I rowsort
SELECT DISTINCT - + col2 * - col1 + col0 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT col1 - col2 * - col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL + col2 * col1 * + col2 + - col2 + + col2 AS col2 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT + col1 * col0 * - col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-106080
-1488
-358897

query I rowsort
SELECT DISTINCT + col0 + col0 + col2 AS col1 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT ALL col0 + tab1.col0 * + col0 AS col1 FROM tab1
----
12
4160
6480

query I rowsort
SELECT tab0.col2 * col0 * 44 FROM tab0
----
1540
321112
34848

query I rowsort
SELECT DISTINCT + col2 * cor0.col0 * col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
1260
19032
649611

query I rowsort
SELECT DISTINCT + tab1.col2 AS col2 FROM tab1, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col1 * - col0 * 59 AS col1 FROM tab1
----
-37760
-4602
-61360

query I rowsort
SELECT - col0 + - col0 * col1 * 17 + + col2 FROM tab0 AS cor0
----
-137690
-35079
-57749

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * + col0 col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL + + col0 + - cor0.col2 + cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
1232
1353
577

query I rowsort
SELECT ALL + + 26 AS col0 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT - + col2 * ( 49 ) + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1196
-1316
-1783

query I rowsort
SELECT - col2 + 74 FROM tab2 AS cor0
----
36
47
48

query I rowsort
SELECT ALL col0 + 28 FROM tab1 AS cor0
----
108
31
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4849
SELECT DISTINCT + col2 DIV col2 + 54 * cor0.col0 * CAST( col0 AS SIGNED ) + col0 * + col0 FROM tab1 AS cor0
----
225281
352001
496

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT + col2 / col2 + 54 * cor0.col0 * CAST ( col0 AS INTEGER ) + col0 * + col0 FROM tab1 AS cor0
----
225281
352001
496

query I rowsort
SELECT - - col1 + + 16 AS col0 FROM tab1 cor0
----
26
29
42

query I rowsort
SELECT DISTINCT + col0 + + 43 * cor0.col2 FROM tab0 AS cor0
----
1443
3615
78

query I rowsort
SELECT DISTINCT col1 + cor0.col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT + col2 * + 74 * + col2 + + col0 FROM tab2 AS cor0
----
106935
50102
53953

query I rowsort
SELECT ALL col1 + tab0.col2 + col1 * 42 FROM tab0
----
3731
3995
4172

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4855
SELECT 71 + tab1.col1 + + CAST( NULL AS SIGNED ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT 71 + tab1.col1 + + CAST ( NULL AS INTEGER ) * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * col2 + - col1 * ( col2 ) AS col2 FROM tab2
----
-1026
-3562
-3648

query I rowsort
SELECT + tab2.col0 AS col1 FROM tab2 WHERE ( col2 ) <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL = + col2 * - col1 + + col0 * col1
----

query I rowsort
SELECT DISTINCT col0 - - col0 * col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT ALL tab0.col0 * col2 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 + + col2 + - col1 AND NULL
----

query I rowsort
SELECT tab2.col0 * col2 AS col0 FROM tab2 WHERE NOT + col0 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT - col2 <= ( col2 + - col0 * - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4863
SELECT col0 - - col2 DIV - col0 FROM tab1
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-4863
SELECT col0 - - col2 / - col0 FROM tab1
----
-15
64
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4864
SELECT + tab0.col2 * tab0.col1 DIV col1 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4864
SELECT + tab0.col2 * tab0.col1 / col1 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - tab0.col0 + col0 + + col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - col2 + - tab2.col2 + col0 AS col2 FROM tab2
----
-47
26
3

query I rowsort
SELECT ALL + col0 * + col2 FROM tab2 WHERE NOT - col0 - col1 <= ( - col1 )
----

query I rowsort
SELECT tab0.col0 * col2 FROM tab0 WHERE + col2 * col2 < - col0 + col0 * - col2
----

query I rowsort
SELECT tab2.col1 * - col2 * + col2 AS col2 FROM tab2
----
-22599
-24548
-39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + + tab1.col1 col2 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT ALL - col2 * tab2.col0 * - col1 + col1 + col0 AS col1 FROM tab2
----
119789
51130
5897

onlyif mysql # use DIV operator for integer division
query I rowsort label-4872
SELECT DISTINCT - col1 DIV tab1.col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT - col1 / tab1.col2 AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col2 + tab2.col0 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT col0 - col0 * tab2.col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT - col1 + + tab2.col2 * col1 FROM tab2
----
1475
629
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * tab0.col0 col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL tab2.col2 + - col2 AS col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * cor0.col0 * cor0.col2 col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT - col0 * 15 FROM tab2 cor0
----
-105
-1170
-1185

query I rowsort
SELECT col2 * 61 AS col2 FROM tab1 cor0
----
3294
3477
5856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT col2 * + 11 AS col2 FROM tab2 AS cor0
----
286
297
418

onlyif mysql # use DIV operator for integer division
query I rowsort label-4883
SELECT DISTINCT - 73 * col0 DIV - ( + 7 ) FROM tab0
----
250
365
928

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT - 73 * col0 / - ( + 7 ) FROM tab0
----
250
365
928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + ( col2 ) * col0 + col1 * col0 col2 FROM tab0 cor0
----
15488
2942
3527

query I rowsort
SELECT + + cor0.col1 * 25 AS col2 FROM tab2 AS cor0
----
1475
425
775

query I rowsort
SELECT ALL - cor1.col0 * - cor1.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8ec1e5b752a6eed5f6e85ed78b46af3c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * 62 col0 FROM tab0 AS cor0
----
5270
5270
5270

query I rowsort
SELECT DISTINCT - + col0 + + ( + col2 ) FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT - 44 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT DISTINCT col1 * ( + col2 ) AS col0 FROM tab2
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 + - 15 col1 FROM tab2
----
26

query I rowsort
SELECT + col2 * + col0 + cor0.col2 + cor0.col1 * - col0 FROM tab0 AS cor0
----
-1239
-3359
-719

query I rowsort
SELECT col0 * + col0 + col0 FROM tab1
----
12
4160
6480

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2, tab1 AS cor1, tab0 AS cor2
----
13122 values hashing to 74b4c2334a90083cd952a6defd0ed7f6

query I rowsort
SELECT + ( - col2 * + col2 ) + 77 * + col2 + col1 * - 37 FROM tab1
----
-2305
280
770

onlyif mysql # use DIV operator for integer division
query I rowsort label-4896
SELECT DISTINCT + 47 DIV col1 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT + 47 / col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL 16 * col1 AS col1 FROM tab2
----
272
496
944

query I rowsort
SELECT - 5 + col0 FROM tab2
----
2
73
74

query I rowsort
SELECT 30 * tab1.col2 AS col2 FROM tab1
----
1620
1710
2880

query I rowsort
SELECT DISTINCT ( + col1 ) + + col1 AS col2 FROM tab1 cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4902
SELECT ALL ( - col0 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL ( - col0 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 97 FROM tab0, tab0 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT + - col2 * col1 + + col0 * col1 * + col2 AS col2 FROM tab2 AS cor0
----
118118
5022
50388

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4905
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - col1 + - col0 * - col2 * col2 FROM tab2 AS cor0
----
114059
5072
52669

query I rowsort
SELECT + col0 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - 38 AS col0 FROM tab2, tab1 AS cor0
----
-38

query I rowsort
SELECT - + cor0.col2 + 58 FROM tab1 AS cor0
----
-38
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4910
SELECT - - cor0.col0 * + col0 * + col0 + col2 DIV col0 + 77 col1 FROM tab0 AS cor0
----
13902
42952
705046

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4910
SELECT - - cor0.col0 * + col0 * + col0 + col2 / col0 + 77 col1 FROM tab0 AS cor0
----
13902
42952
705046

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4911
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
NULL

query I rowsort
SELECT 17 * - 97 AS col0 FROM tab2 AS cor0
----
-1649
-1649
-1649

query I rowsort
SELECT - cor0.col1 * - col1 + + 25 FROM tab1 AS cor0
----
125
194
701

query I rowsort
SELECT 8 + - col1 AS col0 FROM tab0 AS cor0
----
-78
-83
-89

query I rowsort
SELECT + col0 * + col1 + 96 AS col2 FROM tab1 AS cor0
----
1136
174
736

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4916
SELECT ALL CAST( 45 * - col2 AS SIGNED ) + ( - col2 * col0 ) AS col2 FROM tab0
----
-10988
-2277
-80

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL CAST ( 45 * - col2 AS INTEGER ) + ( - col2 * col0 ) AS col2 FROM tab0
----
-10988
-2277
-80

query I rowsort
SELECT 33 * col2 - col0 FROM tab2 AS cor0
----
1175
780
884

query I rowsort
SELECT ALL + cor1.col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + + col1 + + col1 * - col0 * - col0 AS col0 FROM tab0 cor0
----
118922
49622
720902

query I rowsort
SELECT + 96 + cor0.col1 * col1 FROM tab0 AS cor0
----
7492
8377
9505

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - 66 * + col1 + col1 * - 70 * col2 AS col0 FROM tab2 AS cor0
----
-111274
-46342
-60636

query I rowsort
SELECT DISTINCT - col2 + - ( col1 ) * cor0.col0 FROM tab1 AS cor0
----
-1136
-132
-697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 44 * col2 + + 8 * cor0.col1 col2 FROM tab2 cor0
----
-28288
-36580
-67024

query I rowsort
SELECT ALL - 61 FROM tab2 cor0
----
-61
-61
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-4926
SELECT ALL + col1 + - 93 DIV col0 AS col1 FROM tab0 AS cor0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL + col1 + - 93 / col0 AS col1 FROM tab0 AS cor0
----
83
90
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4927
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4927
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT tab0.col2 * 70 AS col0 FROM tab0
----
2310
5740
70

query I rowsort
SELECT ALL - tab2.col2 + 68 FROM tab2
----
30
41
42

query I rowsort
SELECT DISTINCT 45 AS col0 FROM tab1, tab2 AS cor0
----
45

query I rowsort
SELECT col0 + tab1.col2 * - col0 AS col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT ALL ( - 25 ) + col0 AS col2 FROM tab1
----
-22
39
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-4933
SELECT ALL + col0 DIV 52 + - col1 FROM tab0
----
-86
-90
-97

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL + col0 / 52 + - col1 FROM tab0
----
-86
-90
-97

query I rowsort
SELECT DISTINCT - 52 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-52

query I rowsort
SELECT ALL + col1 * 81 AS col1 FROM tab2 AS cor0
----
1377
2511
4779

query I rowsort
SELECT DISTINCT - cor0.col2 + ( + 1 ) FROM tab1 AS cor0
----
-53
-56
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4937
SELECT + + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4937
SELECT + + col0 / col1 AS col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT ALL 58 * tab1.col0 FROM tab1
----
174
3712
4640

query I rowsort
SELECT - col2 + col0 * ( tab1.col1 ) FROM tab1
----
24
583
944

query I rowsort
SELECT + 20 AS col0 FROM tab0
----
20
20
20

query I rowsort
SELECT ALL + 42 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT + col2 - + col1 * tab1.col0 AS col0 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT - + cor0.col0 * col2 + + cor0.col0 - cor0.col1 AS col0 FROM tab1 cor0
----
-185
-3594
-7613

query I rowsort
SELECT - col0 * - col0 - - col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL - - col1 * + col2 + + col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1566
2090
2210

query I rowsort
SELECT - + col2 * - ( + col1 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + + cor0.col0 + + col1 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT col2 * cor0.col2 - 46 FROM tab1 AS cor0
----
2870
3203
9170

query I rowsort
SELECT ALL - + cor0.col1 + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT + - col1 * cor0.col0 + col0 + - cor0.col1 * 72 AS col0 FROM tab2 AS cor0
----
-2442
-2488
-8772

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4951
SELECT cor0.col2 * CAST( col2 AS SIGNED ) + + col2 AS col2 FROM tab2 AS cor0
----
1482
702
756

skipif mysql # not compatible
query I rowsort label-4951
SELECT cor0.col2 * CAST ( col2 AS INTEGER ) + + col2 AS col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT + - col2 + + col2 * col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT - col1 * - col1 - + col1 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT - tab1.col2 + - col2 AS col2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT ALL col0 + 89 AS col0 FROM tab1 AS cor0
----
153
169
92

query I rowsort
SELECT col0 * + 76 * + col0 FROM tab1 AS cor0
----
311296
486400
684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * - 50 col0 FROM tab0 AS cor0
----
1650
4100
50

query I rowsort
SELECT DISTINCT + cor0.col1 * + 26 FROM tab1 AS cor0
----
260
338
676

query I rowsort
SELECT ALL + col2 * tab2.col2 * col1 AS col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT ALL 8 + - 45 AS col0 FROM tab1 AS cor0
----
-37
-37
-37

query I rowsort
SELECT + 79 * col1 - + col1 AS col2 FROM tab1 AS cor0
----
1014
2028
780

query I rowsort
SELECT ALL + ( - col2 ) + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT col1 + - ( + cor0.col2 ) * col2 AS col0 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-4964
SELECT + col0 + col0 DIV - col1 FROM tab2 AS cor0
----
7
75
77

skipif mysql # not compatible
query I rowsort label-4964
SELECT + col0 + col0 / - col1 FROM tab2 AS cor0
----
7
75
77

query I rowsort
SELECT ALL + 24 * col0 + - col1 FROM tab2 AS cor0
----
137
1813
1879

query I rowsort
SELECT DISTINCT ( + 27 ) * col1 AS col2 FROM tab2 AS cor0
----
1593
459
837

query I rowsort
SELECT - 15 * - cor0.col1 FROM tab1 AS cor0
----
150
195
390

query I rowsort
SELECT ALL tab1.col0 + col0 - col1 FROM tab1
----
-20
118
147

query I rowsort
SELECT DISTINCT - + 40 * col1 * col1 FROM tab1 AS cor0
----
-27040
-4000
-6760

query I rowsort
SELECT DISTINCT - ( - col2 ) * cor0.col2 + - 97 FROM tab0 AS cor0
----
-96
6627
992

query I rowsort
SELECT + ( - col2 ) * + col1 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - - col0 + - ( col2 ) AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL + - col0 * - col2 - + col2 AS col0 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT + 55 * 14 + col0 * - 82 AS col0 FROM tab2 AS cor0
----
-5626
-5708
196

query I rowsort
SELECT DISTINCT + 97 AS col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT + col2 * + tab1.col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - + 57 + cor0.col0 * 23 FROM tab0 cor0
----
1990
495
748

query I rowsort
SELECT - col1 + col0 * - ( 80 ) * - col0 AS col2 FROM tab2 AS cor0
----
3889
486661
499263

query I rowsort
SELECT DISTINCT + 50 + + col0 AS col1 FROM tab0 AS cor0
----
139
74
85

query I rowsort
SELECT + - col1 + - col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4981
SELECT ALL + col2 + - col2 DIV 25 FROM tab1 AS cor0
----
52
55
93

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL + col2 + - col2 / 25 FROM tab1 AS cor0
----
52
55
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4982
SELECT + col0 * col1 + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-4982
SELECT + col0 * col1 + col0 / col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT 2 AS col2 FROM tab1 AS cor0
----
2

query I rowsort
SELECT 10 * col2 AS col2 FROM tab0 cor0
----
10
330
820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 95 col0 FROM tab2 AS cor0
----
95
95
95

query I rowsort
SELECT - + col0 * col0 * 18 FROM tab0 AS cor0
----
-10368
-142578
-22050

query I rowsort
SELECT ALL - + 25 AS col0 FROM tab2 AS cor0
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) col1 FROM tab1 cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4990
SELECT ALL col1 DIV + cor0.col1 + 4 * cor0.col2 FROM tab1 AS cor0
----
217
229
385

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL col1 / + cor0.col1 + 4 * cor0.col2 FROM tab1 AS cor0
----
217
229
385

query I rowsort
SELECT + col1 * - col1 + col0 AS col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT + col1 * col2 + - col0 * + 39 FROM tab0
----
-1268
1902
3991

query I rowsort
SELECT col2 + - tab0.col1 * - 59 AS col0 FROM tab0
----
5107
5451
5724

query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * col0 col1 FROM tab0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 col2 FROM tab1
----
-12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4997
SELECT CAST( + ( - col1 ) AS SIGNED ) * 43 FROM tab2
----
-1333
-2537
-731

skipif mysql # not compatible
query I rowsort label-4997
SELECT CAST ( + ( - col1 ) AS INTEGER ) * 43 FROM tab2
----
-1333
-2537
-731

query I rowsort
SELECT DISTINCT 28 AS col2 FROM tab1, tab0, tab0 AS cor0, tab1 AS cor1
----
28

query I rowsort
SELECT - + 16 + cor0.col0 FROM tab0 AS cor0
----
19
73
8

query I rowsort
SELECT col1 * col0 * col1 + col0 FROM tab2 AS cor0
----
22910
271596
6734

query I rowsort
SELECT col1 * - col2 + - col2 AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT + col2 * + col1 + + ( col1 ) AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + - cor0.col1 * col2 * + cor0.col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) * tab0.col0 col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - + col2 + col1 AS col0 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT - - col1 * col1 + - col1 AS col0 FROM tab1 AS cor0
----
156
650
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5007
SELECT DISTINCT - + cor0.col2 * 0 * + col0 + + col0 DIV - col0 + + col1 FROM tab1 cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT - + cor0.col2 * 0 * + col0 + + col0 / - col0 + + col1 FROM tab1 cor0
----
12
25
9

query I rowsort
SELECT col2 + + ( - 3 ) AS col0 FROM tab2 AS cor0
----
23
24
35

query I rowsort
SELECT ALL col2 * cor0.col2 - col2 AS col0 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT DISTINCT col1 * - 13 + col2 + col2 FROM tab2 AS cor0
----
-145
-349
-715

query I rowsort
SELECT + col1 * ( - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - col1 * ( + col2 * - cor0.col0 ) - + col0 AS col0 FROM tab2 AS cor0
----
119574
50955
5852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( col2 ) + col2 col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT + col2 + 14 FROM tab2 AS cor0
----
40
41
52

query I rowsort
SELECT + + col0 * - 72 AS col1 FROM tab1 AS cor0
----
-216
-4608
-5760

query I rowsort
SELECT tab0.col2 * col1 + tab0.col0 * col1 FROM tab0
----
15561
3492
4902

query I rowsort
SELECT + col1 * 75 - + 5 AS col2 FROM tab1 AS cor0
----
1945
745
970

query I rowsort
SELECT - - ( 68 ) + + col2 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2770
-29
-7394

query I rowsort
SELECT - col0 * + 18 + cor0.col2 FROM tab2 AS cor0
----
-1378
-1384
-99

query I rowsort
SELECT - 30 + + col1 FROM tab0 AS cor0
----
56
61
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + tab1.col2 col1 FROM tab1
----
121
176
57

query I rowsort
SELECT ( - 13 ) + cor0.col1 FROM tab1 AS cor0
----
-3
0
13

query I rowsort
SELECT ALL - ( - col0 ) AS col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL - + 73 FROM tab0 AS cor0
----
-73
-73
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 * + col1 + ( col2 ) + + col2 col0 FROM tab1 cor0
----
-16032
-36396
-5586

query I rowsort
SELECT 77 - - col0 * + col2 AS col2 FROM tab1 AS cor0
----
239
3725
7757

onlyif mysql # use DIV operator for integer division
query I rowsort label-5027
SELECT - + col2 + 4 DIV - col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5027
SELECT - + col2 + 4 / - col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 65 * + col0 * cor0.col0 + + 90 col2 FROM tab0 AS cor0
----
-37350
-514775
-79535

query I rowsort
SELECT ALL + tab0.col0 * col1 * - col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL col0 * col2 * ( col1 + + col1 ) FROM tab1
----
199680
72960
8424

query I rowsort
SELECT ALL - col0 * - 99 FROM tab1 cor0
----
297
6336
7920

query I rowsort
SELECT DISTINCT + col0 * 0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 * + 56 FROM tab1 AS cor0
----
3024
3192
5376

query I rowsort
SELECT DISTINCT + - ( ( cor0.col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - - cor0.col0 + cor0.col2 * - col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col1 + - col1 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col0 * col2 + + col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT 92 + + col0 + col0 FROM tab1 cor0
----
220
252
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5040
SELECT 1 + - 86 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-85
0

skipif mysql # not compatible
query I rowsort label-5040
SELECT 1 + - 86 / col2 AS col2 FROM tab0 AS cor0
----
-1
-85
0

query I rowsort
SELECT + 54 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT ALL 53 * col2 FROM tab1
----
2862
3021
5088

query I rowsort
SELECT ALL + tab1.col1 * ( tab0.col0 ) - - 45 AS col0 FROM tab1, tab2, tab1 cor0, tab0
----
81 values hashing to 0972c1555531f108a824802576791f63

query I rowsort
SELECT DISTINCT col2 * - ( - 78 ) AS col2 FROM tab1
----
4212
4446
7488

query I rowsort
SELECT 66 AS col1 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 08000767d0a951e4a7a7f8edda07fb64

query I rowsort
SELECT + cor0.col0 * - col1 * + col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT - cor0.col2 * 74 AS col1 FROM tab2 AS cor0
----
-1924
-1998
-2812

query I rowsort
SELECT DISTINCT + col1 * + col0 + + col0 FROM tab2
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5050
SELECT DISTINCT + tab0.col2 DIV 27 FROM tab0, tab2 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5050
SELECT DISTINCT + tab0.col2 / 27 FROM tab0, tab2 AS cor0
----
0
1
3

query I rowsort
SELECT DISTINCT - 43 + - col1 * - col0 AS col1 FROM tab1 AS cor0
----
35
597
997

query I rowsort
SELECT ALL + tab0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL - + col1 * - col1 - + col2 FROM tab0 cor0
----
7363
8199
9408

query I rowsort
SELECT - + col2 * - cor0.col2 * 87 AS col0 FROM tab0 AS cor0
----
584988
87
94743

query I rowsort
SELECT + 23 + - col2 AS col2 FROM tab2 AS cor0
----
-15
-3
-4

query I rowsort
SELECT DISTINCT - + 38 * + col1 AS col1 FROM tab2 AS cor0
----
-1178
-2242
-646

query I rowsort
SELECT ALL - - cor0.col0 * + col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - 42 * + col0 AS col2 FROM tab1 AS cor0
----
-126
-2688
-3360

query I rowsort
SELECT DISTINCT - col0 + + col2 * - col1 FROM tab1 AS cor0
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-5060
SELECT ALL - col1 DIV col1 - + ( - col0 ) FROM tab0 cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL - col1 / col1 - + ( - col0 ) FROM tab0 cor0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 7 col0 FROM tab2 AS cor0
----
-7
-7
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * cor0.col0 col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT 38 + col0 * col0 AS col2 FROM tab2 AS cor0
----
6122
6279
87

query I rowsort
SELECT ALL + + col0 + + col0 * - col1 * col1 FROM tab2 AS cor0
----
-22752
-271440
-6720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * cor0.col1 + 54 * cor0.col1 col0 FROM tab2 AS cor0
----
-1416
-425
1457

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col0 col0 FROM tab2, tab2 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to adaea38eae032c1639715f21831dd376

query I rowsort
SELECT DISTINCT + + col0 + 25 AS col0 FROM tab2 AS cor0
----
103
104
32

query I rowsort
SELECT DISTINCT - - col2 * - 57 * + col2 FROM tab1 AS cor0
----
-166212
-185193
-525312

query I rowsort
SELECT + + col2 + + col1 + - col2 * + col2 FROM tab2 AS cor0
----
-1389
-591
-671

query I rowsort
SELECT - 81 + - 79 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60b2d877c40510a3d56d933bf79baf22

query I rowsort
SELECT DISTINCT - - col1 + - 78 FROM tab1 AS cor0
----
-52
-65
-68

query I rowsort
SELECT - col0 * col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-5073
SELECT DISTINCT + col1 + + 91 DIV col1 AS col2 FROM tab1 AS cor0
----
19
20
29

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT + col1 + + 91 / col1 AS col2 FROM tab1 AS cor0
----
19
20
29

query I rowsort
SELECT - + col1 * + col1 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-327
-3507
-988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5075
SELECT - CAST( + 48 AS SIGNED ) + - col0 * + col0 FROM tab1 AS cor0
----
-4144
-57
-6448

skipif mysql # not compatible
query I rowsort label-5075
SELECT - CAST ( + 48 AS INTEGER ) + - col0 * + col0 FROM tab1 AS cor0
----
-4144
-57
-6448

query I rowsort
SELECT col0 * - ( cor0.col0 ) * - col1 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT + ( + col1 ) FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL 93 * - col2 * + col2 - + 76 AS col2 FROM tab1 AS cor0
----
-271264
-302233
-857164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5079
SELECT + - CAST( - 63 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
2079
5166
63

skipif mysql # not compatible
query I rowsort label-5079
SELECT + - CAST ( - 63 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
2079
5166
63

query I rowsort
SELECT ALL - col1 * - 52 AS col1 FROM tab1 AS cor0
----
1352
520
676

query I rowsort
SELECT DISTINCT + - col0 * + 75 AS col1 FROM tab1 AS cor0
----
-225
-4800
-6000

query I rowsort
SELECT ALL 27 FROM tab0 AS cor0
----
27
27
27

query I rowsort
SELECT DISTINCT 76 FROM tab0, tab0 AS cor0
----
76

query I rowsort
SELECT ALL + 10 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ( col2 * - col2 ) - col1 AS col1 FROM tab1
----
-2942
-3259
-9229

query I rowsort
SELECT 39 FROM tab0, tab2, tab0 cor0
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT + col1 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL + col2 * - col0 AS col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - + col0 + + col1 * ( + col2 ) FROM tab2 AS cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-5090
SELECT DISTINCT - col0 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT - col0 / cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT DISTINCT - col1 + - col0 * 7 AS col1 FROM tab2 AS cor0
----
-570
-605
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5092
SELECT ALL - cor0.col1 + + col1 - CAST( 66 * + col1 + 71 AS SIGNED ) FROM tab2 AS cor0
----
-1193
-2117
-3965

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL - cor0.col1 + + col1 - CAST ( 66 * + col1 + 71 AS INTEGER ) FROM tab2 AS cor0
----
-1193
-2117
-3965

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5093
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 * col1 col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 * col1 col2 FROM tab0
----
NULL

query I rowsort
SELECT tab2.col2 + tab2.col1 AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT - tab2.col0 * ( + col1 * - tab2.col0 ) + - col1 AS col1 FROM tab2
----
106080
1488
358897

onlyif mysql # use DIV operator for integer division
query I rowsort label-5096
SELECT - 77 DIV col0 + + col1 AS col2 FROM tab0
----
83
91
95

skipif mysql # not compatible
query I rowsort label-5096
SELECT - 77 / col0 + + col1 AS col2 FROM tab0
----
83
91
95

query I rowsort
SELECT DISTINCT 67 AS col2 FROM tab2, tab0, tab1 AS cor0
----
67

query I rowsort
SELECT + 46 + - col0 AS col0 FROM tab1
----
-18
-34
43

query I rowsort
SELECT + + 61 FROM tab0, tab0 cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to ba3ad29f7b0082794cb11074b3674274

query I rowsort
SELECT - - col2 * cor0.col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col1 * - col2 + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL - col2 * 29 AS col1 FROM tab2
----
-1102
-754
-783

query I rowsort
SELECT - col1 - + 30 AS col0 FROM tab0
----
-116
-121
-127

query I rowsort
SELECT - - 96 - - cor0.col0 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 5c4cb4c07550ba15c37e7c253659cf0b

query I rowsort
SELECT DISTINCT + 81 AS col0 FROM tab2
----
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5106
SELECT - col0 DIV col1 + col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5106
SELECT - col0 / col1 + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL col0 * col0 * + ( + col2 + col0 ) FROM tab1 AS cor0
----
1126400
495616
513

query I rowsort
SELECT ALL + 29 + col0 AS col2 FROM tab1 AS cor0
----
109
32
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * - col1 + 91 col0 FROM tab0
----
-7305
-8190
-9318

query I rowsort
SELECT tab0.col0 * + tab0.col2 * + 3 AS col2 FROM tab0
----
105
21894
2376

query I rowsort
SELECT - col1 - col0 AS col1 FROM tab2
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 21 + - col2 * - col2 col2 FROM tab1
----
2940
3334
9317

query I rowsort
SELECT + col2 * col1 * 77 AS col1 FROM tab2
----
118118
49742
64449

query I rowsort
SELECT DISTINCT col0 * - 62 FROM tab1 AS cor0
----
-186
-3968
-4960

query I rowsort
SELECT DISTINCT col2 + col2 + col2 * + cor0.col1 * ( col1 * + col1 ) FROM tab0 AS cor0
----
20989914
61792986
912675

query I rowsort
SELECT ALL + col1 + 59 AS col1 FROM tab2
----
118
76
90

query I rowsort
SELECT + col2 * + ( col0 + col2 ) AS col2 FROM tab1
----
16896
3078
6897

query I rowsort
SELECT ALL col1 * + tab0.col2 + col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL - 79 * - col1 FROM tab1 AS cor0
----
1027
2054
790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * - col0 col2 FROM tab0 AS cor0
----
-1536
-2240
-5696

query I rowsort
SELECT DISTINCT - 41 * - cor0.col0 + + col0 * + ( - 13 ) AS col2 FROM tab2 AS cor0
----
196
2184
2212

onlyif mysql # use DIV operator for integer division
query I rowsort label-5122
SELECT DISTINCT ( 39 ) * col2 DIV + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
1
35
53

skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT ( 39 ) * col2 / + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
1
35
53

query I rowsort
SELECT DISTINCT col0 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - 37 + col0 * - col0 * ( 14 ) + cor0.col0 FROM tab2 cor0
----
-716
-85135
-87332

query I rowsort
SELECT ALL + 89 * col0 FROM tab2
----
623
6942
7031

query I rowsort
SELECT ALL + ( col1 ) + col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT 21 + + col1 AS col2 FROM tab2 AS cor0
----
38
52
80

query I rowsort
SELECT ALL + cor0.col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - + ( + col0 ) + - col1 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-5130
SELECT col2 * 65 DIV + col0 + + ( + col1 ) * col0 + col0 AS col2 FROM tab2 cor0
----
1453
4701
474

skipif mysql # not compatible
query I rowsort label-5130
SELECT col2 * 65 / + col0 + + ( + col1 ) * col0 + col0 AS col2 FROM tab2 cor0
----
1453
4701
474

query I rowsort
SELECT DISTINCT + col0 + 66 AS col2 FROM tab0 cor0
----
101
155
90

query I rowsort
SELECT DISTINCT ( col2 ) * - col1 * 48 AS col1 FROM tab1 AS cor0
----
-27360
-59904
-67392

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col1 AS REAL ) + cor0.col0 + - col0 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5134
SELECT + + CAST( NULL AS SIGNED ) + - 50 * - col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5134
SELECT + + CAST ( NULL AS INTEGER ) + - 50 * - col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 + col0 + + col2 col1 FROM tab2
----
134
163
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5136
SELECT + col0 / CAST( NULL AS SIGNED ) + - ( col0 ) + - col1 / - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT + col0 / CAST ( NULL AS INTEGER ) + - ( col0 ) + - col1 / - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * col1 * col1 + - 69 + + col2 * - col1 AS col0 FROM tab1
----
12203
555
5761

onlyif mysql # use DIV operator for integer division
query I rowsort label-5138
SELECT ( - tab1.col2 ) DIV + col1 AS col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5138
SELECT ( - tab1.col2 ) / + col1 AS col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT DISTINCT + + 31 AS col1 FROM tab0 cor0
----
31

query I rowsort
SELECT ALL + + col2 * + col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + col0 * 56 - col2 FROM tab0 cor0
----
1311
1959
4902

query I rowsort
SELECT + col1 * 15 AS col2 FROM tab1 AS cor0
----
150
195
390

query I rowsort
SELECT + col2 - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5144
SELECT col1 DIV 24 + + col2 AS col0 FROM tab0 AS cor0
----
36
5
85

skipif mysql # not compatible
query I rowsort label-5144
SELECT col1 / 24 + + col2 AS col0 FROM tab0 AS cor0
----
36
5
85

query I rowsort
SELECT - col1 + 4 + - col2 AS col0 FROM tab1 AS cor0
----
-105
-63
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5146
SELECT ALL - col0 DIV 75 col0 FROM tab2 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL - col0 / 75 col0 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT 38 * - col0 AS col0 FROM tab0 AS cor0
----
-1330
-3382
-912

query I rowsort
SELECT ALL ( 76 ) * cor0.col2 * col2 FROM tab2 AS cor0
----
109744
51376
55404

query I rowsort
SELECT + col0 * - 50 + + col1 FROM tab2 AS cor0
----
-319
-3841
-3933

query I rowsort
SELECT + 77 AS col2 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT DISTINCT + ( col0 ) + + col0 + - col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + 1 + col0 - col0 * ( col1 ) FROM tab1 AS cor0
----
-575
-74
-959

query I rowsort
SELECT DISTINCT col1 + 57 AS col2 FROM tab2 AS cor0
----
116
74
88

query I rowsort
SELECT DISTINCT 7 + - col2 * + col2 FROM tab0 AS cor0
----
-1082
-6717
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 - + col2 * - col0 col2 FROM tab1 cor0
----
219
3769
7856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 + - col0 col2 FROM tab2 AS cor0
----
-67
-68
4

query I rowsort
SELECT - 11 AS col1 FROM tab0 AS cor0
----
-11
-11
-11

query I rowsort
SELECT + + cor0.col0 * col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab1 AS cor0
----
78

query I rowsort
SELECT ALL + 87 + - col1 * + col2 FROM tab1 AS cor0
----
-1161
-1317
-483

query I rowsort
SELECT - 24 * col2 * col2 AS col1 FROM tab0 AS cor0
----
-161376
-24
-26136

query I rowsort
SELECT ALL - col2 * col0 + - col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL col0 + - col0 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col1 * - cor0.col2 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-5165
SELECT + col2 * col1 + + col2 DIV col0 FROM tab2 AS cor0
----
1534
646
840

skipif mysql # not compatible
query I rowsort label-5165
SELECT + col2 * col1 + + col2 / col0 FROM tab2 AS cor0
----
1534
646
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 + col1 col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + 25 * - col0 AS col0 FROM tab1
----
-1600
-2000
-75

query I rowsort
SELECT + 27 + - col0 * + col2 FROM tab0 AS cor0
----
-7271
-765
-8

query I rowsort
SELECT DISTINCT + ( cor1.col1 ) * cor1.col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
7396
8281
9409

query I rowsort
SELECT 50 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT + + 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL 89 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT DISTINCT + 43 * + col2 * + col1 FROM tab2
----
27778
35991
65962

query I rowsort
SELECT ALL - col0 * col0 AS col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT ( tab1.col2 ) + col0 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT 28 FROM tab2, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT DISTINCT ( tab2.col1 ) + + col0 * + col2 AS col1 FROM tab2
----
2087
220
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5178
SELECT ALL CAST( col1 AS SIGNED ) * tab1.col0 AS col0 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL CAST ( col1 AS INTEGER ) * tab1.col0 AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL col1 + + tab2.col0 * - tab2.col2 AS col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT ALL 46 + + 26 * + col0 * col1 + - col2 AS col0 FROM tab1
----
16629
2020
26990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5181
SELECT + col1 * CAST( col2 * + col0 AS SIGNED ) - - col0 FROM tab2
----
119730
51113
5866

skipif mysql # not compatible
query I rowsort label-5181
SELECT + col1 * CAST ( col2 * + col0 AS INTEGER ) - - col0 FROM tab2
----
119730
51113
5866

query I rowsort
SELECT DISTINCT + col2 * + col0 - 73 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1024
-57
1840

query I rowsort
SELECT + 23 + cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to ddd4ed39f1cf356da22540247fd21a95

query I rowsort
SELECT DISTINCT + 37 * cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
3182
3367
3589

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5185
SELECT ALL CAST( NULL AS SIGNED ) * ( - col0 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL CAST ( NULL AS INTEGER ) * ( - col0 ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + 49 AS col2 FROM tab2 AS cor0
----
49
49
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5187
SELECT ALL + CAST( + col0 AS SIGNED ) * - col0 + - 79 AS col2 FROM tab2 AS cor0
----
-128
-6163
-6320

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL + CAST ( + col0 AS INTEGER ) * - col0 + - 79 AS col2 FROM tab2 AS cor0
----
-128
-6163
-6320

query I rowsort
SELECT ALL col0 + 21 FROM tab1 cor0
----
101
24
85

query I rowsort
SELECT DISTINCT - ( - col0 ) * col1 * col2 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + ( ( + col1 ) ) * ( col1 ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + col1 * - col1 + col1 * col2 * col1 FROM tab1 AS cor0
----
16055
35828
5600

query I rowsort
SELECT ( col2 ) AS col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT ALL - 56 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * - 44 + - 44 col2 FROM tab2 cor0
----
-3476
-352
-3520

query I rowsort
SELECT DISTINCT - 54 * + col2 FROM tab1 cor0
----
-2916
-3078
-5184

query I rowsort
SELECT + + col2 * col0 + ( cor0.col1 + col0 ) AS col1 FROM tab1 AS cor0
----
191
3722
7773

query I rowsort
SELECT DISTINCT - 78 AS col1 FROM tab0 cor0
----
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5199
SELECT DISTINCT - col1 DIV col1 + - col1 AS col1 FROM tab2 AS cor0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT - col1 / col1 + - col1 AS col1 FROM tab2 AS cor0
----
-18
-32
-60

query I rowsort
SELECT - cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT col1 + - cor0.col1 FROM tab1 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5202
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) * col1 * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) * col1 * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5203
SELECT ALL - cor0.col1 + 29 DIV - col0 FROM tab0 AS cor0
----
-87
-91
-97

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL - cor0.col1 + 29 / - col0 FROM tab0 AS cor0
----
-87
-91
-97

query I rowsort
SELECT DISTINCT + + col2 + ( col1 + col1 ) FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT + col1 + 55 FROM tab1 AS cor0
----
65
68
81

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 - 22 AS col0 FROM tab2 AS cor0
----
1321
195
4580

query I rowsort
SELECT DISTINCT col0 * col1 * col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT cor0.col2 + col0 * - col1 * col0 AS col2 FROM tab2 AS cor0
----
-106059
-1492
-358930

query I rowsort
SELECT DISTINCT - col2 * - ( 29 ) + + col0 * + col0 AS col0 FROM tab1 AS cor0
----
1575
5749
9184

query I rowsort
SELECT ALL + col0 + col1 * 10 FROM tab1
----
164
210
263

query I rowsort
SELECT ALL + cor0.col0 - ( 34 * col2 + ( ( - col1 ) ) * + col0 ) FROM tab1 AS cor0
----
-1234
-1755
-2144

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5212
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + cor0.col1 col1 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5214
SELECT DISTINCT + col0 * - cor0.col0 - - col0 DIV + col2 FROM tab1 cor0
----
-4095
-6400
-9

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT + col0 * - cor0.col0 - - col0 / + col2 FROM tab1 cor0
----
-4095
-6400
-9

query I rowsort
SELECT - col2 * col0 + - 46 AS col2 FROM tab0 cor0
----
-7344
-81
-838

onlyif mysql # use DIV operator for integer division
query I rowsort label-5216
SELECT DISTINCT tab0.col2 DIV + col2 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT tab0.col2 / + col2 AS col1 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 52 * col0 + col0 * 92 * - ( + col1 ) + + col0 col0 FROM tab1 cor0
----
-6705
154176
237200

query I rowsort
SELECT ALL - col2 + + col0 * - col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT - - col0 * - 12 + - col2 FROM tab1 AS cor0
----
-1056
-825
-90

query I rowsort
SELECT - + col2 * - 14 + - 93 FROM tab0 AS cor0
----
-79
1055
369

query I rowsort
SELECT ALL 85 + + col0 FROM tab0
----
109
120
174

query I rowsort
SELECT ALL col1 + + cor0.col1 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-5223
SELECT + CAST( 0 AS SIGNED ) + - col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5223
SELECT + CAST ( 0 AS INTEGER ) + - col2 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * 58 FROM tab1
----
-3132
-3306
-5568

query I rowsort
SELECT DISTINCT 96 AS col1 FROM tab2, tab2 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + ( + col2 ) col0 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT + col0 * col2 + col0 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT + ( + col0 ) + 81 AS col0 FROM tab2 AS cor0
----
159
160
88

query I rowsort
SELECT ALL + cor0.col0 + - col1 AS col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - + ( + col2 ) * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-5231
SELECT - CAST( - col0 AS SIGNED ) DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5231
SELECT - CAST ( - col0 AS INTEGER ) / - col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5232
SELECT ALL - 8 DIV col1 + + tab0.col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL - 8 / col1 + + tab0.col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT 27 AS col1 FROM tab1
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - tab1.col0 ) + - col1 - col2 col2 FROM tab1
----
-131
-189
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT 66 AS col1 FROM tab1, tab0, tab0 AS cor0
----
66

query I rowsort
SELECT ALL - col1 - 69 FROM tab2
----
-100
-128
-86

query I rowsort
SELECT - col0 + col1 * + tab0.col2 + col2 * - 41 FROM tab0
----
1461
21
4011

query I rowsort
SELECT 36 * + tab0.col2 AS col0 FROM tab0
----
1188
2952
36

query I rowsort
SELECT tab2.col0 * col1 - col2 FROM tab2
----
1305
190
4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5241
SELECT CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5241
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col2 * col2 + + col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT ALL 62 AS col1 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT DISTINCT + 28 + - col0 AS col1 FROM tab1 AS cor0
----
-36
-52
25

query I rowsort
SELECT + cor0.col1 - col2 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - ( + col1 ) * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT 9 * - cor0.col2 * + col0 + - col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-1536
-33472
-70160

onlyif mysql # use DIV operator for integer division
query I rowsort label-5248
SELECT + 1 * col0 DIV + col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5248
SELECT + 1 * col0 / + col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5249
SELECT 69 * cor0.col2 DIV - col0 FROM tab2 cor0
----
-23
-266
-33

skipif mysql # not compatible
query I rowsort label-5249
SELECT 69 * cor0.col2 / - col0 FROM tab2 cor0
----
-23
-266
-33

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

query I rowsort
SELECT - - 88 * - col2 AS col1 FROM tab2 AS cor0
----
-2288
-2376
-3344

query I rowsort
SELECT - 55 AS col2 FROM tab2 AS cor0
----
-55
-55
-55

query I rowsort
SELECT ALL - col1 * - col2 + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT col0 * - col0 * - ( col1 ) AS col0 FROM tab2
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-5255
SELECT ALL - cor0.col1 * 23 DIV 23 AS col2 FROM tab2 cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL - cor0.col1 * 23 / 23 AS col2 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + + col2 * ( col1 ) AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + tab1.col2 + tab1.col2 AS col1 FROM tab1
----
108
114
192

query I rowsort
SELECT - col0 * - col0 + 25 AS col1 FROM tab2
----
6109
6266
74

query I rowsort
SELECT + 23 + col2 * col1 FROM tab1 AS cor0
----
1271
1427
593

query I rowsort
SELECT ALL 78 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT col0 * - 9 AS col0 FROM tab0
----
-216
-315
-801

query I rowsort
SELECT + - ( - col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT tab0.col0 * + tab0.col1 * 49 FROM tab0
----
101136
166355
396851

query I rowsort
SELECT DISTINCT - col1 * 87 FROM tab2
----
-1479
-2697
-5133

query I rowsort
SELECT + 87 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # use DIV operator for integer division
query I rowsort label-5267
SELECT col2 DIV + 32 + - tab1.col1 * tab1.col2 AS col2 FROM tab1
----
-1245
-1403
-569

skipif mysql # not compatible
query I rowsort label-5267
SELECT col2 / + 32 + - tab1.col1 * tab1.col2 AS col2 FROM tab1
----
-1245
-1403
-569

query I rowsort
SELECT DISTINCT 59 * + 8 FROM tab2
----
472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 * - 8 col1 FROM tab0
----
-424

query I rowsort
SELECT - 16 * 55 * col1 FROM tab1 AS cor0
----
-11440
-22880
-8800

onlyif mysql # use DIV operator for integer division
query I rowsort label-5271
SELECT col2 + cor0.col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-5271
SELECT col2 + cor0.col1 / + col0 AS col2 FROM tab2 AS cor0
----
26
31
38

query I rowsort
SELECT DISTINCT - + 53 * - 86 AS col2 FROM tab2 AS cor0
----
4558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 * col2 col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT - 29 * col2 AS col2 FROM tab1 AS cor0
----
-1566
-1653
-2784

query I rowsort
SELECT ALL + 3 * col2 FROM tab2
----
114
78
81

query I rowsort
SELECT ALL - ( + 3 ) FROM tab2
----
-3
-3
-3

query I rowsort
SELECT ALL + 75 * col1 + 26 * col1 AS col1 FROM tab2 AS cor0
----
1717
3131
5959

query I rowsort
SELECT + ( col0 + - tab2.col0 ) * col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT 59 + tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to f28c3a819d0a67f3bbbf21d5c770f467

query I rowsort
SELECT - - ( col2 ) + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL 99 + col0 * col1 AS col2 FROM tab0
----
2163
3494
8198

query I rowsort
SELECT ALL + 9 * col1 + + col1 FROM tab1
----
100
130
260

query I rowsort
SELECT + 16 * cor0.col1 AS col2 FROM tab0 AS cor0
----
1376
1456
1552

query I rowsort
SELECT DISTINCT - - 8 + - col1 FROM tab2 AS cor0
----
-23
-51
-9

query I rowsort
SELECT 63 AS col1 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT + 97 * col0 AS col0 FROM tab1 cor0
----
291
6208
7760

query I rowsort
SELECT DISTINCT 15 * + cor0.col2 * - 84 AS col0 FROM tab1 AS cor0
----
-120960
-68040
-71820

onlyif mysql # use DIV operator for integer division
query I rowsort label-5288
SELECT DISTINCT - col0 * col2 * cor0.col0 + - 65 DIV + col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT - col0 * col2 * cor0.col0 + - 65 / + col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL cor0.col1 + + col0 * + col0 AS col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT DISTINCT - col2 * + col0 + + ( - 19 ) FROM tab2 AS cor0
----
-2047
-208
-3021

query I rowsort
SELECT DISTINCT + col1 * - col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) * col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT 71 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5294
SELECT - - col0 + + CAST( col0 * - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832

skipif mysql # not compatible
query I rowsort label-5294
SELECT - - col0 + + CAST ( col0 * - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT - + cor0.col2 * + 79 * + col2 + + col0 AS col2 FROM tab1 cor0
----
-230361
-256607
-727984

query I rowsort
SELECT col2 * + ( col1 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5297
SELECT + + col2 * - CAST( NULL AS SIGNED ) - cor0.col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5297
SELECT + + col2 * - CAST ( NULL AS INTEGER ) - cor0.col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + col1 * - col2 AS col1 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - col1 + + col2 + col2 AS col1 FROM tab0 AS cor0
----
-20
-95
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5300
SELECT + + col2 * col2 * cor0.col1 + - CAST( col0 AS SIGNED ) + - col2 AS col0 FROM tab2 cor0
----
22565
24431
39780

skipif mysql # not compatible
query I rowsort label-5300
SELECT + + col2 * col2 * cor0.col1 + - CAST ( col0 AS INTEGER ) + - col2 AS col0 FROM tab2 cor0
----
22565
24431
39780

query I rowsort
SELECT DISTINCT + col1 * - 6 FROM tab2 AS cor0
----
-102
-186
-354

query I rowsort
SELECT ALL + ( col0 ) + col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - 13 * + col2 AS col1 FROM tab0 AS cor0
----
-1066
-13
-429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( cor0.col0 ) * col2 + ( col2 * - col1 ) col0 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT DISTINCT + 91 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
91

query I rowsort
SELECT DISTINCT + col1 * - col1 - - 68 AS col0 FROM tab1 cor0
----
-101
-32
-608

skipif mysql # not compatible
query I rowsort
SELECT + col1 + + CAST ( + col0 AS REAL ) * + col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-5308
SELECT - cor0.col1 DIV - 37 + col2 DIV cor0.col1 + 77 AS col2 FROM tab1 AS cor0
----
79
82
84

skipif mysql # not compatible
query I rowsort label-5308
SELECT - cor0.col1 / - 37 + col2 / cor0.col1 + 77 AS col2 FROM tab1 AS cor0
----
79
82
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + cor0.col0 col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + - cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL col0 * ( ( cor0.col2 ) ) AS col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5312
SELECT ALL - col0 * - col2 DIV col2 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-5312
SELECT ALL - col0 * - col2 / col2 col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + col2 * + ( - 89 ) + col1 AS col2 FROM tab2 AS cor0
----
-2255
-2372
-3365

query I rowsort
SELECT DISTINCT - col2 + col2 * 10 AS col2 FROM tab1 AS cor0
----
486
513
864

query I rowsort
SELECT ALL - col1 * 1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - cor0.col0 + + 88 FROM tab2 AS cor0
----
10
81
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5317
SELECT ALL - tab0.col0 DIV col2 + 7 FROM tab0
----
-28
6
7

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL - tab0.col0 / col2 + 7 FROM tab0
----
-28
6
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 + - 23 * col1 + - col0 col1 FROM tab0
----
-1210
-2231
5116

query I rowsort
SELECT 37 * - col2 AS col1 FROM tab1
----
-1998
-2109
-3552

query I rowsort
SELECT ALL 43 + + col2 AS col1 FROM tab1
----
100
139
97

query I rowsort
SELECT - col1 + 47 AS col0 FROM tab0 AS cor0
----
-39
-44
-50

query I rowsort
SELECT DISTINCT col2 + - col1 + + ( col2 ) FROM tab1
----
104
179
82

query I rowsort
SELECT - col0 + col0 - col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + - tab0.col2 AS col1 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT DISTINCT - + col0 + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 90 col1 FROM tab2 cor0
----
-1530
-2790
-5310

query I rowsort
SELECT ALL col1 * tab2.col2 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL col2 * + ( + col2 ) FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL 80 * - 76 - col1 FROM tab0
----
-6166
-6171
-6177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 - cor0.col1 * - 45 col2 FROM tab1 cor0
----
1196
460
598

query I rowsort
SELECT ALL + - 72 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-13
-41
-55

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) + + col1 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + cor1.col0 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT 38 * - col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-323
-398
-934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col2 col1 FROM tab0 cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 * + cor0.col0 col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL - - 12 AS col2 FROM tab1 AS cor0
----
12
12
12

query I rowsort
SELECT ALL - col0 * + col2 * 68 + tab1.col0 * col2 + + 31 FROM tab1
----
-10823
-244385
-514529

query I rowsort
SELECT + tab0.col0 AS col2 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL 24 + + cor0.col0 FROM tab2 AS cor0
----
102
103
31

query I rowsort
SELECT - 99 - - cor0.col0 FROM tab0 AS cor0
----
-10
-64
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-5342
SELECT - cor0.col0 DIV - col1 + cor0.col1 FROM tab1 cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-5342
SELECT - cor0.col0 / - col1 + cor0.col1 FROM tab1 cor0
----
16
19
26

query I rowsort
SELECT ALL + + col1 * col2 * col0 FROM tab0 cor0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5344
SELECT DISTINCT col2 + + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT col2 + + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5345
SELECT - - 29 DIV - col2 FROM tab0 AS cor0
----
-29
0
0

skipif mysql # not compatible
query I rowsort label-5345
SELECT - - 29 / - col2 FROM tab0 AS cor0
----
-29
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5346
SELECT DISTINCT - + ( col2 ) + col1 DIV 25 FROM tab1 AS cor0
----
-53
-57
-96

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT - + ( col2 ) + col1 / 25 FROM tab1 AS cor0
----
-53
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 col2 FROM tab2 cor0
----
4

query I rowsort
SELECT - + col1 * cor0.col2 + - 73 * col2 FROM tab1 AS cor0
----
-4731
-5346
-8256

query I rowsort
SELECT - 58 + - col0 FROM tab0
----
-147
-82
-93

query I rowsort
SELECT col0 * col0 + + ( col1 ) * col2 * - ( col0 + col1 ) AS col1 FROM tab1 AS cor0
----
-109664
-38084
-40707

query I rowsort
SELECT DISTINCT col2 * - col0 + - col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT + + col1 * col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL cor0.col2 + - col2 * cor0.col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL - - cor0.col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col0 * + col2 + - 66 AS col2 FROM tab0 AS cor0
----
-101
-7364
-858

query I rowsort
SELECT ALL col1 + + 15 FROM tab2 AS cor0
----
32
46
74

query I rowsort
SELECT - - col1 * col1 * col0 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-5358
SELECT - col0 + + col0 DIV cor0.col0 + col2 FROM tab1 AS cor0
----
-6
17
52

skipif mysql # not compatible
query I rowsort label-5358
SELECT - col0 + + col0 / cor0.col0 + col2 FROM tab1 AS cor0
----
-6
17
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5359
SELECT - CAST( NULL AS SIGNED ) * - ( - cor0.col2 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5359
SELECT - CAST ( NULL AS INTEGER ) * - ( - cor0.col2 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT - 75 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT - - col1 + + 29 FROM tab0 AS cor0
----
115
120
126

query I rowsort
SELECT DISTINCT + + cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - 73 * + cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to fe83635e968632deb7df297f6122f8f9

query I rowsort
SELECT + - col0 + ( col0 ) AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + 11 + cor0.col1 FROM tab0 AS cor0
----
102
108
97

query I rowsort
SELECT ALL - 61 AS col0 FROM tab2 AS cor0
----
-61
-61
-61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5368
SELECT ALL - col0 + - ( + cor0.col1 ) * + ( col0 ) * col1 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL - col0 + - ( + cor0.col1 ) * + ( col0 ) * col1 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 + + col0 * col0 AS col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT 66 + - col1 FROM tab0 AS cor0
----
-20
-25
-31

query I rowsort
SELECT 16 * + col1 - col2 * col2 * cor0.col2 FROM tab0 cor0
----
-34561
-549912
1551

onlyif mysql # use DIV operator for integer division
query I rowsort label-5372
SELECT + + 19 + col0 DIV col1 FROM tab2 AS cor0
----
19
20
23

skipif mysql # not compatible
query I rowsort label-5372
SELECT + + 19 + col0 / col1 FROM tab2 AS cor0
----
19
20
23

query I rowsort
SELECT - 11 + + col0 * + col0 * col0 AS col0 FROM tab2
----
332
474541
493028

query I rowsort
SELECT + col0 + - ( - col1 ) AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT ( tab2.col0 * col2 ) AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - 76 FROM tab1, tab1 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5377
SELECT DISTINCT CAST( - 89 AS SIGNED ) FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT CAST ( - 89 AS INTEGER ) FROM tab1
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( + cor0.col1 ) col2 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 * - col1 col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT + 70 AS col1 FROM tab2, tab1 AS cor0
----
70

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to ae08f1949fd59e00b049f28175217e60

query I rowsort
SELECT - - cor0.col2 + col2 * - ( - col1 ) * + col2 FROM tab2 AS cor0
----
22626
24586
39910

query I rowsort
SELECT + col1 * cor0.col1 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT + col2 + + cor0.col2 * - col0 * 13 FROM tab2 AS cor0
----
-2430
-26338
-38988

query I rowsort
SELECT + col2 + + 93 AS col1 FROM tab0 AS cor0
----
126
175
94

query I rowsort
SELECT DISTINCT + - col0 * + col0 + - col1 * ( col2 ) * col1 FROM tab1 cor0
----
-22624
-36513
-9796

query I rowsort
SELECT DISTINCT ( + col2 ) * + col1 + - col0 * cor0.col1 FROM tab0 cor0
----
-3298
-637
774

query I rowsort
SELECT 86 * - 53 AS col0 FROM tab1 AS cor0
----
-4558
-4558
-4558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col0 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT + col0 * + col1 - + ( col1 * col2 ) FROM tab1 AS cor0
----
-1326
-208
70

query I rowsort
SELECT + cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + 1 * - col2 + col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col1 col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - 14 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5395
SELECT ALL - CAST( NULL AS DECIMAL ) + - tab0.col2 + + col1 * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL - CAST ( NULL AS REAL ) + - tab0.col2 + + col1 * - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 91 + + col1 * tab0.col2 AS col0 FROM tab0
----
188
2929
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + cor0.col2 col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + tab1.col2 + col2 * col0 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL + 63 AS col0 FROM tab0 cor0
----
63
63
63

query I rowsort
SELECT + - 78 * col1 AS col0 FROM tab1 AS cor0
----
-1014
-2028
-780

onlyif mysql # use DIV operator for integer division
query I rowsort label-5401
SELECT + col0 DIV - cor0.col1 + - ( + col0 ) FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5401
SELECT + col0 / - cor0.col1 + - ( + col0 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + - 78 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-78

query I rowsort
SELECT ALL + cor0.col0 * - cor0.col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5404
SELECT ALL - col1 + col0 DIV col2 col1 FROM tab0 cor0
----
-62
-86
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL - col1 + col0 / col2 col1 FROM tab0 cor0
----
-62
-86
-90

query I rowsort
SELECT col0 * + col0 + col2 * col1 FROM tab0 AS cor0
----
1322
15383
3414

query I rowsort
SELECT ALL - col1 + 19 AS col2 FROM tab1 AS cor0
----
-7
6
9

query I rowsort
SELECT DISTINCT + - col1 * - col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort
SELECT + col0 + CAST ( col1 * - col2 AS REAL ) AS col2 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1
-35937
-551368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - tab0.col0 col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - 47 * 22 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2f3d71ca635024d68d063a4439980fa8

query I rowsort
SELECT DISTINCT 97 * + col1 - - col0 FROM tab1
----
1034
1341
2525

query I rowsort
SELECT ALL 29 - - col2 * col2 AS col2 FROM tab2
----
1473
705
758

query I rowsort
SELECT DISTINCT + 62 * tab1.col1 FROM tab1
----
1612
620
806

query I rowsort
SELECT col1 * + ( - col0 * + col0 ) AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + 21 col2 FROM tab0 cor0
----
-65
-70
-76

query I rowsort
SELECT - col1 + - cor0.col0 * col2 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT - col1 * + col2 * 29 FROM tab0 AS cor0
----
-216398
-2813
-82302

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5419
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 cor2
----
3645 values hashing to bb6428239bf7f3ea361f6a10500a581d

query I rowsort
SELECT ALL 3 FROM tab1, tab2 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ( 14 ) - + col0 FROM tab0
----
-10
-21
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-5423
SELECT - col1 * cor0.col1 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-100
-224
-9409

skipif mysql # not compatible
query I rowsort label-5423
SELECT - col1 * cor0.col1 / cor0.col2 AS col2 FROM tab0 AS cor0
----
-100
-224
-9409

query I rowsort
SELECT + col0 * col2 + 22 FROM tab1
----
184
3670
7702

onlyif mysql # use DIV operator for integer division
query I rowsort label-5425
SELECT 92 DIV col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5425
SELECT 92 / col1 FROM tab0
----
0
1
1

query I rowsort
SELECT 15 * - col2 FROM tab1 AS cor0
----
-1440
-810
-855

query I rowsort
SELECT ALL - ( col1 ) * col0 + - col1 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT - - cor0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5429
SELECT ALL 92 + col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL 92 + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * cor0.col2 + - 59 FROM tab0 AS cor0
----
-7357
-851
-94

query I rowsort
SELECT ALL + - 93 + col0 * - cor0.col1 FROM tab0 cor0
----
-2157
-3488
-8192

onlyif mysql # use DIV operator for integer division
query I rowsort label-5432
SELECT - - col0 + col0 DIV 27 FROM tab2 AS cor0
----
7
80
81

skipif mysql # not compatible
query I rowsort label-5432
SELECT - - col0 + col0 / 27 FROM tab2 AS cor0
----
7
80
81

query I rowsort
SELECT ALL cor0.col0 * + col0 + + col0 - + cor0.col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5434
SELECT ALL + - col0 DIV - col2 + col0 * + col0 * col1 FROM tab1 AS cor0
----
234
40961
83200

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL + - col0 / - col2 + col0 * + col0 * col1 FROM tab1 AS cor0
----
234
40961
83200

query I rowsort
SELECT + cor0.col1 + - 90 * col1 FROM tab2 AS cor0
----
-1513
-2759
-5251

query I rowsort
SELECT DISTINCT + col2 * 81 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
2184
2194
3157

query I rowsort
SELECT ALL + 14 - - cor0.col1 FROM tab2 AS cor0
----
31
45
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + + tab2.col1 col0 FROM tab2
----
101
129
87

query I rowsort
SELECT - 80 * + col0 + - col2 FROM tab2 cor0
----
-587
-6266
-6358

query I rowsort
SELECT DISTINCT col0 + + 18 AS col1 FROM tab1 AS cor0
----
21
82
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5441
SELECT ALL - CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL - CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5442
SELECT CAST( col2 AS SIGNED ) + col0 * - col1 * ( cor0.col0 ) FROM tab2 AS cor0
----
-106059
-1492
-358930

skipif mysql # not compatible
query I rowsort label-5442
SELECT CAST ( col2 AS INTEGER ) + col0 * - col1 * ( cor0.col0 ) FROM tab2 AS cor0
----
-106059
-1492
-358930

query I rowsort
SELECT col2 * 0 * col2 + + col2 - + col1 AS col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT DISTINCT + - col1 * 69 AS col0 FROM tab0 AS cor0
----
-5934
-6279
-6693

query I rowsort
SELECT DISTINCT col0 + + col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL + col2 + 93 * col0 - - ( col2 ) * col1 FROM tab1 AS cor0
----
1737
6579
8784

query I rowsort
SELECT ALL 80 * + col1 FROM tab1 AS cor0
----
1040
2080
800

query I rowsort
SELECT ALL - ( col2 ) + ( col2 ) * - col1 * cor0.col0 FROM tab1 AS cor0
----
-36537
-4266
-99936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5449
SELECT + CAST( + 19 AS SIGNED ) + tab2.col2 FROM tab2
----
45
46
57

skipif mysql # not compatible
query I rowsort label-5449
SELECT + CAST ( + 19 AS INTEGER ) + tab2.col2 FROM tab2
----
45
46
57

query I rowsort
SELECT ALL ( col0 ) + + col0 FROM tab0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # use DIV operator for integer division
query I rowsort label-5452
SELECT - tab2.col0 DIV + tab2.col1 + - tab2.col0 FROM tab2
----
-7
-79
-83

skipif mysql # not compatible
query I rowsort label-5452
SELECT - tab2.col0 / + tab2.col1 + - tab2.col0 FROM tab2
----
-7
-79
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5453
SELECT ALL col0 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL col0 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * + 54 AS col0 FROM tab1 cor0
----
-1404
-540
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5455
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + 82 * col0 FROM tab1 cor0
----
249
5312
6640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5457
SELECT DISTINCT + col0 + - CAST( NULL AS DECIMAL ) * col2 * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT + col0 + - CAST ( NULL AS REAL ) * col2 * col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 * - 2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + col1 * - 56 AS col2 FROM tab1 AS cor0
----
-1456
-560
-728

query I rowsort
SELECT + + col0 * col0 AS col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT col0 + - ( + ( - col0 ) ) * - col2 AS col2 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT col1 + + col2 - col0 AS col1 FROM tab2
----
-24
51
7

query I rowsort
SELECT + col1 * 28 AS col1 FROM tab2
----
1652
476
868

query I rowsort
SELECT DISTINCT + tab0.col1 + + col2 * + tab0.col2 - + col0 * col0 FROM tab0
----
-1106
-1127
599

query I rowsort
SELECT DISTINCT - 68 FROM tab2, tab2 cor0
----
-68

query I rowsort
SELECT DISTINCT col0 - col2 AS col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL col1 * 33 AS col0 FROM tab0 AS cor0
----
2838
3003
3201

query I rowsort
SELECT col2 * - 70 + col2 AS col2 FROM tab1 cor0
----
-3726
-3933
-6624

query I rowsort
SELECT ALL - col1 + + 76 FROM tab1 AS cor0
----
50
63
66

query I rowsort
SELECT DISTINCT + - cor0.col1 + + col2 * col0 AS col2 FROM tab0 cor0
----
-62
706
7207

query I rowsort
SELECT ALL + col1 * - 20 + col1 + + tab0.col1 FROM tab0
----
-1548
-1638
-1746

query I rowsort
SELECT col0 * 70 + col1 * + col1 FROM tab1
----
4580
5769
886

query I rowsort
SELECT DISTINCT col1 * ( ( - col0 ) ) + tab2.col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 1751d8ec783486b9121baa2709745253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col1 col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - ( + 93 ) AS col2 FROM tab1 AS cor0
----
-93
-93
-93

query I rowsort
SELECT DISTINCT - col2 * + 55 + col0 AS col0 FROM tab2 AS cor0
----
-1352
-1478
-2011

onlyif mysql # use DIV operator for integer division
query I rowsort label-5479
SELECT - col0 DIV col2 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5479
SELECT - col0 / col2 AS col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT 12 * - 44 FROM tab0
----
-528
-528
-528

query I rowsort
SELECT ALL + + 55 + col2 FROM tab0 cor0
----
137
56
88

query I rowsort
SELECT DISTINCT - + ( + col0 ) * - col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - cor0.col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5484
SELECT ALL col2 * col0 DIV - tab0.col0 AS col1 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL col2 * col0 / - tab0.col0 AS col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 60 FROM tab1, tab2, tab2 AS cor0, tab0
----
60

query I rowsort
SELECT DISTINCT - col0 * 76 FROM tab1
----
-228
-4864
-6080

query I rowsort
SELECT ALL 12 * - col1 FROM tab2 AS cor0
----
-204
-372
-708

query I rowsort
SELECT DISTINCT ( ( col0 ) ) + + 47 AS col2 FROM tab0 cor0
----
136
71
82

query I rowsort
SELECT - tab0.col2 * col0 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - 97 * + 5 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 5a47ef38ac7f4d04bb0273000ab769c4

query I rowsort
SELECT + - col2 * col1 + col1 * + col1 FROM tab2 AS cor0
----
-357
124
1947

query I rowsort
SELECT + 34 + + col2 AS col0 FROM tab1 cor0
----
130
88
91

query I rowsort
SELECT DISTINCT + col0 - cor0.col2 * 74 FROM tab0 AS cor0
----
-2418
-39
-5979

query I rowsort
SELECT + cor0.col1 * col1 + + 91 AS col1 FROM tab0 AS cor0
----
7487
8372
9500

query I rowsort
SELECT DISTINCT - ( - col0 ) + col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT cor0.col2 * + col2 - ( - col0 ) AS col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL + col0 + col1 * col2 * col0 AS col1 FROM tab2 AS cor0
----
119730
51113
5866

query I rowsort
SELECT ALL + - 36 * col2 + - 66 * + col2 FROM tab0 cor0
----
-102
-3366
-8364

query I rowsort
SELECT 98 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT ALL col1 + col0 * col2 AS col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL - col0 * + cor0.col1 + - cor0.col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT col0 * - ( - 90 ) + cor0.col0 * col0 FROM tab0 AS cor0
----
15931
2736
4375

onlyif mysql # use DIV operator for integer division
query I rowsort label-5503
SELECT - col0 DIV col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5503
SELECT - col0 / col0 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - cor0.col1 + + col1 * 94 AS col0 FROM tab1 AS cor0
----
1209
2418
930

query I rowsort
SELECT ALL cor0.col0 * col0 + - ( - col0 ) * - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5506
SELECT col0 DIV + 68 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5506
SELECT col0 / + 68 AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5507
SELECT DISTINCT + + col0 + col1 DIV ( cor0.col1 ) + - 56 AS col0 FROM tab0 cor0
----
-20
-31
34

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT + + col0 + col1 / ( cor0.col1 ) + - 56 AS col0 FROM tab0 cor0
----
-20
-31
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 - col1 * col2 col2 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 + cor0.col2 col0 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT col2 * - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT col1 * col0 + + 35 AS col1 FROM tab1
----
1075
113
675

query I rowsort
SELECT - 15 AS col1 FROM tab1 AS cor0
----
-15
-15
-15

query I rowsort
SELECT + col0 + col0 * col0 + 88 AS col2 FROM tab1 cor0
----
100
4248
6568

query I rowsort
SELECT ALL tab2.col2 + - col1 + tab2.col2 * - ( + col1 ) AS col2 FROM tab2
----
-1567
-625
-841

query I rowsort
SELECT col0 * col1 + + 0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5516
SELECT DISTINCT col1 DIV - 93 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT col1 / - 93 AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT + - col0 + + col1 + col0 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + col1 * - 18 FROM tab1 AS cor0
----
-180
-234
-468

onlyif mysql # use DIV operator for integer division
query I rowsort label-5520
SELECT col0 + + 45 DIV + col1 AS col1 FROM tab1 AS cor0
----
4
68
83

skipif mysql # not compatible
query I rowsort label-5520
SELECT col0 + + 45 / + col1 AS col1 FROM tab1 AS cor0
----
4
68
83

query I rowsort
SELECT + + 81 * 21 FROM tab1 cor0
----
1701
1701
1701

query I rowsort
SELECT 83 * 66 + col2 AS col1 FROM tab2 AS cor0
----
5504
5505
5516

query I rowsort
SELECT col0 - - cor0.col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + col1 * - col1 + - col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT - col2 + + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT - 78 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4

query I rowsort
SELECT + col2 - 80 FROM tab1 cor0
----
-23
-26
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5528
SELECT col1 + + CAST( NULL AS SIGNED ) + - 55 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT col1 + + CAST ( NULL AS INTEGER ) + - 55 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * ( + col0 ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL tab0.col0 + + ( col1 ) AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT ( 66 ) AS col0 FROM tab1
----
66
66
66

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) * col0 + cor0.col1 + + cor0.col2 FROM tab2 AS cor0
----
107
6169
6296

query I rowsort
SELECT DISTINCT col0 * col2 + + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + 7 * col1 + - col2 AS col1 FROM tab2 AS cor0
----
190
387
81

query I rowsort
SELECT DISTINCT ( col0 ) + - col0 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + col0 + ( col1 + - cor0.col2 ) AS col1 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT DISTINCT col0 * 0 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT 77 * col2 + - col1 FROM tab0 AS cor0
----
-20
2455
6223

onlyif mysql # use DIV operator for integer division
query I rowsort label-5540
SELECT + col2 * + cor0.col2 + + col1 * + col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
2942
3259
9229

skipif mysql # not compatible
query I rowsort label-5540
SELECT + col2 * + cor0.col2 + + col1 * + col1 / + col1 AS col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT ALL col2 + col1 * - cor0.col1 + - cor0.col2 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - col2 + col1 * col2 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT + 71 AS col0 FROM tab0 AS cor0
----
71

query I rowsort
SELECT ALL ( 67 + col0 * - col2 ) FROM tab0
----
-7231
-725
32

query I rowsort
SELECT ALL 12 + col2 AS col2 FROM tab0 AS cor0
----
13
45
94

query I rowsort
SELECT + col2 + col2 * cor0.col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL - col1 - - col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - - col1 * col1 - col1 AS col0 FROM tab0 cor0
----
7310
8190
9312

query I rowsort
SELECT DISTINCT 22 - col1 * + col2 FROM tab2 AS cor0
----
-1512
-624
-815

onlyif mysql # use DIV operator for integer division
query I rowsort label-5550
SELECT - 35 DIV tab2.col0 FROM tab2
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5550
SELECT - 35 / tab2.col0 FROM tab2
----
-5
0
0

query I rowsort
SELECT + col2 * - col1 + + col2 * col1 * col1 + + tab0.col0 FROM tab0
----
241254
671669
9347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 - tab2.col1 * col2 col2 FROM tab2
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5553
SELECT CAST( NULL AS SIGNED ) + tab0.col0 - tab0.col0 * col2 col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5553
SELECT CAST ( NULL AS INTEGER ) + tab0.col0 - tab0.col0 * col2 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 - col2 AS col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT + col2 * + col0 + + col1 AS col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT - tab1.col2 * col0 - + col1 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT 29 + - 85 FROM tab0
----
-56
-56
-56

query I rowsort
SELECT - col0 + - col0 * - col0 AS col1 FROM tab2
----
42
6006
6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-5559
SELECT + col0 DIV 58 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5559
SELECT + col0 / 58 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT - ( + 62 ) - col1 FROM tab1
----
-72
-75
-88

query I rowsort
SELECT DISTINCT col1 * 4 AS col2 FROM tab2 AS cor0
----
124
236
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + ( col1 + col2 ) * - col1 col1 FROM tab2 AS cor0
----
-1825
-5041
-973

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5563
SELECT DISTINCT + col2 * CAST( - col1 AS SIGNED ) - - col2 AS col1 FROM tab2 cor0
----
-1508
-608
-810

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT + col2 * CAST ( - col1 AS INTEGER ) - - col2 AS col1 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL - cor0.col0 * 36 FROM tab1 AS cor0
----
-108
-2304
-2880

query I rowsort
SELECT + col0 + col1 * + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + - col1 + + cor0.col1 * col2 FROM tab2 AS cor0
----
1475
629
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 * col1 * - ( - col1 ) col1 FROM tab0
----
599076
670761
762129

query I rowsort
SELECT - - col0 * - 23 FROM tab1 cor0
----
-1472
-1840
-69

query I rowsort
SELECT ALL + col2 + - cor0.col0 * col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT tab1.col2 * tab1.col0 * col2 AS col2 FROM tab1
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 25 col0 FROM tab0
----
-2225
-600
-875

query I rowsort
SELECT + col1 + col1 * + ( col2 * - col1 ) FROM tab0
----
-243982
-678951
-9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5573
SELECT - tab0.col1 * CAST( NULL AS SIGNED ) - + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5573
SELECT - tab0.col1 * CAST ( NULL AS INTEGER ) - + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - 86 ) AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT col1 * - 16 FROM tab2 AS cor0
----
-272
-496
-944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5576
SELECT DISTINCT - col2 - col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5576
SELECT DISTINCT - col2 - col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT 79 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5578
SELECT CAST( NULL AS SIGNED ) - - 2 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5578
SELECT CAST ( NULL AS INTEGER ) - - 2 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5579
SELECT DISTINCT - 76 DIV - cor0.col2 + - col2 FROM tab1 AS cor0
----
-53
-56
-96

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT - 76 / - cor0.col2 + - col2 FROM tab1 AS cor0
----
-53
-56
-96

query I rowsort
SELECT DISTINCT + + cor0.col0 * cor0.col1 + col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5581
SELECT DISTINCT - col1 * tab0.col0 DIV + 42 col2 FROM tab0
----
-192
-49
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT - col1 * tab0.col0 / + 42 col2 FROM tab0
----
-192
-49
-80

query I rowsort
SELECT ALL cor0.col1 + + col2 * - col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT - col0 + - 89 * col2 AS col0 FROM tab2 AS cor0
----
-2392
-2410
-3461

query I rowsort
SELECT col2 - col1 * - col0 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - col1 * col0 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col1 * cor0.col1 + cor0.col0 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT DISTINCT col2 + + col2 * + col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL + cor0.col1 + col0 * - 63 FROM tab2 AS cor0
----
-410
-4855
-4960

onlyif mysql # use DIV operator for integer division
query I rowsort label-5589
SELECT + col1 DIV 83 + + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5589
SELECT + col1 / 83 + + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + col1 * + ( - col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5591
SELECT - col0 DIV + cor0.col1 AS col0 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-5591
SELECT - col0 / + cor0.col1 AS col0 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT + col2 + + col2 - + col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5593
SELECT col0 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5594
SELECT - col1 DIV CAST( + 37 * + col2 + - ( ( + col2 ) ) AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5594
SELECT - col1 / CAST ( + 37 * + col2 + - ( ( + col2 ) ) AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 50 * col2 FROM tab1 AS cor0
----
-2700
-2850
-4800

query I rowsort
SELECT DISTINCT col1 * + col0 + + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT 83 AS col0 FROM tab0, tab2 AS cor0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT ALL col2 * - col0 + col0 + col2 AS col2 FROM tab1 AS cor0
----
-105
-3527
-7504

query I rowsort
SELECT - ( - col2 ) + + col0 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) + col1 * col0 col0 FROM tab2 cor0
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5602
SELECT + - CAST( col0 AS SIGNED ) * - col1 + - col0 AS col1 FROM tab1 AS cor0
----
576
75
960

skipif mysql # not compatible
query I rowsort label-5602
SELECT + - CAST ( col0 AS INTEGER ) * - col1 + - col0 AS col1 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-5603
SELECT ALL + col2 DIV + col1 + + col1 AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL + col2 / + col1 + + col1 AS col1 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5604
SELECT DISTINCT CAST( NULL AS SIGNED ) - + col0 * cor0.col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col0 * cor0.col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 * - 83 + col1 FROM tab0 AS cor0
----
-7052
-7462
-7954

query I rowsort
SELECT DISTINCT - col0 - - cor0.col1 * - col2 * - col1 AS col0 FROM tab2 AS cor0
----
10903
25940
90428

query I rowsort
SELECT ALL + 7 + col0 FROM tab0 AS cor0
----
31
42
96

query I rowsort
SELECT + 65 AS col0 FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT ALL + col0 * col0 + col2 FROM tab2 cor0
----
6110
6279
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5610
SELECT + - col2 DIV col2 + + col0 AS col1 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-5610
SELECT + - col2 / col2 + + col0 AS col1 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT ALL + col1 * 16 + col2 FROM tab0 AS cor0
----
1409
1538
1553

query I rowsort
SELECT DISTINCT ( - col0 ) * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + col2 * - col1 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + - col2 * col2 + 10 FROM tab1 AS cor0
----
-2906
-3239
-9206

query I rowsort
SELECT ALL - 82 AS col2 FROM tab0 cor0
----
-82
-82
-82

query I rowsort
SELECT ( - col0 ) * - 80 * + col0 AS col2 FROM tab2 AS cor0
----
3920
486720
499280

query I rowsort
SELECT ALL - + 28 + + cor0.col0 * - col0 AS col0 FROM tab1 cor0
----
-37
-4124
-6428

query I rowsort
SELECT ALL cor1.col2 FROM tab1, tab0 cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5619
SELECT + CAST( NULL AS SIGNED ) - + col2 / + tab1.col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5619
SELECT + CAST ( NULL AS INTEGER ) - + col2 / + tab1.col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 + col2 * - col2 * 58 col0 FROM tab0 cor0
----
-389991
-57
-63161

query I rowsort
SELECT - tab0.col0 FROM tab0, tab1 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT - 98 FROM tab0 cor0
----
-98
-98
-98

query I rowsort
SELECT ALL 0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - - 16 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT ALL - cor0.col1 + 97 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 193f5f86ee68e9f2ca10111ae6e659d3

query I rowsort
SELECT - 31 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT - 6 * + col1 AS col0 FROM tab2
----
-102
-186
-354

query I rowsort
SELECT DISTINCT + 84 AS col0 FROM tab0
----
84

query I rowsort
SELECT + 29 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5631
SELECT ALL + + CAST( col0 AS SIGNED ) + col1 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL + + CAST ( col0 AS INTEGER ) + col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - 11 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT col1 + 43 * + col0 AS col0 FROM tab2 AS cor0
----
332
3413
3414

query I rowsort
SELECT ALL + + cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT + 52 AS col0 FROM tab2 AS cor0
----
52

query I rowsort
SELECT DISTINCT 5 + col1 FROM tab1 AS cor0
----
15
18
31

query I rowsort
SELECT + + 92 + 95 + col2 * 43 FROM tab1 AS cor0
----
2509
2638
4315

query I rowsort
SELECT - - 18 + ( col1 ) AS col0 FROM tab0 AS cor0
----
104
109
115

query I rowsort
SELECT + + cor0.col0 * col1 + cor0.col0 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5640
SELECT ALL col1 DIV tab2.col1 + col2 + col0 AS col0 FROM tab2
----
105
118
35

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL col1 / tab2.col1 + col2 + col0 AS col0 FROM tab2
----
105
118
35

query I rowsort
SELECT - 28 - col2 FROM tab1 AS cor0
----
-124
-82
-85

query I rowsort
SELECT DISTINCT - 13 AS col2 FROM tab1, tab0 AS cor0
----
-13

query I rowsort
SELECT 35 + cor0.col1 FROM tab0 AS cor0
----
121
126
132

query I rowsort
SELECT + ( - col1 ) * - col2 + + col0 * - col1 FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL + 44 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT 94 * 30 FROM tab0
----
2820

onlyif mysql # use DIV operator for integer division
query I rowsort label-5648
SELECT - CAST( - 93 AS SIGNED ) * tab1.col1 DIV tab1.col2 AS col2 FROM tab1
----
12
16
44

skipif mysql # not compatible
query I rowsort label-5648
SELECT - CAST ( - 93 AS INTEGER ) * tab1.col1 / tab1.col2 AS col2 FROM tab1
----
12
16
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-5649
SELECT DISTINCT col0 DIV + tab1.col1 - col1 FROM tab1
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-5649
SELECT DISTINCT col0 / + tab1.col1 - col1 FROM tab1
----
-26
-4
-7

query I rowsort
SELECT ALL col1 * - 43 AS col1 FROM tab2
----
-1333
-2537
-731

query I rowsort
SELECT - 61 + col2 AS col1 FROM tab0 cor0
----
-28
-60
21

query I rowsort
SELECT + + col1 * + cor0.col1 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab0.col1 ) col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - 14 AS col0 FROM tab2
----
-14

query I rowsort
SELECT + ( + col1 + 99 ) FROM tab0
----
185
190
196

query I rowsort
SELECT ALL col2 + - cor0.col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT 88 * - cor0.col0 FROM tab0 AS cor0
----
-2112
-3080
-7832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5658
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5658
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query IIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab1 cor0 WHERE NOT NULL NOT BETWEEN ( tab2.col0 ) AND ( NULL )
----

query I rowsort
SELECT ALL + tab2.col0 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5661
SELECT col1 + 1 DIV - col2 col0 FROM tab0 AS cor0
----
86
91
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5661
SELECT col1 + 1 / - col2 col0 FROM tab0 AS cor0
----
86
91
96

query I rowsort
SELECT col0 * 9 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT tab1.col0 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + col2 * ( - 97 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
-105633
-652228
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5665
SELECT 83 DIV + col0 FROM tab2 AS cor0
----
1
1
11

skipif mysql # not compatible
query I rowsort label-5665
SELECT 83 / + col0 FROM tab2 AS cor0
----
1
1
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5666
SELECT DISTINCT + col2 + col1 * col1 + ( + cor0.col0 * col1 + CAST( - 67 AS SIGNED ) ) FROM tab0 AS cor0
----
12738
16395
9426

skipif mysql # not compatible
query I rowsort label-5666
SELECT DISTINCT + col2 + col1 * col1 + ( + cor0.col0 * col1 + CAST ( - 67 AS INTEGER ) ) FROM tab0 AS cor0
----
12738
16395
9426

query I rowsort
SELECT DISTINCT - col0 * - col2 + + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5668
SELECT DISTINCT CAST( + col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT CAST ( + col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + col0 + ( cor0.col2 + col2 ) AS col2 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT + cor0.col1 * 74 FROM tab1 AS cor0
----
1924
740
962

onlyif mysql # use DIV operator for integer division
query I rowsort label-5671
SELECT + col2 DIV + 31 col2 FROM tab1 AS cor0
----
1
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5671
SELECT + col2 / + 31 col2 FROM tab1 AS cor0
----
1
1
3

query I rowsort
SELECT + + 30 - col2 AS col1 FROM tab2 AS cor0
----
-8
3
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5673
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 + cor0.col1 * + ( + 2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 + cor0.col1 * + ( + 2 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 + - col0 * col0 AS col1 FROM tab0 cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 * - cor0.col2 + col1 FROM tab0 AS cor0
----
-26050
-598345
62

query I rowsort
SELECT 12 + - col2 FROM tab2 AS cor0
----
-14
-15
-26

query I rowsort
SELECT ALL + 86 + - col2 AS col2 FROM tab0 AS cor0
----
4
53
85

query I rowsort
SELECT ALL col1 + col0 + - col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - 48 * 2 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL - ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ( + col0 ) + ( col2 + col0 * col1 ) AS col2 FROM tab0
----
2121
3431
8270

query I rowsort
SELECT - - ( col1 ) * + col2 * col2 AS col2 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT - 74 + - col0 * - ( + 24 ) FROM tab2 AS cor0
----
1798
1822
94

query I rowsort
SELECT - 62 * + col2 AS col1 FROM tab1 cor0
----
-3348
-3534
-5952

query I rowsort
SELECT ALL col0 * - col1 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL 5 * - 6 FROM tab2
----
-30
-30
-30

query I rowsort
SELECT ALL - 18 FROM tab0, tab1 cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT + - ( + col2 ) * - 26 FROM tab2 AS cor0
----
676
702
988

query I rowsort
SELECT + col0 * + col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - 7 + col2 * 4 AS col0 FROM tab2 cor0
----
101
145
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5691
SELECT ALL + col1 + CAST( + col1 AS SIGNED ) FROM tab2 cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL + col1 + CAST ( + col1 AS INTEGER ) FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT 45 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT tab0.col1 * tab0.col0 * + ( + 81 ) - col1 * ( col2 + + col1 ) FROM tab0
----
156950
265489
640276

query I rowsort
SELECT - 36 * tab0.col2 AS col0 FROM tab0
----
-1188
-2952
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT - col1 + col0 * - col2 AS col1 FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT ALL + + cor0.col0 * cor0.col0 + + cor0.col0 * + col0 AS col1 FROM tab2 AS cor0
----
12168
12482
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5698
SELECT - col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5698
SELECT - col2 / + col0 AS col2 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT ALL - cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT tab1.col0 - + col1 AS col1 FROM tab1
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab2.col1 col1 FROM tab2
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-5702
SELECT DISTINCT - tab2.col1 DIV tab2.col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT - tab2.col1 / tab2.col1 FROM tab2
----
-1

query I rowsort
SELECT ALL + - cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5704
SELECT DISTINCT - col1 DIV col1 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT - col1 / col1 AS col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL - + col0 + + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5706
SELECT ALL - col0 DIV + cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL - col0 / + cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 66 + col0 AS col1 FROM tab2
----
144
145
73

query I rowsort
SELECT DISTINCT col2 * - col1 + + col2 * col0 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT ALL 81 * col2 AS col2 FROM tab0 AS cor0
----
2673
6642
81

query I rowsort
SELECT + ( cor0.col1 ) * col2 + col0 AS col0 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - - 85 + col2 + col0 AS col1 FROM tab0 AS cor0
----
121
142
256

query I rowsort
SELECT ALL + tab1.col0 + - col1 * + col2 * col2 FROM tab1
----
-119728
-32426
-75813

query I rowsort
SELECT + 5 + + cor0.col0 FROM tab0 AS cor0
----
29
40
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-5714
SELECT DISTINCT col2 + col0 DIV cor0.col2 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT col2 + col0 / cor0.col2 FROM tab1 AS cor0
----
54
58
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 + cor0.col2 col1 FROM tab0 cor0
----
-7363
-8199
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-5716
SELECT DISTINCT + col1 DIV col2 + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5716
SELECT DISTINCT + col1 / col2 + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL col1 * col1 + cor0.col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT + - col2 + - col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5719
SELECT ALL + + col1 + - col2 DIV + col2 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL + + col1 + - col2 / + col2 FROM tab0 AS cor0
----
85
90
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5720
SELECT ALL - col2 DIV col1 + tab0.col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL - col2 / col1 + tab0.col0 FROM tab0
----
24
35
89

query I rowsort
SELECT + col1 + col1 + col0 * col0 * - col0 FROM tab2 AS cor0
----
-281
-474434
-493005

query I rowsort
SELECT ALL + col1 * - col1 + col0 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT + col2 + tab2.col2 FROM tab2
----
52
54
76

query I rowsort
SELECT ALL col1 FROM tab2 WHERE + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * col2 + - col0 FROM tab0
----
-1113
-36
-6813

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT - col1 * - col2 + + col0 AS col2 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT col1 + - col2 + - col2 FROM tab0
----
-73
20
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 col0 FROM tab0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * col1 + tab2.col1 col0 FROM tab2
----
22848
271577
6758

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col0 )
----

query I rowsort
SELECT col1 * + col1 AS col0 FROM tab2 WHERE ( NULL ) <= col1
----

query I rowsort
SELECT + col2 * col0 + + col0 * col0 AS col1 FROM tab0
----
1260
1368
15219

query III rowsort
SELECT * FROM tab2 WHERE NOT ( tab2.col2 ) <> - col1 * - col2 + - col0
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT col1 + col0 BETWEEN NULL AND ( + col2 * - col2 )
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5736
SELECT - ( - col1 ) * 90 DIV 23 AS col2 FROM tab1 cor0
----
101
39
50

skipif mysql # not compatible
query I rowsort label-5736
SELECT - ( - col1 ) * 90 / 23 AS col2 FROM tab1 cor0
----
101
39
50

query I rowsort
SELECT DISTINCT + col1 + col2 * + col2 AS col1 FROM tab0
----
1175
6815
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 NOT BETWEEN - col2 AND col1 * - col0 * + col1
----

query I rowsort
SELECT ALL + col2 + col1 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT col1 / col1 - col2 * col1 AS col1 FROM tab0 WHERE + col2 <= - col2
----

query I rowsort
SELECT ALL col0 * tab1.col1 + tab1.col0 * col2 AS col1 FROM tab1
----
240
4288
8720

onlyif mysql # use DIV operator for integer division
query I rowsort label-5742
SELECT col1 DIV + col0 + + col2 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-5742
SELECT col1 / + col0 + + col2 FROM tab2 AS cor0
----
26
31
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 * col2 * col1 col1 FROM tab1 AS cor0
----
-36470
-4186
-99827

query I rowsort
SELECT - col0 * col1 + - col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT col0 * + col2 * + col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT + col1 * - col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + cor0.col2 col1 FROM tab1 AS cor0
----
2916
3249
9216

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 * + col1 <> ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5749
SELECT tab0.col0 + col1 + col1 DIV + tab0.col1 AS col1 FROM tab0
----
111
133
181

skipif mysql # not compatible
query I rowsort label-5749
SELECT tab0.col0 + col1 + col1 / + tab0.col1 AS col1 FROM tab0
----
111
133
181

query I rowsort
SELECT ALL tab1.col2 - tab1.col2 FROM tab1
----
0
0
0

query I rowsort
SELECT tab0.col1 + + col2 * tab0.col1 + - col2 AS col1 FROM tab0
----
193
2891
7471

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + - col2 NOT BETWEEN col0 AND ( NULL )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT col0 * + col0 * - col0 AS col0 FROM tab2
----
-343
-474552
-493039

onlyif mysql # use DIV operator for integer division
query I rowsort label-5754
SELECT ALL col1 * col2 + - col1 + + col1 * col0 DIV col2 FROM tab0
----
2814
3395
7469

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL col1 * col2 + - col1 + + col1 * col0 / col2 FROM tab0
----
2814
3395
7469

query I rowsort
SELECT - tab2.col1 * col2 * - col2 FROM tab2
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-5756
SELECT col2 DIV + col1 - col2 DIV - col2 AS col1 FROM tab1
----
3
6
8

skipif mysql # not compatible
query I rowsort label-5756
SELECT col2 / + col1 - col2 / - col2 AS col1 FROM tab1
----
3
6
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col2 - - col0 AS col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT - col0 + col0 * - col0 * + tab2.col0 FROM tab2
----
-350
-474630
-493118

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 ) NOT IN ( col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 col2 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 + + col0 col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT ( + col1 ) * - 42 FROM tab1 AS cor0
----
-1092
-420
-546

query I rowsort
SELECT ALL - col2 + - col1 * col1 * - 86 + col0 AS col0 FROM tab0 AS cor0
----
636047
712173
809208

query I rowsort
SELECT ALL - 73 * - cor0.col1 * + col0 - 35 * col2 AS col2 FROM tab1 AS cor0
----
3804
44725
72560

query I rowsort
SELECT + col1 + - col1 * + 86 AS col2 FROM tab1 AS cor0
----
-1105
-2210
-850

query I rowsort
SELECT DISTINCT col2 * + col1 + + col1 - + ( + col0 ) * + ( cor0.col0 ) FROM tab0 AS cor0
----
-1031
-368
2348

query I rowsort
SELECT col1 * 2 + col2 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT DISTINCT col1 * cor0.col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT + col1 * + cor0.col1 + + 74 AS col1 FROM tab1 AS cor0
----
174
243
750

onlyif mysql # use DIV operator for integer division
query I rowsort label-5771
SELECT + col1 DIV col1 + - 78 * cor0.col2 * - 36 FROM tab0 cor0
----
230257
2809
92665

skipif mysql # not compatible
query I rowsort label-5771
SELECT + col1 / col1 + - 78 * cor0.col2 * - 36 FROM tab0 cor0
----
230257
2809
92665

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5772
SELECT + + col1 * + CAST( NULL AS SIGNED ) - - col2 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT + + col1 * + CAST ( NULL AS INTEGER ) - - col2 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5773
SELECT DISTINCT + col2 * + CAST( 20 AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
571
579
777

skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT + col2 * + CAST ( 20 AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
571
579
777

query I rowsort
SELECT DISTINCT ( 84 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
84

query I rowsort
SELECT col0 * + col0 * col1 + - 7 AS col2 FROM tab0 AS cor0
----
118818
49529
720804

query I rowsort
SELECT - + col2 * + col2 + col2 * + col0 AS col2 FROM tab2 cor0
----
-540
1352
1558

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5777
SELECT ALL 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-5777
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col2 * col0 + col1 ) FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT + + 25 * col1 FROM tab2 AS cor0
----
1475
425
775

onlyif mysql # use DIV operator for integer division
query I rowsort label-5780
SELECT DISTINCT 67 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5780
SELECT DISTINCT 67 / - col0 AS col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT + col1 + col1 * - col0 + cor0.col2 FROM tab2 AS cor0
----
-1288
-159
-4517

query I rowsort
SELECT DISTINCT - col1 + tab0.col1 AS col2 FROM tab0
----
0

query I rowsort
SELECT - col0 * col2 + col0 * + 12 AS col0 FROM tab0
----
-504
-6230
385

query I rowsort
SELECT DISTINCT 0 AS col1 FROM tab0, tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5785
SELECT col1 * - tab0.col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5785
SELECT col1 * - tab0.col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 97 AS col1 FROM tab1 cor0
----
-97
-97
-97

query I rowsort
SELECT col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 col0 FROM tab1
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5789
SELECT DISTINCT + - col2 * - col2 + 34 DIV + col0 - col2 AS col0 FROM tab0 AS cor0
----
0
1057
6642

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT + - col2 * - col2 + 34 / + col0 - col2 AS col0 FROM tab0 AS cor0
----
0
1057
6642

onlyif mysql # use DIV operator for integer division
query I rowsort label-5790
SELECT ALL - col1 + col2 * col1 DIV + 39 AS col2 FROM tab1 AS cor0
----
10
19
4

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL - col1 + col2 * col1 / + 39 AS col2 FROM tab1 AS cor0
----
10
19
4

query I rowsort
SELECT DISTINCT col0 * col2 - ( tab2.col2 * ( - col0 ) ) AS col1 FROM tab2
----
378
4056
6004

query I rowsort
SELECT tab1.col0 + - 99 - + tab1.col2 AS col2 FROM tab1
----
-115
-150
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * tab2.col0 - - col0 * - col1 col0 FROM tab2
----
-10686
-266
-7584

query I rowsort
SELECT col2 - col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - tab0.col2 * col2 - + 32 FROM tab0
----
-1121
-33
-6756

query I rowsort
SELECT DISTINCT + col1 + + col0 + - col0 FROM tab0
----
86
91
97

query I rowsort
SELECT - col2 * + col0 + - col1 * col0 FROM tab0 AS cor0
----
-15397
-2856
-3430

query I rowsort
SELECT ALL col1 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT 18 + + col1 + col0 * 51 FROM tab2 AS cor0
----
4055
406
4064

query I rowsort
SELECT DISTINCT - ( - col1 ) * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT col2 + + col1 * col0 AS col2 FROM tab1 AS cor0
----
1136
132
697

skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( col2 AS REAL ) FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5803
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + cor0.col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + ( + 96 ) AS col2 FROM tab0 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT - - col2 * ( + col1 ) FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5806
SELECT + - col1 DIV cor0.col1 + cor0.col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-5806
SELECT + - col1 / cor0.col1 + cor0.col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT - + col0 * col0 + - col1 AS col1 FROM tab2 cor0
----
-6143
-6258
-80

query I rowsort
SELECT - cor0.col2 * 33 + + col2 FROM tab2 AS cor0
----
-1216
-832
-864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5809
SELECT + CAST( NULL AS SIGNED ) + ( col1 ) * - ( + col1 ) + col1 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT + CAST ( NULL AS INTEGER ) + ( col1 ) * - ( + col1 ) + col1 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5810
SELECT ALL + CAST( NULL AS DECIMAL ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL + CAST ( NULL AS REAL ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5811
SELECT - CAST( NULL AS DECIMAL ) / + ( + col0 ) + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5811
SELECT - CAST ( NULL AS REAL ) / + ( + col0 ) + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + + col1 * ( + col2 ) col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - + 33 FROM tab1 AS cor0
----
-33

query I rowsort
SELECT ALL + col0 * 76 FROM tab1 AS cor0
----
228
4864
6080

query I rowsort
SELECT DISTINCT - + 34 * 36 FROM tab2 AS cor0
----
-1224

query I rowsort
SELECT - col1 * + 83 AS col0 FROM tab1 cor0
----
-1079
-2158
-830

query I rowsort
SELECT ALL + col2 + + ( cor0.col0 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - col0 - - col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT cor0.col1 * col0 + + col0 * col0 + - 45 FROM tab0 AS cor0
----
15975
2595
4575

query I rowsort
SELECT col1 + + 40 * ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
1099
1111
1537

query I rowsort
SELECT ALL - 60 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT + col2 * - ( col0 ) + + col0 AS col1 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL 32 * col1 + - col1 AS col2 FROM tab1
----
310
403
806

query I rowsort
SELECT ALL 31 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT + - 59 AS col1 FROM tab1 AS cor0
----
-59
-59
-59

query I rowsort
SELECT + col2 * - ( col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + tab1.col2 * 20 FROM tab1
----
1080
1140
1920

query I rowsort
SELECT col0 + 74 AS col2 FROM tab1
----
138
154
77

query I rowsort
SELECT + col2 * tab0.col1 * col1 + - tab0.col2 FROM tab0
----
244035
678960
9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5830
SELECT ALL + ( col1 ) * - CAST( NULL AS SIGNED ) * col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL + ( col1 ) * - CAST ( NULL AS INTEGER ) * col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + col1 - col0 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT tab2.col1 * + tab2.col1 * + col2 - - 2 AS col1 FROM tab2
----
10984
25949
90508

query I rowsort
SELECT + 30 * col0 + tab2.col1 + 75 * - col2 AS col0 FROM tab2
----
-1784
-463
449

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col1 ) + + ( col1 ) col2 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 col0 FROM tab0 cor0
----
89

query I rowsort
SELECT DISTINCT - 87 * + col0 AS col2 FROM tab0 AS cor0
----
-2088
-3045
-7743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col1 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5838
SELECT - - col0 DIV + col1 + col2 * 61 * cor0.col0 AS col1 FROM tab0 AS cor0
----
2135
445178
48312

skipif mysql # not compatible
query I rowsort label-5838
SELECT - - col0 / + col1 + col2 * 61 * cor0.col0 AS col1 FROM tab0 AS cor0
----
2135
445178
48312

query I rowsort
SELECT DISTINCT + 90 + col1 FROM tab1 AS cor0
----
100
103
116

query I rowsort
SELECT DISTINCT 59 - + col1 AS col1 FROM tab0
----
-27
-32
-38

query I rowsort
SELECT DISTINCT - col2 * - col1 + col1 AS col0 FROM tab1
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-5842
SELECT DISTINCT + ( 33 ) + + col1 DIV + ( + col0 ) + col1 AS col2 FROM tab1
----
43
46
67

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT + ( 33 ) + + col1 / + ( + col0 ) + col1 AS col2 FROM tab1
----
43
46
67

query I rowsort
SELECT col1 * col1 * + col0 AS col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT ALL 62 - + col1 AS col0 FROM tab1
----
36
49
52

query I rowsort
SELECT 51 - col0 AS col1 FROM tab0
----
-38
16
27

query I rowsort
SELECT + col0 * 6 * - col2 + - ( - 61 * - col0 ) + + 24 FROM tab2
----
-1537
-16902
-22807

query I rowsort
SELECT DISTINCT - 15 AS col2 FROM tab2, tab1 AS cor0
----
-15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5848
SELECT CAST( col0 AS SIGNED ) + + col0 + 76 AS col1 FROM tab2
----
232
234
90

skipif mysql # not compatible
query I rowsort label-5848
SELECT CAST ( col0 AS INTEGER ) + + col0 + 76 AS col1 FROM tab2
----
232
234
90

query I rowsort
SELECT DISTINCT tab2.col0 + + col0 FROM tab2
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-5850
SELECT DISTINCT - + col2 + col0 DIV + 87 - + col2 AS col2 FROM tab1 cor0
----
-108
-114
-192

skipif mysql # not compatible
query I rowsort label-5850
SELECT DISTINCT - + col2 + col0 / + 87 - + col2 AS col2 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT ALL - ( + col2 ) * + ( + 23 ) FROM tab0 AS cor0
----
-1886
-23
-759

query I rowsort
SELECT - cor0.col1 * col1 + - 34 AS col0 FROM tab2 AS cor0
----
-323
-3515
-995

query I rowsort
SELECT ALL - - 52 * - cor0.col0 FROM tab2 AS cor0
----
-364
-4056
-4108

query I rowsort
SELECT ALL - cor0.col1 + - col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5855
SELECT ALL - - col0 + + col0 DIV col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL - - col0 + + col0 / col1 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 col1 FROM tab1
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 45 col1 FROM tab0 AS cor0
----
134
69
80

query I rowsort
SELECT + col0 - + col2 * 40 AS col1 FROM tab1 AS cor0
----
-2157
-2216
-3760

query I rowsort
SELECT DISTINCT - 11 + col1 FROM tab2
----
20
48
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5860
SELECT ALL + 24 DIV - col0 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5860
SELECT ALL + 24 / - col0 FROM tab2
----
-3
0
0

query I rowsort
SELECT col2 + col2 * - 93 FROM tab1 AS cor0
----
-4968
-5244
-8832

query I rowsort
SELECT - 26 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT - + col2 + - col1 * 47 FROM tab1 AS cor0
----
-1276
-527
-707

query I rowsort
SELECT + - cor0.col0 + ( + col2 ) * - col0 - 91 FROM tab1 AS cor0
----
-256
-3803
-7851

query I rowsort
SELECT col0 * + ( 6 ) AS col2 FROM tab1 AS cor0
----
18
384
480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5866
SELECT + col1 * + CAST( NULL AS SIGNED ) + 10 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5866
SELECT + col1 * + CAST ( NULL AS INTEGER ) + 10 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 31 * + col2 col0 FROM tab2 AS cor0
----
-20956
-22599
-44764

query I rowsort
SELECT ( + tab2.col0 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT - col1 * ( col1 ) + ( col1 ) FROM tab2 cor0
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT + + col1 + - cor0.col2 FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col0 col1 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5872
SELECT ALL CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 * + 89 AS col1 FROM tab2 AS cor0
----
-1513
-2759
-5251

query I rowsort
SELECT ALL + 12 * + 5 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT ALL - col0 + - 96 + col1 FROM tab2 AS cor0
----
-115
-158
-72

query I rowsort
SELECT DISTINCT + col2 * 60 AS col0 FROM tab2 AS cor0
----
1560
1620
2280

query I rowsort
SELECT - - col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT 11 * col2 + 4 FROM tab2 cor0
----
290
301
422

query I rowsort
SELECT + 0 + col1 * + ( + col0 + cor0.col2 ) FROM tab1 AS cor0
----
1210
1482
2288

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1 cor1, tab0, tab1 AS cor2
----
3645 values hashing to f464d40c605db608927f2c4d66190a23

query I rowsort
SELECT + ( 26 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT DISTINCT tab0.col0 + ( - col0 ) * col1 + col0 FROM tab0
----
-2016
-3325
-7921

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0, tab1 cor1
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53

query I rowsort
SELECT - cor0.col1 + ( - 34 ) AS col1 FROM tab1 AS cor0
----
-44
-47
-60

query I rowsort
SELECT col0 * - 70 AS col2 FROM tab1 AS cor0
----
-210
-4480
-5600

query I rowsort
SELECT DISTINCT - 35 * col1 FROM tab1 AS cor0
----
-350
-455
-910

query I rowsort
SELECT - + 93 AS col0 FROM tab2 cor0
----
-93
-93
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5888
SELECT ALL col0 DIV - cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL col0 / - cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col0 * 98 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
2352
3430
8722

query I rowsort
SELECT DISTINCT - 38 + ( - col0 ) * 84 AS col1 FROM tab2 AS cor0
----
-626
-6590
-6674

query I rowsort
SELECT + col2 * col1 + 89 AS col1 FROM tab0 cor0
----
186
2927
7551

query I rowsort
SELECT DISTINCT - col2 * col2 - ( col1 ) * col1 FROM tab2
----
-1690
-1733
-4157

query I rowsort
SELECT col1 * - col1 + - 7 AS col1 FROM tab0 cor0
----
-7403
-8288
-9416

onlyif mysql # use DIV operator for integer division
query I rowsort label-5894
SELECT - 35 DIV + col1 - CAST( + 57 + - col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
-24
-56
25

skipif mysql # not compatible
query I rowsort label-5894
SELECT - 35 / + col1 - CAST ( + 57 + - col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
-24
-56
25

query I rowsort
SELECT ALL col0 + + cor0.col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL - col1 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5897
SELECT + col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5897
SELECT + col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + col0 - - col1 FROM tab0 AS cor0
----
134
167
269

query I rowsort
SELECT ( tab1.col2 ) * + col0 AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - 30 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142

query I rowsort
SELECT col2 + col1 * + 82 FROM tab1 AS cor0
----
1162
2186
877

query I rowsort
SELECT + cor1.col1 AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT col2 * col0 + - col1 AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT + 99 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT ALL - col1 * + ( col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + + col2 * 35 - + cor0.col0 FROM tab2 cor0
----
1251
832
938

query I rowsort
SELECT ALL - + col0 - + col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor1.col1 col1 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to aad6a39cc782d0570960622f04a07424

query I rowsort
SELECT ALL - col2 + + 5 AS col2 FROM tab0
----
-28
-77
4

query I rowsort
SELECT DISTINCT + 26 - - col1 AS col2 FROM tab0 AS cor0
----
112
117
123

query I rowsort
SELECT ALL col0 + - col0 * + col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - cor0.col1 + - 37 FROM tab1 AS cor0
----
-47
-50
-63

query I rowsort
SELECT ALL - 19 + - col2 * + col2 + cor0.col0 FROM tab0 AS cor0
----
-1084
-6654
15

query I rowsort
SELECT DISTINCT + col1 + 14 AS col1 FROM tab1
----
24
27
40

query I rowsort
SELECT + col0 - - 97 AS col2 FROM tab2
----
104
175
176

onlyif mysql # use DIV operator for integer division
query I rowsort label-5916
SELECT + col1 DIV + col1 + - cor0.col1 * - col0 DIV + col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5916
SELECT + col1 / + col1 + - cor0.col1 * - col0 / + col0 FROM tab0 AS cor0
----
87
92
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5917
SELECT + col0 DIV + CAST( + 64 AS SIGNED ) + tab1.col2 * - col2 AS col2 FROM tab1
----
-2916
-3248
-9215

skipif mysql # not compatible
query I rowsort label-5917
SELECT + col0 / + CAST ( + 64 AS INTEGER ) + tab1.col2 * - col2 AS col2 FROM tab1
----
-2916
-3248
-9215

query I rowsort
SELECT ALL col1 * 44 + - col1 FROM tab0
----
3698
3913
4171

query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1, tab2, tab0 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + 71 FROM tab0
----
71

query I rowsort
SELECT 14 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT - 81 + - col2 FROM tab1 AS cor0
----
-135
-138
-177

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5923
SELECT ALL ( - col2 ) * - CAST( NULL AS SIGNED ) + + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL ( - col2 ) * - CAST ( NULL AS INTEGER ) + + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + - col2 * + col1 FROM tab2 cor0
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT + col0 + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT col0 * + col0 * - cor0.col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT ALL + 88 * + col1 FROM tab2 AS cor0
----
1496
2728
5192

query I rowsort
SELECT ALL - 23 FROM tab1
----
-23
-23
-23

query I rowsort
SELECT DISTINCT col0 * col1 * col0 AS col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT ALL 48 * - col1 FROM tab2
----
-1488
-2832
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * tab1.col2 col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + 26 * col0 * - col2 + 46 AS col1 FROM tab1 cor0
----
-199634
-4166
-94802

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 10 ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5934
SELECT + cor0.col2 + cor0.col2 DIV + 82 - 50 FROM tab2 AS cor0
----
-12
-23
-24

skipif mysql # not compatible
query I rowsort label-5934
SELECT + cor0.col2 + cor0.col2 / + 82 - 50 FROM tab2 AS cor0
----
-12
-23
-24

query I rowsort
SELECT ALL + cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5936
SELECT DISTINCT + 52 + - cor0.col1 DIV - CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
52
56

skipif mysql # not compatible
query I rowsort label-5936
SELECT DISTINCT + 52 + - cor0.col1 / - CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
52
56

query I rowsort
SELECT - col0 * - col2 * - 36 + - col1 * + col0 + 77 AS col2 FROM tab1 AS cor0
----
-131891
-277443
-5833

query I rowsort
SELECT col0 * col2 + - col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT + 40 + col2 FROM tab2 AS cor0
----
66
67
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 + 8 col0 FROM tab1
----
-57
-57
-57

query I rowsort
SELECT - ( - tab0.col1 ) AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - ( col1 ) + - cor0.col0 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT + + col2 + + col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + ( + 30 ) * + col2 + ( 1 ) AS col1 FROM tab1 AS cor0
----
1621
1711
2881

onlyif mysql # use DIV operator for integer division
query I rowsort label-5945
SELECT DISTINCT - - cor0.col0 DIV 55 + + col1 FROM tab0 AS cor0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT - - cor0.col0 / 55 + + col1 FROM tab0 AS cor0
----
86
92
97

query I rowsort
SELECT ALL + + col1 + + 6 FROM tab1 AS cor0
----
16
19
32

query I rowsort
SELECT DISTINCT - - col2 * ( col0 ) AS col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col2 + - 14 FROM tab1 cor0
----
40
43
82

query I rowsort
SELECT + col2 + + 77 FROM tab1 AS cor0
----
131
134
173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col0 ) col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT 92 + - col2 AS col2 FROM tab2 AS cor0
----
54
65
66

query I rowsort
SELECT - - 7 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT ALL - 55 + col0 * - ( 87 ) AS col0 FROM tab1 cor0
----
-316
-5623
-7015

query I rowsort
SELECT DISTINCT 43 + col1 + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-19
24
67

query I rowsort
SELECT ALL + + cor0.col2 + + col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - + 54 AS col0 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT DISTINCT col2 + 22 * - tab2.col0 * + 34 AS col1 FROM tab2
----
-5209
-58318
-59054

query I rowsort
SELECT ALL + ( 59 ) + col1 AS col2 FROM tab0
----
145
150
156

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab1, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - col0 + - col2 + col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT 90 + + col1 AS col0 FROM tab2
----
107
121
149

query I rowsort
SELECT ALL + - col2 + 59 * - col2 FROM tab0 AS cor0
----
-1980
-4920
-60

query I rowsort
SELECT ALL + col2 + - 15 FROM tab0 AS cor0
----
-14
18
67

query I rowsort
SELECT DISTINCT + cor0.col2 * 84 FROM tab1 AS cor0
----
4536
4788
8064

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5965
SELECT ALL + col2 + CAST( - 23 AS SIGNED ) FROM tab0 AS cor0
----
-22
10
59

skipif mysql # not compatible
query I rowsort label-5965
SELECT ALL + col2 + CAST ( - 23 AS INTEGER ) FROM tab0 AS cor0
----
-22
10
59

query I rowsort
SELECT DISTINCT col2 * + col1 + 77 FROM tab1 AS cor0
----
1325
1481
647

query I rowsort
SELECT ALL + + col0 + 96 * + 37 * col2 AS col0 FROM tab2 AS cor0
----
135055
92430
95911

query I rowsort
SELECT DISTINCT col2 * 57 * 24 FROM tab0 AS cor0
----
112176
1368
45144

query I rowsort
SELECT DISTINCT + col2 + + 63 * - col1 FROM tab1 AS cor0
----
-1584
-573
-723

query I rowsort
SELECT ALL - col1 * + 78 + + col1 FROM tab2 cor0
----
-1309
-2387
-4543

query I rowsort
SELECT DISTINCT + + col1 * col2 - col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( col2 ) * + col0 + - col0 * - 42 col0 FROM tab0 AS cor0
----
-18000
-645784
245

onlyif mysql # use DIV operator for integer division
query I rowsort label-5973
SELECT ALL - col1 DIV + col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL - col1 / + col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 35 FROM tab1, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # use DIV operator for integer division
query I rowsort label-5975
SELECT ( - 57 ) + - col1 DIV ( col0 ) FROM tab1 AS cor0
----
-57
-57
-65

skipif mysql # not compatible
query I rowsort label-5975
SELECT ( - 57 ) + - col1 / ( col0 ) FROM tab1 AS cor0
----
-57
-57
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-5976
SELECT - - 8 DIV - 15 - col1 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5976
SELECT - - 8 / - 15 - col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ALL col1 * - ( col1 * col1 ) + col2 AS col2 FROM tab0
----
-636023
-753489
-912672

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 980274175fafec015a83080672486a9a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5979
SELECT CAST( + 66 AS SIGNED ) * col2 FROM tab1 AS cor0
----
3564
3762
6336

skipif mysql # not compatible
query I rowsort label-5979
SELECT CAST ( + 66 AS INTEGER ) * col2 FROM tab1 AS cor0
----
3564
3762
6336

query I rowsort
SELECT - ( col1 ) * + col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col1 * col0 * + col2 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT - 20 + + ( + col1 ) * + col2 FROM tab1 AS cor0
----
1228
1384
550

query I rowsort
SELECT DISTINCT tab1.col1 * + 21 AS col1 FROM tab1
----
210
273
546

query I rowsort
SELECT col0 * col0 + + col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT 44 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT + col2 - - col1 * col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL - col0 * + 97 FROM tab0 AS cor0
----
-2328
-3395
-8633

query I rowsort
SELECT col0 * + cor0.col1 - + col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT + 62 * col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
39680
4836
64480

query I rowsort
SELECT - 33 * ( col2 ) FROM tab2 AS cor0
----
-1254
-858
-891

onlyif mysql # use DIV operator for integer division
query I rowsort label-5991
SELECT + col1 * ( - col1 ) DIV col1 FROM tab2 cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-5991
SELECT + col1 * ( - col1 ) / col1 FROM tab2 cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5992
SELECT DISTINCT + cor0.col2 + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT + cor0.col2 + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT 8 + 19 * cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c038e095f76a76b4832d7e2d716a4734

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5994
SELECT - CAST( NULL AS SIGNED ) col2 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5994
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col2 * + 42 FROM tab1
----
2268
2394
4032

query I rowsort
SELECT - + col0 * 56 AS col0 FROM tab2 AS cor0
----
-392
-4368
-4424

query I rowsort
SELECT ALL + cor0.col2 * 4 AS col0 FROM tab1 AS cor0
----
216
228
384

query I rowsort
SELECT ALL col0 * + ( + col1 ) AS col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL col1 * + 12 AS col2 FROM tab0 AS cor0
----
1032
1092
1164

onlyif mysql # use DIV operator for integer division
query I rowsort label-6000
SELECT - + col1 + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-6000
SELECT - + col1 + col1 / col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT + - col2 + + ( - col0 ) FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6002
SELECT cor0.col2 * + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-6002
SELECT cor0.col2 * + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - + cor0.col2 * - 77 * - col1 AS col2 FROM tab0 AS cor0
----
-218526
-574574
-7469

onlyif mysql # use DIV operator for integer division
query I rowsort label-6004
SELECT DISTINCT col1 DIV - col1 - + ( col1 ) DIV col1 col2 FROM tab2
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT col1 / - col1 - + ( col1 ) / col1 col2 FROM tab2
----
-2

query I rowsort
SELECT DISTINCT + tab0.col0 - - col0 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT + 3 * - col1 + col1 - + col1 FROM tab1
----
-30
-39
-78

query I rowsort
SELECT - tab2.col2 * + ( tab2.col1 ) FROM tab2, tab1, tab2 cor0, tab0
----
81 values hashing to b784d6344043bb09325bf01c321ac1ec

query I rowsort
SELECT DISTINCT + col0 * tab2.col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT + col0 + + col1 * - col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - + cor0.col2 * - col1 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL + cor0.col1 * col0 * col1 AS col2 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT DISTINCT + col2 + 55 FROM tab2 AS cor0
----
81
82
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6013
SELECT col1 DIV col1 + + tab0.col0 * col1 * - 18 AS col0 FROM tab0
----
-145781
-37151
-61109

skipif mysql # not compatible
query I rowsort label-6013
SELECT col1 / col1 + + tab0.col0 * col1 * - 18 AS col0 FROM tab0
----
-145781
-37151
-61109

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6014
SELECT + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6014
SELECT + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - tab1.col2 FROM tab1 WHERE ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col2 * col0 col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT ALL - col0 + - col2 * col0 AS col1 FROM tab2
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT col2 * col0 - col1 FROM tab0 WHERE NOT ( col1 ) IN ( col1 + col1 )
----
-62
706
7207

query I rowsort
SELECT col0 - tab2.col1 * - col2 FROM tab2
----
1612
725
844

query I rowsort
SELECT col2 + col1 * col1 FROM tab1
----
157
265
730

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT ALL - tab1.col0 * col1 + tab1.col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT col1 FROM tab0 WHERE NULL IN ( - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6024
SELECT + col2 DIV tab1.col2 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6024
SELECT + col2 / tab1.col2 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT col2 + - col1 * + col2 * + 50 FROM tab1
----
-28443
-62304
-70146

query I rowsort
SELECT + col2 * - cor0.col0 + - 32 AS col1 FROM tab0 AS cor0
----
-67
-7330
-824

query I rowsort
SELECT + 23 * col0 + ( 78 ) AS col0 FROM tab1 AS cor0
----
147
1550
1918

query I rowsort
SELECT ALL - col2 + + col1 AS col1 FROM tab1
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6029
SELECT col2 DIV col1 + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6029
SELECT col2 / col1 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + 49 AS col2 FROM tab2 AS cor0
----
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-6031
SELECT ALL + 7 + col1 DIV ( col0 ) FROM tab2 AS cor0
----
11
7
7

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL + 7 + col1 / ( col0 ) FROM tab2 AS cor0
----
11
7
7

query I rowsort
SELECT DISTINCT - cor0.col1 + col2 + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-193
-2061
-2981

query I rowsort
SELECT - col0 * cor0.col0 + ( col2 ) - + col0 * - col2 AS col2 FROM tab2 cor0
----
-3201
-4030
167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 + + cor0.col2 * col1 col0 FROM tab1 AS cor0
----
1299
1455
621

query I rowsort
SELECT 15 AS col1 FROM tab2 cor0
----
15
15
15

query I rowsort
SELECT DISTINCT - + col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + col2 + + ( 41 ) FROM tab2 AS cor0
----
67
68
79

query I rowsort
SELECT - col1 + col2 * - cor0.col2 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT ALL + col0 * 15 * col1 + + col0 AS col2 FROM tab0 AS cor0
----
121574
30984
50960

query I rowsort
SELECT + 57 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT - - col2 + 20 * col0 FROM tab2 AS cor0
----
1586
1618
167

query I rowsort
SELECT col0 + - ( - col2 + col2 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT col1 * - 9 + - cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
-1496
-496
-5133

onlyif mysql # use DIV operator for integer division
query I rowsort label-6044
SELECT col1 + + col2 DIV cor0.col1 AS col0 FROM tab2 cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-6044
SELECT col1 + + col2 / cor0.col1 AS col0 FROM tab2 cor0
----
19
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 - col2 * col1 col1 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL - - col0 * 93 AS col2 FROM tab1 AS cor0
----
279
5952
7440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6047
SELECT + CAST( cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6047
SELECT + CAST ( cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NULL < - cor0.col1
----

query I rowsort
SELECT 24 * + 36 AS col1 FROM tab0 AS cor0
----
864
864
864

query I rowsort
SELECT DISTINCT - cor0.col0 * - 57 FROM tab1 AS cor0
----
171
3648
4560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 88 col0 FROM tab1 AS cor0
----
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6052
SELECT ALL - 76 - col0 DIV + col0 FROM tab2 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL - 76 - col0 / + col0 FROM tab2 AS cor0
----
-77
-77
-77

query I rowsort
SELECT - - ( col0 ) + + 57 AS col0 FROM tab2 cor0
----
135
136
64

query I rowsort
SELECT DISTINCT + col2 + col0 * - col1 FROM tab1 cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - col2 * col2 + col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-798
108
858

query I rowsort
SELECT ALL cor0.col2 + col2 - - ( col0 + - col0 ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT 83 + + col2 FROM tab1 cor0
----
137
140
179

query I rowsort
SELECT ( - tab1.col0 ) AS col1 FROM tab1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6059
SELECT + - col0 + col1 DIV col0 AS col2 FROM tab0 AS cor0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-6059
SELECT + - col0 + col1 / col0 AS col2 FROM tab0 AS cor0
----
-21
-33
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6060
SELECT - cor0.col2 * col1 + - col1 * cor0.col2 DIV cor0.col2 FROM tab1 cor0
----
-1261
-1430
-580

skipif mysql # not compatible
query I rowsort label-6060
SELECT - cor0.col2 * col1 + - col1 * cor0.col2 / cor0.col2 FROM tab1 cor0
----
-1261
-1430
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - tab1.col2 col1 FROM tab1
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 * - col2 col2 FROM tab0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6063
SELECT + - col1 + + col1 DIV col1 AS col2 FROM tab0 cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-6063
SELECT + - col1 + + col1 / col1 AS col2 FROM tab0 cor0
----
-85
-90
-96

query I rowsort
SELECT - col0 + - col0 AS col1 FROM tab1 cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT col2 * col1 + + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col0 FROM tab2
----
98
98
98

query I rowsort
SELECT DISTINCT + ( 80 * - col1 ) FROM tab1
----
-1040
-2080
-800

query I rowsort
SELECT + cor0.col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( + col2 ) ) col0 FROM tab0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6070
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - cor0.col0 * 49 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-336
-3744
-3792

query I rowsort
SELECT - col2 * + col0 + col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 82 ) * - cor0.col0 col0 FROM tab2 AS cor0
----
574
6396
6478

query I rowsort
SELECT - 46 AS col2 FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT cor0.col0 * + cor0.col2 * - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 543591e26c44df959f963539281eb5c1

query I rowsort
SELECT DISTINCT + + col0 + - col0 * - col0 * - col0 FROM tab2 AS cor0
----
-336
-474474
-492960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( + col0 ) ) * col2 col1 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6079
SELECT - - col2 DIV 5 + + col1 + + col1 AS col0 FROM tab0 AS cor0
----
178
194
198

skipif mysql # not compatible
query I rowsort label-6079
SELECT - - col2 / 5 + + col1 + + col1 AS col0 FROM tab0 AS cor0
----
178
194
198

query I rowsort
SELECT DISTINCT - - col2 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + 10 * col1 + col0 AS col2 FROM tab0 cor0
----
1005
884
999

query I rowsort
SELECT DISTINCT + 58 + col2 FROM tab1 AS cor0
----
112
115
154

query I rowsort
SELECT + 12 * cor0.col0 AS col1 FROM tab2 AS cor0
----
84
936
948

query I rowsort
SELECT - col1 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT + 83 + cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
1172
6807
84

query I rowsort
SELECT - col2 * - col1 * + cor0.col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT - - col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + + cor0.col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col2 - - col2 * col0 AS col0 FROM tab2
----
2054
216
3040

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL - col0 - col2 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT col1 * - col0 * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 - col0 * col0 col1 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT tab0.col0 + col2 * col1 AS col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT col2 - - tab2.col2 FROM tab2
----
52
54
76

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 NOT IN ( + col0 * + col2 )
----

query I rowsort
SELECT - tab1.col2 + - col1 FROM tab1 WHERE ( NULL ) IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * + col1 col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col1 * - col2 + - col2 AS col2 FROM tab2
----
1508
608
810

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND ( + col2 / + col2 )
----

query I rowsort
SELECT col2 + - col2 AS col2 FROM tab2 WHERE col2 / col1 BETWEEN col0 AND col1 + + col2 + col2
----

query I rowsort
SELECT - col0 + - col2 * + col0 FROM tab0 WHERE ( NULL ) >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 col1 FROM tab0 WHERE NOT ( col0 * col1 ) NOT IN ( + col1 / tab0.col1 + col1 )
----

query I rowsort
SELECT - + col1 * col2 * + col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - col2 + col0 * col2 * - col0 FROM tab1 AS cor0
----
-233529
-540
-614496

query I rowsort
SELECT + col1 + col2 + col1 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT ALL + col0 * - col2 + col0 AS col1 FROM tab0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6110
SELECT + col2 + col1 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-6110
SELECT + col2 + col1 / cor0.col1 AS col1 FROM tab0 AS cor0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6111
SELECT - col1 DIV col2 + col2 AS col1 FROM tab0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-6111
SELECT - col1 / col2 + col2 AS col1 FROM tab0
----
-96
31
81

query I rowsort
SELECT ALL col0 FROM tab2 WHERE + col1 NOT IN ( col0 * + col0 )
----
7
78
79

query I rowsort
SELECT - col1 * - col0 + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 col0 FROM tab1 AS cor0
----
-28
-47
-83

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 + + col0 * col0 < + col2 + col1 / - col2
----
3
26
54

query III rowsort
SELECT * FROM tab1 WHERE - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - 11 FROM tab1 AS cor0
----
-11
-11
-11

onlyif mysql # use DIV operator for integer division
query I rowsort label-6118
SELECT + + ( - col2 ) DIV col1 - + 17 FROM tab0 AS cor0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-6118
SELECT + + ( - col2 ) / col1 - + 17 FROM tab0 AS cor0
----
-17
-17
-17

query I rowsort
SELECT ALL - col1 * 78 FROM tab1 AS cor0
----
-1014
-2028
-780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6121
SELECT ( ( - col2 ) ) DIV col2 + col1 + - col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6121
SELECT ( ( - col2 ) ) / col2 + col1 + - col1 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + ( 74 ) * col2 AS col2 FROM tab0 cor0
----
2442
6068
74

query I rowsort
SELECT - - ( 91 ) * + col0 + + ( - col1 + - col1 ) * col0 FROM tab0 AS cor0
----
-1944
-3605
-8099

query I rowsort
SELECT ( 88 ) * - col1 FROM tab1 AS cor0
----
-1144
-2288
-880

query I rowsort
SELECT + col2 + ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + tab2.col0 * - col2 AS col1 FROM tab2
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6127
SELECT ALL - tab0.col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL - tab0.col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6128
SELECT ALL col0 * col2 + col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL col0 * col2 + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 3 + - col2 AS col0 FROM tab0 cor0
----
-30
-79
2

query I rowsort
SELECT DISTINCT + 72 - col2 FROM tab1 AS cor0
----
-24
15
18

query I rowsort
SELECT + col2 * 75 * col1 AS col2 FROM tab0
----
212850
559650
7275

onlyif mysql # use DIV operator for integer division
query I rowsort label-6132
SELECT ALL - - col2 DIV - col1 + cor0.col2 FROM tab1 AS cor0
----
52
52
89

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL - - col2 / - col1 + cor0.col2 FROM tab1 AS cor0
----
52
52
89

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6134
SELECT - ( col2 ) + col2 DIV - col1 FROM tab1 AS cor0
----
-103
-56
-62

skipif mysql # not compatible
query I rowsort label-6134
SELECT - ( col2 ) + col2 / - col1 FROM tab1 AS cor0
----
-103
-56
-62

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0 CROSS JOIN tab2
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d

query I rowsort
SELECT - col2 + - cor0.col0 * - col1 AS col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT col0 * col2 - col2 * + col1 AS col2 FROM tab0
----
-164
-2046
-62

query I rowsort
SELECT + col0 + + col2 * - col0 AS col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT - tab2.col2 - - ( - col1 ) FROM tab2
----
-55
-58
-85

query I rowsort
SELECT 25 FROM tab2, tab0 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT - col1 * + 81 - + 70 FROM tab1
----
-1123
-2176
-880

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col2 col2 FROM tab1 cor0
----
-108
-114
-192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6144
SELECT ALL - - col0 + CAST( col2 * col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
70
7387
816

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL - - col0 + CAST ( col2 * col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT - cor1.col2 FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to b803f2d602a28da5cf35ddc7c7fa2eeb

query I rowsort
SELECT col0 * - col0 * - col1 AS col1 FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6148
SELECT DISTINCT + CAST( col1 AS SIGNED ) * + col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6148
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * + col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6149
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + 78 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6149
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + 78 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + ( - 87 ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
-2088
-3045
-7743

query I rowsort
SELECT + 10 FROM tab2, tab0 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # use DIV operator for integer division
query I rowsort label-6152
SELECT DISTINCT - CAST( cor0.col0 AS SIGNED ) DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT - CAST ( cor0.col0 AS INTEGER ) / col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6153
SELECT cor0.col2 DIV ( - cor0.col0 ) FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6153
SELECT cor0.col2 / ( - cor0.col0 ) FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT 90 * col2 * col0 FROM tab0 cor0
----
3150
656820
71280

query I rowsort
SELECT DISTINCT - + 51 + col1 AS col1 FROM tab2 AS cor0
----
-20
-34
8

query I rowsort
SELECT 7 AS col2 FROM tab1, tab2 AS cor0, tab0 cor1, tab0 AS cor2
----
81 values hashing to bd991c690468eea3ef45a96817ca3617

query I rowsort
SELECT DISTINCT + 41 * col0 FROM tab2 cor0
----
287
3198
3239

query I rowsort
SELECT ALL + 44 * + cor0.col1 FROM tab1 AS cor0
----
1144
440
572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT ALL 55 * col2 + - tab2.col1 AS col0 FROM tab2
----
1371
1454
2073

query I rowsort
SELECT - 77 * + col1 + - cor0.col0 * 47 FROM tab1 AS cor0
----
-2143
-3778
-4761

query I rowsort
SELECT + col0 * col2 * + 69 + 1 FROM tab2 AS cor0
----
13042
139933
207139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 * + col2 + + col2 * - col0 col1 FROM tab1 AS cor0
----
-23904
-36666
-9348

query I rowsort
SELECT DISTINCT 1 + col1 FROM tab0 AS cor0
----
87
92
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6165
SELECT ALL col0 + + col1 * CAST( + 76 AS SIGNED ) * + col0 - cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
157977
258056
622337

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL col0 + + col1 * CAST ( + 76 AS INTEGER ) * + col0 - cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
157977
258056
622337

onlyif mysql # use DIV operator for integer division
query I rowsort label-6166
SELECT cor0.col2 * col0 * 58 + - 66 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
211583
445440
9395

skipif mysql # not compatible
query I rowsort label-6166
SELECT cor0.col2 * col0 * 58 + - 66 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
211583
445440
9395

query I rowsort
SELECT cor0.col1 * 6 FROM tab1, tab1 AS cor0
----
9 values hashing to 0481a09faeb522b0e8329193c1c64a7d

query I rowsort
SELECT - col2 * + cor0.col2 + + 74 FROM tab2 AS cor0
----
-1370
-602
-655

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * ( + ( col1 ) ) col1 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 * - cor0.col0 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT ALL + col0 * + ( cor0.col2 * + col0 + + col2 ) FROM tab1 AS cor0
----
237120
622080
648

query I rowsort
SELECT ALL col1 * col1 + - 91 * - col1 FROM tab0 AS cor0
----
15222
16562
18236

onlyif mysql # use DIV operator for integer division
query I rowsort label-6173
SELECT ALL col2 DIV cor0.col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL col2 / cor0.col1 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT DISTINCT - col0 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + - col1 * col2 + col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-6176
SELECT col1 DIV ( col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6176
SELECT col1 / ( col2 ) FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 * 40 col0 FROM tab2 AS cor0
----
-1240
-2360
-680

query I rowsort
SELECT DISTINCT - col2 * col1 * cor0.col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL - col0 + 0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - - col1 * - 16 + + ( col1 ) FROM tab1 AS cor0
----
-150
-195
-390

query I rowsort
SELECT ALL - col1 * - 28 FROM tab2 AS cor0
----
1652
476
868

query I rowsort
SELECT DISTINCT - + col1 * + cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - + col1 * col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - 64 + + col0 - - cor0.col2 AS col1 FROM tab2 AS cor0
----
-30
40
53

query I rowsort
SELECT 30 FROM tab0, tab2 cor0, tab1 cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT + 88 * + 83 + col1 AS col1 FROM tab0
----
7390
7395
7401

query I rowsort
SELECT 40 AS col0 FROM tab1
----
40
40
40

query I rowsort
SELECT DISTINCT 61 * - col2 AS col2 FROM tab0
----
-2013
-5002
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-6189
SELECT col1 DIV + col1 + - CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-6189
SELECT col1 / + col1 + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
-2
-63
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6190
SELECT tab0.col1 + col0 DIV 79 AS col2 FROM tab0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-6190
SELECT tab0.col1 + col0 / 79 AS col2 FROM tab0
----
86
92
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6191
SELECT - 42 * col0 + + CAST( NULL AS SIGNED ) * + 99 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6191
SELECT - 42 * col0 + + CAST ( NULL AS INTEGER ) * + 99 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6192
SELECT ALL + 93 * col1 DIV + 2 - 72 AS col1 FROM tab1 AS cor0
----
1137
393
532

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL + 93 * col1 / + 2 - 72 AS col1 FROM tab1 AS cor0
----
1137
393
532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * col1 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL tab1.col2 + 39 + ( + col2 + col2 ) FROM tab1
----
201
210
327

query I rowsort
SELECT col1 * col0 - col2 FROM tab2
----
1305
190
4576

query I rowsort
SELECT DISTINCT + tab2.col0 + col2 FROM tab2
----
104
117
34

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - cor0.col1 * - 52 * col2 FROM tab1 cor0
----
29640
64896
73008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6199
SELECT ALL + CAST( col1 AS SIGNED ) + + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL + CAST ( col1 AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - ( 26 ) + - col2 * 88 AS col2 FROM tab0 AS cor0
----
-114
-2930
-7242

query I rowsort
SELECT ALL + - ( col0 ) + cor0.col2 * - 68 FROM tab0 AS cor0
----
-103
-2268
-5665

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) * col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col2 + col1 col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT + 98 AS col1 FROM tab2, tab0 cor0
----
98

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0 cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d

query I rowsort
SELECT DISTINCT - col2 + + 66 AS col1 FROM tab2 AS cor0
----
28
39
40

query I rowsort
SELECT ALL + + 99 + - col1 * col2 AS col0 FROM tab0 AS cor0
----
-2739
-7363
2

query I rowsort
SELECT DISTINCT - + 26 AS col0 FROM tab0 cor0
----
-26

query I rowsort
SELECT - + col0 + col0 * + col1 AS col1 FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT - ( - 39 ) * + col1 FROM tab2 AS cor0
----
1209
2301
663

onlyif mysql # use DIV operator for integer division
query I rowsort label-6211
SELECT DISTINCT 0 + 3 DIV col0 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-25

skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT 0 + 3 / col0 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * cor0.col0 col2 FROM tab2 cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 92 + col0 * col2 col0 FROM tab0 AS cor0
----
-57
700
7206

query I rowsort
SELECT ALL ( ( col0 ) ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 95 + col0 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-122
-1248
-4507

query I rowsort
SELECT + col0 * 15 * + col0 FROM tab0 AS cor0
----
118815
18375
8640

query I rowsort
SELECT + col0 * + 7 * - col2 AS col2 FROM tab0
----
-245
-51086
-5544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 col0 FROM tab1
----
34

query I rowsort
SELECT - ( 57 * col2 ) AS col0 FROM tab2
----
-1482
-1539
-2166

query I rowsort
SELECT 35 * - col2 AS col0 FROM tab1
----
-1890
-1995
-3360

query I rowsort
SELECT ( col1 ) * + col1 * + col0 FROM tab0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-6222
SELECT DISTINCT col2 DIV col2 col2 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT col2 / col2 col2 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 * col0 ) col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT 45 * col1 FROM tab2
----
1395
2655
765

query I rowsort
SELECT + - ( - col0 ) + col2 + + 58 FROM tab1 AS cor0
----
115
179
234

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6226
SELECT CAST( - cor0.col1 AS SIGNED ) * + col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-6226
SELECT CAST ( - cor0.col1 AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT 60 * - 80 FROM tab0
----
-4800

onlyif mysql # use DIV operator for integer division
query I rowsort label-6228
SELECT + col1 + - 35 DIV + cor0.col0 + + 95 FROM tab2 AS cor0
----
112
121
154

skipif mysql # not compatible
query I rowsort label-6228
SELECT + col1 + - 35 / + cor0.col0 + + 95 FROM tab2 AS cor0
----
112
121
154

query I rowsort
SELECT + - cor0.col1 * col1 + + col1 AS col0 FROM tab2 cor0
----
-272
-3422
-930

query I rowsort
SELECT - col2 + + col1 + - ( col0 ) AS col0 FROM tab0 AS cor0
----
-80
29
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-6231
SELECT - cor0.col1 * cor0.col1 DIV + 85 AS col1 FROM tab2 cor0
----
-11
-3
-40

skipif mysql # not compatible
query I rowsort label-6231
SELECT - cor0.col1 * cor0.col1 / + 85 AS col1 FROM tab2 cor0
----
-11
-3
-40

query I rowsort
SELECT + col0 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT + - cor0.col0 * col2 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6234
SELECT ( - ( col0 ) ) DIV 17 + + col1 AS col2 FROM tab1
----
26
7
9

skipif mysql # not compatible
query I rowsort label-6234
SELECT ( - ( col0 ) ) / 17 + + col1 AS col2 FROM tab1
----
26
7
9

query I rowsort
SELECT col1 + col0 + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-151
-1891
-2906

query I rowsort
SELECT - + 82 * + col1 AS col0 FROM tab0 AS cor0
----
-7052
-7462
-7954

query I rowsort
SELECT ALL - - col2 + col0 * col2 + - col0 FROM tab0 cor0
----
1
7291
801

query I rowsort
SELECT + cor0.col0 + + ( + col0 ) AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + col2 - + col0 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT col1 * + cor0.col1 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT - + col2 - col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + + ( + col2 ) col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT + col1 + 59 FROM tab0 AS cor0
----
145
150
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 20 + + col2 * - 80 col1 FROM tab2 AS cor0
----
-1460
-2020
-520

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 3b4587ab6c08d2179c6df094d2f76ad7

query I rowsort
SELECT DISTINCT tab0.col2 * 47 * - col2 + - col1 + + 9 AS col0 FROM tab0
----
-135
-316110
-51260

query I rowsort
SELECT + col2 * - col2 * - col1 - ( - col0 ) * col1 AS col2 FROM tab2
----
22816
25891
44486

query I rowsort
SELECT col2 - + tab2.col0 AS col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL cor0.col2 * col0 + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT 55 * - cor0.col0 FROM tab1 cor0
----
-165
-3520
-4400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL cor0.col2 * ( - col0 ) + col2 * - col0 + 28 FROM tab0 AS cor0
----
-14568
-1556
-42

query I rowsort
SELECT + col2 * + col2 + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-34
-574
297

query I rowsort
SELECT DISTINCT col1 * + 15 AS col2 FROM tab1 AS cor0
----
150
195
390

query I rowsort
SELECT DISTINCT - col2 * col1 + 45 AS col1 FROM tab0 AS cor0
----
-2793
-52
-7417

onlyif mysql # use DIV operator for integer division
query I rowsort label-6256
SELECT - cor0.col1 + + 3 DIV col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6256
SELECT - cor0.col1 + + 3 / col2 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6257
SELECT + + cor0.col1 DIV col2 + + 57 FROM tab0 AS cor0
----
154
58
59

skipif mysql # not compatible
query I rowsort label-6257
SELECT + + cor0.col1 / col2 + + 57 FROM tab0 AS cor0
----
154
58
59

query I rowsort
SELECT DISTINCT col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + - col2 + + 74 AS col0 FROM tab1 cor0
----
-22
17
20

query I rowsort
SELECT DISTINCT - + col1 * + 58 + - col0 AS col1 FROM tab2 AS cor0
----
-1065
-1805
-3500

onlyif mysql # use DIV operator for integer division
query I rowsort label-6261
SELECT DISTINCT col2 + col1 + - col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
118
172
97

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT col2 + col1 + - col2 / + col2 AS col0 FROM tab0 AS cor0
----
118
172
97

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 * + CAST ( col0 AS REAL ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + col2 * + 9 FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT + - 79 * 86 * - col2 + col0 AS col0 FROM tab2 AS cor0
----
176722
183445
258251

query I rowsort
SELECT + 39 + - col0 AS col2 FROM tab2 AS cor0
----
-39
-40
32

query I rowsort
SELECT ALL + ( - 84 ) * col1 + 85 FROM tab1 AS cor0
----
-1007
-2099
-755

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6267
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + + col1 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + + col1 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6268
SELECT DISTINCT 31 DIV - cor0.col0 FROM tab2 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-6268
SELECT DISTINCT 31 / - cor0.col0 FROM tab2 AS cor0
----
-4
0

query I rowsort
SELECT + + col1 * 13 + cor0.col2 FROM tab1 AS cor0
----
187
265
392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 col1 FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT DISTINCT - 10 - + ( cor0.col2 ) AS col0 FROM tab2 cor0
----
-36
-37
-48

query I rowsort
SELECT ALL + col2 * - col1 * - col2 FROM tab2 AS cor0
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-6273
SELECT + - 61 + - col0 * + col2 DIV col2 col2 FROM tab1 AS cor0
----
-125
-141
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6273
SELECT + - 61 + - col0 * + col2 / col2 col2 FROM tab1 AS cor0
----
-125
-141
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-6274
SELECT col0 DIV - col0 + + col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-6274
SELECT col0 / - col0 + + col2 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT DISTINCT - col2 + - 71 AS col1 FROM tab0 AS cor0
----
-104
-153
-72

query I rowsort
SELECT DISTINCT + col0 * - col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - 11 AS col0 FROM tab1, tab1 AS cor0
----
-11

query I rowsort
SELECT DISTINCT col2 * cor0.col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT - ( col2 * - col0 ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT - 21 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) + - ( - col0 ) * - col0 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-6282
SELECT DISTINCT - col1 DIV col2 - col2 FROM tab0 cor0
----
-35
-83
-98

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT - col1 / col2 - col2 FROM tab0 cor0
----
-35
-83
-98

query I rowsort
SELECT DISTINCT 71 + - col2 AS col2 FROM tab1 AS cor0
----
-25
14
17

query I rowsort
SELECT - col2 + - col0 * + col2 AS col1 FROM tab1 cor0
----
-216
-3705
-7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col2 + - col2 + + col1 col0 FROM tab2 AS cor0
----
1567
625
841

query I rowsort
SELECT ALL - cor0.col0 - col2 * - col0 * col2 AS col1 FROM tab0 AS cor0
----
0
26112
598347

query I rowsort
SELECT 99 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL 72 * + col2 + - col0 FROM tab1
----
3885
4040
6832

query I rowsort
SELECT + col1 * 9 FROM tab0
----
774
819
873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 col0 FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6291
SELECT col0 * - tab1.col2 + CAST( + col0 + col0 AS SIGNED ) FROM tab1
----
-156
-3520
-7520

skipif mysql # not compatible
query I rowsort label-6291
SELECT col0 * - tab1.col2 + CAST ( + col0 + col0 AS INTEGER ) FROM tab1
----
-156
-3520
-7520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6292
SELECT ALL 78 * + cor0.col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL 78 * + cor0.col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 72 + - col2 FROM tab0 AS cor0
----
-10
39
71

query I rowsort
SELECT ALL - 6 + col0 + + 45 AS col2 FROM tab1 AS cor0
----
103
119
42

query I rowsort
SELECT - 75 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1275
-2325
-4425

query I rowsort
SELECT DISTINCT + col0 - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + - col0 * + 10 - - col2 col2 FROM tab1
----
-573
-691
50

query I rowsort
SELECT - 41 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT DISTINCT + + 17 * col1 AS col0 FROM tab1 AS cor0
----
170
221
442

query I rowsort
SELECT 97 * col0 - + cor0.col0 FROM tab2 AS cor0
----
672
7488
7584

query I rowsort
SELECT DISTINCT - col0 * 49 AS col0 FROM tab0 AS cor0
----
-1176
-1715
-4361

onlyif mysql # use DIV operator for integer division
query I rowsort label-6302
SELECT ALL + + 83 DIV + col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6302
SELECT ALL + + 83 / + col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 20 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT cor0.col1 + - col1 - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 22 ) col2 FROM tab1
----
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6306
SELECT cor0.col0 * CAST( NULL AS SIGNED ) + 28 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6306
SELECT cor0.col0 * CAST ( NULL AS INTEGER ) + 28 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + ( col1 * + col2 ) + col1 * + col1 FROM tab1
----
1417
2080
670

query I rowsort
SELECT ALL col0 * 99 + - col2 FROM tab2 AS cor0
----
666
7696
7783

query I rowsort
SELECT ALL + - col1 - - 81 AS col2 FROM tab1 AS cor0
----
55
68
71

query I rowsort
SELECT + col2 + col1 * - col2 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6311
SELECT ALL - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6312
SELECT DISTINCT - cor0.col1 DIV - cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT - cor0.col1 / - cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 12 - - col2 * - col0 * + col0 col0 FROM tab1 AS cor0
----
-232788
-613248
162

query I rowsort
SELECT DISTINCT col1 * 10 + col1 AS col2 FROM tab2 cor0
----
187
341
649

query I rowsort
SELECT DISTINCT col1 * + col2 + 42 AS col0 FROM tab2 AS cor0
----
1576
688
879

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6316
SELECT col0 * CAST( NULL AS SIGNED ) + - col1 * col1 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6316
SELECT col0 * CAST ( NULL AS INTEGER ) + - col1 * col1 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + col2 * + col0 + - col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL col1 + + 98 - + ( col1 ) AS col1 FROM tab0 AS cor0
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + col0 col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6320
SELECT col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6320
SELECT col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6321
SELECT + + cor0.col0 + - col2 * col0 * cor0.col1 + col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
-3360
-664029
-68088

skipif mysql # not compatible
query I rowsort label-6321
SELECT + + cor0.col0 + - col2 * col0 * cor0.col1 + col0 / + col1 AS col1 FROM tab0 AS cor0
----
-3360
-664029
-68088

onlyif mysql # use DIV operator for integer division
query I rowsort label-6322
SELECT - - CAST( - col0 AS SIGNED ) DIV + col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6322
SELECT - - CAST ( - col0 AS INTEGER ) / + col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ( ( col2 ) ) + col1 AS col1 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6324
SELECT + ( - col0 ) DIV col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-6324
SELECT + ( - col0 ) / col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT ALL 13 * col2 + + col1 FROM tab0 AS cor0
----
110
1157
515

query I rowsort
SELECT - col0 * + col0 + col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-3526
-5152
1395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col1 + col0 col2 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL + cor0.col0 + col2 * col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT col2 * + col2 + + ( - 36 ) AS col1 FROM tab2 cor0
----
1408
640
693

query I rowsort
SELECT - col2 * col0 + - 66 + col2 FROM tab1 AS cor0
----
-174
-3657
-7650

onlyif mysql # use DIV operator for integer division
query I rowsort label-6331
SELECT 2 DIV - cor0.col1 - - ( 97 ) AS col2 FROM tab2 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-6331
SELECT 2 / - cor0.col1 - - ( 97 ) AS col2 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT ( col1 ) * ( 35 ) FROM tab0
----
3010
3185
3395

query I rowsort
SELECT ALL col1 + col0 * - ( - col1 ) FROM tab2
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-6334
SELECT - col1 DIV col2 + col2 * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-6334
SELECT - col1 / col2 + col2 * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 27 ) col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

onlyif mysql # use DIV operator for integer division
query I rowsort label-6336
SELECT ALL tab1.col1 DIV - col1 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL tab1.col1 / - col1 AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6337
SELECT ALL + col0 + 49 * + cor0.col1 DIV col1 col2 FROM tab2 cor0
----
127
128
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL + col0 + 49 * + cor0.col1 / col1 col2 FROM tab2 cor0
----
127
128
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6338
SELECT + CAST( 45 AS SIGNED ) AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

skipif mysql # not compatible
query I rowsort label-6338
SELECT + CAST ( 45 AS INTEGER ) AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT + col1 * + 95 + col1 - - col1 AS col1 FROM tab0 AS cor0
----
8342
8827
9409

query I rowsort
SELECT DISTINCT - ( col2 ) * tab0.col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - col0 * - col2 * 12 + + col1 FROM tab1 AS cor0
----
1970
43786
92173

onlyif mysql # use DIV operator for integer division
query I rowsort label-6342
SELECT ( - col2 ) DIV - col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6342
SELECT ( - col2 ) / - col0 FROM tab0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6343
SELECT col2 * col0 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6343
SELECT col2 * col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + 32 AS col0 FROM tab1
----
-1728
-1824
-3072

query I rowsort
SELECT DISTINCT col0 * col0 - + col1 FROM tab2
----
18
6025
6224

query I rowsort
SELECT 67 FROM tab0, tab2 cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT DISTINCT - col2 * 3 + - tab0.col2 AS col2 FROM tab0
----
-132
-328
-4

query I rowsort
SELECT - col1 + 15 FROM tab1 AS cor0
----
-11
2
5

query I rowsort
SELECT ALL col2 + - col1 + + col1 * + tab1.col2 AS col1 FROM tab1
----
1331
1432
617

query I rowsort
SELECT tab2.col0 + - ( tab2.col0 ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + tab1.col0 * - col0 * - tab1.col0 + + col0 + - col2 AS col2 FROM tab1
----
-24
262151
511984

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
10
13
26

query I rowsort
SELECT + + 7 FROM tab1, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT 57 * col2 FROM tab0
----
1881
4674
57

query I rowsort
SELECT DISTINCT + ( 20 ) * - col0 AS col0 FROM tab2
----
-140
-1560
-1580

query I rowsort
SELECT + + 56 AS col2 FROM tab0 AS cor0
----
56
56
56

query I rowsort
SELECT DISTINCT - ( col0 + tab2.col0 ) FROM tab2
----
-14
-156
-158

query I rowsort
SELECT - col1 * col1 + 67 FROM tab1 AS cor0
----
-102
-33
-609

query I rowsort
SELECT + - cor1.col2 * 83 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5b1c220db3ebf751d9ea4f68389ea76

query I rowsort
SELECT + col2 + col1 * 11 FROM tab0 AS cor0
----
1068
1083
979

query I rowsort
SELECT DISTINCT - - col0 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT + + cor0.col2 * + cor0.col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6363
SELECT + + col1 * + cor0.col0 DIV ( - col0 ) FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6363
SELECT + + col1 * + cor0.col0 / ( - col0 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT col1 * + col2 * 59 + col1 FROM tab1
----
33640
73645
82862

query I rowsort
SELECT ALL - col2 + + 46 AS col0 FROM tab1 AS cor0
----
-11
-50
-8

query I rowsort
SELECT DISTINCT + col1 * tab1.col1 AS col0 FROM tab1
----
100
169
676

query I rowsort
SELECT col1 * + col1 * - col1 FROM tab1 cor0
----
-1000
-17576
-2197

query I rowsort
SELECT ALL tab0.col2 + - tab0.col1 AS col1 FROM tab0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 * + col1 col0 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT col2 + 44 * + col0 AS col0 FROM tab0 AS cor0
----
1089
1541
3998

query I rowsort
SELECT ALL - col0 * 4 FROM tab0
----
-140
-356
-96

query I rowsort
SELECT DISTINCT ( col0 ) + + col2 * - 43 FROM tab0 AS cor0
----
-1395
-3437
-8

query I rowsort
SELECT ALL - col1 * - 45 * col0 AS col2 FROM tab0 AS cor0
----
152775
364455
92880

query I rowsort
SELECT ALL - ( col1 ) * - col1 AS col1 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6375
SELECT - CAST( NULL AS DECIMAL ) * - 8 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT - CAST ( NULL AS REAL ) * - 8 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 78 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-2106
-267
-3080

query I rowsort
SELECT ALL - + ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col2 * + 7 AS col2 FROM tab2 AS cor0
----
-182
-189
-266

query I rowsort
SELECT ALL + col1 * - 7 + col2 FROM tab0 AS cor0
----
-555
-569
-678

query I rowsort
SELECT DISTINCT col1 * + col0 * - col0 - ( + 43 ) AS col2 FROM tab0 AS cor0
----
-118868
-49579
-720854

query I rowsort
SELECT + 97 AS col2 FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT ALL - + 76 FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT - cor0.col2 + col0 AS col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT col2 * col2 * col1 + ( - col2 + + col2 ) AS col0 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT col1 * cor0.col0 + cor0.col1 + + col0 FROM tab2 AS cor0
----
1439
255
4739

query I rowsort
SELECT col1 * - col2 + 0 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + col2 + 50 * + col2 FROM tab2 cor0
----
1326
1377
1938

query I rowsort
SELECT DISTINCT col1 * + col1 + - 29 * col1 * + col0 FROM tab0 cor0
----
-226590
-52460
-89046

query I rowsort
SELECT col0 + - ( cor0.col2 ) * - col0 + 90 FROM tab0 AS cor0
----
160
7477
906

query I rowsort
SELECT DISTINCT + col1 + - col0 * 31 AS col1 FROM tab0 cor0
----
-2668
-658
-988

query I rowsort
SELECT ALL - col2 + 55 * 3 FROM tab2 cor0
----
127
138
139

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6392
SELECT col1 + - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6392
SELECT col1 + - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - col0 * col2 + 30 FROM tab1 AS cor0
----
192
3678
7710

query I rowsort
SELECT - col2 + ( col1 ) AS col0 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT col0 * col1 - cor0.col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT col1 + 10 + col2 FROM tab1 AS cor0
----
119
77
90

query I rowsort
SELECT - col0 * col2 + + col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT col1 * ( + ( + col2 ) ) - col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL col0 * - 34 + + col0 FROM tab1 AS cor0
----
-2112
-2640
-99

query I rowsort
SELECT - - col1 * ( - 64 ) AS col2 FROM tab2 AS cor0
----
-1088
-1984
-3776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6401
SELECT ALL - col0 * CAST( NULL AS SIGNED ) + - 23 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6401
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) + - 23 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 * 89 + 76 * col2 + + col2 FROM tab1 AS cor0
----
-1307
272
3891

query I rowsort
SELECT - col1 * - col2 + - col2 AS col2 FROM tab2 cor0
----
1508
608
810

query I rowsort
SELECT ALL + + col2 * - col0 + + ( + col1 ) * - col2 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT DISTINCT col0 + cor0.col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT col0 + + 93 FROM tab0 AS cor0
----
117
128
182

query I rowsort
SELECT + col1 * 34 + + col0 AS col0 FROM tab1 AS cor0
----
404
522
887

onlyif mysql # use DIV operator for integer division
query I rowsort label-6408
SELECT DISTINCT - col1 DIV tab2.col0 - - 55 AS col2 FROM tab2
----
51
55

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT - col1 / tab2.col0 - - 55 AS col2 FROM tab2
----
51
55

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6410
SELECT + col2 + + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-6410
SELECT + col2 + + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL + col1 * + col1 + + col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT col1 * + col0 + + 79 * col2 AS col1 FROM tab1 AS cor0
----
4344
5143
8624

query I rowsort
SELECT ALL + cor0.col2 * + col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - 85 AS col1 FROM tab1 AS cor0
----
-85
-85
-85

query I rowsort
SELECT ALL - col2 * - col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL - 40 AS col1 FROM tab0 AS cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT col1 + 89 * - col0 AS col1 FROM tab0
----
-2050
-3018
-7830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT DISTINCT + + col2 + col2 AS col0 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT ALL - 90 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1170
-2340
-900

query I rowsort
SELECT DISTINCT - col2 + col0 + - 62 AS col2 FROM tab2 AS cor0
----
-10
-21
-82

query I rowsort
SELECT - col2 * col0 * - 73 AS col0 FROM tab2 AS cor0
----
13797
148044
219146

query I rowsort
SELECT ALL + + col0 + + col1 * - 58 AS col2 FROM tab2 AS cor0
----
-1791
-3344
-907

onlyif mysql # use DIV operator for integer division
query I rowsort label-6424
SELECT + 17 + - tab1.col2 DIV col2 + + col0 FROM tab1
----
19
80
96

skipif mysql # not compatible
query I rowsort label-6424
SELECT + 17 + - tab1.col2 / col2 + + col0 FROM tab1
----
19
80
96

query I rowsort
SELECT DISTINCT - col1 * - col0 + - col2 AS col1 FROM tab0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-6426
SELECT - tab1.col0 DIV - col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6426
SELECT - tab1.col0 / - col2 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 + - col1 + - 58 col0 FROM tab1
----
-4
-81
9

query I rowsort
SELECT - tab1.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 * + tab2.col1 col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT + ( col1 ) - ( + 21 ) FROM tab0
----
65
70
76

query I rowsort
SELECT ALL col1 - col1 * col0 AS col0 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT col2 * col2 + + col1 + - 95 AS col2 FROM tab0
----
1080
3
6720

query I rowsort
SELECT DISTINCT - 69 * - col1 AS col0 FROM tab0 cor0
----
5934
6279
6693

query I rowsort
SELECT + + col0 * + col1 + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6435
SELECT + - 22 + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6435
SELECT + - 22 + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - col1 * - col0 FROM tab2
----
1360
248
4661

query I rowsort
SELECT 82 * col2 + col1 + col1 AS col2 FROM tab2
----
2250
2276
3150

onlyif mysql # use DIV operator for integer division
query I rowsort label-6438
SELECT + 89 DIV + ( col0 ) AS col0 FROM tab1 AS cor0
----
1
1
29

skipif mysql # not compatible
query I rowsort label-6438
SELECT + 89 / + ( col0 ) AS col0 FROM tab1 AS cor0
----
1
1
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 * + col1 col2 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6440
SELECT DISTINCT col1 DIV - cor0.col1 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT col1 / - cor0.col1 AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - - 64 * - col1 AS col0 FROM tab2 AS cor0
----
-1088
-1984
-3776

query I rowsort
SELECT DISTINCT - col0 + + 16 AS col0 FROM tab0 AS cor0
----
-19
-73
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - cor0.col0 col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT 41 * tab0.col0 AS col0 FROM tab0
----
1435
3649
984

query I rowsort
SELECT - col1 * - cor0.col0 + - col1 + + col0 FROM tab2 AS cor0
----
1405
193
4621

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6446
SELECT - col0 + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6446
SELECT - col0 + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT - col1 + - cor0.col1 + 85 FROM tab0 AS cor0
----
-109
-87
-97

query I rowsort
SELECT ALL + - cor0.col0 + + col0 * - 94 AS col1 FROM tab2 AS cor0
----
-665
-7410
-7505

onlyif mysql # use DIV operator for integer division
query I rowsort label-6450
SELECT ALL - - col1 + 34 DIV + col2 AS col1 FROM tab0 AS cor0
----
131
87
91

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL - - col1 + 34 / + col2 AS col1 FROM tab0 AS cor0
----
131
87
91

query I rowsort
SELECT DISTINCT - - cor0.col2 * + 15 AS col1 FROM tab2 AS cor0
----
390
405
570

query I rowsort
SELECT + col2 + col0 AS col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT - col1 * ( col2 ) * col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT + + 4 * 0 + + col1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 col1 FROM tab0 AS cor0
----
47
47
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6456
SELECT + ( - ( col2 ) ) + CAST( NULL AS DECIMAL ) - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6456
SELECT + ( - ( col2 ) ) + CAST ( NULL AS REAL ) - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) + - cor0.col0 * + 21 FROM tab0 AS cor0
----
-1778
-418
-638

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6458
SELECT CAST( - cor0.col0 AS SIGNED ) * col2 + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif mysql # not compatible
query I rowsort label-6458
SELECT CAST ( - cor0.col0 AS INTEGER ) * col2 + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab2 cor0, tab0 AS cor1
----
972 values hashing to 86dbd337f00ab84c613ad03d6fc06e28

query I rowsort
SELECT DISTINCT col2 - 86 AS col1 FROM tab1
----
-29
-32
10

query I rowsort
SELECT ALL - tab2.col0 + col2 * + 63 FROM tab2
----
1560
1694
2315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor0.col1 ) col2 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( + col2 ) col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - - 57 + + col1 FROM tab1 AS cor0
----
67
70
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6465
SELECT + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6465
SELECT + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 53 * + col1 - ( + cor0.col0 ) AS col1 FROM tab2 cor0
----
1636
3049
822

query I rowsort
SELECT - - 54 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1674
3186
918

query I rowsort
SELECT DISTINCT ( col0 ) + 71 * + col2 * + col0 FROM tab0 AS cor0
----
2520
518247
56256

query I rowsort
SELECT col1 - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - col1 + + cor0.col2 * - cor0.col0 + - 97 FROM tab1 AS cor0
----
-285
-3755
-7790

query I rowsort
SELECT 50 - col0 FROM tab1
----
-14
-30
47

query I rowsort
SELECT + col1 * + ( - col1 * - col0 ) FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT col0 * - 26 AS col1 FROM tab0 AS cor0
----
-2314
-624
-910

query I rowsort
SELECT - - tab0.col2 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT col0 + col2 + col2 AS col0 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT DISTINCT + 59 * + cor1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
3186
3363
5664

query I rowsort
SELECT DISTINCT + 18 * 49 * + tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
21168
30870
78498

query I rowsort
SELECT - + col0 * ( + col2 ) + col2 * col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + 74 FROM tab2 AS cor0
----
152
153
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6480
SELECT - col0 DIV 18 + col2 AS col0 FROM tab0 AS cor0
----
0
32
78

skipif mysql # not compatible
query I rowsort label-6480
SELECT - col0 / 18 + col2 AS col0 FROM tab0 AS cor0
----
0
32
78

query I rowsort
SELECT ALL col1 + - ( 88 + col2 ) * col0 * - ( + col0 ) AS col2 FROM tab2 AS cor0
----
5666
693635
786383

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * col1 * col1 + col2 col1 FROM tab1 AS cor0
----
-13424
-1974
-6343

query I rowsort
SELECT DISTINCT + + col0 * col1 + - col1 * col1 - + cor0.col0 AS col1 FROM tab0 AS cor0
----
-271
-5356
-6049

onlyif mysql # use DIV operator for integer division
query I rowsort label-6484
SELECT ALL col1 DIV 30 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6484
SELECT ALL col1 / 30 FROM tab2 cor0
----
0
1
1

query I rowsort
SELECT col2 * 20 + + col2 FROM tab0 AS cor0
----
1722
21
693

onlyif mysql # use DIV operator for integer division
query I rowsort label-6486
SELECT DISTINCT + col2 DIV col2 + - col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT + col2 / col2 + - col1 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT ALL + col2 * 48 + 88 * - cor0.col0 FROM tab2 AS cor0
----
-5128
-5616
680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6488
SELECT ALL - - col1 + - CAST( 46 * - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
164
2954
3693

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL - - col1 + - CAST ( 46 * - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
164
2954
3693

query I rowsort
SELECT DISTINCT + col1 - - 18 FROM tab0 AS cor0
----
104
109
115

query I rowsort
SELECT - col2 * + col1 * + col0 + + col1 AS col0 FROM tab2 AS cor0
----
-119593
-51017
-5828

query I rowsort
SELECT ALL col0 * - 15 * 22 + + col1 FROM tab2
----
-2279
-25681
-26053

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6492
SELECT col1 * CAST( - col2 + col0 AS SIGNED ) FROM tab1
----
-1326
-208
70

skipif mysql # not compatible
query I rowsort label-6492
SELECT col1 * CAST ( - col2 + col0 AS INTEGER ) FROM tab1
----
-1326
-208
70

query I rowsort
SELECT + tab0.col0 - - 43 AS col2 FROM tab0
----
132
67
78

query I rowsort
SELECT DISTINCT + 40 FROM tab1, tab0 AS cor0
----
40

query I rowsort
SELECT DISTINCT - col1 + 79 FROM tab2
----
20
48
62

query I rowsort
SELECT DISTINCT - - ( - col1 ) + col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - col0 + 38 FROM tab2
----
-40
-41
31

query I rowsort
SELECT DISTINCT - col1 * col1 + 76 FROM tab2
----
-213
-3405
-885

query I rowsort
SELECT col0 * - col1 - - 34 * - col0 FROM tab0
----
-11125
-2880
-4585

query I rowsort
SELECT ALL col1 * col2 + col0 AS col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL + + col0 * 53 + col2 AS col0 FROM tab2 cor0
----
398
4160
4225

query I rowsort
SELECT - 97 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6503
SELECT col1 DIV + 46 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6503
SELECT col1 / + 46 AS col1 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT col0 + - col1 * + ( 21 ) * col1 AS col1 FROM tab2 cor0
----
-20174
-5990
-73023

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6505
SELECT DISTINCT col2 + + col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6505
SELECT DISTINCT col2 + + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 96 * - col1 + col0 * col2 FROM tab1 AS cor0
----
2658
4608
8928

query I rowsort
SELECT + 95 * - col0 AS col0 FROM tab2 AS cor0
----
-665
-7410
-7505

query I rowsort
SELECT ALL - + 75 * + col2 AS col1 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT + col2 * + col1 * col2 + col0 * 63 AS col1 FROM tab1
----
124848
36522
76005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * - col0 col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - 11 FROM tab0
----
-11

query I rowsort
SELECT DISTINCT cor1.col1 AS col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
86
91
97

query I rowsort
SELECT ALL - ( 37 ) FROM tab1
----
-37
-37
-37

query I rowsort
SELECT col2 - col2 * + col2 AS col2 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT ALL col0 + col1 * col1 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT - col0 + col0 + + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + - col1 * + col2 - - col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT col1 * - col0 + + ( 71 ) AS col1 FROM tab2 AS cor0
----
-1272
-146
-4531

onlyif mysql # use DIV operator for integer division
query I rowsort label-6519
SELECT DISTINCT - col0 + - col2 * col2 DIV + cor0.col0 FROM tab2 AS cor0
----
-111
-86
-97

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT - col0 + - col2 * col2 / + cor0.col0 FROM tab2 AS cor0
----
-111
-86
-97

query I rowsort
SELECT - - col2 * col1 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6521
SELECT ALL - + 99 - col1 * CAST( NULL AS SIGNED ) * 40 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL - + 99 - col1 * CAST ( NULL AS INTEGER ) * 40 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6522
SELECT col2 DIV + col1 - - ( + 10 ) AS col0 FROM tab2 AS cor0
----
10
10
12

skipif mysql # not compatible
query I rowsort label-6522
SELECT col2 / + col1 - - ( + 10 ) AS col0 FROM tab2 AS cor0
----
10
10
12

query I rowsort
SELECT col0 * cor0.col2 + + col0 + col1 FROM tab0 AS cor0
----
167
7478
902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 col0 FROM tab1 cor0
----
81

query I rowsort
SELECT 18 * col0 AS col1 FROM tab1
----
1152
1440
54

query I rowsort
SELECT DISTINCT + col0 + - col0 + col2 AS col2 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6527
SELECT DISTINCT - col0 + + tab2.col1 DIV + 36 FROM tab2
----
-7
-77
-79

skipif mysql # not compatible
query I rowsort label-6527
SELECT DISTINCT - col0 + + tab2.col1 / + 36 FROM tab2
----
-7
-77
-79

query I rowsort
SELECT col1 + - col1 * 29 * col1 + col2 FROM tab1
----
-19524
-2833
-4792

query I rowsort
SELECT ALL - tab1.col0 - + col1 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT + 43 + col2 FROM tab1
----
100
139
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6532
SELECT col0 + + CAST( - 4 AS SIGNED ) FROM tab1 AS cor0
----
-1
60
76

skipif mysql # not compatible
query I rowsort label-6532
SELECT col0 + + CAST ( - 4 AS INTEGER ) FROM tab1 AS cor0
----
-1
60
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6533
SELECT cor0.col2 DIV cor0.col2 + ( + col1 ) - + col0 * - col2 FROM tab1 AS cor0
----
189
3659
7694

skipif mysql # not compatible
query I rowsort label-6533
SELECT cor0.col2 / cor0.col2 + ( + col1 ) - + col0 * - col2 FROM tab1 AS cor0
----
189
3659
7694

onlyif mysql # use DIV operator for integer division
query I rowsort label-6534
SELECT + + col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6534
SELECT + + col1 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col2 * + 88 AS col0 FROM tab1 AS cor0
----
-4752
-5016
-8448

query I rowsort
SELECT DISTINCT col0 + - col0 FROM tab2 cor0
----
0

query I rowsort
SELECT + col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT cor0.col0 - - ( ( + cor0.col0 ) ) FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT + + col1 * 18 - 99 FROM tab0 AS cor0
----
1449
1539
1647

query I rowsort
SELECT + cor0.col2 + - col0 + col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + col0 + 52 * + col1 FROM tab1 cor0
----
1355
584
756

query I rowsort
SELECT ALL 97 * cor0.col0 FROM tab0 AS cor0
----
2328
3395
8633

query I rowsort
SELECT - + ( col0 ) + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - 28 * col0 FROM tab0 AS cor0
----
-2492
-672
-980

onlyif mysql # use DIV operator for integer division
query I rowsort label-6545
SELECT DISTINCT + ( col0 ) DIV - col1 + col0 * - 48 AS col0 FROM tab2 AS cor0
----
-336
-3745
-3796

skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT + ( col0 ) / - col1 + col0 * - 48 AS col0 FROM tab2 AS cor0
----
-336
-3745
-3796

query I rowsort
SELECT + 93 * - col2 + cor0.col0 + - col2 FROM tab2 AS cor0
----
-2366
-2531
-3493

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6547
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + cor0.col2 + + 91 AS col1 FROM tab0 cor0
----
124
173
92

query I rowsort
SELECT ALL + col1 * col1 * - col2 AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6550
SELECT CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6550
SELECT CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - col0 * - col2 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ( + 14 ) FROM tab0 cor0
----
14
14
14

query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-6554
SELECT ALL - + col2 DIV - 79 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL - + col2 / - 79 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT col0 * - 92 FROM tab2 cor0
----
-644
-7176
-7268

query I rowsort
SELECT DISTINCT 43 * - col2 AS col2 FROM tab0 AS cor0
----
-1419
-3526
-43

query I rowsort
SELECT + ( col0 ) * + 42 AS col0 FROM tab1 AS cor0
----
126
2688
3360

query I rowsort
SELECT - + 66 * col1 AS col1 FROM tab0 AS cor0
----
-5676
-6006
-6402

query I rowsort
SELECT + - 11 + + col0 AS col0 FROM tab0 AS cor0
----
13
24
78

query I rowsort
SELECT ALL - 25 AS col2 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a

query I rowsort
SELECT DISTINCT + tab2.col1 FROM tab2, tab1, tab0 cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6562
SELECT ALL CAST( + 30 AS SIGNED ) col1 FROM tab2
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL CAST ( + 30 AS INTEGER ) col1 FROM tab2
----
30
30
30

query I rowsort
SELECT DISTINCT 74 + - col2 * tab1.col0 FROM tab1
----
-3574
-7606
-88

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col1 AS INTEGER ) * + cor0.col2 + - CAST ( + col1 AS REAL ) FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ( - 31 ) AS col1 FROM tab1 AS cor0
----
-31
-31
-31

query I rowsort
SELECT - ( - col2 ) * col2 + 82 FROM tab0 AS cor0
----
1171
6806
83

query I rowsort
SELECT ALL 4 AS col2 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT col2 * 36 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
1014
1447
979

query I rowsort
SELECT - ( - cor0.col2 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT 62 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT - + cor0.col2 * ( + cor0.col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 11 + + ( + tab2.col0 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 6df2ce34690aa950a546f49e8a927138

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6573
SELECT - + cor0.col0 * - CAST( - col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6573
SELECT - + cor0.col0 * - CAST ( - col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6575
SELECT col2 * - col2 + + col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1088
-6723
0

skipif mysql # not compatible
query I rowsort label-6575
SELECT col2 * - col2 + + col0 / + col0 AS col2 FROM tab0 AS cor0
----
-1088
-6723
0

query I rowsort
SELECT DISTINCT + + 82 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
82

query I rowsort
SELECT + + cor0.col2 + + 12 FROM tab0 AS cor0
----
13
45
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6578
SELECT - CAST( NULL AS SIGNED ) * 74 * + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6578
SELECT - CAST ( NULL AS INTEGER ) * 74 * + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - 61 FROM tab1 AS cor0
----
-183
-3904
-4880

query I rowsort
SELECT + ( - col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT + - 79 * + col2 AS col2 FROM tab1 AS cor0
----
-4266
-4503
-7584

query I rowsort
SELECT DISTINCT 86 + col2 AS col1 FROM tab2 AS cor0
----
112
113
124

query I rowsort
SELECT ALL col2 * 30 AS col1 FROM tab0
----
2460
30
990

query I rowsort
SELECT DISTINCT + - col0 + + 51 AS col1 FROM tab1 cor0
----
-13
-29
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-6585
SELECT + col0 DIV - 8 FROM tab0 AS cor0
----
-11
-3
-4

skipif mysql # not compatible
query I rowsort label-6585
SELECT + col0 / - 8 FROM tab0 AS cor0
----
-11
-3
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 col0 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL + 69 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT 18 + col1 FROM tab2
----
35
49
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6589
SELECT col2 + - col2 + - cor0.col0 DIV + 87 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6589
SELECT col2 + - col2 + - cor0.col0 / + 87 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6590
SELECT ALL - 1 DIV cor0.col0 + 46 AS col1 FROM tab0 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL - 1 / cor0.col0 + 46 AS col1 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT ALL - - col1 * 38 + 67 * col2 AS col1 FROM tab0 AS cor0
----
3753
5479
8952

onlyif mysql # use DIV operator for integer division
query I rowsort label-6592
SELECT col1 DIV + 98 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6592
SELECT col1 / + 98 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + col1 * col1 + - col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT DISTINCT + col1 + - 51 AS col2 FROM tab1 AS cor0
----
-25
-38
-41

query I rowsort
SELECT 1 * - col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + col2 * + col0 + - col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT cor0.col2 + col2 * col0 * cor0.col2 FROM tab0 AS cor0
----
26169
36
598518

query I rowsort
SELECT ALL + tab0.col1 + - col0 FROM tab0
----
2
62
62

query I rowsort
SELECT 98 * - col2 + col2 FROM tab1
----
-5238
-5529
-9312

query I rowsort
SELECT + cor0.col1 * cor0.col1 + col0 * + col0 FROM tab0 AS cor0
----
10634
16202
7972

query I rowsort
SELECT ALL + ( col2 ) * - col2 + + col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-513
1197
1224

query I rowsort
SELECT - 1 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to f3aaea07874d9328a91c424c0907a688

query I rowsort
SELECT ALL col0 + 40 AS col1 FROM tab0 AS cor0
----
129
64
75

query I rowsort
SELECT - 61 * + ( + col0 * - col1 ) FROM tab2 AS cor0
----
13237
280722
81923

onlyif mysql # use DIV operator for integer division
query I rowsort label-6605
SELECT DISTINCT - 15 DIV + ( col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6605
SELECT DISTINCT - 15 / + ( col0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - cor0.col2 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT col2 * 18 + - col1 + + col2 FROM tab2 cor0
----
435
482
705

query I rowsort
SELECT DISTINCT + + col1 + col2 * 68 FROM tab0 AS cor0
----
165
2330
5667

query I rowsort
SELECT DISTINCT - - cor0.col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 * - col0 + col0 col0 FROM tab0 AS cor0
----
1435
3649
984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 59 * - col0 col0 FROM tab0 AS cor0
----
1416
2065
5251

onlyif mysql # use DIV operator for integer division
query I rowsort label-6612
SELECT ALL 76 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL 76 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 11 * cor0.col2 FROM tab0 cor0
----
-11
-363
-902

query I rowsort
SELECT + 22 * - col0 * col2 + + col0 AS col2 FROM tab0 AS cor0
----
-160467
-17400
-735

query I rowsort
SELECT DISTINCT - col1 + - col0 FROM tab2
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * - col2 + + col2 + ( + tab1.col0 ) * + col2 col1 FROM tab1
----
-32775
-3996
-92064

query I rowsort
SELECT - 81 * col2 + col0 AS col2 FROM tab0
----
-2649
-46
-6553

query I rowsort
SELECT + 2 * tab2.col1 FROM tab2
----
118
34
62

query I rowsort
SELECT - col1 * 30 + tab0.col2 FROM tab0
----
-2547
-2648
-2909

query I rowsort
SELECT DISTINCT - + col0 + - cor0.col0 AS col1 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT ALL + cor0.col0 - cor0.col2 FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - 53 col0 FROM tab1 AS cor0
----
1378
530
689

onlyif mysql # use DIV operator for integer division
query I rowsort label-6623
SELECT DISTINCT + col2 DIV ( col0 ) + - col2 - col1 FROM tab2 AS cor0
----
-55
-85

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT + col2 / ( col0 ) + - col2 - col1 FROM tab2 AS cor0
----
-55
-85

query I rowsort
SELECT col0 + cor0.col1 AS col1 FROM tab1 cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6625
SELECT DISTINCT - col0 + 41 DIV cor0.col0 - col2 AS col0 FROM tab0 AS cor0
----
-171
-35
-56

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT - col0 + 41 / cor0.col0 - col2 AS col0 FROM tab0 AS cor0
----
-171
-35
-56

query I rowsort
SELECT ALL + cor0.col1 * + 42 FROM tab1 AS cor0
----
1092
420
546

query I rowsort
SELECT ALL 96 * col0 AS col0 FROM tab2
----
672
7488
7584

query I rowsort
SELECT DISTINCT + col2 * - col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL col0 * ( + col1 ) AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL col1 + col2 * col0 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + 48 - 2 AS col1 FROM tab1 AS cor0
----
46
46
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-6632
SELECT DISTINCT - ( col0 ) DIV col1 FROM tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT - ( col0 ) / col1 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT + + 64 AS col0 FROM tab1 cor0
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + 92 col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to ff891390a139d3160d756bb8ccabcad1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6635
SELECT ALL CAST( NULL AS SIGNED ) + 32 AS col1 FROM tab0, tab1, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL CAST ( NULL AS INTEGER ) + 32 AS col1 FROM tab0, tab1, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT col2 * 80 * 97 + - col1 AS col1 FROM tab0
----
255994
636229
7663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 57 ) col0 FROM tab2
----
57
57
57

query I rowsort
SELECT 29 FROM tab2, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6639
SELECT ALL 68 + ( col1 ) DIV col0 FROM tab2 AS cor0
----
68
68
72

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL 68 + ( col1 ) / col0 FROM tab2 AS cor0
----
68
68
72

query I rowsort
SELECT DISTINCT col0 + 30 * + col0 AS col2 FROM tab0 cor0
----
1085
2759
744

onlyif mysql # use DIV operator for integer division
query I rowsort label-6641
SELECT DISTINCT - - col1 + col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT - - col1 + col0 / - col2 AS col2 FROM tab1 AS cor0
----
13
26
9

query I rowsort
SELECT ALL + ( + col1 ) - col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + + col0 + - 17 FROM tab1 AS cor0
----
-14
47
63

query I rowsort
SELECT ALL - ( col1 ) - - col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT - - ( col1 ) FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT 42 * - col1 AS col0 FROM tab0 AS cor0
----
-3612
-3822
-4074

query I rowsort
SELECT ALL - - ( - 39 ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1014
-390
-507

query I rowsort
SELECT + 28 * ( + col1 ) AS col0 FROM tab2 AS cor0
----
1652
476
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6649
SELECT ALL + - CAST( NULL AS SIGNED ) * + 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-6649
SELECT ALL + - CAST ( NULL AS INTEGER ) * + cor0.col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 2 * - col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT - + col1 + 29 * + cor0.col0 FROM tab1 AS cor0
----
1846
2307
61

query I rowsort
SELECT DISTINCT + + 13 AS col0 FROM tab2 cor0
----
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-6653
SELECT ALL col0 DIV + col0 - col1 col1 FROM tab2 AS cor0
----
-16
-30
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL col0 / + col0 - col1 col1 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT DISTINCT col0 + + col2 + + 94 FROM tab0
----
130
151
265

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 + col2 col2 FROM tab1
----
146
149
188

query I rowsort
SELECT DISTINCT - + 18 * col2 * col2 AS col0 FROM tab0 AS cor0
----
-121032
-18
-19602

query I rowsort
SELECT ALL 95 + col2 AS col0 FROM tab2 AS cor0
----
121
122
133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 + 63 + - col1 col1 FROM tab2 AS cor0
----
1490
680
761

query I rowsort
SELECT + ( col1 ) * + col0 + col2 AS col2 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT ( + col0 ) * - ( cor0.col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - 18 + - col1 * 17 FROM tab0 AS cor0
----
-1480
-1565
-1667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6662
SELECT + cor0.col2 + col1 + - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-24
51
7

skipif mysql # not compatible
query I rowsort label-6662
SELECT + cor0.col2 + col1 + - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT DISTINCT - col1 * ( - col1 ) AS col2 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col2 * 90 * + col0 FROM tab0 AS cor0
----
-3150
-656820
-71280

query I rowsort
SELECT ALL - col2 * - 77 FROM tab2 AS cor0
----
2002
2079
2926

query I rowsort
SELECT ALL + col2 * col2 + col0 + + col2 * + ( - col1 * cor0.col0 + + ( - cor0.col1 ) ) FROM tab1 AS cor0
----
-2697
-33737
-91792

query I rowsort
SELECT 82 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT cor0.col1 * 35 FROM tab0 AS cor0
----
3010
3185
3395

query I rowsort
SELECT DISTINCT - col1 + 82 FROM tab1 AS cor0
----
56
69
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( 96 ) col0 FROM tab1 cor0
----
1248
2496
960

query I rowsort
SELECT DISTINCT tab1.col1 + - tab1.col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT - + col0 * + 63 FROM tab2 AS cor0
----
-441
-4914
-4977

query I rowsort
SELECT - - 12 AS col2 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT DISTINCT + - col1 * col1 + - 3 + col1 FROM tab0 AS cor0
----
-7313
-8193
-9315

query I rowsort
SELECT DISTINCT - 81 * - col1 FROM tab0 AS cor0
----
6966
7371
7857

query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL ( + 76 ) FROM tab2
----
76
76
76

query I rowsort
SELECT DISTINCT 13 AS col0 FROM tab0, tab1 AS cor0
----
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6680
SELECT col2 + col2 * - CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif mysql # not compatible
query I rowsort label-6680
SELECT col2 + col2 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + 75 + + 87 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
162

query I rowsort
SELECT + 30 FROM tab0, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 23 col0 FROM tab0 AS cor0
----
-2047
-552
-805

query I rowsort
SELECT - 64 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT cor0.col1 * 41 AS col1 FROM tab2 AS cor0
----
1271
2419
697

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55

query I rowsort
SELECT ALL + col2 + + col1 AS col2 FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col1 ) * col2 + - col0 col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT 58 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT 63 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT col0 + ( col0 * - tab1.col0 ) AS col2 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT - 72 AS col1 FROM tab0
----
-72

query I rowsort
SELECT + col0 * 76 FROM tab0
----
1824
2660
6764

query I rowsort
SELECT ( - col2 + - col0 ) FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT 61 FROM tab1, tab1 AS cor0
----
61

query I rowsort
SELECT - 14 * col0 + + col0 AS col1 FROM tab2 AS cor0
----
-1014
-1027
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 99 + col1 col0 FROM tab2 AS cor0
----
-1666
-3038
-5782

query I rowsort
SELECT DISTINCT + 61 * col1 FROM tab1
----
1586
610
793

query I rowsort
SELECT + - 98 * - cor0.col1 + - col0 * + col1 AS col2 FROM tab1 AS cor0
----
234
2470
340

query I rowsort
SELECT ALL cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL - col2 + col2 * - col0 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT ( + col2 ) + - 13 AS col1 FROM tab1
----
41
44
83

query I rowsort
SELECT DISTINCT ( - 93 ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT DISTINCT col1 * col1 - - col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT - + cor0.col2 + + col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + - 72 * - col0 + - col0 FROM tab1 AS cor0
----
213
4544
5680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT ALL 99 FROM tab2, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6710
SELECT + CAST( + col1 AS SIGNED ) * - col0 + + 66 FROM tab0 AS cor0
----
-1998
-3329
-8033

skipif mysql # not compatible
query I rowsort label-6710
SELECT + CAST ( + col1 AS INTEGER ) * - col0 + + 66 FROM tab0 AS cor0
----
-1998
-3329
-8033

onlyif mysql # use DIV operator for integer division
query I rowsort label-6711
SELECT + col2 DIV - 31 FROM tab1 AS cor0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-6711
SELECT + col2 / - 31 FROM tab1 AS cor0
----
-1
-1
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col2 col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + col1 + 62 AS col0 FROM tab0 AS cor0
----
148
153
159

query I rowsort
SELECT - col0 * col2 - - cor0.col0 AS col2 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT 49 + col0 * col0 FROM tab1 cor0
----
4145
58
6449

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

query I rowsort
SELECT DISTINCT - 35 FROM tab1, tab1 AS cor0
----
-35

query I rowsort
SELECT ( col0 ) - + col1 * col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT + col2 * 15 * col2 + 32 AS col0 FROM tab1 AS cor0
----
138272
43772
48767

query I rowsort
SELECT ALL col0 * col2 + - col0 FROM tab0
----
0
7209
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 col2 FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT + tab2.col0 * col1 + + col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT DISTINCT + ( col0 + col2 ) FROM tab1
----
121
176
57

query I rowsort
SELECT ALL - col1 * col2 * col1 AS col0 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT + 8 AS col2 FROM tab0, tab0 AS cor0
----
8

query I rowsort
SELECT ALL 78 - - 77 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 37e6fe86ed7b54e43b7c859d6f5347fc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + ( col1 ) * - col1 col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT ALL - col0 * col1 + - tab0.col2 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT - col0 + - 57 * - cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
10766
115518
171035

query I rowsort
SELECT - - col1 * 87 FROM tab2 AS cor0
----
1479
2697
5133

query I rowsort
SELECT DISTINCT + - col0 * col0 + + 34 * col2 AS col0 FROM tab1 AS cor0
----
-2158
-3136
1827

query I rowsort
SELECT + 7 + + 22 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT - - col0 * cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - col1 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6736
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6736
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 48 + 36 FROM tab1
----
84
84
84

query I rowsort
SELECT ALL 29 * col1 AS col2 FROM tab2
----
1711
493
899

query I rowsort
SELECT - col1 * + col2 + - col2 + - ( + col0 ) FROM tab1 AS cor0
----
-1424
-1461
-691

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6740
SELECT - 52 * + col1 - col1 * - CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6740
SELECT - 52 * + col1 - col1 * - CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab1 AS cor0 WHERE NOT ( NULL ) IN ( + cor0.col1 )
----

query I rowsort
SELECT - ( + col1 ) AS col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + - 89 FROM tab0 cor0
----
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6744
SELECT ALL + - col0 DIV + col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL + - col0 / + col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT - ( col2 ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL ( col1 ) + + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + col1 * - col2 + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT + 34 * - col2 FROM tab1 AS cor0
----
-1836
-1938
-3264

query I rowsort
SELECT DISTINCT - - 19 FROM tab1 cor0
----
19

query I rowsort
SELECT - + col1 + - col2 * - cor0.col0 AS col0 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT - + col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + - col2 * + col0 * cor0.col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT ( - col0 ) * + 7 FROM tab1 AS cor0
----
-21
-448
-560

query I rowsort
SELECT DISTINCT tab0.col0 + - 42 FROM tab0
----
-18
-7
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6756
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + + tab2.col1 * + col2 * col1 + tab2.col0 AS col0 FROM tab2
----
11023
25927
90558

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + + tab2.col1 * + col2 * col1 + tab2.col0 AS col0 FROM tab2
----
11023
25927
90558

query I rowsort
SELECT ( - 24 ) AS col1 FROM tab2
----
-24
-24
-24

query I rowsort
SELECT ALL - col0 + col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + 55 * - ( + col1 ) FROM tab0
----
-4730
-5005
-5335

query I rowsort
SELECT col0 * + col0 + - col2 AS col1 FROM tab2 cor0
----
22
6058
6203

query I rowsort
SELECT ALL + 28 * + col2 + - col2 + 84 AS col2 FROM tab1 AS cor0
----
1542
1623
2676

query I rowsort
SELECT DISTINCT - col2 + - col0 AS col1 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT - + col2 * cor0.col2 + 57 AS col0 FROM tab0 cor0
----
-1032
-6667
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-6764
SELECT DISTINCT + col1 * col2 DIV 96 col1 FROM tab2 AS cor0
----
15
6
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT + col1 * col2 / 96 col1 FROM tab2 AS cor0
----
15
6
8

query I rowsort
SELECT 31 + col0 AS col0 FROM tab1 AS cor0
----
111
34
95

query I rowsort
SELECT DISTINCT - - col1 + - col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 * - col1 + + ( + col2 + + col2 ) * col2 AS col1 FROM tab2 AS cor0
----
-182
2242
621

query I rowsort
SELECT DISTINCT - 62 AS col2 FROM tab2
----
-62

query I rowsort
SELECT ALL 15 + - cor0.col1 FROM tab1 AS cor0
----
-11
2
5

query I rowsort
SELECT ALL + + 55 * col1 + 81 FROM tab0 AS cor0
----
4811
5086
5416

query I rowsort
SELECT ALL col2 + + col1 * col2 * col1 AS col0 FROM tab1
----
16320
36558
5757

query I rowsort
SELECT - + col0 * + col0 * + col1 AS col1 FROM tab2 cor0
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-6773
SELECT + col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-6773
SELECT + col2 / + col0 AS col0 FROM tab1 AS cor0
----
0
1
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-6774
SELECT cor0.col2 DIV - 15 col0 FROM tab0 cor0
----
-2
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6774
SELECT cor0.col2 / - 15 col0 FROM tab0 cor0
----
-2
-5
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6775
SELECT + col1 DIV 98 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6775
SELECT + col1 / 98 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - 6 AS col2 FROM tab1, tab2, tab1 AS cor0
----
-6

query I rowsort
SELECT + 4 * col1 AS col2 FROM tab2
----
124
236
68

query I rowsort
SELECT + 90 AS col0 FROM tab0
----
90
90
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6779
SELECT - tab0.col1 + col2 DIV 43 FROM tab0
----
-86
-90
-97

skipif mysql # not compatible
query I rowsort label-6779
SELECT - tab0.col1 + col2 / 43 FROM tab0
----
-86
-90
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6780
SELECT col2 + - col2 DIV col2 AS col1 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-6780
SELECT col2 + - col2 / col2 AS col1 FROM tab1
----
53
56
95

query I rowsort
SELECT + 43 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT - col2 * - col2 - + col1 AS col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT + col2 + + col2 + col0 * tab0.col2 FROM tab0
----
37
7462
858

query I rowsort
SELECT DISTINCT - col0 + + col1 * + col0 AS col1 FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT ALL + cor0.col2 * - col2 - + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT ALL + - col2 * - cor0.col0 + + col1 - col0 FROM tab2 AS cor0
----
2009
213
2940

query I rowsort
SELECT 96 + - 43 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
139
1515
3622

query I rowsort
SELECT ALL col1 * tab1.col0 * 16 + + col0 * - 18 * + col0 FROM tab1
----
-63488
-98560
1086

query I rowsort
SELECT tab1.col0 * - ( + col2 ) FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( ( col0 ) + ( - col2 ) ) * - col1 * - col1 col2 FROM tab0
----
-66531
319907
58049

query I rowsort
SELECT - col0 * - col2 + tab2.col1 * - col2 + ( + 71 ) FROM tab2
----
-577
2427
565

query I rowsort
SELECT DISTINCT col2 * - ( col1 ) + col0 * col1 FROM tab2
----
-620
3068
697

query I rowsort
SELECT ALL + col1 - - tab0.col1 FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT - col2 * + tab1.col2 - + tab1.col2 AS col0 FROM tab1
----
-2970
-3306
-9312

query I rowsort
SELECT + col2 + 66 AS col2 FROM tab2
----
104
92
93

query I rowsort
SELECT + ( - col1 + col2 ) * 36 FROM tab2
----
-1188
-144
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 col2 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + + ( col2 ) * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - - col1 * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 + 51 * + col2 col2 FROM tab0 cor0
----
130
1762
4261

query I rowsort
SELECT DISTINCT + col2 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - col0 + 56 * - col1 + col1 FROM tab0 AS cor0
----
-4754
-5094
-5370

query I rowsort
SELECT + ( - col2 ) + col1 * col0 * - col0 FROM tab1 AS cor0
----
-288
-41017
-83296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 col0 FROM tab0 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 col1 FROM tab0
----
79

query I rowsort
SELECT DISTINCT + + cor0.col2 * + col1 + - col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT + 65 FROM tab2 cor0
----
65
65
65

query I rowsort
SELECT ALL 7 + + 80 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT - tab1.col0 * + 81 * 24 FROM tab1
----
-124416
-155520
-5832

query I rowsort
SELECT col0 + ( col0 ) * - col1 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + col2 * + 54 * + col0 FROM tab2
----
10206
109512
162108

query I rowsort
SELECT + + col0 * - col0 * - col1 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT 47 AS col2 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT col2 * + 96 * col0 + 83 AS col2 FROM tab2
----
18227
194771
288275

query I rowsort
SELECT + 25 * - col2 FROM tab2 AS cor0
----
-650
-675
-950

onlyif mysql # use DIV operator for integer division
query I rowsort label-6816
SELECT DISTINCT col2 + + col0 DIV + col2 FROM tab1 cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT col2 + + col0 / + col2 FROM tab1 cor0
----
54
58
96

query I rowsort
SELECT cor0.col1 + + col2 + - col0 * 82 FROM tab0 AS cor0
----
-1849
-2772
-7125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 79 * col2 col0 FROM tab1 AS cor0
----
4266
4503
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6819
SELECT 36 DIV cor0.col0 FROM tab2 cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-6819
SELECT 36 / cor0.col0 FROM tab2 cor0
----
0
0
5

query I rowsort
SELECT - 12 + col2 FROM tab0 cor0
----
-11
21
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6821
SELECT DISTINCT + + col1 * - col2 DIV + col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT + + col1 * - col2 / + col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT col0 * col2 - col0 * col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6823
SELECT - + col2 + + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6823
SELECT - + 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-6824
SELECT + col2 DIV + cor0.col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6824
SELECT + col2 / + cor0.col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col0 * col1 + - col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) + ( col0 ) - col1 col0 FROM tab1 AS cor0
----
111
163
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( + 84 * + col2 ) col0 FROM tab1 AS cor0
----
4562
4798
8077

query I rowsort
SELECT DISTINCT - cor0.col1 + 97 + col2 FROM tab0 AS cor0
----
1
44
88

query I rowsort
SELECT + - col0 + - col0 * + ( - col0 ) AS col2 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT ALL - col0 * + ( col1 ) - + cor0.col0 * col2 FROM tab1 cor0
----
-240
-4288
-8720

query I rowsort
SELECT col0 + + 5 AS col0 FROM tab0 AS cor0
----
29
40
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6832
SELECT ALL + cor0.col2 DIV 59 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL + cor0.col2 / 59 AS col1 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + col1 + + col2 * col2 AS col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT cor0.col2 * ( - ( + col1 ) ) FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT + + cor0.col0 * col0 + col1 AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT 69 * + col1 FROM tab1
----
1794
690
897

query I rowsort
SELECT ALL + cor0.col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - + cor0.col1 * 89 AS col2 FROM tab1 AS cor0
----
-1157
-2314
-890

query I rowsort
SELECT DISTINCT + col0 * + ( col0 ) + col0 + + 11 AS col2 FROM tab2 AS cor0
----
6173
6331
67

query I rowsort
SELECT ALL + cor0.col1 - ( - 33 ) FROM tab1 AS cor0
----
43
46
59

query I rowsort
SELECT ALL col1 * - ( + col1 ) - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6842
SELECT DISTINCT + col0 + - 11 DIV ( - col0 + - col0 ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT + col0 + - 11 / ( - col0 + - col0 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col0 * + 29 AS col2 FROM tab1 AS cor0
----
1856
2320
87

query I rowsort
SELECT ALL + col0 + - 72 FROM tab2
----
-65
6
7

query I rowsort
SELECT ALL col0 * col2 + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL + col0 * + col2 + - col2 AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL - col2 * col0 + 98 FROM tab2 cor0
----
-1930
-2904
-91

query I rowsort
SELECT + + col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - + col0 + col0 * + col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT col1 * tab1.col1 + col1 FROM tab1
----
110
182
702

query I rowsort
SELECT DISTINCT - col0 * col0 AS col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + - 68 * - col2 - col2 * 91 AS col2 FROM tab2 cor0
----
-598
-621
-874

query I rowsort
SELECT ALL + col0 * col2 + ( col1 ) FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT + tab1.col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND ( + col2 - col1 )
----

query I rowsort
SELECT col1 * tab0.col1 AS col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL col2 + + col2 * col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT - col2 * col1 - tab1.col1 AS col0 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT tab0.col1 + + col1 * - tab0.col2 - + col2 FROM tab0
----
-1
-2785
-7453

query I rowsort
SELECT + col2 * + tab2.col0 AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( + col1 )
----

query I rowsort
SELECT DISTINCT + col0 + col1 * - tab0.col1 FROM tab0
----
-7372
-8192
-9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6862
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - - 95 FROM tab0 AS cor0
----
95
95
95

query I rowsort
SELECT DISTINCT col0 * + col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT col1 + cor0.col1 + 93 FROM tab0 AS cor0
----
265
275
287

onlyif mysql # use DIV operator for integer division
query I rowsort label-6866
SELECT ALL cor0.col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL cor0.col0 / - col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 77 * + col0 FROM tab0 AS cor0
----
1848
2695
6853

onlyif mysql # use DIV operator for integer division
query I rowsort label-6868
SELECT DISTINCT col0 DIV - col2 col2 FROM tab0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT col0 / - col2 col2 FROM tab0
----
-1
-35
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6869
SELECT + col1 DIV col0 - + col0 AS col1 FROM tab0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-6869
SELECT + col1 / col0 - + col0 AS col1 FROM tab0
----
-21
-33
-88

query I rowsort
SELECT DISTINCT - col2 * - col0 + col0 - - col1 AS col0 FROM tab2
----
2165
227
3098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - tab2.col0 - col0 col2 FROM tab2
----
-120
-130
13

query I rowsort
SELECT - col1 * col2 * - col2 AS col1 FROM tab1
----
119808
32490
75816

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN - col0 + + col1 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6874
SELECT ALL - tab1.col1 DIV - col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL - tab1.col1 / - col0 FROM tab1
----
0
0
8

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT col1 - + col1 > + col1
----
-3
-64
-80

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab2 cor0 WHERE ( NULL ) BETWEEN col1 + col1 AND NULL
----

query I rowsort
SELECT col2 * - col0 + col0 AS col1 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT col2 * + col1 + - col0 + col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT col2 * col2 * - col2 AS col2 FROM tab1
----
-157464
-185193
-884736

query I rowsort
SELECT - col1 * - tab0.col2 AS col1 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 + col2 col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + tab1.col2 + tab1.col2 * + col0 FROM tab1
----
216
3705
7776

query I rowsort
SELECT - tab0.col1 + - col2 * col2 AS col0 FROM tab0
----
-1175
-6815
-98

query I rowsort
SELECT - tab0.col2 AS col0 FROM tab0 WHERE - col1 + col0 NOT IN ( + tab0.col2 )
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6885
SELECT DISTINCT tab2.col0 DIV col1 + - col2 FROM tab2
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT tab2.col0 / col1 + - col2 FROM tab2
----
-25
-27
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6886
SELECT DISTINCT col1 DIV - col1 + + tab0.col0 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT col1 / - col1 + + tab0.col0 FROM tab0
----
23
34
88

query I rowsort
SELECT col1 + col2 * col2 AS col1 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT tab1.col1 * + tab1.col1 * col0 AS col1 FROM tab1
----
13520
2028
6400

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - tab2.col1 NOT IN ( col0 * col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6890
SELECT DISTINCT + col0 DIV - col1 + - col0 * col1 FROM tab2
----
-1347
-217
-4603

skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT + col0 / - col1 + - col0 * col1 FROM tab2
----
-1347
-217
-4603

query I rowsort
SELECT DISTINCT col0 + col0 * - col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT DISTINCT + col1 + + col1 AS col2 FROM tab1
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 18 col0 FROM tab1 AS cor0
----
-46
-62
15

query I rowsort
SELECT ALL + cor0.col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6895
SELECT ALL + col0 + col2 + - col1 DIV 90 AS col1 FROM tab0
----
170
35
57

skipif mysql # not compatible
query I rowsort label-6895
SELECT ALL + col0 + col2 + - col1 / 90 AS col1 FROM tab0
----
170
35
57

query I rowsort
SELECT ALL - 76 * col1 + - col2 AS col1 FROM tab0
----
-6569
-6998
-7373

query I rowsort
SELECT + - 24 + + col2 AS col0 FROM tab0 AS cor0
----
-23
58
9

query I rowsort
SELECT ALL - ( + col0 ) + cor0.col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - ( + ( col1 ) ) FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6900
SELECT ALL - col2 * - 29 + cor0.col2 DIV 22 AS col1 FROM tab0 AS cor0
----
2381
29
958

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL - col2 * - 29 + cor0.col2 / 22 AS col1 FROM tab0 AS cor0
----
2381
29
958

query I rowsort
SELECT ALL - - col2 * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT 99 + col1 FROM tab2 AS cor0
----
116
130
158

query I rowsort
SELECT - 34 * + col2 AS col1 FROM tab1 AS cor0
----
-1836
-1938
-3264

query I rowsort
SELECT + 37 * col1 + col2 + col2 FROM tab1 AS cor0
----
1070
484
673

query I rowsort
SELECT + + cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6906
SELECT + col2 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6906
SELECT + col2 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT ALL - - col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT cor0.col2 + + cor0.col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - 14 * + col0 FROM tab0 AS cor0
----
-1246
-336
-490

query I rowsort
SELECT DISTINCT + + col2 * col1 + 22 * + col1 FROM tab1 AS cor0
----
1534
1976
790

query I rowsort
SELECT ALL - col1 * + col1 + - col1 FROM tab2 cor0
----
-306
-3540
-992

query I rowsort
SELECT DISTINCT - col1 + 84 FROM tab0 AS cor0
----
-13
-2
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6913
SELECT ALL + cor0.col1 DIV cor0.col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL + cor0.col1 / cor0.col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT ALL - col2 * col1 + col2 * col2 AS col1 FROM tab1 cor0
----
1512
2679
7968

onlyif mysql # use DIV operator for integer division
query I rowsort label-6915
SELECT DISTINCT col0 DIV col2 + col0 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT col0 / col2 + col0 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT ALL col1 * ( + col2 ) + + col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT cor0.col2 * - ( - 79 ) + + col1 FROM tab0 AS cor0
----
176
2693
6569

query I rowsort
SELECT ALL 30 FROM tab0
----
30
30
30

query I rowsort
SELECT ALL col0 * 57 + col0 * col2 FROM tab0 AS cor0
----
12371
2030
2160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6920
SELECT + col0 * - CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-6920
SELECT + col0 * - CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - col1 * 87 - - col1 * col2 AS col1 FROM tab0 AS cor0
----
-455
-4644
-8342

onlyif mysql # use DIV operator for integer division
query I rowsort label-6922
SELECT DISTINCT - col0 DIV - 14 FROM tab2 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-6922
SELECT DISTINCT - col0 / - 14 FROM tab2 AS cor0
----
0
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6923
SELECT DISTINCT - + col0 * + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT - + col0 * + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + cor0.col1 + 77 * - cor0.col1 FROM tab1 AS cor0
----
-1976
-760
-988

query I rowsort
SELECT ALL - col1 - - 27 FROM tab2
----
-32
-4
10

query I rowsort
SELECT col2 + col2 + 44 AS col1 FROM tab1
----
152
158
236

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6927
SELECT - CAST( + col1 AS SIGNED ) + col0 AS col2 FROM tab0 cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-6927
SELECT - CAST ( + col1 AS INTEGER ) + col0 AS col2 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT + 9 * col0 - col0 AS col0 FROM tab2 AS cor0
----
56
624
632

query I rowsort
SELECT + 2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL + col2 * + col0 + + col2 * col1 FROM tab0
----
132
14760
3630

query I rowsort
SELECT - tab1.col0 FROM tab1, tab1 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

query I rowsort
SELECT DISTINCT ( - ( - col2 ) ) + col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL + col0 + + col2 * col0 FROM tab2
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6934
SELECT - CAST( - col0 AS SIGNED ) * col2 AS col1 FROM tab2
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-6934
SELECT - CAST ( - col0 AS INTEGER ) * col2 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + 29 * - col0 + col0 FROM tab0 AS cor0
----
-2492
-672
-980

query I rowsort
SELECT 77 * col0 + cor0.col2 FROM tab2 AS cor0
----
566
6032
6121

query I rowsort
SELECT - + 80 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-47
-79
2

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT + - 97 * col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-3168
-7872
-96

query I rowsort
SELECT + - 71 + col1 AS col1 FROM tab2 AS cor0
----
-12
-40
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 * col1 - - col2 col1 FROM tab2 AS cor0
----
1262
2259
4274

query I rowsort
SELECT col1 * - col0 * col0 + col1 * + col2 FROM tab2 cor0
----
-105451
-357422
-682

query I rowsort
SELECT + - col1 + - col1 AS col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT - col0 + + cor0.col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT col1 * - col0 + + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-6946
SELECT ALL tab2.col2 DIV 53 col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL tab2.col2 / 53 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 + + cor0.col1 * col0 FROM tab1 cor0
----
24
583
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - - col1 * - 93 * 28 AS col0 FROM tab0 AS cor0
----
-223944
-236964
-252588

query I rowsort
SELECT ALL col2 + - col1 * - 55 * col1 AS col1 FROM tab1 AS cor0
----
37234
5557
9391

onlyif mysql # use DIV operator for integer division
query I rowsort label-6951
SELECT DISTINCT col2 DIV - 20 AS col2 FROM tab1 AS cor0
----
-2
-4

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT col2 / - 20 AS col2 FROM tab1 AS cor0
----
-2
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6952
SELECT ALL - - col2 + cor0.col1 DIV col1 FROM tab1 cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL - - col2 + cor0.col1 / col1 FROM tab1 cor0
----
55
58
97

query I rowsort
SELECT - + col0 + 74 FROM tab2 AS cor0
----
-4
-5
67

query I rowsort
SELECT + 16 * + 98 AS col2 FROM tab2 AS cor0
----
1568
1568
1568

onlyif mysql # use DIV operator for integer division
query I rowsort label-6955
SELECT CAST( + col0 AS SIGNED ) DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6955
SELECT CAST ( + col0 AS INTEGER ) / - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6956
SELECT DISTINCT + col2 * col1 DIV + col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT + col2 * col1 / + col1 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT col2 * cor0.col0 + + col0 * col0 + + col1 AS col2 FROM tab0 AS cor0
----
1357
1454
15310

query I rowsort
SELECT DISTINCT - col2 + + cor0.col2 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL cor0.col1 + col1 + + col2 * + col1 FROM tab1 cor0
----
1274
1456
590

query I rowsort
SELECT - col2 - cor0.col1 * col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT col1 - + col1 AS col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab0 WHERE NOT - col0 BETWEEN col2 AND NULL
----
86
91
97

query I rowsort
SELECT tab2.col2 * + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 3aa3dc9c06ac75ec040ed5bc20953cf9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6964
SELECT - col1 DIV + col0 AS col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6964
SELECT - col1 / + col0 AS col0 FROM tab0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6965
SELECT + col1 DIV col2 AS col0 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6965
SELECT + col1 / col2 AS col0 FROM tab0
----
1
2
97

query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2 WHERE NULL <= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6967
SELECT ALL - col0 DIV - col0 + + col0 AS col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL - col0 / - col0 + + col0 AS col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL - tab2.col1 * + col1 AS col0 FROM tab2
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + + col2 col1 FROM tab0
----
36
7380
825

query I rowsort
SELECT - col0 * + col2 + + col2 + col0 * + col0 FROM tab0 AS cor0
----
-183
1191
705

query I rowsort
SELECT DISTINCT + col2 * 81 + + col0 * col2 FROM tab1 AS cor0
----
15456
4536
8265

query I rowsort
SELECT ALL - - col1 * 24 FROM tab2 AS cor0
----
1416
408
744

query I rowsort
SELECT - cor0.col0 * - col1 * + col0 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
237
41024
83280

onlyif mysql # use DIV operator for integer division
query I rowsort label-6974
SELECT DISTINCT + + col2 DIV col1 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT + + col2 / col1 FROM tab2 AS cor0
----
0
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6975
SELECT DISTINCT - col1 * + CAST( col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT - col1 * + CAST ( col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + cor0.col0 + ( - col0 ) * col0 col2 FROM tab2 AS cor0
----
-35
-5928
-6083

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6977
SELECT - col0 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6977
SELECT - col0 + CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col0 * + ( - cor0.col1 ) * + col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL + + cor0.col0 * - 34 + - 41 AS col1 FROM tab1 AS cor0
----
-143
-2217
-2761

query I rowsort
SELECT ALL - col1 * + ( + col1 ) AS col0 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT - col2 * + 70 - - 38 FROM tab1 cor0
----
-3742
-3952
-6682

query I rowsort
SELECT DISTINCT - cor0.col2 + - 32 * - col1 AS col0 FROM tab2 AS cor0
----
1862
506
965

query I rowsort
SELECT DISTINCT + - col0 + ( + col2 ) * - col0 * - col2 AS col0 FROM tab2 AS cor0
----
113997
5096
52650

query I rowsort
SELECT ALL + col2 * + col2 + col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL col2 + + col0 + - col2 * col0 FROM tab1 AS cor0
----
-105
-3527
-7504

query I rowsort
SELECT ALL - col2 + - cor0.col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT + col2 * 10 + + col1 FROM tab2 AS cor0
----
301
319
397

query I rowsort
SELECT DISTINCT cor0.col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - - col1 + ( col1 ) * + col2 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6991
SELECT CAST( + 94 AS SIGNED ) FROM tab0, tab0 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

skipif mysql # not compatible
query I rowsort label-6991
SELECT CAST ( + 94 AS INTEGER ) FROM tab0, tab0 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6992
SELECT ALL + ( ( + col0 ) ) * - CAST( 79 AS SIGNED ) FROM tab2 AS cor0
----
-553
-6162
-6241

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL + ( ( + col0 ) ) * - CAST ( 79 AS INTEGER ) FROM tab2 AS cor0
----
-553
-6162
-6241

query I rowsort
SELECT 24 + col2 + col2 AS col0 FROM tab2 AS cor0
----
100
76
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6994
SELECT DISTINCT + - col1 + - cor0.col0 DIV - 39 FROM tab2 AS cor0
----
-15
-31
-57

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT + - col1 + - cor0.col0 / - 39 FROM tab2 AS cor0
----
-15
-31
-57

query I rowsort
SELECT + 50 + - col1 FROM tab1 AS cor0
----
24
37
40

query I rowsort
SELECT ALL col2 * col1 + 95 - + col2 FROM tab1
----
1247
1445
608

query I rowsort
SELECT + 73 AS col1 FROM tab1
----
73
73
73

query I rowsort
SELECT col2 + col1 * 69 - + col1 AS col1 FROM tab0
----
5881
6270
6597

query I rowsort
SELECT DISTINCT - ( + col2 ) - - col2 AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL - col2 + - col2 + col2 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7001
SELECT ALL + cor0.col0 DIV col0 col1 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL + cor0.col0 / col0 col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - + 98 AS col0 FROM tab1 AS cor0
----
-98

query I rowsort
SELECT ALL - ( - 52 ) AS col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

onlyif mysql # use DIV operator for integer division
query I rowsort label-7004
SELECT col0 * - col2 + + CAST( col1 AS SIGNED ) DIV - col0 FROM tab2
----
-193
-2028
-3002

skipif mysql # not compatible
query I rowsort label-7004
SELECT col0 * - col2 + + CAST ( col1 AS INTEGER ) / - col0 FROM tab2
----
-193
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 * col1 col2 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT ALL 70 + col2 AS col2 FROM tab2
----
108
96
97

query I rowsort
SELECT ALL cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # use DIV operator for integer division
query I rowsort label-7008
SELECT col1 * col2 + col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
1254
1404
576

skipif mysql # not compatible
query I rowsort label-7008
SELECT col1 * col2 + col0 / + col1 AS col1 FROM tab1 AS cor0
----
1254
1404
576

query I rowsort
SELECT + col0 - col0 * 38 FROM tab2 cor0
----
-259
-2886
-2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7010
SELECT ALL - - CAST( NULL AS SIGNED ) / + cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL - - CAST ( NULL AS INTEGER ) / + cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - col0 * col1 + col1 AS col1 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT 58 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT col1 + ( col1 ) AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT cor0.col1 + 2 FROM tab0 AS cor0
----
88
93
99

query I rowsort
SELECT - + col2 * + ( + col2 ) + col0 * + cor0.col0 AS col2 FROM tab1 cor0
----
-2816
-2907
847

query I rowsort
SELECT DISTINCT col0 * 4 AS col1 FROM tab0 cor0
----
140
356
96

query I rowsort
SELECT ALL - 85 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede

query I rowsort
SELECT + ( + col0 + + tab0.col0 ) FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT + col1 * - col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7020
SELECT + 38 * col0 + col1 * col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
1365
3471
936

skipif mysql # not compatible
query I rowsort label-7020
SELECT + 38 * col0 + col1 * col0 / + col1 AS col0 FROM tab0 AS cor0
----
1365
3471
936

query I rowsort
SELECT DISTINCT - 6 FROM tab2 cor0
----
-6

query I rowsort
SELECT - ( col1 * col1 ) FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-7023
SELECT ALL - 9 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL - 9 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col0 * col2 AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL + col2 * + 56 + col0 AS col2 FROM tab2 AS cor0
----
1519
1534
2207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7027
SELECT ALL - - col0 + + cor0.col2 * col0 DIV col0 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL - - col0 + + cor0.col2 * col0 / col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - - col1 - + col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT 70 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1190
2170
4130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 * col2 col2 FROM tab0 AS cor0
----
231
574
7

query I rowsort
SELECT ALL - 71 * col1 FROM tab2
----
-1207
-2201
-4189

onlyif mysql # use DIV operator for integer division
query I rowsort label-7032
SELECT + cor0.col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7032
SELECT + cor0.col0 / - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 + 60 col0 FROM tab1 AS cor0
----
-10

onlyif mysql # use DIV operator for integer division
query I rowsort label-7034
SELECT 80 DIV - col0 FROM tab2
----
-1
-1
-11

skipif mysql # not compatible
query I rowsort label-7034
SELECT 80 / - col0 FROM tab2
----
-1
-1
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ( - col1 ) * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - + col2 + col1 * 33 FROM tab2 AS cor0
----
1921
523
996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col2 * 94 col1 FROM tab1 AS cor0
----
5022
5301
8928

query I rowsort
SELECT + col2 * - 12 FROM tab2
----
-312
-324
-456

query I rowsort
SELECT DISTINCT col0 * - col1 - + col1 FROM tab0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-7041
SELECT ALL - ( 76 ) DIV + col2 - col0 AS col0 FROM tab0
----
-111
-26
-89

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL - ( 76 ) / + col2 - col0 AS col0 FROM tab0
----
-111
-26
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7042
SELECT DISTINCT + CAST( NULL AS SIGNED ) - col1 col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - col1 col0 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7043
SELECT + 78 - 91 DIV + col2 FROM tab1
----
77
77
78

skipif mysql # not compatible
query I rowsort label-7043
SELECT + 78 - 91 / + col2 FROM tab1
----
77
77
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7044
SELECT ALL col2 DIV 58 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL col2 / 58 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT + - col0 * 22 FROM tab2 AS cor0
----
-154
-1716
-1738

query I rowsort
SELECT ALL 4 AS col0 FROM tab1
----
4
4
4

query I rowsort
SELECT + col2 + 21 AS col1 FROM tab2 AS cor0
----
47
48
59

query I rowsort
SELECT DISTINCT 46 * - col0 AS col0 FROM tab2
----
-322
-3588
-3634

query I rowsort
SELECT ALL tab0.col2 * + col2 AS col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT - - col2 * ( - col2 + col2 * - ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
-11664
-211185
-746496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7051
SELECT + col2 + - CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-7051
SELECT + col2 + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + col1 + ( - ( + col1 ) ) * - cor0.col2 AS col2 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT - + col1 * - 54 AS col2 FROM tab0 AS cor0
----
4644
4914
5238

query I rowsort
SELECT DISTINCT + col0 * ( - 89 ) + col1 FROM tab2
----
-592
-6883
-7014

query I rowsort
SELECT + col0 - - ( col0 + tab0.col0 ) FROM tab0
----
105
267
72

query I rowsort
SELECT DISTINCT + tab0.col2 * tab0.col0 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-7057
SELECT + col0 * col0 * col2 + - col1 DIV col0 AS col1 FROM tab0
----
1223
19005
649521

skipif mysql # not compatible
query I rowsort label-7057
SELECT + col0 * col0 * col2 + - col1 / col0 AS col1 FROM tab0
----
1223
19005
649521

query I rowsort
SELECT - cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - 22 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

query I rowsort
SELECT DISTINCT - 3 FROM tab1, tab0 cor0
----
-3

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab0 AS cor2
----
3645 values hashing to 9d746e15fdb5adcb43a7518cd9743eb3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col2 FROM tab0 AS cor0
----
98
98
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7063
SELECT DISTINCT + col0 DIV + col1 + col2 col1 FROM tab1 AS cor0
----
102
54
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT + col0 / + col1 + col2 col1 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT ALL - 17 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT DISTINCT + + col2 + - cor0.col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - - 12 * + col0 AS col1 FROM tab2 AS cor0
----
84
936
948

query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL + col0 * col1 + col0 * - col0 FROM tab0 AS cor0
----
1488
178
2170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 79 ) + + cor0.col2 col2 FROM tab0 AS cor0
----
-46
-78
3

query I rowsort
SELECT DISTINCT - 50 + + 39 * col0 FROM tab0 AS cor0
----
1315
3421
886

query I rowsort
SELECT ALL - 52 AS col1 FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT + + 87 * cor0.col2 FROM tab0 AS cor0
----
2871
7134
87

query I rowsort
SELECT col0 * - 15 * + col0 FROM tab1 AS cor0
----
-135
-61440
-96000

query I rowsort
SELECT ALL - + cor0.col2 * 82 AS col1 FROM tab0 cor0
----
-2706
-6724
-82

query I rowsort
SELECT DISTINCT + 25 AS col0 FROM tab0 AS cor0
----
25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7076
SELECT DISTINCT + CAST( - 91 AS SIGNED ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT + CAST ( - 91 AS INTEGER ) FROM tab0 AS cor0
----
-91

query I rowsort
SELECT - - 51 + - cor0.col0 FROM tab2 AS cor0
----
-27
-28
44

query I rowsort
SELECT + col2 * - cor0.col2 + - 99 AS col1 FROM tab1 cor0
----
-3015
-3348
-9315

query I rowsort
SELECT - col2 + col0 * + col2 * col0 AS col0 FROM tab1 AS cor0
----
233415
432
614304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 + col1 col2 FROM tab2 AS cor0
----
29
43
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-7081
SELECT + col0 + - 44 * col1 + col1 DIV - 6 FROM tab2 AS cor0
----
-1362
-2527
-671

skipif mysql # not compatible
query I rowsort label-7081
SELECT + col0 + - 44 * col1 + col1 / - 6 FROM tab2 AS cor0
----
-1362
-2527
-671

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 87 col0 FROM tab0 cor0
----
-7482
-7917
-8439

onlyif mysql # use DIV operator for integer division
query I rowsort label-7083
SELECT col1 DIV 55 + col1 FROM tab2 cor0
----
17
31
60

skipif mysql # not compatible
query I rowsort label-7083
SELECT col1 / 55 + col1 FROM tab2 cor0
----
17
31
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 15 col2 FROM tab2 AS cor0
----
11
12
23

query I rowsort
SELECT ALL + 60 * col1 * - 4 AS col2 FROM tab0
----
-20640
-21840
-23280

query I rowsort
SELECT - + col1 + + 2 AS col0 FROM tab1 cor0
----
-11
-24
-8

query I rowsort
SELECT ALL + - cor0.col0 * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - 44 + col1 FROM tab2 cor0
----
-13
-27
15

query I rowsort
SELECT DISTINCT - 72 + 81 * + col1 AS col0 FROM tab2
----
1305
2439
4707

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) + col1 col0 FROM tab1
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7091
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col1 * - cor0.col1 + cor0.col2 + - 57 AS col1 FROM tab2 cor0
----
270
3450
931

query I rowsort
SELECT + 85 + + col2 FROM tab1 AS cor0
----
139
142
181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7094
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 1 + + cor0.col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT - col2 + + cor0.col0 AS col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT + - ( col2 ) * + col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL 50 AS col1 FROM tab0 AS cor0
----
50
50
50

query I rowsort
SELECT DISTINCT - ( col0 ) + col0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + col1 + col2 * col2 AS col2 FROM tab2 cor0
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 * col2 col0 FROM tab2 AS cor0
----
130
135
190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7102
SELECT ALL - CAST( 92 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL - CAST ( 92 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-92
-92
-92

query I rowsort
SELECT DISTINCT col0 * - col1 + col0 AS col1 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT ALL - col1 * ( + col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - 25 - - col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1250
-601
-7946

query I rowsort
SELECT ALL + col0 + col0 * - 2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - 86 * col1 - col0 * col2 FROM tab0 AS cor0
----
-15124
-8188
-8377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7109
SELECT - - col2 DIV col2 + cor0.col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-7109
SELECT - - col2 / col2 + cor0.col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT DISTINCT 19 * col0 FROM tab0 cor0
----
1691
456
665

onlyif mysql # use DIV operator for integer division
query I rowsort label-7111
SELECT - col1 * - col1 + col1 DIV + col0 + tab2.col2 AS col0 FROM tab2
----
327
3507
992

skipif mysql # not compatible
query I rowsort label-7111
SELECT - col1 * - col1 + col1 / + col0 + tab2.col2 AS col0 FROM tab2
----
327
3507
992

query I rowsort
SELECT ALL + col0 * - col0 + - col2 * + 41 AS col1 FROM tab2
----
-1156
-7150
-7799

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col2 * + 69 col1 FROM tab1 AS cor0
----
-3729
-3997
-6704

query I rowsort
SELECT DISTINCT + + cor0.col0 * + col2 * 3 FROM tab0 AS cor0
----
105
21894
2376

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7115
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * col2 + col0 AS col0 FROM tab1 cor0
----
-2913
-3185
-9136

query I rowsort
SELECT + + col2 + - 51 AS col0 FROM tab0 AS cor0
----
-18
-50
31

query I rowsort
SELECT ALL 4 * + cor0.col1 + 90 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d2e4fbaecca47f251abb72da7e1db473

query I rowsort
SELECT ALL - col0 * 98 - + 87 AS col2 FROM tab0 AS cor0
----
-2439
-3517
-8809

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7120
SELECT ALL + CAST( + col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL + CAST ( + col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - 73 * cor0.col2 FROM tab0 cor0
----
-2409
-5986
-73

query I rowsort
SELECT ALL ( 91 ) AS col2 FROM tab2 AS cor0
----
91
91
91

query I rowsort
SELECT + cor0.col1 + + 98 * col0 FROM tab1 AS cor0
----
320
6282
7853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 + + 20 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to a6436390b76d026d00c9c9e8c68d8420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 * col2 col2 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT 86 * - cor0.col1 FROM tab1 AS cor0
----
-1118
-2236
-860

query I rowsort
SELECT ALL + + col2 + col0 * - cor0.col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + ( 61 ) FROM tab2, tab0 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 9b52d3939da22c8931e3d5a72ddfb1b1

query I rowsort
SELECT + col2 + - ( - col1 + - col1 ) AS col2 FROM tab1
----
106
122
77

query I rowsort
SELECT ( col2 ) + col0 * 85 FROM tab0
----
2073
2976
7647

query I rowsort
SELECT 31 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT DISTINCT cor0.col2 * col2 - + col1 FROM tab0 cor0
----
-96
1003
6633

query I rowsort
SELECT + 87 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT - - 94 * - 48 + col1 + + col0 AS col2 FROM tab2 AS cor0
----
-4375
-4416
-4474

query I rowsort
SELECT DISTINCT + - ( + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + 21 FROM tab1, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT + 76 + - tab2.col1 FROM tab2
----
17
45
59

query I rowsort
SELECT - col0 + + col2 * - col1 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-7139
SELECT DISTINCT col2 * + col0 + tab1.col1 DIV col0 col1 FROM tab1
----
170
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7139
SELECT DISTINCT col2 * + col0 + tab1.col1 / col0 col1 FROM tab1
----
170
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 col2 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7141
SELECT ALL 39 DIV tab0.col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL 39 / tab0.col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col1 + - col1 * - col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT 55 + - col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-23
-585
-985

query I rowsort
SELECT ALL - 5 * col1 * 40 + 96 AS col0 FROM tab0 AS cor0
----
-17104
-18104
-19304

query I rowsort
SELECT DISTINCT + col0 + - col0 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL + tab2.col1 + - col2 * ( + col2 ) + col1 AS col2 FROM tab2
----
-1410
-558
-667

query I rowsort
SELECT ALL col2 * - col1 * ( 91 ) AS col1 FROM tab2
----
-139594
-58786
-76167

query I rowsort
SELECT DISTINCT col1 + + col2 * cor0.col0 + col1 * - 37 FROM tab2 AS cor0
----
-927
-96
2390

query I rowsort
SELECT ALL + + col0 - - col2 AS col0 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + ( 60 ) col1 FROM tab2 AS cor0
----
1
29
43

query I rowsort
SELECT ALL + col1 * col0 * + col0 FROM tab0 cor0
----
118825
49536
720811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7152
SELECT - col2 * - CAST( 80 AS SIGNED ) * + cor0.col0 + col2 FROM tab0 AS cor0
----
2801
583922
63393

skipif mysql # not compatible
query I rowsort label-7152
SELECT - col2 * - CAST ( 80 AS INTEGER ) * + cor0.col0 + col2 FROM tab0 AS cor0
----
2801
583922
63393

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT - + 19 AS col0 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT - - cor0.col0 * + cor0.col1 + 91 FROM tab1 AS cor0
----
1131
169
731

query I rowsort
SELECT DISTINCT - 9 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-9

query I rowsort
SELECT 92 FROM tab1 cor0
----
92
92
92

query I rowsort
SELECT DISTINCT + col0 + + ( + 0 ) * col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + - col0 * + col2 FROM tab1 cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * cor0.col1 * cor0.col2 col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + + cor0.col0 * ( + col0 ) AS col2 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7162
SELECT CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-7162
SELECT CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + col0 * col1 + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-7164
SELECT cor0.col1 + ( + col0 ) DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-7164
SELECT cor0.col1 + ( + col0 ) / - cor0.col0 AS col2 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT ( col2 ) + - col1 AS col2 FROM tab1 cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7166
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2, tab0, tab2 AS cor0, tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab2 AS cor0, tab1
----
NULL

query I rowsort
SELECT tab1.col0 + + 62 FROM tab1
----
126
142
65

query I rowsort
SELECT col0 + col2 + col1 * - tab2.col2 AS col2 FROM tab2
----
-1430
-529
-803

query I rowsort
SELECT 4 + col2 FROM tab1 AS cor0
----
100
58
61

query I rowsort
SELECT 20 * + col1 FROM tab1
----
200
260
520

onlyif mysql # use DIV operator for integer division
query I rowsort label-7171
SELECT DISTINCT + col0 + + col1 DIV 35 AS col0 FROM tab0 AS cor0
----
26
37
91

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT + col0 + + col1 / 35 AS col0 FROM tab0 AS cor0
----
26
37
91

query I rowsort
SELECT DISTINCT - + col1 + - col0 * - 90 AS col2 FROM tab0 cor0
----
2074
3053
7919

query I rowsort
SELECT ALL cor0.col1 * col2 - - col1 * - col0 AS col2 FROM tab1 AS cor0
----
-70
1326
208

query I rowsort
SELECT ALL + col2 * + col0 + + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - 33 * col0 FROM tab1 AS cor0
----
-2112
-2640
-99

query I rowsort
SELECT 62 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7334
-8219
-9347

query I rowsort
SELECT col1 * - col1 + - col0 FROM tab0
----
-7420
-8370
-9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 + col0 + - tab2.col1 col1 FROM tab2
----
110
24
67

query I rowsort
SELECT DISTINCT + 64 + - tab2.col0 AS col1 FROM tab2
----
-14
-15
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7180
SELECT + CAST( + 50 * col2 AS SIGNED ) + - tab0.col0 FROM tab0
----
15
1626
4011

skipif mysql # not compatible
query I rowsort label-7180
SELECT + CAST ( + 50 * col2 AS INTEGER ) + - tab0.col0 FROM tab0
----
15
1626
4011

query I rowsort
SELECT DISTINCT 34 * - col2 AS col0 FROM tab1
----
-1836
-1938
-3264

query I rowsort
SELECT 96 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT DISTINCT + col2 + + col1 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT + 75 + col1 * - 18 AS col1 FROM tab0
----
-1473
-1563
-1671

query I rowsort
SELECT 95 + - col0 FROM tab1
----
15
31
92

query I rowsort
SELECT - ( + 52 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT DISTINCT + col0 * col0 + - ( + col0 ) FROM tab0 AS cor0
----
1190
552
7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - + ( col2 ) + + 47 AS col2 FROM tab1 AS cor0
----
-10
-49
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7190
SELECT DISTINCT - + col2 + col1 DIV - ( col1 ) AS col2 FROM tab1 cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT - + col2 + col1 / - ( col1 ) AS col2 FROM tab1 cor0
----
-55
-58
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7191
SELECT ALL + col0 + col1 DIV 56 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL + col0 + col1 / 56 AS col1 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7192
SELECT ( cor0.col1 ) + + 65 DIV + col0 FROM tab2 AS cor0
----
17
40
59

skipif mysql # not compatible
query I rowsort label-7192
SELECT ( cor0.col1 ) + + 65 / + col0 FROM tab2 AS cor0
----
17
40
59

query I rowsort
SELECT DISTINCT 34 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
34

query I rowsort
SELECT DISTINCT + col1 * - 53 FROM tab1
----
-1378
-530
-689

query I rowsort
SELECT - col2 * - cor0.col1 * - col2 AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT - - cor0.col2 * 8 FROM tab2 AS cor0
----
208
216
304

query I rowsort
SELECT ALL col0 - + col2 * - col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT ( - 9 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT ALL - 28 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT col2 - + col1 AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + 30 + col0 * - col1 AS col2 FROM tab2
----
-1313
-187
-4572

query I rowsort
SELECT - tab1.col0 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
-7
-78
-79

query I rowsort
SELECT DISTINCT 80 FROM tab0 cor0
----
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7205
SELECT + col0 * col2 DIV col1 + col2 * col2 col2 FROM tab0 AS cor0
----
1
1098
6804

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7205
SELECT + col0 * col2 / col1 + col2 * col2 col2 FROM tab0 AS cor0
----
1
1098
6804

query I rowsort
SELECT DISTINCT col2 + + col2 * col2 AS col0 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT - col0 + 60 * + col1 AS col2 FROM tab0 AS cor0
----
5136
5371
5785

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 = + col1 * + col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + col0 )
----

query I rowsort
SELECT ALL - col2 * + col0 FROM tab2 WHERE NOT + col1 > - col2 + col1 * + col1
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7211
SELECT + col2 + col1 DIV col0 FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort label-7211
SELECT + col2 + col1 / col0 FROM tab2
----
26
31
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7212
SELECT col1 - tab1.col0 * col0 DIV col0 FROM tab1
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-7212
SELECT col1 - tab1.col0 * col0 / col0 FROM tab1
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-7213
SELECT + col2 DIV tab1.col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-7213
SELECT + col2 / tab1.col0 FROM tab1
----
0
1
18

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT NULL IN ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( col2 + - col1 )
----

query I rowsort
SELECT DISTINCT + col2 * col0 + - col0 * col1 AS col1 FROM tab1
----
3008
6640
84

query I rowsort
SELECT + col0 * col0 + col2 + col1 AS col1 FROM tab0
----
1323
695
8094

query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN NULL AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * col0 col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT col0 + col1 * + col2 FROM tab1
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 col0 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col2 + - col2 * + col2 FROM tab0
----
-1056
-6642
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 NOT BETWEEN ( + col1 ) AND ( NULL )
----
7
31
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-7224
SELECT ALL + tab0.col2 DIV col1 - + tab0.col1 * col1 FROM tab0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL + tab0.col2 / col1 - + tab0.col1 * col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT + tab1.col1 * + col2 FROM tab1 WHERE NOT NULL BETWEEN ( + col1 - + col0 ) AND ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + tab1.col1 col0 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT + col2 * - col1 + tab0.col0 FROM tab0
----
-2814
-62
-7373

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 >= ( NULL )
----

query I rowsort
SELECT - col2 FROM tab1 WHERE col1 + col1 + + col2 NOT IN ( tab1.col1 )
----
-54
-57
-96

query I rowsort
SELECT + tab0.col2 * + col2 + - col2 AS col2 FROM tab0
----
0
1056
6642

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * - col0 * col2 col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT tab1.col1 * - col2 AS col2 FROM tab1
----
-1248
-1404
-570

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7235
SELECT DISTINCT col1 DIV col1 + - col2 FROM tab2
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT col1 / col1 + - col2 FROM tab2
----
-25
-26
-37

query I rowsort
SELECT DISTINCT - col2 * col2 + + col2 FROM tab0
----
-1056
-6642
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 + col1 col1 FROM tab1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + col0 + col0 * col2 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-7239
SELECT ALL + col2 * + col2 + - col1 DIV tab2.col1 FROM tab2
----
1443
675
728

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL + col2 * + col2 + - col1 / tab2.col1 FROM tab2
----
1443
675
728

query I rowsort
SELECT DISTINCT + + col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-7241
SELECT - - col0 * col1 + col0 + col1 DIV col0 FROM tab0 AS cor0
----
2091
3432
8189

skipif mysql # not compatible
query I rowsort label-7241
SELECT - - col0 * col1 + col0 + col1 / col0 FROM tab0 AS cor0
----
2091
3432
8189

query I rowsort
SELECT ALL - - col2 + col1 * col1 * - col0 FROM tab2 cor0
----
-22793
-271492
-6700

query I rowsort
SELECT col2 * col0 + col1 AS col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT + cor0.col2 * + col0 + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL - col1 + col1 - - col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col1 + col1 * + cor0.col2 + cor0.col2 * col0 FROM tab2 AS cor0
----
3503
3631
995

query I rowsort
SELECT DISTINCT - col1 - - col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL + col1 * ( 89 * col1 ) FROM tab0
----
658244
737009
837401

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT DISTINCT - col0 * + 96 FROM tab0 AS cor0
----
-2304
-3360
-8544

query I rowsort
SELECT + cor0.col1 * col2 + + col2 * + col0 * 28 + - 92 FROM tab1 AS cor0
----
102622
216196
5848

query I rowsort
SELECT DISTINCT + col1 * - ( - 69 ) FROM tab2 AS cor0
----
1173
2139
4071

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - ( + col2 + + col2 ) * + ( col1 ) col2 FROM tab2 AS cor0
----
-1371
-1681
-3146

query I rowsort
SELECT + col0 * + col0 AS col1 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT - col0 * - ( - col0 ) * cor0.col0 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT - col2 + + ( - col0 ) * col0 * col2 FROM tab0 AS cor0
----
-1226
-19041
-649604

query I rowsort
SELECT - col2 + - 55 + col0 * col0 FROM tab2 AS cor0
----
-33
6003
6148

query I rowsort
SELECT 56 + - col2 * col0 * - 58 FROM tab0 AS cor0
----
2086
423340
45992

query I rowsort
SELECT + - 30 * 76 FROM tab0 AS cor0
----
-2280
-2280
-2280

query I rowsort
SELECT col2 + col1 * + 46 AS col0 FROM tab1
----
1250
517
694

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7261
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7261
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0, tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT 42 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7263
SELECT CAST( NULL AS DECIMAL ) col0 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7263
SELECT CAST ( NULL AS REAL ) col0 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 + + col2 * 72 FROM tab2 AS cor0
----
1813
1913
2719

query I rowsort
SELECT - + 96 + - col2 AS col2 FROM tab1 cor0
----
-150
-153
-192

query I rowsort
SELECT DISTINCT col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort
SELECT ALL - ( + col1 ) * CAST ( 3 AS REAL ) AS col2 FROM tab0 AS cor0
----
-258
-273
-291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 * col0 + - col0 * col0 col1 FROM tab1 AS cor0
----
-13520
-276
-9792

query I rowsort
SELECT DISTINCT col0 + col0 + + col1 FROM tab1
----
138
173
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT - col1 / col1 FROM tab2 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT - col1 + col0 + + col0 FROM tab1
----
-20
118
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 + col2 + col1 col2 FROM tab1
----
242
3715
7789

query I rowsort
SELECT DISTINCT col0 + tab0.col0 + col0 * col1 * + col2 FROM tab0
----
3465
664296
68160

query I rowsort
SELECT + cor0.col1 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + tab0.col2 * + col1 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 43 * + col2 * - col1 FROM tab1
----
-24510
-53664
-60372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + cor0.col2 * 23 + - 71 * - col0 FROM tab0 AS cor0
----
2463
2508
8205

query I rowsort
SELECT - ( + tab2.col2 ) FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT - col2 * - col0 + col2 FROM tab2
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 * col2 + + col1 * + col0 ) col0 FROM tab0
----
15561
3492
4902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7283
SELECT DISTINCT + col2 * - col1 + CAST( NULL AS SIGNED ) + ( cor0.col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT + col2 * - col1 + CAST ( NULL AS INTEGER ) + ( cor0.col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 9 AS col0 FROM tab2
----
9
9
9

query I rowsort
SELECT + 0 * - 85 * cor0.col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7286
SELECT ALL CAST( NULL AS SIGNED ) * - 60 + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL CAST ( NULL AS INTEGER ) * - 60 + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT ( NOT ( NOT NULL IN ( tab2.col2 ) ) AND NULL BETWEEN NULL AND col2 ) AND NULL IN ( col0 * + col1 )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7288
SELECT col1 * + CAST( col0 AS SIGNED ) FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-7288
SELECT col1 * + CAST ( col0 AS INTEGER ) FROM tab1
----
1040
640
78

query I rowsort
SELECT - col1 * ( 65 ) AS col2 FROM tab1 AS cor0
----
-1690
-650
-845

query I rowsort
SELECT ALL col0 + + 59 * col2 AS col1 FROM tab0
----
1971
4927
94

query I rowsort
SELECT col0 * col2 * - col0 + col2 AS col0 FROM tab2
----
-1296
-158158
-237120

query I rowsort
SELECT + 84 *